:root{color-scheme:dark;font-family:Courier New,monospace;color:#eef0ff;background:#090d1f;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 35%,#21164155,transparent 60%),#090d1f;min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:700 12px Courier New,monospace;color:#bac5e4;border:1px solid #37405d;background:#151c32;padding:11px 16px;cursor:pointer}button:hover{background:#26304c;color:#fff}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:3px solid #ffcb45;outline-offset:4px}a{color:#a7b4d6;text-decoration:none;font-size:12px}header{max-width:1120px;margin:auto;padding:25px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #242740}.header-actions{display:flex;gap:8px}main{max-width:1008px;margin:40px auto;padding:0 24px}.eyebrow{font-size:10px;letter-spacing:3px;color:#00e5a8}.title-row{display:flex;align-items:center;justify-content:space-between}h1{font-size:52px;letter-spacing:-3px;margin:12px 0 0;font-weight:900;text-shadow:3px 3px #443072}h1 span{color:#00e5a8}h1 i{font-size:25px;color:#9b4dff;margin-left:16px;font-style:normal}.build{font-size:10px;letter-spacing:2px;color:#697798}.subtitle{font:14px/1.6 system-ui,sans-serif;color:#9da8c8;margin:12px 0 28px}.cabinet{border:1px solid #3c365c;box-shadow:0 12px 60px #0005}.hud{height:66px;background:#12182c;display:flex;justify-content:space-between;align-items:center;padding:0 20px}.hud>div:first-child{display:grid;gap:6px}.hud span#level-label{font-size:9px;letter-spacing:2px;color:#9580be}.hud strong{font-size:12px;letter-spacing:1px}.stats{display:flex;align-items:center;gap:22px}.stats>#attempt{font-size:10px;color:#939fbd}.gem-count{color:#00e5a8}.stats button{padding:8px 12px}.progress{height:3px;background:#27233e}#bar{height:100%;background:#00e5a8}.stage{position:relative;aspect-ratio:2;background:#090d1f;overflow:hidden}#canvas{width:100%;height:100%;touch-action:none}canvas{image-rendering:pixelated;display:block!important}#overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:linear-gradient(90deg,#090d1fe8,#15152bd9);padding:12px}#overlay[hidden]{display:none}.panel{text-align:center;max-width:460px}.hero-gem{font-size:54px;color:#00e5a8;text-shadow:5px 5px #06656a,-4px -3px #42d9ff;margin-bottom:16px}h2{font-size:25px;letter-spacing:-1px;margin:0 0 12px}.panel p{font:14px/1.6 system-ui;color:#9da8c8;margin:0 auto 20px;max-width:350px}.primary{display:inline-block;background:#00e5a8;color:#082b2b;border:0;border-bottom:4px solid #00856d;font-size:14px;padding:14px 40px}.primary:hover{background:#65ffd5;color:#082b2b}#menu{margin-left:10px}#results{font-size:12px;color:#ffcb45;margin-bottom:20px}.instructions{background:#12182c;padding:15px 20px;font:12px/1.5 system-ui;color:#9ca7c4}.below{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.level-card{display:flex;gap:18px;align-items:center;border:1px solid #4e3d71;background:#18182d;padding:18px 22px;min-width:320px}.level-card>span:first-child{font-size:27px;color:#77658f}.level-card small{font-size:9px;color:#a592c3;letter-spacing:2px}h3{margin:7px 0;font-size:15px}.level-card p{margin:0;color:#00e5a8;font-size:12px}.level-card b{color:#8998b6;margin-left:12px;font-weight:400}.level-icon{margin-left:auto;color:#9b4dff;font-size:30px}.legend{display:flex;gap:24px;font-size:14px;color:#bec5dd}.legend i{font-style:normal;font-size:20px}.green{color:#00e5a8}.purple{color:#9b4dff}.gold{color:#ffcb45}footer{margin:26px 0;color:#6c7896;font:11px/1.5 system-ui}#canvas:focus{outline:none}#canvas:focus-visible{outline:2px solid #ffcb45;outline-offset:-3px}@media(min-width:1400px){main{max-width:1008px}}@media(max-width:650px){header{padding:16px}main{margin:24px auto;padding:0 12px}h1{font-size:38px}.build{display:none}.subtitle{font-size:12px}.hud{padding:0 12px;height:58px}.stats{gap:12px}#attempt{display:none}.stage{aspect-ratio:auto;height:300px}#canvas{display:grid;align-items:center}.hero-gem{font-size:32px;margin-bottom:12px}h2{font-size:21px}.panel p{font-size:12px;margin-bottom:14px}.primary{padding:12px 25px}.below{align-items:stretch;gap:16px;flex-direction:column}.level-card{min-width:0}.legend{justify-content:center}.instructions{padding:12px;font-size:11px}.header-actions button{font-size:10px;padding:9px 12px}#results{font-size:11px}}@media(max-height:500px)and (orientation:landscape){header,.eyebrow,.title-row,.subtitle,.below,footer{display:none}main{margin:0 auto;max-width:760px}.hud{height:42px}.stage{height:calc(100dvh - 80px);aspect-ratio:auto}.instructions{padding:6px;font-size:10px}.hero-gem{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}.run-info{display:flex;justify-content:space-between;padding:8px 20px;background:#202039;color:#bdb3db;font-size:11px;border-bottom:2px solid #00e5a8}#percent{color:#ffcb45;white-space:nowrap}@media(max-width:650px){.hud{padding:0 8px}.hud strong{font-size:10px;letter-spacing:0}.stats{gap:8px}.stats button{padding:8px}.run-info{font-size:10px;padding:8px 12px}}@media(max-height:500px)and (orientation:landscape){.stage{height:calc(100dvh - 110px)}}.volume-control{display:flex;align-items:center;gap:8px;color:#a7b4d6;font-size:10px}.volume-control input{width:80px;accent-color:#00e5a8}.volume-control span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#audio-status{font-size:12px;color:#ffcb45}#audio-status:empty{display:none}@media(max-width:650px){.volume-control input{width:52px}.header-actions{gap:4px}header{padding:12px 10px}header>a{font-size:10px}}.audio-toolbar{display:flex;align-items:center;gap:16px;padding:8px 16px;background:#161c32;border-top:1px solid #303550}.audio-toolbar button{color:#00e5a8;white-space:nowrap}.audio-toolbar .volume-control{gap:10px}.audio-toolbar .volume-control span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}.audio-toolbar input{width:100px}#audio-hint{font:11px/1.4 system-ui;color:#939fbd}@media(max-width:650px){.audio-toolbar{padding:8px;gap:12px;flex-wrap:wrap}.audio-toolbar button{padding:8px 10px}.audio-toolbar input{width:86px}#audio-hint{width:100%;font-size:10px}}@media(max-height:500px)and (orientation:landscape){.audio-toolbar{padding:4px 10px;flex-wrap:nowrap}.audio-toolbar button{padding:6px 10px}.audio-toolbar #audio-hint{width:auto}.stage{height:calc(100dvh - 150px)}}#overlay{overflow:auto}.panel{max-height:100%;overflow:auto;width:min(100%,460px)}#dash-score-form{margin:12px 0 18px;text-align:left;padding:14px;border:1px solid #4e3d71;background:#12182c}#dash-score-form[hidden]{display:none}#dash-score-form label{display:block;font-size:12px;margin-bottom:8px}#dash-nickname{width:100%;min-height:44px;padding:10px;background:#090d1f;color:#fff;border:1px solid #697798;font:inherit}#dash-score-form small{display:block;font:11px/1.5 system-ui;color:#b8c0d9;margin:10px 0}#dash-score-form button{width:100%;min-height:44px;margin:4px 0}#dash-score-form #dash-save{background:#00e5a8;color:#082b2b}#dash-score-status{font:12px/1.5 system-ui;color:#d3f8e7;margin:8px auto}#dash-score-status:empty{display:none}.embedded,.embedded body,.embedded #app{height:100%;min-height:0;overflow:hidden}.embedded #app>header,.embedded .eyebrow,.embedded .title-row,.embedded .subtitle,.embedded .below,.embedded footer{display:none}.embedded main{height:100%;max-width:none;margin:0;padding:0;display:flex;flex-direction:column}.embedded .cabinet{flex:1;min-height:0;display:flex;flex-direction:column;border:0;box-shadow:none}.embedded .stage{flex:1;min-height:0;height:auto;aspect-ratio:auto}.embedded .hud,.embedded .audio-toolbar,.embedded .run-info,.embedded .instructions{flex:none}.embedded .hud{height:48px}.embedded .audio-toolbar{padding:5px 8px;gap:10px;flex-wrap:nowrap}.embedded #audio-hint{display:none}.embedded .audio-toolbar input{width:70px}.embedded .instructions{padding:7px 10px;font-size:10px}.embedded #audio-status{margin:0;padding:0 10px}.embedded .run-info{padding:6px 10px}.embedded .hud>div:first-child strong{font-size:9px;max-width:115px}.embedded .hero-gem{font-size:36px;margin-bottom:10px}.embedded .panel h2{font-size:21px}.embedded .panel p{font-size:12px;margin-bottom:12px}.embedded .volume-control{gap:6px}.embedded .audio-toolbar button{padding:7px;min-height:38px}@media(max-height:420px){.embedded .hud{height:35px}.embedded .instructions,.embedded .hero-gem{display:none}.embedded .panel{padding:4px}.embedded .panel h2{font-size:18px;margin-bottom:8px}}#prize-receipt{padding:14px;margin:12px 0;border:1px solid #66dfb6;border-radius:8px;background:#142a26;color:#e3fff4;text-align:left}#prize-receipt[hidden]{display:none}#prize-receipt strong,#prize-receipt label{display:block;font:13px/1.5 system-ui;margin:0 0 8px}#prize-receipt input{width:100%;box-sizing:border-box;min-height:44px;font:11px monospace;padding:8px;border:1px solid #547a70;background:#0c1916;color:#effff9;border-radius:4px}#prize-receipt button{min-height:40px;width:100%;margin:8px 0}#prize-receipt p{font:12px/1.6 system-ui;margin:0;color:#cae8dc}
