/* Review 2.0 — focused practice surface */

.review-app{
  --review-surface:var(--app-surface);
  --review-soft:var(--app-surface-soft);
  --review-ink:var(--app-ink);
  --review-muted:var(--app-muted);
  --review-line:var(--app-line);
  --review-accent:var(--app-accent);
  min-height:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.review-app:not(.in-game){width:min(900px,100%);margin:0 auto}

.review-landing-head{
  padding:8px 2px 20px!important;
  align-items:flex-end!important;
  border-bottom:1px solid var(--review-line)!important;
  background:transparent!important;
}
.review-landing-head h2{
  margin:3px 0 6px!important;
  color:var(--review-ink)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(30px,4vw,42px)!important;
  font-weight:500!important;
  letter-spacing:-.03em!important;
}
.review-landing-head .review-subtitle{color:var(--review-muted)!important;font-size:12px!important}
.review-landing-head .secondary-button{min-height:34px;padding:7px 10px!important}

.games-smart-review{
  margin:18px 0 28px!important;
  padding:17px 18px!important;
  border:1px solid var(--review-line)!important;
  border-radius:var(--app-radius)!important;
  background:var(--review-surface)!important;
  box-shadow:var(--app-shadow)!important;
}
.games-smart-review .smart-review-head{align-items:center!important;gap:20px!important}
.games-smart-review .smart-review-head h3{
  margin:5px 0 4px!important;
  color:var(--review-ink)!important;
  font-size:19px!important;
  font-weight:600!important;
}
.games-smart-review .smart-review-head p{color:var(--review-muted)!important;font-size:11px!important}
.games-smart-review .primary-button{
  min-height:36px!important;
  padding:8px 12px!important;
  background:var(--review-accent)!important;
  box-shadow:none!important;
  white-space:nowrap;
}
.smart-review-recommendation{
  min-height:20px!important;
  padding:3px 7px!important;
  border:1px solid var(--review-line);
  border-radius:999px!important;
  background:var(--review-soft)!important;
  color:#766657!important;
}
.smart-review-bottom{
  margin-top:13px!important;
  padding-top:11px!important;
  border-top:1px solid var(--review-line)!important;
}
.games-smart-review .smart-review-stats{
  display:flex!important;
  align-items:baseline;
  gap:18px!important;
}
.games-smart-review .smart-review-stats span{
  display:inline-flex!important;
  align-items:baseline;
  gap:4px;
  min-width:0!important;
}
.games-smart-review .smart-review-stats strong{
  color:var(--review-ink)!important;
  font-size:14px!important;
  font-variant-numeric:tabular-nums;
}
.games-smart-review .smart-review-stats small{color:var(--review-muted)!important;font-size:9px!important}
.smart-review-note{color:var(--app-faint)!important;font-size:9px!important}

.games-section-heading{margin:0 0 10px!important}
.games-section-heading .eyebrow{margin-bottom:5px}
.games-section-heading h3{color:var(--review-ink)!important;font-size:15px!important;font-weight:600!important}

.review-games{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  margin:0 0 24px!important;
}
.game-card{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 16px!important;
  align-items:center;
  gap:11px!important;
  min-height:86px!important;
  padding:13px!important;
  border:1px solid var(--review-line)!important;
  border-radius:12px!important;
  background:var(--review-surface)!important;
  box-shadow:none!important;
  color:var(--review-ink)!important;
  transition:background .12s ease,border-color .12s ease,transform .12s ease!important;
}
.game-card:hover:not(:disabled){
  background:#fbf8f2!important;
  border-color:var(--app-line-strong)!important;
  transform:translateY(-1px)!important;
}
.game-card:focus-visible,.review-option:focus-visible,.review-scope-more-toggle:focus-visible,
.review-button:focus-visible,.challenge-option:focus-visible{
  outline:2px solid rgba(111,91,74,.28)!important;
  outline-offset:2px;
}
.game-card .review-game-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  border:1px solid var(--review-line)!important;border-radius:9px!important;
  background:var(--review-soft)!important;color:#756657!important;
}
.game-card .review-game-icon .ui-icon{width:17px;height:17px}
.game-card-copy{gap:3px!important}
.game-card-copy strong{color:var(--review-ink)!important;font-size:12px!important;font-weight:650!important}
.game-card-copy small{color:var(--review-muted)!important;font-size:9px!important;line-height:1.45!important}
.game-card-action{padding:0!important;border:0!important;background:transparent!important;color:#9b9086!important;opacity:1!important}
.game-card-action .ui-icon{width:14px;height:14px}
.game-card-flashcards,.game-card-meaning,.game-card-context,.game-card-word{
  background:var(--review-surface)!important;border-color:var(--review-line)!important;
}
.game-card-flashcards .review-game-icon,.game-card-meaning .review-game-icon,
.game-card-context .review-game-icon,.game-card-word .review-game-icon{
  background:var(--review-soft)!important;color:#756657!important;
}
.games-empty-state{
  margin:0 0 18px!important;padding:14px 15px!important;
  border-color:var(--review-line-strong)!important;border-radius:11px!important;
  background:var(--review-soft)!important;
}
.games-empty-icon{background:var(--app-accent-soft)!important;color:var(--review-accent)!important}
.games-empty-icon .ui-icon{width:16px;height:16px}
.games-empty-state strong{color:var(--review-ink)!important}
.games-empty-state span{color:var(--review-muted)!important}

.review-setup{
  margin:0 0 24px!important;max-width:none!important;padding:18px!important;
  border:1px solid var(--review-line)!important;border-radius:var(--app-radius)!important;
  background:var(--review-surface)!important;box-shadow:none!important;
}
.review-setup-header h3{margin:4px 0!important;color:var(--review-ink)!important;font-size:18px!important}
.review-setup-helper{margin:0;color:var(--review-muted);font-size:10px;line-height:1.5}
.review-setup-header .icon-only-button{width:32px;min-width:32px;height:32px;padding:0!important}
.review-scope-primary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px;
}
.review-option{
  min-height:60px!important;display:flex!important;align-items:center;gap:9px!important;
  padding:10px 11px!important;border:1px solid var(--review-line)!important;
  border-radius:10px!important;background:var(--review-soft)!important;
  text-align:left!important;box-shadow:none!important;
}
.review-option:hover{background:#fbf8f2!important}
.review-option.active{
  border-color:var(--app-line-strong)!important;background:var(--app-accent-soft)!important;
  box-shadow:inset 0 0 0 1px rgba(111,91,74,.18)!important;
}
.review-option.active::after{display:none!important}
.review-scope-check{
  display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;
  border:1px solid var(--review-line);border-radius:8px;background:var(--review-surface);color:#8c7f74;
}
.review-option.active .review-scope-check{color:var(--review-accent);border-color:#cbbcad;background:#f9f4ed}
.review-scope-check .ui-icon{width:14px;height:14px}
.review-option>span:last-child{min-width:0}
.review-option strong{display:block;margin:0!important;padding:0!important;color:var(--review-ink)!important;font-size:11px!important;font-weight:650!important}
.review-option span{color:var(--review-muted)!important;font-size:9px!important;line-height:1.4!important}
.review-custom-scope-button{
  justify-content:flex-start!important;min-height:60px!important;padding:10px 12px!important;
  border-radius:10px!important;background:transparent!important;color:#706257!important;font-size:10px!important;
}
.review-custom-scope-button.is-active{border-color:#cdbdaf!important;background:var(--app-accent-soft)!important}
.review-scope-more{margin-top:9px;border-top:1px solid var(--review-line)}
.review-scope-more-toggle{
  display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;
  padding:7px 1px;list-style:none;cursor:pointer;color:#80756b;font-size:10px;font-weight:650;
}
.review-scope-more-toggle::-webkit-details-marker{display:none}
.review-scope-more-toggle .ui-icon{width:13px;height:13px;transition:transform .12s ease}
.review-scope-more[open] .review-scope-more-toggle .ui-icon{transform:rotate(90deg)}
.review-scope-secondary{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;margin:0 0 2px!important;
}
.review-scope-secondary .review-option{min-height:54px!important;padding:9px!important}
.review-custom-list{
  margin-top:10px!important;padding:10px!important;border:1px solid var(--review-line)!important;
  border-radius:10px!important;background:var(--review-soft)!important;
}
.review-setup-footer{margin-top:14px!important;padding-top:12px!important;border-top:1px solid var(--review-line)!important}
#review-selection-count{color:var(--review-muted)!important;font-size:10px!important;font-variant-numeric:tabular-nums}
#review-start-game{min-height:36px!important;padding:8px 11px!important}

.review-app.in-game{
  width:100%!important;min-height:calc(100vh - 20px)!important;padding:0!important;
  background:transparent!important;
}
.review-app.in-game .review-play-area{max-width:900px!important;margin:0 auto!important}
.review-app.in-game .review-game-panel{padding:0 0 28px!important}
.review-game-topbar{
  position:sticky!important;top:0!important;z-index:20!important;display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center;gap:14px!important;
  margin:0 0 8px!important;padding:8px 0!important;border-bottom:1px solid var(--review-line)!important;
  background:rgba(244,240,232,.94)!important;box-shadow:none!important;backdrop-filter:blur(12px);
}
.review-game-topbar .secondary-button{min-height:32px!important;padding:6px 8px!important;font-size:9px!important}
.review-game-topbar-center{text-align:center!important}
.review-game-topbar-center strong{
  color:var(--review-ink)!important;font-family:Georgia,"Times New Roman",serif!important;
  font-size:15px!important;font-weight:500!important;
}
.review-game-topbar-label{color:var(--app-faint)!important;font-size:7px!important;font-weight:800!important;letter-spacing:.15em!important}
.review-play-label{
  min-height:20px!important;padding:3px 7px!important;border:1px solid var(--review-line)!important;
  border-radius:999px!important;background:var(--review-soft)!important;color:#766657!important;font-size:8px!important;
}
.review-session-progress-wrap{min-width:104px!important;justify-content:flex-end}
#review-session-progress{color:#7f756b!important;font-size:9px!important;font-weight:700!important}
.review-session-progress-track{width:54px!important;height:2px!important;background:#e2d9cf!important}
#review-session-progress-bar{background:var(--review-accent)!important}

.flashcard-stage{min-height:360px!important;padding:24px 0 13px!important}
.flashcard{
  width:min(640px,100%)!important;min-height:290px!important;padding:34px 30px!important;gap:14px!important;
  border:1px solid var(--review-line)!important;border-radius:16px!important;background:var(--review-surface)!important;
  color:var(--review-ink)!important;box-shadow:0 18px 42px rgba(62,50,39,.07)!important;transform:none!important;
}
.flashcard:hover{transform:translateY(-1px)!important}
.flashcard-side-label{
  padding:4px 7px!important;border:1px solid var(--review-line)!important;border-radius:999px!important;
  background:var(--review-soft)!important;color:var(--app-faint)!important;font-size:8px!important;
}
.flashcard-front{
  color:var(--review-ink)!important;font-family:Charter,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif!important;
  font-size:clamp(42px,7vw,58px)!important;line-height:1.08!important;font-weight:500!important;
}
.flashcard-back{width:min(530px,100%)!important;color:#574e47!important;font-size:18px!important;line-height:1.9!important;text-align:center!important}
.flashcard-hint{color:#9a9086;font-size:9px;letter-spacing:.04em}
.flashcard-controls{align-items:center!important;gap:14px!important;padding:0 0 18px!important}
.flashcard-progress-wrap{min-width:82px!important}
.flashcard-progress-label{color:var(--app-faint)!important;font-size:8px!important}
.flashcard-progress{color:var(--review-ink)!important;font-size:11px!important}
.flashcard-buttons{gap:7px!important}
.review-button{
  min-height:52px!important;display:grid!important;grid-template-columns:20px minmax(0,1fr) 18px!important;align-items:center;
  gap:7px!important;padding:8px 10px!important;border:1px solid var(--review-line)!important;border-radius:10px!important;
  background:var(--review-surface)!important;color:var(--review-ink)!important;box-shadow:none!important;text-align:left!important;
}
.review-button:hover{background:#fbf8f2!important}
.review-button-icon{display:grid;place-items:center;color:#85786c}
.review-button-icon .ui-icon{width:15px;height:15px}
.review-button-copy{min-width:0}
.review-button-title{color:var(--review-ink)!important;font-size:11px!important;font-weight:700!important}
.review-button-meta{color:var(--review-muted)!important;font-size:8px!important}
.review-button kbd{
  display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--review-line);border-radius:5px;
  background:var(--review-soft);color:#988b80;font:600 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.review-button.review-again{border-color:#eadcda!important}
.review-button.review-hard{border-color:#e5ddd1!important}
.review-button.review-good{border-color:#dce5df!important}
.review-button.review-easy{background:var(--review-accent)!important;border-color:var(--review-accent)!important;color:#fff!important}
.review-button.review-easy .review-button-title{color:#fff!important}
.review-button.review-easy .review-button-meta{color:#e7ddd5!important}
.review-button.review-easy .review-button-icon,.review-button.review-easy kbd{color:#f4ece5!important;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}

.challenge-header{align-items:end!important;max-width:680px;margin:24px auto 0!important}
.challenge-header h3{
  margin:5px 0 4px!important;color:var(--review-ink)!important;font-family:Georgia,"Times New Roman",serif!important;
  font-size:22px!important;font-weight:500!important;
}
.challenge-header p{color:var(--review-muted)!important;font-size:10px!important}
.matching-score-box{
  min-width:60px!important;padding:7px 8px!important;border:1px solid var(--review-line)!important;
  border-radius:9px!important;background:var(--review-soft)!important;
}
.matching-score-label{color:var(--app-faint)!important;font-size:7px!important}
.matching-score{color:var(--review-ink)!important;font-size:11px!important}
.challenge-prompt{
  position:relative;max-width:680px;min-height:150px!important;margin:15px auto 12px!important;padding:28px 24px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px;
  border:1px solid var(--review-line)!important;border-radius:14px!important;background:var(--review-surface)!important;
  box-shadow:0 12px 28px rgba(62,50,39,.045)!important;
}
.challenge-prompt-label{color:var(--app-faint);font-size:7px;font-weight:800;letter-spacing:.16em}
.challenge-prompt-text{
  margin:0;max-width:100%;color:var(--review-ink);
  font-family:Charter,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  font-size:clamp(22px,3.2vw,30px);line-height:1.35;text-align:center;
}
.challenge-prompt-text.persian-text{font-size:20px;line-height:1.9}
.challenge-options{max-width:680px;margin:0 auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.challenge-option{
  min-height:58px!important;display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center;gap:8px!important;
  padding:10px 12px!important;border:1px solid var(--review-line)!important;border-radius:10px!important;
  background:var(--review-surface)!important;color:var(--review-ink)!important;text-align:left!important;box-shadow:none!important;
  transition:background .12s ease,border-color .12s ease!important;
}
.challenge-option:hover:not(:disabled){background:#fbf8f2!important}
.challenge-choice-key{
  display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--review-line);border-radius:5px;
  background:var(--review-soft);color:#978b80;font:600 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.challenge-choice-text{min-width:0;color:var(--review-ink);font-size:11px;line-height:1.55}
.challenge-choice-text.persian-text{font-size:14px;line-height:1.9}
.challenge-option.correct{
  border-color:#aebfb5!important;background:#f1f5f2!important;
  box-shadow:inset 0 0 0 1px rgba(96,120,109,.18)!important;
}
.challenge-option.correct .challenge-choice-key{border-color:#b9c9c1;background:#e9f0ec;color:#60786d}
.challenge-option.wrong{border-color:#dfc8c7!important;background:#fbf5f4!important;color:#765b59!important}
.challenge-feedback{
  max-width:680px;min-height:22px;margin:11px auto 0!important;display:flex;align-items:center;justify-content:center;
  gap:6px;color:#6f665e!important;font-size:10px!important;line-height:1.5;text-align:center;
}
.challenge-feedback .ui-icon{width:14px;height:14px;flex:0 0 14px}
.challenge-next-button{
  min-width:94px!important;min-height:36px!important;margin:12px auto 0!important;padding:8px 11px!important;
  display:flex!important;align-items:center;justify-content:center;background:var(--review-accent)!important;box-shadow:none!important;
}
.challenge-next-button:disabled{opacity:.45!important}

.review-session-summary{
  max-width:520px!important;margin:70px auto 24px!important;padding:28px 22px!important;border:1px solid var(--review-line)!important;
  border-radius:16px!important;background:var(--review-surface)!important;box-shadow:0 18px 42px rgba(62,50,39,.065)!important;
}
.review-completion-icon{
  display:grid;place-items:center;width:34px;height:34px;margin:0 auto 11px;border:1px solid #cfdcd5;
  border-radius:10px;background:#eef3f0;color:#60786d;
}
.review-completion-icon .ui-icon{width:17px;height:17px}
.review-session-summary-label{color:var(--app-faint)!important;font-size:8px!important}
.review-session-summary strong{
  margin-top:6px!important;color:var(--review-ink)!important;font-family:Georgia,"Times New Roman",serif!important;
  font-size:25px!important;font-weight:500!important;
}
.review-session-summary p{margin:9px auto 17px!important;color:var(--review-muted)!important;font-size:10px!important;line-height:1.6!important}
.review-session-actions{display:flex;justify-content:center;gap:7px}
.review-session-actions .primary-button,.review-session-actions .secondary-button{min-height:34px!important;padding:7px 10px!important}

@media(max-width:760px){
  .review-app:not(.in-game){width:100%}
  .review-landing-head{padding:4px 2px 18px!important;align-items:flex-start!important;gap:10px!important}
  .review-landing-head h2{font-size:32px!important}
  .games-smart-review{margin-top:15px!important;padding:15px!important}
  .games-smart-review .smart-review-head{align-items:flex-start!important;flex-direction:column!important}
  .games-smart-review .primary-button{width:100%!important}
  .smart-review-bottom{align-items:flex-start!important;flex-direction:column!important;gap:7px!important}
  .games-smart-review .smart-review-stats{width:100%!important;justify-content:flex-start!important;gap:15px!important}
  .review-games{grid-template-columns:1fr!important}
  .review-scope-primary{grid-template-columns:1fr!important}
  .review-custom-scope-button{width:100%}
  .review-scope-secondary{grid-template-columns:1fr 1fr!important}
  .review-game-topbar{grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important}
  .review-game-topbar .secondary-button{padding:6px 7px!important}
  .review-session-progress-wrap{min-width:72px!important}
  .review-session-progress-track{width:36px!important}
  .flashcard-stage{min-height:340px!important;padding-top:18px!important}
  .flashcard{min-height:270px!important;padding:27px 18px!important}
  .flashcard-controls{flex-direction:column!important;align-items:stretch!important}
  .flashcard-progress-wrap{
    display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;width:100%;
  }
  .flashcard-buttons{width:100%!important;grid-template-columns:1fr 1fr!important}
  .challenge-header{margin-top:17px!important}
  .challenge-prompt{min-height:140px!important;padding:22px 16px!important}
  .challenge-options{grid-template-columns:1fr!important}
}
@media(max-width:520px){
  .games-smart-review .smart-review-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
  .games-smart-review .smart-review-stats span{display:flex!important;flex-direction:column;gap:2px}
  .review-scope-secondary{grid-template-columns:1fr!important}
  .review-game-topbar-center{min-width:0}
  .review-game-topbar-center strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .review-game-topbar #review-change-words span,.review-game-topbar .review-exit-game span{display:none}
  .review-game-topbar .secondary-button{width:32px;min-width:32px;height:32px;padding:0!important}
  .flashcard-front{font-size:40px!important}
  .review-button{min-height:54px!important;grid-template-columns:18px minmax(0,1fr) 17px!important;padding:8px!important}
  .review-button-icon .ui-icon{width:14px;height:14px}
  .review-button-title{font-size:10px!important}.review-button-meta{font-size:7px!important}
  .challenge-prompt-text{font-size:21px}.challenge-prompt-text.persian-text{font-size:18px}
  .challenge-feedback{min-height:30px;align-items:flex-start}
  .review-session-summary{margin-top:45px!important;padding:24px 16px!important}
  .review-session-actions{flex-direction:column}.review-session-actions>*{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .game-card,.review-option,.review-button,.challenge-option,.review-scope-more-toggle .ui-icon{transition:none!important}
}
