/* Patch 7b: centre the question on wide screens */
.game .quiz-question { margin-left: auto !important; margin-right: auto !important; }

/* ==========================================================================
   10000ord — design system
   Editorial "lexicon" look: warm paper, ink type, serif headwords,
   one confident accent. Light by default, automatic dark mode.
   Fonts (loaded in <head>): Fraunces, IBM Plex Sans, IBM Plex Mono.
   ========================================================================== */

:root {
  --paper: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #f1ebe1;
  --ink: #1d1b18;
  --ink-2: #4a463f;
  --muted: #7a746a;
  --line: #e4dccf;
  --line-strong: #cfc4b3;

  --accent: #2c46b8;
  --accent-ink: #ffffff;
  --accent-soft: #e6eafb;
  --accent-hover: #2339a0;

  --good: #1f7a4d;
  --good-soft: #e3f3ea;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --flame: #d9822b;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .05), 0 8px 28px rgba(29, 27, 24, .07);
  --shadow-sm: 0 1px 2px rgba(29, 27, 24, .06);
  --focus: 0 0 0 3px rgba(44, 70, 184, .35);

  --content: 680px;
  --wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412;
    --surface: #1d1c19;
    --surface-2: #26241f;
    --ink: #efebe4;
    --ink-2: #cdc7bd;
    --muted: #9a9387;
    --line: #34312b;
    --line-strong: #4a463e;

    --accent: #8ea2ff;
    --accent-ink: #10131f;
    --accent-soft: #232a47;
    --accent-hover: #a9b8ff;

    --good: #6fcf97;
    --good-soft: #1b3326;
    --bad: #ff8a80;
    --bad-soft: #3a1f1d;
    --flame: #f0a35a;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --focus: 0 0 0 3px rgba(142, 162, 255, .4);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main, body > .quiz-shell, body > .auth-shell, body > .blog-index,
body > .blog-post, body > .container { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--accent-soft); }

/* --------------------------------------------------------------------------
   Site header (templates/_site_header.html)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.site-logo:hover { color: var(--ink); }
.site-logo__num { font-variant-numeric: lining-nums; }
.site-logo__word { color: var(--accent); font-style: italic; font-weight: 600; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.site-nav .site-nav__cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 6px;
}
.site-nav .site-nav__cta:hover { background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Quiz layout (word quiz + verb quiz)
   -------------------------------------------------------------------------- */

.quiz-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  text-align: center;
}

.eyebrow,
.quiz-shell > h2:first-child,
body.landing-page .quiz-shell > h2:first-of-type {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 10px;
}

.landing-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 24px;
}

.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  margin: 0 auto 28px;
}

/* Segmented controls: language + direction */
.language-selector,
.quiz-direction-selector {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 10px;
}

.quiz-direction-selector { margin-bottom: 4px; }

.lang-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.lang-btn.selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}
.quiz-direction-selector .lang-btn { font-size: .82rem; padding: 5px 14px; }

/* The headword */
.quiz-question,
body:not(.blog-body):not(.seo-page):not(.auth-page) .quiz-card > h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 30px auto 26px;
  max-width: 20ch;
  overflow-wrap: anywhere;
}

/* Verb sentences are longer: smaller headword */
body.verbs-page .quiz-question,
body.verbs-page .quiz-card > h1 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  max-width: 32ch;
  line-height: 1.35;
}

/* Answer options: 2x2 grid */
.options { margin: 0 auto; max-width: 560px; }

.options form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.options button,
.options .btn {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  overflow-wrap: anywhere;
}
.options button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-1px);
}
.options button:active { transform: translateY(1px); box-shadow: none; }

/* Feedback after answering */
.feedback, .messages, .flash, .flash-messages, .error-message {
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  background: var(--surface-2);
  color: var(--ink-2);
}
.flash-messages p, .messages p { margin: 0; }
.correct { color: var(--good); }
.incorrect { color: var(--bad); }
.feedback.correct, .correct.feedback, p.correct, div.correct {
  background: var(--good-soft); color: var(--good); font-weight: 500;
}
.feedback.incorrect, .incorrect.feedback, p.incorrect, div.incorrect {
  background: var(--bad-soft); color: var(--bad); font-weight: 500;
}
.error-message { background: var(--bad-soft); color: var(--bad); }

/* Secondary controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
}
.controls a { text-decoration: none; }
.controls form { display: inline; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }

.controls button,
.controls form button {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.controls button:hover,
.controls form button:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Progress, streak, share, CEFR scale
   -------------------------------------------------------------------------- */

.progress-share-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 10px;
}
.progress-share-row .progress-container { flex: 1; margin: 0; }

.progress-container { width: 100%; max-width: 640px; margin: 0 auto 10px; text-align: left; }

.progress-label {
  order: -1;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 6px;
  position: static;
  transform: none;
}

.progress-container { display: flex; flex-direction: column; }

.progress-inner {
  position: relative;
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7fd1c4));
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

.share-progress-control { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.share-progress-btn {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .08s ease;
}
.share-progress-btn::before { content: "↗ "; }
.share-progress-btn:hover { background: var(--accent-hover); }
.share-progress-btn:active { transform: translateY(1px); }

.share-progress-status { font-size: .78rem; color: var(--good); min-height: 1em; }

.daily-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 6px auto 4px;
}
.daily-goal-reached { color: var(--good); }

.daily-reminder { margin: 4px 0 26px; font-size: .82rem; }
.daily-reminder a { color: var(--muted); }
.daily-reminder a::before { content: "⏰ "; }
.daily-reminder a:hover { color: var(--accent); }

/* CEFR scale: markers positioned by --pos (0–100%) */
.cefr-markers {
  position: relative;
  max-width: 640px;
  height: 64px;
  margin: 0 auto 8px;
  border-top: 1px solid var(--line-strong);
}

.cefr-marker {
  position: absolute;
  top: 0;
  left: var(--pos, 0%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  min-width: 56px;
  text-align: center;
}
.cefr-marker::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.cefr-marker.is-reached::before { background: var(--accent); border-color: var(--accent); }
.cefr-marker:first-child { transform: translateX(0); align-items: flex-start; text-align: left; }
.cefr-marker:first-child::before { left: -4px; }
.cefr-marker:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.cefr-marker:last-child::before { right: -4px; }

.cefr-marker span { display: block; line-height: 1.3; }
.cefr-marker span:nth-child(1) { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--ink); }
.cefr-marker span:nth-child(2) { font-size: .72rem; color: var(--muted); }
.cefr-marker span:nth-child(3) { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

/* Fallback when markers have no --pos: spread evenly */
.cefr-markers:not(.is-positioned) {
  display: flex;
  justify-content: space-between;
  height: auto;
  padding-top: 0;
}
.cefr-markers:not(.is-positioned) .cefr-marker {
  position: relative;
  left: auto;
  transform: none;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 0;
  font-size: .9rem;
}
.auth-links a { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Landing SEO section
   -------------------------------------------------------------------------- */

.landing-seo {
  max-width: var(--content);
  margin: 24px auto 0;
  padding: 48px 20px 56px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.landing-seo h2 { margin-top: 0; }
.landing-seo p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }

.landing-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 44px;
}
.landing-seo-links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
.landing-seo-links a:hover { border-color: var(--accent); color: var(--accent); }

.landing-faq { border-top: 1px solid var(--line); }
.landing-faq section { border-bottom: 1px solid var(--line); padding: 18px 0; }
.landing-faq h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.landing-faq p { margin: 0; font-size: .98rem; }

/* --------------------------------------------------------------------------
   SEO pages: word lists, verb lists, verb detail
   -------------------------------------------------------------------------- */

.seo-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.seo-content h1 { margin-bottom: .4em; }
.seo-content h2 { margin-top: 1.8em; }
.seo-content > p { color: var(--ink-2); font-size: 1.02rem; max-width: var(--content); }

.seo-breadcrumb {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.seo-breadcrumb a { color: var(--muted); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--accent); }

.seo-cta,
.share-cta,
.blog-cta-btn,
.blog-post a.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 20px;
  transition: background .15s ease, transform .08s ease;
}
.seo-cta::after, .share-cta::after, .blog-cta-btn::after { content: "→"; }
.seo-cta:hover, .share-cta:hover, .blog-cta-btn:hover,
.blog-post a.blog-cta-btn:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Tables (SEO + blog) */
.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 22px 0 26px;
  box-shadow: var(--shadow-sm);
}

