:root{color-scheme:dark;--ink:#e8eced;--muted:#a6b0b6;--line:#33434a;--panel:#14212b;--panel2:#1b2a34;--gold:#e9bf78;--accent:#5bc7c8;--bg:#0b151e}*{box-sizing:border-box}html,body{margin:0;min-width:300px;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.app{min-height:100vh;max-width:1900px;margin:auto}.brand{padding:14px 24px;background:#101c25;display:flex;align-items:baseline;gap:16px;border-bottom:1px solid #2b4048}.brand h1{margin:0;font-size:21px;font-weight:650;letter-spacing:-.025em}.brand p{margin:0;color:var(--muted);font-size:12px}.eyebrow{font-size:10px;font-weight:800;color:var(--gold);letter-spacing:.14em}.layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;height:calc(100vh - 57px);min-height:510px}.stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(180deg,#9ab3bf 0%,#b6c3c0 54%,#a9a48e 100%)}#scene{height:100%;width:100%;display:block;touch-action:none;outline:0}.stage-top,.stage-bottom{position:absolute;pointer-events:none;left:20px;right:20px;display:flex;justify-content:space-between;gap:10px;z-index:2}.stage-top{top:18px}.stage-bottom{bottom:20px;align-items:end}.micro{font-size:10px;letter-spacing:.09em;background:#102331b0;padding:8px 11px;border:1px solid #e6eef022;border-radius:4px;color:#e1e7e8;backdrop-filter:blur(8px)}.micro.right{opacity:.8}.pulse{display:inline-block;width:6px;height:6px;border-radius:100%;background:#56d0b4;margin-right:8px;box-shadow:0 0 9px #56d0b4}.compass{padding:9px 11px;font-size:13px;font-weight:800;color:#f0f3f2;background:#14212ac7;border-radius:5px}.compass span{display:block;font-weight:500;font-size:10px;color:#d2c8b5}.stage-hint{font-size:11px;color:#ecf1f2;text-align:right;text-shadow:0 1px 5px #21333d}.hotspots{pointer-events:none;position:absolute;inset:0;z-index:4}.hotspot{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;border:1px solid #f9ebc9;background:#1e3940e6;color:#ffe2a0;font-size:16px;box-shadow:0 3px 12px #0009;transition:background .15s,transform .15s}.hotspot:hover,.hotspot:focus-visible{transform:translate(-50%,-50%) scale(1.12);background:#24555a}.toast{position:absolute;z-index:6;left:50%;bottom:62px;transform:translateX(-50%);max-width:min(390px,92%);background:#12232bee;color:#f0f3f2;border:1px solid #9eab9b;box-shadow:0 16px 38px #0006;border-radius:8px;padding:15px 18px;display:none;line-height:1.48;font-size:13px;pointer-events:auto}.toast strong{color:var(--gold);display:block;margin-bottom:5px}.toast.visible{display:block}.panel{background:var(--panel);display:flex;flex-direction:column;border-left:1px solid #32414a;overflow:hidden}.tabs{flex-shrink:0;display:flex;background:#0d1a23;padding:8px 9px 0;gap:3px}.tab{flex:1;min-width:0;padding:11px 6px;border:none;border-bottom:2px solid transparent;color:#aeb9bd;background:transparent;font-size:11px;font-weight:700}.tab.active{border-bottom-color:var(--gold);color:#f5e1bc;background:#21303a}.panel-scroll{overflow-y:auto;min-height:0;flex:1;scrollbar-color:#52636b #17242e}.tab-body{padding:18px 19px 30px}.tab-body.hidden{display:none}.panel-heading{margin-bottom:21px}.panel-heading h2{font-size:21px;line-height:1.1;margin:7px 0 8px;font-weight:690}.panel-heading p{line-height:1.5;font-size:12px;color:var(--muted);margin:0}.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.controls-grid button{min-height:39px}.soft,.primary{border:1px solid #41545e;padding:10px 7px;border-radius:5px;color:#e5eced;background:#21333e;font-size:12px;font-weight:600}.soft:hover{background:#2d4350}.primary{background:#cfa55b;border-color:#dbb76c;color:#17232b}.primary:hover{background:#f1c67c}.control{margin:16px 0 20px}.control-label{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px}.control-label label{font-size:12px;color:#e8eeee;font-weight:600}.control-label output{font-size:12px;color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:5px;background:#475761;border-radius:20px;display:block;cursor:pointer;accent-color:var(--gold)}input[type=range]::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border-radius:50%;background:#efca86;border:2px solid #263742;box-shadow:0 0 0 1px #dbb877}.subnote{font-size:11px;line-height:1.42;color:var(--muted);margin-top:9px}.select-wrap label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.select-wrap select{background:#21333d;color:var(--ink);border:1px solid #45565e;border-radius:5px;width:100%;padding:8px 24px 8px 10px;min-height:39px}.utility{margin-top:22px}.help{font-size:12px;color:#c4cdd1;line-height:1.6;background:#223440;border:1px solid #3b5059;border-radius:6px;padding:12px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:24px}.stat{padding:13px 11px;background:#243440;border:1px solid #344b58;border-radius:6px}.stat small{display:block;font-size:9px;letter-spacing:.1em;color:#adbfc4}.stat strong{font-size:22px;font-weight:760;color:#f7e6c5;white-space:nowrap;font-variant-numeric:tabular-nums}.stat em{font-style:normal;color:#b8c9cd;font-size:11px;font-weight:500}.formula{background:#0e1b25;border:1px solid #42525b;color:#d5e5dc;padding:14px;font-size:13px;line-height:2;border-radius:6px;margin-top:20px}.formula small{font-size:10px;color:#b4c0c4;line-height:1.2}.check{margin-top:13px;padding:12px;border-left:2px solid #5ac0b9;background:#20313b}.check strong{font-size:11px;color:#93e1d5}.check p{font-size:12px;margin:9px 0}.tiny,.disclaimer{font-size:11px;color:#b4c1c5;line-height:1.5;margin-top:18px}.panel-footer{background:#0c1922;border-top:1px solid #33444b;padding:12px 17px;font-size:10px;letter-spacing:.04em;color:#9babb0}.panel-footer strong{color:#d1d9dc;font-weight:500}.panel-footer #fps{color:#77bbaa}details{margin:10px 0;border:1px solid #3b4b55;border-radius:5px;padding:10px 12px;background:#1c2c36}details summary{cursor:pointer;font-size:12px;font-weight:700;color:#e3e8e9}details p,details li{color:#b4c2c7;font-size:12px;line-height:1.7}a{color:#a0d3d0}.sources{padding-left:18px}.sources li{margin-bottom:8px}.disclaimer{font-style:italic;border-left:2px solid #e1b369;padding-left:10px}.embed-mode{height:100vh;height:100dvh;overflow:hidden}.embed-mode .brand{display:none}.embed-mode .layout{height:100vh;height:100dvh}.fallback-note{color:#111}
@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr) 310px}.brand p{display:none}.micro.right{display:none}}@media(max-width:700px){.brand{height:45px;padding:7px 12px;align-items:center}.brand h1{white-space:nowrap;font-size:16px}.brand .eyebrow{font-size:9px;max-width:170px}.brand h1{font-size:18px}.layout{grid-template-columns:1fr;grid-template-rows:minmax(300px,49dvh) minmax(0,1fr);height:calc(100dvh - 45px);min-height:0}.stage{min-height:0}.panel{border-left:none;border-top:1px solid #3b4e5b}.tab-body{padding:13px 16px 24px}.panel-heading{margin-bottom:14px}.panel-heading h2{font-size:19px}.control{margin:12px 0 16px}.panel-footer{padding:8px 15px}.stage-top{top:8px;left:10px}.stage-bottom{left:10px;right:10px;bottom:8px}.stage-hint{font-size:10px;max-width:60%}.embed-mode .layout{height:100dvh;grid-template-rows:minmax(285px,50dvh) minmax(0,1fr)}.micro{font-size:8px}.toast{bottom:37px;padding:10px 12px;font-size:11px}}@media(max-width:390px){.layout{grid-template-rows:minmax(265px,47dvh) minmax(0,1fr)}.embed-mode .layout{grid-template-rows:minmax(260px,48dvh) minmax(0,1fr)}.tab{font-size:10px;padding:10px 4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
