:root {
  --ink:#102855;
  --muted:#6f819a;
  --blue:#2686f0;
  --green:#2bbe74;
  --border:#dce7f0;
  --surface:#fff;
  --shadow:0 8px 25px #37638f0b;
  --radius:22px;
  --surface-soft:#ffffffb8;
  --surface-faint:#ffffff25;
  --tint-blue:#eaf4fb;
  --tint-blue-strong:#deebf6;
  --tint-green:#e4f6ed;
  --tint-purple:#eee8ff;
  --tint-amber:#fff0d9;
  --tint-red:#ffede9;
  --ink-red:#971c28;
  --ink-amber:#9a6a0e;
  --ink-purple:#8970d8;
  --ink-blue:#2465a6;
  --ink-green:#218555;
  --page:radial-gradient(ellipse at 10% 90%,#e1f5eb 0,transparent 45%),linear-gradient(150deg,#eff9ff,#e9f4ff 70%,#eefbfa);
  color-scheme:light dark;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--page);
  background-attachment:fixed;
  font:16px Heebo,Arial,sans-serif;
  min-height:100dvh;
}

button,
input,
textarea {
  font:inherit;
}

button {
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

button:disabled {
  cursor:default;
  opacity:.5;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline:3px solid #1d7bdd;
  outline-offset:4px;
}

button {
  touch-action:manipulation;
}

button,
a {
  color:inherit;
}

h1,
h2,
h3,
p {
  margin-top:0;
}

[hidden] {
  display:none!important;
}

.app-header {
  height:64px;
  max-width:820px;
  padding:8px 24px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.brand {
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:20px;
  font-weight:800;
  padding:0;
}

.brand-mark {
  display:grid;
  place-items:center;
  direction:ltr;
  width:35px;
  height:35px;
  border-radius:12px;
  background:var(--blue);
  box-shadow:0 3px 0 #1970cc;
  color:white;
  font:800 27px Inter,Arial,sans-serif;
  padding-bottom:5px;
}

.icon-button {
  border:1px solid var(--border);
  background:var(--surface-soft);
  min-width:38px;
  min-height:38px;
  border-radius:12px;
  font-size:21px;
  line-height:1;
}

#openSettings {
  margin-inline-start:auto;
}

.app-main {
  max-width:780px;
  margin:auto;
  padding:0 24px 24px;
}

.app-screen {
  min-height:calc(100dvh - 88px);
  padding:15px 0;
  max-width:660px;
  margin:auto;
}

.home-screen {
  max-width:620px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:22px;
}

.home-title {
  text-align:center;
}

.eyebrow {
  font-size:14px;
  color:var(--muted);
  font-weight:600;
}

.home-title h1 {
  font-size:clamp(30px,6vw,42px);
  margin:6px 0 0;
  font-weight:900;
  letter-spacing:-.8px;
}

.continue-card {
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  padding:23px;
  border:1px solid #157ae2;
  border-bottom:5px solid #176cca;
  background:linear-gradient(125deg,#36a0ff,#2585eb);
  color:white;
  border-radius:var(--radius);
  text-align:right;
  box-shadow:0 10px 24px #287ddd24;
}

.continue-card>span:nth-child(2) {
  flex:1;
  display:grid;
  gap:3px;
}

.continue-card b {
  font-size:23px;
}

.continue-card small {
  font-size:14px;
  color:#e1f0ff;
}

.continue-icon {
  border-radius:17px;
  background:var(--surface-faint);
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  font-size:20px;
}

.home-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.menu-card {
  border:1px solid var(--border);
  border-bottom:4px solid #d5e2ee;
  border-radius:22px;
  background:var(--surface);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:20px 12px;
  min-height:157px;
  box-shadow:var(--shadow);
  transition:transform .15s,border-color .15s;
}

.menu-card:hover {
  transform:translateY(-2px);
  border-color:#a8cce9;
}

.menu-card b {
  font-size:18px;
  font-weight:800;
}

.menu-card small {
  font-size:13px;
  color:var(--muted);
}

.menu-icon {
  display:grid;
  place-items:center;
  font-size:27px;
  font-family:Arial,sans-serif;
  border-radius:16px;
  width:49px;
  height:46px;
  margin-bottom:3px;
}

.blue .menu-icon {
  background:var(--tint-blue);
  color:var(--ink-blue);
}

.purple .menu-icon {
  background:var(--tint-purple);
  color:var(--ink-purple);
}

.orange .menu-icon {
  background:var(--tint-amber);
  color:var(--ink-amber);
}

.teal .menu-icon {
  background:var(--tint-green);
  color:var(--ink-green);
}

.red .menu-icon {
  background:var(--tint-red);
  color:var(--ink-red);
}

.home-progress {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 14px;
  padding:0 3px;
  color:var(--muted);
  font-size:14px;
}

.home-progress strong {
  margin-inline-start:auto;
  font:700 18px Inter,Arial,sans-serif;
  color:var(--ink);
  direction:ltr;
}

.home-progress strong span {
  font-size:13px;
  color:var(--muted);
  font-weight:400;
}

.bar {
  height:8px;
  background:var(--tint-blue-strong);
  border-radius:12px;
  overflow:hidden;
  width:100%;
  direction:rtl;
}

.bar i {
  height:100%;
  display:block;
  background:var(--green);
  width:0;
  border-radius:12px;
}

.screen-heading {
  text-align:center;
  margin:10px 0 25px;
}

.screen-heading h1 {
  font-size:30px;
  font-weight:900;
  margin-bottom:7px;
}

.screen-heading p {
  font-size:15px;
  color:var(--muted);
  line-height:1.7;
  margin:0;
}

.levels {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}

.level-button {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:right;
  padding:15px;
  border:1px solid var(--border);
  border-bottom:3px solid #d6e3ed;
  border-radius:17px;
  background:var(--surface);
  min-width:0;
  min-height:77px;
  color:var(--ink);
}

.level-button.active {
  background:var(--tint-blue);
  border-color:#7db7eb;
}

.level-num {
  width:35px;
  height:35px;
  border-radius:11px;
  background:var(--tint-blue);
  display:grid;
  place-items:center;
  font:700 13px Inter,Arial,sans-serif;
  color:var(--muted);
  flex-shrink:0;
}

.active .level-num {
  background:var(--blue);
  color:#fff;
}

.level-copy {
  min-width:0;
  flex:1;
  display:grid;
  gap:4px;
}

.level-copy b {
  font-size:17px;
  white-space:nowrap;
  line-height:1.3;
}

.level-copy bdi {
  direction:ltr;
  unicode-bidi:isolate;
}

.level-copy small {
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.level-tick {
  color:var(--ink-blue);
  font-size:17px;
}

.level-tick:empty {
  display:none;
}

.jump-form {
  margin-top:22px;
  background:var(--surface-soft);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  display:grid;
  gap:10px;
}

.jump-form label {
  font-size:15px;
  font-weight:600;
}

.jump-form>div {
  display:flex;
  gap:10px;
}

.jump-form input {
  min-width:0;
  width:100%;
  flex:1;
}

.jump-form button {
  background:var(--blue);
  border:0;
  border-bottom:3px solid #1870c7;
  border-radius:12px;
  color:#fff;
  padding:10px 20px;
  white-space:nowrap;
}

.jump-form>span {
  font-size:13px;
  color:var(--muted);
}

input[type=number],
textarea {
  border:1px solid #cbdbe8;
  background:var(--surface);
  border-radius:12px;
  padding:12px;
  color:var(--ink);
  font-size:16px;
}

.bank-summary {
  display:grid;
  justify-items:center;
  gap:4px;
  padding:20px 0 26px;
}

.big-icon {
  font-size:45px;
  color:var(--ink-purple);
  background:var(--tint-purple);
  border-radius:22px;
  width:82px;
  height:76px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
}

.bank-summary>strong {
  font:800 50px Inter,Arial,sans-serif;
}

.bank-summary>span:not(.big-icon) {
  font-size:17px;
}

.bank-summary small {
  font-size:14px;
  color:var(--muted);
  margin-top:5px;
}

.next-button {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--blue);
  color:white;
  border:1px solid #247de0;
  border-bottom:4px solid #196bc3;
  border-radius:15px;
  padding:13px 18px;
  min-height:51px;
  font-size:17px;
  font-weight:700;
}

.secondary-button {
  width:100%;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--border);
  border-bottom:3px solid #dce6ef;
  border-radius:15px;
  padding:13px 18px;
  min-height:51px;
  font-size:16px;
  font-weight:600;
}

.bank-actions {
  display:grid;
  gap:12px;
  margin-top:15px;
}

.local-note {
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
  margin:20px 0;
}

.play-screen {
  max-width:620px;
  padding:0;
  min-height:0;
}

.workspace {
  width:100%;
}

.practice {
  display:flex;
  flex-direction:column;
  min-height:580px;
  height:calc(100dvh - 88px);
  max-height:900px;
  padding:0;
}

.practice-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  min-height:36px;
  color:var(--muted);
}