.seo-table, .blog-post table {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
.seo-table th, .seo-table td,
.blog-post table th, .blog-post table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.seo-table tbody tr:last-child > *,
.blog-post table tbody tr:last-child > * { border-bottom: 0; }

.seo-table thead th,
.blog-post table thead th {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.seo-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }

.seo-table td:first-child { font-family: var(--mono); font-size: .82rem; color: var(--muted); width: 1%; white-space: nowrap; }
.seo-table td:nth-child(2) { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; color: var(--ink); }

.seo-verb-table th[scope="row"] {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  width: 1%;
  white-space: nowrap;
}
.seo-verb-table td span { display: block; }
.seo-verb-table td span:first-child { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.seo-verb-table td strong { color: var(--accent); font-weight: 600; }
.seo-translation { color: var(--muted); font-size: .9rem; margin-top: 2px; }

.seo-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.seo-pagination a { text-decoration: none; }

.seo-level { margin-top: 30px; }
.seo-level h2 { font-size: 1.3rem; margin: 0 0 12px; }

.seo-range-list, .seo-verb-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.seo-verb-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.seo-range-list a, .seo-verb-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: .92rem;
  transition: border-color .15s ease, color .15s ease;
}
.seo-range-list a { font-family: var(--mono); font-size: .85rem; text-align: center; }
.seo-range-list a:hover, .seo-verb-list a:hover { border-color: var(--accent); color: var(--accent); }
.seo-verb-list li { color: var(--muted); font-size: .85rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-index, .blog-post {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  text-align: left;
}

.blog-index > p { color: var(--ink-2); font-size: 1.05rem; }
.blog-index ul { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.blog-index ul > li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.blog-index h2 { font-size: 1.35rem; margin: 0 0 6px; }
.blog-index h2 a { color: var(--ink); text-decoration: none; }
.blog-index h2 a:hover { color: var(--accent); }
.blog-index li p { color: var(--ink-2); margin: 0; font-size: .97rem; }

.blog-post { font-size: 1.07rem; }
.blog-post h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: .5em; }
.blog-post h2 { margin-top: 2em; }
.blog-post h3 { margin-top: 1.5em; font-size: 1.25rem; }
.blog-meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: -.2em 0 1.6em; }
.blog-post p, .blog-post li { color: var(--ink-2); line-height: 1.8; }
.blog-post ul, .blog-post ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.blog-post li { margin-bottom: .35em; }
.blog-post li::marker { color: var(--accent); }
.blog-post em { font-style: italic; color: var(--ink); }
.blog-post table {
  display: block;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 22px 0 28px;
  box-shadow: var(--shadow-sm);
}
.blog-post table td:first-child { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.blog-post table td { color: var(--ink-2); font-size: .97rem; }
.blog-post a:focus { box-shadow: var(--focus); }

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.auth-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 20px 60px;
}
.auth-top-link { margin-bottom: 18px; font-size: .9rem; }
.auth-top-link a { color: var(--muted); text-decoration: none; }
.auth-top-link a:hover { color: var(--accent); }
.auth-brand { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 10px; font-weight: 500 !important; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.auth-card h1 { font-size: 1.7rem; }
.auth-intro { color: var(--ink-2); }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; }
.auth-benefits span {
  font-size: .78rem; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 10px;
}
.auth-form { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.auth-form label, label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-top: 8px; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input::placeholder { color: var(--muted); }

.auth-submit {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
}
.auth-submit:hover { background: var(--accent-hover); }
.auth-footer { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.auth-flash { list-style: none; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); }
.auth-flash li { margin: 0; }

/* --------------------------------------------------------------------------
   Generic legacy containers (reset pages, "go to word X" etc.)
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 20px 60px;
  text-align: center;
}
.container > form, body > form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin: 20px auto;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input[type="number"] { text-align: center; font-family: var(--mono); font-size: 1.2rem; }

.choices, .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }

button {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
button:hover { background: var(--accent-hover); }
.btn-danger, button.btn-danger { background: var(--bad); color: #fff; }
.cancel { margin-top: 10px; }
.cancel a { color: var(--muted); }

/* --------------------------------------------------------------------------
   Share page (/dela/...)
   -------------------------------------------------------------------------- */

body.share-page { background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 60%), var(--paper); }
.share-card {
  width: calc(100% - 40px);
  max-width: 520px;
  margin: 56px auto 60px;
  padding: 40px 32px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.share-brand { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 18px; }
.share-card h1 { font-size: 1.4rem; font-weight: 500; color: var(--ink-2); margin: 0; }
.share-count {
  font-family: var(--serif);
  font-size: clamp(4rem, 3rem + 6vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 8px 0 4px;
  font-variant-numeric: lining-nums tabular-nums;
}
.share-language { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; }
.share-level { color: var(--muted); margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   Footer (templates/_seo_footer.html)
   -------------------------------------------------------------------------- */

.seo-footer, .site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9rem;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer__brand .site-logo { font-size: 1.25rem; }
.site-footer__brand p { color: var(--muted); font-size: .88rem; margin: 10px 0 0; max-width: 28ch; }

.site-footer__col h2 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin: 0 0 7px; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legacy flat footer nav (if any page still uses it) */
.seo-footer > nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.seo-footer > nav a { color: var(--ink-2); text-decoration: none; }
.seo-footer > nav a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .site-nav a { padding: 6px 9px; font-size: .86rem; }
  .site-nav .site-nav__cta { margin-left: 2px; }

  .quiz-shell { padding: 22px 14px 16px; }
  .quiz-card { padding: 20px 14px 22px; border-radius: var(--radius); }
  .language-selector { border-radius: var(--radius); }
  .lang-btn { padding: 6px 11px; font-size: .84rem; }
  .quiz-question { margin: 22px auto 20px; }
  .options form { gap: 10px; }
  .options button { min-height: 54px; font-size: 1rem; padding: 12px 10px; }

  .progress-share-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .share-progress-control { align-items: center; }

  .cefr-marker span:nth-child(2) { display: none; }
  .cefr-marker { min-width: 34px; }
  .cefr-markers { height: 52px; }

  .seo-content, .blog-index, .blog-post { padding-top: 26px; }
  .seo-table th, .seo-table td, .blog-post table th, .blog-post table td { padding: 9px 11px; }
  .blog-post { font-size: 1.02rem; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; }
}

@media (max-width: 380px) {
  .options form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Patch 1 (review fixes)
   ========================================================================== */

/* CEFR scale: evenly spaced (proportional spacing made labels collide) */
.cefr-markers.is-positioned {
  display: flex;
  justify-content: space-between;
  height: auto;
  padding-bottom: 4px;
}
.cefr-markers.is-positioned .cefr-marker {
  position: relative;
  left: auto;
  transform: none;
  min-width: 0;
  flex: 0 0 auto;
}
.cefr-markers.is-positioned .cefr-marker:first-child { align-items: flex-start; }
.cefr-markers.is-positioned .cefr-marker:last-child { align-items: flex-end; }

/* Verb quiz sentence: smaller than single-word headword */
body.verbs-page .quiz-card > h1,
body.verbs-page .quiz-card .quiz-question {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem) !important;
  max-width: 34ch;
  line-height: 1.35;
  font-weight: 500;
}

/* Blog tables: full width on desktop, scroll on mobile */
.blog-post table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
@media (max-width: 640px) {
  .blog-post table { display: block; overflow-x: auto; }
}

/* Mobile: one-line header, scrollable language row, 2-col answers */
@media (max-width: 480px) {
  .site-header__inner { padding: 10px 14px; gap: 8px; }
  .site-logo { font-size: 1.15rem; }
  .site-nav { flex-wrap: nowrap; gap: 0; }
  .site-nav a { padding: 6px 8px; font-size: .84rem; }
  .site-nav .site-nav__cta { display: none; }

  .language-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    justify-content: flex-start;
    border-radius: 999px;
    scrollbar-width: none;
  }
  .language-selector::-webkit-scrollbar { display: none; }
  .lang-btn { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  .options form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 330px) {
  .options form { grid-template-columns: 1fr; }
}

/* CEFR labels: never overflow */
.cefr-markers.is-positioned .cefr-marker span:nth-child(2) { max-width: 84px; line-height: 1.25; }
@media (max-width: 640px) {
  .cefr-markers.is-positioned .cefr-marker span:nth-child(2),
  .cefr-markers.is-positioned .cefr-marker span:nth-child(3) { display: none; }
}

/* ==========================================================================
   Patch 2: manual light/dark theme toggle
   ========================================================================== */

/* Forced dark theme (same values as the automatic dark mode) */
:root[data-theme="dark"] {
  --paper: #151412;
  --surface: #1d1c19;
  --surface-2: #26241f;
  --ink: #efebe4;
  --ink-2: #cdc7bd;
  --muted: #9a9387;
  --line: #34312b;
  --line-strong: #4a463e;

  --accent: #8ea2ff;
  --accent-ink: #10131f;
  --accent-soft: #232a47;
  --accent-hover: #a9b8ff;

  --good: #6fcf97;
  --good-soft: #1b3326;
  --bad: #ff8a80;
  --bad-soft: #3a1f1d;
  --flame: #f0a35a;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --focus: 0 0 0 3px rgba(142, 162, 255, .4);
}

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

/* Toggle button */
.theme-toggle,
button.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover,
button.theme-toggle:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }

/* Light theme shows the moon (switch to dark); dark shows the sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 480px) {
  .theme-toggle, button.theme-toggle { width: 32px; height: 32px; margin-left: 2px; }
}

/* ==========================================================================
   Patch 3: game feel for the quiz pages
   ========================================================================== */

.quiz-shell {
  --game: "Nunito", var(--sans);
  font-family: var(--game);
  min-height: calc(100vh - 61px);
}

/* Card */
.quiz-card {
  position: relative;
  border-width: 2px;
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--line), var(--shadow);
  animation: card-in .32s cubic-bezier(.2,.8,.2,1);
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* Prompt label above the word */
.quiz-card .quiz-question::before,
body.verbs-page .quiz-card > h1::before {
  content: "Choose the translation";
  display: block;
  font-family: var(--game);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
body.verbs-page .quiz-card > h1::before,
body.verbs-page .quiz-card .quiz-question::before { content: "Fill in the missing verb"; }

/* Headword: bold and rounded */
.quiz-question,
.quiz-card > h1 {
  font-family: var(--game) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Answer tiles: chunky, pressable */
.quiz-shell .options form { gap: 14px; }
.quiz-shell .options button,
.quiz-shell .options .btn {
  position: relative;
  font-family: var(--game);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  min-height: 64px;
  padding: 14px 44px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--line-strong);
  transform: none;
  transition: transform .06s ease, box-shadow .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.quiz-shell .options button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 4px 0 var(--accent);
  color: var(--ink);
  transform: none;
}
.quiz-shell .options button:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 transparent;
}
.quiz-shell .options button:disabled { cursor: default; }
.quiz-shell .options button:disabled:not(.is-correct):not(.is-wrong):not(.is-answer) { opacity: .45; }

.key-hint {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  border: 2px solid var(--line);
  border-radius: 7px;
}
@media (hover: none) { .key-hint { display: none; } }

.quiz-shell .options button.is-correct,
.quiz-shell .options button.is-answer {
  background: var(--good-soft);
  border-color: var(--good);
  box-shadow: 0 4px 0 var(--good);
  color: var(--good);
}
.quiz-shell .options button.is-correct { animation: tile-pop .32s ease; }
.quiz-shell .options button.is-wrong {
  background: var(--bad-soft);
  border-color: var(--bad);
  box-shadow: 0 4px 0 var(--bad);
  color: var(--bad);
  animation: tile-shake .38s ease;
}
.quiz-shell .options button.is-correct .key-hint,
.quiz-shell .options button.is-answer .key-hint { border-color: var(--good); color: var(--good); }
.quiz-shell .options button.is-wrong .key-hint { border-color: var(--bad); color: var(--bad); }

@keyframes tile-pop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes tile-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}

/* Server-side feedback is replaced by the instant sheet when JS runs */
html.quiz-game .quiz-card > .feedback,
html.quiz-game .quiz-card > .feedback + p { display: none; }

/* Sound toggle */
.sound-toggle,
button.sound-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sound-toggle:hover, button.sound-toggle:hover { background: var(--surface-2); color: var(--ink); }
.sound-toggle svg { width: 18px; height: 18px; }

/* Result sheet */
.answer-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
  background: var(--good-soft);
  border-top: 2px solid var(--good);
  transform: translateY(105%);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
  font-family: "Nunito", var(--sans);
}
.answer-sheet.is-open { transform: none; }
.answer-sheet.is-wrong { background: var(--bad-soft); border-top-color: var(--bad); }
.answer-sheet__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.answer-sheet__title { font-size: 1.4rem; font-weight: 800; color: var(--good); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.answer-sheet.is-wrong .answer-sheet__title { color: var(--bad); }
.answer-sheet__sub { color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.answer-sheet__sub strong { color: var(--ink); }
.answer-sheet__btn,
button.answer-sheet__btn {
  font-family: "Nunito", var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--good);
  border: 0;
  border-radius: 14px;
  padding: 14px 30px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--good) 65%, #000);
  cursor: pointer;
  flex: 0 0 auto;
}
.answer-sheet.is-wrong .answer-sheet__btn { background: var(--bad); box-shadow: 0 4px 0 color-mix(in srgb, var(--bad) 65%, #000); }
.answer-sheet__btn:active { transform: translateY(4px); box-shadow: none; }

.combo-pill {
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  background: var(--flame);
  border-radius: 999px;
  padding: 3px 11px;
  animation: tile-pop .4s ease;
}

/* Thicker, game-style progress */
.quiz-shell .progress-inner { height: 16px; border: 0; background: var(--surface-2); }
.quiz-shell .progress-bar { position: relative; background: var(--accent); }
.quiz-shell .progress-bar::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
}
.quiz-shell .progress-label { font-family: var(--game); font-weight: 700; font-size: .85rem; }

/* Streak / daily goal pill */
.quiz-shell .daily-progress {
  font-family: var(--game);
  font-weight: 800;
  font-size: .95rem;
  border-width: 2px;
  padding: 7px 16px;
  box-shadow: 0 3px 0 var(--line);
}
.quiz-shell .daily-goal-reached { border-color: var(--good); box-shadow: 0 3px 0 var(--good); }

/* Pill controls and chips a bit chunkier */
.quiz-shell .controls button,
.quiz-shell .lang-btn { font-family: var(--game); font-weight: 700; }
.quiz-shell .controls button { border-width: 2px; box-shadow: 0 2px 0 var(--line); }
.quiz-shell .share-progress-btn { font-family: var(--game); font-weight: 800; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000); }

