/* Keep feedback near the answer and leave the player's focus where it belongs. */
.game-stage{position:relative}
.game-shell{height:auto;min-height:max(610px,calc(100dvh - 82px))}
.game-shell .game-stage{min-height:auto}
.game-shell .game-stage>.target-text,.game-shell .typing-box,.game-shell .keyboard-guide{flex-shrink:0}
.answer-cue{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;margin:0 auto 14px;font:600 20px var(--display);color:#476a30;animation:answer-arrive 240ms ease-out}
.answer-cue>span{display:flex;align-items:center;gap:7px}.answer-cue.great{color:#99566e}
.answer-cue strong{display:inline-flex;align-items:center;gap:7px;background:#f6edc3;color:#746019;border-radius:30px;padding:7px 13px;font:600 15px var(--body)}
.answer-cue{position:relative}.answer-confetti{position:absolute;inset:-110px 0 -90px;pointer-events:none;overflow:hidden}.answer-confetti i{position:absolute;left:50%;top:50%;width:6px;height:10px;border-radius:2px;background:var(--colour);animation:confetti-burst 900ms ease-out var(--delay) both}
@keyframes confetti-burst{0%{transform:translate(0,0) rotate(0);opacity:0}15%{opacity:1}70%{transform:translate(var(--x),var(--y)) rotate(var(--turn));opacity:.9}100%{transform:translate(var(--x),calc(var(--y) + 60px)) rotate(var(--turn));opacity:0}}
.review-word[data-word-role=noun] strong{border-color:#80aac4;color:#3f7492}.review-word[data-word-role=verb] strong,.review-word[data-word-role="auxiliary verb"] strong,.review-word[data-word-role="modal verb"] strong{border-color:#deb45f;color:#78591e}.review-word[data-word-role=adjective] strong{border-color:#8cab62;color:#4d7132}.review-word[data-word-role=particle] strong{border-color:#d794a8;color:#99566e}
.answer-shake{animation:answer-nudge 340ms ease-out}.answer-shake .word-slot{border-color:#bd536b}
@keyframes answer-nudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-4px)}40%{transform:translateX(4px)}65%{transform:translateX(-2px)}85%{transform:translateX(1px)}}
@keyframes answer-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.game-shell .game-topline{gap:20px;flex-wrap:wrap}.game-shell .game-stats{gap:20px;font-size:13px;color:#5b6c50}.game-shell .game-stats b{font-size:18px;color:var(--green);font-variant-numeric:tabular-nums}
.game-shell .game-stats span{font-size:12px;color:#5b6c50}
.game-shell .game-mode-select .select-trigger{font-size:16px;min-height:44px;padding:7px 10px}.game-shell .game-difficulty-select .select-trigger{font-size:14px;min-height:38px;padding:7px 12px}
.game-shell .game-stage .target-text{max-width:1200px;width:100%;font-size:clamp(36px,4vw,64px);line-height:1.4;letter-spacing:-1.5px}
.game-shell .game-stage .typing-box{width:100%;max-width:1200px;min-height:95px}.game-shell .word-slots{font-size:clamp(28px,3.2vw,48px);gap:18px 24px;line-height:1.4}
.game-shell .typing-box:not(.word-entry) textarea{font-size:clamp(27px,3vw,42px);height:136px;text-align:center;padding:24px 48px;line-height:1.4;background:#ffffffa8;border:1px solid #c7d5b9;border-radius:20px}
.game-shell .typing-box:not(.word-entry) textarea:focus{border-color:#6d9149;box-shadow:0 0 0 4px #87a86b16}
.game-shell .game-instruction{font-size:17px;color:#506546;min-height:0;margin-top:16px}.game-shell .game-instruction:empty{display:none}.game-shell .game-instruction.error{color:#a9455d}.game-shell .game-instruction.hint{background:#f8edcf;border-radius:14px;padding:12px 20px;color:#705a26;letter-spacing:1px}
.game-shell .game-actions{font-size:14px;gap:12px 25px}.game-shell .game-actions button{min-height:44px;padding:8px 10px;border-radius:12px}.game-actions button:hover{background:#edf2e6}
.listening-stage{width:min(760px,100%);margin:0 auto 18px}.game-shell.mode-listen .speech-player{width:100%;margin-bottom:18px;padding:25px;gap:25px;border-radius:28px;background:#faebed;border:1px solid #ead4da}
.speech-content{flex:1;min-width:0}.speech-content .wave{height:46px;justify-content:center;width:100%;gap:5px}.speech-content .wave i{animation-play-state:paused;height:12px;transition:height 120ms ease-out}.speaking .wave i{animation-play-state:running;height:30px}.speech-content #listen-status{display:block;text-align:center;font-size:14px;color:#805d69;margin-top:9px}
.speech-timeline{height:4px;border-radius:6px;background:#e5d2d7;margin-top:13px;overflow:hidden}.speech-timeline i{display:block;height:100%;width:100%;background:#b16580;transform:scaleX(0);transform-origin:left;transition:transform 100ms linear}
.slow-replay{display:flex;align-items:center;gap:7px;border-radius:13px;background:#fff;padding:12px;min-height:44px;font-size:14px;color:#884e64;white-space:nowrap}.speaker-btn .icon{transform:translateX(1px)}
.listen-clues{display:flex;flex-wrap:wrap;gap:13px 19px;justify-content:center;font:500 28px var(--display);color:#925d73}.listen-clues span{border-bottom:2px solid #dec3cc;padding:5px 3px}.listen-clues i{font-style:normal;color:#bca3ad;letter-spacing:2px}
.game-shell>.reading-controls{position:static;margin:10px 0 0;justify-content:flex-end;color:#58664c}.reading-controls .select-trigger{font-size:14px;min-height:36px}
.recall-ready{display:flex;align-items:center;gap:22px;width:min(540px,100%);margin:6px auto 25px}.recall-timeline{flex:1;height:9px;border-radius:10px;overflow:hidden;background:#e9e1f0}.recall-timeline i{display:block;width:100%;height:100%;background:#9d83b3;transform-origin:left;transform:scaleX(1)}.recall-ready .btn{color:#725887;box-shadow:0 0 0 1px #ded4e6}
.mode-recall:not(.reviewing):has(.recall-ready) .typing-box{display:none}.game-shell.reviewing .listening-stage,.game-shell.reviewing .recall-ready,.game-shell.reviewing>.reading-controls{display:none}
.learning-review>.review-success{display:none}.channel-volume label{font-weight:600;font-size:14px}
.story-game .game-stage>.listening-stage{grid-column:2;grid-row:1/3;width:100%;margin-bottom:16px}
.story-game .game-stage>.recall-ready{grid-column:2;grid-row:3;width:100%}
.story-game .learning-review>.answer-cue{margin-bottom:24px}
.story-game .learning-review .review-explanation{font-size:16px}
.game-shell.reviewing{height:auto;min-height:calc(100dvh - 82px)}
.game-shell.reviewing .game-stage{flex:0 0 auto;justify-content:flex-start;padding:32px 0 24px}
.game-shell.reviewing .game-actions{display:none}
.home-main .play-hero:has(.reviewing){height:auto;min-height:calc(100dvh - var(--home-header-height,91px))}
.home-main .hero-game:has(.reviewing){height:auto;min-height:700px}
.home-main .hero-game-stage.reviewing{justify-content:flex-start;padding:34px 0 25px}
@media(min-width:761px) and (max-height:800px){
 .game-shell.reviewing .game-stage{padding-top:24px}
 .reviewing .phrase-review{padding:25px 28px 18px}
 .reviewing .review-word{gap:12px}.reviewing .review-word strong{font-size:48px;padding-bottom:10px}
 .reviewing .review-sentence{margin-top:18px}.reviewing .review-explanation{margin-top:9px}
 .reviewing .review-tools{margin-top:13px}.reviewing .review-countdown{margin-top:13px}
 .reviewing .review-next{margin-top:13px;gap:12px}
}
@media(max-width:760px){
 .game-shell .game-topline{gap:8px}.game-shell .game-stats{gap:12px;font-size:11px;width:100%;justify-content:space-between}.game-shell .game-stats b{font-size:15px}.game-stats .sentence-stat{display:none}
 .game-shell .game-stats span:not(.sentence-stat){display:flex;flex-direction:column;align-items:center;gap:1px;font-size:11px}.game-shell .game-stats b{order:-1;margin-left:0}.game-shell .game-stats .icon{display:none}
 .game-shell .game-mode-select .select-trigger{font-size:14px}.game-shell .game-difficulty-select .select-trigger{font-size:12px}.game-shell .game-stage .target-text{font-size:35px;letter-spacing:-.7px}.game-shell .word-slots{font-size:30px;gap:13px 16px}
 .game-shell .typing-box:not(.word-entry) textarea{font-size:28px;height:150px;padding:20px 30px 20px 16px}.game-shell .game-actions{gap:4px;font-size:12px;justify-content:space-between}.game-shell .game-actions button{padding:8px 5px}.game-shell .game-instruction{font-size:15px}
 .game-shell.mode-listen .speech-player{padding:16px;gap:14px;border-radius:23px}.speech-content .wave{gap:3px}.speech-content .wave i{width:3px}.slow-replay{padding:10px;font-size:12px}.slow-replay .icon{width:15px}.listen-clues{font-size:23px;gap:9px 12px}.recall-ready{gap:15px}.recall-ready .btn{font-size:15px}.answer-cue{font-size:18px;margin-bottom:10px}
 .game-shell>.reading-controls{margin-top:7px}.game-shell .game-stage{padding-top:15px}.reading-controls label{padding:4px 6px}.reading-controls .select-trigger{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.answer-cue,.answer-shake{animation:none}.speech-content .wave i{animation:none!important;transition:none}.speech-timeline i{transition:none}}
.less-motion .answer-cue,.less-motion .answer-shake{animation:none}.less-motion .wave i{animation:none!important}.less-motion .speech-timeline i{transition:none}
@media(prefers-reduced-motion:reduce){.answer-confetti{display:none}}.less-motion .answer-confetti{display:none}