.session-label {
  white-space:nowrap;
  font-size:13px;
}

.session-label strong {
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
}

.level-progress {
  height:8px;
  background:var(--tint-blue-strong);
  border-radius:12px;
  overflow:hidden;
  flex-shrink:0;
  margin:0 0 10px;
}

.level-progress i {
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#54d884,#2cba71);
  border-radius:12px;
  transition:width .2s;
}

#quiz {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}

.word-top {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:5px 9px;
  font-size:12px;
  min-height:25px;
}

.pill {
  font-size:12px;
  border-radius:15px;
  padding:4px 10px;
  background:var(--tint-green);
  color:var(--ink-green);
}

.pill.review {
  background:var(--tint-amber);
  color:var(--ink-amber);
}

.word-number {
  color:var(--muted);
  white-space:nowrap;
  font-size:12px;
}

.word-area {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:27px;
  box-shadow:var(--shadow);
  padding:18px 24px;
  flex:1;
  min-height:135px;
  max-height:245px;
}

.word-line {
  display:flex;
  flex-direction:column-reverse;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
}

.word-area h2 {
  margin:0;
  font:800 clamp(42px,7vw,76px)/1.3 Inter,Arial,sans-serif;
  letter-spacing:-.025em;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  overflow-x:auto;
  text-align:center;
  color:var(--ink);
}

.word-area h2:focus {
  outline:none;
}

.sound-button {
  width:48px;
  height:48px;
  border:1px solid #2894fa;
  border-bottom:3px solid #2082dd;
  border-radius:50%;
  background:linear-gradient(135deg,#46b4ff,#2486ef);
  color:white;
  display:grid;
  place-items:center;
  flex-shrink:0;
  box-shadow:0 5px 13px #2e8fed22;
}

.question-label {
  text-align:center;
  font-size:23px;
  margin:0;
  font-weight:800;
  line-height:1.4;
}

.answers {
  display:grid;
  gap:10px;
}

.answer {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:61px;
  width:100%;
  padding:12px 18px;
  border:1px solid #d5e0eb;
  border-bottom:3px solid #d1dfea;
  border-radius:18px;
  background:var(--surface);
  text-align:right;
  color:var(--ink);
  font-size:20px;
  font-weight:700;
  box-shadow:0 4px 13px #36658a04;
  line-height:1.4;
}

.answer-number {
  border:2px solid #afbdcd;
  border-radius:50%;
  width:25px;
  height:25px;
  flex-shrink:0;
  color:transparent;
  font-size:0;
}

.answer-icon {
  margin-inline-start:auto;
}

.answer:not(:disabled):hover {
  border-color:#80b8ec;
  background:var(--tint-blue);
}

.answer:disabled {
  opacity:1;
}

.answer.correct {
  background:var(--tint-green);
  border-color:#65c78a;
  color:var(--ink-green);
}

.answer.correct .answer-number {
  background:#40ba72;
  border-color:#40ba72;
}

.answer.wrong {
  background:var(--tint-red);
  border-color:#ec9b91;
  color:var(--ink-red);
}

.answer.wrong .answer-number {
  background:#dc796c;
  border-color:#dc796c;
}

.answer.dim {
  opacity:.55;
}

.quiz-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.quiz-actions button {
  border:1px solid #cedde8;
  background:var(--surface-soft);
  color:var(--muted);
  border-radius:12px;
  padding:9px 10px;
  font-size:14px;
  min-height:41px;
}

.unsure-button[aria-pressed=true] {
  color:var(--ink-purple);
  background:var(--tint-purple);
  border-color:#d4c4ec;
}

.feedback-area {
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.feedback {
  font-size:13px;
  color:var(--muted);
  text-align:center;
  line-height:1.6;
  display:flex;
  gap:5px;
  align-items:center;
  justify-content:center;
}

.feedback.success {
  color:var(--ink-green);
}

.feedback.error {
  color:var(--ink-red);
}

.hint-symbol {
  display:none;
}

.play-bottom {
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid #cfdfeb;
  min-height:43px;
  align-items:center;
  padding-top:5px;
}

.play-bottom button {
  background:none;
  border:0;
  font-size:13px;
  color:var(--muted);
  padding:7px 2px;
  min-height:34px;
}

.recall-prompt {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-height:203px;
  border:1px dashed #b9cfe1;
  background:var(--surface-soft);
  border-radius:20px;
  padding:22px;
}

.recall-prompt p {
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.recall-prompt button {
  background:var(--blue);
  color:white;
  border:0;
  border-bottom:4px solid #176bc2;
  border-radius:14px;
  padding:13px 25px;
  font-size:18px;
  font-weight:600;
}

.complete {
  display:flex;
  flex:1;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:25px 14px;
  gap:15px;
}

.complete h2 {
  font-size:27px;
  margin:0;
}

.complete p {
  font-size:16px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:12px;
}

.complete-icon {
  background:var(--tint-green);
  color:var(--ink-green);
  width:90px;
  height:90px;
  font-size:45px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin-bottom:12px;
}

.today-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:26px;
  padding:35px 25px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}

.stat-main {
  display:grid;
  justify-items:center;
  gap:8px;
  text-align:center;
}

.stat-main strong {
  font:800 65px Inter,Arial,sans-serif;
  color:var(--ink-green);
}

.stat-main span {
  font-size:16px;
  color:var(--muted);
}

.mini-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  margin:26px 0 20px;
  padding:22px 0;
}

.mini-stats>div {
  display:grid;
  justify-items:center;
  gap:7px;
}

.mini-stats strong {
  font:700 27px Inter,Arial,sans-serif;
}

.mini-stats span {
  color:var(--muted);
  font-size:14px;
}

.encouragement {
  text-align:center;
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
  margin:0;
}

.setting-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px;
  margin:25px 0 18px;
}

.recall-toggle {
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:space-between;
  cursor:pointer;
}

.recall-toggle b {
  display:block;
  font-size:18px;
}

.recall-toggle small {
  display:block;
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  margin-top:6px;
}

.recall-toggle input {
  width:26px;
  height:26px;
  accent-color:var(--blue);
  flex-shrink:0;
}

#settingsContinue {
  margin-top:16px;
}

footer {
  margin-top:28px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
}

dialog {
  width:min(620px,calc(100% - 32px));
  max-height:90dvh;
  border:1px solid var(--border);
  border-radius:25px;
  padding:27px;
  background:var(--tint-blue);
  color:var(--ink);
  box-shadow:0 20px 90px #17375440;
  font-size:16px;
  line-height:1.8;
}

dialog::backdrop {
  background:#183e6c66;
  backdrop-filter:blur(5px);
}

.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.dialog-head h2 {
  font-size:24px;
  margin:0;
  font-weight:800;
}

.dialog-head button {
  width:38px;
  height:38px;
  background:var(--tint-blue-strong);
  border:0;
  border-radius:12px;
  font-size:25px;
  flex-shrink:0;
}

.dialog-head+p {
  color:var(--muted);
  font-size:14px;
}

.copy-controls {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.copy-controls button {
  background:var(--blue);
  color:white;
  border:0;
  border-radius:12px;
  padding:11px 14px;
  font-size:14px;
}

.copy-controls label {
  font-size:14px;
}

.copy-controls input {
  accent-color:var(--blue);
}

#copyStatus,
#addWordsStatus,
#previousStatus {
  font-size:14px;
  line-height:1.8;
}