.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

@media (max-width: 480px) {
  .quiz-shell .options button { min-height: 58px; padding: 12px 14px; font-size: 1.02rem; }
  .answer-sheet__inner { flex-direction: column; align-items: stretch; }
  .answer-sheet__btn { width: 100%; }
}

/* Patch 3b: answer tiles never break words mid-word */
.quiz-shell .options button,
.quiz-shell .options .btn {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
@media (max-width: 480px) {
  .quiz-shell .options button,
  .quiz-shell .options .btn {
    min-height: 58px;
    padding: 12px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 360px) {
  .quiz-shell .options button,
  .quiz-shell .options .btn { font-size: .94rem; padding: 10px 8px; }
}

/* ==========================================================================
   Patch 4: clean white "quiz app" look
   - Light (white) theme by default, dark only via the toggle
   - Quiz pages: minimal app screen, everything else in menus
   - SEO content below the fold, calm typography
   ========================================================================== */

:root,
:root[data-theme="light"] {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --ink: #15171c;
  --ink-2: #4a505c;
  --muted: #8b919c;
  --line: #e9ebef;
  --line-strong: #d9dce2;

  --accent: #2f54eb;
  --accent-ink: #ffffff;
  --accent-soft: #eef2ff;
  --accent-hover: #2442c8;

  --good: #18a058;
  --good-soft: #eafaf1;
  --bad: #e5484d;
  --bad-soft: #fff0f0;
  --flame: #ff8a1f;

  --serif: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --focus: 0 0 0 3px rgba(47, 84, 235, .3);
  color-scheme: light;
}

/* Ignore the OS dark setting: light unless the user picked dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="dark"]) {
    --paper: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f5f7;
    --ink: #15171c;
    --ink-2: #4a505c;
    --muted: #8b919c;
    --line: #e9ebef;
    --line-strong: #d9dce2;
    --accent: #2f54eb;
    --accent-ink: #ffffff;
    --accent-soft: #eef2ff;
    --accent-hover: #2442c8;
    --good: #18a058;
    --good-soft: #eafaf1;
    --bad: #e5484d;
    --bad-soft: #fff0f0;
    --flame: #ff8a1f;
    --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
    --focus: 0 0 0 3px rgba(47, 84, 235, .3);
    color-scheme: light;
  }
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

:root[data-theme="dark"] {
  --serif: "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --paper: #111317;
  --surface: #181a1f;
  --surface-2: #20232a;
  --line: #2a2e36;
  --line-strong: #3a3f49;
  --accent: #7d97ff;
  --accent-soft: #1e2645;
  --good: #3ccf7f;
  --good-soft: #14291e;
  --bad: #ff6b6f;
  --bad-soft: #321a1b;
}

body { font-family: var(--sans); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.015em; }
.site-logo { font-family: var(--serif); font-weight: 800; }
.site-logo__word { font-style: normal; font-weight: 800; }

/* Header: quiet */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom-color: var(--line); }
.site-nav a { font-weight: 700; }

/* --------------------------------------------------------------------------
   Quiz app screen
   -------------------------------------------------------------------------- */

.quiz-app {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  min-height: calc(100vh - 61px);
  min-height: calc(100svh - 61px);
  display: flex;
  flex-direction: column;
  text-align: center;
  font-family: var(--sans);
}

/* Top bar: language menu · streak · more menu */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.quiz-topbar .daily-progress {
  margin: 0;
  box-shadow: none;
  border: 2px solid var(--line);
  font-size: .9rem;
  font-weight: 800;
  padding: 7px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Menus built on <details> */
.app-menu { position: relative; flex: 0 0 auto; }
.app-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: .92rem;
}
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
}
.app-menu--more > summary { width: 40px; padding: 0; justify-content: center; font-size: 1.2rem; letter-spacing: .05em; }
.app-menu--more > summary::after { display: none; }
.game-menu > summary::after { display: none; }
.app-menu > summary:hover { background: var(--surface-2); }
.app-menu[open] > summary { border-color: var(--accent); color: var(--accent); }

