:root{--ink:#11110f;--paper:#f0eee6;--acid:#baff00;--purple:#7759ff;--red:#ff735f}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:var(--runner-app-height,100dvh);min-height:0;overflow:hidden;background:#090908;color:var(--paper);font-family:Arial,Helvetica,sans-serif}
body{display:grid;place-items:center;padding:10px 12px}.game-shell{width:min(100%,590px);height:100%;max-height:900px;border:1px solid #535149;background:#090908;box-shadow:10px 10px 0 var(--purple);display:grid;grid-template-rows:58px 66px minmax(0,1fr) auto;overflow:hidden}
header{height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #34332f;font-size:11px;letter-spacing:.08em}header>div{display:flex;align-items:center;gap:10px}.mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--acid);color:var(--ink);font-weight:900;font-size:9px}.version{color:#77746c;font:9px monospace}.header-actions{display:flex;align-items:center;gap:8px}.fullscreen,.sound,.music{border:1px solid #57554e;background:#171715;color:var(--acid);padding:7px 9px;font:8px monospace;letter-spacing:.06em;cursor:pointer}.fullscreen:hover,.sound:hover,.music:hover{border-color:var(--acid);background:#22221f}.sound.muted,.music.muted{color:#aaa59b;border-color:#3f3d37}
.hud{height:66px;display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid #47453f}.hud>div{padding:12px 10px;border-right:1px solid #34332f;display:flex;flex-direction:column;gap:4px;min-width:0}.hud>div:last-child{border:0}.hud small{font:8px monospace;color:#77746c;letter-spacing:.12em}.hud strong{font:700 13px monospace;color:var(--acid);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.canvas-wrap{position:relative;line-height:0;overflow:hidden;background:#090908;min-height:0;display:grid;place-items:center}canvas{display:block;width:auto;height:100%;max-width:100%;max-height:100%;aspect-ratio:430/650;object-fit:contain;touch-action:none;cursor:move}.stage-alert{position:absolute;z-index:2;left:50%;top:25%;transform:translate(-50%,-18px) scale(.94);opacity:0;pointer-events:none;min-width:220px;padding:10px 14px;border:1px solid var(--acid);background:rgba(12,11,11,.86);color:#fff;text-align:center;font:900 13px monospace;letter-spacing:.1em;line-height:1.35;text-shadow:0 0 12px var(--acid)}.stage-alert.show{animation:stage-alert 1.7s ease both}.stage-alert.final{border-color:#ffd85d;text-shadow:0 0 14px #ffd85d}.overlay{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:rgba(12,11,11,.72);backdrop-filter:blur(3px);line-height:normal}.overlay>span{font:10px monospace;letter-spacing:.16em;color:var(--acid)}.overlay h1{font-size:clamp(34px,8vw,64px);line-height:.86;letter-spacing:-.06em;margin:16px 0;color:white}.overlay p{font-size:11px;color:#c2bfb5;max-width:410px;margin:0 20px 16px;line-height:1.5}.overlay button{border:1px solid var(--acid);background:var(--acid);color:var(--ink);padding:14px 22px;font:900 12px Arial;letter-spacing:.05em;cursor:pointer}.overlay button:hover{background:white;border-color:white}.overlay.hidden{display:none}.summary{width:min(86%,390px);display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin:0 0 18px;background:#4a4842;border:1px solid #4a4842;text-align:left}.summary.hidden{display:none}.summary div{padding:9px 11px;background:rgba(15,15,14,.94);display:flex;flex-direction:column;gap:3px}.summary small{font:7px monospace;letter-spacing:.12em;color:#817d74}.summary strong{font:900 13px monospace;color:#fff}.summary strong em{font-style:normal;color:var(--acid)}@keyframes stage-alert{0%{opacity:0;transform:translate(-50%,-18px) scale(.94)}16%,78%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,12px) scale(1.03)}}
footer{min-height:54px;padding:10px 14px;display:flex;align-items:center;gap:10px;border-top:1px solid #34332f;font-size:9px}footer span{border:1px solid #57554e;padding:5px 7px;font:9px monospace;color:var(--acid)}footer p{color:#77746c;margin:0}footer b{margin-left:auto;color:#77746c;font-weight:500;text-align:right}
.game-shell:fullscreen,.game-shell.local-immersive,.game-shell.host-immersive{width:100%;height:100%;max-width:none;max-height:none;border:0;box-shadow:none;grid-template-rows:58px 66px minmax(0,1fr) auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.game-shell:fullscreen .canvas-wrap,.game-shell.local-immersive .canvas-wrap,.game-shell.host-immersive .canvas-wrap{min-height:0;width:100%;background:#090908}.game-shell:fullscreen canvas,.game-shell.local-immersive canvas,.game-shell.host-immersive canvas{width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-shell:fullscreen .overlay,.game-shell.local-immersive .overlay,.game-shell.host-immersive .overlay{inset:0;transform:none}
@media(max-width:520px){body{padding:0}.game-shell{border-left:0;border-right:0;width:100%;max-height:none;box-shadow:none;grid-template-rows:48px 58px minmax(0,1fr) auto}header{height:48px}.header-actions{gap:4px}.version{display:none}.fullscreen,.sound,.music{padding:6px 6px;font-size:7px}.hud{height:58px}.hud>div{padding:9px 4px}.hud strong{font-size:9px}.hud small{font-size:6px}.overlay p{display:none}.overlay h1{margin:10px 0 13px}.overlay button{padding:12px 18px}.summary{margin-bottom:13px}.summary div{padding:7px 9px}.summary strong{font-size:11px}footer{flex-wrap:wrap;min-height:50px}footer b{width:100%;margin:0;text-align:left}.game-shell:fullscreen,.game-shell.local-immersive,.game-shell.host-immersive{grid-template-rows:42px 48px minmax(0,1fr) 0}.game-shell:fullscreen header,.game-shell.local-immersive header,.game-shell.host-immersive header{height:42px;padding:0 9px}.game-shell:fullscreen .mark,.game-shell.local-immersive .mark,.game-shell.host-immersive .mark{width:27px;height:27px}.game-shell:fullscreen .hud,.game-shell.local-immersive .hud,.game-shell.host-immersive .hud{height:48px}.game-shell:fullscreen .hud>div,.game-shell.local-immersive .hud>div,.game-shell.host-immersive .hud>div{padding:7px 4px}.game-shell:fullscreen footer,.game-shell.local-immersive footer,.game-shell.host-immersive footer{display:none}}
