/* 实验装置为主，条件面板为辅。 */
:root{--panel-w:312px}
canvas{width:100%;height:100%;touch-action:none}
#stage{background:#05070d}
button{font:inherit;font-size:12px;color:#b7c4d5;background:#151e2b;border:1px solid #2a394d;border-radius:7px;padding:9px 12px;cursor:pointer;min-height:40px;transition:background .15s,border-color .15s}
button:hover{border-color:#8194ac;background:#202d3f}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ffc94a;outline-offset:3px}button.on{background:#ffc94a;color:#171c23;border-color:#ffc94a;font-weight:600}
.stage-head{position:absolute;z-index:2;top:25px;left:32px;right:32px;pointer-events:none}.eyebrow,.panel-kicker{font-size:10px;letter-spacing:2px;color:#718399}.eyebrow span{margin:0 8px;color:#35465c}.stage-head h2{font-size:18px;font-weight:550;margin:9px 0 5px;letter-spacing:.3px}.stage-head p{font-size:12px;color:#8d9db1;margin:0}.scene-tabs{display:flex;gap:4px;margin-top:17px;pointer-events:auto;width:fit-content;border:1px solid #233044;background:#0d131e;padding:4px;border-radius:10px}.scene-tabs button{border:0;background:transparent;min-width:82px;padding:7px 14px}.scene-tabs button.on{background:#ffc94a}
#panel{background:#0e141f;border-color:#202d3e;padding:24px 20px}#panel h1{font-size:17px;margin:7px 0 9px}#panel .learn-link{color:#8195ac;font-size:11px;margin-bottom:19px}#panel h2{font-size:12px;color:#bfcbd9;letter-spacing:0}#panel section{border-color:#222e3e;padding:18px 0}.h2s{display:block;font-size:10px;color:#76879c;font-weight:normal;margin-top:4px}#panel label{font-size:12px;margin:12px 0}.slider{grid-template-columns:50px 1fr 55px}input[type=range]{min-height:28px;margin:0}#panel select{margin-top:8px;min-height:40px;font-size:12px;background:#141e2c;border-color:#2c3b50}.switch{gap:8px;min-height:36px}.switch input{width:16px;height:16px;flex:none}.note{font-size:11px;line-height:1.8;color:#8191a5}.readout{background:#131e2c;border-color:#2a3a4e!important;box-shadow:inset 0 1px #ffffff04}.readout .big{font-size:15px;font-weight:550;color:#bad9cc}.readout dl{font-size:12px;gap:10px 7px;margin:14px 0}.readout dd{text-align:right;font-variant-numeric:tabular-nums}.readout dt{color:#8b9eb5}#pullRead{color:#ffc94a}#frictionRead{color:#6bd4ff}.buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.record-details{font-size:12px;border-top:1px solid #263247;padding:14px 0}.record-details summary{cursor:pointer;min-height:32px}.record-details summary span{float:right;color:#6f8197;font-size:10px}#records{color:#94a5bb;font-size:11px;margin-top:10px}#records table{width:100%;border-collapse:collapse}#records td,#records th{padding:7px 3px;border-bottom:1px solid #2b3b50;text-align:left}#message:empty{display:none}.foot{font-size:10px;color:#65778e}.stage-bottom{position:absolute;bottom:20px;left:32px;right:32px}.conclusion{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid #273a44;border-radius:9px;background:#0d181f}.conclusion span{font-size:10px;color:#9fcabc;white-space:nowrap;letter-spacing:1px}.conclusion p{font-size:13px;color:#d3e6df;margin:0}.stage-tools{display:flex;align-items:center;gap:8px;margin-top:12px}.stage-tools button{background:#0d141f;min-height:36px;padding:6px 12px}.stage-tools a{margin-left:auto;font-size:11px;color:#8095ae;text-decoration:none}#hint{top:auto;bottom:126px;background:none;border:0;padding:0;font-size:10px;color:#64788f;white-space:nowrap}#panelToggle{position:static;border-radius:7px}.learn{overflow-wrap:anywhere}.learn table{white-space:normal}
@media(max-width:1050px) and (min-width:761px){:root{--panel-w:280px}.stage-head{left:20px;right:20px}.stage-bottom{left:20px;right:20px}.scene-tabs button{min-width:65px;padding:7px 10px}}
@media(max-width:760px){.stage-head{top:17px;left:18px;right:18px}.eyebrow{font-size:9px}.stage-head h2{font-size:16px;margin-top:7px}.stage-head p{font-size:11px}.scene-tabs{width:100%;margin-top:13px;gap:3px;padding:3px}.scene-tabs button{flex:1;min-width:0;padding:6px 7px;min-height:39px;font-size:12px}.stage-bottom{left:16px;right:16px;bottom:16px}.conclusion{padding:10px 12px;gap:9px}.conclusion span{font-size:9px;letter-spacing:0}.conclusion p{font-size:12px}.stage-tools{gap:6px;margin-top:9px}.stage-tools button{font-size:11px;min-height:40px;padding:7px 10px}.stage-tools a{font-size:10px}#panelToggle{display:block;z-index:6}#hint{bottom:126px;font-size:10px;width:100%;max-width:100%}#panel{padding:20px 20px 76px;max-height:69%;border-color:#35465b;box-shadow:0 -20px 70px #0008}#panel .related{margin-top:10px}.stage-tools.drawer-open #panelToggle{position:fixed;top:auto;left:auto;bottom:17px;right:17px;height:40px;background:#ffc94a;color:#111b25;border-color:#ffc94a}.conclusion{min-height:42px}}
@media(prefers-reduced-motion:reduce){button,#panel{transition:none}}
