@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@400;500;600;700;800&display=swap');
:root{--ink:#101e18;--panel:#172b21;--lime:#c0f779;--amber:#f4c787;--cream:#f3f5e9;--muted:#a9bdab;--line:#d3edbd26;color-scheme:dark;font-family:Barlow,Arial,sans-serif;background:var(--ink);color:var(--cream)}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0;transition:background .14s,transform .1s}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}.hidden{display:none!important}
.topbar{height:72px;padding:0 max(30px,env(safe-area-inset-right)) 0 max(30px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;background:var(--ink);border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:12px;font-weight:800;letter-spacing:1.4px;color:var(--cream);text-decoration:none}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:2.5px;margin-top:4px}.brand-mark{border:1px solid var(--lime);color:var(--lime);width:34px;height:38px;display:grid;place-content:center;position:relative;font:800 28px 'Barlow Condensed',sans-serif;transform:skew(-6deg)}.brand-mark span{position:absolute;right:0;bottom:0;font-size:21px}.top-actions{display:flex;align-items:center;gap:8px}.edition{font-size:10px;letter-spacing:2px;color:var(--muted);margin-right:12px}.text-button{background:none;font-size:11px;letter-spacing:.8px;font-weight:700;padding:14px;min-height:44px}.icon-button{width:44px;height:44px;border:1px solid var(--line);background:#ffffff06;border-radius:50%;font-size:22px;position:relative;flex-shrink:0}.sound-strike{position:absolute;width:20px;height:1px;background:var(--cream);left:11px;top:21px;transform:rotate(-42deg)}.sound-on .sound-strike{display:none}
#arena{position:relative;height:calc(100svh - 110px);height:calc(100dvh - 110px);min-height:570px;max-height:1100px;overflow:hidden;isolation:isolate;background:#789b8b}#game{width:100%;height:100%;display:block;touch-action:none}.scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0c211df5,#173a2955 75%),linear-gradient(0deg,#0e201ae8,transparent 70%)}.playing .scene-shade{background:linear-gradient(#0d241530,transparent 28%,transparent 82%,#0a181b66)}.screen{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#73905e #15271e}
h1,h2{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-weight:800;line-height:.9;letter-spacing:-1.5px;margin:18px 0}h1{font-size:clamp(70px,7.7vw,116px)}h2{font-size:60px}em{font-style:normal;color:var(--lime)}.start-screen{padding:40px 7% 46px;display:flex;flex-direction:column;justify-content:center;gap:25px}.start-copy{position:relative;z-index:1;max-width:680px}.chapter{display:flex;align-items:center;gap:14px;font-size:11px;letter-spacing:2px;font-weight:700;color:#d2e5c6}.chapter small{border:1px solid #bce98755;border-radius:20px;font-size:10px;letter-spacing:1.3px;padding:6px 10px;color:var(--lime)}.start-copy p{font-size:19px;line-height:1.45;color:#c2d2c3;margin:20px 0 0}.hero-alpha{position:absolute;right:0;bottom:0;height:96%;width:55%;object-fit:contain;object-position:bottom;pointer-events:none;filter:drop-shadow(0 16px 15px #0c211a88)}
.launch-panel{position:relative;z-index:2;width:460px;max-width:100%;padding:24px;border:1px solid #d2edbf30;border-radius:18px;background:linear-gradient(145deg,#203829f5,#13281ff5);box-shadow:0 18px 60px #07170d55}.launch-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px}.launch-meta small{display:block;font-size:11px;letter-spacing:1.2px;color:var(--muted)}.launch-meta b{font:700 31px 'Barlow Condensed',sans-serif;letter-spacing:.5px;display:block;margin-top:6px}.home-hearts{color:var(--lime);font-size:18px;letter-spacing:3px;white-space:nowrap}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:57px;padding:15px 20px;background:var(--lime);color:#173120;font-weight:800;font-size:16px;text-align:left;border-radius:9px}.primary span{font-size:23px;line-height:1}.primary:hover:not(:disabled){background:#d3ff98}.launch-panel .primary{min-height:64px;justify-content:center;font-size:18px;letter-spacing:1.3px;box-shadow:0 5px 0 #6f9c42}.secondary{display:block;width:100%;min-height:48px;padding:14px;margin-top:10px;background:#ffffff07;border:1px solid var(--line);border-radius:8px;font-weight:600;font-size:14px}.field-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:27px;font-size:12px;letter-spacing:.6px;font-weight:800;color:#dbe9ce}.field-guide>span+span{border-left:1px solid var(--line);padding-left:13px}.field-guide b{display:block;color:var(--lime);font:600 18px 'Barlow Condensed',sans-serif;margin-bottom:5px}.field-guide>span:nth-child(2) b{color:var(--amber)}.field-guide small{display:block;font-size:11px;line-height:1.4;letter-spacing:0;color:var(--muted);font-weight:500;margin-top:5px}#save-note{color:#9db69f;font-size:12px;text-align:center;margin:20px 0 0}.start-motto{position:absolute;bottom:17px;left:7%;font-size:10px;letter-spacing:1.5px;color:#afc3a7}
.centered{display:flex;align-items:center;justify-content:center;padding:22px;background:#071a16db}.panel{width:390px;max-width:100%;max-height:100%;overflow:auto;position:relative;padding:28px;background:linear-gradient(145deg,#213b2d,#13271f);border:1px solid #d3edbd30;box-shadow:0 20px 70px #08161177;text-align:center;border-radius:18px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:700}.panel>p{font-size:14px;color:#c1d2c0;line-height:1.6}.panel .primary{margin-top:20px}.panel .text-button{display:block;margin:auto}.result-panel{width:420px}.result-panel h2{font-size:50px;margin:15px 0}.result-score strong{font:800 64px 'Barlow Condensed',sans-serif;letter-spacing:1px;display:block;color:var(--lime)}.result-score>span{font-size:10px;letter-spacing:2px;color:var(--muted)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0}.result-stats>div+div{border-left:1px solid var(--line)}.result-stats b{font:700 26px 'Barlow Condensed',sans-serif;display:block}.result-stats small{font-size:10px;letter-spacing:.5px;color:var(--muted)}.run-highlight{padding:12px;background:#c0f77909;border:1px solid #c0f77925;border-radius:8px}.run-highlight small{font-size:10px;letter-spacing:1px;color:var(--muted);display:block}.run-highlight b{font-size:14px;color:var(--lime);display:block;margin-top:5px}.cause b{display:block;font-size:12px;color:var(--amber)}.cause span{font-size:13px;display:block;margin-top:4px}.end-best{font-size:11px;color:#aabea6;display:block}.guide-panel{width:500px;text-align:left}.guide-panel h2{font-size:52px}.close{position:absolute;right:18px;top:18px}.bear-guide{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line)}.bear-guide img{width:65px;height:73px;object-fit:contain;flex-shrink:0}.bear-guide b{font-size:13px;letter-spacing:.7px;display:block;color:var(--lime);margin-bottom:5px}.bear-guide span{font-size:14px;line-height:1.5;color:#c9d8c5}.guide-panel .guide-fine{font-size:13px;color:#a9c0ad}
.hud{position:absolute;top:20px;left:26px;right:26px;pointer-events:none;font-variant-numeric:tabular-nums}.hud-main{display:flex;justify-content:space-between;align-items:flex-start}.hud-main>div{background:#11281ef0;border:1px solid #d3edbd2e;border-radius:11px;padding:12px 16px;min-width:162px;box-shadow:0 4px 15px #15321c15}.hud-main strong{font:800 39px 'Barlow Condensed',sans-serif;letter-spacing:1px;display:block;line-height:1.1}.hud-main small{display:block;font-size:10px;letter-spacing:.5px;color:#b9ccae}.hud-main #best-target{color:var(--lime);margin-top:4px}.vitals{text-align:right}#hearts{font-size:20px;color:#d4f69b;letter-spacing:2px;display:block}.vitals strong{font-size:25px;margin:3px 0}.vitals strong small{font:600 9px Barlow,Arial,sans-serif;display:inline;letter-spacing:.3px}.trail-status{display:flex;gap:14px;align-items:center;justify-content:center;position:absolute;top:0;left:50%;transform:translateX(-50%);white-space:nowrap;padding:11px 15px;background:#11281ef0;border:1px solid var(--line);border-radius:8px;font-size:10px;font-weight:700;letter-spacing:.7px}#threat{color:var(--amber)}#distance{color:var(--lime)}.route{display:flex;align-items:center;gap:8px;position:absolute;left:50%;top:53px;transform:translateX(-50%);width:270px;font-size:10px;letter-spacing:.5px;color:#edf6df;text-shadow:0 1px 3px #10251d}.route>div{flex:1;height:4px;background:#142d2088;border-radius:2px;overflow:hidden}.route i{height:100%;display:block;background:var(--lime);width:0}.streak{position:absolute;top:84px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:800;letter-spacing:.8px;color:#173722;background:#ddf1bbeb;padding:5px 10px;border-radius:5px;white-space:nowrap}.notice{position:absolute;top:152px;left:50%;transform:translate(-50%,-5px);background:#132c22f5;border:1px solid #d7eab738;border-radius:10px;padding:11px 16px;text-align:center;color:#eef9df;font-size:13px;font-weight:800;letter-spacing:.6px;opacity:0;transition:opacity .16s,transform .16s;pointer-events:none;max-width:90%;width:max-content}.notice.show{opacity:1;transform:translate(-50%,0)}.notice small{display:block;color:#c8d8bd;font-weight:500;font-size:12px;letter-spacing:0;margin-top:4px}
.boss-hud{position:absolute;top:144px;left:50%;transform:translateX(-50%);width:min(390px,calc(100% - 32px));padding:11px 14px;background:#291f1af5;border:1px solid #e7ad794d;border-top:2px solid var(--amber);pointer-events:none;border-radius:10px}.boss-hud>div:first-child{display:flex;justify-content:space-between;gap:12px;font:800 16px 'Barlow Condensed',sans-serif;letter-spacing:.8px}.boss-hud b{font-size:12px;color:#ebc4a6}.boss-health{height:6px;background:#62463a;margin:8px 0;overflow:hidden;border-radius:3px}.boss-health i{display:block;height:100%;width:100%;background:#f3ad74;transition:width .15s}.boss-hud small{display:block;font-size:12px;color:#f5e3c9;text-align:center}.boss-hud.open{border-color:var(--lime);background:#18301df5}.boss-hud.open small{color:var(--lime)}.boss-hud.open .boss-health i{background:var(--lime)}.boss-active .notice{top:247px}.boss-active .route,.boss-active .streak{visibility:hidden}
.touch-controls{position:absolute;bottom:max(23px,env(safe-area-inset-bottom));left:max(28px,env(safe-area-inset-left));right:max(28px,env(safe-area-inset-right));display:grid;grid-template-columns:164px 104px 164px;align-items:end;justify-content:space-between;gap:12px;pointer-events:none}.game-button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center;gap:13px;position:relative;overflow:hidden;width:100%;height:78px;border:1px solid #e1f4c346;border-radius:16px;background:#142b22f0;text-align:left;box-shadow:0 5px 0 #081b14a6,0 9px 22px #0a161b22;font-weight:800;font-size:16px;letter-spacing:.8px}.game-button .control-glyph{font:700 39px 'Barlow Condensed',sans-serif;line-height:1}.game-button small{display:block;font-size:11px;font-weight:700;color:#b9cfa9;margin-top:4px;letter-spacing:.2px}.game-button.pressed{transform:translateY(3px);background:#2b4c35;box-shadow:0 2px 0 #081b14a6}.dash-button.ready{background:var(--lime);color:#173522;border-color:#daf5b9}.dash-button.ready small{color:#315c32}.game-button i{position:absolute;height:4px;bottom:0;left:0;background:var(--lime);width:100%;pointer-events:none}.dash-button.ready i{background:#729c48}.howl-button{height:72px;flex-direction:column;gap:3px;text-align:center;font-size:13px;border-color:#eabe7759;background:#2d2a20f5}.howl-icon{width:27px;height:25px;color:var(--amber)}.howl-button small{font-size:10px;margin-top:2px;color:#d6c2a0}.howl-button i{background:var(--amber)}.howl-button.ready{background:#f4c787;color:#372716;border-color:#ffe0b4}.howl-button.ready .howl-icon,.howl-button.ready small{color:#614324}.howl-button.ready i{background:#b1854d}.howl-button.locked{opacity:.55}.howl-button.locked i{display:none}
footer{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;font-size:9px;letter-spacing:1px;color:#a2b59f}footer>span:first-child{color:#c0ceb1;font-weight:700}.desktop-help{display:flex;gap:9px;align-items:center}kbd{font:inherit;border:1px solid var(--line);padding:3px 5px;border-radius:3px}.desktop-help i{font-style:normal;color:#59735f}.mobile-help{display:none}
@media(max-width:900px){.edition{display:none}.hud-main>div{min-width:138px;padding:11px}.trail-status{gap:8px;font-size:9px}.route{width:235px}.start-screen{padding-left:5%;padding-right:5%}}
@media(max-width:760px){.topbar{height:62px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}.brand{font-size:10px;letter-spacing:.6px;gap:8px}.brand-mark{width:27px;height:32px;font-size:24px}.brand small{font-size:8px;letter-spacing:1.6px}.top-actions{gap:3px}.top-actions .text-button{font-size:9px;letter-spacing:0;padding:8px}.icon-button{width:44px;height:44px}.top-actions #pause:disabled{display:none}#arena{height:calc(100svh - 92px);height:calc(100dvh - 92px);min-height:460px}.start-screen{padding:34px 24px 24px;gap:26px;justify-content:flex-start;background:radial-gradient(ellipse at 95% 0,#2d4b32 0,transparent 56%),#101f19}.start-screen img{display:none}.start-copy{width:100%;max-width:440px;align-self:center;margin-top:auto;flex-shrink:0}.start-copy h1{font-size:clamp(58px,15vw,90px);line-height:.92;margin:23px 0 0;letter-spacing:-1.3px}.start-copy p{font-size:17px;margin:18px 0 0}.chapter{font-size:10px;letter-spacing:1.2px;justify-content:space-between}.chapter small{font-size:9px}.launch-panel{width:100%;max-width:440px;padding:21px;align-self:center;flex-shrink:0;border-radius:17px}.launch-meta b{font-size:29px}.launch-meta small{font-size:10px;letter-spacing:.8px}.home-hearts{font-size:16px;letter-spacing:2px}.field-guide{font-size:11px;gap:8px;margin-top:25px}.field-guide>span+span{padding-left:10px}.field-guide small{font-size:11px}.start-motto{position:static;margin-bottom:auto;flex-shrink:0;align-self:center;text-align:center;font-size:9px;letter-spacing:.9px}#save-note{font-size:11px;margin-top:17px}.hud{top:12px;left:12px;right:12px}.hud-main>div{min-width:0;padding:10px 11px}.hud-main strong{font-size:32px}.hud-main small{font-size:9px;letter-spacing:.3px}.hud-main .eyebrow{font-size:9px}.hud-main #best-target{max-width:156px}.vitals strong{font-size:23px}.vitals strong small{font-size:8px}#hearts{font-size:18px}.trail-status{position:static;transform:none;margin-top:8px;justify-content:space-between;font-size:9px;padding:9px 10px;gap:5px}.route{left:0;top:144px;transform:none;width:62%;font-size:9px}.streak{top:140px;left:auto;right:0;transform:none;font-size:9px;letter-spacing:0;padding:5px 7px}.notice{top:188px;font-size:12px;padding:10px 12px}.notice small{font-size:11px}.boss-hud{top:160px;padding:10px 12px}.boss-active .notice{top:258px}.touch-controls{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr);gap:10px;bottom:max(23px,env(safe-area-inset-bottom))}.game-button{height:76px;gap:9px;font-size:14px;border-radius:15px}.game-button .control-glyph{font-size:32px}.game-button small{font-size:10px}.howl-button{height:70px;gap:2px;font-size:12px}.howl-button small{font-size:10px}.centered{padding:16px}.panel{padding:24px;border-radius:16px}.panel h2{font-size:52px}.result-panel h2{font-size:43px}.result-score strong{font-size:55px}.result-stats{margin:15px 0}.result-panel .primary{margin-top:14px}.result-panel .cause{margin:12px 0}.guide-panel h2{font-size:45px}footer{height:30px;padding:0 14px;font-size:8px;letter-spacing:.7px}.desktop-help{display:none}.mobile-help{display:block}}
@media(max-width:360px){.brand{font-size:9px;gap:6px}.brand small{font-size:7px}.top-actions .text-button{font-size:8px;padding:5px}.top-actions{gap:0}.start-screen{padding:27px 18px 20px;gap:22px}.chapter{font-size:9px;letter-spacing:.8px}.start-copy h1{font-size:56px}.launch-panel{padding:17px}.launch-meta b{font-size:26px}.field-guide>span+span{padding-left:7px}.field-guide small{font-size:10px}.hud{left:9px;right:9px}.hud-main>div{padding:9px}.hud-main small{font-size:8px}.vitals strong small{font-size:7px}.trail-status{font-size:8px;letter-spacing:.3px}.route{width:58%;top:140px}.streak{top:136px;font-size:8px}.touch-controls{left:10px;right:10px;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:7px}.game-button{gap:5px;font-size:13px}.game-button .control-glyph{font-size:28px}.game-button small{font-size:9px}.howl-button{font-size:12px}.panel{padding:20px}.bear-guide img{width:51px;height:65px}}
@media(max-height:740px) and (orientation:portrait){.start-screen{padding-top:25px;gap:22px}.start-copy h1{font-size:58px;margin-top:18px}.start-copy p{font-size:16px;margin-top:14px}.launch-panel{padding:18px}.launch-meta{margin-bottom:15px}.launch-panel .primary{min-height:57px}.field-guide{margin-top:21px}#save-note{margin-top:14px}}
@media(max-height:650px) and (orientation:landscape){.topbar{height:54px}footer{display:none}#arena{height:calc(100svh - 54px);height:calc(100dvh - 54px);min-height:230px}.start-screen{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:25px;padding:18px 6%;background:#101f19}.start-copy{margin:0}.start-copy h1{font-size:58px;margin:18px 0}.start-copy p,.start-motto,.hero-alpha{display:none}.chapter{font-size:10px;justify-content:flex-start}.chapter small{font-size:9px}.launch-panel{width:100%;padding:17px}.launch-meta{margin-bottom:13px}.launch-meta b{font-size:25px}.launch-panel .primary{min-height:50px}.field-guide{margin-top:18px;font-size:11px}.field-guide small{font-size:10px}#save-note{display:none}.hud{top:9px;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}.hud-main>div{min-width:132px;padding:8px 11px}.hud-main strong{font-size:27px}.hud-main small{font-size:8px}.vitals strong{font-size:22px}.vitals strong small{font-size:7px}#hearts{font-size:16px}.trail-status{position:absolute;top:0;left:50%;transform:translateX(-50%);width:auto;margin:0;padding:8px 10px;gap:10px;font-size:9px}.route{top:44px;left:50%;transform:translateX(-50%);width:220px;font-size:9px}.streak{top:67px;left:50%;right:auto;transform:translateX(-50%);font-size:9px}.notice{top:112px}.boss-hud{top:48px;width:310px;padding:7px 11px}.boss-hud>div:first-child{font-size:14px}.boss-health{margin:5px 0}.boss-hud small{font-size:11px}.boss-active .notice{top:132px}.touch-controls{left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));grid-template-columns:130px 80px 130px}.game-button{height:57px;font-size:14px}.howl-button{height:55px;font-size:11px;gap:0}.howl-icon{height:19px;width:24px}.howl-button small{font-size:9px}.centered{padding:12px}.panel{max-height:100%}.result-panel{width:470px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.hero-alpha{filter:none}}

/* V11: one rescue illustration; a wide scene on desktop, a compact panel on phones. */
.start-screen{background:#101f19;isolation:isolate}.home-art{position:absolute;inset:0;z-index:0;display:block;pointer-events:none;overflow:hidden}.home-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:70% 0}.home-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0d1e18fa 0%,#0d1e18e8 24%,#0d1e188c 44%,#0d1e1800 68%),linear-gradient(0deg,#0d1e18f0,transparent 36%,transparent 78%,#0d1e1855)}.start-copy{z-index:1}.start-copy h1{text-shadow:0 3px 25px #071a1370}.start-motto{z-index:1}.launch-panel{background:linear-gradient(145deg,#213c2bf5,#13281ff5);border-color:#c7e7b73b}.start-screen .chapter small{background:#152d22c9}
@media(max-width:760px) and (orientation:portrait){
 .start-screen{padding:22px 24px 18px;gap:13px;background:#101f19}.start-copy{margin-top:auto}.start-copy h1{font-size:clamp(42px,12.6vw,72px);line-height:.94;margin:14px 0 0}.start-copy p{font-size:15px;line-height:1.4;margin:10px 0 0}.start-copy p br{display:none}
 .home-art{position:relative;inset:auto;flex-shrink:0;align-self:center;width:calc(100% + 48px);max-width:540px;height:clamp(156px,25svh,230px);margin:-4px 0 -24px}.start-screen .home-art img{display:block;object-position:70% 0}.home-art::after{background:linear-gradient(0deg,#101f19 0%,#101f1900 32%,#101f1900 84%,#101f19 100%),linear-gradient(90deg,#101f1970,transparent 30%,transparent 90%,#101f1940)}
 .launch-panel{padding:18px 20px;box-shadow:0 14px 38px #07150f5c}.launch-meta{margin-bottom:14px}.launch-meta b{font-size:27px}.launch-panel .primary{min-height:58px}.field-guide{margin-top:20px}.field-guide b{font-size:16px;margin-bottom:3px}#save-note{margin-top:12px;font-size:11px}.start-motto{font-size:9px;margin-bottom:auto}
}
@media(max-width:360px) and (orientation:portrait){.start-screen{padding:18px 18px 16px;gap:11px}.start-copy h1{font-size:42px}.start-copy p{font-size:14px;margin-top:8px}.home-art{width:calc(100% + 36px);height:clamp(132px,23svh,170px);margin-bottom:-23px}.launch-panel{padding:15px 16px}.launch-meta b{font-size:24px}.launch-meta small{font-size:9px}.launch-panel .primary{min-height:52px}.field-guide{margin-top:17px}.field-guide small{font-size:10px}#save-note{margin-top:10px}.start-motto{font-size:8px}}
@media(max-height:650px) and (orientation:landscape){.start-screen{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);gap:32px;background:#101f19}.home-art{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;max-width:none}.start-screen .home-art img{display:block;object-fit:contain;object-position:left center}.home-art::after{background:linear-gradient(90deg,#0d1e18eb 0%,#0d1e1859 35%,#0d1e181a 55%,#0d1e18b8 100%),linear-gradient(0deg,#0d1e18db,transparent 70%)}.start-copy{align-self:start;padding-top:9px}.start-copy h1{font-size:clamp(42px,6.8vw,58px)}.launch-panel{align-self:center;background:#152c22ed}.field-guide small{font-size:10px}}
@media(min-width:761px) and (min-height:651px){.start-screen{justify-content:flex-start}.start-copy{margin-top:auto;flex-shrink:0}.launch-panel{flex-shrink:0}.start-motto{position:relative;left:auto;bottom:auto;margin-bottom:auto;flex-shrink:0}}

/* Keep the control row measurable while menus cover it, so pausing never moves the ground. */
#touch-controls.hidden{display:grid!important;visibility:hidden}
/* Fit the visible browser area, including Chrome's expanded toolbars. */
@media(max-width:760px),(pointer:coarse){
 body.playing{overflow:hidden;overscroll-behavior:none}
 body.playing #app{position:fixed;inset:var(--game-top,0px) auto auto var(--game-left,0px);width:var(--game-width,100%);height:100vh;height:100svh;height:var(--game-height,100svh);display:flex;flex-direction:column}
 body.playing .topbar{flex:0 0 auto;padding-top:env(safe-area-inset-top);box-sizing:content-box}
 body.playing #arena{flex:1 1 0;min-height:0;max-height:none;height:auto}
 body.playing footer{display:none}
 .touch-controls{bottom:max(18px,calc(10px + env(safe-area-inset-bottom)))}
 @media(max-height:650px) and (orientation:landscape){
  .touch-controls{bottom:max(12px,calc(8px + env(safe-area-inset-bottom)))}
 }
}

/* Mission results put safely escorted wolves alongside the run score. */
.result-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;margin:15px 0 0}
.result-hero .result-score{border-right:1px solid var(--line)}
.result-hero .result-score strong{font-size:clamp(28px,5vw,44px);letter-spacing:0;color:var(--cream)}
.result-home strong{display:block;font:800 64px/.95 'Barlow Condensed',sans-serif;color:var(--lime)}
.result-home>span{display:block;margin-top:8px;font-size:12px;font-weight:700;letter-spacing:.5px;color:var(--lime)}
.result-panel .home-note{font-size:12px;color:#bfd1b7;margin:12px 0 5px;line-height:1.4}
.trail-guide{display:grid;gap:7px;margin:18px 0;padding:14px;border-left:2px solid var(--lime);background:#c0f77907;font-size:13px;line-height:1.4;color:#b9cbb5}
.trail-guide b{font-size:11px;letter-spacing:1px;color:var(--lime);margin-bottom:3px}

.result-hero .result-score>span{font-size:12px;letter-spacing:.5px}

/* Encounter focus: health, one cue, four distinct controls. */
.boss-active .hud-main>div:first-child,.boss-active .vitals strong,.boss-active #pack-count,.boss-active .trail-status,.boss-active .route,.boss-active .streak,.boss-active .notice{display:none}
.boss-active .hud-main{justify-content:flex-end}
.boss-active .vitals{min-width:0;padding:10px 12px}
.boss-active .boss-hud{top:20px;width:min(400px,calc(100% - 240px))}
.boss-hud #boss-cue{font:800 22px/1.25 'Barlow Condensed',sans-serif;letter-spacing:.6px;min-height:28px;margin-top:10px}
.boss-hud.counter{border-color:#f4c787;background:#30291ef5}
.boss-hud.counter #boss-cue{color:#ffdb9d}
.boss-active .game-button.ready{background:#142b22f0;color:#eaf6df;border-color:#e1f4c346}
.boss-active .game-button.ready small{color:#b9cfa9}
.boss-active .game-button.cue-active{outline:3px solid #e5ffc0;outline-offset:4px;background:#c0f779;color:#173522;border-color:#e5ffc0}
.boss-active .game-button.cue-active small{color:#315c32}
.boss-active .howl-button.cue-active{background:#f4c787;outline-color:#ffdfa8;color:#372716}
.boss-active .howl-button.cue-active small,.boss-active .howl-button.cue-active .howl-icon{color:#614324}
@media(max-width:760px){
 .boss-active .boss-hud{top:12px;left:12px;right:106px;transform:none;width:auto;padding:10px 12px}
 .boss-hud>div:first-child{font-size:14px;gap:6px}.boss-hud b{font-size:10px}.boss-hud #boss-cue{font-size:21px}
 .boss-active #hearts{font-size:16px;letter-spacing:0}
}
@media(max-width:360px){.boss-active .boss-hud{left:9px;right:90px;padding:9px}.boss-hud b{font-size:9px}.boss-hud>div:first-child{font-size:12px}.boss-hud #boss-cue{font-size:19px}.boss-active .vitals{padding:8px}}
@media(max-height:650px) and (orientation:landscape){.boss-active .boss-hud{top:9px;left:50%;right:auto;transform:translateX(-50%);width:310px;padding:7px 11px}.boss-hud #boss-cue{font-size:18px;min-height:22px;margin-top:6px}}.launch-panel #save-note{margin-top:4px;font-size:10px}
.jump-button.air-ready{border-color:var(--lime);box-shadow:0 0 0 2px #c0f77933,0 5px 0 #081b14a6}.jump-button.air-ready small{color:var(--lime)}
.rescue-event{position:absolute;top:148px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);padding:11px 18px;border:1px solid #e4c79b66;border-left:3px solid var(--amber);border-radius:8px;background:#272a1ef5;pointer-events:none;text-align:center}.rescue-event b{display:block;font-size:12px;letter-spacing:1px;color:var(--amber)}.rescue-event span{display:block;margin-top:4px;font-size:11px;color:#e0e7cd;font-variant-numeric:tabular-nums}.rescue-event.complete{border-color:var(--lime);background:#1b3326f5}.rescue-event.complete b{color:var(--lime)}.rescue-event:not(.hidden)~.notice{display:none}
.end-target{font-size:11px!important;font-weight:700;color:var(--lime)!important;letter-spacing:.3px}
@media(max-width:760px){.rescue-event{top:187px;padding:10px 13px}}

@media(max-height:650px) and (orientation:landscape){.rescue-event{top:108px;padding:8px 12px}}

@media(max-width:760px) and (max-height:720px) and (orientation:portrait){
 .start-screen{padding:16px 18px;gap:10px}.start-copy h1{font-size:clamp(36px,10.5vw,44px);margin:10px 0 0}.start-copy p,.start-motto{display:none}.home-art{width:calc(100% + 36px);height:clamp(96px,18svh,132px);margin:-3px 0 -18px}.launch-panel{padding:14px 16px}.launch-meta{margin-bottom:12px}.launch-meta b{font-size:24px}.launch-panel .primary{min-height:52px}.field-guide{margin-top:17px}
}.game-button.victory-disabled{opacity:.45}.boss-hud.victory{border-color:var(--lime);background:#183225f5}.boss-hud.victory .boss-health{display:none}.boss-hud.victory b,.boss-hud.victory #boss-cue{color:var(--lime)}
.result-panel .end-pack{font-size:13px;line-height:1.4;color:var(--lime);padding:10px;background:#c0f77909;border:1px solid #c0f77930;border-radius:7px}.cause #end-detail{font-size:13px;color:#edf4df;margin:8px 0 6px}

/* Music settings stay in pause / guide screens, clear of gameplay controls. */
.music-control{margin:20px 0;text-align:left;border-top:1px solid var(--line);padding-top:17px}.music-control>div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:var(--cream)}.music-control output{color:var(--lime);font-variant-numeric:tabular-nums}.music-control input{display:block;width:100%;height:44px;margin:2px 0 0;accent-color:var(--lime);cursor:pointer;touch-action:pan-y}.music-control input:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:8px}.music-control small{display:block;color:#e5c18f;font-size:13px;line-height:1.45}.music-control small:empty{display:none}.music-credits{text-align:left;border:1px solid var(--line);border-radius:10px;padding:0 14px;margin:16px 0}.music-credits summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;color:var(--cream)}.music-credits summary::before{content:'+';margin-right:10px;color:var(--lime)}.music-credits[open] summary::before{content:'−'}.music-credits p{font-size:14px;line-height:1.6;margin:0 0 12px;color:var(--muted)}.music-credits a{color:var(--lime);text-underline-offset:3px}.music-credits a:focus-visible{outline:2px solid var(--lime);outline-offset:2px}

.boss-health{position:relative;height:8px}.boss-health::after{content:"";position:absolute;inset:0;background-image:linear-gradient(to right,transparent calc(100% - 2px),#283b2e 0);background-size:calc(100% / var(--hits,3)) 100%;pointer-events:none}.boss-hud>div:first-child{flex-wrap:wrap;row-gap:2px}

/* Gameplay owns multi-touch; paused menus retain pinch-to-zoom recovery. */
body.input-locked,body.input-locked #app,body.input-locked #arena{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.view-zoomed #app,body.view-zoomed #arena,body.view-zoomed #game,body.view-zoomed .game-button{touch-action:pan-x pan-y pinch-zoom}

/* Four stable touch targets: offensive Dash stays at the right thumb. */
.touch-controls{grid-template-columns:repeat(4,minmax(0,140px))}
.duck-button{background:#20333bf5;border-color:#b7d9e64d}.duck-button small{color:#b7d9e6}.duck-button i{background:#b7d9e6}.duck-button.ready,.duck-button.active{background:#b7d9e6;color:#193a48;border-color:#dceff6}.duck-button.ready small,.duck-button.active small{color:#335664}.duck-button.ready i,.duck-button.active i{background:#658e9c}.duck-button.locked{opacity:.65}
@media(max-width:760px),(pointer:coarse){.touch-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-button{height:76px;gap:0;font-size:14px;letter-spacing:.25px;text-align:center}.game-button .control-glyph,.game-button .howl-icon{display:none}.game-button small{font-size:10px}.howl-button{flex-direction:row}}
@media(max-height:650px) and (orientation:landscape){.touch-controls{grid-template-columns:repeat(4,minmax(0,125px));gap:10px}.game-button{height:57px}.game-button .control-glyph,.game-button .howl-icon{display:none}.howl-button{flex-direction:row}}

.field-guide{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;letter-spacing:.2px}.field-guide>span+span{padding-left:7px}.field-guide>span:nth-child(3) b{color:#b7d9e6}.field-guide small{overflow-wrap:normal}
.boss-active .duck-button.cue-active{background:#b7d9e6;outline-color:#def1f8;color:#193a48}.boss-active .duck-button.cue-active small{color:#335664}

/* V26: one grounded, readable instruction beside the fight. No bouncing or extra panel. */
.boss-action{position:absolute;z-index:3;box-sizing:border-box;height:36px;display:flex;align-items:center;justify-content:center;padding:4px 10px;border:1px solid #bdccb65c;border-left:4px solid #d9e6d1;border-radius:8px;background:#101e19f5;box-shadow:0 3px 12px #07140e33;color:#f0f6e9;font:800 20px/1 'Barlow Condensed',sans-serif;letter-spacing:.5px;white-space:nowrap;pointer-events:none}
.boss-action[data-action="howl"]{color:#ffdfa8;border-color:#f4c787;background:#30291ef5}
.boss-action[data-action="duck"]{color:#def1f8;border-color:#b7d9e6;background:#182f3af5}
.boss-action[data-action="jump"]{color:#e5ffc0;border-color:#d2efad;background:#223522f5}
.boss-action[data-action="dash"]{color:#e5ffc0;border-color:#c0f779;background:#18301df5}
.boss-action[data-dock="side"]{font-size:19px}

.boss-health.continuous::after{display:none}

/* V29: two thumb zones, with an open centre and the most used actions below. */
.touch-controls{grid-template-columns:minmax(0,132px) 1fr minmax(0,132px);grid-template-rows:54px 76px;gap:10px 16px;align-items:stretch}
.touch-controls #duck{grid-column:1;grid-row:1;justify-self:start;width:88%;height:54px}
.touch-controls #howl{grid-column:3;grid-row:1;justify-self:end;width:88%;height:54px}
.touch-controls #jump{grid-column:1;grid-row:2;height:76px}
.touch-controls #dash{grid-column:3;grid-row:2;height:76px}
.touch-controls .game-button{gap:0;text-align:center;border-radius:18px}
.touch-controls .control-glyph,.touch-controls .howl-icon{display:none}
.touch-controls #duck,.touch-controls #howl{font-size:14px;border-radius:15px}
.touch-controls #jump,.touch-controls #dash{font-size:18px}
.game-button.lesson-active{outline:3px solid #e5ffc0;outline-offset:3px;background:#c0f779;color:#173522;border-color:#e5ffc0;box-shadow:0 5px 0 #081b14a6,0 0 20px #c0f77935}
.game-button.lesson-active small{color:#315c32}
.howl-button.lesson-active{background:#f4c787;outline-color:#ffdfa8;color:#372716}
.howl-button.lesson-active small{color:#614324}
.duck-button.lesson-active{background:#b7d9e6;outline-color:#def1f8;color:#193a48}
.duck-button.lesson-active small{color:#335664}
.learning-cue{position:absolute;z-index:3;pointer-events:none;text-align:center;border:1px solid #c4d7ba55;border-radius:12px;background:#10261ff2;box-shadow:0 5px 20px #07170d28;padding:10px 14px;min-height:56px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.learning-cue b{font:800 21px/1 'Barlow Condensed',sans-serif;letter-spacing:.6px;color:#f0f8e7}
.learning-cue small{font-size:12px;line-height:1.2;color:#bed1b2}
.learning-cue[data-action="howl"]{border-color:#f4c787}.learning-cue[data-action="duck"]{border-color:#b7d9e6}
.learning-cue[data-action="jump"],.learning-cue[data-action="dash"]{border-color:#c0f779}
.learning-active .notice,.learning-active .streak{visibility:hidden}
@media(max-width:760px),(pointer:coarse){.touch-controls{grid-template-columns:minmax(0,124px) 1fr minmax(0,124px);left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));column-gap:10px}}
@media(max-width:350px){.touch-controls{grid-template-columns:102px 1fr 102px}.learning-cue b{font-size:19px}}
/* Short landscape uses neighbouring controls within each thumb zone. */
@media(max-height:650px) and (orientation:landscape){
 .touch-controls{grid-template-columns:minmax(72px,112px) minmax(64px,90px) 1fr minmax(64px,90px) minmax(72px,112px);grid-template-rows:57px;column-gap:10px;bottom:max(12px,calc(8px + env(safe-area-inset-bottom)))}
 .touch-controls #jump{grid-area:1/1;height:57px}.touch-controls #duck{grid-area:1/2;height:57px;width:100%}
 .touch-controls #howl{grid-area:1/4;height:57px;width:100%}.touch-controls #dash{grid-area:1/5;height:57px}
 .learning-cue{padding:7px 10px;min-height:50px}.learning-cue b{font-size:19px}.learning-cue small{font-size:11px}
}

@media(max-height:520px){.learning-active .trail-status,.learning-active .route,.learning-active .streak,.learning-active #pack-count,.learning-active #best-target{visibility:hidden}}
@media(max-height:520px){.learning-active .hud-main small,.learning-active .hud-main .eyebrow,.learning-active .vitals strong{display:none}.learning-active .hud-main>div{padding:7px 10px}.learning-active .hud-main strong{font-size:25px}.learning-active .hud{top:9px}}
/* Keep the tallest boss clear of the health panel on short portrait screens. */
@media(max-height:520px) and (orientation:portrait){.touch-controls{grid-template-rows:48px 64px;row-gap:8px}.touch-controls #duck,.touch-controls #howl{height:48px}.touch-controls #jump,.touch-controls #dash{height:64px}}

/* The second jump is called out only while it is available. */
#jump-label{white-space:pre-line;line-height:1.1;margin-top:3px}

/* Hearts stay on one line without crowding the boss panel. */
#hearts{white-space:nowrap;min-width:5.35em;text-align:right;letter-spacing:2px;font-size:18px}.home-hearts{font-size:16px;letter-spacing:2px;flex-shrink:0}.boss-active #hearts{font-size:16px;letter-spacing:1px}
@media(max-width:760px){.boss-active .boss-hud{right:130px}}
@media(max-width:350px){.home-hearts{font-size:14px;letter-spacing:1px}.boss-active .boss-hud{right:124px}}

/* First-run control locks and contextual rescue / damage feedback. */
.lesson-locked{opacity:.38;box-shadow:none!important}.quick-guide p{font-size:15px;line-height:1.5}.quick-guide b{color:var(--lime)}.enemy-guide summary{padding:14px 0;font-weight:700;color:#ddedc9;cursor:pointer}.enemy-guide>p{font-size:14px}.action-feedback{position:absolute;z-index:4;top:126px;left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 28px));border:1px solid #c0f77988;border-left:4px solid var(--lime);border-radius:10px;padding:11px 14px;background:#10261ff7;text-align:center;pointer-events:none;box-shadow:0 5px 18px #08140e22}.action-feedback b{display:block;font:800 21px/1.05 'Barlow Condensed',sans-serif;color:#e4ffca;letter-spacing:.4px}.action-feedback span{display:block;margin-top:5px;color:#d1dfc7;font-size:13px;line-height:1.25}.action-feedback[data-kind="damage"]{border-color:#f1b17d;background:#34261ff7}.action-feedback[data-kind="damage"] b{color:#ffceab}.feedback-active .notice{visibility:hidden}.feedback-active .route,.feedback-active .streak{visibility:hidden}#hearts{min-width:4.5em}
@media(max-width:760px){.action-feedback{top:128px}.field-guide{margin-top:20px}.start-motto{line-height:1.4}}
@media(max-height:650px) and (orientation:landscape){.action-feedback{top:63px;width:min(330px,calc(100% - 28px));padding:6px 10px}.action-feedback b{font-size:18px}.action-feedback span{font-size:12px;margin-top:3px}.feedback-active .trail-status{visibility:hidden}.field-guide{margin-top:14px}}
@media(max-height:520px) and (orientation:portrait){.action-feedback{top:71px;padding:7px 10px}.action-feedback b{font-size:19px}.action-feedback span{font-size:12px}.feedback-active .trail-status{visibility:hidden}}

/* Home and pack: clear actions first, deeper detail on demand. */
.brand-mark{display:block;flex:none;width:48px;height:48px;object-fit:cover;border:0;border-radius:50%;transform:none;background:#080d09;box-shadow:0 0 0 1px #b3ef642b}
.topbar{background:#0c1712}.brand{gap:12px}.top-actions{gap:8px}
.start-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,430px);align-items:center;align-content:center;padding:34px 6%;gap:7%;overflow-y:auto}
.start-copy{margin:0;align-self:center}.start-copy h1{font-size:clamp(68px,7.2vw,110px)}.start-copy p{font-size:17px;letter-spacing:.2px}
.start-screen .home-art{position:absolute;inset:0;max-width:none;width:100%;height:100%;margin:0}
.home-art::after{background:linear-gradient(90deg,#0b1b16ed, #0b1b1655 46%,#0b1b16c9),linear-gradient(0deg,#0b1b16bb,transparent 65%)}
.launch-panel{width:100%;max-width:430px;padding:22px;border:1px solid #d4ebbe33;border-radius:20px;background:linear-gradient(145deg,#192e24f7,#0e211bf7);box-shadow:0 20px 70px #06110d66;align-self:center}
.launch-meta{margin:0 0 12px;gap:10px}.launch-meta small{font-size:9px;letter-spacing:1.2px}.launch-meta b{margin:0;font:700 13px/1.3 Barlow,Arial,sans-serif;letter-spacing:.4px;color:#e2edda}
.launch-panel .primary{min-height:55px;box-shadow:0 3px 0 #688a37;border-radius:10px;font-size:17px;letter-spacing:1.4px}
.controls-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 0;gap:8px}.controls-heading h2{font:800 11px/1.3 Barlow,Arial,sans-serif;letter-spacing:1.1px;margin:0;color:#dce8d3}.controls-heading .text-button{padding:0 0 0 10px;min-height:44px;font-size:11px;text-transform:none;letter-spacing:0;color:#b9ccae}.controls-heading .text-button span{margin-left:4px;color:var(--lime);font-size:16px}
.action-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.action-card{--action:#c0f779;position:relative;display:flex;align-items:center;gap:10px;min-height:77px;padding:12px 10px;border:1px solid #cedfc122;border-radius:11px;background:#ffffff03;text-align:left;min-width:0}
.action-howl{--action:#f4c787}.action-duck{--action:#b7d9e6}.action-dash{--action:#c0f779}
.action-icon{display:grid;place-items:center;flex:0 0 32px;height:36px;border-radius:8px;background:#ffffff05;color:var(--action);font:700 30px/1 'Barlow Condensed',Arial,sans-serif}.action-card b{display:block;font:800 14px/1.2 Barlow,Arial,sans-serif;letter-spacing:.7px;color:var(--action)}.action-card small{display:block;font-size:12px;line-height:1.35;color:#c2d0ba;margin-top:4px}.action-card kbd{position:absolute;top:8px;right:8px;font-size:8px;color:#9bae97;border:0;padding:0}.action-card>div{min-width:0}
.run-rules{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 16px;font-size:11px;color:#aebeaa}.run-rules>span{display:flex;align-items:center;gap:5px}.run-rules b{font-weight:600;color:#d7edb9}.run-rules .home-hearts{font-size:13px;letter-spacing:0}#save-note{margin:10px 0 0;font-size:11px;line-height:1.4;color:var(--amber)}#save-note[hidden]{display:none}
.guide-panel{width:620px;padding:28px}.guide-panel h2{font-size:48px;margin:14px 0 8px}.guide-panel .guide-intro{margin:0 0 20px;font-size:14px;color:#b9cbb3}.expanded .action-card{min-height:100px;padding:16px 12px}.expanded .action-card small{font-size:13px;line-height:1.4}.expanded .action-card kbd{top:10px;right:10px}.rescue-path{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:20px 0;padding:16px 0;border-block:1px solid var(--line)}.rescue-path>span{font-size:9px;line-height:1.3;letter-spacing:.4px;font-weight:700;text-align:center}.rescue-path b{display:block;font:600 20px/1 'Barlow Condensed',Arial,sans-serif;color:var(--lime);margin-bottom:6px}.rescue-path i{font-style:normal;color:#7f9876}.guide-rules p{display:flex;gap:12px;justify-content:space-between;font-size:13px;line-height:1.4;margin:10px 0}.guide-rules b{color:#def4c2;flex-shrink:0}.guide-rules span{color:#afc0a7;text-align:right}.enemy-guide,.audio-settings{border-top:1px solid var(--line);margin-top:15px}.enemy-guide summary,.audio-settings>summary{min-height:48px;padding:14px 0;font-size:13px;line-height:1.5;font-weight:600;color:#dce8d3;cursor:pointer}.enemy-guide p,.enemy-guide li{font-size:13px;line-height:1.5;color:#b7c9ad}.enemy-guide ul{padding-left:20px}.enemy-guide li+li{margin-top:9px}.guide-panel .bear-guide span{font-size:13px}.audio-settings .music-control{margin:8px 0 16px}.guide-panel .primary{margin-top:18px}
@media(min-width:1000px) and (min-height:760px){.launch-panel{padding:26px}.action-card{min-height:84px}.start-screen{padding-inline:7%}}
@media(max-width:760px){
 .brand-mark{width:40px;height:40px}.brand{gap:9px}.topbar{height:62px}.brand small{margin-top:3px}
 .start-screen{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:0;padding:18px 18px 24px;overflow-y:auto}
 .start-copy{margin:0;align-self:center;width:100%;max-width:430px;min-height:166px;padding:0 0 16px;flex-shrink:0}
 .start-copy .chapter{justify-content:flex-start;gap:10px;font-size:9px;letter-spacing:1px}.start-copy .chapter small{font-size:8px;padding:4px 7px}
 .start-copy h1{font-size:clamp(44px,12vw,64px);line-height:.91;margin:13px 0 0;letter-spacing:-.8px}.start-copy p{font-size:12px;margin:9px 0 0;color:#d1dfc6}
 .start-screen .home-art{position:absolute;inset:0 0 auto;height:260px;width:100%;max-width:none;margin:0}.start-screen .home-art img{display:block;object-fit:cover;object-position:74% 25%}.home-art::after{background:linear-gradient(90deg,#0d1e18f2,#0d1e1880 50%,#0d1e1820),linear-gradient(0deg,#101f19 0%,transparent 70%)}
 .launch-panel{padding:16px;max-width:430px;margin:0;flex-shrink:0;border-radius:16px;box-shadow:0 12px 32px #05100c50}.launch-meta{margin-bottom:11px}.launch-meta small{font-size:9px}.launch-meta b{font-size:11px;letter-spacing:.2px}.launch-panel .primary{min-height:52px;font-size:16px}
 .action-card{gap:7px;padding:10px 8px;min-height:74px}.action-card .action-icon{flex-basis:25px;font-size:27px;background:none}.action-card b{font-size:12px;letter-spacing:.5px}.action-card small{font-size:11px}.action-card kbd{display:none}.run-rules{font-size:10px;margin:11px 0 14px}
 .guide-panel{padding:22px 18px}.guide-panel h2{font-size:39px;letter-spacing:-.7px;padding-right:22px}.guide-panel .close{right:12px;top:12px}.guide-panel .guide-intro{font-size:12px;margin-bottom:16px}.expanded .action-card{padding:12px 9px;min-height:104px;align-items:flex-start}.expanded .action-icon{margin-top:3px}.expanded .action-card small{font-size:12px}.guide-rules p{font-size:12px}.rescue-path{margin:16px 0}.rescue-path>span{font-size:8px}.rescue-path i{font-size:12px}
}
@media(max-width:360px){.start-screen{padding:14px 12px 22px}.start-copy{min-height:154px}.start-copy h1{font-size:43px}.launch-panel{padding:13px}.action-card{gap:4px;padding:9px 6px}.action-card .action-icon{flex-basis:21px}.action-card small{font-size:10px}.run-rules{font-size:9px}.guide-panel .action-cards{gap:6px}.guide-panel .expanded .action-card{padding:10px 7px}.expanded .action-icon{display:none}}
@media(max-height:740px) and (orientation:portrait){.start-copy{min-height:132px}.start-copy h1{font-size:43px}.start-screen{padding-top:14px}.start-copy p{font-size:11px}.action-card{min-height:67px}.launch-panel{padding:14px}.run-rules{margin-bottom:12px}}
@media(max-height:650px) and (orientation:landscape){.start-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);align-content:start;align-items:start;gap:24px;padding:20px 5%}.start-copy{position:sticky;top:0;align-self:start;min-height:0}.start-copy h1{font-size:clamp(40px,6vw,62px)}.start-copy p{display:block;font-size:12px}.start-screen .home-art{position:fixed;top:54px;bottom:0;height:calc(100% - 54px)}.launch-panel{padding:15px;align-self:start}.launch-panel .primary{min-height:48px}.action-card{min-height:65px}.action-card kbd{display:none}.brand-mark{width:38px;height:38px}}
/* One decision at a time: world-space danger and lessons own the action lane. */
.danger-active .rescue-event,.feedback-active .rescue-event{visibility:hidden}
.learning-active .action-feedback{display:none}

/* A quiet title screen: the rescue owns the artwork, Start owns the menu. */
.top-actions #pause:disabled{display:none}
body:not(.playing) footer{display:none}
body:not(.playing) #arena{height:calc(100svh - 72px);height:calc(100dvh - 72px);min-height:0;max-height:none}
.start-screen{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:start;gap:28px 0;padding:40px 6%;background:#101e18}
.start-screen .start-copy{grid-column:1;grid-row:1;position:relative;top:auto;align-self:end;min-height:0;width:100%;max-width:none;padding:0;margin:0}
.start-copy .chapter{display:block;font-size:.75rem;letter-spacing:.18em;color:#bfd0be}
.start-screen .start-copy h1{font-size:clamp(3rem,4.5vw,4rem);line-height:1;letter-spacing:-.035em;margin:12px 0 0;text-wrap:balance;text-shadow:none}
.start-screen .start-copy p{display:block;font-size:.875rem;line-height:1.5;letter-spacing:.1em;margin:12px 0 0;color:#e0ead9}
.start-screen .home-art{position:absolute;inset:0 0 0 29%;width:71%;height:100%;max-width:none;margin:0}
.start-screen .home-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.start-screen .home-art::after{background:linear-gradient(90deg,#101e18 0%,#101e18cc 8%,transparent 30%),linear-gradient(0deg,#101e18a6,transparent 30%,transparent 90%,#101e1840)}
.start-screen .launch-panel{grid-column:1;grid-row:2;align-self:start;width:100%;max-width:360px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.start-screen .launch-panel .primary{min-height:64px;padding:18px 20px;font-size:1.125rem;letter-spacing:.08em;border-radius:12px;box-shadow:0 4px 0 #617f37}
.start-screen .launch-meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;min-height:48px;margin:7px 0 13px;text-align:center}
.start-screen .launch-meta small{font-size:.75rem;letter-spacing:.08em;color:#adbfac}
.start-screen .launch-meta b{font:700 .875rem/1.4 Barlow,Arial,sans-serif;letter-spacing:.02em;color:#e4efdc;margin:0}
.start-screen .home-controls{text-align:center;border-top:1px solid #d3edbd26;padding-top:16px}
.control-reminders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.control-reminders>span{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.control-reminders b{font-size:.875rem;line-height:1.4;letter-spacing:.03em;color:#e0ead9}
.control-reminders kbd{font:500 .75rem/1.3 Barlow,Arial,sans-serif;border:0;background:none;color:#a9bda9;padding:0}
.start-screen .home-controls .text-button{font-size:.875rem;letter-spacing:.01em;font-weight:600;min-height:44px;padding:12px 18px;margin:10px 0 0;color:#c0f779;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c0f77955}
.start-screen #save-note{font-size:.8125rem;line-height:1.5;text-align:center;margin:8px 0 0}
@media(max-width:760px){
 body:not(.playing) #arena{height:calc(100svh - 62px);height:calc(100dvh - 62px)}
 .start-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:18px 22px max(16px,env(safe-area-inset-bottom));overflow-y:auto}
 .start-screen .start-copy{order:0;flex-shrink:0;align-self:center;width:100%;max-width:430px;min-height:0;padding:0;margin:0;text-align:center}
 .start-copy .chapter{font-size:.75rem;letter-spacing:.14em}
 .start-screen .start-copy h1{font-size:clamp(2.7rem,11.5vw,3.75rem);margin-top:7px;line-height:1}
 .start-screen .start-copy p{font-size:.8125rem;letter-spacing:.075em;margin-top:7px}
 .start-screen .home-art{order:1;position:relative;inset:auto;flex-shrink:0;align-self:center;width:calc(100% + 44px);max-width:550px;height:clamp(180px,34svh,340px);margin:8px 0 -12px}
 .start-screen .home-art img{object-fit:cover;object-position:60% 32%}
 .start-screen .home-art::after{background:linear-gradient(0deg,#101e18 0%,#101e1822 22%,transparent 45%,transparent 82%,#101e18 100%),linear-gradient(90deg,#101e1826,transparent 20%,transparent 90%,#101e1826)}
 .start-screen .launch-panel{order:2;flex-shrink:0;align-self:center;width:100%;max-width:390px;padding:0;margin:0}
 .start-screen .launch-panel .primary{min-height:60px;font-size:1.0625rem}
 .start-screen .launch-meta{min-height:42px;margin:6px 0 4px}
 .start-screen .home-controls{padding-top:13px}
 .control-reminders kbd{display:none}
 .start-screen .home-controls .text-button{margin-top:2px}
}
@media(max-width:760px) and (max-height:690px){
 .start-screen{justify-content:flex-start;padding-top:12px}
 .start-screen .start-copy h1{font-size:2.7rem}
 .start-screen .home-art{height:clamp(150px,29svh,200px);margin-top:4px}
 .start-screen .launch-panel .primary{min-height:56px}
}
@media(orientation:landscape) and (max-height:650px){
 body:not(.playing) #arena{height:calc(100svh - 54px);height:calc(100dvh - 54px)}
 .start-screen{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);grid-template-rows:auto auto;align-content:center;justify-content:initial;gap:17px 0;padding:20px 5%}
 .start-screen .start-copy{text-align:left;align-self:end;max-width:none}
 .start-screen .start-copy h1{font-size:2.75rem;margin-top:6px}
 .start-screen .start-copy p{font-size:.75rem;margin-top:7px}
 .start-screen .home-art{position:absolute;inset:0 0 0 35%;width:65%;height:100%;max-width:none;margin:0}
 .start-screen .home-art img{object-position:65% 30%}
 .start-screen .home-art::after{background:linear-gradient(90deg,#101e18,transparent 30%),linear-gradient(0deg,#101e1877,transparent 40%)}
 .start-screen .launch-panel{align-self:start;max-width:310px}
 .start-screen .launch-panel .primary{min-height:50px;padding:12px}
 .start-screen .launch-meta{min-height:32px;margin:5px 0}
 .start-screen .home-controls{padding-top:10px}
 .control-reminders kbd{display:none}
 .start-screen .home-controls .text-button{margin:0;min-height:44px}
}
@media(orientation:landscape) and (max-height:410px){
 .start-screen{align-content:start;gap:10px 0;padding-block:12px}
 .start-copy .chapter{display:none}
 .start-screen .start-copy h1{font-size:2.4rem;margin-top:0}
}

/* A single home control opens the earned character collection. */
.wolf-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin-top:11px;padding:6px 2px;border:0;background:none;color:#b9cbb6;font:600 .875rem/1.4 Barlow,Arial,sans-serif;cursor:pointer}
.wolf-choice>span:first-child{display:flex;gap:9px;align-items:center;font-size:.75rem;letter-spacing:.04em}
.wolf-choice b{color:#eff5e9;font-size:.875rem}.wolf-choice>span:last-child{color:#c0f779;text-decoration:underline;text-underline-offset:4px}
.wolf-picker{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #bac9d344;border-radius:18px;color:#edf3ea;background:#10221c;overflow-y:auto;overscroll-behavior:contain}
.wolf-picker::backdrop{background:#06120de8}
.wolf-picker .close{position:absolute;right:12px;top:12px;min-width:44px;min-height:44px}
.wolf-picker h2{font:800 clamp(1.8rem,5vw,2.75rem)/1.05 'Barlow Condensed',Arial,sans-serif;margin:14px 42px 12px 0;letter-spacing:-.02em}
.wolf-picker h2 em{color:var(--lime);font-style:normal}
.wolf-fairness{font-size:1rem;line-height:1.5;color:#bdcdb7;margin:0 0 18px}
.wolf-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.wolf-option{min-width:0;border:1px solid #c2d5b629;border-radius:12px;overflow:hidden;background:#ffffff03}
.wolf-option>img{display:block;width:100%;height:210px;object-fit:contain;background:radial-gradient(ellipse at 50% 65%,#6c897025,transparent 70%)}
.wolf-option>div{padding:0 16px 16px}.wolf-option small,.end-unlock small{font-size:.75rem;letter-spacing:.09em;color:#b8caae}
.wolf-option h3,.end-unlock h3{font:800 2rem/1.1 'Barlow Condensed',Arial,sans-serif;margin:5px 0 8px}
.wolf-option p{font-size:.875rem;line-height:1.5;color:#bacbb5;margin:8px 0}.wolf-option .wolf-title{color:#d7e9f4;font-weight:700}
.wolf-option .secondary{min-height:46px;font-size:.875rem;padding:10px;margin-top:16px;line-height:1.3}
.wolf-option .secondary[aria-pressed=true]{color:#c0f779;border-color:#a0c77a88;background:#a6df6b10}
.wolf-option .secondary:disabled{opacity:1;background:#a7cadd0a;border-color:#a7cadd33;color:#b9c8d2;cursor:default}
.ronan-option{border-color:#a4c8df55;background:#9bcbe50a}.ronan-option>img{background:radial-gradient(ellipse at 50% 65%,#70b9ed29,transparent 70%)}
.ronan-option small{color:#bcdcec}
.wolf-requirement{margin-top:20px;border-top:1px solid #c2d5b629;padding-top:18px;font-size:.875rem;line-height:1.6;color:#cad8c4}
.wolf-requirement b{color:#d3e8f2;letter-spacing:.05em}.wolf-requirement ol{padding-left:20px;margin:10px 0}.wolf-requirement li+li{margin-top:6px}.wolf-requirement p{font-size:.875rem;margin:10px 0 0;color:#b5c6b0}
.wolf-owned{font-size:.875rem;line-height:1.5;color:#c0f779;margin:18px 0 0}
.end-unlock{display:grid;grid-template-columns:105px 1fr;align-items:center;gap:8px;margin:16px 0;padding:12px;border:1px solid #a4c8df55;border-radius:12px;background:#9bcbe50a;text-align:left}
.end-unlock img{width:100%;height:150px;object-fit:contain}.end-unlock p{font-size:.875rem;line-height:1.4;margin:6px 0;color:#d2dfdc}.end-unlock .secondary{font-size:.875rem;min-height:44px;margin-top:9px;padding:9px}
.end-unlock[hidden],.wolf-owned[hidden],.wolf-requirement[hidden]{display:none}
.rescue-event.trial-failed{border-color:#9aa99477;background:#17281ef0}.rescue-event.trial-failed b{color:#b7c6ae}
.wolf-choice:focus-visible,.wolf-picker button:focus-visible{outline:2px solid #c0f779;outline-offset:3px}
@media(max-width:480px){
 .wolf-picker{padding:22px 16px}.wolf-options{grid-template-columns:1fr;gap:12px}
 .wolf-option{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center}
 .wolf-option>img{height:178px}.wolf-option>div{padding:16px 12px 16px 0}
 .wolf-option h3{font-size:1.75rem}.wolf-option p{margin:5px 0}.wolf-option .secondary{margin-top:10px}
 .wolf-choice{margin-top:7px}.end-unlock{grid-template-columns:84px minmax(0,1fr)}
 .end-unlock img{height:130px}
}
@media(orientation:landscape) and (max-height:650px){.wolf-option>img{height:150px}.wolf-picker{padding:20px}.wolf-choice{margin-top:5px}}

/* One personal target in the existing result and wolf-selection surfaces. */
.result-panel .end-target{font-size:.9375rem!important;line-height:1.45;letter-spacing:0;margin:14px 0;color:#d8f2ba!important}
.wolf-option .ronan-best{font-size:.875rem;line-height:1.45;color:#d4e6f2;font-weight:600;margin:12px 0}
.ronan-best[hidden]{display:none}

/* Raised rescue platforms use the space normally occupied by route metadata. */
.high-route-active .trail-status,.high-route-active .route,.high-route-active .streak,.high-route-active .rescue-event{visibility:hidden}

/* Safe practice presents one action at a time, without scoring clutter. */
.practice-status{position:absolute;z-index:3;top:16px;left:18px;right:18px;pointer-events:none;color:#e8f5df;text-shadow:0 2px 5px #07130e}
.practice-status b{font-size:13px;letter-spacing:.08em}.practice-status span{margin-left:10px;color:#c0f779}
.practice-status small{display:block;margin-top:6px;font-size:14px;color:#d5e2cd}
.practice-active .hud,.practice-active .notice,.practice-active .rescue-event,.practice-active .action-feedback{display:none}
.practice-active .learning-cue small{font-size:14px;line-height:1.3;letter-spacing:0}
.practice-active .learning-cue{padding:10px 12px}
.practice-active .lesson-locked{opacity:.32}
@media(orientation:landscape) and (max-height:500px){.practice-status{top:8px;left:14px}.practice-status small{font-size:12px;margin-top:3px}.practice-active .learning-cue{padding:7px 10px}.practice-active .learning-cue small{font-size:12px}}

@media(max-width:760px) and (max-height:612px){.practice-active .learning-cue{padding:7px 10px}.practice-active .learning-cue small{font-size:12px}.practice-active .learning-cue b{font-size:19px}}

/* The guide keeps essential advice visible and individual encounters compact. */
.guide-panel .guide-intro{font-size:16px;line-height:1.5;color:#d1dfc6;margin:12px 0 18px}
#guide-practice>p{font-size:14px;line-height:1.45;color:#b9cbb3;margin:8px 0 18px}
.guide-panel .expanded .action-card{align-items:flex-start;padding-top:20px}
.guide-panel .action-card small{font-size:14px;line-height:1.45}
.guide-panel .action-card b{font-size:14px}
.guide-panel .guide-rules p{font-size:14px}
.guide-mistakes{margin:20px 0;padding:16px;border:1px solid #d3edbd30;border-radius:10px;background:#ffffff03}
.guide-mistakes h3,.encounter-guide h3{font-size:14px;line-height:1.4;color:#def4c2;margin:0 0 10px}
.guide-mistakes ul{margin:0;padding-left:18px;font-size:14px;line-height:1.5;color:#c2d0ba}
.guide-mistakes li+li{margin-top:8px}.guide-mistakes b{color:#e1edda}
.guide-panel .enemy-guide>summary,.guide-panel .audio-settings>summary{font-size:16px;min-height:48px}
.encounter-guide h3{margin:18px 0 8px}
.encounter{border-top:1px solid var(--line)}
.encounter-guide .encounter>summary{display:flex;align-items:center;gap:10px;min-height:58px;padding:6px 0;font-size:14px;font-weight:600;list-style:none}
.encounter>summary::-webkit-details-marker{display:none}
.encounter>summary::after{content:'+';margin-left:auto;flex:0 0 24px;text-align:center;font-size:22px;color:var(--lime)}
.encounter[open]>summary::after{content:'−'}
.encounter>summary img{width:44px;height:46px;object-fit:contain;flex-shrink:0}
.encounter>summary span{min-width:0;line-height:1.4}
.guide-panel .encounter p{margin:0 0 14px;font-size:14px;line-height:1.5;color:#c2d0ba}
.guide-panel .enemy-guide p,.guide-panel .enemy-guide li{font-size:14px;line-height:1.5}
.guide-panel summary:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:4px}
@media(max-width:360px){.guide-panel .action-cards{grid-template-columns:1fr}.guide-panel .expanded .action-card{min-height:0;padding:12px}.guide-mistakes{padding:13px}.guide-panel .guide-rules p{display:block}.guide-panel .guide-rules span{display:block;text-align:left;margin-top:4px}}

/* Keep phone guidance primary; expose keyboard controls at any PC window size. */
.guide-panel .guide-input-note,.guide-panel .guide-pause{font-size:14px;line-height:1.5;color:#d1dfc6;margin:16px 0}
.guide-panel .guide-pause{padding:12px 14px;border:1px solid var(--line);border-radius:8px}
body[data-input="touch"] .guide-panel .action-card kbd,body[data-input="touch"] .control-reminders kbd{display:none}
body[data-input="keyboard"] .control-reminders kbd{display:block;font-size:14px;color:#d5e5c9}
body[data-input="keyboard"] .guide-panel .action-card{flex-wrap:wrap;align-content:flex-start;padding:14px 12px;gap:10px}
body[data-input="keyboard"] .guide-panel .action-card .action-icon{display:none}
body[data-input="keyboard"] .guide-panel .action-card kbd{display:block;position:static;order:-1;font-size:14px;font-weight:700;color:#e5f5d7;border:1px solid #d3edbd55;padding:4px 8px;background:#c0f7790a}
body[data-input="keyboard"] .guide-panel .action-card>div{flex-basis:100%}

/* Phone rotation pauses play and covers every menu; PC layout is unaffected. */
body.portrait-required{overflow:hidden;overscroll-behavior:none}
.orientation-notice{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;padding:max(20px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));background:#101e18;text-align:center;outline:none}
.orientation-notice>div{width:min(100%,480px);margin:auto}
.orientation-notice .eyebrow{color:var(--lime);font-size:14px;letter-spacing:.14em}
.orientation-notice h2{font:800 clamp(24px,5vw,36px)/1.12 'Barlow Condensed',Arial,sans-serif;letter-spacing:-.02em;color:var(--cream);margin:16px 0 12px;text-wrap:balance}
.orientation-notice p{font-size:16px;line-height:1.5;color:#c2d3bd;margin:0}
