/* English Mitra AI — unified practice identity v9.3 */
:is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:20px
}
:is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head>div:nth-child(2){min-width:0}
:is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head h1,
:is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head h2{
  margin:0;line-height:1.08;letter-spacing:-.02em
}
:is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head p{
  margin:6px 0 0;color:#7b8098;line-height:1.3
}
.practice-unified :is(.lesson-card-main,.practice-card,.tip-card,.writing-card,.speaking-card,.game-card,#gameCard,.vocab-card){
  border-radius:28px
}
.practice-unified :is(button,input,textarea,select){font:inherit}
.practice-unified :is(input,textarea,select):focus-visible,
.practice-unified button:focus-visible{outline:3px solid rgba(102,87,235,.22);outline-offset:2px}

/* Quick Games */
#route-games.practice-unified #gameCard{overflow:hidden}
#route-games .em-game-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
#route-games .em-game-kicker{font-size:13px;font-weight:900;letter-spacing:.11em;color:#6657eb;text-transform:uppercase}
#route-games .em-game-score{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#f3f1ff;color:#5a50bf;font-size:12px;font-weight:900;white-space:nowrap}
#route-games .em-game-progress{height:8px;border-radius:999px;background:#efeff7;overflow:hidden;margin-bottom:22px}
#route-games .em-game-progress>i{display:block;height:100%;width:0;border-radius:inherit;background:#6657eb;transition:width .25s ease}
#route-games .em-game-question{font-size:clamp(26px,5vw,38px);line-height:1.22;margin:0 0 22px;color:#242844;letter-spacing:-.025em}
#route-games .em-game-options{display:grid;gap:12px}
#route-games .em-game-option{width:100%;text-align:left;border:1.5px solid #e2e3eb;background:#fff;color:#282c49;border-radius:18px;padding:17px 18px;font-weight:800;font-size:18px;line-height:1.3;cursor:pointer;transition:.15s ease;min-height:58px}
#route-games .em-game-option:hover{border-color:#c9c4ff;background:#faf9ff}
#route-games .em-game-option:disabled{cursor:default;opacity:1}
#route-games .em-game-option.correct{border-color:#7acdb2;background:#eaf8f3;color:#14745d}
#route-games .em-game-option.wrong{border-color:#e7a4a4;background:#fff0f0;color:#a63e3e}
#route-games .em-game-feedback{display:none;margin-top:16px;padding:14px 16px;border-radius:16px;background:#f7f7fb;color:#4b506c;line-height:1.45}
#route-games .em-game-feedback.show{display:block}
#route-games .em-game-feedback strong{color:#252947}
#route-games .em-game-actions{display:none;margin-top:16px;gap:10px;flex-wrap:wrap}
#route-games .em-game-actions.show{display:flex}
#route-games .em-game-next,#route-games .em-game-restart{border:0;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer}
#route-games .em-game-next{background:#6657eb;color:#fff;flex:1}
#route-games .em-game-restart{background:#f1efff;color:#5b50bf}
#route-games .em-game-summary{text-align:center;padding:16px 4px 4px}
#route-games .em-game-summary .emoji{font-size:44px;line-height:1}
#route-games .em-game-summary h2{margin:12px 0 6px;color:#252947}
#route-games .em-game-summary p{margin:0 0 16px;color:#747991}
#route-games .em-local-pill{grid-column:3;grid-row:2;justify-self:end;display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef8f5;color:#17745d;font-size:11px;font-weight:900;letter-spacing:.04em;white-space:nowrap;margin-top:-4px}

@media(max-width:640px){
  :is(#route-lesson,#route-vocab,#route-grammar,#route-writing,#route-speaking,#route-games).practice-unified .route-head{grid-template-columns:auto minmax(0,1fr) auto;gap:10px}
  #route-games .em-game-option{font-size:17px;padding:15px 16px}
  #route-games .em-game-topline{align-items:flex-start}
  #route-games .em-local-pill{font-size:10px;padding:5px 8px}
}
