:root{--ivory:#fff4d9;--gold:#e8bd6d;--pine:#1d2c23;--muted:#c7cbb9;--faint:rgba(255,244,217,.28);--text-shadow:0 1px 3px rgba(6,16,12,.80);--heading-shadow:0 2px 8px rgba(10,24,18,.28);--control-edge:0 1px 3px rgba(10,24,18,.14);--sans:Inter,"Avenir Next",Avenir,system-ui,-apple-system,sans-serif;--serif:Georgia,"Times New Roman",serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#9daca4;color:var(--ivory);font-family:var(--sans)}body{position:fixed;inset:0}button{font:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation;-webkit-user-select:none;user-select:none}button:focus-visible{outline:2px solid var(--gold);outline-offset:5px}button:disabled{cursor:default}button,svg{flex-shrink:0}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block}[hidden]{display:none!important}#game{position:absolute;inset:0;touch-action:none;cursor:grab}#game:active{cursor:grabbing}#game canvas{display:block;width:100%;height:100%;touch-action:none}#interface{position:absolute;inset:0;pointer-events:none;text-shadow:var(--text-shadow)}#interface svg{filter:drop-shadow(0 1px 2px rgba(10,24,18,.32))}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}.title-screen{position:absolute;inset:0;pointer-events:auto;display:flex;flex-direction:column;justify-content:space-between;padding:42px 6vw 46px;background:transparent}.title-meta{display:flex;align-items:center;gap:14px;font-size:10px;letter-spacing:.27em;text-transform:uppercase;color:rgba(255,244,217,.8)}.title-meta:before{content:'';display:block;width:36px;height:1px;background:var(--gold)}.title-heading{margin:clamp(25px,9vh,90px) 0 auto;max-width:620px}.title-heading h1{font-family:var(--serif);font-weight:normal;font-size:clamp(90px,12vw,176px);line-height:.82;letter-spacing:-.065em;margin:0;text-shadow:var(--heading-shadow)}.title-heading h1 span{display:block;font-family:var(--sans);font-size:.14em;font-weight:400;letter-spacing:.65em;margin:28px 0 0 10px;line-height:1.2}.title-description{font-family:var(--serif);font-style:italic;font-size:21px;color:#fff5dddb;margin:32px 0 0 4px;line-height:1.5}.title-bottom{max-width:310px;margin-top:24px}.primary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:30px;width:100%;padding:17px 24px;background:transparent;color:var(--ivory);border:1px solid #f8d695cc;text-shadow:var(--text-shadow);font-weight:600;font-size:13px;letter-spacing:.01em;border-radius:2px;box-shadow:var(--control-edge)}.primary:hover{background:transparent;border-color:#fff6dd;color:#fff}.primary:active{transform:translateY(1px)}.primary svg{width:20px;height:20px}.text-button{min-height:48px;background:transparent;padding:8px 0;color:#f4f0dbb9;font-size:11px;text-decoration:underline;text-underline-offset:5px}.title-note{font-size:10px;line-height:1.8;letter-spacing:.06em;color:#eee9d1a6;margin-top:23px}.title-note span{display:block}.title-top-tools{position:absolute;right:max(24px,env(safe-area-inset-right));top:max(24px,env(safe-area-inset-top));pointer-events:auto}.round-button{width:48px;height:48px;display:grid;place-items:center;border:1px solid #fff0d447;border-radius:50%;background:transparent;box-shadow:var(--control-edge)}.round-button:hover{background:transparent;border-color:var(--ivory)}.round-button svg{width:20px;height:20px}.hud{position:absolute;inset:0;pointer-events:none;background:transparent}.status{position:absolute;left:max(24px,env(safe-area-inset-left));top:max(24px,env(safe-area-inset-top));width:222px;text-shadow:var(--text-shadow)}.status-top{display:flex;align-items:center;gap:18px;font-size:10px;font-weight:500;letter-spacing:.13em;text-transform:uppercase}.day{display:flex;align-items:center;gap:8px}.day svg{width:17px;height:17px;color:var(--gold)}.herd{display:flex;align-items:center;gap:7px}.herd svg{width:21px;height:21px}.wild-points{margin-left:auto;font-variant-numeric:tabular-nums;font-size:12px;color:#fff2d4dc;letter-spacing:.04em}.vitals{display:flex;gap:15px;margin-top:14px}.vital{width:103px}.vital-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#fff2d4e0;margin-bottom:7px}.vital-label output{font-variant-numeric:tabular-nums;letter-spacing:.03em}.vital-meter{height:3px;background:#fff2d430;border-radius:2px;overflow:hidden}.vital-meter i{height:100%;width:100%;display:block;background:#d9e6b7;transition:width .15s}.energy .vital-meter i{background:var(--gold)}.vital.low .vital-meter i{background:#f29c70}.objective{position:absolute;left:max(24px,env(safe-area-inset-left));top:112px;max-width:260px;text-shadow:var(--text-shadow)}.objective-kicker{font-size:9px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:#f0c879;margin-bottom:7px;display:flex;align-items:center;gap:10px}.objective-kicker:before{content:'';width:19px;height:1px;background:var(--gold)}.objective-title{font-family:var(--serif);font-size:19px;line-height:1.2}.objective-hint{font-size:11px;line-height:1.5;margin-top:7px;color:#fff3dbbf;max-width:235px}.objective-count{font-size:10px;letter-spacing:.1em;color:#fff0d49c;margin-left:6px}.hud-tools{position:absolute;right:max(22px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));display:flex;gap:9px;pointer-events:auto}.hud-tools .round-button{width:48px;height:48px;background:transparent;border-color:#fff4d97a}.controls{position:absolute;inset:0;pointer-events:none;touch-action:none}.joystick{position:absolute;left:max(24px,env(safe-area-inset-left));bottom:max(37px,env(safe-area-inset-bottom));width:122px;height:122px;border:1px solid #fff3d947;border-radius:50%;background:transparent;box-shadow:var(--control-edge);pointer-events:auto;touch-action:none}.joystick:before,.joystick:after{content:'';position:absolute;left:50%;top:50%;background:#fff4d923;transform:translate(-50%,-50%)}.joystick:before{width:68px;height:1px}.joystick:after{height:68px;width:1px}.joystick-knob{width:48px;height:48px;position:absolute;left:36px;top:36px;border-radius:50%;background:transparent;border:1px solid #fff4d9b3;box-shadow:var(--control-edge);display:grid;place-items:center;pointer-events:none}.joystick-knob svg{width:18px;height:18px;color:#fff9e4b3}.joystick-caption{position:absolute;left:0;right:0;text-align:center;bottom:-21px;font-size:7px;letter-spacing:.3em;text-transform:uppercase;color:#fff4d98c}.actions{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:max(30px,env(safe-area-inset-bottom));width:166px;height:180px}.action{pointer-events:auto;touch-action:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:absolute;border-radius:50%;border:1px solid #fff4d97a;background:transparent;text-shadow:var(--text-shadow);box-shadow:var(--control-edge)}.action span{font-size:10px;letter-spacing:.025em;font-weight:600;text-transform:uppercase}.action small{font-size:10px;line-height:1.15;letter-spacing:0;font-weight:500;opacity:.8}.action.cooldown{border-color:#fff4d946}.action.cooldown small{color:var(--gold);font-variant-numeric:tabular-nums}.charge.cooldown small{color:inherit}.action.recovering{background:transparent;border-color:#f6ffdf;box-shadow:var(--control-edge),0 0 0 3px #d9e6b72e}.action svg{width:24px;height:24px}.action.active{transform:scale(.94);background:transparent;border-color:#fff8dd;box-shadow:var(--control-edge),0 0 0 3px #fff4d933}.charge{width:86px;height:86px;right:0;bottom:0;background:transparent;color:#ffe4a4;border-color:#fbe8ae}.charge svg{width:28px;height:28px}.charge.active{background:transparent;box-shadow:var(--control-edge),0 0 0 5px #eac56d33}.interact{width:72px;height:72px;left:0;top:48px}.interact.available{color:#ffe7b3;border-color:#eac679;box-shadow:0 0 0 3px #eac56d10}.interact:disabled{opacity:.4}.bellow{width:64px;height:64px;right:4px;top:0}.bellow svg{width:21px;height:21px}.input-hint{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.05em;color:#fff0d4a8;text-shadow:var(--text-shadow);white-space:nowrap}.input-hint kbd{font:inherit;color:inherit;margin-right:2px}.touch-hint{display:none}.context-hint{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);font-size:11px;font-weight:500;color:#fff5df;text-shadow:var(--text-shadow);white-space:nowrap;padding:7px 13px;border-radius:20px;background:transparent;max-width:80vw;overflow:hidden;text-overflow:ellipsis}.toast{position:absolute;left:50%;top:28%;transform:translate(-50%,-5px);padding:13px 20px;font-family:var(--serif);font-size:22px;text-align:center;text-shadow:var(--text-shadow);background:transparent;max-width:90vw;width:max-content;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.modal-screen{position:absolute;inset:0;pointer-events:auto;background:transparent;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.modal{width:min(100%,390px);margin:auto;padding:10px 12px}.modal .eyebrow{font-size:9px;color:var(--gold)}.modal h2{font-family:var(--serif);font-weight:normal;font-size:42px;line-height:1.08;letter-spacing:-.02em;text-shadow:var(--heading-shadow);margin:17px 0 13px}.modal p{font-size:13px;font-weight:500;line-height:1.6;color:#ebe9d1b0;margin:0 0 25px}.secondary{min-height:50px;width:100%;border:1px solid #fff0d435;background:transparent;border-radius:2px;font-size:12px;font-weight:500;letter-spacing:0;margin-top:11px}.pause-options{display:flex;gap:9px;margin:14px 0 16px}.option{flex:1;display:flex;gap:8px;align-items:center;justify-content:center;min-height:48px;border:1px solid #fff0d42a;background:transparent;font-size:12px;font-weight:500;border-radius:2px}.option svg{width:17px;height:17px}.help{border-top:1px solid #fff0d426;border-bottom:1px solid #fff0d426;padding:17px 0;margin-bottom:17px}.help-row{display:grid;grid-template-columns:68px 1fr;gap:10px;font-size:10px;color:#e4e7c9a8;line-height:1.55;margin-bottom:10px}.help-row strong{font-weight:600;color:#fff4d9d9}.help-row:last-child{margin:0}.modal-foot{font-size:11px;font-weight:500;line-height:1.5;color:#eff1cda8;letter-spacing:.05em;text-align:center;margin-top:22px}.run-score{font-family:var(--serif);font-size:60px;color:var(--gold);margin:22px 0 4px;font-variant-numeric:tabular-nums}.run-score-caption{font-size:9px;letter-spacing:.17em;text-transform:uppercase;color:#fff4d982}.run-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #fff0d428;border-bottom:1px solid #fff0d428;gap:18px;margin:25px 0;padding:19px 0}.run-stat strong{display:block;font-size:22px;font-weight:500}.run-stat span{font-size:9px;color:#fff0d487}#boot-screen{position:fixed;inset:0;z-index:1000;background:#18251f;display:grid;place-items:center;padding:30px;text-align:center}.boot-inner{width:min(300px,100%)}.boot-inner .eyebrow{color:#eac16d}.boot-brand{font-family:var(--serif);font-size:72px;letter-spacing:-.06em;margin:20px 0}.boot-inner p{font-size:12px;line-height:1.7;color:#e2e5cfb0}.boot-line{height:1px;background:#e8bd6d22;width:100%;margin:24px 0}.boot-line i{display:block;height:100%;width:12%;background:var(--gold);transition:width .3s}.boot-inner .primary{justify-content:center;margin-top:24px}.no-script{position:fixed;inset:0;z-index:1001;background:#18251f;padding:70px;text-align:center}
@media(pointer:fine) and (min-width:760px){.joystick{display:none}.actions{transform:none;opacity:1}.context-hint{bottom:65px}.input-hint{display:block}}
@media(max-width:759px),(pointer:coarse){.keyboard-hint{display:none}.touch-hint{display:block}.title-screen{padding:max(30px,env(safe-area-inset-top)) max(26px,env(safe-area-inset-right)) max(34px,env(safe-area-inset-bottom)) max(26px,env(safe-area-inset-left));background:transparent}.title-heading{margin:35px 0 auto}.title-heading h1{font-size:clamp(88px,24vw,140px)}.title-heading h1 span{font-size:.14em;letter-spacing:.55em;margin:24px 0 0 5px}.title-description{font-size:17px;margin-top:24px;max-width:200px}.title-bottom{max-width:350px}.title-note{font-size:9px;margin-top:16px}.title-top-tools{right:24px;top:23px}.title-top-tools .round-button{width:48px;height:48px}.title-meta{font-size:8px;gap:8px;letter-spacing:.19em}.title-meta:before{width:22px}.status{left:max(19px,env(safe-area-inset-left));top:max(20px,env(safe-area-inset-top));width:195px}.status-top{gap:12px;font-size:9px}.wild-points{font-size:10px}.vitals{gap:12px;margin-top:13px}.vital{width:91px}.vital-label{font-size:9px;margin-bottom:6px}.objective{left:max(19px,env(safe-area-inset-left));top:105px;max-width:220px}.objective-title{font-size:17px}.objective-kicker{font-size:9px;margin-bottom:6px}.objective-hint{font-size:11px;max-width:200px}.hud-tools{right:max(16px,env(safe-area-inset-right));top:max(17px,env(safe-area-inset-top));flex-direction:column;gap:7px}.hud-tools .round-button{width:48px;height:48px}.hud-tools .camera-reset{display:none}.joystick{left:max(19px,env(safe-area-inset-left));bottom:max(40px,env(safe-area-inset-bottom));width:116px;height:116px}.joystick-knob{left:33px;top:33px}.actions{right:max(18px,env(safe-area-inset-right));bottom:max(29px,env(safe-area-inset-bottom));transform:none}.input-hint{bottom:16px;font-size:8px}.context-hint{bottom:200px;max-width:82vw;font-size:10px}.toast{top:32%;font-size:19px;max-width:88vw}.modal h2{font-size:38px}}
@media(max-height:670px){.title-heading{margin-top:20px}.title-heading h1{font-size:94px}.title-heading h1 span{margin-top:19px}.title-description{font-size:15px;margin-top:20px}.title-note{margin-top:13px}.title-bottom{margin-top:12px}.primary{min-height:52px}.objective-hint{display:none}.joystick{transform:scale(.9);transform-origin:left bottom}.actions{transform:none}.context-hint{bottom:175px}.modal{padding:4px 10px}.modal h2{font-size:38px}.modal-screen{padding:18px}.modal p{margin-bottom:18px}.modal-foot{margin-top:16px}}
@media(max-height:500px) and (min-width:600px){.title-screen{padding:23px 36px;display:grid;grid-template-columns:1fr 260px;gap:25px;align-items:end}.title-upper{align-self:start}.title-heading{margin-top:28px}.title-heading h1{font-size:98px}.title-heading h1 span{margin-top:17px}.title-description{margin-top:22px}.title-bottom{margin-bottom:1px}.title-note{font-size:8px}.title-top-tools{top:20px;right:26px}.status{width:190px;left:20px;top:18px}.vitals{margin-top:9px}.objective{left:20px;top:95px}.objective-hint{display:none}.objective-title{font-size:15px}.hud-tools{top:17px;right:18px;flex-direction:row}.hud-tools .round-button{width:48px;height:48px}.joystick{bottom:25px;transform:scale(.8)}.actions{bottom:22px;transform:none}.context-hint{bottom:40px;font-size:9px}.input-hint{display:none}.toast{top:30%;font-size:18px}.modal{max-width:450px}.modal h2{font-size:31px;margin:10px 0}.modal p{margin-bottom:15px}.modal-screen{padding:14px}.pause-options{margin:10px 0}.option{min-height:48px}.secondary{min-height:48px;margin-top:9px}.modal-foot{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Keep interaction labels readable at device pixel size; compact layouts reposition instead of shrinking. */
.save-unavailable{color:#f2c782}.context-hint{white-space:normal;text-align:center;line-height:1.4;overflow:visible;text-overflow:clip}.hud:focus{outline:none}#game:focus{outline:none}
@media(max-width:759px),(pointer:coarse){.input-hint{font-size:10px}.context-hint{bottom:220px;font-size:11px}.joystick-caption{font-size:9px}.status-top{font-size:10px}}
@media(max-height:500px) and (min-width:600px){.actions{height:164px}.interact{top:39px}.bellow{right:8px}.context-hint{bottom:28px;max-width:calc(100vw - 370px);font-size:11px}.input-hint{display:none}}

/* V2: give the herd the viewport; controls remain small, legible, and reachable. */
html,body,#game,#interface{height:100dvh}#game,#interface{position:fixed}
.title-screen{padding-top:max(42px,env(safe-area-inset-top));padding-bottom:max(46px,env(safe-area-inset-bottom))}

.status{width:238px}.status-top{gap:14px}.herd{white-space:nowrap}.vitals .vital{flex:1}.range-conditions{margin-top:12px;font-size:10px;line-height:1.5;color:#fff0d8cc;letter-spacing:.025em}.herd-trail{font-size:10px;line-height:1.5;margin-top:4px;color:#f2d295}.objective{top:139px}.has-stragglers .objective{top:160px}.hud-tools .camera-reset{display:flex;flex-direction:column;justify-content:center;gap:2px}.camera-reset svg{width:18px;height:18px}.camera-reset span{font-size:8px;line-height:1.2;letter-spacing:.04em}.pause-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.option[aria-pressed=true]{background:transparent;border-color:#f5d28dcc;color:#ffe4a4}.help-row{font-size:12px}.action.interact span{max-width:65px;line-height:1.1;text-align:center}.title-top-tools{display:flex;gap:9px}
@media(max-width:759px),(pointer:coarse){.title-screen{padding-top:max(30px,env(safe-area-inset-top));padding-bottom:max(34px,env(safe-area-inset-bottom))}.status{width:216px}.status-top{gap:10px}.range-conditions{margin-top:10px;font-size:10px}.objective{top:133px;max-width:245px}.has-stragglers .objective{top:155px}.objective-hint{max-width:225px}.hud-tools .camera-reset{display:flex}.title-top-tools{top:max(23px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right))}}
@media(max-height:670px){.title-description{margin-top:16px}.title-note{margin-top:11px}.objective{top:126px}.has-stragglers .objective{top:146px}}
@media(max-height:500px) and (min-width:600px){.title-screen{padding:max(23px,env(safe-area-inset-top)) max(36px,env(safe-area-inset-right)) max(23px,env(safe-area-inset-bottom)) max(36px,env(safe-area-inset-left))}.title-top-tools{top:max(20px,env(safe-area-inset-top));right:max(26px,env(safe-area-inset-right))}.title-bottom{width:260px}.status{top:max(18px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));width:216px}.range-conditions{margin-top:8px}.objective{top:124px}.has-stragglers .objective{top:144px}.herd-trail{font-size:9px}.title-note{margin-top:8px}.title-heading{margin-top:22px}.title-description{margin-top:18px}.hud-tools{right:max(18px,env(safe-area-inset-right));top:max(17px,env(safe-area-inset-top))}}

/* Floating field notes. Keep landscape detail visible beneath every control. */
.hud-summary{position:absolute;left:max(20px,env(safe-area-inset-left));top:max(20px,env(safe-area-inset-top));width:246px;background:transparent;border:0;box-shadow:none;overflow:visible}
.hud-summary .status{position:static;width:auto;padding:12px 13px 10px;text-shadow:var(--text-shadow)}
.hud-summary .status-top{gap:13px;font-weight:600;letter-spacing:.08em}.hud-summary .vitals{gap:14px;margin-top:10px}.hud-summary .vital-label{font-size:10px;margin-bottom:6px;letter-spacing:.035em}
.hud-summary .range-conditions{margin-top:9px;color:var(--ivory);font-size:11px;font-weight:500;letter-spacing:0}.hud-summary .herd-trail{font-size:10px;margin-top:3px;line-height:1.35;color:#ffe2a9}
.hud-summary .objective{position:static;display:block;pointer-events:auto;width:100%;max-width:none;margin:0;padding:10px 13px 11px;background:transparent;border:0;border-radius:0;text-align:left;text-shadow:var(--text-shadow);color:var(--ivory)}
.objective:hover{background:transparent;color:#fff}.objective-kicker{margin-bottom:6px;gap:8px;letter-spacing:.13em;font-weight:600}.objective-kicker:before{display:none}
.objective-disclosure{margin-left:auto;font-size:14px;line-height:10px;color:var(--ivory);letter-spacing:0}.objective-title{display:block;font-family:var(--sans);font-size:16px;font-weight:600;line-height:1.3;letter-spacing:0}
.objective-hint{display:block;max-width:none;margin-top:9px;font-size:12px;font-weight:500;line-height:1.5;color:var(--ivory)}.objective-count{font-family:var(--sans);font-size:10px;font-weight:500;letter-spacing:0;white-space:nowrap;color:var(--ivory)}.objective:focus-visible{outline-offset:-4px}
.hud-tools .round-button{background:transparent;border-color:#fff4d980;box-shadow:var(--control-edge)}.hud-tools .round-button:hover{border-color:var(--ivory)}
.context-hint{background:transparent;color:var(--ivory);font-size:12px;font-weight:500;line-height:1.5;text-shadow:var(--text-shadow);border:0;padding:8px 13px}.toast{font-family:var(--sans);font-size:18px;font-weight:500;line-height:1.35;letter-spacing:.005em;text-shadow:var(--text-shadow)}
.input-hint,.joystick-caption,.title-note,.text-button{color:var(--ivory);text-shadow:var(--text-shadow)}.camera-reset span{font-size:10px;font-weight:500;letter-spacing:0}
.joystick,.round-button{border-color:#fff4d980}.joystick-knob svg{color:var(--ivory)}.vital-meter{box-shadow:0 1px 3px rgba(10,24,18,.22)}
.primary,.secondary,.option{background:transparent;text-shadow:var(--text-shadow);box-shadow:var(--control-edge)}.secondary,.option{border-color:rgba(255,244,217,.42)}.secondary:hover,.option:hover{border-color:#fff4d9}
.modal p,.modal-foot,.help-row,.help-row strong,.run-score-caption,.run-stat span{color:var(--ivory)}
@media(max-width:759px),(pointer:coarse){.hud-summary{left:max(14px,env(safe-area-inset-left));top:max(14px,env(safe-area-inset-top));width:238px}.hud-summary .status{padding:11px 12px 9px}.hud-summary .status-top{gap:10px}.hud-summary .objective{padding:9px 12px 10px}.objective-title{font-size:15px}.hud-tools{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));gap:7px}.hud-tools .round-button{width:46px;height:46px}.context-hint{max-width:72vw}.title-description{max-width:230px}}
@media(max-height:500px) and (min-width:600px){.hud-summary{top:max(12px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));width:228px}.hud-summary .status{padding:9px 11px 7px}.hud-summary .range-conditions{margin-top:6px}.hud-summary .objective{padding:7px 11px 8px}.objective-kicker{font-size:9px;margin-bottom:5px}.objective-title{font-size:15px}.objective-hint:not([hidden]){display:block}.hud-summary .herd-trail{font-size:9px}.hud-tools{top:max(12px,env(safe-area-inset-top))}}
@media(max-width:350px){.hud-summary{width:220px;left:10px}.hud-tools{right:10px}.hud-summary .status-top{gap:8px}}

/* Field interface: light on the landscape, with ink that follows the sun. */
body{--ui-ink:#f5efdd;--ui-muted:rgba(245,239,221,.78);--ui-accent:#e7c48a;--ui-line:rgba(245,239,221,.38);--ui-line-strong:rgba(245,239,221,.68);--ui-vital:#cbd5b0;--ui-energy:#e1bd7f;--ui-track:rgba(245,239,221,.2);--text-shadow:0 1px 3px rgba(7,16,12,.68);--heading-shadow:0 2px 8px rgba(7,16,12,.2);--control-edge:none;--ivory:var(--ui-ink);--gold:var(--ui-accent)}
body.ui-daylight{--ui-ink:#22382d;--ui-muted:#3e5143;--ui-accent:#6f5429;--ui-line:rgba(34,56,45,.32);--ui-line-strong:rgba(34,56,45,.62);--ui-vital:#4c7058;--ui-energy:#987337;--ui-track:rgba(34,56,45,.16);--text-shadow:0 1px 1px rgba(255,250,229,.42);--heading-shadow:0 1px 2px rgba(255,250,229,.18)}
#boot-screen,.no-script{color:#f5efdd;--ivory:#f5efdd;--gold:#e8bd6d;--text-shadow:none}
#interface,.world-guide{color:var(--ui-ink)}
#interface svg{filter:none}
#interface :is(.title-meta,.title-description,.title-note,.text-button,.status-top,.wild-points,.vital-label,.range-conditions,.objective,.objective-title,.objective-hint,.objective-count,.objective-disclosure,.context-hint,.toast,.input-hint,.joystick-caption,.modal p,.modal-foot,.help-row,.help-row strong,.run-score-caption,.run-stat span){color:var(--ui-ink)}
#interface :is(.eyebrow,.objective-kicker,.herd-trail,.day svg,.run-score){color:var(--ui-accent)}
#interface :is(.round-button,.joystick,.joystick-knob,.action,.primary,.secondary,.option){background:transparent;border-color:var(--ui-line);box-shadow:none;color:var(--ui-ink)}
#interface :is(.round-button,.action,.primary,.secondary,.option):hover{background:transparent;border-color:var(--ui-line-strong);color:var(--ui-ink)}
#interface :is(.charge,.interact.available){color:var(--ui-accent);border-color:var(--ui-line-strong)}
#interface .action.active,#interface .action.recovering{background:transparent;border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-line)}
#interface .action:disabled{opacity:.45}
#interface .joystick-knob svg{color:var(--ui-ink)}
#interface .joystick:before,#interface .joystick:after{background:var(--ui-line)}
#interface :is(.primary,.secondary,.option,.action,.objective){text-shadow:var(--text-shadow)}
.hud-summary{width:240px}
.hud-summary .status{padding:7px 10px 9px}
.hud-summary .status-top{gap:12px;font-size:11px;letter-spacing:.045em;font-weight:600}
.wild-points{font-size:10px;opacity:.68}
.hud-summary .vitals{gap:17px;margin-top:11px}
.hud-summary .vital-label{font-size:10px;letter-spacing:.045em;font-weight:500;margin-bottom:6px}
.vital-label output{font-weight:600}
.vital-meter{height:2px;background:var(--ui-track);box-shadow:none;border-radius:0}
.vital-meter i{background:var(--ui-vital)}
.energy .vital-meter i{background:var(--ui-energy)}
.vital.low .vital-meter i{background:#b87547}
.hud-summary .range-conditions{font-size:11px;font-weight:500;margin-top:10px}
.hud-summary .objective{padding:10px 10px 9px;border-top:1px solid var(--ui-line);margin-top:3px}
.objective-kicker{font-size:9px;letter-spacing:.14em;font-weight:500;margin-bottom:5px;opacity:.86}
#objective-step{display:none}
.objective-title{font-size:16px;line-height:1.35;font-weight:500;letter-spacing:-.01em}
.objective-count{font-size:10px;margin-left:7px;opacity:.74}
.objective-disclosure{font-weight:400;opacity:.74}
.objective-hint{font-size:12px;font-weight:400;line-height:1.55}
.hud-tools{gap:9px}
.hud-tools .round-button{width:46px;height:46px;border-radius:50%}
.hud-tools .round-button svg{width:19px;height:19px}
.camera-reset span{font-size:9px;font-weight:500;letter-spacing:.025em}
.joystick{border-width:1px;opacity:.74}
.joystick:active{opacity:1}
.joystick-knob{width:44px;height:44px;margin:2px;opacity:.85}
.joystick-caption{display:none}
.action{gap:5px}
.action span{font-size:10px;font-weight:600;letter-spacing:.035em;text-transform:none}
.action small{display:none;font-size:10px;font-weight:500;letter-spacing:0}
.action.cooldown small,.action.active small,.action.recovering small,.action.needs-rest small,.interact:disabled small{display:block}
.action svg{width:23px;height:23px}
.charge svg{width:27px;height:27px}
.context-hint{font-size:11px;line-height:1.5;font-weight:500;max-width:68vw}
#interface .context-hint{color:var(--ui-ink);text-shadow:var(--text-shadow)}
/* Lower controls cross grass and the herd even when the HUD sits over sky. */
.controls{--ui-ink:#f7f1df;--ui-accent:#edce94;--ui-line:rgba(247,241,223,.48);--ui-line-strong:rgba(247,241,223,.78);--text-shadow:0 1px 2px rgba(7,16,12,.88),0 0 5px rgba(7,16,12,.3)}
body.ui-daylight.ui-snow .controls{--ui-ink:#22382d;--ui-accent:#6f5429;--ui-line:rgba(34,56,45,.4);--ui-line-strong:rgba(34,56,45,.7);--text-shadow:0 1px 1px rgba(255,250,229,.5)}
#interface .controls svg{filter:drop-shadow(0 1px 1px rgba(7,16,12,.4))}
body.ui-daylight.ui-snow #interface .controls svg{filter:none}
.toast{font-size:16px;letter-spacing:.015em;font-weight:400;line-height:1.45}
.title-meta{font-size:9px;font-weight:600;letter-spacing:.22em}
.title-description{font-size:20px;line-height:1.5}
.title-note{font-size:10px;letter-spacing:.025em;line-height:1.7}
.title-bottom .primary{padding:17px 1px;border-width:1px 0;font-size:14px;font-weight:500;letter-spacing:.01em}
.title-bottom .text-button{font-size:11px;letter-spacing:.015em}
.modal-screen{align-items:flex-start;padding-top:max(34px,calc(env(safe-area-inset-top) + 20px))}
.modal{width:min(100%,400px);padding:8px 12px;margin:0 auto}
.modal .eyebrow{font-size:9px;letter-spacing:.2em;font-weight:600}
.modal h2{font-size:38px;font-weight:400;line-height:1.07;letter-spacing:-.035em;margin:16px 0 17px;max-width:320px}
.modal p{font-size:13px;font-weight:400;line-height:1.65;max-width:340px;margin-bottom:23px}
.modal .primary{font-size:14px;font-weight:500;letter-spacing:.015em;min-height:55px;border-width:1px 0;border-radius:0;padding:15px 0}
.pause-options{display:grid;grid-template-columns:1fr 1fr;gap:0 23px;margin:12px 0 17px}
.pause-options .option{justify-content:flex-start;gap:10px;font-size:12px;min-height:53px;border-width:0 0 1px;border-radius:0;padding:12px 0;letter-spacing:0}
#interface .pause-options .option[aria-pressed=true]{color:var(--ui-accent);border-color:var(--ui-line-strong)}
.pause-options .option svg{width:17px;height:17px}
.modal .secondary{min-height:48px;font-size:11px;font-weight:400;letter-spacing:.025em;border:0;border-radius:0;padding:12px 0;text-align:left;margin-top:5px;opacity:.84}
.modal-foot{font-size:10px;font-weight:400;letter-spacing:.015em;text-align:left;line-height:1.5;margin-top:15px;opacity:.8}
.help{border-color:var(--ui-line);margin-top:18px;padding:16px 0}
.help-row{font-size:11px;line-height:1.6;grid-template-columns:65px 1fr;gap:12px}
.help-row strong{font-weight:600}
@media(max-width:759px),(pointer:coarse){.hud-summary{width:222px;left:max(16px,env(safe-area-inset-left));top:max(17px,env(safe-area-inset-top))}.hud-summary .status{padding:4px 8px 9px}.hud-summary .objective{padding:10px 8px 8px}.hud-tools{right:max(16px,env(safe-area-inset-right));top:max(17px,env(safe-area-inset-top));gap:8px}.objective-title{font-size:14px}.hud-summary .status-top{font-size:10px;gap:11px}.context-hint{bottom:203px;max-width:69vw;font-size:11px}.title-description{font-size:17px}.toast{font-size:16px}}
@media(max-height:500px) and (min-width:600px){.hud-summary{width:215px;top:max(12px,env(safe-area-inset-top))}.hud-summary .status{padding:3px 7px 6px}.hud-summary .vitals{margin-top:8px}.hud-summary .range-conditions{margin-top:7px;font-size:10px}.hud-summary .objective{padding:7px 7px 6px;margin-top:0}.objective-title{font-size:14px}.objective-kicker{font-size:8px;margin-bottom:4px}.context-hint{bottom:26px;max-width:calc(100vw - 370px);font-size:11px}.modal{width:min(100%,410px);padding:0 10px}.modal h2{font-size:31px;margin:10px 0}.modal p{font-size:12px;margin-bottom:14px}.modal .primary{min-height:48px;padding:12px 0}.pause-options{margin:7px 0 9px}.pause-options .option{min-height:48px;padding:9px 0}.modal .secondary{min-height:38px;margin-top:0;padding:9px 0}.modal-foot{margin-top:7px}}
@media(max-width:350px){.hud-summary{width:203px;left:10px}.hud-tools{right:10px}.hud-summary .status-top{gap:7px}}
@media(max-height:500px) and (min-width:600px){#pause-screen{padding-top:max(26px,env(safe-area-inset-top))}#pause-screen .modal{display:grid;grid-template-columns:1fr 1.12fr;column-gap:34px;width:min(700px,100%);max-width:none}#pause-screen .modal>.eyebrow{grid-column:1;grid-row:1}#pause-screen .modal>h2{grid-column:1;grid-row:2;font-size:34px;margin:10px 0 12px}#pause-screen .modal>p{grid-column:1;grid-row:3;margin:0;max-width:260px}#pause-screen .modal>.primary{grid-column:2;grid-row:1 / 3;align-self:start}#pause-screen .pause-options{grid-column:2;grid-row:3;margin:0}#pause-screen .modal>.secondary{grid-column:2;grid-row:4}#pause-screen .modal>.modal-foot{grid-column:1;grid-row:4;align-self:center;margin-top:0}#pause-screen .help{grid-column:1 / 3;grid-row:5}}
@media(max-height:500px) and (min-width:600px){.hud-summary .objective-kicker{display:none}.hud-summary .objective{padding-top:6px}}
body{--menu-field-ink:#f5efdd;--menu-field-shadow:0 1px 3px rgba(7,16,12,.72)}
body.ui-daylight{--menu-field-ink:var(--ui-ink);--menu-field-shadow:var(--text-shadow)}
#interface #pause-screen :is(.pause-options .option,.secondary,.modal-foot,.help,.help-row,.help-row strong){color:var(--menu-field-ink);text-shadow:var(--menu-field-shadow)}

/* Exactly one passive hint, selected by the actual primary input device. */
.controls .keyboard-hint{display:block;font-size:11px;letter-spacing:.015em}
.controls .touch-hint{display:none}
@media(pointer:coarse){.controls .keyboard-hint{display:none}.controls .touch-hint{display:block}}
@media(max-width:759px) and (pointer:fine){.controls .keyboard-hint{white-space:normal;text-align:center;line-height:1.5;width:calc(100vw - 36px);max-width:480px}}
@media(max-height:500px){.controls .input-hint{display:none}}

/* Safari keeps secondary controls native while the landscape stays visible. */
.graphics-option{display:flex;justify-content:space-between!important;gap:8px!important}.graphics-option select{font:inherit;color:inherit;background:transparent;border:0;max-width:112px;padding:5px 0;text-align:right;cursor:pointer}.graphics-option option{color:#20382b;background:#f1ead8}#interface .pause-options label.option{color:var(--menu-field-ink);text-shadow:var(--menu-field-shadow)}

.photo-controls{position:absolute;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:24px;pointer-events:auto;color:var(--ui-ink);text-shadow:var(--text-shadow)}.photo-controls .option{display:flex;gap:8px;align-items:center;min-height:48px;padding:12px 4px;background:transparent;border-width:0 0 1px}.photo-controls label{display:flex;align-items:center;gap:10px;font-size:12px}.photo-controls input{width:140px;accent-color:var(--ui-accent)}.photo-controls small{position:absolute;bottom:58px;left:0;right:0;text-align:center;font-size:11px}.photo-controls svg{width:19px;height:19px}@media(max-width:600px){.photo-controls{gap:16px;justify-content:space-between}.photo-controls label{flex-direction:column;gap:4px;font-size:10px}.photo-controls input{width:95px}.photo-controls .option{font-size:12px}}

body.ui-daylight .hud-summary{--text-shadow:0 0 2px rgba(255,250,229,.9),0 1px 3px rgba(255,250,229,.65)}

/* Phone controls keep their labels and hit areas in portrait and landscape. */
#interface .title-fullscreen {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 width: 100%;
 min-height: 52px;
 padding: 10px 16px;
 margin: 10px 0 0;
 border: 1px solid var(--ui-line);
 border-radius: 5px;
 font-size: 14px;
}
#interface .title-bottom #start-button {
 border: 1px solid #ecd39d;
 border-radius: 5px;
 padding-inline: 16px;
 background: #ead19c;
 color: #19261f;
 text-shadow: none;
}
#interface .title-bottom #start-button:hover { background: #f4dfb2; }
#interface .title-bottom .title-fullscreen,
#interface #quick-fullscreen-button {
 background: rgba(22,36,29,.76);
 border-color: #e8d4acb3;
 color: #fff4d9;
 text-shadow: none;
}
#interface .title-bottom .title-fullscreen:hover,
#interface #quick-fullscreen-button:hover { background: rgba(22,36,29,.91); color: #fff4d9; }
#interface .title-fullscreen svg { width: 20px; height: 20px; }
#interface .hud-tools {
 display: grid;
 grid-template-columns: 48px 48px;
 gap: 8px;
}
#interface .hud-tools .round-button { width: 48px; height: 48px; }
#interface #quick-fullscreen-button {
 grid-column: 1 / -1;
 grid-row: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 width: 104px;
 border-radius: 6px;
 font-size: 11px;
 font-weight: 650;
 white-space: nowrap;
}
#interface #quick-fullscreen-button svg { width: 16px; height: 16px; }
#interface #fullscreen-button { min-height: 48px; }
#interface .journal-modal {
 --ui-ink: #24362d;
 --ui-line: #51462f4a;
 --text-shadow: none;
 max-width: 440px;
 padding: clamp(20px,6vw,34px);
 border: 1px solid #b19c6d;
 border-radius: 6px;
 background: #efe4c9;
 color: var(--ui-ink);
}
#journal-pages { display: grid; gap: 12px; margin: 18px 0; max-height: 42dvh; overflow-y: auto; }
#journal-pages section { border-top: 1px solid var(--ui-line); padding: 12px 0 0; }
#journal-pages h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
#journal-pages ul { list-style: none; padding: 0; margin: 0; }
#journal-pages li { padding: 7px 0; font-size: 14px; }
#interface #journal-pages p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; }
#journal-close { min-height: 48px; }
@media(max-width: 430px) {
 .hud-summary { width: min(222px,calc(100vw - 148px)); }
 .hud-summary .status-top { gap: 7px; }
 .hud-summary .vitals { gap: 9px; }
 .title-heading h1 span { letter-spacing: .49em; }
 .controls .keyboard-hint { display: none; }
 .controls .touch-hint { display: block; }
}
@media(max-height: 500px) and (min-width: 600px) {
 #interface .hud-tools { grid-template-columns: repeat(4,48px) 104px; }
 #interface #quick-fullscreen-button { grid-column: 5; }
 #interface .title-fullscreen { min-height: 48px; }
 .title-heading h1 { font-size: clamp(65px,13vh,100px); }
}

.feedback-link { color: inherit; text-shadow: inherit; text-underline-offset: 4px; }
.feedback-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.title-bottom .feedback-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1rem; }
#new-button:not([hidden]) + .feedback-link { margin-left: .9rem; }
.pause-options .feedback-link { text-decoration: none; }
.boot-inner .feedback-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .45rem; font-size: 12px; }

#interface .guidance-option{grid-column:1 / -1}#interface .guidance-option select{max-width:180px;min-height:44px}

.device-check-options{grid-column:1/-1;min-width:0}.device-check-options summary{cursor:pointer;list-style:none}.device-check-options summary::-webkit-details-marker{display:none}.device-check-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.device-check-options .modal-foot{text-align:left;margin:10px 0}.device-check-options[open]{padding-bottom:8px}

.device-check-review{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.device-check-review label{display:flex;flex-direction:column;gap:5px;color:var(--muted,#c7d0bd);font-size:11px}.device-check-review select{min-height:44px;max-width:100%;background:#24362c;color:inherit;border:1px solid #627060;border-radius:5px;padding:5px}
