#test-mode-choice{margin:0 0 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#test-mode-choice>span{font-size:11px;color:#b3b6be;width:34px}
#test-mode-choice button{padding:8px 15px;border:1px solid #5f616c;background:#ffffff06;color:#c7c9d1;font:inherit;font-size:12px;cursor:pointer}
#test-mode-choice button[aria-pressed=true]{border-color:#8edeea;color:#c9f6fc;background:#65d4e41c;box-shadow:inset 0 -2px #83dfed}
#test-mode-note{font-size:11px;line-height:1.5;color:#aac5ce;flex-basis:100%;margin:0;padding-left:42px}
#rewind-overlay{position:absolute;inset:0;pointer-events:none;z-index:12;opacity:0;background:linear-gradient(transparent 49%,#8de9ef06 50%);background-size:100% 6px;box-shadow:inset 0 0 120px #5dc9e94a;transition:opacity .2s}
body.time-rewinding #rewind-overlay{opacity:1}
#final-countdown{position:absolute;top:116px;left:50%;transform:translateX(-50%);z-index:32;text-align:center;pointer-events:none;color:#a5eff8;text-shadow:0 3px 24px #16364d;font-variant-numeric:tabular-nums}
#final-countdown[hidden]{display:none}
#final-countdown small{display:block;letter-spacing:.26em;font-size:11px;font-weight:700}
#final-countdown strong{font-size:clamp(54px,6vw,94px);line-height:1.05;display:block;letter-spacing:-.06em;font-weight:900}
#final-countdown span{display:block;font-size:11px;letter-spacing:.1em;opacity:.85}
#final-countdown.final-buff{color:#ffdca2}
#final-countdown.last-five strong{font-size:clamp(80px,8vw,126px);color:#ff7f82}
#final-countdown.beat strong{animation:time-beat .38s ease-out}
@keyframes time-beat{0%{transform:scale(1.23);filter:brightness(1.6)}100%{transform:scale(1);filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){#final-countdown.beat strong{animation:none}#rewind-overlay{background:none}}
@media(max-height:850px){#test-mode-choice{margin-bottom:6px}#test-mode-choice button{padding:5px 12px}#test-mode-note{font-size:10px}#final-countdown{top:95px}}

body.test-final-stage #rpg-notice{top:auto;bottom:180px;font-size:11px;padding:8px 14px}
body.test-final-stage #rpg-notice strong{font-size:13px}
body.test-final-stage #rpg-notice small{font-size:10px}
body.test-final-stage #toast{top:290px}
