/* 黑色实验台：画面内操作优先，面板补充精确条件。 */
:root{--panel-w:326px}
#stage{background:#05070d;display:flex;flex-direction:column}
.stage-head{padding:25px 30px 0;flex:none;z-index:2}
.eyebrow{font-size:10px;letter-spacing:2px;color:#8fa4bb;margin-bottom:8px}.eyebrow span{letter-spacing:0;margin-left:12px;color:#61768c}
.stage-head h2{font-size:18px;font-weight:500;margin:0 0 18px;letter-spacing:.4px}
.scene-tabs{display:flex;gap:6px}
button{font:inherit;font-size:12px;color:#a8b7ca;background:#141c29;border:1px solid #2a3749;border-radius:7px;padding:9px 12px;min-height:38px;cursor:pointer}
button:hover{border-color:#70869f;color:#fff}button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #79dafa;outline-offset:3px}
button.on{background:#ffc94a;color:#171b22;border-color:#ffc94a;font-weight:600}
.scene-tabs button{min-width:84px}.buttons{display:flex;flex-wrap:wrap;gap:6px}
#canvas{width:100%;height:100%;min-height:0;flex:1;touch-action:none}
.stage-result{display:flex;justify-content:center;align-items:center;gap:24px;margin:0 28px 70px;padding:16px 8px;border-top:1px solid #253143;flex:none;font-size:12px;color:#8fa4bb}
.stage-result strong{color:#ffc94a;font-size:16px;font-weight:500}.stage-result>span:last-child{font-family:var(--mono);color:#c7d5e4}
#hint{top:auto;bottom:42px;padding:0;background:none;color:#8fa4bb;font-size:11px;width:max-content;max-width:96%;text-align:center;white-space:normal}
.learn-fab{bottom:10px;font-size:11px}
#panel{background:#0e141e;padding:22px 18px}#panel h1{font-size:17px;margin-bottom:8px}#panel h2{color:#c3d1e1;font-size:12px;letter-spacing:0}
#panel .experiment{padding-top:16px}#panel .experiment .note{font-size:11px;line-height:1.7}
#panel .buttons button{font-size:11px;padding:8px}.readout{margin:10px 0;background:#151f2d}.readout .big{font-size:15px;color:#ffc94a}#explain{font-size:12px;line-height:1.7;color:#b6c6d8;margin:8px 0}dl{display:block;font-size:11px}dt{margin-top:8px}dd{font-family:var(--mono);font-size:12px;font-variant-numeric:tabular-nums;color:#dbe6f3;margin-top:2px}
.group-controls h2{display:flex;align-items:center;gap:7px}.group-controls i{font-style:normal;width:23px;height:23px;display:inline-grid;place-items:center;color:#79dafa;background:#79dafa15;border:1px solid #79dafa40;border-radius:6px}.group-b i{color:#ffc94a;background:#ffc94a15;border-color:#ffc94a40}
#panel label:not(.slider){display:block;color:#8fa4bb;font-size:11px}#panel select{margin-top:6px;font-size:12px;padding:10px 8px;background:#151e2b}#panel .slider{font-size:12px;grid-template-columns:48px 1fr 36px;margin-top:13px}input[type=range]{min-height:30px}#panel output{font-size:11px}
.record-details{border-top:1px solid #2a3446;padding:14px 0}.record-details summary{cursor:pointer;font-size:12px}.record-details summary span{float:right;font-size:10px;color:#8fa4bb}#records{font-size:11px;color:#8fa4bb;margin-top:10px}#records table{width:100%;border-collapse:collapse}#records th,#records td{padding:5px;border-bottom:1px solid #283445;text-align:right}.foot{font-size:11px;line-height:1.8}
@media(max-width:760px){.stage-head{padding:18px 17px 0}.stage-head h2{font-size:16px;margin-bottom:13px}.eyebrow{font-size:9px;margin-bottom:6px}.eyebrow span{margin-left:6px}.scene-tabs button{min-width:74px;min-height:40px}.stage-result{margin:0 15px 83px;gap:8px;flex-wrap:wrap;padding:12px 0}.stage-result strong{font-size:15px}.stage-result>span:last-child{display:none}.stage-result>span:first-child{font-size:11px}#hint{bottom:56px;font-size:10px}.learn-fab{bottom:17px;left:17px;transform:none}#panelToggle{top:auto;bottom:12px;right:14px;font-size:11px;min-height:38px}#panel{padding:16px 18px 64px;max-height:72%}#panel h1{font-size:16px}}
@media(max-height:650px) and (min-width:761px){.stage-head{padding-top:14px}.stage-head h2{margin-bottom:9px}.stage-result{margin-bottom:62px;padding:9px}}
