:root{--panel-w:320px}#stage{background:#05070d}canvas{width:100%;height:100%;touch-action:none}.stage-title{position:absolute;left:28px;top:20px;pointer-events:none}.stage-title span{color:#8c9db3;font-size:11px;letter-spacing:1.5px}.stage-title h2{font-size:18px;margin:5px 0;color:#e6ebf2;font-weight:550}.actions{display:flex;gap:6px;align-items:center}.actions button{border:1px solid #2a3649;border-radius:7px;background:#111925;color:#b9c7d9;padding:8px 11px;min-height:36px;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap}.actions button:hover{border-color:#768aa4;background:#1b2738}.actions button.on,#play{background:#ffc94a;color:#171b24;border-color:#ffc94a}.actions button:disabled{opacity:.35;cursor:default}.scene-tabs{position:absolute;right:26px;top:28px;padding:3px;border:1px solid #263145;background:#0c111c;border-radius:10px}.scene-tabs button{border-color:transparent;background:transparent}.stage-readouts{position:absolute;top:89px;left:28px;right:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:660px;pointer-events:none}.stage-readouts div{border-left:1px solid #2a3649;padding-left:13px}.stage-readouts span{display:block;color:#8c9db3;font-size:11px}.stage-readouts strong{display:block;margin-top:5px;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}#ry,#rv{color:#ffd477}#ra{color:#70cfff;font-size:15px;padding-top:3px}.transport{position:absolute;bottom:37px;left:28px;right:28px;max-width:760px;background:#101622ed;border:1px solid #293449;border-radius:12px;padding:10px 12px;box-shadow:0 8px 28px #0005}.transport-actions{gap:7px}#phase{margin-left:auto;font-size:12px;color:#a8bbcf}.timeline{display:grid;grid-template-columns:28px 1fr 63px;gap:10px;align-items:center;margin-top:7px;color:#8c9db3;font-size:11px}.timeline input{margin:0;height:25px}.timeline output{color:#d0dae8;font-variant-numeric:tabular-nums}.learn-fab{bottom:5px;padding:1px 10px;border:0;background:none;font-size:11px}#panel{background:#0e1420;padding:21px 18px}#panel h1{font-size:15px;margin-bottom:7px;font-weight:550}#panel h2{font-size:12px;letter-spacing:.5px;color:#b4c6dc}#panel section{margin:0;padding:15px 0}.panel-intro{font-size:12px;color:#90a2b8;line-height:1.8;margin:0 0 12px}.slider{grid-template-columns:60px 1fr 65px;gap:5px;margin:5px 0;font-size:12px;min-height:34px}.slider input{height:28px}.slider output{font-size:11px;color:#c8d4e5}.checks{grid-template-columns:1fr;font-size:12px;gap:2px;margin-top:10px}.checks label{display:flex;align-items:center;min-height:34px;gap:7px}.note{font-size:11px;line-height:1.8}#caption{margin-bottom:10px}#share{margin-top:12px;min-height:36px;width:100%}input:disabled{opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #70cfff;outline-offset:3px}#panel .related a{font-size:12px}#panel .related small{font-size:11px}#panel .related a::after{font-size:11px}
@media(max-width:1050px) and (min-width:761px){.stage-title{left:20px}.stage-title h2{font-size:16px}.scene-tabs{right:16px;top:25px}.scene-tabs button{padding:7px}.stage-readouts{left:20px;right:16px;gap:5px}.stage-readouts strong{font-size:16px}#ra{font-size:13px}.transport{left:18px;right:18px}#phase{font-size:11px}}
@media(max-width:760px){.stage-title{left:18px;top:12px}.stage-title h2{font-size:16px;margin-top:3px}.stage-title span{font-size:10px}.scene-tabs{left:18px;top:65px;right:auto}.scene-tabs button{min-height:34px;padding:6px 13px}#panelToggle{top:69px;right:18px;min-height:36px;font-size:12px;padding:6px 12px;border-radius:8px;z-index:6}.stage-readouts{top:121px;left:18px;right:18px;gap:6px}.stage-readouts div{padding-left:7px}.stage-readouts span{font-size:10px}.stage-readouts strong{font-size:16px;margin-top:4px}#rv{font-size:14px;padding-top:2px}#ra{font-size:11px;padding-top:5px}.transport{left:12px;right:12px;bottom:31px;padding:9px 10px;border-radius:10px}.transport-actions{gap:5px}.transport-actions button{padding:7px 8px;min-height:36px;font-size:11px}#phase{font-size:10px;max-width:100px;text-align:right;line-height:1.5}.timeline{margin-top:4px;gap:6px}.learn-fab{bottom:5px}#panel{padding:16px 18px 24px;max-height:66%;box-shadow:0 -12px 40px #0009}#panel h1{padding-right:75px}.learn table{font-size:12px}.learn td,.learn th{padding:6px;white-space:normal}}
@media(prefers-reduced-motion:reduce){#panel{transition:none}}

/* 英文标题和场景按钮在中等宽度下分行。 */
@media (min-width:761px) and (max-width:900px) {
  :lang(en) .scene-tabs {top:57px}
  :lang(en) .stage-title {top:12px}
  :lang(en) .stage-readouts {top:110px}
}
