@import url('/assets/fonts/fonts.css');
:root{color-scheme:dark;--bg:#080a0d;--text:#ecf0f5;--muted:#89929f;--blue:#9fb8d0;--line:#222932}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'Space Grotesk',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #bedaff;outline-offset:5px}header{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5.5%}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--text);font-size:17px;letter-spacing:2px;font-weight:600}.brand img{width:39px;height:39px;object-fit:contain}.sub{display:block;font-size:10px;letter-spacing:2.8px;color:var(--muted);margin-top:5px}.header-right{display:flex;align-items:center;gap:34px}.edition,.eyebrow{font-size:12px;letter-spacing:2px;color:var(--muted)}button#sound,button#pause{background:none;color:#a4b0bd;border:1px solid #323b48;border-radius:4px;padding:10px 13px;font-size:12px;letter-spacing:1px}main{max-width:1130px;margin:36px auto 0;padding:0 32px}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}h1{font:700 clamp(36px,5vw,55px)/1.2 Orbitron,sans-serif;letter-spacing:5px;margin:6px 0 0}.period{color:var(--blue)}.record{text-align:right;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 18px}.record>span{font-size:12px;letter-spacing:1.8px;color:var(--muted)}.record strong{font:500 35px Orbitron,monospace}.record small{font-size:10px;letter-spacing:1.3px;color:#697480;grid-column:1/3}#arena{height:510px;position:relative;border:1px solid #2a3440;border-radius:9px;overflow:hidden;background:#0b0f14;isolation:isolate;touch-action:manipulation}canvas{width:100%;height:100%;display:block}.arena-top,.arena-bottom{position:absolute;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1.6px;color:#8b9aaa;pointer-events:none}.arena-top{top:22px}.arena-bottom{bottom:22px;justify-content:flex-start;gap:25px}.arena-bottom span{display:flex;gap:9px;align-items:center}.arena-bottom span:last-child{margin-left:auto;font-variant-numeric:tabular-nums}.arena-top button{pointer-events:auto;position:absolute;left:50%;transform:translateX(-50%)}.dot{width:7px;height:7px;background:#d8eaff;box-shadow:0 0 9px #aecfff;border-radius:50%}.bar{width:12px;height:3px;background:#ec727b}#overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(ellipse,#0b0f14e8 0%,#0b0f14b0 26%,transparent 62%)}h2{font-weight:500;font-size:clamp(30px,4vw,43px);letter-spacing:-1.5px;margin:13px 0}#overlay p{font-size:16px;line-height:1.75;color:#9aa7b5;margin:0 0 24px}.primary{border:1px solid #a9c4df;background:#a9c4df;color:#101822;font-size:13px;letter-spacing:1.5px;font-weight:700;padding:17px 25px;border-radius:4px;min-width:214px;display:flex;justify-content:space-between;gap:34px;transition:background .2s,transform .2s}.primary:hover{background:#d4e6f6;transform:translateY(-2px)}.start-hint{font-size:12px;color:#738191;margin-top:14px}#hud{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}#hud>span{font-size:11px;letter-spacing:3px;color:#708197}#hud strong{display:block;font:500 54px Orbitron,sans-serif;line-height:1.5}#hud small{font-size:10px;letter-spacing:1.6px;color:var(--blue);white-space:nowrap}.under-game{display:flex;align-items:center;gap:24px;color:#85909e;font-size:13px;padding:7px 0 22px}.under-game p{display:flex;align-items:center;gap:11px}kbd{font:11px 'Space Grotesk',sans-serif;border:1px solid #333c46;border-bottom-width:2px;border-radius:4px;padding:5px 7px;color:#acb7c4}.pause-hint{display:flex;gap:8px;align-items:center}.tag{margin-left:auto;font-size:10px;letter-spacing:1.5px}footer{max-width:1066px;margin:3px auto 24px;border-top:1px solid var(--line);padding-top:22px;display:flex;justify-content:space-between;color:#64717e;font-size:10px;letter-spacing:1.4px}footer a{color:#9aa8b8;text-decoration:none}[hidden]{display:none!important}@media(max-width:650px){header{height:78px;padding:0 22px}.edition{display:none}.brand{font-size:14px}.brand img{width:32px;height:32px}.sub{font-size:9px}main{padding:0 16px;margin-top:25px}.eyebrow{font-size:10px;letter-spacing:1.4px}.record{display:flex;flex-direction:column;gap:5px}.record strong{font-size:26px}.record>span{font-size:10px}.record small{font-size:8px}.game-heading{margin-bottom:20px}#arena{height:min(530px,62svh);min-height:380px}.arena-top,.arena-bottom{left:17px;right:17px;font-size:9px}.tag{display:none}.under-game{gap:12px;justify-content:space-between;font-size:11px}.under-game p{gap:6px}.pause-hint{display:none}footer{margin:0 18px 24px;font-size:9px;gap:16px;line-height:1.6}footer>span:last-child{text-align:right}#hud strong{font-size:42px}}
@media(max-height:650px) and (min-width:651px){header{height:66px}main{margin-top:18px}.game-heading{margin-bottom:16px}#arena{height:380px}footer{margin-bottom:12px}}
/* Survival progression */
#notice{position:absolute;left:50%;top:74px;transform:translateX(-50%);color:#d1e6fa;font-size:13px;letter-spacing:1px;text-align:center;pointer-events:none;white-space:nowrap;background:#101b27ed;border:1px solid #3b536a;border-radius:4px;padding:10px 15px;z-index:2}#goalPanel{padding:18px 0 4px}.goal-copy,.rank-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:1.4px;color:#a5b9cb}.rank-row{font-size:11px;margin-top:9px;color:#8295a8}#personalRank{color:#b9d8ef}progress{display:block;width:100%;height:4px;border:0;background:#1d2834;margin-top:10px;border-radius:3px;overflow:hidden}progress::-webkit-progress-bar{background:#1d2834}progress::-webkit-progress-value{background:#a9c4df}progress::-moz-progress-bar{background:#a9c4df}#runStats{display:flex;gap:30px;margin:0 0 20px}#runStats>div{display:flex;flex-direction:column;gap:5px}#runStats strong{font-size:22px;font-weight:500;color:#c8ddf0}#runStats span{font-size:10px;letter-spacing:1px;color:#91a0b1}#overlayText{max-width:370px;padding:0 15px}#overlay h2{margin:10px 0}#overlay p{margin-bottom:18px}#hud small{font-size:11px;letter-spacing:.5px}.record small{font-size:11px}.sub{font-size:11px}.tag{font-size:12px;letter-spacing:.3px}@media(max-width:650px){#runStats{gap:23px;margin-bottom:17px}#runStats strong{font-size:20px}#notice{top:58px;font-size:11px;padding:8px 10px}#overlay .eyebrow{font-size:11px}#overlayText{font-size:14px;max-width:310px}.start-hint{font-size:11px}.record small{font-size:9px}#goalPanel{padding-top:14px}#hud strong{font-size:38px}#hud small{font-size:10px}#overlay{background:radial-gradient(ellipse,#0b0f14f5 0%,#0b0f14dd 35%,#0b0f1444 74%)}.sub{font-size:9px}}

/* The website supplies its own navigation and footer when embedded. */
body.embedded{display:flow-root}
.embedded header{height:54px;padding:0 26px;justify-content:flex-end}
.embedded .brand,.embedded .edition,.embedded footer{display:none}
.embedded main{max-width:none;margin:24px auto 0;padding:0 26px}
@media(max-width:650px){.embedded header{padding:0 16px}.embedded main{padding:0 16px;margin-top:20px}}
/* Readable secondary text and touch controls at every viewport size. */
:root{--muted:#a5b1bf}
.record small,.start-hint,.arena-top,.arena-bottom,.rank-row,.under-game{color:#a5b1bf}
.record small,.eyebrow,.arena-top,.arena-bottom,.start-hint,.under-game,.rank-row{font-size:max(11px,.72rem)}
button#sound,button#pause{min-height:44px;color:#c2d2e2}
#sound,#pause{transition:background 180ms ease,border-color 180ms ease}
#sound:hover,#pause:hover{background:#182736;border-color:#8ba8c4}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}.primary:hover{transform:none}}