.app-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(17, 24, 39, .14);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  animation: menu-in .14s ease-out;
}
.app-menu--more .app-menu__panel { left: auto; right: 0; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.app-menu__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px 0;
}

/* Language list inside the menu */
.app-menu .language-selector {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.app-menu .lang-btn {
  display: block;
  text-align: left;
  font-size: .98rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: none;
}
.app-menu .lang-btn:hover { background: var(--surface-2); }
.app-menu .lang-btn.selected { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

.app-menu .quiz-direction-selector {
  display: flex;
  width: 100%;
  margin: 0;
  border-radius: 14px;
  border: 0;
  background: var(--surface-2);
  padding: 4px;
}
.app-menu .quiz-direction-selector .lang-btn {
  flex: 1;
  text-align: center;
  font-size: .82rem;
  padding: 8px 6px;
  border-radius: 10px;
  white-space: normal;
}
.app-menu .quiz-direction-selector .lang-btn.selected { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* "More" menu contents */
.app-menu .controls { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
.app-menu .controls a, .app-menu .controls form { display: block; }
.app-menu .controls button,
.app-menu .controls form button {
  width: 100%;
  text-align: left;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}
.app-menu .controls button:hover { background: var(--surface-2); }

.app-menu .share-progress-control { align-items: stretch; }
.app-menu .share-progress-btn { width: 100%; padding: 11px 14px; border-radius: 12px; box-shadow: none; }
.app-menu .daily-reminder { margin: 0; padding: 0 12px; text-align: left; }

.app-menu .cefr-markers {
  margin: 8px 8px 4px;
  max-width: none;
}
.app-menu .cefr-marker span:nth-child(2),
.app-menu .cefr-marker span:nth-child(3) { display: none; }

.app-menu .auth-links { justify-content: flex-start; margin: 0; padding: 4px 12px 6px; gap: 14px; }

/* Thin progress under the top bar */
.quiz-app .progress-share-row,
.quiz-app > .progress-container { max-width: none; margin: 0 0 6px; }
.quiz-app .progress-container { display: flex; flex-direction: column-reverse; gap: 6px; }
.quiz-app .progress-inner { height: 10px; border: 0; background: var(--surface-2); }
.quiz-app .progress-bar::after { top: 3px; height: 3px; }
.quiz-app .progress-label {
  order: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

/* Small visible title (H1 kept for SEO) */
.quiz-intro { margin: 18px 0 0; }
.quiz-intro .eyebrow,
.quiz-intro > h2 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 2px;
  letter-spacing: .06em;
}
.quiz-intro .landing-title,
.quiz-intro h1 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0;
}

/* The question: no box, just content */
.quiz-app .quiz-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 18px 0 8px;
  margin: 0;
}
.quiz-app .quiz-card .quiz-question,
.quiz-app .quiz-card > h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem);
  margin: 4px auto 34px;
}
body.verbs-page .quiz-app .quiz-card > h1,
body.verbs-page .quiz-app .quiz-card .quiz-question {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem) !important;
  margin-bottom: 30px;
}
.quiz-app .options { max-width: 520px; width: 100%; }
.quiz-app .sound-toggle { top: 10px; right: 0; border-color: transparent; }

.quiz-shell .options button,
.quiz-shell .options .btn,
.quiz-app .options button,
.quiz-app .options .btn {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
  border-radius: 16px;
}
.quiz-app .options button:hover { box-shadow: 0 3px 0 var(--accent); }

