:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#e8f4f6;background:#05111c;font-synthesis:none;color-scheme:dark;--line:#1c3545;--muted:#8199a8;--text:#e9f4f6;--accent:#54e5c2;--gold:#ffbd68}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 30% -8%,#153142 0,transparent 40%),#06121e}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.app{max-width:1790px;margin:auto;padding:0 30px}.topbar{min-height:95px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:22px}.identity,.top-actions,.deck,.section-top,.panel-top,.slider-row,.range-labels,.group-header,.event-actions,.trace-head,.legend,.trace-foot,.footer{display:flex;align-items:center;justify-content:space-between;gap:13px}.identity{justify-content:flex-start}.brand-icon{width:47px;height:47px;border:1px solid #225447;border-radius:13px;color:var(--accent);padding:8px;background:#0c302b}.brand-icon svg{width:100%;height:100%}.eyebrow,.section-kicker,.deck-index,.live-label,.canvas-corner,.hud-label{font-size:10px;letter-spacing:.16em;font-weight:750;color:var(--accent)}h1,h2,h3{margin:0;font-weight:650;letter-spacing:-.035em}h1{font-size:25px;letter-spacing:.02em}h2{font-size:19px;margin-top:7px}h3{font-size:12px;letter-spacing:.04em;text-transform:uppercase}.title-secondary{color:#91acb8;font-weight:400}.top-actions{justify-content:flex-end;flex-wrap:wrap}.status{font-size:10px;letter-spacing:.11em;color:#a2c2c5;white-space:nowrap}.status i,.tiny-dot{display:inline-block;width:7px;height:7px;background:var(--accent);box-shadow:0 0 15px var(--accent);border-radius:50%;margin-right:8px}.btn{border-radius:7px;padding:11px 15px;border:1px solid transparent;background:#152c3c;color:#d5e7ee;font-size:12px;font-weight:600;transition:filter .18s,border-color .18s;white-space:nowrap}.btn:hover{filter:brightness(1.17);border-color:#436f79}.btn.primary{background:var(--accent);color:#042a2a}.btn.secondary{border-color:#34505b;background:#102433}.btn.danger{border-color:#75414b;background:#2b1724;color:#f4b4ba;width:100%;padding:8px}.deck{min-height:61px;justify-content:flex-start;border-bottom:1px solid var(--line);gap:23px}.deck-index{color:#91dfd2;white-space:nowrap}.deck-desc{font-size:12px;color:#9eb3c2;flex:1}.live-label{color:#6c879b;white-space:nowrap}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 355px;gap:18px;margin-top:18px}.visual-panel,.controls-panel,.trace-panel{border:1px solid var(--line);border-radius:11px;background:linear-gradient(145deg,#102331,#0b1b28 65%);box-shadow:0 20px 50px #0002;min-width:0}.section-top,.panel-top{padding:20px 23px;min-height:87px}.view-tag,.pill{font-size:10px;color:#a2bfc7;padding:8px 11px;border:1px solid #264858;border-radius:6px;background:#0b2433;white-space:nowrap}.pill{color:var(--accent)}.render-shell{position:relative;height:525px;background:radial-gradient(ellipse at 48% 50%,#132e3d,#071420 75%);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden}#world3d{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#world3d:active{cursor:grabbing}.canvas-corner{position:absolute;pointer-events:none;font-size:9px;color:#b4d0d3;top:18px}.canvas-corner.top-left{left:22px}.canvas-corner.top-right{right:22px;color:#667f92}.canvas-hud{position:absolute;left:21px;bottom:20px;width:225px;border:1px solid #234c56;background:#081c29e9;padding:14px 16px;border-radius:7px;pointer-events:none}.hud-label{display:flex;justify-content:space-between;color:#8cacb9;font-size:9px}.hud-label span{color:var(--accent)}.progress-track{background:#193849;height:5px;margin:13px 0 9px;border-radius:9px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#1d8ba0,#68f7cb);height:100%;width:0%;transition:width .07s}.hud-bottom{display:flex;justify-content:space-between;font-size:10px;color:#96d5d0;font-variant-numeric:tabular-nums}.hud-bottom span:last-child{color:#7895a2;font-size:9px}.webgl-error{position:absolute;inset:10%;background:#211925e9;border:1px solid #b36464;border-radius:10px;color:#fff3ef;padding:28px;line-height:1.7}.metrics-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:101px}.metric{padding:25px 21px;border-right:1px solid var(--line);min-width:0}.metric:last-child{border:0}.metric span,.trace-stat-stack span{display:block;color:#829aaa;font-size:11px}.metric strong{display:block;font-size:23px;letter-spacing:-.03em;font-weight:560;margin-top:10px;font-variant-numeric:tabular-nums}.controls-panel{display:flex;flex-direction:column}.panel-top{border-bottom:1px solid var(--line)}.scroll-controls{overflow-y:auto;max-height:620px;scrollbar-color:#305368 #081927;scrollbar-width:thin}.control-group{padding:21px 21px 22px;border-bottom:1px solid var(--line)}.group-header{margin-bottom:20px}.slider-item{display:block;margin:15px 0 19px}.slider-row{font-size:12px;color:#beced4}.slider-row output{color:#67e3c6;font-weight:690;font-variant-numeric:tabular-nums}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:5px;background:#284455;border-radius:8px;outline:none;margin:17px 0 7px;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:#70edcc;border:3px solid #0d3740;box-shadow:0 0 0 1px #67cbbb}input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#70edcc;border:3px solid #0d3740}.range-labels{font-size:10px;color:#70889a}.text-btn{background:none;color:var(--accent);border:0;font-size:11px;font-weight:650}.select-label{font-size:11px;color:#91aaba;display:block;margin:15px 0 7px}select{width:100%;border:1px solid #2c4a58;background:#0d2130;color:#dbe9ed;border-radius:6px;padding:10px 9px;font-size:12px;outline:none}select:focus{border-color:var(--accent)}.event-actions{align-items:center}.event-actions .btn{flex:1}.event-actions span{color:#7894a1;font-size:10px;white-space:nowrap}.event-list{margin-top:18px;display:grid;gap:7px}.event-card{display:flex;align-items:center;gap:9px;background:#0a1c2a;border:1px solid #203747;border-radius:7px;padding:9px 11px;text-align:left;color:#bed2d9;font-size:11px;width:100%}.event-card.active{border-color:#48a79d;background:#0c292d}.event-card .event-dot{width:7px;height:7px;border-radius:50%;background:#ffbc62;flex:0 0 auto}.event-card .event-dot.bend{background:#5796f2}.event-card .event-dot.splice{background:#57e7c4}.event-card .event-dot.break{background:#ff6568}.event-card strong{margin-left:auto;font-variant-numeric:tabular-nums;font-size:11px;color:#dcebed}.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.scenario-grid button{background:#122e39;border:1px solid #315060;border-radius:6px;color:#bdd3d9;font-size:11px;padding:9px 4px}.scenario-grid button:hover{border-color:var(--accent)}.subtle-note{color:#708f9e;font-size:11px;line-height:1.55;margin:15px 0 0}.control-footer{display:flex;gap:8px;padding:16px 20px;border-top:1px solid var(--line);margin-top:auto}.play-btn{background:#154f47;flex:1;color:#aefff0;border-color:#247e6e}.trace-panel{margin:18px 0 24px;overflow:hidden}.trace-head{padding:21px 24px 18px}.legend{justify-content:flex-end;flex-wrap:wrap;font-size:10px;color:#9bb0bf}.line{width:17px;height:3px;background:var(--accent);display:inline-block;vertical-align:middle;margin-right:5px;border-radius:3px}.line.gold{background:var(--gold)}.line.gray{background:#697988}.trace-layout{border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) 210px}.chart-wrap{position:relative;height:245px;min-width:0;background:#091827}.chart-wrap canvas{width:100%;height:100%;display:block}.chart-tooltip{position:absolute;z-index:5;pointer-events:none;background:#0a252fee;border:1px solid #3e6770;border-radius:5px;padding:7px 9px;font-size:11px;color:#bdeada}.trace-stat-stack{border-left:1px solid var(--line)}.trace-stat-stack>div{padding:14px 17px;border-bottom:1px solid var(--line)}.trace-stat-stack>div:last-child{border:0}.trace-stat-stack b{display:block;font-size:17px;font-weight:600;margin-top:6px;color:#daf0f3;font-variant-numeric:tabular-nums}.trace-stat-stack .status-text{font-size:13px;color:#ffb47b}.trace-foot{border-top:1px solid var(--line);padding:13px 23px;color:#76909b;font-size:10px;flex-wrap:wrap}.footer{border-top:1px solid var(--line);padding:18px 0 28px;color:#60818f;font-size:10px;flex-wrap:wrap}.footer span:first-child{color:#819dab}@media(max-width:1120px){.content-grid{grid-template-columns:minmax(0,1fr) 310px}.render-shell{height:440px}.metric{padding:17px 11px}.metric strong{font-size:18px}.legend{max-width:350px}}@media(max-width:850px){.app{padding:0 13px}.content-grid{grid-template-columns:1fr}.scroll-controls{max-height:none}.render-shell{height:430px}.topbar{align-items:flex-start;padding:17px 0}.top-actions{gap:8px}.deck{flex-wrap:wrap;padding:10px 0;gap:8px}.deck-desc{flex-basis:100%;order:3}.live-label{margin-left:auto}.trace-layout{grid-template-columns:1fr}.trace-stat-stack{display:grid;grid-template-columns:repeat(2,1fr)}.trace-stat-stack>div{border:1px solid var(--line)}.trace-head{flex-wrap:wrap}}@media(max-width:550px){.topbar{flex-direction:column}.top-actions{width:100%;justify-content:space-between}.status{display:none}.metrics-row{grid-template-columns:repeat(2,1fr)}.metric:nth-child(2){border:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.render-shell{height:340px}.canvas-corner.top-right{display:none}.canvas-hud{width:190px}.trace-head{padding:17px 14px}.section-top{padding:14px}.view-tag{display:none}.legend{justify-content:flex-start}}
