@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
:root{color-scheme:dark;--bg:#071017;--panel:#0c1b24;--line:#243843;--cyan:#71e8e3;--orange:#ffb25b;--muted:#8198a5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 25%,#122a34 0,#071017 65%);color:#e4eee9;font-family:'IBM Plex Mono',monospace;font-size:12px;min-height:100vh}main{max-width:1280px;margin:auto;padding:28px 40px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.brand{font:800 32px/.9 'Barlow Condensed',sans-serif;letter-spacing:2px;text-decoration:none;color:#e4eee9}.brand span{color:var(--cyan)}.brand small{display:block;font:9px 'IBM Plex Mono',monospace;letter-spacing:3.3px;margin-top:8px}.edition{font-size:9px;letter-spacing:1.5px;color:var(--muted)}i{display:inline-block;width:5px;height:5px;background:var(--cyan);margin:0 12px;box-shadow:0 0 8px #71e8e3}button{font:600 11px 'IBM Plex Mono',monospace;color:inherit;background:transparent;border:1px solid var(--line);padding:12px 16px;cursor:pointer;touch-action:manipulation}button:hover{border-color:var(--cyan);color:var(--cyan)}button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}.console{border:1px solid #35505b;box-shadow:0 24px 90px #0008;background:var(--panel)}.hud{display:flex;align-items:center;gap:50px;padding:17px 24px;border-bottom:1px solid var(--line)}small{display:block;font-size:9px;letter-spacing:1.2px;color:var(--muted)}.hud strong{font-size:24px;letter-spacing:2px;font-weight:500;display:block;margin-top:4px}.hud>div:first-child strong,.hostages strong{color:var(--cyan)}.hud .hostages{margin-left:auto}.hud button{font-size:18px;padding:8px 13px}.screen{position:relative;background:#050c14;overflow:hidden}canvas{width:100%;display:block;image-rendering:pixelated;touch-action:none;cursor:crosshair}.overlay{position:absolute;inset:0;background:linear-gradient(90deg,#030c14eb,#030c14aa 60%,#030c1444);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:6%;}.overlay.hidden{display:none}.intro-kicker{color:var(--cyan);font-size:10px;letter-spacing:2px}h1{font:800 clamp(26px,4.5vw,64px)/.98 'Barlow Condensed',sans-serif;margin:18px 0;letter-spacing:1px}h1 em{font-style:normal;color:var(--cyan)}.overlay p{max-width:420px;color:#afc1c8;font-size:12px;line-height:1.8;margin:0 0 24px}.primary{background:var(--cyan);color:#07131c;border:0;padding:17px 22px;font-size:12px}.primary:hover{background:#b2fff1;color:#07131c}.primary span{margin-left:40px}.overlay>small{margin-top:16px;font-size:8px}#toast{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#091923e8;border:1px solid #36525c;color:var(--cyan);padding:10px 18px;opacity:0;pointer-events:none;white-space:nowrap;font-size:11px;transition:opacity .2s}#toast.visible{opacity:1}.controls{display:flex;align-items:center;gap:22px;padding:18px 24px;border-top:1px solid var(--line)}.weapon{display:flex;align-items:center;gap:12px;flex:1}.weapon b{display:block;margin-top:5px;font-size:12px}.weapon-icon{font-size:36px;color:var(--orange)}.reload{height:3px;width:65px;background:#253943;margin-left:10px}.reload span{display:block;height:100%;background:var(--orange);width:100%}.emp{border-color:#47716e;color:var(--cyan);font-size:13px;display:flex;align-items:center;gap:18px}.emp b{background:#183d40;padding:3px 8px}.emp small{font-size:10px}.fire{border-color:#7b5937;color:var(--orange)}.fire small{display:inline;font-size:8px;margin-left:10px}.next{min-width:145px}.next b{font-size:11px;display:block;margin:5px 0}.next>div{height:2px;background:#2b424a}.next span{display:block;background:var(--cyan);height:100%;width:0}footer{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:20px;padding:23px 0;border-bottom:1px solid var(--line)}footer p{font-size:10px;margin:0;line-height:1.6}footer p>span{color:var(--cyan);margin-right:8px}footer small{letter-spacing:0;margin-top:4px;color:#6e8997}.bottom{display:flex;justify-content:space-between;align-items:center;color:#68818f;font-size:8px;letter-spacing:1px;margin-top:12px}.bottom button{font-size:9px;border:0;color:#9bb0ba}@media(max-width:760px){main{padding:12px}.edition{display:none}header{margin-bottom:14px}.brand{font-size:25px}.hud{padding:10px 12px;gap:18px}.hud strong{font-size:16px}.hud small{font-size:7px;letter-spacing:0}.hud button{font-size:13px}.controls{padding:10px;gap:10px}.weapon-icon,.reload,.next{display:none}.weapon b{font-size:9px}.weapon small{font-size:7px}.emp{gap:8px;padding:10px}.fire{padding:10px}.fire small{display:none}footer{gap:8px;padding:15px 0}footer p{font-size:8px}footer small{font-size:8px}.bottom>span:first-child{display:none}.overlay{padding:5%}.overlay p{font-size:10px;max-width:330px;margin-bottom:12px}.intro-kicker{font-size:8px}h1{margin:10px 0}.primary{padding:12px 16px}.overlay>small{display:none}}@media(max-width:500px) and (orientation:portrait){.screen{aspect-ratio:1.35}canvas{height:100%;object-fit:fill}.overlay p{max-width:260px}.hostages small{max-width:70px}footer{grid-template-columns:1fr}footer p{font-size:9px}footer small{display:inline;margin-left:10px}.hud{gap:12px}.hud strong{font-size:14px}.hud button{padding:5px 8px}}

@media(min-width:761px){main{max-width:clamp(760px,calc((100svh - 300px)*2 + 80px),1280px)}}

.ammo-bar{display:flex;gap:18px;align-items:center;min-height:45px;padding:10px 24px;background:#091720;border-top:1px solid var(--line)}.ammo-label{font-size:8px;letter-spacing:1px;color:var(--muted)}#ammo-count{color:var(--orange);font-size:15px;margin-left:8px}#ammo-rack{display:flex;flex-wrap:wrap;gap:5px;max-width:360px}#ammo-rack .round{display:block;position:relative;margin:0;width:6px;height:15px;box-shadow:none;background:var(--orange);clip-path:polygon(50% 0,100% 30%,100% 80%,80% 80%,100% 100%,0 100%,20% 80%,0 80%,0 30%)}#ammo-rack .empty{background:#2a3b43}#ammo-rack b{font-size:9px;color:var(--orange)}#ammo-state{margin-left:auto;font-size:8px;letter-spacing:1px;color:var(--muted)}@media(min-width:761px){main{max-width:clamp(760px,calc((100svh - 345px)*2 + 80px),1280px)}}@media(max-width:760px){.ammo-bar{padding:9px 10px;gap:10px}#ammo-state{font-size:7px;max-width:115px}#ammo-rack{gap:3px;max-width:160px}.ammo-label{font-size:7px}}

/* Version 03: a 1950s science-fiction title card and an explicit magazine. */
.brand{font-size:27px;letter-spacing:1px}.brand small{letter-spacing:2px;font-size:8px}.hud{gap:25px}.city-row{display:flex;align-items:center;gap:12px}#city-meter{width:75px;height:9px;background:#25333c;border:1px solid #42515a;overflow:hidden}#city-fill{display:block;width:100%;height:100%;background:#70e6df;transition:width .5s,background-color .5s}.city-row strong{min-width:60px}#ammo-rack{display:grid;grid-template-columns:repeat(20,6px);gap:5px;flex-shrink:0}#ammo-rack .empty{background:#50616a}#ammo-count{white-space:nowrap;font-size:13px}.title-instructions{display:none}
.overlay.title-screen{align-items:center;text-align:center;padding:3% 5%;isolation:isolate;background:radial-gradient(ellipse at 50% 45%,#1e3b38e8,#03131df5 80%);border:8px double #738f7e;overflow:hidden}.title-screen:before{content:'';position:absolute;inset:-70%;z-index:-1;opacity:.12;background:repeating-conic-gradient(from 10deg at 50% 50%,#abc5a1 0deg 4deg,transparent 4deg 18deg);transform:scaleY(.7)}.title-screen:after{content:'';position:absolute;inset:6px;border:1px solid #e6dbac55;pointer-events:none}.title-screen .intro-kicker{color:#c8d2b4;font-size:9px;letter-spacing:3px}.title-screen h1{margin:10px 0 8px;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:800;font-style:italic;line-height:.78;transform:rotate(-4deg);letter-spacing:3px;text-shadow:2px 2px 0 #b94630,4px 4px 0 #882f28,6px 6px 0 #07121c;filter:drop-shadow(0 5px 0 #07121c)}.title-screen .logo-first{display:block;font-size:clamp(38px,5.5vw,72px);color:#fff0bd;-webkit-text-stroke:1px #ffe8ac}.title-screen .logo-second{display:block;font-size:clamp(48px,6.7vw,88px);color:#f89750;-webkit-text-stroke:1px #ffcc89;margin-top:7px}.title-screen #overlay-text{color:#f0e8cb;font:600 16px 'Barlow Condensed',sans-serif;letter-spacing:1px;margin:12px 0 9px;max-width:none}.title-screen .title-instructions{display:flex;gap:18px;max-width:620px;margin:0 0 14px}.title-screen .title-instructions p{font-size:8px;line-height:1.5;max-width:175px;color:#c7d4ca;margin:0}.title-instructions b{display:block;font-size:9px;color:#f4c68a;margin-bottom:3px}.title-screen .primary{padding:11px 20px;background:#f7d79b;color:#1a2422;box-shadow:3px 3px 0 #9b5738;font-size:11px}.title-screen .primary:hover{background:#ffe9bc}.title-screen #overlay-foot{margin-top:12px;font-size:7px;letter-spacing:1px;color:#a5b8af}.overlay:not(.title-screen) .intro-kicker,.overlay:not(.title-screen) #overlay-foot{display:none}
@media(max-width:760px){.brand{font-size:22px}.hud{gap:12px}.city-row{gap:6px}.city-row strong{min-width:35px}#city-meter{width:40px;height:7px}#ammo-rack{grid-template-columns:repeat(20,5px);gap:3px;max-width:none}#ammo-rack .round{width:5px}.title-screen .intro-kicker{font-size:7px;letter-spacing:1.3px}.title-screen h1{margin:8px 0}.title-screen .logo-first{font-size:38px}.title-screen .logo-second{font-size:48px}.title-screen #overlay-text{font-size:13px;margin:9px 0}.title-screen .title-instructions{gap:8px;margin-bottom:9px}.title-screen .title-instructions p{font-size:7px}.title-instructions b{font-size:7px}.title-screen .primary{padding:9px 15px;font-size:10px}.title-screen #overlay-foot{display:none}}
@media(max-width:500px) and (orientation:portrait){.screen{aspect-ratio:1.12}.hud{gap:9px}.hud .hostages small{max-width:60px}.city-row{flex-direction:column;gap:3px;align-items:flex-start}.city-row strong{margin-top:3px}.city-status{min-width:65px}#city-meter{width:49px}.ammo-bar{flex-wrap:wrap;column-gap:8px;row-gap:5px}#ammo-state{font-size:6px;max-width:75px}.ammo-label{display:none}#ammo-count{font-size:10px}.title-screen .title-instructions{display:block;margin-bottom:10px}.title-screen .title-instructions p{max-width:none;line-height:1.6;font-size:8px}.title-instructions b{display:inline;font-size:8px;margin-right:5px}.title-screen h1{margin:11px 0}.title-screen .logo-first{font-size:44px}.title-screen .logo-second{font-size:54px}.title-screen .primary{padding:12px 15px}}

/* V04: one identity across all screens. */
.overlay{align-items:center;text-align:center}.overlay p{margin-left:auto;margin-right:auto}.overlay:not(.title-screen) h1{font-size:clamp(30px,5vw,64px)}.brand.game-logo{display:block;transform:rotate(-4deg);text-align:center;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:800;font-style:italic;line-height:.78;letter-spacing:1px;text-shadow:1px 1px 0 #b94630,2px 2px 0 #882f28,3px 3px 0 #07121c;min-width:120px}.game-logo .logo-first{display:block;font-size:28px;color:#fff0bd}.game-logo .logo-second{display:block;font-size:34px;color:#f89750;margin-top:3px}.record-block{margin-left:auto;display:flex;align-items:center;gap:10px}.record-block strong{color:var(--orange);font-size:18px}.record-block small{max-width:42px;font-size:8px}.record-block button{font-size:9px;padding:8px}.edition{display:none}.city-status{flex:1}.city-row{gap:12px}.city-row strong{margin:0;font-size:25px;line-height:1;min-width:65px}.city-row{margin-top:8px;align-items:center}#city-meter{width:100%;min-width:75px;max-width:155px;height:15px;border:1px solid #67838e;background:#26383e}.hud{gap:20px}.hud .hostages{margin-left:0}
[hidden]{display:none!important}.scores-panel{position:absolute;inset:0;z-index:5;background:#071822f7;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 8%;text-align:center;overflow:auto}.scores-heading span{color:var(--cyan);font-size:8px;letter-spacing:3px}.scores-heading h2{font:800 30px 'Barlow Condensed',sans-serif;color:#f7d79b;letter-spacing:3px;margin:2px 0 7px}.scores-panel table{width:100%;max-width:530px;border-collapse:collapse;text-align:left;font-size:11px}.scores-panel th{font-size:8px;color:var(--muted);padding:3px 10px;border-bottom:1px solid #48606a}.scores-panel td{padding:4px 10px;border-bottom:1px solid #1c313c}.scores-panel td:last-child,.scores-panel th:last-child{text-align:right;color:var(--orange)}.scores-panel tr:first-child td{color:#ffe4a6}.scores-panel td:first-child{width:60px;color:#6bbcb7}.scores-panel #scores-status{font-size:9px;margin:7px 0}.scores-panel button{padding:7px 14px;font-size:9px}.title-scores{padding:4px 8px;font-size:8px;border:0;color:#d8d7b4;margin-top:6px}.overlay:not(.title-screen) .title-scores{display:block}#score-form{margin:0 auto 12px;max-width:390px;width:100%}#score-form label{display:block;color:#f7d79b;font-size:10px;margin-bottom:8px}#score-form>div{display:flex;gap:8px;justify-content:center}#player-name{min-width:0;width:170px;background:#102a35;border:1px solid #69b6b8;color:white;font:14px 'IBM Plex Mono',monospace;letter-spacing:1px;text-align:center;padding:9px}#save-score{font-size:9px;padding:9px}#name-help{font-size:8px;letter-spacing:0;line-height:1.4;margin-top:6px}#score-status{font-size:9px;color:var(--cyan);margin:5px 0 0;line-height:1.4}.overlay:has(#score-form:not([hidden])) h1{font-size:35px;margin:6px 0}.overlay:has(#score-form:not([hidden]))>p{font-size:10px;margin-bottom:10px}.overlay:has(#score-form:not([hidden])){padding:3%}.title-screen h1{margin:8px 0 6px}.title-screen #overlay-foot{margin-top:6px}
@media(max-width:760px){header{gap:10px}.brand.game-logo{min-width:95px}.game-logo .logo-first{font-size:23px}.game-logo .logo-second{font-size:28px}.record-block{gap:5px}.record-block strong{font-size:13px}.record-block small{font-size:6px;max-width:30px}.record-block button{font-size:7px;padding:6px}header>#sound{font-size:8px;padding:10px 8px}.hud{gap:10px}.city-row strong{font-size:16px;min-width:40px}.city-row{gap:7px}#city-meter{height:12px;min-width:55px}.scores-panel table{font-size:10px}.scores-panel td{padding:3px 8px}.scores-heading h2{font-size:24px}.scores-panel{padding:8px 5%}}
@media(max-width:500px) and (orientation:portrait){.city-row{flex-direction:row;align-items:center;gap:5px}.city-status{min-width:105px}.hud{gap:7px;padding:10px 8px}.hud strong{font-size:13px}.city-row strong{min-width:33px}#city-meter{min-width:50px;max-width:70px}.hud .hostages small{max-width:48px}.hud button{padding:5px}.screen{aspect-ratio:1.02}.title-screen .title-instructions{margin-bottom:7px}.title-screen h1{margin:10px 0}.title-screen .logo-first{font-size:40px}.title-screen .logo-second{font-size:50px}.scores-panel td{padding:4px 8px}.record-block{flex-wrap:wrap;max-width:125px;justify-content:center}.record-block small{max-width:40px}.title-scores{font-size:7px}}
.scores-panel{justify-content:safe center}.scores-panel>*{flex-shrink:0}.overlay{overflow:auto;justify-content:safe center}

/* V05: readable final messages, including qualification and score details. */
.overlay:not(.title-screen) h1{font-size:clamp(42px,6vw,76px);margin:10px 0 18px}
.overlay:not(.title-screen)>p{font-size:clamp(15px,1.8vw,22px);line-height:1.55;color:#e0eceb;max-width:760px;margin-bottom:20px}
.overlay:not(.title-screen) .primary{font-size:16px;padding:15px 24px}
.overlay:not(.title-screen) .title-scores{font-size:12px;padding:9px}
.overlay:has(#score-form:not([hidden])) h1{font-size:clamp(36px,5vw,58px)}
.overlay:has(#score-form:not([hidden]))>p{font-size:clamp(14px,1.5vw,18px)}
#score-form label{font-size:13px}#player-name{font-size:17px}#save-score{font-size:12px}
#name-help,#score-status{font-size:11px}

/* V06: world campaign, a readable ranking, and a clear ready-to-fire signal. */
.location-status{min-width:160px}.hud .location-status strong{font-size:18px;letter-spacing:0;white-space:nowrap}
.scores-panel{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(800px,94vw);max-height:92svh;padding:30px 40px;z-index:50;background:#081b27;border:2px solid #668c94;box-shadow:0 0 0 100vmax #020a12dc,0 20px 80px #000;justify-content:flex-start}
.scores-heading span{font-size:12px}.scores-heading h2{font-size:48px;margin:5px 0 20px}
.scores-panel table{max-width:none;font-size:19px}.scores-panel th{font-size:11px;padding:10px 16px}.scores-panel td{padding:10px 16px}.scores-panel td:first-child{width:80px}
.scores-panel tr:first-child{background:#f7d79b12}.scores-panel tr:first-child td{font-weight:600}
.scores-panel #scores-status{font-size:12px;margin:20px 0;line-height:1.5}.scores-panel button{font-size:13px;padding:13px 22px;border-color:#71e8e3}
.title-scores{font-size:11px;padding:8px 12px;border:1px solid #8f9c7e;margin-top:10px}
.emp{color:#ffe5df;background:#6e1c2d;border:2px solid #ef6474;font-size:15px;font-weight:700;letter-spacing:1px}.emp b{background:#b62b42;color:#fff2db}.emp small{color:#ffc0bd}
.emp:disabled{opacity:.5}.emp:not(:disabled){background:#bb263e;color:#fff4dc;border-color:#ffb9a6;animation:virus-ready 1.25s ease-in-out infinite}.emp:not(:disabled):hover{background:#e3354d;color:white;border-color:white}
@keyframes virus-ready{0%,100%{box-shadow:0 0 0 1px #ff637455,0 0 8px #ff294533}50%{box-shadow:0 0 0 3px #ff637488,0 0 24px #ff2945aa;background:#e0384d}}
@media(prefers-reduced-motion:reduce){.emp:not(:disabled){animation:none;box-shadow:0 0 15px #ff294588}}
@media(max-width:760px){.hud{gap:12px;flex-wrap:wrap}.location-status{min-width:130px}.hud .location-status strong{font-size:15px}.scores-panel{padding:24px 18px}.scores-heading h2{font-size:37px}.scores-panel table{font-size:15px}.scores-panel td{padding:9px 8px}.scores-panel th{padding:8px;font-size:10px}.scores-panel td:first-child{width:50px}.scores-panel #scores-status{font-size:11px}.title-scores{font-size:9px;padding:7px}.emp{font-size:13px}}
@media(max-width:500px){.hud{display:grid;grid-template-columns:1fr 1fr 1fr auto}.hud .location-status{grid-column:1/4;grid-row:1}.hud>#pause{grid-column:4;grid-row:1}.hud>div:first-child{grid-column:1;grid-row:2}.hud>.city-status{grid-column:2/4;grid-row:2}.hud>.hostages{grid-column:4;grid-row:2}.hud .location-status strong{font-size:18px}.city-row{margin-top:4px}.scores-heading h2{font-size:32px}.scores-panel table{font-size:13px}.scores-panel td{padding:8px 5px}.scores-panel th{padding:8px 5px}.scores-panel{padding:20px 12px}.scores-heading h2{margin-bottom:12px}.scores-panel #scores-status{margin:12px 0}}

/* V07: cinema backdrop and arcade attract loop. */
.console:has(.home-mode)>.hud,.console:has(.home-mode)>.ammo-bar,.console:has(.home-mode)>.controls,main:has(.home-mode)>footer,main:has(.home-mode)>.bottom{display:none}
.overlay:not(.title-screen) h1,.scores-heading h2,.retro-heading{font-family:'Barlow Condensed',Impact,sans-serif;font-weight:800;font-style:italic;letter-spacing:2px;color:#fff0bd;-webkit-text-stroke:1px #ffcc89;text-shadow:2px 2px #b94630,4px 4px #882f28,6px 6px #07121c;transform:rotate(-3deg)}
.overlay:not(.title-screen) h1{color:#f89750}.scores-heading span{color:#f7d79b}
.overlay:not(.title-screen) .primary{background:#f7d79b;color:#12232b;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:800;letter-spacing:1px;box-shadow:3px 3px #9b5738}
#toast{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:17px;letter-spacing:.5px;color:#f7d79b;border-color:#9b7954;max-width:94%;white-space:normal;text-align:center}
#intro-video{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.screen.home-mode{min-height:620px;aspect-ratio:auto}.home-mode #intro-video{display:block}.home-mode canvas{visibility:hidden}
.home-mode .overlay.title-screen{inset:0 0 110px;padding:24px 5%;border:0;background:linear-gradient(#03131d55,#03131d99);overflow:auto}
.home-mode .title-screen:before,.home-mode .title-screen:after{display:none}
.home-mode .title-screen .logo-first{font-size:clamp(56px,7vw,88px)}.home-mode .title-screen .logo-second{font-size:clamp(68px,8vw,108px)}
.home-mode .title-screen #overlay-text{font-size:23px;margin:20px 0}
.home-mode .title-screen .title-instructions{gap:22px;max-width:900px;margin:0;padding:16px;background:#05131ac9;border:1px solid #e6dbac44}
.home-mode .title-screen .title-instructions p{font-size:13px;max-width:250px;line-height:1.6;color:#f1e4cb}.home-mode .title-instructions b{font:700 20px 'Barlow Condensed',sans-serif;color:#ffb45e;margin-bottom:6px}
.home-mode #start,.home-mode .title-scores,.home-mode #overlay-foot{display:none}
#home-controls{position:absolute;z-index:8;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px;background:linear-gradient(transparent,#03131df2)}
#home-controls .primary{font:800 20px 'Barlow Condensed',sans-serif;letter-spacing:1px;background:#f7d79b;color:#12232b;box-shadow:3px 3px #9b5738;padding:12px 26px}
#home-controls>div{display:flex;gap:7px}#home-controls>div button{padding:7px 12px;font-size:10px;background:#07131ccc;color:#eadfbd;border-color:#789084}#home-controls button[aria-pressed=true]{color:#ffb45e;border-color:#ffb45e}
.attract-scores{position:absolute;inset:0 0 110px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 7%;background:#03131d99}
.attract-scores h2{font-size:clamp(36px,5vw,62px);margin:10px 0 18px}.attract-scores table{width:100%;max-width:720px;border-collapse:collapse;background:#05131ad9;font-size:16px}.attract-scores th{padding:8px 12px;color:#a0b6bb;font-size:10px;text-align:left}.attract-scores td{padding:7px 12px;border-top:1px solid #6c878455;color:#f0e4c6}.attract-scores td:last-child,.attract-scores th:last-child{text-align:right;color:#ffb45e}.attract-scores tr:first-child td{color:#fff0bd;font-weight:bold}.attract-scores p{font-size:10px;color:#f7d79b;letter-spacing:1px}
.home-mode[data-home-slide="2"] canvas{visibility:visible;position:absolute;inset:55px 0 115px;width:100%;height:calc(100% - 170px);object-fit:contain;background:#03131d99}
#demo-label{position:absolute;top:15px;left:0;right:0;text-align:center;color:#fff0bd;font:800 italic 21px 'Barlow Condensed',sans-serif;letter-spacing:2px;text-shadow:2px 2px #882f28;background:#03131d99;padding:8px}
.home-mode #toast{display:none}
@media(max-width:760px){.screen.home-mode{min-height:690px}.home-mode .title-screen .title-instructions{display:block;padding:14px;max-width:420px}.home-mode .title-screen .title-instructions p{font-size:13px;max-width:none;margin-bottom:12px}.home-mode .title-instructions b{display:block;font-size:20px}.home-mode .title-screen #overlay-text{font-size:19px}.home-mode .title-screen .logo-first{font-size:56px}.home-mode .title-screen .logo-second{font-size:68px}.attract-scores{padding:16px}.attract-scores table{font-size:14px}.attract-scores td{padding:10px 8px}.attract-scores h2{font-size:42px}.home-mode .intro-kicker{font-size:8px}}
@media(max-width:760px){.screen:has(.overlay:not(.hidden):not(.title-screen)){min-height:380px}.overlay:not(.title-screen){padding:20px}.overlay:not(.title-screen)>p{font-size:16px}.overlay:has(#score-form:not([hidden])){padding:15px}.screen:has(#score-form:not([hidden])){min-height:470px}}

/* Version 08 — low ammunition and temporary Vulcan magazine. */
#ammo-rack[hidden],#vulcan-meter[hidden],#home-return[hidden]{display:none!important}
.ammo-bar.ammo-low{color:#ff5364;border-color:#ff5364;animation:ammo-warning .8s ease-in-out infinite}
.ammo-low #ammo-count,.ammo-low #ammo-state,.ammo-low .ammo-label{color:#ff5364}
.ammo-low #ammo-rack .round.loaded{background:#ff5364;box-shadow:0 0 7px #ff536477}
@keyframes ammo-warning{50%{background:#641c2c;box-shadow:inset 0 0 18px #ff344555}}
#vulcan-meter{flex:1;min-width:60px;height:16px;background:#102b37;border:1px solid #679d9c;padding:2px}
#vulcan-fill{display:block;height:100%;background:linear-gradient(90deg,#41aaac,#bbfff1);transition:width .04s linear}
.vulcan-active #ammo-count,.vulcan-active .ammo-label{color:#9ff9e9}
#home-return{border:1px solid #d5a875;background:#182b34;color:#ffe8b6;padding:9px 16px;font:600 12px monospace;cursor:pointer;margin:8px}
@media(prefers-reduced-motion:reduce){.ammo-bar.ammo-low{animation:none;background:#451b29}}

/* V09: one charge, growing DNA and rescued-human HUD. */
.rescued-status strong{color:#8beac6}.hud{gap:18px}.rescued-status small{max-width:85px}
.virus-charge{width:230px;min-width:160px}.next .dna-heading{height:auto;background:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
#virus-ready{font-size:12px;color:#ff6478;white-space:nowrap;animation:virus-ready-flash 1s ease-in-out infinite}
#virus-ready[hidden],#audio-unlock[hidden],#scores-close[hidden]{display:none!important}
.next #virus-dna{height:32px;position:relative;background:#09141c;overflow:hidden;border:1px solid #29454b}
#virus-dna svg{width:100%;height:30px;display:block;fill:none;stroke-width:2}
.dna-ghost{position:absolute;inset:0;opacity:.16}.dna-a{stroke:#ff6478}.dna-b{stroke:#ffc38d}.dna-rungs{stroke:#ffb7ad;stroke-width:1}
.next #emp-progress{height:30px;position:absolute;inset:0;width:100%;overflow:hidden;background:none;clip-path:inset(0 100% 0 0);transition:clip-path .2s ease}
#emp-progress svg{width:100%;max-width:none;filter:drop-shadow(0 0 3px #ff5969)}
#virus-dna.ready{border-color:#ff6478;box-shadow:0 0 10px #ff647833}
.virus-charge #next-emp{font-size:8px;color:#abc3c4;letter-spacing:1px}
#audio-unlock{position:absolute;right:12px;top:12px;z-index:8;background:#10242ee8;color:#ffe3af;border-color:#8d785b;font-size:10px}
@keyframes virus-ready-flash{50%{opacity:.35;text-shadow:0 0 10px #ff4b68}}
@media(max-width:760px){.controls{flex-wrap:wrap}.virus-charge{width:100%;flex:1 0 100%}.hud .rescued-status{min-width:55px}.rescued-status small{font-size:7px}.hud{gap:9px}}
@media(prefers-reduced-motion:reduce){#virus-ready{animation:none}#emp-progress{transition:none}}
.virus-charge{display:block}
.hud{flex-wrap:wrap}
@media(max-width:500px){.hud>.rescued-status{grid-column:2;grid-row:2}.hud>.city-status{grid-column:3;grid-row:2;min-width:80px}.hud>.hostages{grid-column:4;grid-row:2}.city-row{gap:3px}#city-meter{min-width:35px;max-width:45px}}

/* V10: explicit defeat cause and the flamethrower's fuel gauge. */
.overlay:not(.title-screen) #overlay-title,.overlay:not(.title-screen) #game-over-reason{font:italic 800 clamp(32px,4.8vw,60px)/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;margin:4px 0 10px;color:#f89750;text-shadow:2px 2px #882f28;-webkit-text-stroke:0;transform:none}
.overlay:not(.title-screen) #game-over-reason{color:#fff0bd}
.overlay:not(.title-screen){overflow-y:auto;justify-content:flex-start}
.overlay:has(#score-form:not([hidden])) #overlay-title,.overlay:has(#score-form:not([hidden])) #game-over-reason{font-size:clamp(28px,3.5vw,42px);margin:3px 0}
.overlay:not(.title-screen)>p{font-size:clamp(12px,1.4vw,18px);margin:10px 0}
.flame-active #vulcan-fill{background:linear-gradient(90deg,#bf4025,#ff913c,#ffe49a);box-shadow:0 0 12px #ff6c38}
.flame-active #ammo-count,.flame-active #ammo-state{color:#ffba72}
#toast{max-width:92%;white-space:normal;text-align:center}

/* V11: three discrete rocket salvos. */
.rocket-active #vulcan-fill{background:linear-gradient(90deg,#68836c,#dce5b7);box-shadow:0 0 10px #a5d29a}
.rocket-active #vulcan-meter{position:relative}
.rocket-active #vulcan-meter:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 32.6%,#091720 32.6%,#091720 33.6%,transparent 33.6%,transparent 66%,#091720 66%,#091720 67%,transparent 67%);pointer-events:none}
.rocket-active #ammo-count,.rocket-active #ammo-state{color:#dce5b7}

.shock-active #vulcan-fill{background:linear-gradient(90deg,#4781d9,#c0fcff);box-shadow:0 0 12px #72dfff}
.shock-active #ammo-count,.shock-active #ammo-state{color:#b8f5ff}

/* V16: supplied artwork, with accessible text alternatives and native controls. */
.brand.game-logo{transform:none;min-width:0;line-height:0}
.brand .logo-art{display:block;width:200px;height:auto}
.title-screen #overlay-title{transform:none;filter:none;text-shadow:none;line-height:0;width:100%;margin:0}
.title-screen #overlay-title .logo-art{display:block;width:min(100%,680px);height:auto;margin:auto}
.title-screen>.intro-kicker{display:none}
.home-mode .title-screen #overlay-text{font-size:20px;margin:12px 0 18px}
.home-mode .title-screen .title-instructions{width:100%;gap:16px;padding:0;background:none;border:0;max-width:900px}
.home-mode .title-screen .title-instructions p{flex:1;max-width:none;font-size:12px;line-height:1.5}
.title-instructions img{display:block;width:100%;height:auto;margin-bottom:8px}
#home-controls .primary:has(img),#start:has(img){padding:0;border:0;background:none;box-shadow:none;line-height:0;width:min(420px,90%);transition:filter .15s,transform .15s}
#home-controls .primary img,#start img{width:100%;height:auto;display:block}
#home-controls .primary:hover,#start:has(img):hover{filter:brightness(1.16);transform:translateY(-2px)}
.primary:focus-visible{outline:3px solid #fff1b8;outline-offset:5px}
.home-mode .overlay.title-screen{bottom:145px}
.screen.home-mode{min-height:650px}
.hall-art{display:block;width:min(100%,480px);height:auto;max-height:110px;object-fit:contain;margin:auto}
.scores-heading h2,.attract-scores h2{margin:4px 0;line-height:0}
.title-scores .hall-art{width:190px;max-height:65px}
.state-art{display:block;width:min(260px,60vw);height:auto;margin:auto}
.overlay:has(#score-form:not([hidden])) .state-art{width:170px}
@media(max-width:760px){.brand .logo-art{width:135px}.screen.home-mode{min-height:790px}.home-mode .title-screen .title-instructions{display:flex;flex-direction:column;gap:10px;max-width:360px;padding:0}.home-mode .title-screen .title-instructions p{font-size:11px;margin:0}.title-instructions img{width:100%;max-width:300px;margin:0 auto 4px}.home-mode .title-screen #overlay-text{font-size:16px;margin:10px 0}.home-mode .overlay.title-screen{padding:20px 5%}.hall-art{max-height:90px}.state-art{max-height:110px;object-fit:contain}}

/* V17: clear hierarchy, one message area, no video bleed around the demo. */
.record-block small,.record-block strong{font:700 clamp(20px,2.4vw,28px)/1.15 'Barlow Condensed',Impact,sans-serif;letter-spacing:.5px;max-width:none;white-space:nowrap;color:#ffb25b}
.record-block{gap:12px;max-width:none;flex-wrap:wrap}
.record-block button,header>#sound{font-size:13px}
header{flex-wrap:wrap}
.home-mode .title-screen #overlay-text{display:none}
.home-mode .overlay.title-screen{justify-content:center;gap:32px;background:none}
.screen.home-mode{isolation:isolate;background:#050c14}
.home-mode #intro-video{z-index:-2;inset:-2px;width:calc(100% + 4px);height:calc(100% + 4px)}
.screen.home-mode:before{content:'';position:absolute;inset:0;z-index:-1;background:#03131d65;pointer-events:none}
.home-mode[data-home-slide="2"] #intro-video{display:none}
.home-mode[data-home-slide="2"]:before{display:none}
.home-mode[data-home-slide="2"] canvas{background:#050c14}
.home-mode #home-controls{background:none}
.home-mode .attract-scores{background:none;bottom:145px}
#home-controls>div button{font-size:13px;padding:9px 14px}
#home-controls .primary img{animation:start-invitation 7s ease-in-out infinite;transform-origin:center}
#home-controls .primary:hover img,#home-controls .primary:focus-visible img{animation:none;transform:scale(1.035)}
@keyframes start-invitation{0%,76%,100%{transform:scale(1)}82%{transform:scale(1.055)}89%{transform:scale(1)}94%{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){#home-controls .primary img{animation:none}}
.hud small,.weapon small,.ammo-label,.emp small,.dna-heading small{font-size:12px;letter-spacing:.3px;line-height:1.3}
.hud{gap:16px;align-items:center}
.hud>div{min-width:0}
.hud .location-status strong{font-size:21px}
.weapon b{font-size:16px}
.controls{flex-wrap:wrap;gap:16px}
.controls>button{font-size:16px}
.fire small{font-size:12px}
.virus-charge #next-emp{font-size:11px;letter-spacing:.3px}
#ammo-state{font-size:12px;max-width:250px;line-height:1.4;letter-spacing:.2px}
.ammo-bar{flex-wrap:wrap}
#ammo-count{font-size:16px}
.bottom,.bottom button,footer p,footer small{font-size:12px;letter-spacing:0}
#toast{font-size:clamp(18px,2.2vw,23px);line-height:1.2;top:12px;padding:10px 18px;width:max-content;max-width:90%;z-index:3;overflow-wrap:anywhere}
.screen:has(.overlay:not(.hidden):not(.title-screen)) #toast{display:none}
.overlay:not(.title-screen){gap:14px;padding:24px;justify-content:flex-start;overflow:auto}
.overlay:not(.title-screen)>*{flex-shrink:0}
.overlay:not(.title-screen) #overlay-title,.overlay:not(.title-screen) #game-over-reason{margin:0;line-height:1.1}
.overlay:not(.title-screen)>p:empty,#score-status:empty{display:none}
.overlay:not(.title-screen) .title-scores{display:none}
.overlay:has(#home-return:not([hidden])) #start{display:none}
.overlay:not(.title-screen) #overlay-text{font-size:17px;line-height:1.4;margin:0;max-width:620px}
#score-form{margin:0;max-width:440px}
#score-form>div{flex-wrap:wrap;gap:10px}
#player-name{font-size:20px;width:220px;padding:12px}
#save-score,#home-return{font-size:15px;padding:12px 20px}
#score-status{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.state-art{width:210px;max-height:135px;object-fit:contain}
.overlay:has(#score-form:not([hidden])) .state-art{width:170px;max-height:105px}
.screen:has(.overlay:not(.hidden):not(.title-screen)){min-height:450px}
.scores-panel th,.attract-scores th{font-size:13px}
.scores-panel #scores-status,.attract-scores p{font-size:14px}
@media(max-width:760px){.record-block{margin-left:auto;gap:8px}.record-block small,.record-block strong{font-size:22px}.record-block button,header>#sound{font-size:12px}.screen.home-mode{min-height:700px}.home-mode .overlay.title-screen{gap:22px}.home-mode .title-screen .title-instructions{gap:16px}.hud small,.weapon small{font-size:11px}.weapon b{font-size:14px}.hud .location-status strong{font-size:18px}.hud strong{font-size:19px}.ammo-bar #ammo-state{max-width:100%;font-size:11px}.overlay:not(.title-screen){gap:12px;padding:18px}.screen:has(#score-form:not([hidden])){min-height:510px}.scores-panel th,.attract-scores th{font-size:12px}}
@media(max-width:500px){header{gap:12px}.record-block{order:3;flex-basis:100%;justify-content:center}.hud{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hud>div,.hud>.rescued-status,.hud>.city-status,.hud>.hostages,.hud>div:first-child{grid-column:auto;grid-row:auto}.hud>.location-status{grid-column:1;grid-row:1}.hud>#pause{grid-column:2;grid-row:1;justify-self:end}.hud .hostages small{max-width:none}.city-row{flex-direction:row}.hud .city-status{min-width:0}#city-meter{min-width:35px;max-width:70px}.screen.home-mode{min-height:670px}.home-mode .overlay.title-screen{gap:18px}.home-mode .title-screen .title-instructions{gap:14px}.title-instructions img{max-width:280px}.attract-scores td{padding:6px 8px}#home-controls>div button{font-size:12px;padding:8px 11px}}

.home-mode[data-home-slide="2"] canvas{bottom:145px;height:calc(100% - 200px)}

/* V18: home destinations remain keyboard accessible. */
#home-controls .home-link{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid #789084;font:600 13px 'IBM Plex Mono',monospace;color:#eadfbd;background:#07131ccc;text-decoration:none}
#home-controls .home-link:hover{color:#ffb45e;border-color:#ffb45e}
#home-controls>div{flex-wrap:wrap;justify-content:center}
#watch-video{display:none}
.home-mode:not([data-home-slide="2"]) #watch-video{display:block;position:absolute;right:16px;bottom:18px;z-index:9;padding:10px 12px;background:#07131de8;color:#ffe3af;border:1px solid #9b7954;font:600 14px 'Barlow Condensed',sans-serif;text-decoration:none}
#watch-video:hover{background:#183443;color:white}
.home-link:focus-visible,#watch-video:focus-visible{outline:3px solid #ffe3af;outline-offset:3px}
#scores-status:empty{display:none}
@media(max-width:1000px){.home-mode:not([data-home-slide="2"]) #watch-video{bottom:155px}.home-mode .overlay.title-screen,.home-mode .attract-scores{bottom:195px}.screen.home-mode{min-height:740px}}

/* Reveal follows the video cue, not page load or network speed. Reserve its space. */
.screen[data-logo-ready="false"] .title-screen #overlay-title{opacity:0;visibility:hidden}
.home-mode[data-logo-ready="true"] .title-screen #overlay-title{opacity:1;visibility:visible;animation:logo-arrival 1.25s cubic-bezier(.16,1,.3,1) both}
.home-mode[data-logo-ready="true"] .title-screen #overlay-title .logo-art{animation:logo-presence 7s ease-in-out 1.4s infinite;transform-origin:center}
@keyframes logo-arrival{0%{opacity:0;transform:scale(.58) translateY(14px);filter:brightness(1.8) drop-shadow(0 0 28px #ffb23dcc)}45%{opacity:1;transform:scale(1.065) translateY(-3px);filter:brightness(1.3) drop-shadow(0 0 18px #ffbd5999)}70%{transform:scale(.99);filter:brightness(1.05) drop-shadow(0 0 8px #f86c3044)}100%{opacity:1;transform:scale(1);filter:brightness(1) drop-shadow(0 0 5px #f86c3033)}}
@keyframes logo-presence{0%,76%,100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 3px #ff8d2322)}85%{transform:scale(1.025);filter:brightness(1.16) drop-shadow(0 0 12px #ffb94988)}94%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 3px #ff8d2322)}}
@media(prefers-reduced-motion:reduce){.home-mode[data-logo-ready="true"] .title-screen #overlay-title,.home-mode[data-logo-ready="true"] .title-screen #overlay-title .logo-art{animation:none}}
@media(max-width:500px){#home-controls>div button,#home-controls .home-link{font-size:11px;padding:8px 9px}#home-controls>div{gap:5px}}

/* V19: the ranking stays inside its own panel above the home controls. */
#attract-status:empty{display:none}
.home-mode .attract-scores{justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
.attract-scores>*{flex-shrink:0}

/* V21: only actionable status stays on screen; full-size DNA is clipped, not resized. */
footer,.bottom>span,.weapon small,.reload,#ammo-state,#fire-hint,.ammo-label{display:none!important}
.virus-charge{position:relative}
.virus-charge .dna-heading{padding-right:48px;min-height:24px}
.virus-charge #next-emp{position:absolute;right:0;top:0;margin:0;font-size:16px;color:#ffe3af;letter-spacing:0}
#virus-ready{font-size:14px}
#toast{white-space:normal;text-align:center}
.home-mode .title-screen #overlay-title{overflow:visible}
.hud{display:grid;grid-template-columns:1fr .9fr 1.6fr 1.1fr 1.1fr auto;gap:12px}
.hud .city-status,.hud .location-status{min-width:0}
.hud .city-row{flex-direction:column;align-items:flex-start;gap:6px}
.hud #city-meter{width:68px;min-width:0;max-width:100%;height:5px}
.hud .location-status strong{font-size:18px;white-space:normal}
@media(max-width:600px){.hud{grid-template-columns:repeat(2,minmax(0,1fr))}.hud>div,.hud>.rescued-status,.hud>.city-status,.hud>.hostages,.hud>div:first-child{grid-column:auto;grid-row:auto}.hud>.location-status{grid-column:1;grid-row:1}.hud>#pause{grid-column:2;grid-row:1;justify-self:end}}

/* V22: full console with a letterboxed battlefield; pointer mapping follows its viewport. */
#fullscreen{position:absolute;right:10px;top:10px;z-index:35;width:38px;height:38px;padding:8px;background:#07131ccc;border:1px solid #8ba9a4;border-radius:3px;color:#ecedcf}
#fullscreen svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square}
#fullscreen .contract-icon{display:none}
#fullscreen[aria-pressed="true"] .expand-icon{display:none}
#fullscreen[aria-pressed="true"] .contract-icon{display:block}
html.game-expanded{overflow:hidden}
main:is(.game-expanded,.compact-landscape){position:fixed;inset:0;z-index:100;width:100%;height:100%;height:100dvh;max-width:none;padding:0;margin:0;display:flex;flex-direction:column;background:#050c14;overflow:hidden}
main:is(.game-expanded,.compact-landscape)>header,main:is(.game-expanded,.compact-landscape)>.bottom{display:none}
main:is(.game-expanded,.compact-landscape) .console{flex:1;display:flex;flex-direction:column;min-height:0;border:0}
main:is(.game-expanded,.compact-landscape) .screen{flex:1;min-height:0!important;aspect-ratio:auto}
main:is(.game-expanded,.compact-landscape) .screen:not(.home-mode) canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
main:is(.game-expanded,.compact-landscape) .hud,main:is(.game-expanded,.compact-landscape) .controls,main:is(.game-expanded,.compact-landscape) .ammo-bar{flex-shrink:0;padding:8px 18px}
main:is(.game-expanded,.compact-landscape) .controls{gap:10px}
main:is(.game-expanded,.compact-landscape) .home-mode .title-screen #overlay-title .logo-art{max-height:32dvh;width:auto;max-width:100%}
main:is(.game-expanded,.compact-landscape) .home-mode .overlay.title-screen{gap:15px;bottom:150px;padding:10px 5%}
main:is(.game-expanded,.compact-landscape) .home-mode .title-instructions{flex-direction:row;max-width:850px;gap:8px}
main:is(.game-expanded,.compact-landscape) .home-mode .title-instructions img{max-height:12dvh;object-fit:contain}
main:is(.game-expanded,.compact-landscape) #home-controls .primary img{max-height:12dvh;width:auto;max-width:100%}
main:is(.game-expanded,.compact-landscape) .overlay:not(.title-screen){background:#030c14dd}
@media(max-height:600px){main:is(.game-expanded,.compact-landscape) .hud{display:flex;flex-wrap:nowrap;gap:14px;padding:5px 12px}main:is(.game-expanded,.compact-landscape) .hud small{font-size:10px}main:is(.game-expanded,.compact-landscape) .hud strong{font-size:16px}main:is(.game-expanded,.compact-landscape) .hud .city-row{margin-top:4px}main:is(.game-expanded,.compact-landscape) #city-meter{display:none}main:is(.game-expanded,.compact-landscape) .controls{flex-wrap:nowrap;padding:5px 12px}main:is(.game-expanded,.compact-landscape) .controls>button{padding:7px;font-size:13px}main:is(.game-expanded,.compact-landscape) .virus-charge{flex:0 1 210px;min-width:130px}main:is(.game-expanded,.compact-landscape) .weapon b{font-size:13px}main:is(.game-expanded,.compact-landscape) .ammo-bar{min-height:28px;padding:5px 12px}main:is(.game-expanded,.compact-landscape) .weapon-icon{display:none}main:is(.game-expanded,.compact-landscape) .home-mode .overlay.title-screen{bottom:110px}main:is(.game-expanded,.compact-landscape) #home-controls{gap:5px;padding:7px}}

#audio-unlock { right: 58px; }

#credits-dialog{width:min(940px,96vw);height:92dvh;max-height:96dvh;padding:0;border:1px solid #718e94;background:#07121b;color:#fff0bd}
#credits-dialog::backdrop{background:#02080de8}
.credits-toolbar{height:62px;display:flex;justify-content:space-between;align-items:center;padding:8px 16px;border-bottom:1px solid #35535c}
#credits-frame{display:block;border:0;width:100%;height:calc(100% - 62px);background:#07121b}

/* V25: phone landscape uses the entire available viewport without requiring
   native fullscreen (unavailable for arbitrary elements on some iPhones). */
html.compact-landscape{overflow:hidden}
main.compact-landscape{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#intro-video{image-rendering:auto!important}
#fire,#emp,#pause{touch-action:none;min-height:44px;min-width:44px}
main.compact-landscape .hud{justify-content:space-between;gap:10px}
main.compact-landscape .hud>div{min-width:0}
main.compact-landscape .controls{gap:8px}
main.compact-landscape .virus-charge{min-width:110px}
main.compact-landscape .controls .weapon{min-width:85px}
main.compact-landscape .home-mode .overlay.title-screen{top:0;bottom:120px;gap:8px}
main.compact-landscape .home-mode .title-screen #overlay-title .logo-art{max-height:29dvh}
main.compact-landscape .home-mode .title-instructions img{max-height:10dvh}
main.compact-landscape #home-controls{bottom:26px}
main.compact-landscape #home-controls>div button,main.compact-landscape #home-controls .home-link{min-height:40px;padding:7px 12px}
main.compact-landscape .home-mode #watch-video{bottom:4px;right:12px;font-size:11px;padding:5px 10px}
main.compact-landscape #home-start{display:flex;justify-content:center}
main.compact-landscape .attract-scores{top:8px;bottom:126px;overflow-y:auto}
main.compact-landscape .scores-panel{overflow-y:auto}
main.compact-landscape .overlay:not(.title-screen){overflow-y:auto;justify-content:flex-start;padding:12px 5%}
main.compact-landscape .overlay:not(.title-screen) h1{margin:4px 0}
main.compact-landscape .overlay:not(.title-screen) .state-art{max-height:18dvh;width:auto}
@media(max-width:500px){.screen:not(.home-mode){aspect-ratio:2/1}.screen:not(.home-mode) canvas{width:100%;height:100%}}

/* V26: immediate title, restrained invitation pulse and cryogenic resource bar. */
.home-mode[data-logo-ready="true"] .title-screen #overlay-title{animation:none}
.home-mode[data-logo-ready="true"] .title-screen #overlay-title .logo-art{animation:start-invitation 7s ease-in-out infinite}
.freeze-active #vulcan-fill{background:linear-gradient(90deg,#2169ce,#75d8ff,#e5fcff);box-shadow:0 0 12px #80deff}
.freeze-active #ammo-count,.freeze-active #ammo-state{color:#b9efff}
@media(prefers-reduced-motion:reduce){.home-mode[data-logo-ready="true"] .title-screen #overlay-title .logo-art{animation:none}}

/* V30: ten-row all-time ranking and restrained animated home podium. */
#scores-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:12px auto;flex-wrap:wrap}
#scores-pagination[hidden]{display:none}
#scores-pagination button{font-size:clamp(12px,1.4vw,18px);padding:10px 14px}
#scores-pagination button:disabled{opacity:.35;cursor:default}
#scores-page{font-size:clamp(12px,1.4vw,18px);color:#ffdc9a;min-width:112px;text-align:center}
.scores-panel{overflow-y:auto}
#attract-scores-body .podium{transform-origin:center;animation:podium-highlight 9s ease-in-out infinite}
#attract-scores-body .podium-1{--podium-color:#ffdc8e}
#attract-scores-body .podium-2{--podium-color:#d1e6f1;animation-delay:1.5s}
#attract-scores-body .podium-3{--podium-color:#e6ae80;animation-delay:3s}
@keyframes podium-highlight{0%,16%,100%{transform:scale(1);filter:none}7%{transform:scale(1.018);filter:drop-shadow(0 0 5px var(--podium-color));background:#ffffff0d;color:var(--podium-color)}}
@media(prefers-reduced-motion:reduce){#attract-scores-body .podium{animation:none;color:var(--podium-color)}}

/* V31: the exact newly saved rank is spotlighted for the four-second result. */
.scores-panel tr.score-achieved{color:#fff1b8;background:#76521f;outline:2px solid #ffda84;outline-offset:-2px;animation:score-achieved .5s ease-in-out 8}
.scores-panel tr.score-achieved td{color:inherit;font-weight:800}
.scores-panel tbody:has(.score-achieved) tr:first-child:not(.score-achieved){background:transparent;color:inherit;font-weight:400}
@keyframes score-achieved{0%,100%{background:#76521f;filter:brightness(1.25)}50%{background:#19343b;filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){.scores-panel tr.score-achieved{animation:none}}

/* V1.0: battlefield first. HUD overlays do not reduce the canvas height. */
main.compact-landscape{padding:0}
main.compact-landscape .console{position:relative;isolation:isolate}
main.compact-landscape .screen{position:absolute;inset:0;width:100%;height:100%;flex:none}
main.compact-landscape .screen:not(.home-mode) canvas{width:100%;height:100%;object-fit:contain}
main.compact-landscape .hud{position:absolute;z-index:36;top:env(safe-area-inset-top,0px);left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));height:44px;display:flex;justify-content:flex-start;gap:16px;padding:0 6px;border:0;background:linear-gradient(#031018d9,#03101800);pointer-events:none}
main.compact-landscape .hud small{font-size:8px;letter-spacing:0;line-height:1.1;color:#b4c8cb}
main.compact-landscape .hud strong{font-size:15px;letter-spacing:0;margin-top:2px;line-height:1.1;text-shadow:0 1px 3px #000}
main.compact-landscape .hud .city-row{margin-top:0}
main.compact-landscape .hud .hostages{margin-left:auto}
main.compact-landscape #pause{pointer-events:auto;margin-left:0;width:44px;height:44px;padding:0;background:#07131cb3}
main.compact-landscape #fullscreen{right:max(8px,env(safe-area-inset-right));top:52px;width:44px;height:44px}
main.compact-landscape .ammo-bar{position:absolute;z-index:36;bottom:calc(49px + env(safe-area-inset-bottom,0px));left:max(12px,env(safe-area-inset-left));width:190px;min-height:0;padding:3px 8px;gap:8px;border:0;background:#031018b3;pointer-events:none}
main.compact-landscape #ammo-count{font-size:14px;white-space:nowrap}
main.compact-landscape #ammo-rack{gap:2px;flex:1;min-width:0}
main.compact-landscape #ammo-rack span{width:4px;height:12px;min-width:0}
main.compact-landscape #vulcan-meter{flex:1;min-width:0;height:8px}
main.compact-landscape .controls{position:absolute;z-index:36;bottom:env(safe-area-inset-bottom,0px);left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));height:46px;gap:10px;padding:0;border:0;background:transparent;pointer-events:none}
main.compact-landscape .controls .weapon{flex:1;min-width:0}
main.compact-landscape .weapon b{display:inline-block;margin:0;padding:4px 8px;font-size:11px;background:#031018b3;color:#fff0bf}
main.compact-landscape .weapon small,main.compact-landscape .weapon-icon,main.compact-landscape .reload,main.compact-landscape #fire,main.compact-landscape #emp small{display:none}
main.compact-landscape .controls #emp{pointer-events:auto;order:3;min-height:44px;min-width:94px;padding:6px 10px;gap:8px;background:#271d38e6;font-size:13px}
main.compact-landscape .controls .virus-charge{display:block;position:relative;flex:0 1 145px;min-width:95px;padding:3px 8px;background:#031018b3}
main.compact-landscape .dna-heading{height:12px}
main.compact-landscape .dna-heading small{font-size:8px}
main.compact-landscape #virus-dna{height:17px;margin:0}
main.compact-landscape #next-emp{position:absolute;right:8px;top:0;font-size:10px;margin:2px 0}
main.compact-landscape #virus-ready{font-size:9px}
main.compact-landscape .console:has(.home-mode)>.hud,main.compact-landscape .console:has(.home-mode)>.controls,main.compact-landscape .console:has(.home-mode)>.ammo-bar,
main.compact-landscape .console:has(#scores-panel:not([hidden]))>.hud,main.compact-landscape .console:has(#scores-panel:not([hidden]))>.controls,main.compact-landscape .console:has(#scores-panel:not([hidden]))>.ammo-bar,
main.compact-landscape .console:has(.overlay:not(.hidden):not(.title-screen))>.hud,main.compact-landscape .console:has(.overlay:not(.hidden):not(.title-screen))>.controls,main.compact-landscape .console:has(.overlay:not(.hidden):not(.title-screen))>.ammo-bar{visibility:hidden}
@media(max-width:700px){main.compact-landscape .hud{gap:10px}main.compact-landscape .hud strong{font-size:13px}main.compact-landscape .hud .hostages{display:none}main.compact-landscape .ammo-bar{width:165px}}
/* Portrait remains operable; invite rotation instead of stretching/cropping play. */
#rotate-device{display:none}
@media(orientation:portrait) and (any-pointer:coarse){
 main:has(.screen:not(.home-mode)) #rotate-device{display:flex;position:fixed;inset:0;z-index:150;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#031018f5;text-align:center;padding:28px;color:#fff0bf;font-size:22px}
 #rotate-device span{font-size:54px;color:#71e8e3}#rotate-device small{font-size:14px;line-height:1.6}
}

/* V1.0 mobile correction: visual viewport, tablets, Home Screen launch. */
main.compact-landscape{inset:auto;top:var(--play-top,0px);left:var(--play-left,0px);width:var(--play-width,100%);height:var(--play-height,100dvh)}
#install-game{display:none}
@media(any-pointer:coarse){main:has(.screen.home-mode) #install-game:not([hidden]){display:block;position:fixed;z-index:110;left:max(8px,env(safe-area-inset-left));bottom:max(4px,env(safe-area-inset-bottom));min-height:32px;padding:5px 9px;font-size:10px;background:#07131ce8;color:#ffdc9a;max-width:47vw}}
#install-dialog{width:min(520px,92vw);max-height:88dvh;overflow:auto;padding:20px;border:1px solid #71e8e3;background:#07131c;color:#d5e1df;font-size:15px;line-height:1.6}
#install-dialog::backdrop{background:#02080de8}#install-dialog h2{color:#ffdc9a;margin:0 0 12px}#install-dialog button{min-height:44px}#install-dialog strong{color:#fff0bd}
@media(min-height:601px){main.compact-landscape .hud{height:54px;gap:22px}main.compact-landscape .hud strong{font-size:18px}main.compact-landscape .hud small{font-size:10px}main.compact-landscape #fullscreen{top:64px}main.compact-landscape .weapon b{font-size:14px}}
@media(max-height:340px) and (orientation:landscape){main.compact-landscape .home-mode .overlay.title-screen{bottom:100px;gap:4px}main.compact-landscape .home-mode .title-screen #overlay-title .logo-art{max-height:24dvh}main.compact-landscape #home-controls{bottom:30px;padding:0;gap:2px}main.compact-landscape #home-controls>div button,main.compact-landscape #home-controls .home-link{min-height:36px;padding:5px 10px}main.compact-landscape #fullscreen{top:46px}}
