.practice-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-block: 35px 50px;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid #dacdf8;
  border-radius: 22px;
  background: #f0e9ff;
}
.practice-strip h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.045em; }
.practice-strip p { margin-block: 8px 17px; line-height: 1.5; color: var(--muted); }
.practice-strip .hero-secondary { border-color: #7560b05c; }
.practice-strip .hero-secondary:hover { background: #e2d6fa; }
.practice-sample {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 14px 18px;
  border: 1px solid #d6caef;
  border-radius: 16px;
  background: var(--white);
}
.practice-sample:hover, .practice-sample[aria-pressed="true"] { border-color: var(--violet); background: #fbf8ff; }
.practice-sample > span:first-child { font-size: 2rem; }
.practice-sample > span:last-child { display: grid; justify-items: start; gap: 4px; }
.practice-sample strong { font-size: 1.25rem; }
.practice-sample span span { color: var(--muted); }

.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field label { font-weight: 700; }
.form-field select, .game-write input {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #c5bcda;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
.form-field select {
  appearance: none;
  padding-inline-end: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--violet) 50%), linear-gradient(135deg, var(--violet) 50%, transparent 50%);
  background-position: left 17px center, left 12px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.form-field select:focus-visible, .game-write input:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 2px;
}
.dictionary-filters { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; }
.dictionary-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-block: 12px; }
.dictionary-toolbar .dictionary-count { margin: 0; }
.dictionary-toolbar .ghost { padding-inline: 10px; }
.dictionary-more { margin-block-start: 14px; }
.vocabulary-icon {
  display: grid;
  place-items: center;
  background: #f0e9ff;
  color: var(--violet);
  text-align: center;
  font-size: 1.85rem;
}
.vocabulary-icon.feature-img { aspect-ratio: 1.3; font-size: clamp(3rem, 10vw, 6rem); }

.game-lobby-heading {
  margin-block-end: 18px;
  padding: clamp(19px, 4vw, 32px);
  border-radius: 22px;
  background: #2a2051;
  color: #fff;
}
.game-lobby-heading h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.055em; line-height: 1; }
.game-lobby-heading p { max-width: 42ch; color: #e5dbfa; line-height: 1.45; }
.game-lobby-heading .form-field { max-width: 380px; }
.game-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.game-tone-gold { --tone: #ffe7a7; --mark: #fbd063; }
.game-tone-lilac { --tone: #eee6ff; --mark: #d9c8ff; }
.game-tone-mint { --tone: #e5f3da; --mark: #cce5b6; }
.game-tone-peach { --tone: #ffe7dd; --mark: #f3c5b1; }
.game-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 118px;
  padding: 15px;
  border: 1px solid #36234c20;
  border-radius: 17px;
  background: var(--tone);
  text-align: start;
}
.game-mode:hover { border-color: var(--violet); }
.game-mark {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 57px;
  height: 57px;
  padding: 6px;
  border-radius: 14px;
  background: var(--mark);
  font-size: 1.35rem;
  font-weight: 830;
}
.game-mark svg { width: 29px; height: 29px; }
.game-mode-copy { display: grid; gap: 6px; line-height: 1.35; }
.game-mode-copy strong { font-size: clamp(1.15rem, 2.5vw, 1.42rem); }
.game-mode-copy span { color: var(--muted); }
.game-meter { height: 7px; overflow: hidden; border-radius: 20px; background: #e3d9f0; }
.game-meter span { display: block; height: 100%; border-radius: 20px; background: var(--violet); }
.game-counter { margin-block: 9px 15px; color: var(--muted); }
.word-game { border-block-start: 7px solid var(--mark); }
.game-word, .listen-pad {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-block: 15px;
  padding: 15px;
  border-radius: 13px;
  background: var(--tone);
}
.game-word > span:first-child:not(.phrase) { font-size: 2rem; }
.game-word > strong { font-size: clamp(1.42rem, 3.6vw, 2rem); }
.game-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 12px; }
.game-options .choice, .pair-choice {
  min-height: 52px;
  padding: 9px 11px;
  overflow-wrap: anywhere;
}
.game-options .choice.correct, .pair-choice.matched { background: #e7f5e6; color: #225b37; border-color: #44865d; }
.game-options .choice.incorrect, .pair-choice.incorrect { background: #fff0eb; }
.game-result { display: grid; justify-items: start; gap: 6px; margin-block: 14px; padding: 12px; border-radius: 10px; }
.game-result.good { background: #e7f5e6; }
.game-result.bad { background: #fff0eb; }
.game-result div, .game-summary li div { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.game-next { margin-block-start: 3px; }
.game-write { display: grid; gap: 8px; max-width: 520px; }
.game-write label { font-weight: 700; }
.game-write input { font-size: 1.1rem; }
.game-letters { display: flex; flex-wrap: wrap; gap: 3px; direction: ltr; justify-content: flex-end; }
.game-letters button {
  min-width: 33px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid #dfd3f2;
  border-radius: 7px;
  background: var(--paper);
  font: inherit;
}
.game-letters button:hover { background: var(--violet-soft); }
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.pair-column { display: grid; gap: 7px; align-content: start; }
.pair-column h2 { font-size: 1rem; color: var(--muted); }
.pair-choice { display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.pair-feedback { min-height: 1.5em; margin-block: 11px; }
.game-summary h2 { font-size: 1.2rem; }
.game-summary .game-score { display: grid; gap: 4px; margin-block: 12px 20px; }
.game-score strong { direction: ltr; text-align: right; font-size: 2.15rem; color: var(--violet); }
.game-summary .review-list li { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.game-summary .review-list li .sound-button { flex-shrink: 0; }

@media (max-width: 680px) {
  .practice-strip { padding: 18px; gap: 12px; }
  .practice-strip .button { min-height: 46px; padding-inline: 12px; }
  .dictionary-toolbar .ghost { padding-inline: 6px; }
  .game-mode { min-height: 102px; padding: 12px; gap: 10px; }
  .game-mark { min-width: 44px; height: 44px; font-size: 1.08rem; }
  .game-mark svg { width: 23px; height: 23px; }
}
@media (max-width: 520px) {
  .practice-strip { grid-template-columns: 1fr; }
  .practice-sample { justify-self: start; }
  .dictionary-filters, .game-menu { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .main-nav { gap: 1px; }
  .main-nav button { padding-inline: 7px; }
  .game-options .choice, .pair-choice { padding-inline: 6px; }
}

.game-settings { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(130px, 1fr); gap: 11px; max-width: 540px; }
.game-activity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 13px;
  padding-inline: 3px;
  font-weight: 700;
}
.game-mode-copy small { color: #4a3865; line-height: 1.35; font-size: .84rem; }
.game-mode:disabled { opacity: .72; cursor: default; }
.game-mode:disabled:hover { border-color: #36234c20; }
.game-tone-sky { --tone: #dfeef9; --mark: #bedcee; }
.game-tone-rose { --tone: #fae4ee; --mark: #f0c3db; }
.game-tone-rose .game-mark { font-size: 1rem; }
.listen-pad > p { flex-basis: 100%; }
.game-clue { color: var(--muted); min-height: 1.35em; }
.game-clue:empty { display: none; }
.game-visual { max-width: 390px; margin-block: 13px; width: 100%; }
.game-visual .feature-img { width: 100%; }
.pair-note {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-block: 10px;
}
.pair-note .pair-feedback { margin: 0; }
.sentence-form { max-width: none; }
.sentence-line, .word-bank {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border-radius: 12px;
}
.sentence-line { border: 1px dashed #8c71b3; background: #faf4ff; }
.sentence-line > span { color: var(--muted); font-size: .96rem; margin: auto; }
.word-bank { background: #fdeef5; }
.word-tile {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #dbc4de;
  border-radius: 8px;
  background: var(--white);
  padding: 6px 11px;
  font-size: 1.03rem;
  font-weight: 650;
}
.word-tile:hover { background: var(--violet-soft); border-color: #6c51ab; }
.word-tile:focus-visible { outline-offset: 1px; }

@media (max-width: 430px) {
  .game-settings { grid-template-columns: 1fr; }
  .game-activity { gap: 4px; }
}