#copyFallback {
  width:100%;
  min-height:130px;
}

.bank-row {
  display:grid;
  grid-template-columns:minmax(85px,1fr) 1.4fr auto;
  gap:5px 15px;
  border-bottom:1px solid var(--border);
  padding:15px 0;
  align-items:center;
}

.bank-row small {
  grid-column:1 / 3;
}

.bank-remove {
  grid-row:1 / 3;
  grid-column:3;
  align-self:center;
  padding:7px 12px;
  border:1px solid var(--border);
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
}

.bank-remove:hover {
  border-color:var(--ink-red);
  color:var(--ink-red);
}

.bank-row.removed strong,
.bank-row.removed span {
  opacity:.4;
  text-decoration:line-through;
}

.bank-row.removed small {
  color:var(--ink-red);
}

.bank-row.removed .bank-remove {
  border-color:var(--blue);
  color:var(--blue);
}

.bank-row strong {
  font-family:Inter,Arial,sans-serif;
  overflow-wrap:anywhere;
  text-align:left;
}

.bank-row small {
  grid-column:1/-1;
  font-size:13px;
  color:var(--muted);
}

#bankListContent {
  margin-bottom:23px;
}

#newWords {
  display:block;
  width:100%;
  line-height:1.8;
  margin-top:8px;
  resize:vertical;
}

.previous-english {
  font:800 45px/1.4 Inter,Arial,sans-serif;
  text-align:center;
  white-space:nowrap;
  overflow-wrap:normal;
  overflow-x:auto;
  margin:35px 0 20px;
}

.previous-meaning {
  text-align:center;
  font-size:24px;
}

#returnFromPrevious,
#learnAdded {
  margin-top:12px;
}

#help li {
  margin-bottom:14px;
}

#help ul {
  padding-inline-start:22px;
}

@media(min-width:800px) {
  .app-main {
    padding-bottom:30px;
  }
  .home-screen {
    min-height:min(800px,calc(100dvh - 94px));
  }
  .play-screen {
    padding-top:10px;
  }
  .practice {
    height:calc(100dvh - 104px);
  }
  .levels {
    grid-template-columns:1fr 1fr;
  }
  .app-screen:not(.play-screen) {
    padding-top:32px;
  }
}

@media(max-width:600px) {
  .app-header {
    height:56px;
    padding:6px 17px;
  }
  .brand {
    font-size:18px;
  }
  .brand-mark {
    width:31px;
    height:31px;
    font-size:24px;
  }
  .icon-button {
    min-width:34px;
    min-height:34px;
    font-size:19px;
  }
  .app-main {
    padding:0 17px 12px;
  }
  .app-screen {
    min-height:calc(100dvh - 68px);
    padding:10px 0;
  }
  .home-screen {
    gap:18px;
  }
  .home-title h1 {
    font-size:32px;
  }
  .continue-card {
    padding:18px;
    border-radius:20px;
  }
  .continue-card b {
    font-size:21px;
  }
  .continue-card small {
    font-size:13px;
  }
  .home-grid {
    gap:12px;
  }
  .menu-card {
    min-height:132px;
    padding:14px 9px;
    gap:5px;
    border-radius:20px;
  }
  .menu-card b {
    font-size:17px;
  }
  .menu-card small {
    font-size:12px;
  }
  .menu-icon {
    width:44px;
    height:41px;
    font-size:25px;
  }
  .home-progress {
    font-size:13px;
  }
  .screen-heading {
    margin:10px 0 20px;
  }
  .screen-heading h1 {
    font-size:28px;
  }
  .screen-heading p {
    font-size:14px;
  }
  .levels {
    gap:9px;
  }
  .level-button {
    padding:11px;
    gap:8px;
    min-height:70px;
    border-radius:15px;
  }
  .level-num {
    width:28px;
    height:29px;
    border-radius:9px;
    font-size:12px;
  }
  .level-copy b {
    font-size:16px;
  }
  .level-copy small {
    font-size:12px;
  }
  .level-tick {
    display:none;
  }
  .jump-form {
    padding:16px;
    margin-top:18px;
  }
  .play-screen {
    padding:0;
    min-height:0;
  }
  .practice {
    height:calc(100dvh - 68px);
    min-height:570px;
  }
  .practice-top {
    min-height:32px;
    font-size:12px;
  }
  .session-label {
    font-size:12px;
  }
  .level-progress {
    margin-bottom:8px;
    height:7px;
  }
  #quiz {
    gap:8px;
  }
  .word-area {
    padding:13px 20px;
    max-height:210px;
    min-height:130px;
    border-radius:24px;
  }
  .word-area h2 {
    font-size:3.4rem;
  }
  .word-line {
    gap:4px;
  }
  .sound-button {
    width:43px;
    height:43px;
  }
  .question-label {
    font-size:22px;
  }
  .answer {
    min-height:57px;
    padding:10px 15px;
    font-size:19px;
    border-radius:17px;
  }
  .answers {
    gap:8px;
  }
  .quiz-actions button {
    min-height:39px;
    padding:8px;
    font-size:13px;
  }
  .feedback-area {
    min-height:40px;
  }
  .feedback {
    font-size:12px;
  }
  .play-bottom {
    min-height:39px;
  }
  .play-bottom button {
    font-size:12px;
  }
  .recall-prompt {
    min-height:187px;
  }
  .word-top {
    font-size:12px;
  }
  .pill {
    font-size:12px;
    padding:3px 8px;
  }
  .word-number {
    font-size:12px;
  }
  dialog {
    width:100%;
    height:100dvh;
    max-height:100dvh;
    max-width:none;
    margin:0;
    border:0;
    border-radius:0;
    padding:18px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y:auto;
  }
  .dialog-head {
    position:sticky;
    top:-18px;
    background:var(--tint-blue);
    padding:12px 0;
    z-index:1;
  }
  .dialog-head h2 {
    font-size:23px;
  }
  .copy-controls button {
    width:100%;
  }
  .bank-summary {
    padding:10px 0 24px;
  }
  .bank-summary>strong {
    font-size:45px;
  }
  .setting-card {
    padding:20px;
  }
  .recall-toggle b {
    font-size:17px;
  }
}

@media(max-height:720px) and (max-width:600px) {
  .home-screen {
    gap:14px;
  }
  .home-title h1 {
    font-size:28px;
  }
  .menu-card {
    min-height:115px;
    padding:10px 8px;
  }
  .menu-icon {
    height:34px;
    width:38px;
    font-size:23px;
  }
  .continue-card {
    padding:14px;
  }
  .home-title .eyebrow {
    font-size:12px;
  }
  .practice {
    min-height:552px;
  }
  .word-area {
    min-height:115px;
    max-height:165px;
    padding:9px 17px;
  }
  .word-area h2 {
    font-size:2.9rem;
  }
  .sound-button {
    height:36px;
    width:36px;
  }
  .sound-button svg {
    width:23px;
    height:23px;
  }
  .answer {
    min-height:52px;
    font-size:18px;
  }
  .recall-prompt {
    min-height:172px;
  }
  .question-label {
    font-size:20px;
  }
  .word-top {
    min-height:23px;
  }
  #quiz {
    gap:7px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Let long translations and enlarged text grow instead of overlapping controls. */ #quiz {
  min-height:min-content;
}

.answer>span:nth-child(2) {
  min-width:0;
  overflow-wrap:break-word;
}

.level-copy bdi {
  white-space:nowrap;
}

.reset-settings {
  display:grid;
  gap:12px;
  margin-top:22px;
}

.reset-settings h2,
.reset-settings p {
  margin:0;
}

.reset-settings p {
  font-size:14px;
}

.reset-settings select {
  width:100%;
  min-width:0;
  min-height:48px;
  padding:10px;
  border:1px solid #bbcddd;
  border-radius:12px;
  background:var(--surface);
  color:inherit;
  font:inherit;
}

