:root{color-scheme:dark;--bg:#0e111a;--gold:#f4c56c;--gold2:#fff0ac;--ink:#17131b;--line:#4c3f43;--panel:#1a1d28;--text:#faf5e8;--muted:#b9b0b2}
*{box-sizing:border-box}html{background:#100b11}body{margin:0;padding:0 10px 22px;background:radial-gradient(ellipse at 75% -20%,#5c3226,#150f18 51%,#0b1119);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.shell{max-width:1130px;margin:auto}
header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:76px;border-bottom:1px solid #473737}
.brand{font-weight:1000;font-size:24px;letter-spacing:.06em;color:var(--gold2);line-height:1}.brand span{color:#fff}.brand small{display:block;font-size:10px;color:#a89b9e;letter-spacing:.12em;margin-top:8px}
.return{color:#f9de9f;text-decoration:none;border:1px solid #816b5c;border-radius:10px;padding:10px 15px;font-weight:800;font-size:12px;white-space:nowrap}.return:hover{background:#3b2f30}
.heading{display:flex;justify-content:space-between;align-items:center;padding:24px 4px 18px;gap:15px}.eyebrow{font-size:10px;color:var(--gold);font-weight:900;letter-spacing:.13em}.heading h1{font-size:clamp(28px,4vw,47px);letter-spacing:-.05em;line-height:1.08;margin:7px 0 8px}.heading em{font-style:normal;color:var(--gold)}.heading p{color:#bdb6bb;max-width:670px;margin:0;font-size:13px}.heading-icon{font-size:44px}
.panel,.results,.rankings{border:1px solid #53434c;border-radius:17px;background:#151823;box-shadow:0 17px 45px #05050791;overflow:hidden}
.status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:11px;background:#1c1a25}.status div{text-align:center;background:#111620;border:1px solid #433f48;border-radius:10px;padding:7px 5px}.status small{display:block;color:#a5a0a7;font-size:9px;letter-spacing:.08em;font-weight:900}.status b{font-size:clamp(14px,2vw,22px);color:#f3d08d;font-variant-numeric:tabular-nums}.hud-unit{font-size:12px;color:#c9a49c}
.screen{position:relative;border-top:2px solid #574449;border-bottom:2px solid #574449;background:#111;overflow:hidden}.screen canvas{display:block;width:100%;aspect-ratio:16/9;object-fit:fill;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;image-rendering:auto}
.start-overlay{position:absolute;inset:0;display:flex;align-items:end;justify-content:center;overflow:hidden;background:#08090d}
.cover-art{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;pointer-events:none}
.start-overlay:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#090b14f5 0%,#090b14c9 24%,transparent 64%);pointer-events:none}
.start-content{z-index:2;position:relative;text-align:center;padding:18px;max-width:680px;filter:drop-shadow(0 4px 6px #000)}.start-label{font-size:11px;color:#f9ce8c;letter-spacing:.14em;font-weight:900}.start-content h2{font-size:clamp(23px,5vw,43px);line-height:1.02;margin:5px 0;color:#ffe6a1;text-shadow:0 3px #8e3523}.start-content p{font-size:clamp(11px,2vw,14px);line-height:1.4;margin:0 auto 11px;color:#f4e7df;max-width:570px}
.big-start{border:2px solid #ffebb5;border-radius:12px;padding:11px 20px;background:linear-gradient(135deg,#ffe39c,#f3a54d);box-shadow:0 5px #6a4120;font-weight:1000;color:#221b18;min-height:43px}.big-start:hover{filter:brightness(1.13)}.big-start:active{transform:translateY(2px);box-shadow:0 3px #6a4120}.overlay-tip{font-size:10px;color:#d8c9c2;margin-top:11px}
.pause-layer{position:absolute;inset:0;background:#0d111fd9;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:3}.pause-layer h2{font-size:35px;color:#f5ca8c;margin:0}.pause-layer p{color:#e8d6c8}
.toast{position:absolute;left:50%;top:17%;transform:translateX(-50%);max-width:88%;text-align:center;background:#241925e8;border:2px solid #eeb26b;border-radius:12px;padding:9px 16px;white-space:nowrap;font-size:clamp(12px,2vw,17px);font-weight:950;color:#fff0aa;z-index:4;box-shadow:0 6px 25px #0007}
.play-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 15px;background:#1e202a}.play-controls button{touch-action:none;user-select:none;-webkit-user-select:none;min-height:46px;border:1px solid #9b7970;background:#33262d;color:#fff1dc;font-weight:900;border-radius:10px}.play-controls button.held{background:#8f5d32;border-color:#f2cf88;transform:scale(.97)}
.move-pad{display:grid;justify-items:center;gap:3px;min-width:170px}.move-pad>button{width:52px}.move-pad div{display:flex;gap:4px}.move-pad div button{width:52px}.control-help{flex:1;color:#ab9e9e;font-size:11px;text-align:center}.control-help span{font-size:10px;color:#88848a}
.aim-controls{display:flex;gap:6px}.aim-controls button{width:59px;font-size:21px}.fire-btn{background:linear-gradient(135deg,#bb4132,#8d2d29)!important;border-color:#e98d5e!important;min-width:95px;font-size:16px}.reload-btn{min-width:81px;font-size:11px}
.game-foot{padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#b9aaad;font-size:12px}.game-foot>div{display:flex;gap:8px}.secondary{background:#272936;color:#f5d6a5;border:1px solid #705a5b;border-radius:9px;padding:8px 12px;font-weight:800;font-size:12px}.secondary:hover{background:#39323a}
.results{padding:20px;margin-top:16px}.results h2,.rankings h2{font-size:22px;margin:2px 0 7px;color:#f6d38e}.results p,.rankings p{color:#bab1b6;font-size:13px}.results form{display:grid;grid-template-columns:minmax(0,1fr) 155px auto;gap:10px;align-items:end;margin:13px 0}.results label{display:grid;gap:5px;font-weight:800;font-size:11px}.results input,.results select{width:100%;min-width:0;background:#0b1220;border:1px solid #746666;border-radius:9px;padding:9px 11px;color:#f5f4ef;min-height:43px}.results small{color:#958c91}#score-message{min-height:20px;color:#e6c88f}
.rankings{padding:20px;margin-top:17px}.rankings-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.leader-row{display:grid;grid-template-columns:38px minmax(0,1fr) 95px 100px;align-items:center;gap:12px;padding:12px 10px;border:1px solid #493a43;border-radius:10px;margin:6px 0;background:#221f2b}.leader-row:first-child{border-color:#977445;background:#352b28}.leader-row strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.leader-row b:last-child{text-align:right;color:#ffd383}.leader-row small{color:#bdb5b9}.empty{padding:25px;text-align:center}
footer{text-align:center;color:#988c93;font-size:11px;padding:20px 0}
@media(max-width:710px){.heading-icon,.control-help{display:none}.heading{padding:17px 3px}.play-controls{gap:6px;padding:8px}.move-pad{min-width:138px}.move-pad>button,.move-pad div button{width:43px;min-height:42px}.aim-controls button{width:40px;min-height:45px}.fire-btn{min-width:77px;font-size:12px}.reload-btn{min-width:61px;font-size:10px}.results form{grid-template-columns:1fr 1fr}.results form button{grid-column:1/-1}.leader-row{grid-template-columns:26px minmax(0,1fr) 65px 75px;gap:5px;padding:10px 5px;font-size:12px}.status{gap:3px;padding:6px}.status div{padding:5px 1px}.status small{font-size:8px}}
@media(max-width:420px){.brand{font-size:18px}.brand small{font-size:8px}.return{padding:8px;font-size:10px}.heading h1{font-size:30px}.screen canvas{aspect-ratio:16/11}.start-content{padding:5px 7px 10px}.start-content h2{font-size:22px}.start-content p{font-size:10px;margin-bottom:6px}.start-label,.overlay-tip{font-size:9px}.move-pad{min-width:114px}.move-pad>button,.move-pad div button{width:35px;min-height:41px}.aim-controls{gap:3px}.aim-controls button{width:32px;padding:2px}.fire-btn{min-width:68px}.reload-btn{min-width:51px}.play-controls{gap:4px;padding:6px 4px}.game-foot{padding:9px;font-size:10px}}
