:root{--ink:#28372c;--muted:#637062;--paper:#f4f0e5;--green:#385240;--accent:#bf642c;--line:#c9c9b7;--radius:10px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#e9e4d6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b65627;outline-offset:5px}button{color:inherit}button,.primary{min-height:44px}button:hover{filter:brightness(.94)}[hidden]{display:none!important}#game{height:100svh;min-height:620px;position:relative;overflow:hidden}#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none;display:block}.vignette{pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(240,236,222,.97),rgba(240,236,222,.6) 31%,transparent 60%)}.topbar{position:absolute;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:26px 4.8%;gap:20px}.wordmark{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:800;letter-spacing:2px;line-height:1.2}.wordmark small{font-size:9px;letter-spacing:2.1px}.wordmark svg{width:39px;height:39px;fill:var(--green)}.wordmark .face{fill:none;stroke:var(--paper);stroke-width:2}.build-tag{margin-right:auto;margin-left:32px;color:var(--muted);font-size:12px}.quiet{border:1px solid #7b87737a;border-radius:40px;padding:9px 20px;background:#f4f0e5bc;font-size:13px}.menu{position:absolute;inset:0;pointer-events:none}.menu button{pointer-events:auto}.intro{position:absolute;top:20%;left:8%;max-width:540px}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.04em;color:#8b572e;margin:0 0 16px}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(46px,5.2vw,80px);line-height:.98;letter-spacing:-2.7px;margin:0 0 24px;font-weight:700}p{line-height:1.55}.lead{font-size:20px;line-height:1.5;margin:0 0 13px}.description{color:#5b6658;font-size:14px;line-height:1.65;margin:0 0 28px}.primary{display:block;border:0;background:var(--green);color:#fff9e8;border-radius:var(--radius);padding:16px 28px;font-size:16px;font-weight:700;box-shadow:0 4px 0 #253e30;min-width:224px}.primary:hover{background:#2d4836}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #253e30}.menu-links{display:flex;align-items:center;gap:14px;margin-top:12px;color:var(--muted)}.text-button{border:0;padding:0;background:none;font-size:13px;text-decoration:underline;text-decoration-color:#8f99897a;text-underline-offset:4px}.season-summary{position:absolute;right:5%;bottom:12%;width:278px;background:rgba(244,240,229,.91);border:1px solid #ffffff9c;border-radius:var(--radius);padding:20px 22px;backdrop-filter:blur(8px)}.season-top{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:700}.season-top span:last-child{color:#6b715f}progress{appearance:none;width:100%;height:6px;border:0;border-radius:20px;overflow:hidden;background:#d8dbc9;margin:14px 0 0}progress::-webkit-progress-bar{background:#d8dbc9}progress::-webkit-progress-value{background:#879b58}progress::-moz-progress-bar{background:#879b58}.season-summary p{font-size:12px;color:#67715f;margin:10px 0 16px}.records{display:flex;justify-content:space-between;border-top:1px solid #cfd1bf;padding-top:14px;font-size:11px}.records strong{display:block;margin-top:5px;font-size:17px;font-weight:500}.landscape-note{position:absolute;right:5%;top:24%;font-size:13px;line-height:1.65}.landscape-note small{color:#5b685a;font-size:11px}.note-line{display:block;width:34px;border-top:2px solid #7e8d74;margin-bottom:10px}footer{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px 4.8%;font-size:11px;color:#5d6957;background:linear-gradient(transparent,#e9e4d699)}footer .text-button{font-size:11px;min-height:30px}
.hud{position:absolute;inset:0;pointer-events:none}.hud button{pointer-events:auto}.run-stats{display:flex;gap:32px;position:absolute;top:max(25px,env(safe-area-inset-top));left:5%;padding:15px 23px;background:#f4f0e5ee;border-radius:var(--radius);box-shadow:0 2px 8px #2c38201a}.run-stats span{display:block;color:#5f6b5c;font-size:11px;margin-bottom:4px}.run-stats strong{font-family:Georgia,serif;font-size:28px}.run-stats small{font:14px Arial}.square{position:absolute;right:5%;top:max(25px,env(safe-area-inset-top));width:52px;height:52px;background:var(--paper);border:0;border-radius:var(--radius);font-size:22px;font-weight:800}.boost{position:absolute;top:128px;left:5%;color:#273d27;font-size:13px;background:#f4f0e5db;border-radius:6px;padding:8px 12px}.boost:empty{display:none}.keyboard-hint{position:absolute;bottom:20px;width:100%;text-align:center;font-size:12px;color:#fff;background:#28372caa;padding:9px;margin:0}.keyboard-hint span{margin:0 18px}.touch-controls{position:absolute;bottom:max(40px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:9px}.touch-controls button{height:49px;width:52px;border:1px solid #f4f0e5a0;background:#f4f0e5dd;border-radius:10px;font-size:23px;color:var(--ink)}.tutorial{position:absolute;top:26%;left:50%;transform:translateX(-50%);width:min(400px,90%);background:var(--paper);padding:22px 26px;border-radius:var(--radius);box-shadow:0 8px 30px #293b3330;text-align:center}.tutorial>span{font-size:12px;color:#7d623c}.tutorial h2{font-size:26px;margin:10px 0}.tutorial p{font-size:14px}.tutorial .primary{margin:auto}.toast{position:absolute;top:140px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--green);color:var(--paper);border-radius:8px;max-width:90%;font-size:14px;z-index:4}.save-warning{position:absolute;bottom:52px;left:4%;right:4%;background:#fff2cb;padding:10px 16px;font-size:13px;border:1px solid #ae8c41;border-radius:8px;z-index:4}.fatal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--paper);padding:32px;border-radius:12px;width:min(90%,470px);z-index:8}
dialog{border:1px solid #d3d3bd;background:var(--paper);color:var(--ink);border-radius:16px;padding:32px;width:min(440px,calc(100% - 28px));max-height:90svh;box-shadow:0 20px 100px #17271c55}dialog::backdrop{background:#25352cc4;backdrop-filter:blur(5px)}h2{font-family:Georgia,serif;font-size:31px;letter-spacing:-.5px;line-height:1.1;margin:0 0 18px}dialog p{font-size:14px;color:#5c6656}dialog .primary{width:100%;margin-top:22px}.secondary{width:100%;background:transparent;border:1px solid #acb39c;border-radius:var(--radius);margin-top:13px;padding:13px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.close{border:0;background:none;font-size:27px;min-width:44px;line-height:1;flex:none;margin-top:-8px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}.result-grid strong{display:block;font-family:Georgia,serif;font-size:31px}.result-grid span{font-size:12px;color:#626b5e}.setting{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid #cfd1bf;font-size:14px}.setting input{accent-color:var(--green);width:22px;height:22px}.setting select{padding:9px 6px;background:#ebeadd;border:1px solid #a8b095;border-radius:5px;max-width:145px}.fine{font-size:12px!important}.playing .vignette{display:none}.playing #topbar,.playing footer{display:none}
@media(min-width:1000px) and (min-height:800px){.intro{top:22%}.season-summary{bottom:15%}}
@media(max-width:800px){#game{min-height:720px}.topbar{padding:20px 24px}.build-tag{display:none}.intro{top:19%;left:6%;max-width:380px}h1{font-size:58px}.lead{font-size:18px}.landscape-note{display:none}.season-summary{right:5%;bottom:10%;width:240px}.description{max-width:285px}.desktop-break{display:none}}
@media(max-width:800px){#game{min-height:640px;height:100svh}.topbar{padding:15px 20px}.wordmark{font-size:11px}.wordmark svg{width:32px}.quiet{padding:8px 14px;font-size:12px}.vignette{background:linear-gradient(0deg,#e9e4d6 5%,#e9e4d6ef 36%,transparent 62%)}.intro{top:auto;left:24px;right:24px;bottom:164px;max-width:none}.eyebrow{font-size:11px;margin-bottom:8px}h1{font-size:48px;letter-spacing:-1.6px;line-height:.96;margin-bottom:15px}h1 br{display:none}.lead{font-size:15px;line-height:1.4;margin-bottom:10px}.lead br{display:none}.description{display:none}.primary{width:100%;font-size:15px;padding:14px 20px;min-height:49px}.menu-links{margin-top:7px;justify-content:center;gap:20px}.text-button{font-size:12px}.season-summary{left:24px;right:24px;bottom:49px;width:auto;padding:13px 16px;background:#f4f0e5b8}.season-summary p{display:none}.records{padding-top:9px;margin-top:9px;font-size:10px}.records strong{display:inline;margin-left:8px;font-size:13px}.season-top{font-size:11px}progress{margin-top:9px;height:5px}footer{padding:10px 24px;font-size:10px}footer>span{max-width:135px}footer .text-button{font-size:10px;max-width:125px;text-align:right}.run-stats{top:18px;left:16px;padding:12px 15px;gap:22px}.run-stats strong{font-size:25px}.run-stats span{font-size:10px}.square{top:18px;right:16px;width:46px;height:46px}.boost{top:111px;left:16px}.keyboard-hint{display:none}.touch-controls{bottom:max(22px,env(safe-area-inset-bottom))}.toast{top:115px;width:max-content;text-align:center}.tutorial{top:23%;padding:20px}.save-warning{bottom:8px;font-size:11px}dialog{padding:25px}h2{font-size:29px}}
@media(max-height:620px) and (min-width:541px){#game{min-height:480px}.intro{top:19%}h1{font-size:46px;margin-bottom:12px}.eyebrow{margin-bottom:10px}.lead{font-size:16px;margin-bottom:10px}.description{display:none}.season-summary{bottom:12%;padding:14px 18px}.landscape-note{display:none}.primary{padding:12px 20px}.topbar{padding-top:14px}.touch-controls{bottom:36px}.tutorial{top:23%;padding:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.playing#game{min-height:0;height:100svh}
.preview-open{display:block;width:100%;margin-top:8px;min-height:34px;text-align:left;color:var(--green)}
.season-preview{position:absolute;right:5%;top:105px;width:278px;padding:15px 18px;border:1px solid #c9c9b7;border-radius:10px;background:#f4f0e5f5;pointer-events:auto;z-index:2}
.season-preview p{font-size:13px;font-weight:700;margin:0 0 9px}.season-choices{display:flex;gap:6px}.season-choices button{flex:1;background:transparent;border:1px solid #aab19c;border-radius:7px;min-height:40px;font-size:13px}.season-choices button[aria-pressed="true"]{color:#fff9e8;background:var(--green);border-color:var(--green)}.season-preview small{display:block;font-size:11px;color:#67715f;margin:10px 0 0}.season-preview .text-button{min-height:30px;font-size:11px}.menu:has(.season-preview:not([hidden])) .landscape-note{display:none}
@media(max-width:800px){.intro{bottom:205px}.preview-open{font-size:11px;min-height:29px;margin-top:5px}.season-preview{top:74px;right:24px;left:24px;width:auto;padding:10px 13px}.season-preview p{font-size:11px;margin-bottom:6px}.season-choices{max-width:270px}.season-choices button{min-height:36px;font-size:12px}.season-preview small{display:inline-block;margin:8px 10px 0 0;font-size:10px}.season-preview .text-button{font-size:10px;min-height:25px}.menu:has(.season-preview:not([hidden])) .intro{visibility:hidden}}
@media(min-width:541px) and (max-width:800px){.intro{bottom:174px;max-width:580px}.intro h1{font-size:54px}.season-summary{bottom:53px}.lead{max-width:500px}.intro .primary{max-width:360px}.menu-links{justify-content:flex-start}.season-summary{max-width:580px}}
.menu:has(.season-preview:not([hidden])) .intro{visibility:hidden}
#game:has(.season-preview:not([hidden])) .vignette{opacity:0}
#game:has(#wildlife-preview:not([hidden])) .season-summary{visibility:hidden}
.wildlife-list .text-button{justify-self:start;min-height:36px;font-size:12px}

/* Warm trail palette and substantial, thumb-sized game controls. */
.route-choices{display:grid;gap:12px;margin-top:21px}.route-choices button{padding:15px 18px;text-align:left;border:2px solid #c2cbaa;background:#e9ebd2;border-radius:13px;box-shadow:0 3px 0 #bbc5a2}.route-choices button[aria-pressed="true"]{border-color:#307352;background:#d5e2af}.route-choices strong{display:block;font-size:16px}.route-choices span{display:block;font-size:12px;line-height:1.5;margin-top:6px;color:#52644a}.route-choices button:nth-child(2){border-left:7px solid #d4a32d}.route-choices button:nth-child(3){border-left:7px solid #bb6e47}
.route-label{position:absolute;top:124px;left:5%;color:#fff9df;background:#315f4ddd;border:1px solid #b8cc8e;border-radius:8px;padding:7px 12px;font-size:12px;font-weight:700}
.run-goal{position:absolute;left:5%;bottom:95px;width:198px;padding:12px 15px;background:#fff6dff2;border:2px solid #fffbe6;border-radius:14px;color:#304b3a;box-shadow:0 3px 0 #345c4a44}
.goal-caption{display:block;font-size:10px;color:#61744d;margin-bottom:5px}.run-goal strong{display:block;font-size:12px;line-height:1.4}.run-goal #goal-count{display:block;margin-top:5px;font-size:12px;font-weight:700}.run-goal progress{margin-top:8px;height:6px}
.pickup-feedback{position:absolute;left:50%;bottom:35%;color:#ffe070;text-shadow:0 2px 0 #62441d,1px 0 #62441d,-1px 0 #62441d;font-size:25px;font-weight:900;pointer-events:none}
.hud .boost{top:124px;right:5%;left:auto;max-width:210px;font-size:12px;line-height:1.5}
.run-stats strong{display:inline-block;transform-origin:center}
.result-goals-title{font-size:13px;margin:22px 0 10px}.result-goals{list-style:none;padding:0;margin:0}.result-goals li{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.result-goals strong{white-space:nowrap;color:#697358}.result-goals .complete strong{color:#337342}
@media(max-width:800px){.route-label{top:109px;left:14px;font-size:10px;padding:6px 9px}.hud .boost{top:109px;right:14px;left:auto;max-width:143px;font-size:10px;padding:6px 8px}.run-goal{top:149px;bottom:auto;left:14px;right:14px;width:auto;padding:6px 10px;display:grid;grid-template-columns:1fr auto;gap:3px 8px;border-radius:9px}.run-goal strong{font-size:11px}.goal-caption{display:none}.run-goal #goal-count{font-size:10px;margin:0}.run-goal progress{grid-column:1/-1;height:3px;margin:0}.pickup-feedback{font-size:22px;bottom:39%}.result-goals li{font-size:11px}}
@media(max-height:620px) and (min-width:541px){.run-goal{top:auto;bottom:58px;left:4%;right:auto;width:165px;padding:8px 11px}.goal-caption{display:none}.run-goal strong,.run-goal #goal-count{font-size:10px}.route-label{top:106px}.hud .boost{top:106px}}
:root{--ink:#263f37;--muted:#617164;--paper:#fff6df;--green:#296859;--accent:#e89b32;--line:#d5cfad;--radius:16px;background:#afc69a}
.vignette{background:linear-gradient(90deg,#e8ecd0df,#e9eac580 28%,transparent 57%)}
.wordmark{color:#244e45}.wordmark svg{fill:#2a6253}.build-tag{color:#3d6156;font-size:11px}
.quiet{border:2px solid #fff5d6;border-radius:14px;background:#fff6dfe8;box-shadow:0 3px 0 #43664e38;font-weight:700}
.intro{top:21%;left:7%}.eyebrow{color:#795223;font-weight:800}
h1{font-family:'Arial Black',Arial,sans-serif;font-size:clamp(48px,5.4vw,82px);line-height:.98;letter-spacing:-3px;font-weight:950;color:#fff1c2;filter:drop-shadow(0 6px 0 #874523)}
h1 span{display:block;-webkit-text-stroke:5px #744726;paint-order:stroke fill}h1 span:last-child{color:#ffc251;font-size:.94em}
.lead{font-size:19px;font-weight:700;line-height:1.45;color:#2f5145}.description{color:#476052}
.primary{border:2px solid #fff0af;background:#ffc24b;color:#503719;border-radius:16px;padding:16px 29px;font-size:17px;font-weight:900;box-shadow:0 5px 0 #a96529,0 9px 17px #51402526;min-width:244px;transition:filter .15s,transform .15s}
.primary:hover{background:#ffcd61;filter:none}.primary:active{box-shadow:0 2px 0 #a96529}.menu-links{margin-top:15px;color:#466052}
.season-summary{background:var(--paper);border:3px solid #fffcef;border-radius:18px;padding:19px 20px;box-shadow:0 5px 0 #60765140,0 12px 30px #344c3625;backdrop-filter:none}
.season-top{font-weight:800}progress{height:11px;background:#e0dfba}progress::-webkit-progress-bar{background:#e0dfba;box-shadow:inset 0 2px 2px #5063441c}progress::-webkit-progress-value{background:#78a847;border-radius:20px}progress::-moz-progress-bar{background:#78a847}
.records strong{font-size:20px;font-weight:800}.landscape-note{font-size:15px;font-weight:700;color:#335c50;text-shadow:0 1px 6px #eff5d7}.landscape-note small{font-weight:400;color:#335c50}
footer{color:#344e38;background:linear-gradient(transparent,#d5d2a6a3)}
.run-stats{background:#fff6dff5;border:2px solid #fffce8;border-radius:17px;box-shadow:0 4px 0 #345c4a55}.run-stats span{font-weight:700}.run-stats strong{font-family:Arial,sans-serif;font-weight:900;font-variant-numeric:tabular-nums}.run-stats>div:nth-child(2) strong{color:#91611e}.run-stats>div:nth-child(3) strong{color:#517d30}
.square{border:2px solid #fffce8;border-radius:16px;box-shadow:0 4px 0 #345c4a55}.boost{color:#fff9d9;font-weight:700;background:#2c6759f0;border:1px solid #a2cf9f;border-radius:10px}
.touch-controls{gap:11px;bottom:max(47px,env(safe-area-inset-bottom))}.touch-controls button{height:50px;width:56px;border:2px solid #fff6dd;background:#fff3d8e8;border-radius:15px;box-shadow:0 4px 0 #3a614c70;font-weight:700}
.tutorial{border:3px solid #fff9e9;border-radius:20px;box-shadow:0 6px 0 #315e4d40}.toast{background:#2c6759;border:2px solid #bcd896;border-radius:12px}
dialog{border:3px solid #fffbed;border-radius:22px;box-shadow:0 9px 0 #31564670,0 25px 80px #17271c44}dialog::backdrop{background:#193f35a8;backdrop-filter:blur(4px)}
h2{font-family:Arial,sans-serif;font-weight:900;letter-spacing:-.7px}.secondary{background:#e6e8ca;border:1px solid #bfc8a6;border-radius:13px;margin-top:16px;font-weight:700}.result-grid strong{font-family:Arial,sans-serif;font-weight:900}
.season-preview{border:3px solid #fffbed;border-radius:16px;background:var(--paper)}.season-choices button{background:#e6e8ca;border:1px solid #bdcaa4;border-radius:9px;font-weight:700}
@media(max-width:800px){
  #game{min-height:700px}.vignette{background:linear-gradient(0deg,#eeebc9 8%,#ece8c6eb 35%,transparent 62%)}.intro{top:auto;left:24px;right:24px;bottom:221px}
  h1{font-size:49px;letter-spacing:-2px;line-height:.98;margin-bottom:17px;filter:drop-shadow(0 4px 0 #874523)}h1 span{-webkit-text-stroke:4px #744726}
  .lead{font-size:14px;line-height:1.4;margin-bottom:14px}.primary{font-size:16px;padding:13px 18px;min-height:51px}.menu-links{margin-top:10px}
  .season-summary{bottom:53px;padding:13px 16px}.records strong{font-size:14px}progress{height:8px}.touch-controls{bottom:max(25px,env(safe-area-inset-bottom))}.run-stats{left:14px;padding:11px 14px;gap:20px}.run-stats strong{font-size:23px}.run-stats span{font-size:9px}.square{right:14px}.toast{font-size:12px}
}
@media(min-width:541px) and (max-width:800px){.intro{bottom:208px} .intro h1{font-size:64px}.lead{max-width:420px}}
@media(max-height:620px) and (min-width:541px){#game{min-height:460px}.intro{top:22%;bottom:auto;left:6%;max-width:46%}h1,.intro h1{font-size:44px;margin-bottom:13px}.eyebrow{display:none}.lead{font-size:14px}.season-summary{left:auto;right:4%;bottom:14%;width:245px}.primary{padding:11px 18px}}


.audio-controls{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:12px 16px;padding:18px 0;border-bottom:1px solid var(--line);font-size:13px}.audio-controls input{width:100%;accent-color:var(--green);min-height:24px}.audio-controls button,.audio-controls p{grid-column:1/-1;margin:0}.audio-controls p{text-align:center}@media(max-width:400px){.audio-controls{grid-template-columns:1fr 100px;gap:12px}}
.menu-links{gap:16px;flex-wrap:wrap}.result-goals li{flex-wrap:wrap}.result-goals progress{width:100%;height:4px;margin:5px 0 0}.mission-list li{padding:16px 0;font-size:14px;gap:8px}.mission-list strong{font-size:12px}.primary:disabled{cursor:default;box-shadow:none;background:#78856c}.score-readout{position:absolute;right:calc(5% + 72px);top:29px;color:#305640;background:#fff6dfee;padding:9px 13px;border-radius:12px;font-size:11px}.score-readout strong{display:block;font-size:18px;margin-top:3px}@media(max-width:800px){.score-readout{right:14px;top:71px;font-size:9px;padding:3px 8px}.score-readout strong{display:inline;font-size:12px;margin-left:5px}.menu-links{gap:13px}.menu-links .text-button{font-size:11px}}
.bank-button{border:0;background:transparent;padding:0;color:inherit;font-size:inherit;text-align:right;min-height:32px;text-decoration:underline;text-underline-offset:3px}.bank-button small{display:block;font-size:10px;margin-top:4px;color:var(--green)}.upgrade-row{padding:15px 0;border-top:1px solid var(--line)}.upgrade-row h3{margin:0;font-size:17px}.upgrade-row p{font-size:12px;margin:7px 0}.upgrade-row button{margin-top:8px}.upgrade-row small{display:block;margin-top:8px;color:#795531}.wildlife-list{padding:0;list-style:none}.wildlife-list li{border-top:1px solid var(--line);padding:12px 0;display:grid;gap:5px}.wildlife-list span{font-size:12px;color:var(--muted)}.wildlife-list .discovered strong{color:#27705b}#album-count{font-size:12px;font-weight:normal}#share-preview{display:block;width:100%;max-height:38vh;object-fit:contain;background:#b9d1a7;border-radius:8px}#share-dialog label{font-size:12px}#share-caption{width:100%;resize:vertical;min-height:80px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fffbef;color:var(--ink);font:13px Arial;line-height:1.45}#share-download{text-align:center;text-decoration:none;box-sizing:border-box}#share-status{font-size:12px}.upgrade-row button:disabled{cursor:default}@media(max-width:800px){.bank-button{min-height:30px}.bank-button small{font-size:9px;margin-top:3px}.season-summary .records{align-items:center}}
.dash-control{position:absolute;right:5%;bottom:95px;width:228px;padding:9px 12px;background:#fff4d9ef;border:2px solid #fffbe8;border-radius:14px;box-shadow:0 4px 0 #345c4a55}.dash-control button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;background:transparent;font-weight:800;font-size:14px;min-height:38px}.dash-control button:disabled{opacity:1;cursor:default;color:#65735a}.dash-control svg{width:21px;height:25px;fill:#b09151}.dash-control progress{height:5px;margin:2px 0 4px}.dash-control>span{display:block;font-size:10px;line-height:1.35;text-align:center;color:#526344}.dash-control.ready{background:#ffcb55;border-color:#fff0b6}.dash-control.ready button,.dash-control.active button{color:#523c1a}.dash-control.ready svg,.dash-control.active svg{fill:#95501d}.dash-control.active{background:#ffde86}.dash-control.ready progress::-webkit-progress-value,.dash-control.active progress::-webkit-progress-value{background:#bc7630}
@media(max-width:800px){.dash-control{width:206px;bottom:91px;left:50%;right:auto;transform:translateX(-50%);padding:5px 10px}.dash-control button{font-size:12px;min-height:32px}.dash-control>span{font-size:9px}.dash-control svg{width:17px;height:20px}.dash-control progress{height:4px;margin:0 0 2px}}
@media(max-height:620px) and (min-width:541px){.dash-control{left:auto;right:4%;bottom:69px;transform:none;width:182px}.dash-control>span{display:none}}
@media(max-width:800px){.dash-control{width:112px;left:auto;right:14px;bottom:91px;transform:none;padding:5px 8px}.dash-control button{font-size:11px;gap:4px;min-height:44px}.dash-control svg{flex-shrink:0;width:15px}.dash-control>span{display:none}}
/* Natural materials and quieter framing keep the scene and animal prominent. */
:root{--ink:#233e36;--muted:#697361;--paper:#faf3e2;--green:#356753;--line:#d5d6c2;--radius:12px}
.vignette{background:linear-gradient(90deg,#e9e9d9ee 0%,#e9e9d9b0 25%,#e9e9d921 49%,transparent 63%)}
h1{font-size:clamp(48px,5vw,72px);letter-spacing:-3px;line-height:1.04;color:#274c3e;filter:none}h1 span{-webkit-text-stroke:0;text-shadow:none}h1 span:last-child{color:#936735;font-size:1em}
.lead{font-weight:600;color:#334c40}.eyebrow{color:#6c7653}.primary{border:1px solid #ffe3a3;border-radius:12px;background:#eeb752;box-shadow:0 3px 0 #a47432,0 8px 22px #3b443c1a;font-size:16px}.primary:hover{background:#fac565}.quiet{border:1px solid #e9e8d4;border-radius:10px;box-shadow:0 3px 12px #354b3512;background:#faf5e8ed}.season-summary{border:1px solid #fffced;border-radius:14px;box-shadow:0 10px 28px #344c3620;background:#faf4e5f5}.season-top{font-weight:700}.run-stats{border:1px solid #fffbe9;border-radius:12px;box-shadow:0 4px 18px #30443720}.square{border:1px solid #fffbe9;border-radius:12px;box-shadow:0 4px 18px #30443720}.touch-controls button{border:1px solid #fff7e4;border-radius:12px;box-shadow:0 3px 0 #47614d66}.dash-control{border:1px solid #fff7e5;box-shadow:0 4px 18px #30443720}.score-readout{border-radius:8px}dialog{border:1px solid #fffbed;border-radius:16px;box-shadow:0 18px 70px #17271c55}.secondary{border-radius:10px}.tutorial{border:1px solid #fff9e9;border-radius:16px;box-shadow:0 8px 26px #315e4d30}
@media(max-width:800px){.vignette{background:linear-gradient(0deg,#ecebdc 8%,#e9e9d9ee 30%,transparent 62%)}h1,.intro h1{font-size:49px;line-height:1.02;letter-spacing:-2px;filter:none}h1 span{-webkit-text-stroke:0}.primary{font-size:16px}.season-summary{border-width:1px}}
@media(min-width:541px) and (max-width:800px){.intro h1{font-size:61px}}
@media(max-height:620px) and (min-width:541px){h1,.intro h1{font-size:44px}}
.landscape-note{background:#faf4e5e8;border:1px solid #fff9e9;padding:11px 15px;border-radius:10px;text-shadow:none}.landscape-note .note-line{display:none}
.view-choices{margin-top:8px}.view-choices button{font-size:11px;min-height:34px}

/* Keep the complete outcome readable before the replay action receives focus. */
.ending-caption{position:absolute;z-index:5;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);text-align:center;max-width:calc(100% - 32px);width:310px;padding:14px 20px;background:#faf4e5f2;border:1px solid #fffbed;border-radius:14px;box-shadow:0 7px 24px #233e3626}
.ending-caption p{margin:0 0 10px;font-size:16px;font-weight:700}.ending-caption button{min-height:44px;padding:10px 22px;font-size:14px;width:100%}
.hud.ending .touch-controls,.hud.ending .keyboard-hint,.hud.ending .dash-control,.hud.ending .run-goal,.hud.ending .boost,.hud.ending #pause{visibility:hidden}
.result-season-progress{padding:14px 16px;background:#e7ead6;border-radius:10px;margin:18px 0}.result-season-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}.result-season-progress progress{margin:10px 0 6px}.result-season-progress small{display:block;font-size:12px;line-height:1.5;color:#526347}.result-tip{padding-left:12px;border-left:3px solid #b9914b;font-size:13px!important}.milestone .result-season-progress{background:#eee0b6}.milestone #result-label{color:#865b20}
#result-title:focus{outline:none}.save-note{padding:10px 12px;border-left:3px solid var(--green);background:#e5e9d5;border-radius:3px}
.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-actions .primary{grid-column:1/-1;width:100%;margin:0!important}.result-actions .secondary{margin:0!important;min-width:0;min-height:44px;padding:10px!important}.result-actions+.result-season-progress{margin-top:22px}#result-details{border-top:1px solid var(--line);padding-top:8px}#result-details summary{cursor:pointer;min-height:44px;align-content:center;font-size:13px;font-weight:700}#result-details summary:focus-visible{outline:3px solid #b9914b;outline-offset:3px}#result-dialog .save-note{font-size:12px;margin:12px 0 18px;padding:0;border:0;background:transparent;color:#4f6654;line-height:1.5}
@media(max-width:600px){#result-dialog{padding:22px}#result-dialog h2{font-size:26px;margin-bottom:12px}#result-dialog .result-grid{margin:16px 0}#result-dialog .primary{margin-top:16px}#result-dialog .secondary{margin-top:9px;padding:11px}}

.arrival-caption{position:absolute;z-index:12;top:18%;left:50%;transform:translateX(-50%);width:min(90%,430px);text-align:center;pointer-events:none;color:#293c32}
.arrival-caption p{background:#fff6dfed;padding:12px 18px;border-radius:12px;box-shadow:0 4px 20px #293c3218;line-height:1.45}
.arrival-caption button{pointer-events:auto;background:#fff6df}
#daily-open{color:#425c2d;font-weight:700}
#daily-dialog .setting{margin-top:18px}
@media(max-width:800px){.arrival-caption{top:20%}.menu-links{gap:4px 16px;flex-wrap:wrap}}

#game:not(.playing) .arrival-caption{top:76px;font-size:13px}
@media(max-width:800px){#game:not(.playing) .arrival-caption{top:auto;bottom:12%;width:85%}}

.touch-controls button:disabled{opacity:.4;cursor:default}
@media(max-width:800px){#game:not(.playing) .arrival-caption{top:76px;bottom:auto}.arrival-caption p{padding:8px 12px}.arrival-caption button{font-size:12px;min-height:36px;padding:8px 12px}}

/* Browser zoom by double tap is disabled; pinch zoom remains available outside the playfield. */
html,body,#game,dialog,button,a,summary{touch-action:manipulation}
#scene{touch-action:none}
/* Text and animal have separate grid cells, including short phone screens. */
#menu{inset:92px 5% 60px;display:grid;grid-template-columns:43% minmax(0,1fr);grid-template-rows:minmax(190px,1fr) auto;gap:22px 5%}
#hero-stage{grid-column:2;grid-row:1;min-height:190px}
#menu .intro{position:static;grid-column:1;grid-row:1/3;align-self:center;max-width:none;min-width:0}
#menu .season-summary{position:static;grid-column:2;grid-row:2;align-self:end;justify-self:stretch;width:auto;max-width:none;padding:16px 20px}
#menu .season-summary p{margin:8px 0 12px}
#menu .landscape-note{display:none}
#menu h1{font-size:clamp(38px,4.5vw,65px)}
#menu .menu-links{column-gap:16px;row-gap:0}
#menu .menu-links button{min-height:44px}
#menu .season-preview{top:0;right:0}
#game:has(.season-preview:not([hidden])) #hero-stage{visibility:hidden}
.result-quests{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
#result-quest-note{font-size:12px;line-height:1.55;margin-bottom:0}
.result-quests button{margin-top:8px;font-size:13px}
.quest-track{border:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:3px;font-size:12px;min-height:36px;padding:4px 0;text-align:left;flex-basis:100%}
.quest-track[aria-pressed="true"]{text-decoration:none;font-weight:700}
@media(max-width:800px){
 #game:not(.playing){min-height:800px}
 #menu{inset:72px 22px 56px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(185px,1fr) auto auto;gap:12px}
 #hero-stage{grid-column:1;grid-row:1;min-height:185px}
 #menu .intro{grid-column:1;grid-row:2;align-self:end}
 #menu .season-summary{grid-column:1;grid-row:3;padding:12px 16px}
 #menu h1,#menu .intro h1{font-size:clamp(36px,8.8vw,52px);margin:0 0 10px;line-height:1.03}
 #menu .eyebrow{display:none}
 #menu .lead{font-size:13px;line-height:1.4;margin:0 0 12px;max-width:none}
 #menu .intro .primary{max-width:none}
 #menu .menu-links{justify-content:flex-start;gap:0 15px;margin-top:8px}
 #menu .menu-links button{font-size:12px}
 #menu .season-preview{top:76px;right:22px;left:22px;width:auto}
 #game:not(.playing) .arrival-caption{top:75px;font-size:12px}
}
@media(min-width:801px) and (max-height:650px){
 #game:not(.playing){min-height:610px}
 #menu{inset:78px 5% 50px;gap:12px 4%}
 #menu h1{font-size:40px}
 #menu .lead{font-size:16px}
}

.touch-controls button:active{background:#f5c363;transform:translateY(2px)}
.difficulty-picker{display:flex;gap:6px;margin:14px 0 0;max-width:355px}
.difficulty-picker button{flex:1;min-height:44px;border:1px solid #aebda5;border-radius:9px;background:#f4efdf;color:var(--ink);font:700 13px Arial;cursor:pointer}
.difficulty-picker button[aria-pressed="true"]{background:#355d46;color:#fff8df;border-color:#355d46}
.difficulty-picker button[data-difficulty="wild"][aria-pressed="true"]{background:#974b29;border-color:#974b29}
.difficulty-note{font-size:12px;line-height:1.45;margin:7px 0 14px;max-width:350px;min-height:18px}
.meme-moment{position:absolute;pointer-events:none;left:50%;top:22%;transform:translateX(-50%);max-width:min(520px,86%);padding:3px 5px;font:800 clamp(14px,1.4vw,18px)/1.4 Arial;text-align:center;overflow-wrap:anywhere}
.token-chain{position:absolute;right:5%;top:132px;width:156px;color:#364830;background:#fff4dceb;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:700}
.token-chain progress{height:4px;margin:6px 0 0}
.result-moment{font-size:17px!important;font-weight:700;color:#82502e;border-left:3px solid #bb8238;padding:8px 12px;background:#f3e7ce}
.hud.ending .meme-moment,.hud.ending .token-chain{visibility:hidden}
@media(max-width:800px){.difficulty-picker{max-width:none;margin-top:6px}.difficulty-note{font-size:11px;margin-bottom:10px}.meme-moment{top:27%;font-size:15px;width:max-content;max-width:85%;padding:8px 12px}.token-chain{top:auto;bottom:157px;right:14px;width:125px;font-size:11px}}
@media(max-width:800px){
 #game:not(.playing){height:auto;min-height:800px}
 #menu{position:relative;inset:auto;padding:72px 22px 56px;min-height:max(800px,100svh)}
}
/* A warm arcade treatment, with the portrait kept clear of controls. */
:root{--ink:#253e2f;--green:#315e42;--accent:#b6572d;--paper:#fff3d8;--line:#d2c8a6}
#hero-stage{display:grid;grid-template-rows:minmax(150px,1fr) 68px;gap:8px;min-height:236px}
#hero-portrait{min-height:150px;pointer-events:none}
.manul-interaction{align-self:end;justify-self:center;text-align:center;max-width:100%;pointer-events:none}
.manul-call{display:inline-flex;align-items:center;justify-content:center;gap:9px;pointer-events:auto;border:2px solid #31533b;border-radius:12px;padding:8px 15px;background:#fff2cd;box-shadow:0 3px 0 #31533b;font-size:13px;font-weight:800;min-height:42px}
.manul-call svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}
.manul-call kbd{border:1px solid #829273;border-radius:4px;padding:1px 4px;font:10px Arial}
.manul-call:disabled{opacity:.8;cursor:default}
#manul-response{font-size:11px;line-height:1.4;margin:7px 0 0;min-height:16px;max-width:340px;color:#263e2e;text-shadow:0 1px 2px #fff8da}
#menu h1{font-weight:950;letter-spacing:-2px;line-height:1.02;paint-order:stroke fill;-webkit-text-stroke:2px #fff4d5;text-shadow:0 4px 0 #b7a777}
#menu h1 span:last-child{color:#a44d29;-webkit-text-stroke:2px #fff4d5;text-shadow:0 4px 0 #d8b77b}
#menu .eyebrow{font-weight:800;color:#3e5940;letter-spacing:.07em;margin-bottom:12px}
#menu .description{font-size:13px;line-height:1.5;max-width:355px}
.primary{background:#efb84b;color:#293b26;border:2px solid #39482c;border-radius:13px;box-shadow:0 5px 0 #435336,0 9px 16px #273e2326;font-weight:900;transition:background .12s,transform .12s,box-shadow .12s}
.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #435336}
.primary:disabled{transform:none}
#menu .season-summary{background:#fff2d9f5;border:2px solid #5e704e;border-radius:16px;box-shadow:0 5px 0 #63734c,0 12px 28px #26392324;border-top:7px solid #688750}
.season-top{font-size:14px;color:#284a32}.season-summary progress{height:11px;border:1px solid #819266}
#menu .records{border-top:1px dashed #aeb696;padding-top:12px}.records strong{font-weight:900}
.difficulty-picker{border:2px solid #778667;border-radius:12px;padding:3px;background:#fff4d8;gap:4px}
.difficulty-picker button{border:0;border-radius:7px;background:transparent}
.difficulty-picker button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 #102d252c}
#menu .menu-links{margin-top:16px;column-gap:18px;row-gap:0}
#menu .menu-links button{font-weight:700;text-decoration-thickness:1px;text-underline-offset:5px}
#menu #daily-open{color:#335f32;text-decoration:underline}
#menu #missions-open{color:#965027}
.quiet,.secondary{border:1px solid #9da783;background:#fff3d9}
.run-stats{border:2px solid #415e3c;border-bottom-width:5px;background:#fff3dcef}
.run-stats strong{color:#35522f}.run-stats>div:nth-child(2) strong{color:#a76717}.run-stats>div:nth-child(3) strong{color:#517b2f}
.square,.touch-controls button{border:2px solid #49683e;box-shadow:0 4px 0 #405336;background:#fff0cf}
.run-goal{border-left:4px solid #d5a439}
.dialog-head h2{color:#315339}dialog{border:3px solid #5c704d;background:#fff4dd;box-shadow:0 7px 0 #394c34,0 22px 65px #17271c55}
.result-grid{background:#f1e5c6;border:0;border-radius:12px;padding:18px 12px}.result-grid strong{color:#315339}
#game:not(.playing)>#scene{touch-action:pan-y pinch-zoom;cursor:pointer}
@media(hover:hover){.primary:not(:disabled):hover{background:#ffca65;filter:none}.manul-call:not(:disabled):hover{background:#ffdf99}}
@media(max-width:800px){
 #hero-stage{grid-template-rows:minmax(150px,1fr) 68px;min-height:236px}
 #menu{gap:14px}
 .manul-call{font-size:12px;padding:7px 12px}.manul-call kbd{display:none}
 #manul-response{font-size:10px;max-width:290px}
 #menu h1,#menu .intro h1{font-size:clamp(34px,8.8vw,52px);margin-bottom:10px}
 #menu .menu-links{margin-top:10px;gap:0 14px}
 #menu .season-summary{padding:12px 14px}.season-top{font-size:11px}
 .difficulty-picker button{font-size:12px}.difficulty-note{margin-bottom:11px}
}
@media(min-width:801px) and (max-height:760px){#menu .description{display:none}#menu .lead{font-size:18px}#menu h1{font-size:54px}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
/* Keep the portrait large enough to read facial reactions on a phone. */
#hero-stage{grid-template-rows:minmax(190px,1fr) 68px;min-height:276px}
#hero-portrait{min-height:190px}
@media(max-width:800px){#hero-stage{grid-template-rows:minmax(190px,1fr) 68px;min-height:276px}}

/* Shared alignment rules keep content inside its own column at every width. */
dialog{padding:clamp(18px,4vw,32px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(100svh - 32px)}
dialog .primary,.tutorial .primary,.fatal .primary{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.dialog-head{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:start}
.dialog-head h2{min-width:0;overflow-wrap:anywhere;margin:0 0 18px}
.dialog-head .close{width:44px;height:44px;margin:-7px 0 0;padding:0}
#result-dialog{padding:clamp(18px,4vw,32px)}
#result-dialog .result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:18px 12px;text-align:center;align-items:start}
.result-grid>div{min-width:0;display:grid;gap:6px}
.result-grid strong{font-size:clamp(22px,5.8vw,31px);line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.result-grid span{display:block;line-height:1.4}
.result-season-progress>div,.season-top{align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.result-season-progress>div>span,.season-top>span:last-child{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.setting>span{min-width:0;overflow-wrap:anywhere}.setting input{flex:0 0 22px}.setting select{flex:0 1 145px;min-width:0}
.audio-controls{grid-template-columns:minmax(0,1fr) minmax(80px,130px)}
.audio-controls>*{min-width:0}.result-goals li>span{min-width:0;overflow-wrap:anywhere}.result-goals li>strong{margin-left:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}
.records{gap:16px;align-items:start}.records>*{min-width:0;flex:1}.records strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#hero-stage{grid-template-rows:minmax(190px,1fr) auto}.manul-interaction{width:100%;padding-bottom:4px}#manul-response{margin:8px auto 0;min-height:30px}
.difficulty-picker button{min-width:0;padding:8px}.season-choices button{min-width:0;overflow-wrap:anywhere}
.toast{top:auto;bottom:180px;width:max-content;text-align:center;max-width:calc(100% - 32px)}
@media(max-width:800px){#menu .records strong{display:block;margin:5px 0 0}}
@media(max-width:360px){.result-actions{grid-template-columns:minmax(0,1fr)}.setting{gap:10px}.setting select{flex-basis:116px}.audio-controls{grid-template-columns:minmax(0,1fr) 90px}}
@media(max-height:500px){.hud-top{gap:5px 10px}.hud-top>.run-goal,.hud-top>.token-chain{display:none}.hud-top>.meme-moment{font-size:12px;padding:5px 8px}.touch-controls{bottom:max(12px,env(safe-area-inset-bottom))}.keyboard-hint{display:none}.toast{bottom:145px}.tutorial{top:100px;max-height:calc(100svh - 170px);overflow:auto}}

body:has(dialog[open]){overflow:hidden}

/* Outline follows the letters so brief run messages leave the track visible. */
.meme-moment,#game.playing .toast{background:transparent;border:0;border-radius:0;box-shadow:none;color:#fff8e7;-webkit-text-stroke:2px #243128;paint-order:stroke fill;text-shadow:1px 0 #243128,-1px 0 #243128,0 1px #243128,0 -1px #243128,0 2px 2px #101c18b3}
#game.playing .toast{font-size:13px;font-weight:700;line-height:1.45;padding:4px 8px;pointer-events:none;overflow-wrap:anywhere}
.meme-moment[data-kind="dash"]{color:#ffe3a0}

.result-goals li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px}
.result-goals li>strong{max-width:100px}.result-goals progress,.result-goals .quest-track{grid-column:1/-1;width:100%;margin:0}
@media(max-width:400px){dialog h2,#result-dialog h2{font-size:24px;line-height:1.15;letter-spacing:-.5px}.dialog-head{gap:8px}}

@media(max-width:800px){.run-stats strong.wide-count{font-size:12px;line-height:1.6}}

@media(min-width:801px) and (min-height:501px){.touch-controls{bottom:78px}}

:root{--host-top:var(--safe-area-inset-top,0px);--host-right:var(--safe-area-inset-right,0px);--host-bottom:var(--safe-area-inset-bottom,0px);--host-left:var(--safe-area-inset-left,0px);--safe-top:max(env(safe-area-inset-top,0px),var(--host-top));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--host-bottom))}
.topbar{padding-top:calc(18px + var(--safe-top))}.hud-top{top:calc(18px + var(--safe-top));left:max(5%,var(--host-left));right:max(5%,var(--host-right))}
.playing#game{height:var(--tg-viewport-stable-height,100svh)}
.touch-controls{margin-bottom:var(--safe-bottom)}
@media(max-width:800px){#menu{padding-top:calc(72px + var(--safe-top));padding-bottom:calc(66px + var(--safe-bottom))}footer{padding-bottom:calc(10px + var(--safe-bottom))}.dash-control{bottom:calc(91px + var(--safe-bottom))}}

@media(max-width:800px){.hud-top{left:max(14px,var(--host-left));right:max(14px,var(--host-right))}}

.age-rating{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:2px solid currentColor;border-radius:8px;font-size:22px;font-weight:800;background:#fff4dc;color:#285440}

/* Run information sits at the edges; outlined text stays readable over terrain. */
#game{--hud-edge:max(12px,env(safe-area-inset-left),var(--host-left));--hud-right:max(12px,env(safe-area-inset-right),var(--host-right));--hud-outline:#25382b}
.hud-top{position:absolute;display:grid;align-items:start;top:calc(12px + var(--safe-top));left:var(--hud-edge);right:var(--hud-right);grid-template-columns:44px minmax(0,1fr);gap:8px 12px}
.hud-top>.run-stats,.hud-top>.square,.hud-top>.score-readout,.hud-top>.route-label,.hud-top>.token-chain,.hud-top>.meme-moment{position:static;inset:auto;transform:none;margin:0;min-width:0}
.hud-top>.square{grid-area:1/1;width:44px;height:44px;border-radius:12px;font-size:23px;box-shadow:0 2px 0 #405336}
.hud-top>.run-stats{grid-area:1/2;justify-self:end;align-self:center;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 16px;padding:0;border:0;background:none;box-shadow:none;border-radius:0;max-width:100%}
.hud .run-stats>div{display:flex;align-items:center;gap:5px;min-width:0}
.hud .stat-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
.hud .stat-icon{flex:none;width:22px;height:22px;stroke:#fff2d4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none;filter:drop-shadow(0 1px 1px #203429)}
.hud .token-icon{fill:#f9c548;stroke:#775014}.hud .token-icon path,.hud .token-icon ellipse{fill:#a96b1e;stroke:none}
.hud .food-icon{fill:#e5e0c9;stroke:#394936}.hud .distance-icon{stroke-width:1.8}
.hud .run-stats strong{font:900 23px/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal;color:#fff8df;paint-order:stroke fill;-webkit-text-stroke:3px var(--hud-outline);text-shadow:0 2px 2px #182b25;transform-origin:right center}
.hud .run-stats>div:nth-child(2) strong{color:#ffdb6e}.hud .run-stats>div:nth-child(3) strong{color:#e3efc4}
.hud .run-stats strong.wide-count{font-size:17px}
.hud-top>.route-label{grid-area:2/1/3/3;justify-self:start;max-width:calc(100% - 112px);padding:0;background:none;border:0;border-radius:0;color:#fff8df;font-size:11px;line-height:1.4}
.hud-top>.score-readout{grid-area:2/2;justify-self:end;max-width:110px;padding:0;background:none;border:0;border-radius:0;color:#fff8df;font-size:10px;line-height:1.4;box-shadow:none}
.hud-top>.score-readout strong{font-size:11px;display:inline;margin:0 0 0 3px}
.hud-top>.token-chain{grid-area:3/2;justify-self:end;width:auto;max-width:150px;background:none;padding:0;color:#ffdf8f;font-size:10px;border:0;box-shadow:none}
.hud-top>.token-chain progress{height:3px;margin-top:3px}
.hud-top>.meme-moment{grid-area:4/1/5/3;font-size:14px;max-width:min(430px,100%);padding:0}
.hud-bottom{position:absolute;left:var(--hud-edge);bottom:calc(113px + var(--safe-bottom));width:min(235px,44%);display:grid;gap:10px}
.hud-bottom .boost{position:static;inset:auto;margin:0;padding:0;max-width:100%;white-space:pre-line;border:0;background:none;box-shadow:none;color:#e1f2d5;font-size:12px;line-height:1.55}
.hud .run-goal{display:block;position:static;inset:auto;margin:0;padding:0;width:auto;min-width:0;background:none;border:0;border-radius:0;box-shadow:none;color:#fff6dc}
.hud .goal-caption{display:none}.hud .run-goal strong{font-size:12px;line-height:1.4}.hud .run-goal #goal-count{display:block;margin:3px 0 0;font-size:11px}.hud .run-goal progress{height:4px;margin-top:5px;background:#243b2b80;border:1px solid #fff4d650;box-shadow:0 1px 2px #26362a}
.hud .boost,.hud .run-goal strong,.hud #goal-count,.hud .route-label,.hud .score-readout,.hud .token-chain{paint-order:stroke fill;-webkit-text-stroke:2.5px var(--hud-outline);text-shadow:0 1px 2px #1d2d20;font-weight:700}
.hud .dash-control{right:var(--hud-right);bottom:calc(113px + var(--safe-bottom));width:132px;padding:5px 8px;border-radius:11px;border-width:1px;box-shadow:0 2px 0 #345c4a55;background:#fff4d9c7}
.hud .dash-control button{font-size:12px;min-height:36px;gap:5px}.hud .dash-control svg{width:16px;height:20px}.hud .dash-control.ready{background:#ffce62}.hud .dash-control.active{background:#ffe294}.hud .dash-control>span{display:none}.hud .dash-control progress{margin:2px 0;height:4px}
.hud .touch-controls{bottom:calc(45px + var(--safe-bottom));margin-bottom:0;gap:8px}.hud .touch-controls button{width:48px;height:46px;border-radius:12px;border-width:1px;box-shadow:0 2px 0 #405336;font-size:24px;background:#fff0cfd9}
.hud .keyboard-hint{background:none;padding:0;color:#fff8df;font-size:10px;bottom:calc(12px + var(--safe-bottom));text-shadow:0 1px 2px #142f25}.hud .keyboard-hint span{margin:0 7px}
#game.playing .toast{top:calc(120px + var(--safe-top));bottom:auto;padding:3px 5px;max-width:min(440px,88%);font-size:12px;line-height:1.4}
@media(max-width:420px){.hud-top{gap:6px 9px}.hud-top>.run-stats{gap:8px 10px}.hud .run-stats strong{font-size:19px}.hud .run-stats strong.wide-count{font-size:14px}.hud .stat-icon{width:19px;height:19px}.hud .run-stats>div{gap:3px}.hud-bottom{width:44%;gap:7px}.hud .run-goal strong,.hud-bottom .boost{font-size:11px}.hud .dash-control{width:116px}.hud .keyboard-hint{display:none}.hud .touch-controls{bottom:calc(22px + var(--safe-bottom))}.hud-bottom,.hud .dash-control{bottom:calc(86px + var(--safe-bottom))}}
@media(max-height:500px){.hud-bottom{bottom:calc(78px + var(--safe-bottom));width:min(215px,34%);gap:5px}.hud .run-goal strong{font-size:10px}.hud .dash-control{bottom:calc(19px + var(--safe-bottom));width:116px}.hud .touch-controls{bottom:calc(19px + var(--safe-bottom))}.hud-top>.token-chain{display:none}.hud-top>.meme-moment{font-size:12px;max-width:50%;justify-self:end}.hud .keyboard-hint{display:none}#game.playing .toast{top:calc(92px + var(--safe-top));left:auto;right:var(--hud-right);transform:none;max-width:40%;font-size:11px}}
.legal-links{display:flex;flex-wrap:wrap;gap:12px 18px;margin:18px 0}.legal-links a,dialog a{color:#285440;text-underline-offset:3px;overflow-wrap:anywhere}
.setting input[type=checkbox]{flex:0 0 22px}
@media(max-width:800px){.topbar{gap:10px}.age-rating{min-width:38px;min-height:38px;font-size:20px}.topbar .wordmark{margin-right:auto}}

#native-document-dialog{width:min(720px,calc(100vw - 24px));max-width:720px}#native-document-frame{display:block;width:100%;height:60vh;height:60svh;border:0;background:#fff8e7;border-radius:8px}
#cloud-dialog{width:min(540px,calc(100vw - 32px));max-width:540px}
html[data-embedded=true],html[data-embedded=true] body{height:100%;overflow:hidden;overscroll-behavior:none}
html[data-embedded=true] #game{min-height:0;height:100svh;height:var(--tg-viewport-stable-height,100svh)}
html[data-embedded=true] #game{user-select:none;-webkit-user-select:none}
html[data-embedded=true] #menu{position:absolute;height:auto;min-height:0;padding:0 0 12px;pointer-events:auto;touch-action:pan-y;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scroll-padding-block:12px;grid-template-rows:minmax(236px,1fr) auto}
html[data-embedded=true] #menu .intro{align-self:safe center}
html[data-embedded=true] #menu input{touch-action:manipulation}
.cloud-profile-id{font:700 14px/1.5 monospace;color:#315339;overflow-wrap:anywhere}
#cloud-enter{margin:18px 0}#cloud-enter summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:700}#cloud-enter summary:focus-visible{outline:3px solid #b65627;outline-offset:3px}
html[data-embedded=true] textarea,html[data-embedded=true] input{user-select:text;-webkit-user-select:text}
@media(max-width:800px){
 html[data-embedded=true] #menu{inset:calc(82px + var(--safe-top)) 22px calc(52px + var(--safe-bottom));grid-template-rows:minmax(236px,1fr) auto auto}
 html[data-embedded=true] .topbar,html[data-embedded=true] footer{background:#e9e4d6f5;z-index:4}
}

.cloud-candidates{display:grid;gap:12px;margin:18px 0}.cloud-choice{text-align:left;padding:16px;border:2px solid #406544;border-radius:14px;background:#efe4c8;color:#244b38;min-height:76px}.cloud-choice strong,.cloud-choice span{display:block}.cloud-choice span{font-size:13px;margin-top:7px;line-height:1.6}.cloud-input-label{display:block;margin:22px 0 8px;font-weight:700}#cloud-code-input{display:block;width:100%;min-height:48px;padding:12px;font:16px Arial,sans-serif;border:2px solid #406544;border-radius:10px;background:#fff8e7;color:#244b38}#cloud-code-display{display:block;font:15px/1.8 monospace;overflow-wrap:anywhere;user-select:all;background:#eee2c4;padding:12px;border-radius:8px}#cloud-dialog [hidden]{display:none}#cloud-dialog h3{font-size:19px;line-height:1.4;margin-top:26px}#cloud-dialog button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#cloud-dialog a{color:#244b38;text-decoration:underline}#cloud-linked .text-button{display:block;margin-top:16px}#cloud-delete-confirm{padding:14px;border:2px solid #b56944;border-radius:12px;margin-top:20px}

.topbar-actions{display:flex;align-items:center;gap:9px;margin-left:auto;flex:none}.topbar-actions .quiet{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px}.topbar-actions .quiet svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.save-access{display:flex;align-items:center;gap:7px;min-height:48px;max-width:165px;padding:7px 11px;border:1px solid #70855c;border-radius:12px;background:#fff3d8;color:#285440;text-align:left}.save-access svg{flex:none;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.save-access span{display:grid;gap:3px;min-width:0}.save-access strong{font-size:12px;line-height:1.15}.save-access small{font-size:10px;line-height:1.25;overflow-wrap:anywhere}.save-access[data-status=offline],.save-access[data-status=conflict],.save-access[data-status=capacity],.save-access[data-status=local-failed]{border-color:#9e582b;color:#874922;background:#ffebc8}.result-cloud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0 12px;border-bottom:1px solid var(--line)}.result-cloud span{min-width:0;font-size:12px;line-height:1.5;color:#285440}.result-cloud .text-button{flex:none;min-height:44px;font-weight:700}
@media(max-width:800px){.topbar{gap:10px}.topbar-actions{gap:7px}.topbar-actions .quiet{width:44px;padding:9px;border-radius:12px}.topbar-actions .quiet span{display:none}.save-access{padding:6px 8px;max-width:137px}.save-access svg{width:20px;height:20px}.topbar .build-tag{display:none}}
@media(max-width:360px){.topbar{padding-left:14px;padding-right:14px;gap:8px}.topbar .wordmark span{display:none}.topbar .wordmark{margin-right:0}.save-access{max-width:136px}}
#cloud-code-display{width:100%;min-width:0;min-height:48px;font-size:20px;letter-spacing:.08em;border:2px solid #70855c;color:var(--ink);user-select:text;-webkit-user-select:text}
#cloud-code-note{margin:8px 0 12px}
