/* 原成品的隐藏结束面板仍有行内pointer-events:auto，避免透明层阻挡投票。 */
#endcard.vis0{pointer-events:none!important}
/* 仅适配原固定画布以外的手机入口和控制，不改变实验场景。 */
#academy-mobile-head,#academy-mobile-controls,#academy-mobile-audio,#academy-mobile-caption{display:none}
@media(max-width:720px),(max-height:500px){
 #academy-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:fixed;inset:0 0 auto;z-index:100;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;background:#11171ef5;border-bottom:1px solid #294953;font:12px/1.5 system-ui;color:#d5e4ee}
 #academy-mobile-head a{color:#79e6f1;text-decoration:none;min-height:34px;display:flex;align-items:center;flex:none}
 #academy-mobile-controls,#academy-mobile-audio{display:flex;align-items:center;gap:5px;position:fixed;left:0;right:0;z-index:100;padding:10px;background:#11171ef5;color:#e3edf5;font:13px/1.5 system-ui;border-top:1px solid #294953}
 #academy-mobile-controls{bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 #academy-mobile-audio{bottom:calc(65px + env(safe-area-inset-bottom))}
 #academy-mobile-controls button,#academy-mobile-controls select,#academy-mobile-audio button{min-height:44px;border:1px solid #376371;background:#1c2933;color:inherit;border-radius:8px;font:inherit;padding:6px}
 #academy-mobile-controls select{flex:1;min-width:0;max-width:100%}#academy-mobile-controls button{flex:none}#academy-mobile-audio button{flex:1;min-width:0}
 #academy-mobile-caption:not([hidden]){display:block;position:fixed;left:10px;right:10px;bottom:calc(132px + env(safe-area-inset-bottom));padding:10px 14px;border:1px solid #477684;border-radius:12px;background:#102537ed;color:#fff;font:15px/1.6 system-ui;white-space:pre-line;max-height:28dvh;overflow:auto;z-index:100}
 #start{inset:60px 0 calc(132px + env(safe-area-inset-bottom));padding:20px;overflow:auto;align-items:center}#start .in{max-width:100%;width:100%;padding:10px 0}
 #start h1{font-size:clamp(28px,7.4vw,44px);line-height:1.5;letter-spacing:.02em}#start h2{font-size:26px}#start p{font-size:14px;margin-top:20px}#start .row{gap:10px;flex-wrap:wrap;margin-top:24px}#start .row .btn{font-size:16px;min-height:44px;padding:10px 14px}#start .keys{font-size:11px;line-height:1.7;margin-top:22px}
}