.danger-button {
  min-height:48px;
  padding:12px 18px;
  border:1px solid #a82b35;
  border-radius:14px;
  background:var(--tint-red);
  color:var(--ink-red);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.danger-button:hover {
  background:var(--tint-red);
}

.reset-actions {
  display:grid;
  gap:12px;
  margin-top:24px;
}

#resetDescription {
  white-space:pre-line;
  line-height:1.8;
}

#resetError {
  color:var(--ink-red);
}

.sound-state {
  display:block;
  font-size:14px;
  color:var(--muted);
  text-align:center;
  line-height:1.3;
}

.sound-button.sound-off {
  background:#637c95;
  box-shadow:none;
}

.sound-button[aria-pressed="true"] {
  outline:3px solid #aedcff;
  outline-offset:3px;
}

/* Focused paths,
one task per screen. */ :root {
  --muted:#526d88;
}

.progress-link,
.text-button {
  background:none;
  border:0;
  font:inherit;
  font-weight:600;
  color:var(--ink-blue);
  min-height:44px;
}

.progress-link {
  align-self:center;
}

.home-screen {
  gap:16px;
}

.home-title .eyebrow {
  font-size:14px;
}

.home-progress {
  font-size:14px;
}

.menu-card small,
.continue-card small {
  font-size:14px;
}

.segmented {
  display:flex;
  background:var(--tint-blue-strong);
  border-radius:16px;
  padding:4px;
  gap:4px;
}

.segmented button {
  flex:1;
  border:0;
  border-radius:12px;
  background:transparent;
  font:inherit;
  min-height:44px;
  padding:8px;
  color:var(--ink);
}

.segmented button[aria-pressed=true] {
  background:var(--surface);
  box-shadow:0 3px 8px #274e7d15;
  font-weight:700;
}

.size-choice {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:600;
  margin:18px 0;
}

select {
  font:inherit;
  color:var(--ink);
  border:1px solid #c5d7e7;
  border-radius:12px;
  min-height:46px;
  padding:9px 12px;
  background:var(--surface);
  max-width:100%;
}

.topic-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.topic-card {
  border:1px solid #d9e6f0;
  border-bottom:3px solid #cbddea;
  background:var(--surface);
  border-radius:20px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px;
  text-align:right;
  min-width:0;
  min-height:104px;
}

.topic-card>span:nth-child(2) {
  flex:1;
  min-width:0;
  display:grid;
  gap:5px;
}

.topic-card b {
  font-size:17px;
}

.topic-card small {
  font-size:14px;
  color:var(--muted);
}

.topic-symbol {
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--tint-blue);
  color:var(--ink-blue);
  font-size:26px;
  min-width:42px;
  min-height:46px;
}

.topic-card:nth-child(3n+2) .topic-symbol {
  background:var(--tint-green);
  color:var(--ink-green);
}

.topic-card:nth-child(3n) .topic-symbol {
  background:var(--tint-amber);
  color:var(--ink-amber);
}

.topic-card:hover {
  border-color:#83b8e4;
}

.chips {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:25px 0;
}

.chip {
  border:1px solid #cbddec;
  background:var(--surface);
  border-radius:16px;
  min-height:48px;
  padding:10px 16px;
  font:inherit;
}

.chip[aria-pressed=true] {
  background:#237fe4;
  color:white;
  border-color:#237fe4;
}

.topic-setup {
  display:grid;
  gap:10px;
  padding:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
}

.topic-setup label {
  font-weight:700;
  margin-top:8px;
}

.topic-setup small {
  font-size:14px;
  color:var(--muted);
}

.topic-count {
  text-align:center;
  margin:24px 0;
  font-size:16px;
}

.quiz-actions {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.quiz-actions button {
  font-size:14px;
  min-height:44px;
  padding:7px 4px;
  color:var(--muted);
}

.quiz-actions:has(#alreadyKnow[hidden]) {
  grid-template-columns:1fr 1fr;
}

.example-card {
  background:var(--surface);
  border:1px solid #ccdeed;
  border-radius:24px;
  padding:24px;
  text-align:center;
  box-shadow:var(--shadow);
}

.example-card h3 {
  font-size:22px;
  margin:8px 0 20px;
}

.example-card p[lang=en] {
  font:600 23px/1.6 Inter,Arial,sans-serif;
  color:var(--ink);
}

.example-card p {
  font-size:18px;
  line-height:1.7;
}

.example-card .next-button {
  margin-top:24px;
}

#quiz.show-example .answers,
#quiz.show-example .quiz-actions,
#quiz.show-example .question-label,
#quiz.show-example .recall-prompt {
  display:none!important;
}

#quiz.show-example .word-area {
  max-height:160px;
  min-height:110px;
  flex:0;
}

#quiz.show-example .word-area h2 {
  font-size:42px;
}

#quiz.show-example .word-line {
  gap:2px;
}

#quiz.show-example .sound-state {
  display:none;
}

.summary-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  width:100%;
  margin-bottom:20px;
}

.summary-grid>div {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  display:grid;
  gap:6px;
  padding:18px;
}

.summary-grid strong {
  font:800 32px Inter,Arial,sans-serif;
}

.summary-grid span {
  color:var(--muted);
  font-size:14px;
}

.backup-card {
  display:grid;
  gap:14px;
}

.backup-card h2,
.backup-card p {
  margin:0;
}

.backup-card p {
  line-height:1.8;
  font-size:15px;
}

.previous-example {
  text-align:center;
  background:var(--tint-blue);
  padding:16px;
  border-radius:18px;
}

.previous-example p[lang=en] {
  font:500 21px/1.6 Inter,Arial,sans-serif;
}

.previous-example p:last-child {
  margin-bottom:0;
}

.previous-example:has(p:empty) {
  display:none;
}

.level-copy small {
  font-size:14px;
}

.level-num {
  display:none;
}

.level-copy b {
  font-size:18px;
}

.word-number,
.pill,
.practice-top,
.session-label,
.feedback,
.play-bottom button {
  font-size:14px;
}

.practice-top {
  flex-wrap:wrap;
  padding:5px 0;
}

.word-number {
  white-space:normal;
}

.feedback:empty {
  display:none;
}

.feedback-area:has(.feedback:empty) {
  min-height:0;
}

.play-bottom button {
  min-height:44px;
}

.practice {
  height:auto;
  min-height:calc(100dvh - 88px);
  max-height:none;
}

.word-area {
  min-height:150px;
}

.play-screen .practice {
  gap:4px;
}

button:focus-visible,
select:focus-visible {
  outline:3px solid #115bb0;
  outline-offset:3px;
}

@media(max-width:600px) {
  .topic-grid {
    grid-template-columns:1fr;
  }
  .topic-card {
    min-height:86px;
    padding:16px;
  }
  .topic-card b {
    font-size:18px;
  }
  .home-screen {
    gap:12px;
  }
  .home-title h1 {
    font-size:30px;
  }
  .menu-card {
    min-height:126px;
  }
  .menu-card b {
    font-size:17px;
  }
  .menu-card small {
    font-size:14px;
  }
  .level-copy b {
    font-size:17px;
  }
  .level-copy small {
    font-size:14px;
  }
  .practice {
    min-height:calc(100dvh - 68px);
    height:auto;
  }
  .word-area {
    min-height:140px;
    max-height:210px;
    flex:1;
  }
  .practice-top {
    font-size:14px;
  }
  .session-label {
    font-size:14px;
  }
  .word-top {
    font-size:14px;
  }
  .pill,
  .word-number {
    font-size:13px;
  }
  .answer {
    font-size:19px;
    min-height:55px;
  }
  .example-card {
    padding:20px;
  }
  .example-card p[lang=en] {
    font-size:21px;
  }
  .example-card p {
    font-size:17px;
  }
  .example-card h3 {
    font-size:21px;
  }
  .summary-grid {
    gap:10px;
  }
  .summary-grid>div {
    padding:15px;
  }
  .topic-setup {
    padding:20px;
  }
  .complete {
    padding:20px 0;
  }
  .home-progress strong span {
    font-size:14px;
  }
}

@media(min-height:780px) {
  body[data-screen=play] .practice {
    min-height:calc(100dvh - 88px);
  }
  body[data-screen=play] .word-area {
    min-height:190px;
  }
}

.source-link {
  font-size:14px;
  color:var(--ink-blue);
  display:inline-block;
  min-height:32px;
}

