:root{color-scheme:dark;--bg:#080e19;--panel:#0d1726;--line:#253345;--muted:#8192a4;--ink:#eaf4ff;--teal:#62efdb;--gold:#ffbd73;--purple:#a59cff}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px}body{overflow-x:hidden}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 31px;border-bottom:1px solid #243044;background:#0a1420}.brand{display:flex;align-items:center;gap:14px}.brand-icon{width:39px;height:39px;border:1px solid #326b68;background:linear-gradient(135deg,#123b40,#112634);border-radius:9px;display:grid;place-items:center;color:var(--teal);font-weight:900;font-size:24px;font-style:italic;box-shadow:0 0 25px #20e4ba10}.brand-title{font-weight:790;letter-spacing:2.4px;font-size:17px}.brand-title small{color:var(--teal);font-size:12px;letter-spacing:1px}.brand-sub{font-size:9px;letter-spacing:2.4px;color:#7897a9;margin-top:4px;font-weight:750}.top-right{display:flex;gap:25px;align-items:center}.top-meta,.version{font-size:10px;font-weight:740;letter-spacing:1.45px;color:#8ea2b4}.pulse{width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--teal);box-shadow:0 0 10px var(--teal);margin-right:7px}.top-sep{padding:0 8px;color:#466077}.version{padding-left:24px;border-left:1px solid #25374a;color:#516c7e}.body-layout{flex:1;display:grid;grid-template-columns:306px minmax(0,1fr);min-height:0}.sidebar{padding:29px 25px 23px;border-right:1px solid #243447;background:linear-gradient(155deg,#0d1a2a 0%,#0b1422 62%,#0a1220 100%)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:760;color:#66d6c8}.sidebar h1{font-size:35px;line-height:1.12;letter-spacing:-1.5px;margin:16px 0 15px;font-weight:790}.sidebar h1 em{font-style:normal;color:var(--teal)}.intro{font-size:12px;line-height:1.8;color:#92a3b8;max-width:255px;margin:0 0 29px}.section-h{display:flex;align-items:center;justify-content:space-between;margin:23px 0 18px;padding-bottom:11px;border-bottom:1px solid #27394a;color:#aabaca;font-size:10px;font-weight:800;letter-spacing:1.55px}.section-h span:last-child{color:#4c7082}.input-block{margin:0 0 17px}.input-block label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#becbd8;font-weight:580}.input-block output{color:var(--teal);font-size:11px;white-space:nowrap;font-weight:790;font-variant-numeric:tabular-nums}.input-block input[type=range]{appearance:none;width:100%;height:4px;outline:none;border-radius:10px;background:linear-gradient(to right,var(--teal) 0%,var(--teal) var(--filled,50%),#304258 var(--filled,50%),#304258 100%);margin:14px 0 4px;cursor:pointer}.input-block input[type=range]::-webkit-slider-thumb{appearance:none;background:#e7fff8;width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 4px #59dcc31e;cursor:grab}.input-block input[type=range]::-moz-range-thumb{border:0;background:#e7fff8;width:12px;height:12px;border-radius:50%;cursor:grab}.input-block select{width:100%;background:#122436;border:1px solid #2b4554;color:#9eafc1;font-size:11px;height:34px;border-radius:5px;padding:0 8px;margin-top:10px}.buttons{display:flex;gap:8px;margin-top:25px}.buttons button{border:0;border-radius:6px;font-size:11px;letter-spacing:1px;font-weight:850;cursor:pointer;height:43px}.buttons .primary{flex:1;background:var(--teal);color:#09252e;box-shadow:0 3px 18px #4bd5c028}.buttons .primary:hover{background:#a0f7e9}.buttons .secondary{width:47px;border:1px solid #365362;background:#162b3d;color:#d6e6f2;font-size:21px}.buttons .secondary:hover,.ghost:hover{border-color:var(--teal)}.ghost{display:flex;justify-content:space-between;width:100%;border:1px solid #2b4052;border-radius:6px;background:#0d1c2b;color:#96b0c2;letter-spacing:1.2px;font-weight:750;font-size:10px;padding:13px;margin-top:11px;cursor:pointer}.keyboard{border-top:1px solid #263748;padding-top:23px;margin-top:27px;color:#59758c;font-size:9px;letter-spacing:1.2px;line-height:2.2;font-weight:760}.keyboard span{color:var(--teal);margin:0 5px}.content{padding:17px;display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0}.stage{position:relative;flex:1;min-height:475px;overflow:hidden;border:1px solid #244153;border-radius:7px;background:radial-gradient(ellipse at 47% 42%,#18314a,#081326 72%)}#sim-canvas{display:block;width:100%;height:100%;min-height:475px;cursor:grab;position:absolute;inset:0}#sim-canvas:active{cursor:grabbing}.stage-gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#071525d6,transparent 23%,transparent 75%,#071323bb),linear-gradient(90deg,#07152530,transparent 20%)}.stage-top,.stage-bottom{position:absolute;left:28px;right:27px;display:flex;justify-content:space-between;pointer-events:none}.stage-top{top:24px;align-items:flex-start}.stage-title{font-size:19px;font-weight:750;margin-top:7px;letter-spacing:-.3px}.tag{background:#173c44;border:1px solid #286b70;color:#77e8da;font-size:10px;letter-spacing:1px;border-radius:4px;padding:3px 6px;margin-left:9px;vertical-align:3px}.timer-wrap{text-align:right}.timer-label{font-size:9px;letter-spacing:1.8px;color:#8ba7b7;font-weight:800}.timer{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.4px;margin-top:4px}.timer small{font-size:13px;color:var(--teal);margin-left:5px}.stage-bottom{bottom:19px;align-items:center}.stage-legend{display:flex;gap:22px}.stage-legend span{font-size:10px;letter-spacing:.9px;color:#b0c2cf;font-weight:750}.stage-legend b{width:7px;height:7px;display:inline-block;border-radius:50%;margin-right:5px}.scene-note{font-size:9px;color:#698394;font-weight:760;letter-spacing:1.1px}.float-label{position:absolute;top:50%;left:50%;padding:7px 11px;transform:translate(-50%,-100%);background:#0b1a29e8;border:1px solid #365565;border-radius:5px;pointer-events:none;white-space:nowrap;color:#dcecf4;font-size:10px;letter-spacing:1px;font-weight:800;box-shadow:0 10px 30px #0005;display:none}.float-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.fallback{position:absolute;inset:18% 18%;display:grid;place-items:center;text-align:center;background:#071828f0;border:1px solid #4d7284;border-radius:8px;padding:30px;color:#fda8a8}.lower{display:grid;grid-template-columns:minmax(320px,1fr) minmax(300px,1fr);gap:16px;min-height:276px}.results,.chart-panel{background:#0c1726;border:1px solid #223749;border-radius:7px;padding:20px 24px}.panel-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.panel-top h2{font-size:17px;font-weight:760;letter-spacing:-.2px;margin:7px 0 0}.status{font-size:9px;letter-spacing:1px;color:#aab9c5;background:#172736;border:1px solid #2a4557;border-radius:4px;padding:7px 9px;white-space:nowrap;font-weight:800}.status-dot{display:inline-block;width:5px;height:5px;background:#7c94a2;border-radius:50%;margin-right:5px}.result-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #223446;min-height:53px}.result-name{display:flex;align-items:center;gap:11px}.result-name i{display:inline-block;height:25px;width:3px;border-radius:2px}.result-name strong{display:block;color:#dfebf4;font-size:12px;font-weight:730}.result-name small{display:block;color:#72899d;font-size:10px;margin-top:4px}.result-detail{display:flex;gap:24px;align-items:center;font-variant-numeric:tabular-nums}.result-detail span{color:#7995a9;font-size:11px}.result-detail strong{font-size:16px;font-weight:700;min-width:76px;text-align:right}.winner{margin-top:9px;padding:12px 13px;border-left:2px solid #4cdac7;background:#1130335f;color:#a3c2c7;font-size:11px;line-height:1.5}.chart-unit{color:#71899c;font-size:10px;letter-spacing:.4px;margin-top:20px}#chart{width:100%;height:163px;display:block}.chart-foot{display:flex;justify-content:space-between;margin-left:31px;margin-top:2px;color:#5b7285;font-size:10px;font-variant-numeric:tabular-nums}.footer{height:35px;border-top:1px solid #203042;display:flex;align-items:center;justify-content:space-between;padding:0 30px;font-size:9px;letter-spacing:1.4px;color:#557288;font-weight:750}.footer b{color:var(--teal);padding:0 5px}
@media (max-width:1170px){.body-layout{grid-template-columns:270px minmax(0,1fr)}.sidebar{padding:24px 20px}.topbar{padding:0 20px}.scene-note{display:none}.lower{grid-template-columns:1fr;min-height:0}.stage{min-height:470px}.content{padding:12px}}
@media (max-width:770px){.body-layout{display:flex;flex-direction:column}.sidebar{order:2;border-right:0;border-top:1px solid var(--line)}.content{order:1}.top-meta{display:none}.topbar{height:67px}.version{border:0;padding:0}.stage{min-height:400px}#sim-canvas{min-height:400px}.stage-top,.stage-bottom{left:16px;right:16px}.stage-top{top:15px}.stage-title{font-size:15px}.timer{font-size:23px}.timer-label{font-size:8px}.stage-legend{gap:8px}.stage-legend span{font-size:8px}.lower{grid-template-columns:1fr}.footer{font-size:8px;padding:0 13px}.footer span:last-child{display:none}.sidebar h1{font-size:27px}.intro{max-width:none}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.sidebar>h1,.sidebar>.intro,.sidebar>.eyebrow,.sidebar>.section-h,.sidebar>.buttons,.sidebar>.ghost,.sidebar>.keyboard{grid-column:1/-1}.sidebar>.section-h{margin-top:18px}.sidebar>.buttons{margin-top:14px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
