@font-face{font-family:Barlow;src:url(assets/barlow-condensed-extrabold-italic.ttf) format('truetype');font-weight:800;font-style:italic;font-display:swap}
@font-face{font-family:DM;src:url(assets/dm-sans.ttf) format('truetype');font-weight:100 1000;font-display:swap}
@font-face{font-family:Plex;src:url(assets/plex-mono.ttf) format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--base:#121516;--panel:#1b1f20;--line:#34393a;--ivory:#f5f3e9;--muted:#a5aaa7;--yellow:#f5db52;--green:#c5df92;--mono:Plex,'Courier New',monospace;--display:Barlow,Impact,'Arial Narrow',sans-serif}
*{box-sizing:border-box}
body{margin:0;background-color:var(--base);background-image:radial-gradient(ellipse at 67% 38%,#24272461 0,transparent 62%),repeating-linear-gradient(0deg,transparent 0 3px,#0000000b 3px 4px);color:var(--ivory);font:16px/1.45 DM,Arial,sans-serif}
button,a{touch-action:manipulation}
button{cursor:pointer;font:inherit;color:inherit}
button:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
button[hidden],[hidden]{display:none!important}
.symbols{display:none}
svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex:none}
.mast{border-bottom:1px solid #303435;background:#141718}
.mast-inner,main{width:min(1392px,calc(100% - clamp(40px,9vw,150px)));margin:auto}
.mast-inner{height:70px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:11px;font:italic 800 28px/.9 var(--display);letter-spacing:.25px;color:#f2f2e9}
.brand-icon{width:35px;height:35px;background:var(--yellow);display:grid;place-items:center;color:#191b1b;clip-path:polygon(0 0,100% 0,100% 80%,80% 100%,0 100%);padding:2px 1px 0 0}
.brand-icon svg{width:24px;height:22px;stroke:none}
.brand-light{color:var(--yellow)}
nav{display:flex;align-items:center;gap:17px}
.utility{background:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:7px 2px;color:#d7dad3;font:400 12px/1 var(--mono);letter-spacing:.25px;text-transform:uppercase}
.utility:hover,.guide-button:hover,.text-action:hover{color:var(--yellow)}
.utility svg{width:18px;height:18px}
.square{width:32px}
.nav-rule{height:19px;width:1px;background:var(--line)}
main{padding:34px 0 30px}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 21px}
.eyebrow,.mono,.label,.scene-location,.scene-status,.wave-alert{font-family:var(--mono)}
.eyebrow{display:flex;align-items:center;gap:10px;color:#b1b6af;letter-spacing:1.7px;font-size:12px;line-height:1.3}
.slashes{display:inline-block;width:22px;height:10px;background:repeating-linear-gradient(112deg,transparent 0 3px,var(--yellow) 3px 6px);transform:skew(-4deg)}
h1,h2,h3,p{margin:0}
h1{font:italic 800 clamp(62px,6.05vw,92px)/.98 var(--display);letter-spacing:-1.55px;margin:5px 0 0 -2px;white-space:nowrap}
h1 em{color:var(--yellow);font:inherit}
.best-box{display:flex;align-items:center;border-left:1px solid #454b43;padding:2px 0 2px 20px;gap:13px;margin-top:17px}
.best-box svg{width:28px;height:28px;color:var(--yellow);stroke-width:1.6}
.label{display:block;font-size:12px;line-height:1.25;letter-spacing:1.65px;color:#aab0aa}
.best-box .label{letter-spacing:1.1px;font-size:11px}
.best-box strong{display:block;font:600 22px/1.2 var(--mono);letter-spacing:1.5px;margin-top:2px}
.cabinet{border:1px solid #565a50;background:var(--panel);border-radius:7px;overflow:hidden;box-shadow:0 16px 42px -29px #000b}
.stage{--street-pan:50%;--blaster-scale:1;width:100%;aspect-ratio:2.64;position:relative;isolation:isolate;overflow:hidden;background:#42352c}
.art,.tableau,#playfield,.intro,.overlay,.scene-tags{position:absolute;inset:0}
.art{background:url(assets/high-street.webp) var(--street-pan) bottom/cover no-repeat}
.tableau{pointer-events:none;overflow:hidden}
.blaster{position:absolute;width:30%;min-width:180px;height:auto;right:-2.4%;bottom:-10%;transform:rotate(-3deg);filter:drop-shadow(-2px -1px 0 #191b1d)}
.reticle{position:absolute;top:50%;left:50%;width:28px;height:28px;transform:translate(-50%,-50%);filter:drop-shadow(1px 1px 1px #181b1b);opacity:.9;background:linear-gradient(#ffffed 0 0) center top/2px 8px no-repeat,linear-gradient(#ffffed 0 0) center bottom/2px 8px no-repeat,linear-gradient(#ffffed 0 0) left center/8px 2px no-repeat,linear-gradient(#ffffed 0 0) right center/8px 2px no-repeat}
.reticle b{position:absolute;left:13px;top:13px;width:3px;height:3px;background:#ffffed}
#playfield{width:100%;height:100%;display:block;outline:none;cursor:crosshair}
.cabinet[data-phase=playing] #playfield{cursor:none}
.cabinet:not([data-phase=ready]) .tableau{display:none}
.scene-tags{inset:17px 18px auto;display:flex;align-items:flex-start;gap:8px;z-index:2;pointer-events:none}
.scene-location,.scene-status,.scene-pause{display:inline-flex;gap:8px;align-items:center;min-height:31px;padding:7px 10px;background:#161a1bea;border:1px solid #bab8a16e;box-shadow:0 2px 5px #0003;border-radius:3px;color:#f6f4e9;font:400 11px/1.1 var(--mono);letter-spacing:.85px}
.scene-location svg{width:14px;height:14px;color:var(--yellow);stroke-width:2}
.scene-status{margin-left:auto;color:#eeeedd}
.scene-status i{width:6px;height:6px;background:var(--yellow)}
.cabinet[data-phase=playing] .scene-status i{background:#c7e784}
.scene-pause{pointer-events:auto;min-width:34px;justify-content:center;padding:5px}
.scene-pause svg{width:16px;height:16px}
.intro{display:flex;align-items:flex-end;padding:clamp(22px,2.8vw,44px);background:linear-gradient(90deg,#101715c2 0%,#111a1844 31%,transparent 59%),linear-gradient(0deg,#0b1417a3,transparent 48%);pointer-events:none}
.intro-content{position:relative;text-shadow:0 2px 9px #0c0d0c}
.mission{display:flex;align-items:center;gap:9px;color:var(--yellow);font-size:12px;font-weight:600;letter-spacing:1.7px}
.mission i{width:23px;height:2px;background:currentColor}
.intro h2,.result-panel h2{font:italic 800 clamp(32px,3.3vw,51px)/1.05 var(--display);letter-spacing:-.5px;margin:6px 0}
.intro p{color:#f0eee4;font-size:clamp(14px,1.14vw,17px)}
.primary{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:11px;border:0;border-radius:3px;background:var(--yellow);color:#191b18;box-shadow:0 3px 0 #98832b,0 5px 14px #1116;min-height:48px;padding:8px 24px;margin-top:19px;font:italic 800 23px/1 var(--display);letter-spacing:.45px;transition:background .15s,transform .15s}
.primary:hover{background:#ffea78;transform:translateY(-1px)}
.primary:active{transform:translateY(2px);box-shadow:none}
.primary svg{width:17px;height:17px}
.hud{display:grid;grid-template-columns:1fr 1.38fr 1fr 1fr;align-items:center;padding:16px 0;background:linear-gradient(110deg,#202526,#1d2122 70%,#222627);border-top:1px solid #686953}
.stat{padding:0 clamp(18px,2.4vw,38px);min-width:0}
.stat+.stat{border-left:1px solid #404644}
.stat .label{font-size:11px;margin-bottom:7px}
.stat strong{font:600 24px/1.12 var(--mono);letter-spacing:1px}
.stat strong span{font-size:15px;color:#9fa49c;font-weight:400;letter-spacing:.25px}
.stat.points strong{color:var(--yellow);letter-spacing:1.6px}
.hearts,.ammo-line,.shells{display:flex;align-items:center}
.hearts,.ammo-line{height:27px}
.hearts{gap:7px;color:#f07768}
.hearts svg{width:24px;height:22px;filter:drop-shadow(0 2px 0 #a94b42);shape-rendering:crispEdges}
.hearts svg.empty{color:#494a46;filter:none}
.ammo-line{gap:12px}
.ammo-line strong{font-size:18px}
.ammo-line strong span{font-size:13px;margin-left:2px}
.shells{gap:3px}
.shells i{width:7px;height:18px;display:block;background:linear-gradient(to bottom,#e0bd59 0 66%,#473d2a 66% 74%,#f0d37b 74% 91%,#b18c43 91%);clip-path:polygon(40% 0,70% 3%,94% 21%,94% 86%,100% 86%,100% 100%,0 100%,0 86%,7% 86%,7% 21%);transform:skew(-8deg)}
.shells i.empty{opacity:.2}
.control-strip{display:flex;align-items:center;gap:26px;min-height:75px;margin-top:2px;border-bottom:1px solid #323638}
.control-strip h2{display:flex;align-items:center;gap:9px;font:650 15px DM,Arial,sans-serif}
.control-strip h2 svg{color:#bdc3b9}
.controls{display:flex;align-items:center;gap:24px;color:#b8bdb7;font-size:14px}
.controls span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.mouse-icon{width:17px;height:19px;color:#c5c8bd}
kbd{font:12px/1 var(--mono);min-width:21px;height:21px;display:inline-grid;place-items:center;color:#e3e3d8;background:#292e2f;border:1px solid #505655;border-bottom-width:2px;border-radius:4px;padding:0 4px}
.guide-button{margin-left:auto;display:flex;align-items:center;gap:8px;border:0;background:none;color:#c1c6bd;font:500 14px/1 DM,Arial,sans-serif;padding:12px 0 12px 10px}
.guide-button svg{width:16px;height:16px}
.mobile-controls{display:none}
.wave-alert{pointer-events:none;position:absolute;top:22%;left:50%;transform:translateX(-50%);background:#151b1af0;color:var(--yellow);padding:8px 18px;text-align:center;white-space:nowrap;border:1px solid #dad690a8;font-size:14px;letter-spacing:1.5px}
.overlay{z-index:3;display:grid;place-items:center;background:#0d1516a6;backdrop-filter:blur(3px)}
.result-panel{text-align:center;padding:17px}
.result-panel .mission{justify-content:center}
.result-panel p{font-size:15px;color:#e5e6da}
.text-action{display:block;color:#e3e3d9;border:0;background:none;font-size:14px;text-decoration:underline;text-underline-offset:4px;padding:10px 14px 2px;margin:7px auto 0}
.touch-bar{display:flex;justify-content:flex-end;margin-top:9px}
.touch-bar button{border:1px solid #666a51;border-radius:3px;background:#282e28;display:flex;align-items:center;gap:8px;padding:9px 15px}
.touch-bar svg{width:16px;height:16px}
dialog{width:min(490px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;background:#202525;color:var(--ivory);border:1px solid #636756;border-top:3px solid var(--yellow);border-radius:6px;box-shadow:0 22px 90px #000d}
dialog::backdrop{background:#0c1012c9;backdrop-filter:blur(5px)}
.guide-inner{padding:19px 28px 28px}
.guide-inner header{display:flex;justify-content:space-between;align-items:center}
.guide-inner h2{font:italic 800 43px/1 var(--display);margin:3px 0 13px}
.guide-inner p,.guide-keys dd{color:#c9cec7;line-height:1.55}
.guide-inner h3{font:italic 800 26px/1 var(--display);margin:22px 0 7px}
.guide-keys{margin:17px 0;border-top:1px solid var(--line)}
.guide-keys div{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.guide-keys dt{font-weight:700}
.guide-keys dd{margin:0}
.source-links{display:flex;flex-direction:column;align-items:flex-start;margin-top:12px;gap:5px}
.source-links a{color:var(--yellow);font-size:14px;text-underline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.expanded{height:100dvh;overflow:auto}
body.expanded .mast-inner,body.expanded main{width:calc(100% - 24px)}
body.expanded main{padding-top:10px}
body.expanded .title-row{display:none}
body.expanded .stage{height:calc(100dvh - 245px);min-height:230px;aspect-ratio:auto}
@media(min-width:1700px){main{padding-top:42px}.title-row{margin-bottom:28px}}
@media(max-width:900px){.mast-inner,main{width:calc(100% - 48px)}.mast-inner{height:60px}main{padding-top:25px}.stage{aspect-ratio:2.05}.control-strip{gap:20px}.controls{gap:16px}.stat{padding:0 20px}.stage{--street-pan:59%}.intro{padding:24px}.blaster{width:35%}}
@media(max-width:650px){.mast-inner,main{width:calc(100% - 28px)}.mast-inner{height:54px}.brand{font-size:24px;gap:8px}.brand-icon{width:29px;height:29px}.brand-icon svg{width:21px;height:19px}nav{gap:9px}.utility{font-size:11px;gap:6px}.utility svg{width:16px}.title-row{align-items:flex-end;gap:6px;margin-bottom:15px}main{padding-top:21px}.eyebrow{font-size:10px;gap:7px;letter-spacing:1.3px}.slashes{width:17px;height:8px}h1{font-size:clamp(37px,9vw,59px);letter-spacing:-.7px}.best-box{gap:6px;padding-left:8px;margin-top:0;margin-bottom:1px}.best-box svg{width:16px;height:16px}.best-box .label{font-size:8px;letter-spacing:.5px}.best-box strong{font-size:14px;letter-spacing:.5px}.stage{aspect-ratio:auto;height:clamp(366px,56dvh,480px)}.scene-tags{inset:10px 9px auto;gap:5px}.scene-location,.scene-status{min-height:27px;padding:6px;gap:5px;font-size:9px;letter-spacing:.3px}.scene-location svg{width:12px;height:12px}.blaster{width:56%;min-width:0;right:-8%;bottom:-2%}.intro{padding:19px 16px;background:linear-gradient(0deg,#101817f5,rgba(16,23,21,.83) 16%,rgba(14,22,22,.3) 34%,transparent 55%)}.intro h2{font-size:31px}.intro p{font-size:14px}.mission{font-size:10px;letter-spacing:1.2px}.primary{margin-top:13px;min-height:42px;padding:9px 18px;font-size:20px}.hud{grid-template-columns:1fr 1.22fr .83fr 1fr;padding:12px 0}.stat{padding:0 8px}.stat .label{font-size:8.8px;letter-spacing:.5px;margin-bottom:5px}.stat strong{font-size:17px;letter-spacing:.2px}.stat strong span{font-size:11px}.hearts,.ammo-line{height:20px}.hearts{gap:3px}.hearts svg{width:15px;height:15px}.ammo-line{gap:4px}.ammo-line strong{font-size:13px}.ammo-line strong span{font-size:9px}.shells{gap:1.4px}.shells i{width:4px;height:13px}.stat.points strong{letter-spacing:.5px}.control-strip{gap:12px;min-height:60px}.control-strip h2{font-size:13px;gap:6px}.control-strip h2 svg{width:17px}.desktop-controls{display:none}.mobile-controls{display:flex;font-size:12px}.guide-button{font-size:12px;gap:6px}.guide-inner{padding:12px 20px 22px}.guide-keys div{grid-template-columns:100px 1fr}}
@media(max-width:390px){.best-box svg{display:none}.best-box{padding-left:6px}.scene-status{font-size:8px}.stat{padding:0 6px}.shells{display:none}.mobile-controls{font-size:11px}.control-strip{gap:8px}}
@media(pointer:coarse) and (min-width:651px){.desktop-controls{display:none}.mobile-controls{display:flex}}
@media(orientation:landscape) and (max-height:560px){.mast-inner{height:44px}main{padding:10px 0}.title-row{margin:0 0 10px}.title-row .eyebrow{display:none}h1{font-size:36px}.best-box{margin-top:0}.stage{height:clamp(208px,54dvh,290px);aspect-ratio:auto}.hud{padding:9px 0}.control-strip{min-height:44px}.intro{padding:16px}.intro h2{font-size:30px}.primary{margin-top:10px;min-height:39px}.intro p{font-size:14px}body.expanded .stage{height:calc(100dvh - 123px);min-height:180px}body.expanded .control-strip{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important}}
@media(min-width:901px) and (min-height:561px) and (max-height:820px){
  .mast-inner{height:55px}
  main{padding-top:20px;padding-bottom:9px}
  .title-row{margin-bottom:14px}
  h1{font-size:clamp(58px,5.45vw,78px)}
  .stage{max-height:calc(100dvh - 308px)}
  .hud{padding:13px 0}
  .control-strip{min-height:55px}
  body.expanded .stage{max-height:none}
}

@media(max-width:650px), (orientation:landscape) and (max-width:950px) and (max-height:560px){
  .stage{--blaster-scale:.84}
  .blaster{transform:scale(var(--blaster-scale)) rotate(-3deg);transform-origin:right bottom}
}