.level-copy {
  overflow:hidden;
}

#levelOrderNote {
  margin-bottom:4px;
}

#backupStatus:empty {
  display:none;
}

#restoreError {
  color:var(--ink-red);
}

/* A boot failure must still say something,
before any script has run. */
         .boot-error {
  max-width:420px;
  margin:80px auto;
  padding:28px 24px;
  text-align:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.boot-error h1 {
  font-size:21px;
  margin-bottom:10px;
}

.boot-error p {
  color:var(--muted);
  line-height:1.7;
}

.boot-error button {
  border:0;
  border-radius:14px;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  padding:12px 22px;
}

/* Dark theme: only the roles change,
every rule above stays as written. */
         @media (prefers-color-scheme:dark) {
  /* The device asks for dark,
  and the reader has not overridden it. */
         :root:not([data-theme=light]) {
    --ink:#e8eef8;
    --muted:#9aabc2;
    --blue:#4d9bf5;
    --green:#3ed08a;
    --border:#25334a;
    --surface:#16202f;
    --shadow:0 8px 25px #0006;
    --surface-soft:#1c283a;
    --surface-faint:#ffffff14;
    --tint-blue:#1a2739;
    --tint-blue-strong:#22334a;
    --tint-green:#14312a;
    --tint-purple:#241f3d;
    --tint-amber:#33280f;
    --tint-red:#3a1f1f;
    --ink-red:#ff9b93;
    --ink-amber:#f0bc5c;
    --ink-purple:#b39cf5;
    --ink-blue:#79bbff;
    --ink-green:#5fd99b;
    --page:radial-gradient(ellipse at 10% 90%,#12261f 0,transparent 45%),linear-gradient(150deg,#0d1626,#101d31 70%,#0d1f24);
  }
  :root:not([data-theme=light]) .brand-mark {
    box-shadow:0 3px 0 #1b5ea8;
  }
}

/* An explicit choice wins over the device in both directions. */
       :root[data-theme=dark] {
  --ink:#e8eef8;
  --muted:#9aabc2;
  --blue:#4d9bf5;
  --green:#3ed08a;
  --border:#25334a;
  --surface:#16202f;
  --shadow:0 8px 25px #0006;
  --surface-soft:#1c283a;
  --surface-faint:#ffffff14;
  --tint-blue:#1a2739;
  --tint-blue-strong:#22334a;
  --tint-green:#14312a;
  --tint-purple:#241f3d;
  --tint-amber:#33280f;
  --tint-red:#3a1f1f;
  --ink-red:#ff9b93;
  --ink-amber:#f0bc5c;
  --ink-purple:#b39cf5;
  --ink-blue:#79bbff;
  --ink-green:#5fd99b;
  --page:radial-gradient(ellipse at 10% 90%,#12261f 0,transparent 45%),linear-gradient(150deg,#0d1626,#101d31 70%,#0d1f24);
}

:root[data-theme=dark] .brand-mark {
  box-shadow:0 3px 0 #1b5ea8;
}

/* The personal game: generation stages,
the journey line,
and its chapters. */ .menu-card.wide {
  grid-column:1 / -1;
}

.stages {
  display:grid;
  gap:9px;
  margin:14px 0;
}

.stage {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:15px;
}

.stage span:first-child {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  border:1px solid var(--border);
  font-size:12px;
  flex:none;
}

.stage.done {
  color:var(--ink-green);
}

.stage.done span:first-child {
  border-color:currentColor;
}

.stage.current {
  color:var(--ink);
  font-weight:600;
}

.stage.current span:first-child {
  border-color:var(--blue);
  color:var(--blue);
  animation:stage-pulse 1.1s ease-in-out infinite;
}

@keyframes stage-pulse {
  50% {
    opacity:.35;
  }
}

@media (prefers-reduced-motion:reduce) {
  .stage.current span:first-child {
    animation:none;
  }
}

.new-words {
  border-inline-start:4px solid var(--blue);
}

.new-words button {
  margin-top:8px;
  width:100%;
}

#gameCoverage .bar {
  margin:10px 0 6px;
}

/* The falling-word arcade. Everything inside the field is positioned against
         it,
so a word's travel is simply a percentage of the field height. */
      .arcade-screen {
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:8px;
}

.arcade-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:700;
}

.arcade-lives {
  color:var(--ink-red);
  letter-spacing:2px;
  font-size:19px;
}

.arcade-level {
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

.arcade-score {
  font-size:22px;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
}

.arcade-field {
  position:relative;
  flex:1;
  min-height:220px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--tint-blue);
  overflow:hidden;
}

.arcade-word {
  position:absolute;
  top:0;
  padding:9px 16px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font:700 26px Inter,Arial,sans-serif;
  color:var(--ink);
  white-space:nowrap;
  transform:translateY(-50%);
  will-change:top;
}

.arcade-word.hit {
  background:var(--green);
  border-color:var(--green);
  color:#fff;
  transition:transform .25s ease,opacity .25s ease;
  transform:translateY(-50%) scale(1.25);
  opacity:0;
}

.arcade-word.miss {
  background:var(--tint-red);
  border-color:var(--ink-red);
  color:var(--ink-red);
  animation:arcade-shake .3s;
}

@keyframes arcade-shake {
  25% {
    margin-inline-start:-7px;
  }
  75% {
    margin-inline-start:7px;
  }
}

.arcade-floor {
  position:absolute;
  inset-inline:0;
  bottom:8%;
  height:4px;
  background:linear-gradient(90deg,transparent,var(--ink-red),transparent);
  opacity:.5;
}

.arcade-combo {
  position:absolute;
  top:10px;
  inset-inline-end:14px;
  font:800 26px Inter,Arial,sans-serif;
  color:var(--green);
}

.arcade-flash {
  position:absolute;
  inset-inline:0;
  bottom:16px;
  text-align:center;
  font-weight:700;
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}

.arcade-flash.show {
  opacity:1;
}

.arcade-flash.good {
  color:var(--ink-green);
  font-size:21px;
}

.arcade-flash.bad {
  color:var(--ink-red);
}

.arcade-options {
  display:grid;
  gap:9px;
}

.arcade-option {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:54px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
  color:var(--ink);
  font-size:17px;
  font-weight:600;
  text-align:start;
  transition:transform .08s ease;
}

.arcade-option:active {
  transform:scale(.98);
}

.arcade-key {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:9px;
  background:var(--tint-blue-strong);
  color:var(--muted);
  font-size:13px;
  flex:none;
}

.arcade-option.correct {
  border-color:var(--green);
  background:var(--tint-green);
}

.arcade-option.wrong {
  border-color:var(--ink-red);
  background:var(--tint-red);
}

.arcade-overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:26px;
  text-align:center;
  background:var(--surface);
  border-radius:var(--radius);
  z-index:2;
}

.arcade-overlay h2 {
  margin:0;
  font-size:22px;
}

.arcade-overlay p {
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.arcade-overlay button {
  width:100%;
  max-width:280px;
}

.arcade-overlay-icon {
  font-size:38px;
  line-height:1;
}

@media (max-width:600px) {
  .arcade-word {
    font-size:22px;
  }
  .arcade-field {
    min-height:180px;
  }
}

/* The picker,
and the four mini-games it leads to. */ .mode-grid {
  display:grid;
  gap:11px;
}

.mode-card {
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  text-align:start;
  color:inherit;
}

.mode-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--tint-blue-strong);
  font-size:22px;
  flex:none;
}

.mode-text {
  display:grid;
  gap:2px;
}

.mode-text b {
  font-size:17px;
}

.mode-text small {
  color:var(--muted);
}

.mode-fit {
  color:var(--ink-blue);
  font-weight:600;
}

.mode-host {
  display:grid;
  gap:14px;
  margin:14px 0;
}

.mode-clue {
  margin:0;
  text-align:center;
  font-size:18px;
  font-weight:600;
}

.mode-clue.big {
  font-size:26px;
}

.mode-truth {
  text-align:center;
  font-weight:700;
  color:var(--ink-green);
  font-size:19px;
}