/* Keyboard hint line */
.quiz-hint { margin: 18px 0 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
@media (hover: none) { .quiz-hint { display: none; } }

/* --------------------------------------------------------------------------
   SEO content below the app screen: calm and readable
   -------------------------------------------------------------------------- */

.landing-seo {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  border-top: 1px solid var(--line);
}
.landing-seo h2 { font-size: 1.35rem; }
.landing-seo p { font-size: .98rem; line-height: 1.75; color: var(--ink-2); }
.landing-seo-links a { border-width: 1px; font-weight: 700; }

.landing-faq { border-top: 0; }
.landing-faq details { border-bottom: 1px solid var(--line); }
.landing-faq details:first-of-type { border-top: 1px solid var(--line); }
.landing-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  position: relative;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--muted);
}
.landing-faq details[open] summary::after { content: "–"; }
.landing-faq summary h3 { display: inline; font-size: 1rem; font-weight: 800; margin: 0; }
.landing-faq details p { margin: 0 0 16px; }

/* Content pages: white and clean too */
.seo-table-wrap, .blog-post table { box-shadow: none; }
.seo-table thead th, .blog-post table thead th { background: var(--surface-2); }
.seo-table td:nth-child(2), .seo-verb-table td span:first-child, .blog-post table td:first-child { font-family: var(--sans); font-weight: 700; }

.site-footer, .seo-footer { background: var(--surface-2); }

@media (max-width: 480px) {
  .quiz-app { padding: 10px 14px 22px; }
  .app-menu > summary { height: 38px; padding: 0 12px; font-size: .88rem; }
  .app-menu--more > summary { width: 38px; padding: 0; }
  .quiz-topbar .daily-progress { font-size: .82rem; padding: 6px 10px; }
  .quiz-app .quiz-card { padding-top: 10px; }
}

/* Patch 4b: tighter vertical rhythm on the quiz screen */
.quiz-app .quiz-card {
  flex: 0 0 auto;
  justify-content: flex-start;
  position: relative;
  padding: clamp(28px, 7vh, 72px) 0 8px;
}
.quiz-app .sound-toggle { top: clamp(20px, 6vh, 64px); }
.quiz-app .quiz-hint { margin-top: auto; padding-top: 28px; }
@media (max-width: 480px) {
  .quiz-topbar { gap: 6px; }
  .quiz-topbar .daily-progress { font-size: .76rem; padding: 6px 9px; }
}

/* ==========================================================================
   Patch 5: word-quiz start screen + focused play mode + readable content
   ========================================================================== */

/* Accessible grey on white (4.8:1) */
:root:not([data-theme="dark"]) { --muted: #6b7280; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: 8px;
}
.quiz-app .options button:focus-visible,
.start-btn:focus-visible { outline-offset: 3px; border-radius: 16px; }

/* --- States (JS adds html.js; without JS both sections show) --- */
html.js .quiz-app[data-state="start"] .quiz-play { display: none; }
html.js .quiz-app[data-state="play"] .quiz-start { display: none; }

.quiz-app[data-quiz-app] { display: block; min-height: 0; padding-top: 0; text-align: left; }

