#practice-menu[hidden],#practice-panel[hidden],#start-history[hidden],#history-clear[hidden]{display:none!important}
#practice-menu{position:absolute;top:100px;right:12px;z-index:25;width:min(280px,90%);padding:16px;border:1px solid #9eb0b4;border-radius:12px;background:#102a35f5;box-shadow:0 8px 24px #0008}
#practice-menu button{display:block;padding:12px;border:1px solid #8a9b9c;border-radius:7px;background:#284653;width:100%;margin-top:12px;min-height:44px}
#practice-menu button small{display:block;font-size:11px;margin-top:5px;color:#c3d1d5}
#practice-menu #practice-close{position:absolute;right:8px;top:3px;width:36px;margin:0;min-height:32px;padding:4px}
#practice-panel{position:absolute;top:115px;right:10px;width:145px;max-height:42%;overflow:auto;z-index:10;padding:9px;border-radius:7px;background:#102831d9;border:1px solid #809b9d66;font-size:11px}
#practice-time{display:block;font-weight:bold;font-size:17px;font-variant-numeric:tabular-nums;color:#f1d59b;white-space:nowrap}
#practice-phase{display:block;margin:5px 0 9px;color:#c7d9d9;font-size:10px}
#start-history>b{font-size:10px;letter-spacing:.08em}#latest-start{display:block;margin:5px 0;font-weight:bold;font-size:14px}
#history-list{padding:0;margin:5px 0;list-style:none;max-height:85px;overflow:auto;font-variant-numeric:tabular-nums}
#history-list li{padding:3px 0}#history-list li:first-child{font-weight:bold;border-bottom:1px solid #708993}
#history-list .F{color:#ff8984}#history-list .L{color:#f5c66e}
#practice-panel button{font-size:10px;padding:7px 5px;min-height:32px;background:#243e49;border:1px solid #81969c;border-radius:5px;margin:4px 3px 0 0}
.practice-active .scene-title{display:none}
.play-landscape #practice-panel{top:94px;right:max(10px,env(safe-area-inset-right));width:148px;max-height:calc(100% - 226px)}
.play-landscape .scene-top{max-width:96%!important;gap:6px}
.play-landscape #practice-menu{top:92px}
@media(orientation:portrait){body:not(.play-landscape) #practice-panel{top:112px;max-height:205px}body:not(.play-landscape) .scene-top{gap:6px}body:not(.play-landscape) .scene-top #status{display:none}}
@media(max-height:430px) and (orientation:landscape){.play-landscape #practice-panel{top:92px;max-height:calc(100% - 210px)}.play-landscape #history-list{max-height:48px}.play-landscape #practice-phase{display:none}}
/* v40: small edge controls leave the forward view clear. */
#fullscreen-hint{position:absolute;top:42px;right:0;max-width:250px;padding:6px;background:#102a35ed;font-size:10px;color:#e1e9eb}
#fullscreen-hint[hidden]{display:none}
.viewport-fullscreen{overflow:hidden}
.viewport-fullscreen #stage{position:fixed;inset:0;width:100dvw;height:100dvh;min-height:0;max-height:none;z-index:100;border:0;border-radius:0}
#stage:fullscreen{width:100vw;height:100vh;max-height:none;min-height:0;border:0}
.play-landscape #stage .camera-buttons{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));padding:1px}
.play-landscape #stage .camera-buttons button{min-height:28px;padding:3px 10px}
.play-landscape #stage .scene-top{top:40px;max-width:98%!important;gap:4px}
.play-landscape #stage .scene-top button{height:30px;min-width:40px;padding:3px 7px;font-size:11px}
.play-landscape #stage .scene-title,.play-landscape #stage #status,.play-landscape .drive-hint{display:none}
.play-landscape #practice-panel{top:78px}
@media(orientation:portrait){.viewport-fullscreen.play-landscape #stage{inset:auto;left:50%;top:50%;width:100dvh;height:100dvw}}