/* Sentence order */ .sentence-line {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-height:60px;
  padding:11px;
  border:1px dashed var(--border);
  border-radius:16px;
  background:var(--tint-blue);
}

.sentence-line.right {
  border-style:solid;
  border-color:var(--green);
  background:var(--tint-green);
}

.sentence-line.wrong {
  border-style:solid;
  border-color:var(--ink-red);
  background:var(--tint-red);
}

.sentence-bank {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:center;
}

.sentence-tile {
  padding:9px 13px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  color:var(--ink);
  font:600 17px Inter,Arial,sans-serif;
}

.sentence-tile.pool {
  background:var(--tint-blue-strong);
}

/* Build the word */ .letter-line {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}

.letter-slot {
  width:40px;
  height:50px;
  border:2px dashed var(--border);
  border-radius:11px;
  background:transparent;
  font:700 23px Inter,Arial,sans-serif;
  color:var(--ink);
}

.letter-slot.filled {
  border-style:solid;
  background:var(--surface);
}

.letter-line.right .letter-slot {
  border-color:var(--green);
  background:var(--tint-green);
}

.letter-line.wrong .letter-slot {
  border-color:var(--ink-red);
  background:var(--tint-red);
}

.letter-tray {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:center;
}

.letter-tile {
  width:44px;
  height:52px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--tint-blue-strong);
  font:700 23px Inter,Arial,sans-serif;
  color:var(--ink);
}

.letter-tile:disabled {
  opacity:.25;
}

/* Word search */ .search-grid {
  display:grid;
  grid-template-columns:repeat(var(--search-size),1fr);
  gap:3px;
  max-width:420px;
  margin:0 auto;
  width:100%;
}

.search-cell {
  aspect-ratio:1;
  border:1px solid var(--border);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  font:600 15px Inter,Arial,sans-serif;
  padding:0;
  text-transform:uppercase;
}

.search-cell.picking {
  background:var(--blue);
  color:#fff;
}

.search-cell.found {
  background:var(--tint-green);
  border-color:var(--green);
  color:var(--ink-green);
}

.search-cell.missed {
  background:var(--tint-red);
  border-color:var(--ink-red);
}

.search-clues {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:center;
}

.search-clue {
  padding:5px 11px;
  border-radius:999px;
  background:var(--tint-blue-strong);
  font-size:14px;
  font-weight:600;
}

.search-clue.done {
  background:var(--tint-green);
  color:var(--ink-green);
  text-decoration:line-through;
}

.search-clue.missed {
  background:var(--tint-red);
  color:var(--ink-red);
}

/* Memory */ .memory-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.memory-card {
  min-height:78px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:15px;
  background:var(--tint-blue-strong);
  color:transparent;
  font:600 15px Heebo,Arial,sans-serif;
  line-height:1.3;
  transition:background .18s ease;
}

.memory-card.open {
  background:var(--surface);
  color:var(--ink);
}

.memory-card.matched {
  background:var(--tint-green);
  border-color:var(--green);
  color:var(--ink-green);
}

@media (min-width:600px) {
  .memory-grid {
    grid-template-columns:repeat(4,1fr);
  }
}

/* Snake. Cells are positioned inside a square board by percentage,
so the
       board scales to any screen with no cell size computed in script. */
    .snake-screen {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.snake-stage {
  position:relative;
}

.snake-board {
  position:relative;
  aspect-ratio:1;
  width:100%;
  max-width:460px;
  margin:0 auto;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--tint-blue);
  overflow:hidden;
  touch-action:none;
}

.snake-part {
  position:absolute;
  border-radius:5px;
  background:var(--green);
  transform:scale(.86);
}

.snake-part.head {
  background:var(--blue);
  transform:scale(.95);
}

.snake-food {
  position:absolute;
  padding:4px 9px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--ink-amber);
  color:var(--ink);
  font:700 14px Inter,Arial,sans-serif;
  white-space:nowrap;
  box-shadow:var(--shadow);
  pointer-events:none;
}

.snake-flash {
  position:absolute;
  top:12px;
  inset-inline-end:16px;
  font:800 22px Inter,Arial,sans-serif;
  color:var(--ink-green);
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}

.snake-flash.show {
  opacity:1;
}

/* English is spoken and written large,
with Hebrew under it,
so the reader can
       follow without the game stopping. */
    .snake-narrator {
  min-height:62px;
  padding:10px 14px;
  border-radius:16px;
  background:var(--surface);
  border:1px solid var(--border);
  opacity:0;
  transition:opacity .25s;
}

.snake-narrator.show {
  opacity:1;
}

#snakeLineEn {
  margin:0;
  font:700 17px Inter,Arial,sans-serif;
  color:var(--ink);
}

#snakeLineHe {
  margin:2px 0 0;
  color:var(--muted);
  font-size:15px;
}

.snake-pad {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-areas:". up ." "left down right";
  gap:7px;
  max-width:260px;
  margin:0 auto;
  direction:ltr;
}

.snake-pad button {
  min-height:50px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  color:var(--ink);
  font-size:21px;
}

#snakeUp {
  grid-area:up;
}

#snakeDown {
  grid-area:down;
}

#snakeLeft {
  grid-area:left;
}

#snakeRight {
  grid-area:right;
}

/* The daily streak,
the anchors,
and the hands-free review. */ .streak-card {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:4px 14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.streak-card.met {
  border-color:var(--green);
  background:var(--tint-green);
}

.streak-flame {
  font-size:28px;
  line-height:1;
}

.streak-text {
  display:grid;
  gap:1px;
}

.streak-text b {
  font-size:17px;
}

.streak-text small {
  color:var(--muted);
}

.streak-best {
  font-size:12px;
}

.streak-card .bar {
  grid-column:1 / -1;
  margin-top:8px;
}

.hook-hint {
  margin:0 0 6px;
  text-align:center;
  min-height:26px;
}

.hook-hint button {
  border:1px dashed var(--border);
  background:transparent;
  border-radius:999px;
  padding:4px 12px;
  color:var(--muted);
  font-size:14px;
}

#hookHintText {
  display:inline-block;
  padding:5px 13px;
  border-radius:999px;
  background:var(--tint-amber);
  color:var(--ink-amber);
  font-weight:600;
  font-size:15px;
}

.hook-editor {
  margin:14px 0 4px;
  padding:13px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--tint-blue);
  text-align:start;
}

.hook-editor b {
  display:block;
  margin-bottom:4px;
}

.hook-saved {
  margin:8px 0;
  padding:8px 12px;
  border-radius:12px;
  background:var(--tint-amber);
  color:var(--ink-amber);
  font-weight:600;
}

#hookInput {
  width:100%;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--surface);
  color:var(--ink);
  margin-top:8px;
}

.hook-actions {
  display:flex;
  gap:8px;
  margin-top:8px;
}

.hook-actions button {
  flex:1;
}

.audio-player {
  text-align:center;
}

.audio-word {
  font:800 38px Inter,Arial,sans-serif;
  margin:10px 0 4px;
  color:var(--ink);
  overflow-wrap:anywhere;
}

.audio-meaning {
  font-size:20px;
  font-weight:600;
  color:var(--ink-blue);
  min-height:28px;
  margin:0 0 12px;
}

.audio-controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin-bottom:12px;
}

.audio-controls .next-button {
  flex:1;
  max-width:200px;
}

.audio-controls .secondary-button {
  min-width:56px;
}

.hook-label {
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  background:var(--tint-blue-strong);
  color:var(--ink-blue);
  font-size:12px;
  font-weight:700;
  margin-bottom:4px;
}

/* The accent pill: one tap between the British and the American voice. It sits
   next to the speaker on the practice screen and above the story. */