/* ---------------- Start screen ---------------- */
.quiz-start {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 88px) 0 40px;
}
.quiz-start .eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.quiz-start h1 {
  font-size: clamp(1.9rem, 1.45rem + 1.9vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}
.quiz-lead { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; }

.setup { display: flex; flex-direction: column; gap: 22px; }
.setup-label {
  display: block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.setup .language-selector,
.setup .quiz-direction-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.setup .lang-btn {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: none;
}
.setup .lang-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.setup .lang-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: none; }

.start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--accent-hover);
  text-decoration: none;
  cursor: pointer;
}
.start-btn:hover { background: var(--accent-hover); color: #fff; }
.start-btn:active { transform: translateY(2px); box-shadow: none; }

.quiz-start-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 20px;
  margin-top: 12px;
}
.quiz-start-more form { display: inline; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.quiz-start-more a,
.quiz-start-more button,
.quiz-stats .share-progress-btn,
.quiz-stats .daily-reminder a {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 2px;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.quiz-start-more a:hover,
.quiz-start-more button:hover,
.quiz-stats .share-progress-btn:hover,
.quiz-stats .daily-reminder a:hover { color: var(--accent); background: none; text-decoration-color: currentColor; }
.quiz-stats .share-progress-btn::before,
.quiz-stats .daily-reminder a::before { content: none; }

/* Discreet progress & stats */
.quiz-stats {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-stats .progress-container { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.quiz-stats .progress-label { order: -1; margin: 0; font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--ink-2); text-align: left; }
.quiz-stats .progress-inner { height: 8px; border: 0; background: var(--surface-2); }
.quiz-stats .progress-bar::after { display: none; }
.stats-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.quiz-stats .daily-progress {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--ink-2);
}
.stats-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.quiz-stats .share-progress-control { flex-direction: row; align-items: center; gap: 8px; }
.quiz-stats .daily-reminder { margin: 0; }
.quiz-stats .cefr-markers { max-width: none; margin: 4px 0 0; }
.quiz-stats .auth-links { justify-content: flex-start; margin: 0; gap: 16px; font-size: .9rem; }

/* ---------------- Play mode ---------------- */
.quiz-play {
  max-width: 620px;
  margin: 0 auto;
  min-height: calc(100vh - 61px);
  min-height: calc(100svh - 61px);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.play-bar { display: flex; align-items: center; gap: 14px; padding: 16px 0 4px; }
.quiz-exit,
button.quiz-exit {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.quiz-exit:hover, button.quiz-exit:hover { background: var(--surface-2); color: var(--ink); }
.quiz-exit svg { width: 20px; height: 20px; }
.play-goal { flex: 1; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.play-goal__bar { height: 100%; border-radius: 999px; background: var(--good); transition: width .5s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.play-goal-label { flex: 0 0 auto; font-size: .85rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }

.quiz-play .quiz-card { position: relative; padding: clamp(28px, 8vh, 84px) 0 8px; }
.quiz-play .sound-toggle { top: clamp(14px, 6vh, 70px); right: 0; }
.quiz-play .quiz-hint { margin-top: auto; padding-top: 28px; }

/* Header stays quiet while playing */
html.quiz-playing .site-header { position: static; }

/* ---------------- Content below ---------------- */
.page-content { max-width: 660px; margin: 0 auto; padding: 8px 20px 72px; }
.page-content section { padding: 44px 0 0; }
.page-content section + section { border-top: 1px solid var(--line); margin-top: 44px; }
.page-content h2 { font-size: 1.4rem; margin: 0 0 12px; }
.page-content p,
.page-content li { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.page-content p { margin: 0 0 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
  color: var(--accent); background: var(--accent-soft);
}
.steps strong { color: var(--ink); }

.level-list { list-style: none; padding: 0; margin: 4px 0 16px; border-top: 1px solid var(--line); }
.level-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.level-code { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.level-desc { color: var(--ink-2); }
.level-desc span { display: block; font-size: .85rem; color: var(--muted); }
.level-list a { font-weight: 700; font-size: .92rem; white-space: nowrap; }

.guide-list { list-style: none; padding: 0; margin: 4px 0 16px; border-top: 1px solid var(--line); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 2px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.guide-list a::after { content: "→"; color: var(--muted); }
.guide-list a:hover { color: var(--accent); }
.more-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.more-links li { margin: 0; }
.more-links a { font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 700; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; font-size: 1.02rem; font-weight: 800; margin: 0; color: var(--ink); }
.faq details p { margin: 0 0 18px; }

@media (max-width: 480px) {
  .quiz-start { padding-top: 28px; }
  .quiz-lead { margin-bottom: 26px; }
  .setup .lang-btn { padding: 8px 12px; font-size: .9rem; }
  .level-list li { grid-template-columns: 36px 1fr; }
  .level-list a { grid-column: 2; }
  .play-bar { gap: 10px; }
}

/* ==========================================================================
   Patch 6: full-screen game view (no start screen, no site chrome) + menu,
   and the content hubs (/<slug>/glosor) that now carry the guide/FAQ copy.
   ========================================================================== */

/* ---------- Page frame: the game IS the page ---------- */
body.game-page { background: var(--paper); margin: 0; }
.game {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  min-height: 100dvh;           /* follows mobile browser toolbars */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: center;
}
.game.quiz-shell { padding-top: 0; }
html.sheet-open .game { padding-bottom: 150px; }   /* room for the answer sheet */

/* Top bar: menu · daily goal · streak */
.game-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 6px;
  position: relative;
  z-index: 20;
}
.game-bar .play-goal { flex: 1; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.game-bar .play-goal__bar { height: 100%; border-radius: 999px; background: var(--good); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.game-goal-label {
  flex: 0 0 auto;
  font-size: .85rem;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Stage: heading, question, answers, hint */
.game-stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 7vh, 72px) 0 20px;
}
.game-head { margin: 0 0 clamp(18px, 5vh, 44px); }
.game-title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.game-sub { margin: 2px 0 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.game .quiz-card { padding: 0; margin: 0; position: relative; background: none; border: 0; box-shadow: none; }
.game .quiz-question { margin: 0 0 clamp(22px, 5vh, 44px); }
.game .sound-toggle { display: none; }             /* sound lives in the menu now */
.game-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: .85rem;
  color: var(--muted);
}
.game-foot p { margin: 0; }
.game-foot a { color: var(--muted); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.game-foot a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (hover: none) { .game-foot .quiz-hint { display: none; } }   /* no keyboard hint on touch */

/* Server feedback line (non-JS fallback) stays readable but quiet */
.game .feedback { margin: 0 0 16px; }

/* ---------- Menu (details/summary → drawer) ---------- */
.game-menu { position: static; }
.game-menu > summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-2);
  cursor: pointer;
  flex: 0 0 auto;
}
.game-menu > summary::-webkit-details-marker { display: none; }
.game-menu > summary:hover { background: var(--surface-2); color: var(--ink); }
.game-menu > summary svg { width: 22px; height: 22px; }

.game-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 23, .32);
  z-index: 40;
}
.game-menu__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(380px, 100%);
  z-index: 41;
  background: var(--paper);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 22px 40px;
  box-sizing: border-box;
  text-align: left;
}
html.menu-open { overflow: hidden; }
.game-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 8px;
  position: sticky;
  top: -10px;
  background: var(--paper);
  z-index: 1;
}
.game-menu__brand { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.game-menu__close {
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 12px; background: none;
  color: var(--ink-2); cursor: pointer; box-shadow: none;
}
.game-menu__close:hover { background: var(--surface-2); color: var(--ink); }
.game-menu__close svg { width: 20px; height: 20px; }

.menu-section { padding: 16px 0; border-top: 1px solid var(--line); }
.menu-section:first-of-type { border-top: 0; }
.menu-label {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.menu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; background: none; border: 0; }
.game-menu .lang-btn {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: none;
  text-decoration: none;
}
.game-menu .lang-btn:hover { border-color: var(--ink-2); color: var(--ink); background: var(--paper); }
.game-menu .lang-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { margin: 0; }
.menu-list form { display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.menu-list a,
.menu-list button,
.game-menu .share-progress-btn,
.game-menu .daily-reminder a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 2px;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-list a:hover,
.menu-list button:hover,
.game-menu .share-progress-btn:hover,
.game-menu .daily-reminder a:hover { color: var(--accent); background: none; }
.game-menu .share-progress-btn::before,
.game-menu .daily-reminder a::before { content: none; }
.menu-list a::after { content: "→"; color: var(--muted); font-weight: 700; }
.menu-list .menu-value { color: var(--muted); font-weight: 700; font-size: .9rem; }
.game-menu .theme-toggle { width: auto; height: auto; }      /* row button, not the round header icon */
.game-menu .theme-toggle svg { width: 18px; height: 18px; }
.game-menu .share-progress-control { display: block; margin: 0; }
.game-menu .share-progress-status { display: block; font-size: .85rem; color: var(--muted); }
.game-menu .daily-reminder { margin: 0; }

/* Progress block inside the menu */
.game-menu .daily-progress {
  margin: 0 0 12px; padding: 0; border: 0; background: none; box-shadow: none;
  font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--ink);
}
.game-menu .progress-container { max-width: none; margin: 0 0 6px; display: flex; flex-direction: column; gap: 6px; }
.game-menu .progress-label { order: -1; margin: 0; font-family: var(--sans); font-size: .88rem; font-weight: 700; color: var(--ink-2); text-align: left; }
.game-menu .progress-inner { height: 8px; border: 0; border-radius: 999px; background: var(--surface-2); }
.game-menu .progress-bar::after { display: none; }
.game-menu .cefr-markers { max-width: none; margin: 6px 0 4px; }
.menu-keys { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.menu-keys kbd {
  font-family: var(--mono); font-size: .8rem;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  padding: 0 6px; color: var(--ink); background: var(--paper);
}

/* ---------- Content hubs (/<slug>/glosor, /<slug>/verb) ---------- */
.hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.hub-cta:hover { background: var(--accent-hover); }
.level-note { margin: -4px 0 10px; font-size: .92rem; color: var(--muted); }

@media (max-width: 480px) {
  .game { padding: 0 16px env(safe-area-inset-bottom, 0px); }
  .game-bar { gap: 10px; padding-top: 10px; }
  .game-stage { padding-top: clamp(14px, 4vh, 40px); }
  .game-menu__panel { width: 100%; border-right: 0; padding: 8px 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-bar .play-goal__bar { transition: none; }
}

/* Patch 6b: menu row alignment */
.game-menu .daily-reminder { padding: 0; margin: 0; }
.game-menu .menu-list .theme-toggle,
.game-menu button.theme-toggle[data-theme-toggle] {
  width: 100%;
  height: auto;
  min-height: 44px;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  background: none;
  box-shadow: none;
  padding: 8px 2px;
}
.game-menu .theme-toggle .menu-value { display: inline-flex; align-items: center; color: var(--muted); }
.game-bar .game-menu > summary { border: 0; background: none; box-shadow: none; }
.game-bar .game-menu > summary:hover { background: var(--surface-2); }

/* ==========================================================================
   Patch 7: own identity, not a Duolingo look.
   Dark monospace "terminal" style (the original 10000ord look) is the default;
   light stays available via the toggle. Flat buttons, no 3D tiles, no bottom
   sheet, no chunky progress bar, no rounded game font.
   ========================================================================== */

/* Fonts: no Nunito anywhere */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --serif: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Neutral graphite dark theme (the original look) */
:root[data-theme="dark"] {
  --paper: #212121;
  --surface: #000000;
  --surface-2: #2d2d2d;
  --ink: #e8e8e8;
  --ink-2: #c6c6c6;
  --muted: #a0a0a0;
  --line: #3a3a3a;
  --line-strong: #6a6a6a;
  --accent: #8ab4ff;
  --accent-ink: #0b1220;
  --accent-soft: #1d2738;
  --accent-hover: #a9c8ff;
  --good: #63d391;
  --good-soft: #12261a;
  --bad: #ff7b72;
  --bad-soft: #2d1614;
  --flame: #ffb057;
  --focus: 0 0 0 3px rgba(138, 180, 255, .45);
  color-scheme: dark;
}

/* ---------- Game page: monospace throughout ---------- */
body.game-page {
  --game: var(--mono);
  font-family: var(--mono);
}
body.game-page button,
body.game-page input,
body.game-page select { font-family: var(--mono); }

.game { text-align: center; }
html.sheet-open .game { padding-bottom: 0; }

/* Top bar: menu left, today's count right. No progress bar. */
.game-bar { padding: 12px 0 0; justify-content: space-between; }
.game-bar .play-goal { display: none; }
.game-goal-label { font-family: var(--mono); font-weight: 500; font-size: .85rem; color: var(--muted); }
.game-bar .game-menu > summary { border: 1px solid transparent; border-radius: 6px; }
.game-bar .game-menu > summary:hover { border-color: var(--line-strong); background: none; }

/* Brand line, like the original "2000_verbs" header */
.game-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.5rem + 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.game-brand a { color: inherit; text-decoration: none; }
.game-stage { padding-top: clamp(18px, 6vh, 64px); }
.game-head { margin: 0 0 clamp(18px, 4vh, 36px); }
.game-title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.game-sub { font-family: var(--mono); font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Question */
.game .quiz-question::before,
body.verbs-page .game .quiz-question::before { content: none !important; display: none !important; }
.game .quiz-question {
  font-family: var(--mono) !important;
  font-weight: 600 !important;
  font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.2rem);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 clamp(22px, 4.5vh, 40px);
  animation: none;
}
.game .quiz-card { animation: none; }

/* Answers: flat, thin border, small radius */
.game.quiz-shell .options { max-width: 560px; margin: 0 auto; width: 100%; }
.game.quiz-shell .options form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.game.quiz-shell .options button,
.game.quiz-shell .options .btn {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 30px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: none;
  transform: none;
  animation: none;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.game.quiz-shell .options button:hover {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}
.game.quiz-shell .options button:active { transform: none; box-shadow: none; background: var(--surface-2); }
.game.quiz-shell .options button:disabled:not(.is-correct):not(.is-wrong):not(.is-answer) { opacity: .4; }
.game.quiz-shell .options button.is-correct,
.game.quiz-shell .options button.is-answer {
  color: var(--good);
  border-color: var(--good);
  background: var(--good-soft);
  box-shadow: none;
  animation: none;
}
.game.quiz-shell .options button.is-wrong {
  color: var(--bad);
  border-color: var(--bad);
  background: var(--bad-soft);
  box-shadow: none;
  animation: none;
}
.game .key-hint {
  left: 10px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
}
.game .options button.is-correct .key-hint,
.game .options button.is-answer .key-hint { color: var(--good); }
.game .options button.is-wrong .key-hint { color: var(--bad); }

/* Inline answer line (replaces the bottom sheet). The slot reserves its height. */
.answer-slot { min-height: 52px; margin: 14px auto 0; max-width: 560px; }
.game .answer-sheet {
  position: static;
  transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  animation: none;
}
.game .answer-sheet.is-wrong { background: none; }
.game .answer-sheet__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  max-width: none;
  padding: 0;
}
.game .answer-sheet__text { text-align: center; }
.game .answer-sheet__title {
  display: inline;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--good);
}
.game .answer-sheet.is-wrong .answer-sheet__title { color: var(--bad); }
.game .answer-sheet__sub { display: inline; margin: 0 0 0 10px; font-family: var(--mono); font-weight: 400; color: var(--ink-2); }
.game .answer-sheet__sub strong { color: var(--ink); font-weight: 600; }
.game button.answer-sheet__btn,
.game .answer-sheet.is-wrong .answer-sheet__btn {
  width: auto;
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: none;
  transform: none;
}
.game .answer-sheet__btn:hover { border-color: var(--ink); }

/* Visible actions + info under the game */
.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}
.game-actions form { display: inline; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.game-actions a,
.game-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}
.game-actions a:hover,
.game-actions button:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.game-stats {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.game-stats span + span::before { content: " · "; color: var(--muted); }
.game-combo {
  margin: 8px 0 0;
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
  color: var(--flame);
}
.game-combo:empty { visibility: hidden; }

.game-foot { padding-top: 24px; font-family: var(--mono); }
.game-foot a { font-weight: 500; }

/* Menu: flat and monospace on the game page */
body.game-page .game-menu .lang-btn { font-family: var(--mono); font-weight: 500; border-radius: 6px; }
body.game-page .menu-list a,
body.game-page .menu-list button,
body.game-page .game-menu .share-progress-btn,
body.game-page .game-menu .daily-reminder a { font-family: var(--mono); font-weight: 500; font-size: .95rem; }
body.game-page .menu-label { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
body.game-page .game-menu .daily-progress { font-family: var(--mono); font-weight: 500; }
body.game-page .game-menu .daily-goal-reached { box-shadow: none; }
body.game-page .game-menu .progress-inner { height: 4px; border-radius: 0; }
body.game-page .game-menu .progress-bar { border-radius: 0; }
body.game-page .game-menu__panel { border-right: 1px solid var(--line); }

@media (max-width: 480px) {
  .game-brand { font-size: 2.3rem; }
  .game.quiz-shell .options button,
  .game.quiz-shell .options .btn { min-height: 54px; padding: 10px 24px; font-size: .98rem; }
  .game-actions a, .game-actions button { font-size: .82rem; padding: 8px 12px; }
}
@media (max-width: 360px) {
  .game.quiz-shell .options button,
  .game.quiz-shell .options .btn { font-size: .9rem; padding: 10px 20px; }
}

/* ==========================================================================
   Patch 8: the classic 10000ord game page, cleaned up.
   All game features visible on the quiz page again (no drawer menu);
   only SEO content stays off it. JetBrains Mono, like the original game.
   ========================================================================== */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/JetBrainsMono-VariableFont_wght.woff2") format("woff2-variations"),
       url("/static/JetBrainsMono-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] { --paper: #282828; --chip-on: #5f5f5f; --track-fill: #4d4d4d; }
:root, :root[data-theme="light"] { --chip-on: #e3e5e8; --track-fill: #e3e5e8; }

/* ---------- Frame ---------- */
.game.classic {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.game.classic > * { width: 100%; }

/* Sound + theme icons, top right */
.game-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto !important;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.game-tools button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
}
.game-tools button:hover { color: var(--ink); border-color: var(--line-strong); background: none; }
.game-tools svg { width: 18px; height: 18px; }
.game.classic .quiz-card .sound-toggle { display: none; }

/* ---------- Header: title, languages, direction ---------- */
.game.classic .game-head { margin: 0; padding: clamp(44px, 7vh, 72px) 0 0; }
.game.classic .game-brand { margin: 0 0 4px; }
.game.classic .game-title { margin: 0 0 18px; }

.game-langs,
.game-dirs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: 0;
}
.game-dirs { margin-bottom: 0; }
.game.classic .lang-btn {
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 11px;
  box-shadow: none;
  text-decoration: none;
  line-height: 1.3;
}
.game-dirs .lang-btn { font-size: .78rem; padding: 4px 9px; }
.game.classic .lang-btn:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.game.classic .lang-btn.selected { background: var(--chip-on); border-color: var(--chip-on); color: var(--ink); }

/* ---------- Question + answers ---------- */
.game.classic .quiz-card { margin: clamp(26px, 5vh, 48px) 0 0; }
.game.classic .quiz-question { margin-bottom: clamp(20px, 3.5vh, 32px); }
@media (min-width: 720px) {
  .game.classic .options { max-width: 680px; }
  .game.classic .options form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game.classic .options button,
  .game.classic .options .btn { padding: 12px 14px 12px 26px; font-size: 1rem; }
}

/* ---------- Actions ---------- */
.game.classic .game-actions { margin-top: 10px; }

/* ---------- Progress: bar with label inside, CEFR, stats ---------- */
.game-progress { max-width: 560px; margin: 26px auto 0; }
.game.classic .progress-container {
  position: relative;
  max-width: none;
  margin: 0;
  display: block;
}
.game.classic .progress-inner {
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.game.classic .progress-bar { height: 100%; border-radius: 0; background: var(--track-fill); }
.game.classic .progress-bar::after { display: none; }
.game.classic .progress-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  pointer-events: none;
}
.game.classic .cefr-markers { max-width: none; margin: 10px 0 0; }
.game.classic .cefr-marker span { font-family: var(--mono); }
.game.classic .game-stats { margin-top: 16px; font-size: .95rem; }
.game.classic .game-combo { margin-top: 6px; }

/* ---------- Share, reminder, account ---------- */
.game-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  margin: 14px 0 0;
}
.game-links p { margin: 0; }
.game-links .share-progress-control { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.game-links a,
.game-links .share-progress-btn {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 400;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 6px 2px;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.game-links a:hover,
.game-links .share-progress-btn:hover { color: var(--ink); background: none; text-decoration-color: currentColor; }
.game-links .share-progress-btn::before,
.game-links .daily-reminder a::before { content: none; }
.game-links .share-progress-status { font-size: .8rem; color: var(--muted); }
.game-links .daily-reminder { margin: 0; }

/* ---------- Footer: discreet content links ---------- */
.game.classic .game-foot {
  margin-top: auto;
  padding: 28px 0 18px;
  gap: 4px 16px;
  font-size: .8rem;
}

@media (max-width: 480px) {
  .game.classic .game-head { padding-top: 46px; }
  .game.classic .game-brand { font-size: 2.2rem; }
  .game.classic .lang-btn { font-size: .82rem; padding: 6px 9px; }
  .game-dirs .lang-btn { font-size: .74rem; }
  .game-progress { margin-top: 22px; }
}

/* Patch 8b: tighter vertical rhythm so more of the game fits on a phone */
.game.classic .answer-slot { min-height: 44px; margin-top: 10px; }
.game.classic .game-actions { margin-top: 4px; }
@media (max-width: 480px) {
  .game.classic .game-head { padding-top: 40px; }
  .game.classic .game-title { margin-bottom: 12px; }
  .game.classic .quiz-card { margin-top: 20px; }
  .game.classic .quiz-question { margin-bottom: 16px; }
  .game.classic .options button,
  .game.classic .options .btn { min-height: 50px; }
  .game-progress { margin-top: 16px; }
}

/* Answers stay 2 x 2 on every screen size */
@media (min-width: 720px) {
  .game.classic .options { max-width: 560px; }
  .game.classic .options form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game.classic .options button,
  .game.classic .options .btn { padding: 12px 30px; font-size: 1.05rem; }
}

/* Patch 9: instant two-try answers, quieter header */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.game.classic h1.game-brand { margin: 0 0 18px; font-size: clamp(2.3rem, 1.5rem + 4vw, 3.6rem); }
.game.classic .game-sub,
.game .key-hint { display: none; }
.game.classic .options button,
.game.classic .options .btn { padding-left: 18px; padding-right: 18px; }

.answer-line {
  margin: 0;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.answer-line strong { font-weight: 700; }
.answer-line.is-right { color: var(--good); }
.answer-line.is-wrong { color: var(--bad); }
.answer-line.is-wrong strong { color: var(--ink); }

/* a missed first try stays red but readable */
.game.classic .options button.is-wrong:disabled { opacity: 1; }

/* Patch 9b: no keyboard hint text in the footer */
.game .game-foot .quiz-hint { display: none; }

/* Patch 10: combo under the answer line, links in two rows */
.game.classic .game-combo { margin: 2px 0 6px; }
.game.classic .answer-slot { min-height: 30px; }
.game.classic .answer-line.is-right strong { color: var(--good); }
.game-links { flex-direction: column; align-items: center; gap: 2px; }
.game-links__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 18px;
}

/* Patch 10b: one green line under the stats row, not two */
.game .game-stats span.daily-goal-reached { box-shadow: none; border: 0; }

/* Patch 10c: quiz-page links (share, reminder, account, footer) have no underline;
   on hover / keyboard focus they turn blue with a blue underline */
.game-links a,
.game-links .share-progress-btn,
.game .game-foot a {
  text-decoration: none;
  color: var(--ink-2);
}
.game .game-foot a { color: var(--muted); }
.game-links a:hover,
.game-links a:focus-visible,
.game-links .share-progress-btn:hover,
.game-links .share-progress-btn:focus-visible,
.game .game-foot a:hover,
.game .game-foot a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

/* Patch 10d: an old rule hid the paragraph after the server feedback, which is the question
   on the verb quiz after a correct answer. Always show the question. */
html.quiz-game .quiz-card > .feedback + p.quiz-question { display: block; }

/* Patch 10e: site logo in the header and footer uses the same look as the quiz brand (10000_words) */
.site-logo,
.site-footer__brand .site-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo:hover { color: var(--ink); text-decoration: none; }

/* Patch 10f: the right verb fills the ___ gap after answering */
.quiz-question .gap-fill {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.quiz-question .gap-fill.is-right { color: var(--good); }
.quiz-question .gap-fill.is-answer { color: var(--ink); text-decoration-color: var(--bad); }

/* Patch 10g: a wrong pick is shown red and struck through in the gap */
.quiz-question .gap-fill.is-wrong {
  color: var(--bad);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Patch 11: one language row with a swap arrow to Swedish */
.game-langs .lang-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
}
.game-langs .lang-swap span { display: inline-block; transition: transform .25s ease; }
.game-langs .lang-swap:hover,
.game-langs .lang-swap:focus-visible { color: var(--accent); border-color: var(--accent); }
.game-langs .lang-swap:hover span,
.game-langs .lang-swap:focus-visible span { transform: rotate(180deg); }
.game-langs .lang-fixed { cursor: default; }
html[data-theme="light"] .game-langs .lang-swap { border-color: var(--line, #d0d0d0); }

/* Patch 12: the "other language" chip is a select */
.game-langs .lang-other { display: inline-flex; margin: 0; }
.game-langs .lang-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.game-langs .lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-langs .lang-select option { background: var(--surface); color: var(--ink); }

/* Patch 13: language pair as two hover dropdowns with an arrow */
.game-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.game-pair .dd { position: relative; }
.game-pair .dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
  justify-content: space-between;
  padding: 7px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: var(--chip-on, #5f5f5f);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.game-pair .dd-btn::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.game-pair .dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px 0 0;          /* invisible bridge so hover is not lost */
  list-style: none;
  display: none;
}
.game-pair .dd-menu-inner {
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: var(--surface, #000);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.game-pair .dd:hover .dd-menu,
.game-pair .dd:focus-within .dd-menu { display: block; }
.game-pair .dd:hover .dd-btn::after,
.game-pair .dd:focus-within .dd-btn::after { transform: translateY(1px) rotate(225deg); }
.game-pair .dd-menu a {
  display: block;
  text-align: left;
  white-space: nowrap;
  padding: 8px 12px;
  color: var(--ink-2, var(--ink));
  text-decoration: none;
  font-size: .9rem;
}
.game-pair .dd-menu a:hover,
.game-pair .dd-menu a:focus-visible { background: #1f1f1f; color: var(--accent); }
.game-pair .dd-menu a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.game-pair .dd-menu a[aria-current="true"]::before { content: "✓ "; color: var(--good); }
.game-pair .lang-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: var(--surface, #000);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
}
.game-pair .lang-swap span { display: inline-block; transition: transform .25s ease; }
.game-pair .lang-swap:hover,
.game-pair .lang-swap:focus-visible { color: var(--accent); border-color: var(--accent); }
.game-pair .lang-swap:hover span,
.game-pair .lang-swap:focus-visible span { transform: rotate(180deg); }
html[data-theme="light"] .game-pair .dd-btn,
html[data-theme="light"] .game-pair .dd-menu-inner,
html[data-theme="light"] .game-pair .lang-swap { border-color: #d0d0d0; }
html[data-theme="light"] .game-pair .dd-menu a:hover { background: #f0f0f0; }
@media (max-width: 420px) {
  .game-pair { gap: 6px; }
  .game-pair .dd-btn { min-width: 112px; padding: 7px 10px; }
}

/* Patch 14: disabled swap arrow on the verb quiz */
.game-pair .lang-swap.is-disabled { opacity: .35; cursor: default; pointer-events: none; }
