/* Independent exercise surface: the same cream, blue and illustrated controls as the main menu. */
html:has(body.practice-mode),body.practice-mode{height:100%!important;overflow:hidden!important;padding:0!important}
body.practice-mode #vl-lesson,body.practice-mode #fireScene{display:none!important}
#vgs-root{display:grid;visibility:hidden;pointer-events:none;position:fixed;inset:0;z-index:9500;width:100%;height:100dvh;grid-template-rows:auto minmax(0,1fr);overflow:hidden;isolation:isolate;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17232d;background:#fffaf0;--vgs-blue:#6ebcef;--vgs-ink:#17232d;--vgs-line:#c6d7e2;--vgs-paper:#fffdf6}
#vgs-root.is-active{visibility:visible;pointer-events:auto}
#vgs-root *,#vgs-root *::before,#vgs-root *::after{box-sizing:border-box}
#vgs-root [hidden]{display:none!important}
#vgs-root button{font-family:inherit;touch-action:manipulation;cursor:pointer;color:inherit}
#vgs-root button:focus-visible,#vgs-root a:focus-visible,#vgs-root input:focus-visible{outline:3px solid #2084c7;outline-offset:3px}
#vgs-root .vgs-hud{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:84px;margin:0;padding:10px max(24px,calc((100vw - 1384px)/2));border-bottom:2px solid var(--vgs-ink);box-shadow:0 5px 0 #d7eaf2;background:#fffaf0}
#vgs-root .vgs-logo{display:block;flex:0 0 164px;width:164px;height:54px}
#vgs-root .vgs-logo img{width:100%;height:100%;object-fit:contain}
#vgs-root .vgs-hud-actions,#vgs-root .vgs-hud-stats{display:flex;align-items:center;gap:9px}
#vgs-root .vgs-hud-actions{margin-right:auto}
#vgs-root .vgs-hud-control{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:7px 12px;border:0;border-radius:10px;background:transparent;box-shadow:none;font-size:14px;font-weight:700}
#vgs-root .vgs-hud-control:hover{background:#e4f3fd}
#vgs-root .vgs-hud-control>span{display:grid;place-items:center;flex:none;width:28px;height:28px}
#vgs-root .vgs-hud-control img,#vgs-root .vgs-hud-control svg{display:block;width:100%;height:100%;object-fit:contain}
#vgs-root .vgs-hud-control small,#vgs-root .vgs-hud-control strong{display:block;line-height:1.15}
#vgs-root .vgs-hud-control small{font-size:9px;color:#526572}
#vgs-root .vgs-hud-stats .vgs-hud-control{min-width:90px;background:#e5f4ff;border:2px solid var(--vgs-ink);box-shadow:2px 3px 0 var(--vgs-ink);border-radius:12px}
#vgs-root .vgs-hud-stats strong{font-size:20px;font-variant-numeric:tabular-nums}
#vgs-root.vgs-combo-live .vgs-combo-card{background:#c5e7ff}
#vgs-root .vgs-main{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-rows:max-content;align-items:start;align-content:center;gap:24px;width:min(100%,1440px);height:100%;min-height:0;margin:0 auto;padding:24px 28px;overflow:hidden}
#vgs-root .vgs-left{display:flex;align-items:start;justify-content:center;min-width:0;min-height:0;height:100%}
#vgs-root .vgs-media-card{display:flex;flex-direction:column;width:min(100%,calc((100dvh - 220px)*1.7778));min-width:0;max-height:100%;padding:7px;background:var(--vgs-blue);border:2px solid var(--vgs-ink);border-radius:18px;box-shadow:3px 4px 0 var(--vgs-ink);overflow:hidden}
#vgs-root .vgs-video-wrap{width:100%;min-width:0;min-height:0}
#vgs-root .vgs-video{position:relative;width:100%;aspect-ratio:16/9;background:#111;border-radius:10px 10px 0 0;overflow:hidden}
#vgs-root .vgs-video iframe,#vgs-root .vgs-video>div{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
#vgs-root .vgs-track{display:flex;align-items:center;padding:13px 12px;gap:10px;min-width:0;background:var(--vgs-paper);border-radius:0 0 10px 10px}
#vgs-root .vgs-track-info{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
#vgs-root .vgs-cover-frame{position:relative;flex:0 0 42px;height:42px;border-radius:8px;overflow:hidden;background:#d9efff}
#vgs-root .vgs-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#vgs-root .vgs-cover-fallback{display:grid;place-items:center;height:100%;font-size:24px}
#vgs-root .vgs-track-copy{min-width:0;flex:1}
#vgs-root .vgs-track-copy small,#vgs-root .vgs-track-copy strong,#vgs-root .vgs-track-copy>span{display:block}
#vgs-root .vgs-track-copy small{font-size:9px;letter-spacing:.06em;color:#526572;margin-bottom:4px}
#vgs-root .vgs-track-copy strong{font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#vgs-root .vgs-track-copy>span{font-size:12px;color:#526572;margin-top:3px}
#vgs-root .vgs-right{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:14px;height:100%;min-width:0;min-height:0}
#vgs-root .vgs-ticket{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px;width:100%;height:min(48dvh,430px);max-height:calc(100% - 66px);min-height:0;padding:20px;color:var(--vgs-ink);background:var(--vgs-paper);border:2px solid var(--vgs-ink);border-radius:18px;box-shadow:3px 4px 0 var(--vgs-ink);overflow:hidden}
#vgs-root .vgs-ticket-top{display:flex;align-items:center;gap:10px;min-height:24px}
#vgs-root .vgs-progress{flex:1;min-width:20px;height:8px;overflow:hidden;border-radius:5px;background:#dceaf3}
#vgs-root .vgs-progress>span{display:block;height:100%;border-radius:5px;background:#2687c6;transition:width .25s}
#vgs-root .vgs-mode,#vgs-root .vgs-count{font:750 10px/1.2 system-ui;white-space:nowrap}
#vgs-root .vgs-mode{padding:6px 8px;border-radius:7px;background:#e4f3fd;color:#1b618d}
#vgs-root .vgs-count{font-variant-numeric:tabular-nums;color:#526572}
#vgs-root .vgs-question{display:flex;align-items:center;justify-content:center;min-height:0;text-align:center}
#vgs-root .vgs-question h2{font:800 clamp(22px,2.1vw,30px)/1.15 system-ui!important;letter-spacing:-.035em;margin:0!important;text-transform:none!important;color:var(--vgs-ink)!important}
#vgs-root .vgs-question-copy{width:100%;min-width:0}
#vgs-root .vgs-question-copy:has(.vgs-sub:not(:empty)){display:flex;flex-direction:column-reverse;gap:12px}
#vgs-root .vgs-sub{font:600 clamp(15px,1.4vw,19px)/1.35 system-ui;margin:0;color:#526572;overflow-wrap:anywhere}
#vgs-root .vgs-sub:empty{display:none}
#vgs-root .vgs-options-wrap{display:flex;flex-direction:column;min-height:0;min-width:0}
#vgs-root .vgs-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:12px;flex:1;width:100%;height:100%;min-height:0}
#vgs-root .vgs-options.vgs-word-bank{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#vgs-root .vgs-choice{min-width:0;min-height:0;width:100%;padding:10px 8px;border:2px solid var(--vgs-ink);border-radius:12px;background:#e4f3fd;color:var(--vgs-ink);box-shadow:2px 3px 0 var(--vgs-ink);font:750 clamp(15px,1.8vw,22px)/1.15 system-ui!important;overflow-wrap:anywhere;transition:background .15s}
#vgs-root .vgs-choice:hover:not(:disabled){background:#b9e2ff}
#vgs-root .vgs-choice:active:not(:disabled){box-shadow:none;translate:1px 2px}
#vgs-root .vgs-word-bank .vgs-choice{font-size:clamp(13px,1.3vw,17px)!important;padding:6px 4px;border-radius:9px;box-shadow:1px 2px 0 var(--vgs-ink)}
#vgs-root .vgs-choice.is-right{background:#c3edcf;border-color:#287343;color:#164d29}
#vgs-root .vgs-choice.is-wrong{background:#ffd5cf;border-color:#b0483b;color:#812f25}
#vgs-root .vgs-choice.is-picked:not(.is-right):not(.is-wrong){background:#b9e2ff;border-color:var(--vgs-ink)}
#vgs-root .vgs-choice:disabled:not(.is-right):not(.is-wrong):not(.is-picked){opacity:.55;box-shadow:none}
#vgs-root .vgs-response{font:600 12px/1.35 system-ui;text-align:center;margin:0;color:#287343;overflow-wrap:anywhere}
#vgs-root .vgs-response:empty{display:none}
#vgs-root .vgs-response.is-error{color:#a33d32}
#vgs-root .vgs-next{position:relative;isolation:isolate;overflow:hidden;min-height:44px;width:100%;border:2px solid var(--vgs-ink);border-radius:10px;background:#d0f1d9;color:#153e25;border-color:#245a36;box-shadow:2px 3px 0 var(--vgs-ink);font:800 16px system-ui;padding:10px 14px}
#vgs-root .vgs-next::before{content:'';position:absolute;z-index:-1;inset:0 auto 0 0;width:var(--next-progress,0%);background:#48c477;transition:width .1s linear}
#vgs-root .vgs-entry{display:flex;gap:8px;width:100%;margin:auto}
#vgs-root .vgs-entry input{min-width:0;flex:1;padding:12px;border:2px solid var(--vgs-ink);border-radius:10px;background:#fff}
#vgs-root .vgs-entry button,#vgs-root .vgs-speech{border:2px solid var(--vgs-ink);border-radius:10px;padding:12px;background:#b9e2ff}
#vgs-root .vgs-replay{display:flex;align-items:center;justify-content:center;gap:12px;flex:none;width:100%;min-height:52px;margin:0;padding:8px 16px;border:2px solid var(--vgs-ink);border-radius:14px;background:#ffe08a;color:var(--vgs-ink);box-shadow:3px 4px 0 var(--vgs-ink)}
#vgs-root .vgs-replay:hover:not(:disabled){background:#ffe9ad}
#vgs-root .vgs-replay-circle{display:grid;place-items:center;flex:none;width:32px;height:32px}
#vgs-root .vgs-replay-circle img{display:block;width:100%;height:100%;object-fit:contain}
#vgs-root .vgs-replay strong{font:800 17px/1.15 system-ui}
#vgs-root .vgs-replay:disabled{opacity:.6;box-shadow:none}
body.practice-mode #reportGate:not(.hidden){z-index:26000!important}
@media(max-width:767px){
 #vgs-root .vgs-hud{min-height:60px;gap:7px;padding:7px 10px}
 #vgs-root .vgs-logo{display:none}
 #vgs-root .vgs-hud-actions,#vgs-root .vgs-hud-stats{gap:5px}
 #vgs-root .vgs-hud-control{font-size:12px;min-height:38px;padding:5px 7px;gap:5px}
 #vgs-root .vgs-hud-actions strong{display:none}
 #vgs-root .vgs-hud-control>span{width:25px;height:25px}
 #vgs-root .vgs-hud-control small{font-size:8px}
 #vgs-root .vgs-hud-stats .vgs-hud-control{min-width:72px;padding:5px 7px;border-radius:9px}
 #vgs-root .vgs-hud-stats strong{font-size:14px}
 #vgs-root .vgs-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;align-content:stretch;gap:14px;padding:14px 14px calc(14px + env(safe-area-inset-bottom))}
 #vgs-root .vgs-left{height:auto;min-height:0}
 #vgs-root .vgs-media-card{width:min(100%,calc((30dvh - 30px)*1.7778));padding:6px;border-radius:14px}
 #vgs-root .vgs-video{border-radius:7px 7px 0 0}
 #vgs-root .vgs-track{padding:8px;gap:7px;border-radius:0 0 7px 7px}
 #vgs-root .vgs-track-info{gap:8px}
 #vgs-root .vgs-cover-frame{flex-basis:30px;height:30px;border-radius:5px}
 #vgs-root .vgs-track-copy small{display:none}
 #vgs-root .vgs-track-copy strong{font-size:13px}
 #vgs-root .vgs-track-copy>span{font-size:10px;margin-top:2px}
 #vgs-root .vgs-right{justify-content:start;gap:12px}
 #vgs-root .vgs-ticket{flex:1;height:auto;max-height:none;gap:10px;padding:15px;width:100%;min-height:0;border-radius:14px}
 #vgs-root .vgs-ticket-top{gap:7px;min-height:20px}
 #vgs-root .vgs-mode{font-size:9px;padding:4px 6px}
 #vgs-root .vgs-count{font-size:9px}
 #vgs-root .vgs-question h2{font-size:22px!important}
 #vgs-root .vgs-question-copy:has(.vgs-sub:not(:empty)){gap:7px}
 #vgs-root .vgs-sub{font-size:15px;line-height:1.3}
 #vgs-root .vgs-options{gap:9px}
 #vgs-root .vgs-choice{font-size:18px!important;padding:8px 6px;box-shadow:1px 2px 0 var(--vgs-ink);border-radius:10px}
 #vgs-root .vgs-options.vgs-word-bank{gap:6px}
 #vgs-root .vgs-word-bank .vgs-choice{font-size:14px!important;padding:5px 3px;border-radius:8px}
 #vgs-root .vgs-response{font-size:11px;line-height:1.25}
 #vgs-root .vgs-replay{min-height:52px;padding:8px 14px;gap:9px;border-radius:12px}
 #vgs-root .vgs-replay-circle{width:30px;height:30px}
 #vgs-root .vgs-replay strong{font-size:17px}
}
@media(max-height:650px){
 #vgs-root .vgs-hud{min-height:54px;padding-top:5px;padding-bottom:5px}
 #vgs-root .vgs-main{gap:12px;padding-top:10px;padding-bottom:12px}
 #vgs-root .vgs-ticket{gap:8px;padding:13px}
 #vgs-root .vgs-question h2{font-size:20px!important}
 #vgs-root .vgs-sub{font-size:13px}
 #vgs-root .vgs-right{gap:9px}
 #vgs-root .vgs-replay{min-height:46px;padding:6px 12px}
 #vgs-root .vgs-choice{font-size:16px!important}
 #vgs-root .vgs-word-bank .vgs-choice{font-size:12px!important}
}
@media(max-width:767px) and (orientation:landscape){#vgs-root .vgs-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}#vgs-root .vgs-left{align-items:center;height:100%}#vgs-root .vgs-media-card{width:100%}#vgs-root .vgs-ticket{gap:6px;padding:10px}#vgs-root .vgs-question h2{font-size:17px!important}#vgs-root .vgs-sub{font-size:12px}#vgs-root .vgs-replay{min-height:40px}#vgs-root .vgs-replay strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){#vgs-root .vgs-choice,#vgs-root .vgs-progress>span{transition:none}}

/* Keep the real answer card at its normal size; replay stays behind the fog. */
#vgs-root .vgs-guest-answer-fog{position:absolute;inset:0;z-index:3;background:#eaf4ffb8;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
#vgs-root.vgs-guest-answer-hint .vgs-ticket{position:relative;z-index:4;outline:3px solid #1675dc;outline-offset:2px}
#vgs-root .vgs-guest-relisten-prompt{position:fixed;z-index:5;display:grid;place-items:center;padding:10px;box-sizing:border-box;border-radius:10px;background:#f4f9fff2;color:#075dbb;text-align:center}
#vgs-root .vgs-guest-relisten-prompt h2{margin:0 0 8px;font:900 clamp(19px,2.4vw,30px)/1.15 system-ui}
#vgs-root .vgs-guest-relisten-prompt p{margin:0 0 12px;font:600 clamp(12px,1.4vw,16px)/1.3 system-ui}
#vgs-root .vgs-guest-relisten-actions{display:flex;justify-content:center;gap:10px}
#vgs-root .vgs-guest-relisten-actions button{min-height:56px;min-width:180px;padding:12px 28px;border:2px solid #1675dc;border-radius:12px;background:#1675dc;color:white;font:900 20px system-ui;cursor:pointer}

/* Keep the main exercise actions legible alongside their illustrated icons. */
#vgs-root .vgs-hud-actions{gap:14px}
#vgs-root .vgs-hud-actions .vgs-hud-control{min-height:54px;padding:8px 12px;gap:10px;font-size:17px}
#vgs-root .vgs-hud-actions .vgs-hud-control>span{width:36px;height:36px}
@media(max-width:767px){
 #vgs-root .vgs-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px 9px}
 #vgs-root .vgs-hud-actions{gap:5px}
 #vgs-root .vgs-hud-actions .vgs-hud-control{flex-direction:column;gap:3px;min-height:46px;padding:3px 6px;font-size:10px;white-space:nowrap}
 #vgs-root .vgs-hud-actions strong{display:block}
 #vgs-root .vgs-hud-actions .vgs-hud-control>span{width:27px;height:27px}
}


