.games-layout { grid-template-columns: 245px minmax(0, 950px); align-items: start; }
.game-navigation { position: sticky; top: 82px; min-width: 0; }
.game-navigation h2 { font-size: 30px; }
.game-navigation p { color: var(--ink-2); margin: 8px 0 14px; }
#game-menu { display: grid; gap: 8px; }
.mode-button { width: 100%; text-align: left; cursor: pointer; background: #fff; border: 2px solid var(--ink); padding: 8px 10px; box-shadow: 2px 2px 0 var(--ink); font: inherit; }
.mode-button[aria-current="true"] { background: #ffe38a; font-weight: 700; }
.mode-button small { display: block; color: var(--ink-2); font-size: 13px; }
.mode-button:focus-visible, .memory-card:focus-visible { outline: 3px solid var(--t7); outline-offset: 3px; }
.game-room { min-width: 0; }
.game-room > p { max-width: 76ch; }
.game-kicker { margin: 0 0 3px; color: var(--ink-2); font: 600 13px var(--mono); letter-spacing: .02em; }
.game-room h1 { margin-bottom: 10px; }
.score-panel { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.2fr); gap: 14px; align-items: center; margin: 20px 0; padding: 12px 16px; }
#score-label { font-weight: 700; }
.progress-wrap { min-width: 0; }
#progress-label { margin-bottom: 4px; font-size: 14px; }
.progress-bar { height: 13px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: #ffe38a; transition: width .2s ease; }
.game-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-heading h2 { font-size: clamp(30px, 4vw, 42px); }
#game-description { margin-top: 6px; }
.task-card { margin-top: 14px; padding: clamp(14px, 3vw, 24px); }
.task-count { margin: 0 0 8px; font: 600 13px var(--mono); color: var(--ink-2); }
.task-prompt { margin: 0 0 14px; font-size: 21px; font-weight: 700; }
.german-target { margin: 8px 0; padding: 10px 12px; border-left: 5px solid var(--t0); background: #fff; font-weight: 700; }
.word-hints { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.word-hints span { padding: 4px 8px; background: #eaf1fa; border: 1px solid var(--blue); }
.answer-label { display: block; margin: 12px 0 4px; font-weight: 700; }
.answer-input { width: 100%; max-width: 760px; padding: 8px 10px; background: #fff; border: 2px solid var(--ink-2); }
.options { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; border: 0; }
.options legend { margin-bottom: 5px; font-weight: 700; }
.options label { display: flex; align-items: flex-start; gap: 9px; padding: 7px 9px; background: #fff; border: 1px solid var(--grid); cursor: pointer; }
.options input { flex: 0 0 auto; margin-top: 7px; }
.game-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.task-feedback { margin-top: 16px; padding: 12px; border: 2px solid var(--ink); background: #fff; }
.task-feedback[data-correct="true"] { border-color: var(--green); }
.task-feedback[data-correct="false"] { border-color: var(--red); }
.task-feedback p { margin: 0 0 8px; }
.task-feedback p:last-child { margin-bottom: 0; }
.feedback-answer { font-weight: 700; }
.lesson-link { display: inline-block; margin-top: 8px; }
.game-note { color: var(--ink-2); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.memory-column { display: grid; align-content: start; gap: 9px; }
.memory-column h3 { margin: 0; font-size: 22px; }
.memory-card { min-height: 54px; padding: 8px; border: 2px solid var(--ink); background: #fff; box-shadow: 2px 2px 0 var(--ink); font: inherit; text-align: left; overflow-wrap: anywhere; }
.memory-card[data-selected="true"] { outline: 3px solid var(--t7); outline-offset: 1px; }
.memory-card[data-matched="true"] { background: #e6f4e7; border-color: var(--green); }
.memory-card:disabled { opacity: 1; color: var(--ink); }
.memory-state { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; }
.memory-status { margin-top: 8px; font-weight: 700; }
@media (max-width: 959px) {
  .games-layout { display: block; }
  .game-navigation { display: block; position: static; margin-bottom: 18px; }
  #game-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .score-panel { grid-template-columns: 1fr; }
  .game-heading { align-items: flex-start; flex-direction: column; }
  .memory-grid { gap: 6px; }
  .memory-card { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}
