@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#102a27;--panel:#183632;--text:#f0f2df;--muted:#92aaa1;--lime:#d8ee7b;--line:rgba(188,216,197,.17);font-family:'DM Sans',Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:5px}button{color:inherit}button:disabled{cursor:default;opacity:.5}[hidden]{display:none!important}.app{width:min(1600px,100%);margin:auto;padding:0 46px}.topbar{height:108px;display:flex;align-items:center;justify-content:space-between;gap:26px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--text);white-space:nowrap}.brand-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:10px;background:var(--lime);transform:rotate(-5deg)}.brand-icon svg{width:31px;height:31px;fill:#1b3b30}.brand-icon .bolt{fill:var(--lime);stroke:var(--lime);stroke-width:.6}.brand strong{font-family:'Space Grotesk',sans-serif;font-size:24px;letter-spacing:-1.1px;line-height:1.1}.brand-dot{color:var(--lime)}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:4px;margin:7px 0 0 2px}.weather-readout{font-size:10px;letter-spacing:1.5px;color:#b8c9ba;display:flex;align-items:center;gap:9px;margin-left:auto;margin-right:24px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 10px #d8ee7b33}.top-actions{display:flex;align-items:center;gap:25px}.top-actions button{white-space:nowrap}.icon-button,.text-button{border:0;padding:0;background:transparent;color:#c7d4c9;font-size:11px}.icon-button{display:flex;align-items:center;gap:8px}.icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4}.lab-button{display:flex;gap:9px;align-items:center;border:1px solid #5b7264;border-radius:7px;background:#203d33;padding:12px 14px;font-size:11px;color:#e2e7cf}.lab-button svg{width:16px;height:16px;fill:none;stroke:var(--lime);stroke-width:1.3}.tiny-arrow{color:var(--lime);margin-left:8px;font-size:15px}.top-actions button:hover{color:var(--lime)}.game-shell{border:1px solid #486253;border-radius:13px;overflow:hidden;background:#1f3c31}.game-viewport{position:relative;height:64vh;min-height:500px;max-height:760px;overflow:hidden;background:#7d9680;isolation:isolate}#world{width:100%;height:100%;display:block;outline:none;touch-action:none}.scene-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(12,37,31,.67),transparent 61%),linear-gradient(0deg,#0f2d2b66,transparent 20%,transparent 75%,#0f2d2b20);z-index:1}.scene-topline{position:absolute;top:25px;left:28px;right:28px;display:flex;justify-content:space-between;pointer-events:none;z-index:2;color:#d9e7d0;font-size:9px;font-weight:500;letter-spacing:1.8px}.scene-topline>span:first-child{display:flex;gap:8px;align-items:center}.scene-topline .live-dot{height:4px;width:4px}.coordinates{font-family:'Space Grotesk',sans-serif;opacity:.72;font-size:10px;letter-spacing:1px}.intro-panel{position:absolute;left:5.6%;top:50%;transform:translateY(-48%);z-index:3;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:var(--lime);margin:0 0 24px}.intro-panel h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(48px,4.6vw,76px);font-weight:500;letter-spacing:-3.7px;line-height:1.05;margin:0 0 24px;text-shadow:0 2px 15px #0b2b2910}.intro-panel h1 span{color:var(--lime)}.intro-copy{font-size:13px;color:#c7d7c2;line-height:1.8;margin:0 0 28px}.primary-button{pointer-events:auto;display:flex;justify-content:space-between;align-items:center;gap:38px;background:var(--lime);color:#263b28;border:1px solid var(--lime);border-radius:6px;min-height:48px;padding:0 22px;font-size:12px;font-weight:700;box-shadow:0 4px 20px #082c2810;transition:background .15s,transform .15s}.primary-button span{font-size:22px;line-height:1}.primary-button:hover{background:#e9f69f;transform:translateY(-2px)}.intro-meta{font-size:8px;letter-spacing:1.35px;display:flex;align-items:center;gap:7px;color:#b4c8ac;margin-top:19px}.small-status-dot{width:4px;height:4px;border-radius:50%;background:#a6be94}.scene-bottomline{position:absolute;bottom:22px;left:28px;right:24px;display:flex;justify-content:space-between;align-items:center;z-index:4;pointer-events:none}.pole-hint{font-size:10px;display:flex;align-items:center;gap:8px;letter-spacing:.2px;color:#d4dfc5}.pole-hint strong{font-weight:600;color:var(--lime)}.pole-symbol{font-size:23px;line-height:1;color:var(--lime)}.ingame-actions{display:flex;align-items:center;gap:10px;pointer-events:auto}.round-button{border:1px solid #d4e9c652;border-radius:50%;background:#183b356b;backdrop-filter:blur(8px);width:35px;height:35px;font-size:15px;line-height:1}.grip-button{display:flex;align-items:center;gap:10px;border:1px solid #d4e9c640;background:#183b3580;border-radius:5px;height:35px;padding:0 12px;backdrop-filter:blur(8px);font-size:10px}.keycap{font-size:8px;letter-spacing:1px;border:1px solid #d5e9c453;border-radius:3px;padding:3px 5px;color:#d5e9c4}.grip-button:active,.grip-button.holding{background:var(--lime);color:#243d2b}.grip-button:active .keycap{color:#243d2b;border-color:#243d2b55}.hud{position:absolute;inset:77px 28px auto;display:flex;align-items:flex-start;justify-content:space-between;z-index:3;pointer-events:none}.hud-time{display:flex;flex-direction:column}.hud-time .eyebrow{margin-bottom:4px}.hud-time>strong{font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:43px;letter-spacing:-2px;line-height:1.1;font-variant-numeric:tabular-nums}.record{font-size:8px;letter-spacing:1px;color:#c6d5bf;margin-top:11px}.record b{color:#ecf3d5;letter-spacing:.2px;margin-left:7px}.hud-weather{text-align:right;max-width:265px}.wind-value{display:flex;justify-content:flex-end;align-items:center;gap:9px}.wind-value svg{height:24px;width:24px;fill:none;stroke:var(--lime);stroke-width:1.2}.wind-value strong{font-family:'Space Grotesk',sans-serif;font-size:29px;font-weight:500;font-variant-numeric:tabular-nums}.wind-value>span{font-size:8px;letter-spacing:1px;color:#cfddc5}.hud-weather p{font-size:11px;line-height:1.5;color:#e1ead7;margin:9px 0}.result-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;background:#142f2cee;border:1px solid #6d8868;border-radius:12px;padding:34px 40px;box-shadow:0 12px 80px #051d2a55;text-align:center;min-width:350px;backdrop-filter:blur(12px)}.result-panel .eyebrow{font-size:8px;margin-bottom:18px}.result-panel h2{font-family:'Space Grotesk',sans-serif;font-size:37px;letter-spacing:-1.7px;line-height:1.1;margin:0 0 14px;font-weight:500}.result-panel>p:not(.eyebrow){font-size:12px;color:#b9cbbb;line-height:1.6;max-width:270px;margin:0 auto}.result-time{display:flex;flex-direction:column;gap:5px;margin:25px 0}.result-time>span{font-size:8px;letter-spacing:1.6px;color:#b5c9ab}.result-time strong{font-family:'Space Grotesk',sans-serif;font-size:45px;font-weight:500;letter-spacing:-2px;color:var(--lime);font-variant-numeric:tabular-nums}.result-panel .primary-button{width:100%}.controls-bar{display:flex;justify-content:space-between;align-items:center;min-height:61px;padding:0 27px;background:#17382f;border-top:1px solid #9ebc7d26}.keyboard-controls{display:flex;align-items:center;gap:15px}.keyboard-controls>span{display:flex;align-items:center;gap:4px}.keyboard-controls b{font-size:8px;font-weight:500;color:#a4ba9e;letter-spacing:1px;margin-left:7px}.keyboard-controls i{height:12px;width:1px;background:#a8c08c26}.keyboard-controls kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;font:9px 'DM Sans',sans-serif;color:#cedabd;border:1px solid #7895685e;border-bottom-width:2px;border-radius:3px;background:#29473380}.keyboard-controls .wide-key{padding:0 7px;font-size:8px}.controls-bar>p{font-size:10px;color:#a7b99f;margin:0;letter-spacing:.1px}.controls-bar>p>span:first-child{color:#d3dfbe}.little-cross{margin-left:21px;font-size:20px;vertical-align:middle;color:var(--lime)}.hazards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin-top:25px}.hazard-card{display:flex;align-items:center;gap:17px;border:1px solid var(--line);padding:20px 18px;border-radius:8px;position:relative;background:#1836303b}.hazard-icon{height:43px;width:43px;flex-shrink:0;display:grid;place-items:center}.hazard-icon svg{height:38px;width:38px;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.tornado-icon{color:#bdd3a6}.fire-icon{color:#dfac7a}.steel-icon{color:#aac0c0}.hazard-icon svg{stroke:currentColor}.hazard-card h3{font-family:'Space Grotesk',sans-serif;font-size:13px;font-weight:500;margin:0 0 8px;letter-spacing:.1px;display:flex;align-items:center;gap:12px}.hazard-tag{font-family:'DM Sans',sans-serif;font-size:6px;letter-spacing:1px;color:#9bb48e;background:#a7c47b12;border:1px solid #a7c47b24;border-radius:3px;padding:3px 5px}.hazard-card p{font-size:10px;line-height:1.7;color:#97ae9c;margin:0;max-width:260px}.hazard-number{position:absolute;right:12px;top:10px;font-family:'Space Grotesk',sans-serif;font-size:8px;color:#668675}.site-footer{display:flex;justify-content:space-between;align-items:center;padding:24px 1px 20px;color:#658577;font-size:7px;font-weight:500;letter-spacing:1.5px}.site-footer>span:last-child>span{margin-left:7px;color:#9db590;font-size:12px}.touch-controls{display:none}.modal-backdrop{position:fixed;inset:0;background:#061c1cc4;z-index:30;display:grid;place-items:center;padding:20px;backdrop-filter:blur(8px)}.modal{position:relative;max-width:470px;width:100%;padding:35px;background:#173630;border:1px solid #607c62;border-radius:13px;box-shadow:0 15px 90px #00191966;max-height:90vh;overflow:auto}.close-button{position:absolute;right:18px;top:13px;background:transparent;border:0;font-size:28px;color:#9fb899;padding:3px 7px;font-weight:400}.modal .eyebrow{font-size:7px;letter-spacing:1.5px;margin:4px 0 17px}.modal h2{font-family:'Space Grotesk',sans-serif;font-size:36px;letter-spacing:-1.5px;font-weight:500;margin:0 0 14px}.modal>p:not(.eyebrow){color:#adbfaa;font-size:12px;line-height:1.7}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.toggle-row b{font-size:13px;font-weight:500}.toggle-row small{display:block;font-size:10px;margin-top:6px;color:#a3b69d;line-height:1.4}.toggle-row input{appearance:none;flex-shrink:0;cursor:pointer;width:35px;height:20px;border-radius:15px;background:#3a5545;border:1px solid #6b8063;position:relative}.toggle-row input::after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#a2b391;transition:left .15s}.toggle-row input:checked{background:var(--lime);border-color:var(--lime)}.toggle-row input:checked::after{left:18px;background:#284331}.intensity-row{display:flex;flex-direction:column;gap:10px;font-size:11px;margin-top:24px}.intensity-row select{background:#234437;color:var(--text);border:1px solid #66815c;padding:12px;border-radius:5px;font-size:11px;width:100%}.modal .modal-note{font-size:10px!important;margin:19px 0 0;color:#9db291!important}.help-step{display:flex;align-items:flex-start;gap:15px;border-top:1px solid var(--line);padding:17px 0}.help-step>span{font-family:'Space Grotesk',sans-serif;font-size:12px;color:var(--lime);padding-top:2px}.help-step p{font-size:11px;color:#a7bda2;line-height:1.7;margin:0}.help-step b{display:block;color:#e8eddb;font-weight:500;font-size:12px;margin-bottom:4px}.help-step:last-child{padding-bottom:0}
@media(min-width:1700px){.app{padding:0 55px}.game-viewport{height:67vh;max-height:850px}.intro-panel h1{font-size:80px}.intro-copy{font-size:15px}.hazard-card{padding:24px}.hazard-card p{font-size:11px}}
@media(max-width:1150px){.app{padding:0 26px}.topbar{height:92px}.weather-readout{display:none}.top-actions{gap:20px}.intro-panel h1{font-size:59px}.game-viewport{min-height:500px}.hazards{gap:12px;margin-top:18px}.hazard-card{padding:18px 12px;gap:9px}.hazard-icon{width:33px}.hazard-icon svg{width:31px}.hazard-card h3{gap:7px;font-size:12px}.hazard-tag{font-size:5px;padding:3px}.hazard-card p{font-size:9px}.keyboard-controls{gap:10px}.controls-bar{padding:0 21px}.controls-bar>p{font-size:9px}.little-cross{margin-left:10px}}
@media(max-width:800px){.app{padding:0 16px}.topbar{height:84px}.brand strong{font-size:21px}.brand-icon{width:39px;height:39px}.brand small{font-size:7px;letter-spacing:3px;margin-top:6px}.top-actions{gap:17px}.icon-button>span{display:none}.text-button{font-size:10px}.lab-button{font-size:10px;padding:10px}.tiny-arrow{display:none}.lab-button svg{width:14px}.game-viewport{min-height:500px;height:65vh}.intro-panel{left:6%}.intro-panel h1{font-size:53px;letter-spacing:-2.8px}.intro-copy{font-size:12px}.scene-topline{left:22px;right:22px;font-size:8px;top:23px}.coordinates{font-size:8px}.scene-bottomline{left:22px;bottom:20px;right:20px}.controls-bar{padding:14px 20px;gap:15px;min-height:56px}.controls-bar>p{font-size:9px}.little-cross{display:none}.keyboard-controls{gap:9px}.keyboard-controls kbd{height:17px;min-width:17px;font-size:8px}.keyboard-controls b{font-size:6px;letter-spacing:.7px;margin-left:3px}.hazards{gap:10px}.hazard-card{padding:15px 12px;flex-direction:column;align-items:flex-start;gap:10px}.hazard-card h3{display:block;font-size:12px;margin-bottom:6px}.hazard-tag{display:none}.hazard-card p{font-size:9px}.hazard-icon{height:30px;width:30px}.hazard-icon svg{width:29px;height:29px}.hud{left:22px;right:22px}.hud-weather{max-width:200px}.hud-weather p{font-size:10px}.site-footer{font-size:6px;letter-spacing:1px}}
@media(max-width:540px){.app{padding:0 12px}.topbar{height:78px;gap:10px}.brand{gap:8px}.brand strong{font-size:18px;letter-spacing:-.7px}.brand-icon{width:34px;height:34px;border-radius:8px}.brand-icon svg{width:25px;height:25px}.brand small{font-size:6px;letter-spacing:2.7px}.top-actions{gap:13px}.text-button{font-size:0;width:19px;height:19px;border:1px solid #aac397;border-radius:50%;position:relative}.text-button::after{content:'?';font-size:11px;position:absolute;inset:2px}.lab-button{padding:9px;font-size:9px;gap:6px;border-radius:5px}.lab-button svg{display:none}.icon-button svg{width:16px}.game-shell{border-radius:10px}.game-viewport{height:71vh;max-height:800px;min-height:540px}.scene-vignette{background:linear-gradient(90deg,#0f302b80,transparent 95%),linear-gradient(0deg,#0f2d2b55,transparent 25%,transparent 85%,#0f2d2b20)}.scene-topline{left:18px;right:18px;top:20px;font-size:6px;letter-spacing:1.2px}.coordinates{font-size:6px}.intro-panel{left:7%;top:47%}.intro-panel .eyebrow{font-size:7px;letter-spacing:1.25px;margin-bottom:23px}.intro-panel h1{font-size:48px;letter-spacing:-2.7px;margin-bottom:20px}.intro-copy{font-size:11px;line-height:1.7;margin-bottom:23px}.primary-button{min-height:45px;padding:0 17px;font-size:11px;gap:32px}.intro-meta{font-size:6px;letter-spacing:1px;margin-top:16px}.scene-bottomline{left:17px;right:17px;bottom:17px;align-items:center}.pole-hint{font-size:8px;gap:6px}.pole-symbol{font-size:20px}.grip-button{display:none}.round-button{width:29px;height:29px;font-size:12px}.controls-bar{padding:14px 17px;min-height:44px}.keyboard-controls{display:none}.controls-bar>p{font-size:9px;width:100%;display:flex;justify-content:center;gap:4px}.controls-bar>p::before{content:'↔';color:var(--lime);margin-right:6px}.hazards{gap:7px;margin-top:13px}.hazard-card{padding:13px 10px;gap:9px;border-radius:6px}.hazard-card h3{font-size:10px;line-height:1.2}.hazard-card p{font-size:8px;line-height:1.6}.hazard-icon,.hazard-icon svg{width:26px;height:26px}.hazard-number{font-size:6px;right:9px;top:10px}.site-footer{font-size:5px;letter-spacing:.8px;gap:10px;padding:20px 0 18px}.site-footer>span:last-child{text-align:right;max-width:160px;line-height:1.6}.site-footer>span:last-child>span{font-size:8px}.hud{top:65px;left:18px;right:18px}.hud-time .eyebrow{font-size:7px;letter-spacing:1.2px}.hud-time>strong{font-size:32px;letter-spacing:-1.2px}.record{font-size:6px;letter-spacing:.7px;margin-top:8px}.record b{margin-left:3px}.hud-weather{max-width:150px}.wind-value{gap:6px}.wind-value strong{font-size:23px}.wind-value svg{width:20px;height:20px}.wind-value>span{font-size:6px}.hud-weather p{font-size:8px;line-height:1.5;margin-top:6px}.touch-controls{display:flex;position:absolute;bottom:61px;left:17px;right:17px;align-items:flex-end;justify-content:space-between;z-index:5;pointer-events:none}.d-pad{display:grid;grid-template-columns:repeat(3,34px);grid-template-rows:repeat(2,34px);gap:4px;pointer-events:auto}.d-pad button{border:1px solid #d3e4bd55;border-radius:6px;background:#173d3480;color:#e4eacc;font-size:18px;backdrop-filter:blur(5px);touch-action:none;user-select:none}.d-pad button:active,.d-pad button.active{background:var(--lime);color:#24442e}.move-up{grid-column:2;grid-row:1}.move-left{grid-column:1;grid-row:2}.move-down{grid-column:2;grid-row:2}.move-right{grid-column:3;grid-row:2}.touch-grip{pointer-events:auto;touch-action:none;user-select:none;border:1px solid #d3e4bd80;border-radius:50%;background:#173d3499;color:var(--lime);width:66px;height:66px;font-size:9px;line-height:1.4;letter-spacing:1px;backdrop-filter:blur(5px)}.touch-grip:active,.touch-grip.holding{background:var(--lime);color:#24442e}.result-panel{min-width:0;width:calc(100% - 36px);max-width:350px;padding:29px}.result-panel h2{font-size:33px}.result-panel>p:not(.eyebrow){font-size:11px}.modal{padding:29px 24px}.modal h2{font-size:32px}.modal .eyebrow{font-size:6px}.modal>p:not(.eyebrow){font-size:11px}.toggle-row small{font-size:9px}.help-step{gap:12px}.help-step p{font-size:10px}}
@media(pointer:coarse) and (min-width:541px){.touch-controls{display:flex;position:absolute;bottom:70px;left:25px;right:25px;justify-content:space-between;align-items:flex-end;z-index:5;pointer-events:none}.d-pad{display:grid;grid-template-columns:repeat(3,36px);grid-template-rows:repeat(2,36px);gap:4px;pointer-events:auto}.d-pad button{border:1px solid #d3e4bd55;border-radius:6px;background:#173d3480;color:#e4eacc;font-size:18px;touch-action:none;user-select:none}.move-up{grid-column:2;grid-row:1}.move-left{grid-column:1;grid-row:2}.move-down{grid-column:2;grid-row:2}.move-right{grid-column:3;grid-row:2}.touch-grip{pointer-events:auto;touch-action:none;user-select:none;border:1px solid #d3e4bd80;border-radius:50%;background:#173d3499;color:var(--lime);width:70px;height:70px;font-size:10px;line-height:1.4;letter-spacing:1px}.grip-button{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.game-viewport:focus{outline:none}.game-viewport:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}.is-playing .scene-vignette{background:linear-gradient(0deg,#102d2c77,transparent 22%,transparent 76%,#102d2c44)}.touch-controls{visibility:hidden}.is-playing .touch-controls{visibility:visible}.is-paused::after{content:'PAUSED';position:absolute;inset:0;display:grid;place-items:center;background:#102a2755;backdrop-filter:blur(2px);color:var(--lime);font:500 28px 'Space Grotesk',sans-serif;letter-spacing:7px;z-index:2;pointer-events:none}.render-error{position:absolute;inset:0;display:grid;place-items:center;z-index:20;padding:30px;background:#173630;color:var(--lime);text-align:center}.grip-button,.round-button{touch-action:none;user-select:none}.icon-button.active{color:var(--lime)}

/* Choose a forecast first; let the game own the screen once it starts. */
.game-viewport{min-height:650px;max-height:none;height:min(760px,76vh)}
.intro-panel{left:5%;right:5%;top:50%;transform:translateY(-50%);display:grid;grid-template-columns:1fr minmax(330px,410px);gap:7%;align-items:center;pointer-events:auto}
.intro-panel h1{font-size:clamp(45px,4.7vw,72px)}
.intro-copy{font-size:16px;line-height:1.65;margin-bottom:28px}
.setup-guide{display:flex;gap:13px;max-width:360px;align-items:flex-start;color:#c7d7c2}
.setup-guide>span{font-size:26px;color:var(--lime);padding-top:2px}
.setup-guide p{font-size:14px;line-height:1.65;margin:0}.setup-guide b{display:block;color:#edf1d9;margin-bottom:4px;font-weight:500}
.setup-card{background:#14332ff2;border:1px solid #6d886872;border-radius:12px;padding:26px;backdrop-filter:blur(12px);box-shadow:0 20px 60px #09251d33}
.setup-card .eyebrow{font-size:10px;margin-bottom:9px;letter-spacing:1.4px}
.setup-card h2{font:500 28px 'Space Grotesk',sans-serif;letter-spacing:-1px;margin:0 0 8px}
.setup-card .toggle-row{padding:15px 0;min-height:70px;cursor:pointer}.setup-card .toggle-row b{font-size:15px}.setup-card .toggle-row small{font-size:12px;line-height:1.45}
.setup-card .toggle-row input{width:44px;height:26px;min-width:44px}.setup-card .toggle-row input::after{width:16px;height:16px;top:4px;left:4px}.setup-card .toggle-row input:checked::after{left:22px}
.setup-card .intensity-row{font-size:14px;margin-top:20px;gap:9px}.setup-card select{font-size:14px;min-height:46px;padding:11px 12px}
.setup-note{font-size:12px;line-height:1.6;color:#a8c19e;margin:15px 0 20px}.setup-card .primary-button{width:100%;font-size:15px;min-height:52px}
.scene-bottomline,.pole-direction{display:none}.top-actions>button{min-height:44px}.top-actions .icon-button{padding:0 7px}.top-actions .text-button{min-width:44px}
body.in-game{position:fixed;inset:0;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;background:#334e49}
body.in-game .app{width:100%;max-width:none;margin:0;padding:0}
body.in-game .topbar,body.in-game .hazards,body.in-game .site-footer,body.in-game .controls-bar{display:none}
body.in-game .game-shell{border:0;border-radius:0;background:#334e49;overflow:visible}
body.in-game #game-viewport{position:fixed;inset:0;width:100vw;width:100dvw;height:100vh;height:100dvh;min-height:0;max-height:none;border-radius:0;overflow:hidden}
body.in-game .scene-topline{display:none}
body.in-game .hud{inset:max(18px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) auto max(22px,env(safe-area-inset-left));display:grid;grid-template-columns:auto minmax(0,1fr) 48px;gap:20px;align-items:start;text-shadow:0 1px 12px #08291f}
body.in-game .hud-time .eyebrow{font-size:10px;letter-spacing:1.1px;color:#e2eecc;margin:0 0 4px}
body.in-game .hud-time>strong{font-size:36px;letter-spacing:-1.4px}
body.in-game .record{font-size:11px;letter-spacing:.6px;margin-top:5px;color:#d6e4c9}.record b{font-weight:600}
body.in-game .hud-weather{max-width:none;text-align:center;padding-top:2px}
#weather-banner{display:block;font-size:16px;font-weight:600;color:#f3f5dd;line-height:1.35}
body.in-game .wind-value{justify-content:center;gap:6px;margin-top:6px}
body.in-game .wind-value svg{width:19px;height:19px}body.in-game .wind-value strong{font-size:19px}body.in-game .wind-value>span{font-size:10px}
body.in-game .hud-weather p{font-size:14px;line-height:1.4;margin:6px auto 0;max-width:400px;color:#f0f2da}
body.in-game #pause-button{pointer-events:auto;min-width:48px;width:48px;min-height:48px;height:48px;font-size:21px;background:#143b32d9;border-color:#d5e9c66e;backdrop-filter:blur(8px);border-radius:14px}
body.in-game .scene-bottomline{display:flex;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));justify-content:center;gap:20px}
body.in-game .pole-hint{font-size:13px;line-height:1.4;letter-spacing:.4px;max-width:360px;text-align:center;padding:10px 16px;background:#14372cc9;border:1px solid #d6eac53d;border-radius:24px;color:#edf4d6;backdrop-filter:blur(8px)}
body.in-game .grip-button{font-size:13px;height:44px;min-width:140px;background:#173d34b3}.grip-button .keycap{font-size:10px}
body.in-game .pole-direction{position:absolute;display:block;bottom:90px;left:50%;transform:translateX(-50%);z-index:4;color:var(--lime);font-size:14px;font-weight:600;white-space:nowrap;text-shadow:0 2px 8px #102a27;background:#14372cb3;border-radius:18px;padding:8px 13px;pointer-events:none}
.touch-controls{display:none!important;visibility:hidden!important}
.is-paused::after{display:none}
.pause-menu{position:absolute;inset:0;z-index:12;display:grid;place-items:center;background:#0b2722ad;backdrop-filter:blur(7px);padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));touch-action:pan-y}
.pause-card{background:#15382ff2;border:1px solid #7b95734d;border-radius:16px;width:min(390px,100%);padding:29px;box-shadow:0 24px 80px #061e2066;max-height:100%;overflow:auto}
.pause-card .eyebrow{font-size:10px;margin-bottom:13px}.pause-card h2{font:500 34px 'Space Grotesk',sans-serif;letter-spacing:-1.3px;margin:0 0 12px}.pause-card>p:not(.eyebrow){font-size:14px;line-height:1.5;color:#bfd2b8;margin:0 0 24px}
.pause-card .primary-button{font-size:15px;width:100%;min-height:50px;margin-bottom:10px}
.secondary-button{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;padding:11px 16px;border:1px solid #6d8e6680;border-radius:6px;background:#264d3d;color:#e5eed8;font-size:14px;font-weight:500;touch-action:manipulation}
.secondary-button:hover{background:#315c47}.pause-card>.secondary-button{margin-top:9px}.pause-tools{display:flex;gap:9px;margin-top:9px}.pause-tools .secondary-button{font-size:12px;padding:10px 9px}.pause-card .pause-guide{font-size:12px!important;line-height:1.6;margin:20px 0 0!important;color:#a9bfa1!important}
.result-panel{max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow:auto;touch-action:pan-y}.result-panel .secondary-button{margin-top:10px}.result-panel>p:not(.eyebrow){font-size:14px;max-width:310px}.result-panel .primary-button{font-size:14px;min-height:50px}.result-panel .eyebrow{font-size:10px}.result-time>span{font-size:11px}
.is-paused .scene-bottomline,.is-paused .pole-direction,.is-dead .scene-bottomline,.is-dead .pole-direction{visibility:hidden}
.modal .eyebrow{font-size:10px}.modal .help-step p{font-size:14px}.modal .help-step b{font-size:15px}.close-button{min-width:44px;min-height:44px}
@media(max-width:900px){
  body:not(.in-game) .app{padding:0 16px}
  body:not(.in-game) .topbar{height:80px;gap:10px}
  body:not(.in-game) .brand strong{font-size:21px}
  body:not(.in-game) .brand small{font-size:8px}
  body:not(.in-game) .top-actions{gap:6px}
  body:not(.in-game) .lab-button{display:none}
  body:not(.in-game) .text-button{font-size:0;position:relative;border:1px solid #a2b78c73;border-radius:50%;width:44px;height:44px}
  body:not(.in-game) .text-button::after{content:'?';font-size:17px;position:absolute;inset:10px}
  body:not(.in-game) .icon-button{min-width:40px;justify-content:center}
  body:not(.in-game) .icon-button svg{width:20px;height:20px}
  body:not(.in-game) .game-viewport{height:auto;min-height:0;max-height:none;background:#193b31}
  body:not(.in-game) #world{position:absolute;inset:0;opacity:.5}
  body:not(.in-game) .scene-vignette{background:linear-gradient(180deg,#102e2a22,#102a27da 310px)}
  body:not(.in-game) .scene-topline{display:none}
  .intro-panel{position:relative;top:auto;left:auto;right:auto;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:28px;padding:30px 22px 22px}
  .intro-panel h1{font-size:46px;letter-spacing:-2.5px;line-height:1.05;margin-bottom:18px}
  .intro-panel .setup-copy>.eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:18px}
  .intro-panel .intro-copy{font-size:15px;line-height:1.6;margin-bottom:18px}
  .setup-guide{max-width:none;gap:11px}.setup-guide p{font-size:14px}.setup-guide>span{font-size:24px}
  .setup-card{padding:22px;background:#14362ff2}.setup-card h2{font-size:27px}.setup-card .eyebrow{font-size:10px;margin-bottom:8px}
  .setup-card .toggle-row{padding:15px 0;min-height:76px}.setup-card .toggle-row small{font-size:13px}.setup-card .toggle-row b{font-size:15px}
  .setup-card .intensity-row select{font-size:16px;min-height:48px}.setup-note{font-size:13px}.setup-card .primary-button{font-size:16px;min-height:54px}
  body:not(.in-game) .controls-bar,body:not(.in-game) .hazards,body:not(.in-game) .site-footer{display:none}
  body:not(.in-game) .game-shell{margin-bottom:20px}
}
@media(max-width:900px),(pointer:coarse){
  body.in-game .touch-controls{display:flex!important;visibility:visible!important;position:absolute;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));align-items:center;justify-content:space-between;z-index:5;pointer-events:none;gap:24px}
  .joystick-control{display:flex;flex-direction:column;align-items:center;gap:11px;pointer-events:none}
  .joystick{position:relative;display:grid;place-items:center;width:124px;height:124px;border:2px solid #ecf5cf66;border-radius:50%;background:#183c33a6;box-shadow:inset 0 0 0 15px #19382f50,0 5px 30px #08291b25;backdrop-filter:blur(8px);touch-action:none;user-select:none;pointer-events:auto}
  .joystick::after{content:'';position:absolute;inset:18px;border:1px solid #e4f1c222;border-radius:50%;pointer-events:none}
  .joystick-cross{color:#e1ebc02b;font-size:58px;font-weight:400;pointer-events:none}
  .joystick-knob{position:absolute;width:54px;height:54px;left:calc(50% - 27px);top:calc(50% - 27px);border-radius:50%;background:#e4edbd;border:2px solid #f5f7d9;box-shadow:0 4px 14px #092c2950;pointer-events:none;will-change:transform}
  .joystick.active{border-color:var(--lime);background:#204b3dbb}.joystick.active .joystick-knob{background:var(--lime)}
  .touch-label{font-size:10px;font-weight:600;color:#e0eccb;letter-spacing:2px;text-shadow:0 1px 6px #102a27}
  .touch-grip{pointer-events:auto;touch-action:none;user-select:none;width:96px;height:96px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px solid #ecf5cf88;background:#183c33c7;border-radius:50%;font-size:12px;line-height:1.35;letter-spacing:1.7px;color:#e4edbd;backdrop-filter:blur(8px);box-shadow:0 5px 30px #08291b33}
  .touch-grip strong{font-size:17px;font-weight:600;letter-spacing:1.2px}.touch-grip:active,.touch-grip.holding{background:var(--lime);border-color:#f2f7d2;color:#24442e;box-shadow:0 0 30px #d8ee7b33}
  body.in-game .ingame-actions{display:none}
  body.in-game .scene-bottomline{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 168px);left:16px;right:16px}
  body.in-game .pole-hint{font-size:12px;max-width:90%;padding:8px 13px;letter-spacing:.3px}
  body.in-game .pole-direction{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 211px);font-size:13px}
  body.in-game .is-paused .touch-controls,body.in-game .is-dead .touch-controls{display:none!important}
}
@media(max-width:600px){
  body:not(.in-game) .app{padding:0 12px}.intro-panel{padding:26px 16px 16px;gap:24px}.intro-panel h1{font-size:44px}.setup-card{padding:20px}
  body.in-game .hud{inset:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) auto max(14px,env(safe-area-inset-left));gap:12px;grid-template-columns:64px minmax(0,1fr) 44px}
  body.in-game #pause-button{width:44px;min-width:44px;height:44px;min-height:44px;font-size:19px;border-radius:12px}
  body.in-game .hud-time>strong{font-size:30px}.hud-time .record{font-size:10px}body.in-game .hud-time .eyebrow{font-size:8px;letter-spacing:.8px}
  #weather-banner{font-size:14px;line-height:1.3}body.in-game .hud-weather p{font-size:12px;line-height:1.4;max-width:230px}body.in-game .wind-value{margin-top:5px}body.in-game .wind-value strong{font-size:17px}body.in-game .wind-value>span{font-size:9px}
  .result-panel{width:calc(100% - 32px);padding:27px;max-width:370px}.result-panel h2{font-size:32px}.result-panel .result-time{margin:20px 0}.result-panel>p:not(.eyebrow){font-size:14px}
}
@media(max-height:530px) and (min-width:541px){
  body.in-game .hud{top:max(10px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}
  body.in-game .hud-time>strong{font-size:29px}body.in-game .record{display:none}body.in-game .hud-weather p{margin-top:3px;font-size:12px}#weather-banner{font-size:14px}body.in-game .wind-value{margin-top:3px}
  body.in-game .touch-controls{bottom:max(16px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right))}
  .joystick{width:104px;height:104px}.joystick-control{gap:7px}.touch-grip{width:88px;height:88px}.touch-label{font-size:9px}
  body.in-game .scene-bottomline{bottom:max(18px,env(safe-area-inset-bottom));left:160px;right:150px}.pole-hint{font-size:11px!important}.pole-direction{bottom:72px!important}
  .pause-card{padding:20px 24px}.pause-card h2{font-size:28px;margin-bottom:8px}.pause-card .eyebrow{margin-bottom:9px}.pause-card>p:not(.eyebrow){margin-bottom:15px}.pause-guide{display:none}
  .result-panel{padding:20px 26px}.result-panel h2{font-size:27px}.result-panel .result-time{margin:10px 0}.result-time strong{font-size:34px}.result-panel .eyebrow{margin-bottom:10px}.result-panel .primary-button,.result-panel .secondary-button{min-height:44px}
}

/* Preserve menu scrolling and give the play surface ownership only during play. */
html, body, body.in-game, .intro-panel, .pause-menu, .pause-card, .result-panel, .modal, .modal-backdrop { touch-action: pan-y; }
body:not(.game-playing) #world, body:not(.game-playing) .round-button { touch-action: pan-y; }
body.game-playing, body.game-playing .game-viewport, body.game-playing #world { touch-action: none; }
html.page-zoomed, html.page-zoomed body, html.page-zoomed body * { touch-action: pan-x pan-y pinch-zoom !important; }