.accent-pill {
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:999px;
  min-width:46px;
  min-height:46px;
  padding:0 10px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.accent-choice button {
  font-size:16px;
}

/* --- the story screen --- */

.story-screen {
  max-width:680px;
}

.story-tools {
  margin:18px 0 6px;
}

.story-tools-row {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.story-ai-button {
  width:100%;
  margin-top:10px;
}

.story-ai-button:disabled {
  opacity:.6;
}

/* The code is Latin text typed on an RTL page, so the field is forced LTR;
   without it the caret starts on the wrong side and the letters look reversed. */
.story-ai-gate {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:10px;
}

.story-ai-gate input {
  direction:ltr;
  text-align:left;
  border:1px solid #cbdbe8;
  background:var(--surface);
  border-radius:12px;
  padding:12px;
  color:var(--ink);
  font-size:16px;
}

.story-ai-error {
  color:var(--ink-red);
}

.story-article {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  margin:14px 0 20px;
}

.story-scene {
  margin:0 0 26px;
}

.story-scene h2 {
  font-size:16px;
  color:var(--ink-blue);
  margin:0 0 10px;
  padding-bottom:8px;
  border-bottom:1px solid var(--border);
}

.story-line {
  margin:0 0 12px;
  line-height:2;
}

/* The scene opener frames the place; it is not one of the reader's words. */
.story-aside .story-en {
  color:var(--muted);
  font-style:italic;
}

.story-en {
  display:block;
  font-size:19px;
  text-align:left;
}

.story-he {
  display:block;
  font-size:15px;
  color:var(--muted);
  margin-top:2px;
}

/* The line being read aloud. */
.story-line.speaking {
  background:var(--tint-amber);
  border-radius:12px;
  box-shadow:0 0 0 8px var(--tint-amber);
}

/* Every word is tappable; a warehouse word is marked gently, because a loud
   highlight on half the page would make the story harder to read, not easier. */
.story-token {
  cursor:pointer;
  border-radius:5px;
  padding:1px 1px 2px;
}

.story-token.is-word {
  background:var(--tint-green);
  box-shadow:inset 0 -2px 0 #2bbe7455;
  font-weight:600;
}

.story-token:active {
  background:var(--tint-blue-strong);
}

/* The definition card, placed under the tapped word and kept on screen. */
/* One sentence, read on its own. Small and quiet: it sits beside every line in
   the story and must not compete with the words. */
.story-say {
  float:inline-start;
  margin-inline-end:8px;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--surface);
  font-size:13px;
  line-height:1;
  cursor:pointer;
  opacity:.5;
}

.story-say:hover,
.story-say:focus-visible {
  opacity:1;
}

/* Marked apart from the line the reading is on, so a story paused half way
   keeps showing where it stopped while another line is sampled. */
.story-line.sampling {
  box-shadow:0 0 0 2px var(--blue);
  border-radius:12px;
}

.story-audio-save {
  display:block;
  margin-top:10px;
  text-align:center;
  text-decoration:none;
}

.story-both {
  width:100%;
  margin-top:10px;
}

.story-both[disabled] {
  opacity:.55;
}

.story-pause {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  margin-top:12px;
  font-size:14px;
  color:var(--muted);
}

/* A range input is mirrored inside an RTL page, so dragging right would make
   the number go down while the number beside it goes up. Forcing LTR keeps the
   slider and its reading in agreement. */
.story-pause input {
  direction:ltr;
  width:100%;
  accent-color:var(--blue);
}

.story-pause-value {
  font-variant-numeric:tabular-nums;
  color:var(--ink);
  min-width:64px;
  text-align:left;
}

/* The line being translated aloud, shown even when the reader keeps the Hebrew
   hidden: hearing a sentence without being able to see it is worse than not
   hearing it at all. */
.story-line .story-he.is-speaking {
  color:var(--ink-blue);
}

/* The reading scrolls the page to keep up with the voice, so a control at the
   top of the screen is gone by the second paragraph. This one rides along. It
   lives inside the story section, so it disappears with the screen and needs no
   rule of its own to hide it elsewhere. */
.story-float {
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  z-index:29;
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 6px 6px 16px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 10px 30px #1028551f;
}

.story-float-progress {
  font-size:14px;
  font-variant-numeric:tabular-nums;
  color:var(--muted);
}

.story-float button {
  width:44px;
  height:44px;
  border-radius:50%;
  border:0;
  background:var(--blue);
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

/* Room for the pill to sit over, so it never covers the last line. */
.story-screen .bank-actions {
  margin-bottom:76px;
}

.story-pop {
  position:fixed;
  z-index:30;
  width:260px;
  max-width:calc(100vw - 24px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 12px 30px #10285526;
  padding:14px 16px;
}

.story-pop-head {
  display:flex;
  align-items:center;
  gap:8px;
}

.story-pop-head b {
  flex:1;
  font-size:19px;
}

.story-pop-head button {
  border:0;
  background:var(--tint-blue);
  border-radius:10px;
  min-width:34px;
  min-height:34px;
  font-size:16px;
  color:var(--ink);
  cursor:pointer;
}

.story-pop p {
  margin:8px 0 0;
  font-size:17px;
  font-weight:600;
}

.story-pop small {
  display:block;
  margin-top:6px;
  color:var(--ink-green);
  font-size:13px;
}

@media (max-width:420px) {
  .story-article {
    padding:16px;
  }
  .story-en {
    font-size:18px;
  }
}

/* --- Word Statistics Dashboard --- */
.stats-overview {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:20px;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:26px;
  padding:28px 24px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}

.stats-ring-card {
  display:grid;
  justify-items:center;
  gap:8px;
}

.stats-ring-card > span {
  font-size:14px;
  color:var(--muted);
}

.stats-ring {
  position:relative;
  width:100px;
  height:100px;
}

.stats-ring-svg {
  width:100%;
  height:100%;
  transform:rotate(-90deg);
}

.stats-ring-bg {
  fill:none;
  stroke:var(--tint-blue-strong);
  stroke-width:8;
}

.stats-ring-fill {
  fill:none;
  stroke:var(--green);
  stroke-width:8;
  stroke-linecap:round;
  transition:stroke-dashoffset .4s ease;
}

.stats-ring > strong {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font:800 26px Inter,Arial,sans-serif;
  color:var(--ink);
}

.stats-counts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.stats-counts > div {
  display:grid;
  gap:4px;
}

.stats-counts strong {
  font:700 24px Inter,Arial,sans-serif;
}

.stats-counts span {
  color:var(--muted);
  font-size:14px;
}

.stats-mastery {
  display:grid;
  gap:10px;
  margin:14px 0;
}

.stats-mastery-row {
  display:flex;
  align-items:center;
  gap:10px;
}

.stats-mastery-row span:nth-child(2) {
  flex:1;
  font-size:15px;
}

.stats-mastery-row strong {
  font:700 18px Inter,Arial,sans-serif;
}

.stats-dot {
  width:12px;
  height:12px;
  border-radius:50%;
  flex-shrink:0;
}

.stats-dot.green  { background:var(--green); }
.stats-dot.amber  { background:var(--ink-amber); }
.stats-dot.red    { background:var(--ink-red); }

.stats-upcoming,
#statsHardest {
  display:grid;
  gap:0;
}

.stats-upcoming-row,
.stats-hard-row {
  display:grid;
  grid-template-columns:minmax(80px,1fr) 1.4fr;
  gap:4px 14px;
  border-bottom:1px solid var(--border);
  padding:12px 0;
  align-items:center;
}

.stats-upcoming-row strong,
.stats-hard-row strong {
  font-family:Inter,Arial,sans-serif;
  text-align:left;
  overflow-wrap:anywhere;
}

.stats-upcoming-row small,
.stats-hard-row small {
  grid-column:1 / -1;
  font-size:13px;
  color:var(--muted);
}

.stats-upcoming-row:last-child,
.stats-hard-row:last-child {
  border-bottom:0;
}

@media (max-width:600px) {
  .stats-overview {
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    padding:22px 18px;
  }
  .stats-ring {
    width:90px;
    height:90px;
  }
  .stats-counts {
    width:100%;
  }
}

/* ── עיר המילים — City Game ─────────────────────────────────────── */

.city-screen {
  display:flex;
  flex-direction:column;
}

/* ── Menu ── */
.city-menu {
  text-align:center;
}

.city-menu-stats {
  display:flex;
  justify-content:center;
  gap:10px;
  margin:18px 0 28px;
}

.city-stat-pill {
  font-size:15px;
  font-weight:800;
  border-radius:20px;
  padding:6px 16px;
}

.city-stat-pill.amber { color:var(--ink-amber); background:var(--tint-amber); }
.city-stat-pill.blue  { color:var(--ink-blue);  background:var(--tint-blue);  }

.city-start-btn { font-size:20px; padding:18px; }

/* ── HUD ── */
.city-play {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.city-hud {
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 0;
  font-weight:700;
  font-size:14px;
}

.city-hud-lives { font-size:16px; letter-spacing:2px; }
.city-hud-level { flex:1; text-align:center; font-weight:800; }
.city-hud-count { color:var(--muted); }

.city-hud-coins {
  color:var(--ink-amber);
  background:var(--tint-amber);
  border-radius:14px;
  padding:2px 10px;
  font-size:13px;
}

/* ── Timer ── */
.city-timer {
  height:8px;
  background:var(--border);
  border-radius:4px;
  overflow:hidden;
}

.city-timer i {
  display:block;
  height:100%;
  border-radius:4px;
  background:var(--green);
  width:100%;
  transition:background .3s;
}

.city-timer i[data-urgency=warning] { background:var(--ink-amber); }

.city-timer i[data-urgency=critical] {
  background:var(--ink-red);
  animation:city-pulse .4s infinite alternate;
}

@keyframes city-pulse { to { opacity:.5; } }

/* ── Combo ── */
.city-combo {
  text-align:center;
  font-size:14px;
  font-weight:800;
  color:var(--ink-purple);
  background:var(--tint-purple);
  align-self:center;
  border-radius:12px;
  padding:3px 14px;
}

@keyframes city-combo-pop {
  0% { transform:scale(1); }
  40% { transform:scale(1.25); }
  100% { transform:scale(1); }
}

.city-combo-pop { animation:city-combo-pop .3s ease; }

/* ── NPC ── */
.city-npc-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:4px 0;
}

.city-avatar {
  font-size:46px;
  line-height:1;
  flex-shrink:0;
}

@keyframes city-enter {
  0%   { transform:translateY(16px) scale(.8); opacity:0; }
  50%  { transform:translateY(-4px) scale(1.06); opacity:1; }
  100% { transform:translateY(0) scale(1); }
}

.city-enter { animation:city-enter .4s cubic-bezier(.34,1.56,.64,1) both; }

.city-bubble {
  flex:1;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:4px 18px 18px 18px;
  padding:12px 16px;
  box-shadow:var(--shadow);
}

.city-order {
  margin:0;
  font-size:19px;
  font-weight:700;
  line-height:1.5;
  font-family:Inter,Arial,sans-serif;
}

/* ── Meaning bar ── */
.city-meaning-bar {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg,var(--tint-purple),var(--tint-blue));
  border-radius:14px;
  padding:8px 16px;
}

@keyframes city-mean-anim {
  0%   { opacity:0; transform:translateY(6px); }
  100% { opacity:1; transform:translateY(0); }
}

.city-mean-pop { animation:city-mean-anim .25s ease; }

.city-mean-word {
  font-size:17px;
  font-weight:800;
  color:var(--ink-blue);
  font-family:Inter,Arial,sans-serif;
}

.city-mean-eq { color:var(--muted); font-weight:500; }

.city-mean-he { font-size:17px; font-weight:700; }

/* ── Counter grid ── */
.city-counter {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:10px;
  margin-top:6px;
}

.city-item {
  border:2px solid var(--border);
  border-radius:16px;
  padding:18px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .1s,border-color .1s,background .15s,box-shadow .15s;
  min-height:66px;
  cursor:pointer;
}

.city-tint-blue   { background:var(--tint-blue); }
.city-tint-green  { background:var(--tint-green); }
.city-tint-purple { background:var(--tint-purple); }
.city-tint-amber  { background:var(--tint-amber); }

.city-item:hover:not(:disabled) {
  transform:translateY(-2px);
  box-shadow:0 4px 12px #2686f020;
  border-color:var(--blue);
}

.city-item:active:not(:disabled) { transform:scale(.94); }

.city-item-word {
  font-size:17px;
  font-weight:800;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  pointer-events:none;
}

/* Item states */
@keyframes city-pop {
  0%  { transform:scale(1); }
  30% { transform:scale(1.1); }
  100%{ transform:scale(1); }
}

.city-item.correct {
  background:var(--tint-green) !important;
  border-color:var(--green);
  animation:city-pop .3s ease;
}

.city-item.correct .city-item-word { color:var(--ink-green); }

.city-item.collected { opacity:.55; pointer-events:none; }

@keyframes city-shake {
  0%,100% { transform:translateX(0); }
  20%  { transform:translateX(-6px); }
  40%  { transform:translateX(6px); }
  60%  { transform:translateX(-4px); }
  80%  { transform:translateX(4px); }
}

.city-item.wrong {
  background:var(--tint-red) !important;
  border-color:var(--ink-red);
  animation:city-shake .35s ease;
}

.city-item.wrong .city-item-word { color:var(--ink-red); }

.city-item.missed {
  border-color:var(--blue);
  border-style:dashed;
}

.city-item.missed .city-item-word { color:var(--ink-blue); }

/* ── Flash ── */
.city-flash {
  text-align:center;
  font-size:16px;
  font-weight:700;
  padding:8px;
  border-radius:12px;
  margin-top:4px;
}

.city-flash-ok      { color:var(--ink-green); background:var(--tint-green); }
.city-flash-timeout { color:var(--ink-amber); background:var(--tint-amber); }

@media(max-width:600px) {
  .city-avatar { font-size:38px; }
  .city-order  { font-size:17px; }
  .city-counter { grid-template-columns:1fr 1fr; gap:8px; }
  .city-item { padding:14px 6px; min-height:58px; }
  .city-item-word { font-size:15px; }
  .city-start-btn { font-size:18px; padding:16px; }
  .city-mean-word,.city-mean-he { font-size:15px; }
}

/* ── פעלים וזמנים — Verbs & Tenses ──────────────────────────────────────── */
.verbs-screen {
  gap:16px;
}

.verbs-hub {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.verb-hub-status {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:15px;
}

.verb-hub-links {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.verbs-pane {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.verb-group-progress {
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

.verb-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:var(--shadow);
}

.verb-card-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.verb-word {
  font-size:26px;
  font-weight:800;
}

.verb-meaning {
  color:var(--muted);
  font-size:16px;
}

.verb-tenses {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.verb-tense-row {
  border-inline-start:3px solid var(--tint-blue-strong);
  padding-inline-start:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.verb-tense-label {
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}

.verb-sentence {
  font-size:18px;
  font-weight:600;
  line-height:1.5;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.verb-sentence-he {
  color:var(--muted);
  font-size:15px;
}

.verb-hl {
  color:var(--ink-blue);
  background:var(--tint-blue);
  padding:1px 5px;
  border-radius:6px;
}

.verb-hl-time {
  color:var(--ink-amber);
  background:var(--tint-amber);
  padding:1px 5px;
  border-radius:6px;
}

.verb-speak {
  background:none;
  border:0;
  font-size:19px;
  min-width:36px;
  min-height:36px;
  line-height:1;
}

.verb-person-note {
  color:var(--muted);
  font-size:13px;
}

.verb-card-actions {
  display:grid;
  gap:10px;
}

.verb-practice-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:var(--shadow);
}

.verb-practice-cue {
  font-size:17px;
  font-weight:600;
}

.verb-reveal {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}

.verb-recall-prompt {
  font-size:14px;
  color:var(--muted);
}

.verb-recall-buttons {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
}

.verbs-search {
  width:100%;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:15px;
  padding:10px 16px;
  font:inherit;
  background:var(--surface);
  color:var(--ink);
}

.verbs-filter-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
}

.verbs-list {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.verb-list-item {
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  min-height:52px;
  text-align:right;
}

.verb-list-word {
  font-weight:700;
  font-size:16px;
}

.verb-list-meaning {
  color:var(--muted);
  font-size:14px;
  margin-inline-end:auto;
}

.verb-list-badge {
  font-size:14px;
}

@media(max-width:600px) {
  .verb-word { font-size:22px; }
  .verb-sentence { font-size:16px; }
  .verb-hub-links { grid-template-columns:1fr; }
  .verb-recall-buttons { grid-template-columns:1fr; }
}
