/* ─── Design tokens ─── */
:root {
  --bg: #f4f1ea;
  --bg-glow: #ece5d6;
  --card: #ffffff;
  --ink: #23222a;
  --ink-2: #6d6b77;
  --border: #e2ddd1;
  --accent: #2f4d8f;
  --accent-ink: #ffffff;
  --accent-soft: #e8edf7;
  --good: #2c7a4b;
  --good-soft: #e6f2ea;
  --bad: #b23a34;
  --bad-soft: #f8e9e7;
  --track: #eae6da;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 28, 40, .05), 0 6px 18px rgba(30, 28, 40, .06);
  --shadow-hover: 0 2px 4px rgba(30, 28, 40, .07), 0 10px 26px rgba(30, 28, 40, .1);
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Leerniveaus: één tint, oplopende intensiteit (sequentieel) */
  --seg-0: #ddd8cb;
  --seg-1: #b7c4e0;
  --seg-2: #7691c4;
  --seg-3: #2f4d8f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171c;
    --bg-glow: #1d1e28;
    --card: #212127;
    --ink: #ecebf1;
    --ink-2: #9c9aa8;
    --border: #34343d;
    --accent: #8aa5dd;
    --accent-ink: #10131c;
    --accent-soft: #2a3448;
    --good: #6dbb8e;
    --good-soft: #21332a;
    --bad: #e08a82;
    --bad-soft: #3c2523;
    --track: #2c2c33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .22);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .3);
    --seg-0: #3a3a42;
    --seg-1: #45537a;
    --seg-2: #6580b8;
    --seg-3: #9db5e6;
  }
}

/* De expliciete websitekeuze wint altijd van het systeemthema. */
:root[data-color-mode="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-glow: #ece5d6;
  --card: #ffffff;
  --ink: #23222a;
  --ink-2: #65636f;
  --border: #e2ddd1;
  --accent: #2f4d8f;
  --accent-ink: #ffffff;
  --accent-soft: #e8edf7;
  --good: #2c7a4b;
  --good-soft: #e6f2ea;
  --bad: #b23a34;
  --bad-soft: #f8e9e7;
  --track: #eae6da;
  --seg-0: #ddd8cb;
  --seg-1: #b7c4e0;
  --seg-2: #7691c4;
  --seg-3: #2f4d8f;
}
:root[data-color-mode="dark"] {
  color-scheme: dark;
  --bg: #17171c;
  --bg-glow: #1d1e28;
  --card: #212127;
  --ink: #ecebf1;
  --ink-2: #aaa8b5;
  --border: #34343d;
  --accent: #8aa5dd;
  --accent-ink: #10131c;
  --accent-soft: #2a3448;
  --good: #6dbb8e;
  --good-soft: #21332a;
  --bad: #e08a82;
  --bad-soft: #3c2523;
  --track: #2c2c33;
  --seg-0: #3a3a42;
  --seg-1: #45537a;
  --seg-2: #6580b8;
  --seg-3: #9db5e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 15px/1.55 var(--sans);
  background: radial-gradient(1100px 420px at 50% -80px, var(--bg-glow), var(--bg) 70%) fixed, var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}
.hidden { display: none !important; }

/* ─── Header ─── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 72%, black));
  color: var(--accent-ink);
  font: 600 22px/44px var(--serif);
  text-align: center;
  box-shadow: var(--shadow);
}
.brand h1 { font: 600 20px/1.25 var(--serif); }
.tagline { color: var(--ink-2); font-size: 12.5px; }

.tabs { display: flex; gap: 4px; background: var(--track); padding: 4px; border-radius: 11px; }
.tab {
  border: 0; background: transparent; color: var(--ink-2);
  font: 500 13.5px var(--sans);
  padding: 7px 18px; border-radius: 8px; cursor: pointer;
  transition: color .12s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

main { flex: 1; padding: 20px 28px 8px; max-width: 1240px; width: 100%; margin: 0 auto; }

.app-footer {
  padding: 10px 28px 14px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}
kbd {
  font: 11px var(--sans);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--card);
}

/* ─── Cards & layout ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stack { display: grid; gap: 12px; }
.trainer { display: grid; gap: 16px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .72fr); gap: 16px; align-items: start; }
@media (max-width: 880px) { .main-grid { grid-template-columns: 1fr; } }

/* ─── Toolbar ─── */
.toolbar { display: grid; gap: 12px; }
.toolbar-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.controls.controls-collapsed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.controls.controls-collapsed label:nth-child(3),
.controls.controls-collapsed label:nth-child(4),
.controls.controls-collapsed label:nth-child(6) { display: none; }
@media (max-width: 1000px) { .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.controls label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
select {
  font: 13.5px var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
}
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Buttons ─── */
.btn {
  font: 500 13.5px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { cursor: default; opacity: .7; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--border); }

/* ─── Status row ─── */
.status-row { display: grid; gap: 10px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.progress-track { height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s ease; }

/* ─── Question ─── */
.question-card { padding: 22px; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.q-label { font-size: 12px; color: var(--ink-2); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.q-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.question { font: 400 21.5px/1.5 var(--serif); animation: fadeUp .22s ease both; }
.answer-grid { display: grid; gap: 8px; }
.answer-btn {
  text-align: left;
  display: flex; align-items: baseline; gap: 10px;
  white-space: normal;
  padding: 11px 14px;
  font-size: 14.5px;
  animation: fadeUp .22s ease both;
}
.answer-grid .answer-btn:nth-child(2) { animation-delay: .03s; }
.answer-grid .answer-btn:nth-child(3) { animation-delay: .06s; }
.answer-grid .answer-btn:nth-child(4) { animation-delay: .09s; }
.answer-btn:hover:not(:disabled) { box-shadow: var(--shadow); transform: translateY(-1px); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.answer-key {
  flex: none;
  font-size: 11px; color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0 5px; line-height: 17px;
}
.btn.is-right { border-color: var(--good); background: var(--good-soft); }
.btn.is-wrong { border-color: var(--bad); background: var(--bad-soft); }

.production-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; animation: fadeUp .22s ease both; }
input[type="text"] {
  font: 15px var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  -webkit-user-select: text;
  user-select: text;
}
input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.feedback { border-left: 3px solid var(--border); padding: 2px 0 2px 12px; font-size: 14px; animation: fadeUp .18s ease both; }
.feedback.correct { border-color: var(--good); }
.feedback.incorrect { border-color: var(--bad); }
.result-mark { font-weight: 600; }
.feedback.correct .result-mark { color: var(--good); }
.feedback.incorrect .result-mark { color: var(--bad); }
.sentence { font-style: italic; }
.feedback-detail { margin-top: 7px; }
.feedback-detail b { color: var(--ink); }

.rule-box {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
}
.actions-row { display: flex; gap: 8px; }
.actions-row .btn-primary { min-width: 150px; }

/* ─── Itemniveau (Leitner-box) ─── */
.item-mastery { display: flex; align-items: center; gap: 8px; }
.chip {
  font-size: 11px; font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
}
.chip-new { background: var(--track); color: var(--ink-2); }
.chip-learning { background: var(--accent-soft); color: var(--accent); }
.chip-known { background: var(--accent); color: var(--accent-ink); }
.chip-mastered { background: var(--good-soft); color: var(--good); }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--track); display: inline-block; }
.dot.on { background: var(--accent); }

/* ─── Sessie-einde ─── */
.session-summary { display: grid; gap: 6px; padding: 4px 0; animation: fadeUp .22s ease both; }
.summary-line { font-size: 14px; color: var(--ink-2); }
.summary-line b { color: var(--ink); font-size: 16px; }

/* ─── Sidebar ─── */
.panel-title { font-size: 12px; color: var(--ink-2); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font: 600 34px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.guidance { font-size: 13px; color: var(--ink-2); }
.mastery-list { display: grid; gap: 9px; }
.mastery-line { display: grid; grid-template-columns: minmax(90px, .9fr) 1.6fr 40px; gap: 8px; align-items: center; font-size: 12.5px; }
.mastery-line .pct { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-track { height: 5px; background: var(--track); border-radius: 999px; overflow: hidden; }
.mini-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.mistake-list { margin: 0; padding-left: 18px; display: grid; gap: 9px; font-size: 13px; }
.mistake-answer { color: var(--ink-2); }
.mistake-count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--bad);
  background: var(--bad-soft);
  font-size: 11px;
  font-weight: 600;
}

/* ─── Duurzame progressie (gestapelde balk) ─── */
.learn-summary { display: grid; gap: 10px; }
.learn-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.learn-seg { min-width: 4px; }
.learn-seg-0 { background: var(--seg-0); }
.learn-seg-1 { background: var(--seg-1); }
.learn-seg-2 { background: var(--seg-2); }
.learn-seg-3 { background: var(--seg-3); }
.learn-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.learn-legend b { color: var(--ink); }
.learn-legend .dot { width: 8px; height: 8px; margin-right: 5px; }

/* ─── Dashboard ─── */
.dashboard { display: grid; gap: 16px; align-content: start; }
.hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: grid; gap: 2px; padding: 16px 18px; }
.tile .stat-value { font-size: 30px; }
.tile-label { font-size: 12px; color: var(--ink-2); }
.tile-accent .stat-value { color: var(--accent); }

/* ─── Dagelijks leerpad ─── */
.learning-path { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 16px; }
.daily-card { background: linear-gradient(135deg, var(--card), var(--accent-soft)); }
.daily-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.daily-title, .focus-title { font: 600 20px/1.3 var(--serif); margin-top: 3px; }
.daily-value { color: var(--accent); font: 600 22px/1 var(--serif); white-space: nowrap; }
.daily-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--track); }
.daily-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.daily-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-card { align-content: start; }
.focus-card .btn { justify-self: start; padding-left: 0; }

.activity { display: flex; gap: 6px; align-items: stretch; height: 120px; }
.act-col { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-space { flex: 1; display: flex; align-items: flex-end; }
.act-bar { width: 100%; background: var(--accent); border-radius: 4px 4px 2px 2px; min-height: 0; }
.act-day { font-size: 10.5px; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .learning-path { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .app-header { align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; }
  .brand .tagline { display: none; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; padding-inline: 10px; }
  main { padding: 14px 14px 6px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .production-wrap { grid-template-columns: 1fr; }
}

/* ─── Le Mot Juste ─────────────────────────────────────────────────────── */
.tab-game { color: var(--accent); }
#module-motjuste { min-height: calc(100vh - 170px); }
.mot-shell {
  width: min(860px, 100%);
  min-height: 610px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mot-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mot-intro h2 {
  max-width: 720px;
  margin-top: 18px;
  font: 500 clamp(42px, 7vw, 72px)/.98 var(--serif);
  letter-spacing: -.035em;
}
.mot-intro h2 em { color: var(--accent); font-weight: 500; }
.mot-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(15px, 2vw, 18px);
}
.mot-language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}
.mot-language {
  min-width: 0;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mot-language:hover { border-color: var(--accent); transform: translateY(-2px); }
.mot-language.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.mot-language-code {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--card);
  font: 700 11px var(--sans);
  letter-spacing: .08em;
}
.mot-language b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.mot-language small { display: block; overflow: hidden; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mot-intro-actions, .mot-summary-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.mot-cta { min-height: 44px; padding-inline: 22px; }
.mot-cta span { margin-left: 10px; }
.mot-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 11px;
}
.mot-stats b { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }

.mot-play { justify-content: flex-start; }
.mot-game-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.mot-wordmark {
  justify-self: start;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 15px var(--serif);
}
.mot-game-language {
  justify-self: end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.mot-round-progress { display: flex; gap: 7px; align-items: center; }
.mot-progress-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }
.mot-progress-dot.is-done { background: var(--accent); }
.mot-progress-dot.is-current { width: 8px; height: 8px; border: 2px solid var(--accent); background: transparent; }
.mot-round-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mot-cue {
  max-width: 650px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 13px;
}
.mot-sentence {
  max-width: 760px;
  min-height: 120px;
  margin-top: 12px;
  font: 400 clamp(25px, 4vw, 38px)/1.35 var(--serif);
  letter-spacing: -.015em;
}
.mot-sentence-choice {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.mot-dial-zone { margin-top: 20px; }
.mot-selected-word {
  min-height: 44px;
  color: var(--accent);
  text-align: center;
  font: 600 clamp(22px, 3vw, 30px)/1.2 var(--serif);
  transition: opacity .1s ease;
}
.mot-range-wrap { position: relative; height: 42px; margin: 8px 14px 0; display: flex; align-items: center; }
.mot-range {
  --dial-progress: 50%;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.mot-range:focus { outline: none; }
.mot-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) 0 var(--dial-progress), var(--track) var(--dial-progress) 100%);
}
.mot-range::-moz-range-track { height: 3px; border: 0; border-radius: 99px; background: var(--track); }
.mot-range::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--accent); }
.mot-range::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  margin-top: -14px;
  appearance: none;
  -webkit-appearance: none;
  border: 8px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(30, 28, 40, .2);
  transition: transform .12s ease;
}
.mot-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 8px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(30, 28, 40, .2);
}
.mot-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.mot-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent); }
.mot-range:disabled { cursor: default; opacity: .55; }
.mot-ticks { position: absolute; z-index: 1; inset: 0 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.mot-ticks i { width: 1px; height: 9px; background: var(--border); }
.mot-actions { display: flex; justify-content: center; margin-top: 30px; }

.mot-feedback {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  animation: fadeUp .22s ease both;
}
.mot-feedback.is-high { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.mot-feedback.is-low { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.mot-score { display: flex; align-items: baseline; color: var(--ink-2); }
.mot-score strong { color: var(--ink); font: 600 41px/1 var(--serif); font-variant-numeric: tabular-nums; }
.mot-score span { margin-left: 5px; font-size: 11px; }
.mot-verdict { margin-bottom: 6px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mot-feedback-copy { font-size: 13px; }
.mot-feedback-copy p + p { margin-top: 6px; }
.mot-explanation { color: var(--ink-2); }
.mot-choice-notes { list-style: none; display: grid; gap: 7px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); }
.mot-choice-notes li { display: grid; grid-template-columns: minmax(78px, auto) 30px minmax(0, 1fr); align-items: baseline; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.mot-choice-notes b { color: var(--ink); font-weight: 650; }
.mot-choice-notes i { font-style: normal; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mot-choice-notes li.is-target b { color: var(--accent); }
.mot-choice-notes li.is-chosen b { text-decoration: underline; text-underline-offset: 3px; }
.mot-choice-notes.is-compact { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.mot-choice-notes.is-compact li { display: flex; min-width: 0; flex-direction: column; gap: 3px; text-align: center; }
.mot-choice-notes.is-compact b { max-width: 100%; overflow-wrap: anywhere; }
.mot-choice-notes.is-compact span { font-size: 11px; line-height: 1.35; }

.mot-summary { align-items: center; text-align: center; }
.mot-total { display: flex; align-items: baseline; margin-top: 20px; }
.mot-total strong { font: 500 clamp(72px, 14vw, 126px)/.9 var(--serif); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.mot-total span { margin-left: 12px; color: var(--ink-2); font-size: 16px; }
.mot-summary h2 { margin-top: 14px; font: 500 26px var(--serif); }
.mot-results { width: min(460px, 100%); margin-top: 32px; border-top: 1px solid var(--border); }
.mot-result-row { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr) 46px; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.mot-result-index { color: var(--ink-2); font-size: 11px; }
.mot-result-symbol { font-size: 17px; }
.mot-result-high { color: var(--good); }
.mot-result-mid { color: var(--accent); }
.mot-result-low { color: var(--bad); }
.mot-result-word { font: 500 15px var(--serif); }
.mot-result-row b { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.mot-personal-best { margin-top: 18px; color: var(--ink-2); font-size: 12px; }
.mot-summary-actions { justify-content: center; }

@media (max-width: 760px) {
  #module-motjuste { min-height: 0; }
  .mot-shell { min-height: 560px; padding-inline: 8px; }
  .mot-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mot-language:last-child { grid-column: 1 / -1; }
  .mot-sentence { min-height: 140px; }
  .mot-feedback { grid-template-columns: 1fr; gap: 12px; }
  .mot-score strong { font-size: 34px; }
}

@media (max-width: 460px) {
  .mot-intro h2 { font-size: 39px; }
  .mot-stats { gap: 14px; justify-content: space-between; }
  .mot-game-head { padding-bottom: 20px; }
  .mot-round-meta { margin-top: 20px; }
  .mot-cue { margin-top: 22px; }
  .mot-sentence { min-height: 156px; font-size: 25px; }
  .mot-range-wrap { margin-inline: 16px; }
  .mot-feedback { padding: 17px; }
  .mot-summary-actions { flex-direction: column; width: 100%; }
  .mot-summary-actions .btn { width: 100%; }
}

/* Zelfstandige website-entry (`game.html`) */
.mot-site-body { min-height: 100%; }
.mot-site-main {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: none;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
#module-motjuste { transition: opacity .24s ease, transform .32s cubic-bezier(.2,.75,.25,1); }
.mot-site-body.mot-is-home,
.mot-site-body.mot-info-open { height: 100svh; overflow: hidden; }
.mot-site-body.mot-is-home .mot-site-main,
.mot-site-body.mot-info-open .mot-site-main { overflow: hidden; }
.mot-site-body.mot-is-home #module-motjuste,
.mot-site-body.mot-is-home .mot-page { height: 100%; min-height: 0; }
.mot-site-body.mot-is-home .mot-hero-wrap { height: calc(100% - var(--mot-nav-height, 68px)); min-height: 0; }
.mot-site-body.mot-info-open #module-motjuste { opacity: 0; transform: translateX(-58px) scale(.985); pointer-events: none; }
.mot-info-view[hidden],
.mot-info-view article[hidden] { display: none; }
.mot-info-view {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  color: var(--ink);
  user-select: text;
  animation: motInfoIn .32s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes motInfoIn { from { opacity: 0; transform: translateX(58px); } to { opacity: 1; transform: none; } }
.mot-info-shell {
  width: min(760px, 100%);
  max-height: 100%;
  padding: clamp(26px, 5vw, 54px);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(20,20,28,.1);
}
.mot-info-shell > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mot-info-shell > header > b { color: var(--ink); font: 800 20px/1 var(--sans); letter-spacing: -.06em; }
.mot-info-back {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font: 700 11px/1 var(--sans);
}
.mot-info-back:hover, .mot-info-back:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.mot-info-view article {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(42px, 8vh, 76px);
  text-align: center;
  animation: motInfoArticleIn .2s ease both;
}
@keyframes motInfoArticleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mot-info-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mot-info-view h2 { max-width: 16em; margin: 14px auto 0; font: 600 clamp(34px, 5vw, 54px)/1.04 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.mot-info-view article > p:not(.mot-info-kicker) { max-width: 62ch; margin: 22px auto 0; color: var(--ink-2); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.7; }
.mot-info-more { display: inline-flex; align-items: center; gap: 18px; min-height: 42px; margin-top: 24px; padding: 0 16px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; font: 750 11px/1 var(--sans); text-decoration: none; }
.mot-info-more:hover, .mot-info-more:focus-visible { filter: brightness(1.08); }
.mot-site-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 46px;
  padding: 8px max(24px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: var(--ink-2);
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mot-site-footer > span:first-child { justify-self: start; }
.mot-site-footer nav { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.mot-site-footer nav button { padding: 4px 7px; color: inherit; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.mot-site-footer nav button:hover, .mot-site-footer nav button:focus-visible, .mot-site-footer nav button.is-active { color: var(--ink); background: var(--accent-soft); }
.mot-site-footer [data-site-tagline] { display: none; }
.mot-site-footer [data-site-credit] { justify-self: end; text-align: right; }
.mot-site-body.mot-is-playing .mot-site-footer { display: none; }
.mot-site-body.mot-is-playing .mot-info-view { display: none; }

/* Zelfstandige privacy- en contactpagina's delen de typografie van de game,
   maar blijven rustig leesbaar zonder JavaScript. */
.mot-legal-page {
  width: min(780px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 0 72px;
  color: var(--ink);
}
.mot-legal-languages { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mot-legal-languages a,
.mot-legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: 700 11px/1 var(--sans);
  text-decoration: none;
}
.mot-legal-languages a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.mot-legal-languages a:hover,
.mot-legal-languages a:focus-visible,
.mot-legal-back:hover,
.mot-legal-back:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.mot-legal-back { margin-top: 28px; }
.mot-legal-page article {
  margin-top: 22px;
  padding: clamp(26px, 6vw, 58px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(20, 20, 28, .07);
}
.mot-legal-page h1 { max-width: 14em; font: 600 clamp(34px, 6vw, 58px)/1.02 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.mot-legal-page article > p { max-width: 65ch; margin-top: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.mot-legal-page section { max-width: 65ch; margin-top: 36px; }
.mot-legal-page h2 { font: 700 17px/1.25 var(--sans); letter-spacing: -.015em; }
.mot-legal-page section p { margin-top: 9px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.mot-legal-page a { overflow-wrap: anywhere; }
.mot-legal-contact { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.mot-legal-host-link { display: inline-block; margin-top: 8px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.mot-boot { min-height: min(760px, calc(100svh - 42px)); display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ink-2); text-align: center; }
.mot-boot span { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: motBootSpin .8s linear infinite; }
.mot-boot p { font-size: 13px; }
.mot-boot button { min-height: 40px; padding: 0 18px; color: #0b0b0e; background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; font: 750 12px var(--sans); }
@keyframes motBootSpin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .mot-info-view { padding: 12px; }
  .mot-info-shell { padding: 22px; border-radius: 21px; }
  .mot-info-view article { margin-top: clamp(34px, 7vh, 54px); }
  .mot-info-view h2 { font-size: clamp(30px, 9vw, 43px); }
  .mot-info-view article > p:not(.mot-info-kicker) { margin-top: 17px; font-size: 14px; line-height: 1.58; }
  .mot-site-footer { grid-template-columns: 1fr; min-height: 48px; padding-inline: 8px; }
  .mot-site-footer > span { display: none; }
  .mot-site-footer nav { justify-self: center; flex-wrap: nowrap; gap: 0; }
  .mot-site-footer nav button { padding-inline: 6px; font-size: 9.5px; }
}

/* ─── Le Mot Juste · circulaire webdesign ─────────────────────────────── */
@property --mot-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #89a7ff;
}
@property --mot-accent-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #ff6d9f;
}
@property --mot-accent-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f2f0ea;
}
:root {
  --mot-black: #08080a;
  --mot-white: #f7f5ef;
  --mot-muted: #a5a4aa;
  --mot-accent: #89a7ff;
  --mot-accent-2: #ff6d9f;
  --mot-accent-3: #f2f0ea;
  --mot-mint: #64e3c3;
}
.mot-site-body { width: 100%; max-width: 100vw; overflow-x: clip; background: #f7f6f2; }
.mot-page {
  --mot-nav-height: 68px;
  min-height: calc(100vh - 42px);
  color: #18181d;
  background: radial-gradient(780px 360px at 50% 28%, color-mix(in srgb, var(--mot-accent) 9%, transparent), transparent 72%);
  /* De paletwissel wordt in JavaScript frame voor frame gestuurd, zodat hij
     ook zichtbaar blijft wanneer een taalkeuze het startscherm opnieuw tekent. */
}
.mot-page[data-theme="fr"] { --mot-accent: #7599ff; --mot-accent-2: #ff647d; --mot-accent-3: #f3f1eb; }
.mot-page[data-theme="en"] { --mot-accent: #ff667e; --mot-accent-2: #668dff; --mot-accent-3: #f4f2ed; }
.mot-page[data-theme="de"] { --mot-accent: #ffd047; --mot-accent-2: #ff5d58; --mot-accent-3: #282830; }
.mot-page[data-theme="es"] { --mot-accent: #ff665d; --mot-accent-2: #ffd047; --mot-accent-3: #f2b84b; }
.mot-page[data-theme="nl"] { --mot-accent: #ff8a45; --mot-accent-2: #6092ff; --mot-accent-3: #f2f0ea; }
.mot-web-nav {
  width: 100%;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
}
.mot-nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #111116;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 800 20px/1 var(--sans);
  letter-spacing: -.06em;
}
.mot-nav-brand small {
  display: inline-block;
  padding: 4px 6px 3px;
  color: #56545c;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 800 8px/1 var(--sans);
  letter-spacing: .08em;
  white-space: nowrap;
}
.mot-web-nav nav {
  width: min(720px, calc(100vw - 300px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.mot-web-nav nav button {
  min-width: 0;
  padding: 7px 8px;
  color: #6c6a72;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 600 12px var(--sans);
  white-space: nowrap;
}

.mot-web-nav nav button { text-align: center; }
.mot-web-nav nav button:hover, .mot-web-nav nav button.is-active { color: #111116; background: #eceae4; }
.mot-nav-tools { justify-self: end; display: flex; align-items: center; gap: 9px; }
.mot-nav-language { display: flex; align-items: center; gap: 7px; padding: 0; color: #6f6d74; background: transparent; border: 0; cursor: pointer; font: 700 11px var(--sans); }
.mot-nav-language b { width: 27px; height: 27px; display: grid; place-items: center; color: #0b0b0e; background: var(--mot-accent); border-radius: 50%; font-size: 11px; letter-spacing: .05em; transition: background .2s ease; }
.mot-nav-language:hover b, .mot-nav-language:focus-visible b { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mot-accent) 45%, transparent); }
.mot-sound-toggle,
.mot-appearance-toggle,
.mot-settings-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #55545b;
  background: rgba(255,255,255,.58);
  border: 1px solid #dedbd3;
  border-radius: 50%;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.mot-sound-toggle:hover, .mot-sound-toggle:focus-visible,
.mot-appearance-toggle:hover, .mot-appearance-toggle:focus-visible,
.mot-settings-toggle:hover, .mot-settings-toggle:focus-visible,
.mot-settings-toggle.is-open { color: #101014; background: #fff; border-color: var(--mot-accent); transform: scale(1.06); }
.mot-sound-toggle svg { width: 15px; height: 15px; overflow: visible; fill: currentColor; }
.mot-sound-toggle .mot-sound-wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mot-sound-toggle.is-soft .mot-sound-wave { opacity: .4; }
.mot-sound-toggle.is-muted { color: #99979e; }
.mot-sound-toggle.is-muted .mot-sound-wave { opacity: 0; }
.mot-sound-toggle.is-muted::after { content: ""; position: absolute; width: 15px; height: 1.5px; background: currentColor; border-radius: 2px; transform: rotate(-45deg); }
.mot-appearance-toggle svg { width: 16px; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mot-appearance-toggle .mot-theme-sun { display: none; }
.mot-appearance-toggle.is-dark .mot-theme-moon { display: none; }
.mot-appearance-toggle.is-dark .mot-theme-sun { display: block; }
.mot-settings { position: relative; display: flex; }
.mot-settings-toggle svg { width: 16px; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mot-settings-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(620px, calc(100svh - 76px));
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  padding: 6px;
  background: rgba(255,255,255,.98);
  border: 1px solid #dedbd3;
  border-radius: 13px;
  box-shadow: 0 15px 30px rgba(19,18,24,.14);
}
.mot-settings-panel.is-open { display: block; pointer-events: auto; }
.mot-settings-section { padding: 5px 4px 8px; }
.mot-settings-section > b { display: block; margin: 0 0 6px 2px; color: #6d6b73; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mot-settings-section + .mot-settings-section { padding-top: 9px; border-top: 1px solid #ebe7df; }
.mot-setting-languages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mot-setting-languages button { min-width: 0; height: 32px; padding: 0; color: #5e5c64; background: #eeeae3; border: 0; border-radius: 7px; cursor: pointer; font: 800 11px/1 var(--sans); }
.mot-setting-languages button:hover, .mot-setting-languages button:focus-visible { color: #101014; outline: 2px solid var(--mot-accent); outline-offset: 1px; }
.mot-setting-languages button.is-active { color: #0b0b0e; background: var(--mot-accent); }
.mot-setting-languages button.is-loading { opacity: .6; cursor: wait; }
.mot-setting-segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mot-setting-segmented.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mot-setting-segmented button { min-height: 32px; padding: 5px 6px; color: #5e5c64; background: #eeeae3; border: 0; border-radius: 7px; cursor: pointer; font: 700 10.5px/1.15 var(--sans); }
.mot-setting-segmented button:hover, .mot-setting-segmented button:focus-visible { color: #101014; outline: 2px solid var(--mot-accent); outline-offset: 1px; }
.mot-setting-segmented button.is-active { color: #0b0b0e; background: var(--mot-accent); }
.mot-setting-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: #242329;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--sans);
}
.mot-settings-section + .mot-setting-option { border-top: 1px solid #ebe7df; }
.mot-setting-option:hover, .mot-setting-option:focus-visible { background: #f0eee9; outline: none; }
.mot-setting-option b, .mot-setting-option small { display: block; }
.mot-setting-option b { font-size: 13px; font-weight: 750; }
.mot-setting-option small { margin-top: 4px; color: #6d6b73; font-size: 12.5px; line-height: 1.42; }
.mot-setting-option i { width: 21px; height: 21px; display: grid; place-items: center; color: transparent; background: #e5e2db; border-radius: 50%; font: 800 12px/1 var(--sans); }
.mot-setting-option.is-active i { color: #0b0b0e; background: var(--mot-accent); }

/* Geanimeerde circulaire hero */
.mot-hero-wrap { min-height: calc(100vh - 112px); display: grid; place-items: center; padding: 12px 24px 48px; overflow: hidden; }
.mot-orbit {
  position: relative;
  /* Reserveer op desktop ruimte voor de volledige taalpillen rondom de ring,
     zowel bij smalle vensters als bij een beperkte schermhoogte. */
  width: min(680px, calc(100vw - 180px), calc(100svh - 190px));
  aspect-ratio: 1;
}
.mot-orbit-ring {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -16deg, color-mix(in srgb, var(--mot-accent) 52%, rgba(30,30,36,.22)) 0deg 1deg, transparent 1deg 9deg);
  -webkit-mask: radial-gradient(transparent 0 68%, #000 68.3% 69%, transparent 69.3%);
  mask: radial-gradient(transparent 0 68%, #000 68.3% 69%, transparent 69.3%);
  animation: motOrbitSpin 80s linear infinite;
  animation-delay: var(--mot-clock, 0s);
}
.mot-orbit-ring::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(30,30,36,.12);
  border-radius: 50%;
}
@keyframes motOrbitSpin { to { transform: rotate(360deg); } }
.mot-orbit-core {
  position: absolute;
  inset: 82px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 66px 48px;
  color: #fff;
  background:
    radial-gradient(ellipse at 8% 10%, color-mix(in srgb, var(--mot-accent) 34%, transparent) 0%, transparent 51%),
    radial-gradient(ellipse at 96% 86%, color-mix(in srgb, var(--mot-accent-2) 28%, transparent) 0%, transparent 53%),
    radial-gradient(circle at 78% 4%, color-mix(in srgb, var(--mot-accent-3) 13%, transparent) 0%, transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--mot-accent) 8%, var(--mot-black)) 0%, var(--mot-black) 49%, color-mix(in srgb, var(--mot-accent-2) 8%, var(--mot-black)) 100%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 26px 70px color-mix(in srgb, var(--mot-accent) 14%, rgba(13,13,18,.24)), inset 0 0 0 1px rgba(255,255,255,.09);
}
.mot-orbit-core .mot-kicker {
  width: 100%;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--mot-accent);
  font-size: 11px;
  letter-spacing: .16em;
  text-align: center;
  white-space: normal;
}
.mot-orbit-core .mot-kicker time { color: var(--mot-accent); letter-spacing: .12em; }
.mot-title-stack { margin-top: 16px; }
.mot-title-cycle {
  position: relative;
  height: 92px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font: 650 clamp(28px, 3.55vw, 39px)/1.03 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
  text-align: center;
}
.mot-title-cycle span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  overflow: hidden;
  color: #fff;
  animation: motTitleCycle 20s cubic-bezier(.22,.7,.3,1) infinite;
  /* Een taalwissel bouwt de titel opnieuw op. Zonder de globale klok begint
     de cyclus dan bewust bij de aangeklikte taal in plaats van halverwege. */
  animation-delay: calc(var(--cycle-index) * 4s);
}
.mot-title-cycle span[lang="de"] { font-size: .94em; line-height: 1.07; }
.mot-title-cycle span[lang="es"] { font-size: .9em; line-height: 1.07; }
@keyframes motTitleCycle {
  0%, 16% { opacity: 1; transform: translateY(0); }
  19.5% { opacity: 0; transform: translateY(-10px); }
  19.6%, 96% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.mot-orbit-core .mot-lead { min-height: 56px; margin-top: 12px; color: var(--mot-muted); font-size: 13.5px; line-height: 1.48; text-align: center; text-wrap: balance; }
.mot-mode-actions { display: grid; gap: 8px; margin-top: 15px; }
.mot-mode-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 11px 16px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.mot-mode-button:hover { transform: translateX(3px); background: color-mix(in srgb, var(--mot-accent) 14%, transparent); border-color: color-mix(in srgb, var(--mot-accent) 62%, transparent); }
.mot-mode-button b { display: block; font-size: 13px; }
.mot-mode-button small { display: block; margin-top: 2px; color: #c2c0c8; font-size: 12px; line-height: 1.35; }
.mot-mode-button > span { min-width: 0; }
.mot-mode-button i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #0b0b0e; background: #fff; border-radius: 50%; font: 800 11px var(--sans); }
.mot-mode-daily { color: #0b0b0e; background: var(--mot-accent); border-color: var(--mot-accent); box-shadow: 0 10px 26px color-mix(in srgb, var(--mot-accent) 18%, transparent); }
.mot-mode-daily small { color: rgba(11,11,14,.68); }
.mot-mode-daily i { background: rgba(255,255,255,.8); }
.mot-mode-daily:hover { background: color-mix(in srgb, var(--mot-accent) 88%, #fff); border-color: var(--mot-accent); }
.mot-mode-endless { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.09); }
.mot-mode-endless i { color: var(--mot-accent); background: #232329; font-size: 18px; }
.mot-mode-review { background: color-mix(in srgb, var(--mot-accent) 8%, #17171c); border-color: color-mix(in srgb, var(--mot-accent) 32%, #33333a); }
.mot-mode-review i { color: #0b0b0e; background: var(--mot-accent); font-size: 16px; }
.mot-mode-button.is-complete { color: #071a15; border-color: var(--mot-mint); background: var(--mot-mint); }
.mot-mode-button.is-complete small { color: rgba(7,26,21,.68); }
.mot-mode-button.is-complete i { background: rgba(255,255,255,.78); font-size: 15px; }
.mot-orbit-core .mot-stats {
  width: auto;
  max-width: 78%;
  align-self: center;
  justify-content: center;
  flex: none;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 13px;
  padding-inline: 2px;
  color: #8d8c94;
  font-size: 11px;
  text-align: center;
}
.mot-orbit-core .mot-stats b { color: #dedde2; font-size: 11px; }
.mot-reset-progress {
  align-self: center;
  margin-top: 6px;
  padding: 2px 5px;
  color: #73727a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 600 11px var(--sans);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.mot-reset-progress:hover { color: #bab9c0; text-decoration-color: currentColor; }
.mot-orbit-core.has-review {
  padding: 36px 66px 30px;
}
.mot-orbit-core.has-review .mot-title-stack { margin-top: 8px; }
.mot-orbit-core.has-review .mot-title-cycle { height: 92px; transform: translateY(-8px); }
.mot-orbit-core.has-review .mot-lead { min-height: 44px; margin-top: 10px; }
.mot-orbit-core.has-review .mot-mode-actions { gap: 6px; margin-top: 8px; }
.mot-orbit-core.has-review .mot-mode-button { padding-block: 8px; }
.mot-orbit-core.has-review .mot-stats { display: none; }
.mot-orbit-language {
  position: absolute;
  z-index: 4;
  min-width: 70px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
  color: #6e6d74;
  background: rgba(247,246,242,.88);
  border: 1px solid #ddd9d0;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(9px);
  transition: transform .15s ease, color .15s ease, border-color .15s ease;
}
.mot-orbit-language b { width: 27px; height: 27px; display: grid; place-items: center; color: #77757d; background: #fff; border-radius: 50%; font-size: 11px; }
.mot-orbit-language span { font-size: 11px; font-weight: 650; }
.mot-orbit-language:hover, .mot-orbit-language:focus-visible, .mot-orbit-language.is-selected { color: #111116; border-color: var(--mot-accent); transform: scale(1.06); }
.mot-orbit-language:hover b, .mot-orbit-language:focus-visible b, .mot-orbit-language.is-selected b { color: #0b0b0e; background: var(--mot-accent); }
.mot-orbit-language.is-loading { opacity: .62; cursor: wait; }
.mot-orbit-language.is-loading b { animation: motLanguagePulse .7s ease-in-out infinite alternate; }
@keyframes motLanguagePulse { to { transform: scale(.82); opacity: .55; } }
.mot-language-load-error { max-width: 31em; margin: 5px auto 0; color: #ffb4b4; font-size: 10.5px; line-height: 1.35; text-align: center; }
/* De rand van de bovenste pil houdt dezelfde visuele marge tot de ring als de
   vier zijpillen; de stippels kruisen daardoor nooit meer door het label. */
.mot-orbit-language-0 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.mot-orbit-language-0:hover, .mot-orbit-language-0:focus-visible, .mot-orbit-language-0.is-selected { transform: translate(-50%, -50%) scale(1.06); }
.mot-orbit-language-1 { top: 29%; right: 0; transform: translateX(58%); }
.mot-orbit-language-2 { right: 3%; bottom: 16%; transform: translateX(52%); }
.mot-orbit-language-3 { left: 3%; bottom: 16%; transform: translateX(-52%); }
.mot-orbit-language-4 { top: 29%; left: 0; transform: translateX(-58%); }
.mot-orbit-language-1:hover, .mot-orbit-language-1:focus-visible, .mot-orbit-language-1.is-selected { transform: translateX(58%) scale(1.06); }
.mot-orbit-language-2:hover, .mot-orbit-language-2:focus-visible, .mot-orbit-language-2.is-selected { transform: translateX(52%) scale(1.06); }
.mot-orbit-language-3:hover, .mot-orbit-language-3:focus-visible, .mot-orbit-language-3.is-selected { transform: translateX(-52%) scale(1.06); }
.mot-orbit-language-4:hover, .mot-orbit-language-4:focus-visible, .mot-orbit-language-4.is-selected { transform: translateX(-58%) scale(1.06); }

/* Spelconsole: centraal en hoog contrast, met een echte ronde dial */
.mot-game-wrap { min-height: calc(100vh - 112px); display: grid; place-items: center; padding: 18px 24px 50px; }
.mot-page.is-playing .mot-game-wrap { min-height: 100svh; padding-block: 18px; }
.mot-console {
  position: relative;
  --mot-reading-size: 15px;
  --mot-option-size: 14px;
  --mot-learning-size: 14px;
  width: min(610px, calc(100vw - 32px));
  min-height: 690px;
  display: flex;
  flex-direction: column;
  padding: 30px 32px;
  color: #f7f7f8;
  background:
    radial-gradient(ellipse at 2% 0%, color-mix(in srgb, var(--mot-accent) 23%, transparent), transparent 42%),
    radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--mot-accent-2) 18%, transparent), transparent 44%),
    linear-gradient(145deg, color-mix(in srgb, var(--mot-accent) 6%, var(--mot-black)), var(--mot-black) 52%, color-mix(in srgb, var(--mot-accent-2) 6%, var(--mot-black)));
  border: 1px solid color-mix(in srgb, var(--mot-accent) 18%, #29292f);
  border-radius: 25px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--mot-accent) 12%, rgba(10,10,14,.24));
}
.mot-first-guide {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 13px 14px;
  color: #e9e8ed;
  background: color-mix(in srgb, var(--mot-accent) 12%, #17171c);
  border: 1px solid color-mix(in srgb, var(--mot-accent) 36%, #34343b);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0,0,0,.17);
  animation: motGuideIn .24s ease both;
}
.mot-guide-progress { display: flex; justify-content: center; gap: 4px; }
.mot-guide-progress span { width: 5px; height: 5px; background: #55545c; border-radius: 50%; transition: background .16s ease, transform .16s ease; }
.mot-guide-progress span.is-active { background: var(--mot-accent); transform: scale(1.16); }
.mot-guide-copy { min-width: 0; }
.mot-guide-copy b { display: block; color: #fff; font-size: 11px; }
.mot-guide-copy p { margin-top: 2px; color: #c8c6ce; font-size: 11px; line-height: 1.42; }
.mot-guide-actions { display: flex; align-items: center; gap: 5px; }
.mot-guide-actions button { min-height: 32px; padding: 0 9px; color: #9f9da6; background: transparent; border: 0; border-radius: 999px; cursor: pointer; font: 700 11px var(--sans); white-space: nowrap; }
.mot-guide-actions button:hover { color: #fff; }
.mot-guide-actions [data-action="guide-next"] { padding-inline: 12px; color: #0c0c10; background: var(--mot-accent); }
.mot-guide-actions [data-action="guide-next"]:hover { color: #0c0c10; filter: brightness(1.08); }
.mot-guide-actions span { margin-left: 6px; }
.mot-console.has-guide .mot-cue,
.mot-console.has-guide .mot-sentence,
.mot-console.has-guide .mot-dial-orbit,
.mot-console.has-guide .mot-round-actions .mot-primary { transition: opacity .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mot-console.guide-step-0 .mot-cue,
.mot-console.guide-step-0 .mot-sentence { text-shadow: 0 0 22px color-mix(in srgb, var(--mot-accent) 24%, transparent); }
.mot-console.guide-step-1 .mot-dial-orbit { border-color: var(--mot-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mot-accent) 10%, transparent), inset 0 0 42px color-mix(in srgb, var(--mot-accent-3) 5%, transparent); }
.mot-console.guide-step-2 .mot-round-actions .mot-primary { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mot-accent) 13%, transparent); }
@keyframes motGuideIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.mot-console-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mot-console-back { justify-self: start; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #d8d7dd; background: #1c1c21; border: 1px solid #38373f; border-radius: 50%; cursor: pointer; font: 650 18px/1 var(--sans); }
.mot-console-back:hover { color: #0b0b0e; background: var(--mot-accent); border-color: var(--mot-accent); }
.mot-console-tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.mot-console-tools .mot-sound-toggle, .mot-console-tools .mot-appearance-toggle, .mot-console-tools .mot-settings-toggle { width: 31px; height: 31px; color: #c6c4ce; background: #1c1c21; border-color: #38373f; }
.mot-console-tools .mot-settings-toggle:hover, .mot-console-tools .mot-settings-toggle:focus-visible, .mot-console-tools .mot-settings-toggle.is-open { color: #0b0b0e; background: var(--mot-accent); border-color: var(--mot-accent); }
.mot-console-tools .mot-settings-panel { background: #1c1c21; border-color: #38373f; box-shadow: 0 15px 30px rgba(0,0,0,.34); }
.mot-console-tools .mot-settings-section > b { color: #9a98a2; }
.mot-console-tools .mot-settings-section + .mot-settings-section { border-color: #34343b; }
.mot-console-tools .mot-setting-languages button { color: #bab8c1; background: #292930; }
.mot-console-tools .mot-setting-languages button:hover, .mot-console-tools .mot-setting-languages button:focus-visible { color: #fff; }
.mot-console-tools .mot-setting-languages button.is-active { color: #0b0b0e; background: var(--mot-accent); }
.mot-console-tools .mot-setting-segmented button { color: #bab8c1; background: #292930; }
.mot-console-tools .mot-setting-segmented button:hover, .mot-console-tools .mot-setting-segmented button:focus-visible { color: #fff; }
.mot-console-tools .mot-setting-segmented button.is-active { color: #0b0b0e; background: var(--mot-accent); }
.mot-console-tools .mot-setting-option { color: #f2f1f5; }
.mot-console-tools .mot-setting-option:hover, .mot-console-tools .mot-setting-option:focus-visible { background: #28282f; }
.mot-console-tools .mot-setting-option small { color: #aaa8b2; }
.mot-console-tools .mot-setting-option i { background: #3a3942; }
.mot-console-tools .mot-settings-section + .mot-setting-option { border-color: #34343b; }
.mot-console-language { min-width: 31px; height: 31px; display: grid; place-items: center; padding-inline: 7px; color: #0d0d10; background: var(--mot-accent); border: 0; border-radius: 999px; cursor: pointer; font: 800 11px/1 var(--sans); }
.mot-console-language:hover, .mot-console-language:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mot-accent) 48%, #fff); }
.mot-round-progress { min-width: 70px; display: flex; justify-content: center; align-items: center; gap: 6px; color: #aaa9b0; font-size: 11px; }
.mot-infinity { color: var(--mot-accent); font-size: 18px; }
.mot-console .mot-progress-dot { background: #34343a; }
.mot-console .mot-progress-dot.is-done { background: var(--mot-accent); }
.mot-console .mot-progress-dot.is-current { border-color: #fff; }
.mot-console .mot-round-meta { justify-content: flex-end; margin-top: 27px; color: #aaa9b1; font-size: 12px; }
.mot-console .mot-cue { margin-top: 27px; color: #d3d1d9; font-size: var(--mot-reading-size); line-height: 1.5; }
.mot-console .mot-sentence { min-height: 0; max-width: 560px; margin-top: 12px; padding-bottom: 8px; color: #fff; font: 500 clamp(22px, 3vw, 32px)/1.18 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue {
  height: 68px;
  display: flex;
  align-items: flex-end;
}
.mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence {
  height: 184px;
  display: flex;
  align-items: center;
}
.mot-sentence-line { min-width: 0; width: 100%; display: block; }
.mot-console .mot-sentence.is-long { font-size: clamp(20px, 2.55vw, 27px); line-height: 1.24; }
.mot-console .mot-sentence.is-xlong { font-size: clamp(18px, 2.25vw, 23px); line-height: 1.28; }
.mot-console .mot-sentence-choice { color: var(--mot-accent); border-color: color-mix(in srgb, var(--mot-accent) 68%, transparent); }
.mot-console .mot-dial-zone { display: grid; justify-items: center; margin-top: 26px; }
.mot-dial-orbit {
  position: relative;
  width: 225px;
  height: 225px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mot-accent) 28%, #303037);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--mot-accent) 27%, transparent), transparent 54%),
    radial-gradient(circle at 72% 78%, color-mix(in srgb, var(--mot-accent-2) 20%, transparent), transparent 58%),
    #101014;
  box-shadow: inset 0 0 42px color-mix(in srgb, var(--mot-accent-3) 5%, transparent), 0 12px 30px color-mix(in srgb, var(--mot-accent) 10%, transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.mot-dial-orbit:focus, .mot-dial-orbit:focus-within { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mot-accent) 18%, transparent); }
.mot-dial-orbit.is-dragging { cursor: grabbing; }
.mot-dial-orbit::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -90deg, #4a4a52 0deg 1deg, transparent 1deg 15deg);
  -webkit-mask: radial-gradient(transparent 0 94%, #000 94.5%);
  mask: radial-gradient(transparent 0 94%, #000 94.5%);
}
.mot-dial-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1d1d23;
  border: 1px solid #383840;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font: 600 17px/1 var(--sans);
  transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
.mot-dial-arrow:hover:not(:disabled) { color: #0b0b0e; background: var(--mot-accent); border-color: var(--mot-accent); transform: translateY(-50%) scale(1.06); }
.mot-dial-arrow:disabled { opacity: .22; cursor: default; }
.mot-dial-prev { left: 7px; }
.mot-dial-next { right: 7px; }
.mot-console .mot-selected-word {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  width: 126px;
  max-width: 126px;
  min-height: 0;
  color: #fff;
  font: 650 23px/1.08 var(--sans);
  letter-spacing: -.03em;
  text-align: center;
  overflow-wrap: break-word;
  transform: translate(-50%, -50%);
}
.mot-console .mot-selected-word.is-long { font-size: 18px; line-height: 1.14; }
.mot-console .mot-selected-word.is-xlong { font-size: 14.5px; line-height: 1.2; letter-spacing: -.01em; }
.mot-choice-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.mot-choice-dot { width: 18px; height: 18px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.mot-choice-dot span { width: 5px; height: 5px; background: #4a4a52; border-radius: 50%; transition: width .15s ease, height .15s ease, background .15s ease, box-shadow .15s ease; }
.mot-choice-dot:hover span { background: #86858e; }
.mot-choice-dot.is-selected span { width: 9px; height: 9px; background: var(--mot-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mot-accent) 16%, transparent); }
.mot-dial-count { position: absolute; top: 29px; left: 50%; color: #aaa9b1; font: 700 11px var(--sans); letter-spacing: .08em; transform: translateX(-50%); }
.mot-selected-word.is-swapping, .mot-sentence-choice.is-swapping { animation: motWordSwap .18s ease both; }
@keyframes motWordSwap { from { opacity: .15; filter: blur(2px); } to { opacity: 1; filter: blur(0); } }
.mot-idiom-console { min-height: 540px; }
.mot-idiom-question { margin-top: 30px; }
.mot-idiom-question > span { display: block; color: var(--mot-accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mot-idiom-question blockquote {
  min-height: 108px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 20px 22px;
  color: #fff;
  background: color-mix(in srgb, var(--mot-accent) 8%, #121216);
  border: 1px solid color-mix(in srgb, var(--mot-accent) 24%, #303037);
  border-radius: 18px;
  font: 540 clamp(18px, 2.4vw, 23px)/1.35 var(--sans);
  letter-spacing: -.025em;
}
.mot-idiom-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.mot-idiom-console.is-meaning-task .mot-idiom-question blockquote { min-height: 82px; color: var(--mot-accent); font-size: clamp(21px, 2.8vw, 28px); }
.mot-idiom-console.is-meaning-task .mot-idiom-options { grid-template-columns: 1fr; }
.mot-idiom-console.is-meaning-task .mot-idiom-option { min-height: 58px; }
.mot-idiom-console.is-meaning-task .mot-idiom-option b { font-weight: 550; }
.mot-idiom-option {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  color: #d3d1d9;
  background: #151519;
  border: 1px solid #303037;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.mot-idiom-option:hover:not(:disabled), .mot-idiom-option:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--mot-accent) 62%, #303037); transform: translateY(-1px); }
.mot-idiom-option > span { width: 23px; height: 23px; display: grid; place-items: center; color: #aaa9b1; background: #222228; border-radius: 50%; font-size: 11px; font-weight: 800; }
.mot-idiom-option b { min-width: 0; overflow-wrap: anywhere; font: 620 var(--mot-option-size)/1.38 var(--sans); }
.mot-idiom-option.is-selected { color: #fff; background: color-mix(in srgb, var(--mot-accent) 12%, #151519); border-color: var(--mot-accent); }
.mot-idiom-option.is-selected > span { color: #0b0b0e; background: var(--mot-accent); }
.mot-idiom-option.is-correct { color: #fff; border-color: var(--mot-mint); }
.mot-idiom-option.is-correct > span { color: #071a15; background: var(--mot-mint); }
.mot-idiom-option.is-wrong { border-color: #ff7878; }
.mot-idiom-option:disabled { cursor: default; }
.mot-idiom-feedback { margin-top: 18px !important; }
.mot-idiom-answer { margin-top: 7px; }
.mot-idiom-answer > b { display: block; color: #fff; font-size: 17px; }
.mot-idiom-answer > p { margin-top: 4px; color: #e0dee5; }
.mot-idiom-chosen { margin-top: 8px; color: #c6c4cd; }
.mot-idiom-chosen small, .mot-idiom-learning small { display: block; margin-bottom: 2px; color: var(--mot-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mot-idiom-learning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 9px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #393840; }
.mot-idiom-learning p { min-width: 0; min-height: 104px; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 7px; padding: 13px 14px; color: #d0ced6; background: rgba(255,255,255,.025); border: 1px solid #303037; border-radius: 12px; font-size: var(--mot-learning-size); line-height: 1.5; }
.mot-idiom-learning p:last-child { grid-column: 1 / -1; min-height: 0; }
.mot-idiom-console.is-answered .mot-idiom-question,
.mot-idiom-console.is-answered .mot-idiom-options { display: none; }

/* Vreemde woorden en regionale taalvariatie */
.mot-discovery-console { min-height: 640px; }
.mot-discovery-question { margin-top: 26px; text-align: center; }
.mot-discovery-question > span { display: block; color: var(--mot-accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mot-discovery-question h2 {
  margin-top: 11px;
  color: #fff;
  font: 680 clamp(34px, 6vw, 55px)/1.04 var(--sans);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.mot-context-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 0 14px;
  color: #d3d1d9;
  background: #1a1a1f;
  border: 1px solid #393840;
  border-radius: 999px;
  cursor: pointer;
  font: 700 11px var(--sans);
}
.mot-context-toggle:hover { color: #0b0b0e; background: var(--mot-accent); border-color: var(--mot-accent); }
.mot-context-toggle span { font-size: 16px; font-weight: 400; }
.mot-context-reveal { max-width: 500px; margin: 13px auto 0; padding: 13px 16px; color: #c6c4cc; background: color-mix(in srgb, var(--mot-accent) 7%, #121216); border: 1px solid color-mix(in srgb, var(--mot-accent) 22%, #303037); border-radius: 14px; text-align: left; animation: motQuestionIn .2s ease both; }
.mot-context-reveal small { display: block; margin-bottom: 4px; color: var(--mot-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mot-context-reveal p { font-size: 13px; line-height: 1.45; }
.mot-discovery-options { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
.mot-regional-console .mot-discovery-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mot-discovery-option {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: #d3d1d9;
  background: #151519;
  border: 1px solid #303037;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.mot-discovery-option:hover:not(:disabled), .mot-discovery-option:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--mot-accent) 62%, #303037); transform: translateY(-1px); }
.mot-discovery-option > span { width: 24px; height: 24px; display: grid; place-items: center; color: #aaa9b1; background: #222228; border-radius: 50%; font-size: 10px; font-weight: 800; }
.mot-discovery-option b { min-width: 0; overflow-wrap: anywhere; font: 570 var(--mot-option-size)/1.45 var(--sans); }
.mot-discovery-option.is-selected { color: #fff; background: color-mix(in srgb, var(--mot-accent) 11%, #151519); border-color: var(--mot-accent); }
.mot-discovery-option.is-selected > span { color: #0b0b0e; background: var(--mot-accent); }
.mot-discovery-option.is-correct { color: #fff; border-color: var(--mot-mint); }
.mot-discovery-option.is-correct > span { color: #071a15; background: var(--mot-mint); }
.mot-discovery-option.is-wrong { border-color: #ff7878; }
.mot-discovery-option:disabled { cursor: default; }
.mot-regional-question blockquote { max-width: 520px; min-height: 110px; display: flex; align-items: center; justify-content: center; margin: 10px auto 0; padding: 18px 20px; color: #fff; background: color-mix(in srgb, var(--mot-accent) 8%, #121216); border: 1px solid color-mix(in srgb, var(--mot-accent) 24%, #303037); border-radius: 18px; font: 560 clamp(19px, 2.8vw, 26px)/1.28 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.mot-discovery-feedback { margin-top: 18px !important; }
.mot-discovery-answer { margin-top: 7px; }
.mot-discovery-answer > small { display: block; margin-bottom: 3px; color: #aaa8b1; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.mot-discovery-answer > b { display: block; color: #fff; font-size: 19px; overflow-wrap: anywhere; }
.mot-discovery-answer > p { margin-top: 4px; color: #e0dee5; }
.mot-discovery-answer > p span { margin-right: 6px; color: #aaa8b1; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.mot-regional-answer-head { display: flex; align-items: center; gap: 9px; }
.mot-regional-answer-head > b { min-width: 0; color: #fff; font-size: 20px; overflow-wrap: anywhere; }
.mot-regional-answer .mot-regional-meaning { margin-top: 6px; color: #e3e1e8; font-size: var(--mot-learning-size); line-height: 1.5; }
.mot-regional-answer .mot-regional-use { margin-top: 7px; color: #c3c1ca; font-size: 13px; line-height: 1.48; }
.mot-region-flags { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.mot-region-flag { min-width: 25px; height: 21px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 1px 4px; overflow: hidden; color: #f3f2f6; background: #24242a; border: 1px solid #3b3a42; border-radius: 6px; font: 13px/1 var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.16); }
.mot-region-flag i { font-size: 12px; font-style: normal; line-height: 1; }
.mot-region-flag i svg { display: block; }
.mot-region-flag small { color: inherit; font-size: 7px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
/* Unicode heeft geen Vlaamse, Waalse, Brusselse of Québecse vlagemoji. Deze
   compacte badges tonen daarom hun echte vlagkleuren met een SVG-embleem
   (leeuw, haan, iris, fleur-de-lis) dat via currentColor wordt ingekleurd. */
.mot-region-flag.is-flanders { color: #111; background: #f5d21f; border-color: #d2b100; }
.mot-region-flag.is-wallonia { color: #c5202b; background: #f5d21f; border-color: #d2b100; }
.mot-region-flag.is-brussels { color: #f3cf23; background: #1768a8; border-color: #105486; }
.mot-region-flag.is-quebec { color: #fff; background: #003da5; border-color: #002d7a; }
.mot-discovery-learning { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #393840; }
.mot-discovery-learning p { min-width: 0; padding: 13px 14px; color: #d0ced6; background: rgba(255,255,255,.025); border: 1px solid #303037; border-radius: 12px; font-size: var(--mot-learning-size); line-height: 1.5; }
.mot-discovery-learning small { display: block; margin-bottom: 4px; color: var(--mot-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mot-discovery-learning em { display: block; margin-top: 8px; color: #bbb9c2; font-size: 12.5px; font-style: normal; }
.mot-discovery-source { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; color: #bbb9c2; font-size: 12px; line-height: 1.4; text-decoration: none; }
.mot-discovery-source span { color: var(--mot-accent); font-weight: 800; text-transform: uppercase; }
.mot-discovery-source:hover { color: #fff; }
.mot-regional-details { margin-top: 13px; padding-top: 9px; border-top: 1px solid #3b3a42; }
.mot-regional-details summary { min-height: 34px; display: flex; align-items: center; justify-content: space-between; color: var(--mot-accent); cursor: pointer; font-size: 11px; font-weight: 750; list-style: none; }
.mot-regional-details summary::-webkit-details-marker { display: none; }
.mot-regional-details summary span { font-size: 16px; transition: transform .16s ease; }
.mot-regional-details[open] summary span { transform: rotate(180deg); }
.mot-regional-details ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.mot-regional-details li { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 10px; color: #c1bfc8; background: rgba(255,255,255,.025); border: 1px solid #303037; border-radius: 11px; list-style: none; }
.mot-regional-details li b, .mot-regional-details li small, .mot-regional-details li p, .mot-regional-details li em { display: block; overflow-wrap: anywhere; }
.mot-regional-details li b { color: #fff; font-size: 13.5px; }
.mot-regional-details li small { margin-top: 3px; color: #aaa8b2; font-size: 11px; line-height: 1.4; }
.mot-regional-details li p { margin-top: 6px; color: #d0ced6; font-size: 13.5px; line-height: 1.48; }
.mot-regional-details li em { margin-top: 5px; color: var(--mot-accent); font-size: 11.5px; font-style: normal; line-height: 1.4; }
.mot-discovery-console.is-answered .mot-discovery-question,
.mot-discovery-console.is-answered .mot-discovery-options { display: none; }
.mot-round-actions { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 25px; }
.mot-primary, .mot-secondary, .mot-text-button { border: 0; cursor: pointer; font: 700 12px var(--sans); }
.mot-primary { min-height: 44px; padding: 0 20px; color: #0b0b0e; background: #fff; border-radius: 999px; }
.mot-primary:hover { background: var(--mot-accent); }
.mot-primary span { margin-left: 12px; }
.mot-secondary { min-height: 42px; padding: 0 18px; color: #fff; background: #25252b; border-radius: 999px; }
.mot-text-button { padding: 10px; color: #8d8c94; background: transparent; }
.mot-console .mot-feedback { grid-template-columns: 92px 1fr; margin-top: 22px; padding: 18px; color: #e5e3e9; background: #151519; border-color: #38373f; box-shadow: none; }
.mot-console .mot-feedback:focus { outline: none; }
.mot-console .mot-feedback:focus-visible { border-color: color-mix(in srgb, var(--mot-accent) 65%, #2d2d33); outline: 2px solid color-mix(in srgb, var(--mot-accent) 70%, transparent); outline-offset: 0; }
.mot-console .mot-score strong { color: #fff; font-size: 34px; }
.mot-console .mot-verdict { color: var(--mot-accent); font-size: 11px; }
.mot-console .mot-feedback-copy { font-size: var(--mot-reading-size); line-height: 1.5; }
.mot-console .mot-explanation { color: #d3d1d9; }
.mot-target-word { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin: 5px 0 8px; }
.mot-target-word span { color: #bbb9c2; font-size: 12.5px; }
.mot-target-word b { color: #fff; font-size: 18px; }
.mot-nuance-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #3b3a42; }
.mot-nuance-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; color: var(--mot-accent); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.mot-nuance-details summary::-webkit-details-marker { display: none; }
.mot-nuance-details summary span { font-size: 16px; transition: transform .16s ease; }
.mot-nuance-details[open] summary span { transform: rotate(180deg); }
.mot-console .mot-choice-notes { border-color: #3b3a42; }
.mot-console .mot-nuance-details .mot-choice-notes { margin-top: 6px; padding-top: 10px; border-top: 0; }
.mot-console .mot-choice-notes li { color: #d0ced6; font-size: 13.5px; line-height: 1.45; }
.mot-console .mot-choice-notes b { color: #f2f1f5; }
.mot-console .mot-choice-notes i { color: #c4c2ca; font-size: 12px; }
.mot-console .mot-choice-notes span { color: #d0ced6; font-size: 13.5px; line-height: 1.45; }
.mot-console .mot-choice-notes li.is-target b { color: var(--mot-accent); }
.mot-console.is-answered .mot-dial-zone { display: none; }

/* Betekenisvolle overgangen tussen rondes */
.mot-console-round:not(.is-answered) { animation: motPanelIn .28s cubic-bezier(.2,.75,.25,1) both; }
.mot-console-round:not(.is-answered) .mot-round-meta,
.mot-console-round:not(.is-answered) .mot-cue,
.mot-console-round:not(.is-answered) .mot-sentence,
.mot-console-round:not(.is-answered) .mot-dial-zone,
.mot-console-round:not(.is-answered) .mot-round-actions { animation: motQuestionIn .34s ease both; }
.mot-console-round:not(.is-answered) .mot-cue { animation-delay: .035s; }
.mot-console-round:not(.is-answered) .mot-sentence { animation-delay: .07s; }
.mot-console-round:not(.is-answered) .mot-dial-zone { animation-delay: .11s; }
.mot-console-round:not(.is-answered) .mot-round-actions { animation-delay: .14s; }
.mot-console.is-leaving { opacity: 0; transition: opacity .18s ease; }
/* Bij een her-render door taalwissel mogen de intro-animaties niet opnieuw afspelen. */
.mot-page.is-instant .mot-console-round:not(.is-answered),
.mot-page.is-instant .mot-console-round:not(.is-answered) .mot-cue,
.mot-page.is-instant .mot-console-round:not(.is-answered) .mot-sentence,
.mot-page.is-instant .mot-console-round:not(.is-answered) .mot-dial-zone,
.mot-page.is-instant .mot-console-round:not(.is-answered) .mot-round-actions,
.mot-page.is-instant .mot-feedback { animation: none; }
@keyframes motPanelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes motQuestionIn { from { opacity: 0; } to { opacity: 1; } }

.mot-console-summary { align-items: center; text-align: center; }
.mot-console-summary .mot-kicker { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 9px; color: var(--mot-accent); }
.mot-console-summary .mot-kicker span { min-width: 0; text-wrap: balance; }
.mot-console-summary .mot-kicker time { padding-left: 9px; color: #aaa9b0; border-left: 1px solid #3a3940; white-space: nowrap; }
.mot-console-summary .mot-total { margin-top: 55px; }
.mot-console-summary .mot-total strong { color: #fff; font: 700 92px/1 var(--sans); }
.mot-console-summary .mot-total span { color: #77767e; }
.mot-console-summary h2 { margin-top: 12px; font: 650 25px var(--sans); }
.mot-daily-status { margin-top: 8px; color: var(--mot-accent); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mot-console-summary .mot-results { margin-top: 32px; border-color: #303037; }
.mot-console-summary .mot-result-row { grid-template-columns: 28px 28px 1fr 46px; border-color: #29292f; }
.mot-console-summary .mot-result-row span { color: #77767e; }
.mot-console-summary .mot-result-row i { color: var(--mot-accent); font-style: normal; }
.mot-console-summary .mot-result-row b { color: #fff; text-align: left; }
.mot-console-summary .mot-result-row b small { display: block; margin-bottom: 2px; color: var(--mot-accent); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
.mot-console-summary .mot-result-row strong { text-align: right; font-size: 12.5px; }
.mot-console-summary .mot-personal-best { color: #85848c; }
.mot-console-summary .mot-summary-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .mot-page, .mot-page * { animation: none !important; transition: none !important; }
  .mot-title-cycle span { display: none; }
  .mot-title-cycle span:first-child { display: flex; opacity: 1; }
}

/* Donkere site-chrome rond de (altijd donkere) console en hero-kern */
@media (prefers-color-scheme: dark) {
  .mot-site-body { background: #101013; }
  .mot-page { color: #ecebf1; }
  .mot-nav-brand { color: #f2f1f5; }
  .mot-web-nav nav button:hover, .mot-web-nav nav button.is-active { color: #f2f1f5; background: #26262d; }
  .mot-nav-language { color: #9c9aa6; }
  .mot-orbit-language { color: #a5a3ad; background: rgba(23,23,28,.88); border-color: #35343d; }
  .mot-orbit-language b { color: #cfced6; background: #26262d; }
  .mot-orbit-language:hover, .mot-orbit-language:focus-visible, .mot-orbit-language.is-selected { color: #f2f1f5; }
  .mot-orbit-language:hover b, .mot-orbit-language:focus-visible b, .mot-orbit-language.is-selected b { color: #0b0b0e; }
  .mot-orbit-ring { background: repeating-conic-gradient(from -16deg, color-mix(in srgb, var(--mot-accent) 55%, rgba(236,235,241,.28)) 0deg 1deg, transparent 1deg 9deg); }
  .mot-orbit-ring::after { border-color: rgba(255,255,255,.1); }
}

/* Handmatige licht/donker-keuze voor de site-chrome; de speelconsole blijft bewust donker. */
html[data-color-mode="light"] .mot-site-body { background: #f7f6f2; }
html[data-color-mode="light"] .mot-page { color: #18181d; }
html[data-color-mode="light"] .mot-nav-brand { color: #111116; }
html[data-color-mode="light"] .mot-web-nav nav button { color: #6c6a72; }
html[data-color-mode="light"] .mot-web-nav nav button:hover,
html[data-color-mode="light"] .mot-web-nav nav button.is-active { color: #111116; background: #eceae4; }
html[data-color-mode="light"] .mot-nav-language { color: #65636b; }
html[data-color-mode="light"] .mot-orbit-language { color: #6f6d74; background: rgba(255,255,255,.78); border-color: #dedbd3; }
html[data-color-mode="light"] .mot-orbit-language b { color: #77757d; background: #fff; }
html[data-color-mode="light"] .mot-orbit-language:hover,
html[data-color-mode="light"] .mot-orbit-language:focus-visible,
html[data-color-mode="light"] .mot-orbit-language.is-selected { color: #111116; }
html[data-color-mode="light"] .mot-orbit-language:hover b,
html[data-color-mode="light"] .mot-orbit-language:focus-visible b,
html[data-color-mode="light"] .mot-orbit-language.is-selected b { color: #0b0b0e; background: var(--mot-accent); }
html[data-color-mode="light"] .mot-orbit-ring { background: repeating-conic-gradient(from -16deg, color-mix(in srgb, var(--mot-accent) 52%, rgba(30,30,36,.22)) 0deg 1deg, transparent 1deg 9deg); }
html[data-color-mode="light"] .mot-orbit-ring::after { border-color: rgba(30,30,36,.12); }

html[data-color-mode="dark"] .mot-site-body { background: #101013; }
html[data-color-mode="dark"] .mot-page { color: #ecebf1; }
html[data-color-mode="dark"] .mot-nav-brand { color: #f2f1f5; }
html[data-color-mode="dark"] .mot-nav-brand small { color: #aaa8b2; }
html[data-color-mode="dark"] .mot-web-nav nav button { color: #aaa8b2; }
html[data-color-mode="dark"] .mot-web-nav nav button:hover,
html[data-color-mode="dark"] .mot-web-nav nav button.is-active { color: #f2f1f5; background: #26262d; }
html[data-color-mode="dark"] .mot-nav-language { color: #aaa8b5; }
html[data-color-mode="dark"] .mot-sound-toggle,
html[data-color-mode="dark"] .mot-appearance-toggle,
html[data-color-mode="dark"] .mot-settings-toggle { color: #c6c4ce; background: rgba(38,38,45,.9); border-color: #3b3a44; }
html[data-color-mode="dark"] .mot-settings-panel { background: #1c1c21; border-color: #3b3a44; box-shadow: 0 15px 30px rgba(0,0,0,.34); }
html[data-color-mode="dark"] .mot-settings-section > b { color: #9a98a2; }
html[data-color-mode="dark"] .mot-settings-section + .mot-settings-section { border-color: #34343b; }
html[data-color-mode="dark"] .mot-setting-languages button { color: #bab8c1; background: #292930; }
html[data-color-mode="dark"] .mot-setting-languages button.is-active { color: #0b0b0e; background: var(--mot-accent); }
html[data-color-mode="dark"] .mot-setting-segmented button { color: #bab8c1; background: #292930; }
html[data-color-mode="dark"] .mot-setting-segmented button.is-active { color: #0b0b0e; background: var(--mot-accent); }
html[data-color-mode="dark"] .mot-setting-option { color: #f2f1f5; }
html[data-color-mode="dark"] .mot-setting-option small { color: #aaa8b2; }
html[data-color-mode="dark"] .mot-settings-section + .mot-setting-option { border-color: #34343b; }
html[data-color-mode="dark"] .mot-sound-toggle:hover,
html[data-color-mode="dark"] .mot-sound-toggle:focus-visible,
html[data-color-mode="dark"] .mot-appearance-toggle:hover,
html[data-color-mode="dark"] .mot-appearance-toggle:focus-visible,
html[data-color-mode="dark"] .mot-settings-toggle:hover,
html[data-color-mode="dark"] .mot-settings-toggle:focus-visible,
html[data-color-mode="dark"] .mot-settings-toggle.is-open { color: #fff; background: #2d2d35; border-color: var(--mot-accent); }
html[data-color-mode="dark"] .mot-orbit-language { color: #aaa8b2; background: rgba(23,23,28,.88); border-color: #35343d; }
html[data-color-mode="dark"] .mot-orbit-language b { color: #cfced6; background: #26262d; }
html[data-color-mode="dark"] .mot-orbit-language:hover,
html[data-color-mode="dark"] .mot-orbit-language:focus-visible,
html[data-color-mode="dark"] .mot-orbit-language.is-selected { color: #f2f1f5; }
html[data-color-mode="dark"] .mot-orbit-language:hover b,
html[data-color-mode="dark"] .mot-orbit-language:focus-visible b,
html[data-color-mode="dark"] .mot-orbit-language.is-selected b { color: #0b0b0e; background: var(--mot-accent); }
html[data-color-mode="dark"] .mot-orbit-ring { background: repeating-conic-gradient(from -16deg, color-mix(in srgb, var(--mot-accent) 55%, rgba(236,235,241,.28)) 0deg 1deg, transparent 1deg 9deg); }
html[data-color-mode="dark"] .mot-orbit-ring::after { border-color: rgba(255,255,255,.1); }

/* Expliciete contrastvoorkeur: de spelkleuren blijven herkenbaar, maar tekst,
   randen en de rustige siteachtergrond krijgen duidelijkere scheiding. */
html[data-contrast-mode="true"][data-color-mode="light"] .mot-site-body,
html[data-contrast-mode="true"][data-color-mode="light"] .mot-page { background: #fff; }
html[data-contrast-mode="true"][data-color-mode="light"] .mot-web-nav nav button { color: #34333a; }
html[data-contrast-mode="true"][data-color-mode="light"] .mot-orbit-language { color: #17171c; background: #fff; border: 2px solid #393840; }
html[data-contrast-mode="true"][data-color-mode="light"] .mot-orbit-language b { color: #17171c; background: #f3f2ed; }
html[data-contrast-mode="true"][data-color-mode="dark"] .mot-site-body,
html[data-contrast-mode="true"][data-color-mode="dark"] .mot-page { background: #000; }
html[data-contrast-mode="true"][data-color-mode="dark"] .mot-web-nav nav button { color: #e7e6ec; }
html[data-contrast-mode="true"][data-color-mode="dark"] .mot-orbit-language { color: #fff; background: #101013; border: 2px solid #e7e6ec; }
html[data-contrast-mode="true"] .mot-orbit-ring::after { border-width: 2px; }
html[data-contrast-mode="true"] .mot-console { border-color: color-mix(in srgb, var(--mot-accent) 76%, #fff); }

.mot-page button:focus-visible { outline: 2px solid var(--mot-accent); outline-offset: 3px; }
.mot-page .mot-idiom-option:focus-visible,
.mot-page .mot-discovery-option:focus-visible { outline-offset: 0; }

/* Leesprofiel: een rustige, ruimere tekstweergave zonder een extern font of
   een claim dat één lettertype voor iedereen werkt. De voorkeur blijft lokaal
   in de browser bewaard. */
html[data-dyslexia-mode="true"] .mot-page :is(button, h1, h2, h3, p, span, b, strong, small, blockquote, summary, li, time) {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal;
  letter-spacing: .022em;
  word-spacing: .08em;
}
html[data-dyslexia-mode="true"] .mot-info-view :is(button, h1, h2, h3, p, span, b, strong, small) {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal;
  letter-spacing: .022em;
  word-spacing: .08em;
}
html[data-dyslexia-mode="true"] .mot-page :is(.mot-orbit-core .mot-lead, .mot-console .mot-cue, .mot-console .mot-sentence, .mot-idiom-question blockquote, .mot-discovery-question, .mot-feedback-copy, .mot-setting-option small) { line-height: 1.55; }
html[data-dyslexia-mode="true"] .mot-page .mot-console .mot-sentence { font-size: clamp(25px, 3.4vw, 35px); letter-spacing: -.005em; }
html[data-dyslexia-mode="true"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 80px; }
html[data-dyslexia-mode="true"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 240px; }
html[data-dyslexia-mode="true"] .mot-page .mot-title-cycle { line-height: 1.14; letter-spacing: -.01em; }
html[data-dyslexia-mode="true"] .mot-page,
html[data-dyslexia-mode="true"] .mot-page *,
html[data-motion-mode="reduce"] .mot-page,
html[data-motion-mode="reduce"] .mot-page * { animation: none !important; transition: none !important; }
html[data-dyslexia-mode="true"] :is(#module-motjuste, .mot-info-view, .mot-info-view *),
html[data-motion-mode="reduce"] :is(#module-motjuste, .mot-info-view, .mot-info-view *) { animation: none !important; transition: none !important; }
html[data-dyslexia-mode="true"] .mot-page .mot-title-cycle span,
html[data-motion-mode="reduce"] .mot-page .mot-title-cycle span { position: static; display: none; opacity: 1; transform: none; }
html[data-dyslexia-mode="true"] .mot-page .mot-title-cycle span:first-child,
html[data-motion-mode="reduce"] .mot-page .mot-title-cycle span:first-child { display: flex; }
@media (max-width: 1240px) {
  .mot-page { --mot-nav-height: 90px; }
  .mot-web-nav {
    height: 90px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 40px;
    gap: 0 8px;
    padding: 2px 12px 0;
  }
  .mot-nav-brand { grid-column: 1; grid-row: 1; }
  .mot-nav-tools { grid-column: 2; grid-row: 1; }
  .mot-web-nav nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .mot-web-nav nav button { min-width: 0; padding: 6px; font-size: 11px; }
  .mot-hero-wrap { min-height: calc(100svh - 130px); }
}
@media (min-width: 761px) and (max-width: 920px) {
  /* De compacte footer neemt op lage tabletvensters vaste hoogte in. Geef de
     cirkel daar iets meer breedte en de kern extra ademruimte, zodat ook een
     derde (herhalings)actie volledig binnen de cirkel blijft. */
  .mot-orbit { width: min(680px, calc(100vw - 140px), calc(100svh - 190px)); }
  .mot-orbit-core { inset: 72px; }
}
@media (max-width: 760px) {
  .mot-nav-brand { font-size: 16px; }
  .mot-nav-brand { gap: 6px; }
  .mot-nav-brand small { padding: 3px 5px 2px; font-size: 7px; }
  .mot-nav-language span { display: none; }
  .mot-hero-wrap { min-height: calc(100svh - 130px); padding: 8px 4px 30px; }
  .mot-orbit { width: min(680px, calc(100vw - 32px)); }
  .mot-orbit-core { inset: 13%; padding: 12% 12% 10%; }
  .mot-orbit-core.has-review { padding: 8% 12% 7%; }
  .mot-orbit-core.has-review .mot-title-cycle { height: 74px; }
  .mot-orbit-core.has-review .mot-lead { margin-top: 8px; }
  .mot-title-stack { margin-top: 8px; }
  .mot-title-cycle { height: 74px; font-size: clamp(25px, 4.2vw, 31px); line-height: 1.04; }
  .mot-title-cycle span { line-height: 1.04; }
  .mot-orbit-core .mot-lead { font-size: 12.5px; }
  .mot-mode-actions { margin-top: 10px; }
  .mot-mode-button { padding-block: 9px; }
  .mot-orbit-core .mot-stats, .mot-reset-progress { display: none; }
  .mot-orbit-language span { display: none; }
  .mot-orbit-language { min-width: 0; padding: 4px; }
  .mot-orbit-language b { width: 28px; height: 28px; }
  .mot-orbit-language-1 { right: 12px; transform: translateX(36%); }
  .mot-orbit-language-4 { left: 12px; transform: translateX(-36%); }
  .mot-orbit-language-1:hover, .mot-orbit-language-1:focus-visible, .mot-orbit-language-1.is-selected { transform: translateX(36%) scale(1.06); }
  .mot-orbit-language-4:hover, .mot-orbit-language-4:focus-visible, .mot-orbit-language-4.is-selected { transform: translateX(-36%) scale(1.06); }
  .mot-game-wrap { min-height: calc(100svh - 98px); padding: 5px 0 28px; }
  .mot-console { width: min(600px, calc(100vw - 12px)); min-height: calc(100svh - 112px); padding: 23px 20px; border-radius: 22px; }
  .mot-first-guide { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px 10px; padding: 12px; }
  .mot-guide-actions { grid-column: 2; justify-content: flex-start; }
  .mot-console.has-guide .mot-round-meta, .mot-console.has-guide .mot-cue { margin-top: 18px; }
  .mot-console .mot-sentence { min-height: 0; }
  .mot-idiom-question blockquote { min-height: 96px; padding: 16px; font-size: 18px; }
  .mot-idiom-options { grid-template-columns: 1fr; }
  .mot-idiom-option { min-height: 54px; }
  .mot-idiom-learning { grid-template-columns: 1fr; }
  .mot-idiom-learning p { min-height: 0; }
  .mot-regional-console .mot-discovery-options { grid-template-columns: 1fr; }
  .mot-regional-details ul { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .mot-nav-language { display: none; }
  .mot-console-summary .mot-kicker { font-size: 11px; line-height: 1.35; letter-spacing: .1em; }
  .mot-console { min-height: calc(100svh - 106px); }
  .mot-console .mot-cue { margin-top: 20px; }
  .mot-console .mot-sentence { min-height: 0; font-size: clamp(21px, 6vw, 27px); }
  .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 80px; }
  .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 220px; }
  .mot-console .mot-sentence.is-long { font-size: 20px; }
  .mot-console .mot-sentence.is-xlong { font-size: 18px; }
  .mot-dial-orbit { width: 205px; height: 205px; }
  .mot-console .mot-range { width: 220px; }
  .mot-console .mot-feedback { grid-template-columns: 1fr; }
}

/* Mobiele hero is een eigen compositie: taalkeuze als kroon, cirkel eronder. */
@media (max-width: 600px) {
  .mot-page { --mot-nav-height: 124px; }
  .mot-web-nav {
    height: 124px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 74px;
    gap: 0 8px;
    padding: 2px 10px 0;
  }
  .mot-nav-brand { grid-column: 1; grid-row: 1; display: inline-flex; }
  .mot-nav-tools { grid-column: 2; grid-row: 1; }
  .mot-web-nav nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 34px);
    gap: 4px;
    overflow: visible;
  }
  .mot-web-nav nav button { min-width: 0; padding: 6px 4px; font-size: 10.5px; white-space: nowrap; }
  .mot-web-nav nav button { grid-column: span 2; }
  .mot-site-main { padding-inline: 0; }
  .mot-hero-wrap { min-width: 0; min-height: calc(100svh - 164px); display: grid; place-items: start center; padding: 54px 12px 26px; overflow: clip; }
  .mot-orbit { left: auto; width: min(430px, calc(100vw - 24px)); height: auto; aspect-ratio: 1; transform: none; }
  .mot-orbit-ring { inset: 0; }
  .mot-orbit-core { inset: clamp(28px, 7.5vw, 38px); padding: clamp(27px, 7vw, 38px) clamp(28px, 8vw, 42px); }
  .mot-orbit-core.has-review { padding: 22px clamp(28px, 8vw, 42px) 20px; }
  .mot-orbit-core.has-review .mot-title-stack { margin-top: 6px; }
  .mot-orbit-core.has-review .mot-title-cycle { height: 70px; transform: translateY(-5px); }
  .mot-orbit-core.has-review .mot-lead { min-height: 34px; max-height: 38px; margin-top: 8px; }
  .mot-orbit-core.has-review .mot-mode-actions { gap: 5px; margin-top: 6px; }
  .mot-orbit-core.has-review .mot-mode-button { padding-block: 6px; }
  .mot-orbit-core .mot-kicker { font-size: 11px; letter-spacing: .1em; }
  .mot-title-stack { margin-top: 9px; }
  .mot-title-cycle { height: 70px; font-size: clamp(22px, 6.6vw, 28px); line-height: 1.04; }
  .mot-title-cycle span { align-items: center; line-height: 1.04; }
  .mot-orbit-core .mot-lead { min-height: 42px; max-height: 48px; margin-top: 7px; overflow: hidden; font-size: 12.5px; line-height: 1.4; }
  .mot-mode-actions { gap: 6px; margin-top: 10px; }
  .mot-mode-button { padding: 8px 11px 8px 13px; border-radius: 12px; }
  .mot-mode-button b { font-size: 13px; }
  .mot-mode-button small { font-size: 12px; }
  .mot-mode-button i { width: 31px; height: 31px; }
  .mot-orbit-core .mot-stats, .mot-reset-progress { display: none; }
  .mot-orbit-language { top: -43px !important; right: auto !important; bottom: auto !important; min-width: 0; padding: 3px; transform: translateX(-50%) !important; }
  .mot-orbit-language span { display: none; }
  .mot-orbit-language b { width: 32px; height: 32px; font-size: 11px; }
  .mot-orbit-language:hover, .mot-orbit-language:focus-visible, .mot-orbit-language.is-selected { transform: translateX(-50%) scale(1.08) !important; }
  .mot-orbit-language-0 { left: 10%; }
  .mot-orbit-language-1 { left: 30%; }
  .mot-orbit-language-2 { left: 50%; }
  .mot-orbit-language-3 { left: 70%; }
  .mot-orbit-language-4 { left: 90%; }

  .mot-page.is-playing .mot-game-wrap { min-height: 100svh; padding: 6px 0; }
  .mot-page.is-playing .mot-console { width: calc(100vw - 12px); min-height: calc(100svh - 12px); padding: 18px 16px max(18px, env(safe-area-inset-bottom)); }
  .mot-console-tools { gap: 4px; }
  .mot-console-tools .mot-sound-toggle, .mot-console-tools .mot-appearance-toggle { width: 30px; height: 30px; }
  .mot-console-language { min-width: 30px; height: 30px; }
  .mot-console.is-answered .mot-round-meta,
  .mot-console.is-answered .mot-cue,
  .mot-console.is-answered .mot-sentence,
  .mot-idiom-console.is-answered .mot-idiom-options { display: none; }
  .mot-console .mot-feedback { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; padding: 16px; }
  .mot-console .mot-score strong { font-size: 30px; }
  .mot-feedback-copy { font-size: 15px; line-height: 1.5; }
  .mot-console.is-answered .mot-round-actions { position: sticky; z-index: 8; bottom: max(8px, env(safe-area-inset-bottom)); margin-top: clamp(20px, 4svh, 34px); margin-bottom: auto; padding-top: 0; background: none; }
  .mot-console.is-answered .mot-round-actions { width: 100%; min-width: 0; }
  .mot-console.is-answered .mot-round-actions .mot-primary { width: min(250px, 100%); min-width: 0; max-width: 100%; height: auto; padding-block: 12px; overflow-wrap: anywhere; line-height: 1.25; box-shadow: 0 10px 28px rgba(0,0,0,.24); }
  .mot-idiom-console { min-height: auto !important; }
  .mot-idiom-game-wrap { align-items: center; }
  .mot-discovery-console { min-height: calc(100svh - 12px) !important; }
  .mot-discovery-question { margin-top: 20px; }
  .mot-discovery-question h2 { font-size: clamp(31px, 11vw, 46px); }
  .mot-regional-question blockquote { min-height: 92px; padding: 15px; font-size: clamp(18px, 5.5vw, 23px); }
  .mot-discovery-options { gap: 7px; margin-top: 14px; }
  .mot-discovery-option { min-height: 52px; padding: 9px 11px; }
  .mot-discovery-learning { grid-template-columns: 1fr; }
  .mot-discovery-console.is-answered .mot-round-meta { display: flex; }
}
@media (max-width: 390px) {
  .mot-orbit { width: calc(100vw - 20px); }
  .mot-orbit-core { inset: 27px; padding: 27px 31px; }
  .mot-orbit-core.has-review { padding: 18px 31px 16px; }
  .mot-orbit-core.has-review .mot-title-cycle { height: 66px; transform: translateY(-4px); }
  .mot-orbit-core.has-review .mot-lead { min-height: 28px; max-height: 32px; margin-top: 5px; overflow: hidden; }
  .mot-orbit-core.has-review .mot-mode-actions { gap: 4px; margin-top: 4px; }
  .mot-orbit-core.has-review .mot-mode-button { padding-block: 5px; }
  .mot-orbit-core.has-review .mot-mode-review small { display: none; }
  .mot-orbit-core.has-review .mot-mode-review { width: calc(100% - 48px); justify-self: center; }
  .mot-title-cycle { height: 66px; font-size: clamp(21px, 6.5vw, 25px); }
  .mot-orbit-core .mot-lead { max-height: none; overflow: visible; }
  .mot-mode-button { padding-block: 7px; }
  .mot-mode-button small { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 360px) {
  .mot-nav-brand { font-size: 16px; }
  .mot-hero-wrap { min-height: calc(100svh - 164px); padding-top: 48px; }
  .mot-orbit-core {
    inset: clamp(18px, 6vw, 22px);
    padding: clamp(18px, 5.6vw, 22px) clamp(22px, 7vw, 27px);
  }
  .mot-orbit-core.has-review { padding: 13px 24px 12px; }
  .mot-orbit-core.has-review .mot-kicker { font-size: 10px; }
  .mot-orbit-core.has-review .mot-title-stack { margin-top: 3px; }
  .mot-orbit-core.has-review .mot-title-cycle { height: 54px; transform: translateY(-3px); }
  .mot-orbit-core.has-review .mot-lead { min-height: 24px; max-height: 27px; margin-top: 8px; font-size: 10.5px; }
  .mot-orbit-core.has-review .mot-mode-actions { gap: 3px; margin-top: 3px; }
  .mot-orbit-core.has-review .mot-mode-button { padding: 4px 8px 4px 10px; }
  .mot-orbit-core.has-review .mot-mode-button small { display: none; }
  .mot-orbit-core.has-review .mot-mode-button i { width: 25px; height: 25px; }
  .mot-title-stack { margin-top: 6px; }
  .mot-title-cycle { height: 54px; font-size: clamp(20px, 6.4vw, 23px); }
  .mot-orbit-core .mot-lead { min-height: 0; margin-top: 7px; font-size: 12px; line-height: 1.35; }
  .mot-mode-actions { gap: 5px; margin-top: 6px; }
  .mot-mode-button { padding: 6px 9px 6px 11px; }
  .mot-mode-button small { max-width: none; font-size: 11.5px; }
  .mot-mode-button i { width: 28px; height: 28px; }
  .mot-site-footer { grid-template-columns: 1fr; gap: 0; padding-inline: 8px; font-size: 10px; }
  html[data-dyslexia-mode="true"] .mot-orbit-core { inset: 17px; }
}

/* Het leesprofiel gebruikt ruimere Arial-regels. Geef de hero op de twee
   compacte tablet/mobielcomposities enkele pixels extra binnenruimte, zodat
   die winst in leesbaarheid nergens door de ronde uitsnede wordt afgekapt. */
@media (min-width: 601px) and (max-width: 760px) {
  html[data-dyslexia-mode="true"] .mot-orbit-core { inset: calc(13% - 2px); }
}
@media (min-width: 361px) and (max-width: 600px) {
  html[data-dyslexia-mode="true"] .mot-orbit-core { inset: clamp(26px, 7vw, 35px); }
}

/* Instelbare tekstgrootte. De hero-kern en de spelconsole krijgen tegelijk
   meer ruimte: grotere tekst wordt dus niet in dezelfde vaste vorm geperst.
   De keuzedial zelf behoudt zijn maat en vaste ankers, zodat woorden en
   bediening tijdens een ronde nooit van plaats verspringen. */
html[data-text-size="large"] .mot-orbit-core { inset: 68px; padding-inline: 70px; }
html[data-text-size="xlarge"] .mot-orbit-core { inset: 54px; padding-inline: 74px; }
html[data-text-size="large"] .mot-orbit-core.has-review { padding-inline: 70px; }
html[data-text-size="xlarge"] .mot-orbit-core.has-review { padding-inline: 74px; }
html[data-text-size="large"] .mot-title-cycle { height: 98px; font-size: clamp(32px, 3.9vw, 43px); }
html[data-text-size="xlarge"] .mot-title-cycle { height: 104px; font-size: clamp(35px, 4.25vw, 47px); }
html[data-text-size="large"] .mot-title-cycle span[lang="fr"] { font-size: .95em; line-height: 1.08; }
html[data-text-size="xlarge"] .mot-title-cycle span[lang="fr"] { font-size: .9em; line-height: 1.08; }
html[data-text-size="large"] .mot-title-cycle span[lang="es"] { font-size: .94em; line-height: 1.08; }
html[data-text-size="xlarge"] .mot-title-cycle span[lang="es"] { font-size: .9em; line-height: 1.08; }
html[data-text-size="large"] .mot-orbit-core .mot-lead { min-height: 58px; font-size: 14.5px; }
html[data-text-size="xlarge"] .mot-orbit-core .mot-lead { min-height: 64px; font-size: 16px; }
html[data-text-size="large"] .mot-orbit-core.has-review .mot-title-cycle { height: 100px; transform: translateY(-5px); }
html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-title-cycle { height: 108px; transform: translateY(-5px); }
html[data-text-size="large"] .mot-orbit-core.has-review .mot-lead { min-height: 48px; margin-top: 7px; }
html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-lead { min-height: 52px; margin-top: 7px; }
html[data-text-size="large"] .mot-mode-button b { font-size: 13.5px; }
html[data-text-size="xlarge"] .mot-mode-button b { font-size: 15px; }
html[data-text-size="large"] .mot-mode-button small { font-size: 12px; }
html[data-text-size="xlarge"] .mot-mode-button small { font-size: 13px; }
html[data-text-size="large"] .mot-orbit-core .mot-stats,
html[data-text-size="large"] .mot-reset-progress { font-size: 12px; }
html[data-text-size="xlarge"] .mot-orbit-core .mot-stats,
html[data-text-size="xlarge"] .mot-reset-progress { font-size: 13px; }

html[data-text-size="large"] .mot-console { --mot-reading-size: 16.5px; --mot-option-size: 15.5px; --mot-learning-size: 15px; width: min(650px, calc(100vw - 32px)); min-height: 750px; }
html[data-text-size="xlarge"] .mot-console { --mot-reading-size: 18px; --mot-option-size: 17px; --mot-learning-size: 16.5px; width: min(690px, calc(100vw - 32px)); min-height: 825px; }
html[data-text-size="large"] .mot-console .mot-round-meta,
html[data-text-size="large"] .mot-console .mot-cue { font-size: var(--mot-reading-size); }
html[data-text-size="xlarge"] .mot-console .mot-round-meta,
html[data-text-size="xlarge"] .mot-console .mot-cue { font-size: var(--mot-reading-size); }
html[data-text-size="large"] .mot-console .mot-sentence { font-size: clamp(25px, 3.3vw, 35px); line-height: 1.22; }
html[data-text-size="xlarge"] .mot-console .mot-sentence { font-size: clamp(27px, 3.65vw, 39px); line-height: 1.24; }
html[data-text-size="large"] .mot-console .mot-sentence.is-long { font-size: clamp(23px, 2.9vw, 31px); }
html[data-text-size="xlarge"] .mot-console .mot-sentence.is-long { font-size: clamp(25px, 3.15vw, 34px); }
html[data-text-size="large"] .mot-console .mot-sentence.is-xlong { font-size: clamp(21px, 2.55vw, 27px); }
html[data-text-size="xlarge"] .mot-console .mot-sentence.is-xlong { font-size: clamp(23px, 2.8vw, 30px); }
html[data-text-size="large"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 78px; }
html[data-text-size="xlarge"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 88px; }
html[data-text-size="large"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 210px; }
html[data-text-size="xlarge"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 240px; }
html[data-text-size="large"] .mot-console .mot-selected-word { font-size: 25px; }
html[data-text-size="xlarge"] .mot-console .mot-selected-word { font-size: 27px; }
html[data-text-size="large"] .mot-console .mot-selected-word.is-long { font-size: 19px; }
html[data-text-size="xlarge"] .mot-console .mot-selected-word.is-long { font-size: 20px; }
html[data-text-size="large"] .mot-console .mot-selected-word.is-xlong { font-size: 15.5px; }
html[data-text-size="xlarge"] .mot-console .mot-selected-word.is-xlong { font-size: 16.5px; }

html[data-text-size="large"] .mot-idiom-question blockquote { font-size: clamp(20px, 2.65vw, 26px); }
html[data-text-size="xlarge"] .mot-idiom-question blockquote { font-size: clamp(22px, 2.95vw, 29px); }
html[data-text-size="large"] .mot-idiom-option b,
html[data-text-size="large"] .mot-discovery-option b { font-size: var(--mot-option-size); }
html[data-text-size="xlarge"] .mot-idiom-option b,
html[data-text-size="xlarge"] .mot-discovery-option b { font-size: var(--mot-option-size); }
html[data-text-size="large"] .mot-discovery-question h2 { font-size: clamp(39px, 6.4vw, 59px); }
html[data-text-size="xlarge"] .mot-discovery-question h2 { font-size: clamp(43px, 6.8vw, 64px); }
html[data-text-size="large"] .mot-console .mot-feedback-copy { font-size: var(--mot-reading-size); line-height: 1.5; }
html[data-text-size="xlarge"] .mot-console .mot-feedback-copy { font-size: var(--mot-reading-size); line-height: 1.52; }
html[data-text-size="large"] .mot-console .mot-choice-notes li,
html[data-text-size="large"] .mot-console .mot-choice-notes span,
html[data-text-size="large"] :is(.mot-idiom-learning p, .mot-discovery-learning p) { font-size: var(--mot-learning-size); }
html[data-text-size="xlarge"] .mot-console .mot-choice-notes li,
html[data-text-size="xlarge"] .mot-console .mot-choice-notes span,
html[data-text-size="xlarge"] :is(.mot-idiom-learning p, .mot-discovery-learning p) { font-size: var(--mot-learning-size); }
html[data-text-size="large"] :is(.mot-primary, .mot-secondary, .mot-text-button) { font-size: 13.5px; }
html[data-text-size="xlarge"] :is(.mot-primary, .mot-secondary, .mot-text-button) { font-size: 15px; }
html[data-text-size="large"] .mot-console-summary h2 { font-size: 28px; }
html[data-text-size="xlarge"] .mot-console-summary h2 { font-size: 31px; }

html[data-text-size="large"] .mot-setting-segmented button { font-size: 10.5px; }
html[data-text-size="xlarge"] .mot-setting-segmented button { min-height: 34px; font-size: 11px; }

@media (max-width: 760px) {
  html[data-text-size="large"] .mot-orbit-core { inset: 10.5%; padding-inline: 11%; }
  html[data-text-size="xlarge"] .mot-orbit-core { inset: 8%; padding-inline: 10%; }
  html[data-text-size="large"] .mot-orbit-core.has-review { padding-inline: 11%; }
  html[data-text-size="xlarge"] .mot-orbit-core.has-review { padding-inline: 10%; }
}

@media (min-width: 761px) and (max-height: 700px) {
  html[data-text-size="large"] .mot-orbit,
  html[data-text-size="xlarge"] .mot-orbit { width: min(680px, calc(100vw - 140px), calc(100svh - 140px)); }
  html[data-text-size="large"] .mot-orbit-core { inset: 52px; padding: 28px 58px 24px; }
  html[data-text-size="xlarge"] .mot-orbit-core { inset: 44px; padding: 26px 60px 22px; }
  html[data-text-size="large"] .mot-orbit-core.has-review,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review { padding: 22px 58px 19px; }
  html[data-text-size="large"] .mot-title-cycle,
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-title-cycle { height: 86px; font-size: clamp(31px, 3.4vw, 39px); transform: none; }
  html[data-text-size="xlarge"] .mot-title-cycle,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-title-cycle { height: 90px; font-size: clamp(33px, 3.65vw, 42px); transform: none; }
  html[data-text-size="large"] .mot-orbit-core .mot-lead,
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-lead { min-height: 42px; margin-top: 7px; font-size: 13.5px; }
  html[data-text-size="xlarge"] .mot-orbit-core .mot-lead,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-lead { min-height: 44px; margin-top: 7px; font-size: 14px; }
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-mode-actions,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-mode-actions { gap: 5px; margin-top: 6px; }
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-mode-button,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-mode-button { padding-block: 6px; }
  html[data-text-size="large"] .mot-orbit-core .mot-stats,
  html[data-text-size="xlarge"] .mot-orbit-core .mot-stats,
  html[data-text-size="large"] .mot-reset-progress,
  html[data-text-size="xlarge"] .mot-reset-progress { display: none; }
}

@media (max-width: 600px) {
  html[data-text-size="large"] .mot-orbit,
  html[data-text-size="xlarge"] .mot-orbit { width: calc(100vw - 8px); }
  html[data-text-size="large"] .mot-orbit-core { inset: 22px; padding: 25px 34px; }
  html[data-text-size="xlarge"] .mot-orbit-core { inset: 15px; padding: 22px 31px; }
  html[data-text-size="large"] .mot-orbit-core.has-review { padding: 18px 34px 16px; }
  html[data-text-size="xlarge"] .mot-orbit-core.has-review { padding: 15px 31px 13px; }
  html[data-text-size="large"] .mot-title-cycle { height: 76px; font-size: clamp(24px, 7vw, 29px); }
  html[data-text-size="xlarge"] .mot-title-cycle { height: 82px; font-size: clamp(26px, 7.5vw, 31px); }
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-title-cycle { height: 76px; transform: translateY(-3px); }
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-title-cycle { height: 82px; transform: translateY(-3px); }
  html[data-text-size="large"] .mot-title-cycle span[lang="es"] { font-size: .92em; }
  html[data-text-size="xlarge"] .mot-title-cycle span[lang="es"] { font-size: .9em; }
  html[data-text-size="large"] .mot-orbit-core .mot-lead { min-height: 45px; max-height: none; font-size: 12.5px; overflow: visible; }
  html[data-text-size="xlarge"] .mot-orbit-core .mot-lead { min-height: 50px; max-height: none; font-size: 13.5px; overflow: visible; }
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-lead { min-height: 34px; }
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-lead { min-height: 38px; }
  html[data-text-size="large"] .mot-mode-button b { font-size: 13px; }
  html[data-text-size="xlarge"] .mot-mode-button b { font-size: 14px; }
  html[data-text-size="large"] .mot-mode-button small { font-size: 11.5px; }
  html[data-text-size="xlarge"] .mot-mode-button small { font-size: 12px; }
  html[data-text-size="large"] .mot-page.is-playing .mot-console,
  html[data-text-size="xlarge"] .mot-page.is-playing .mot-console { width: calc(100vw - 12px); }
  html[data-text-size="large"] .mot-console .mot-sentence { font-size: clamp(23px, 6.6vw, 30px); }
  html[data-text-size="xlarge"] .mot-console .mot-sentence { font-size: clamp(25px, 7.1vw, 33px); }
  html[data-text-size="large"] .mot-console .mot-sentence.is-long { font-size: 22px; }
  html[data-text-size="xlarge"] .mot-console .mot-sentence.is-long { font-size: 24px; }
  html[data-text-size="large"] .mot-console .mot-sentence.is-xlong { font-size: 20px; }
  html[data-text-size="xlarge"] .mot-console .mot-sentence.is-xlong { font-size: 22px; }
  html[data-text-size="large"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 88px; }
  html[data-text-size="xlarge"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-cue { height: 96px; }
  html[data-text-size="large"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 246px; }
  html[data-text-size="xlarge"] .mot-console-round:not(.is-answered):not(.mot-idiom-console):not(.mot-discovery-console) .mot-sentence { height: 280px; }
  html[data-text-size="large"] .mot-console .mot-feedback,
  html[data-text-size="xlarge"] .mot-console .mot-feedback { grid-template-columns: 1fr; }
  html[data-text-size="large"] .mot-discovery-question h2 { font-size: clamp(34px, 11.5vw, 49px); }
  html[data-text-size="xlarge"] .mot-discovery-question h2 { font-size: clamp(37px, 12vw, 53px); }
}

@media (max-width: 360px) {
  html[data-text-size="large"] .mot-orbit-core { inset: 15px; padding: 17px 25px; }
  html[data-text-size="xlarge"] .mot-orbit-core { inset: 10px; padding: 14px 22px; }
  html[data-text-size="large"] .mot-orbit-core.has-review,
  html[data-text-size="xlarge"] .mot-orbit-core.has-review { padding-top: 11px; padding-bottom: 10px; }
  html[data-text-size="large"] .mot-title-cycle { height: 68px; font-size: 23px; }
  html[data-text-size="xlarge"] .mot-title-cycle { height: 74px; font-size: 24px; }
  html[data-text-size="large"] .mot-orbit-core.has-review .mot-title-cycle { height: 68px; transform: translateY(-2px); }
  html[data-text-size="xlarge"] .mot-orbit-core.has-review .mot-title-cycle { height: 74px; transform: translateY(-2px); }
  html[data-text-size="large"] .mot-orbit-core .mot-lead { min-height: 0; margin-top: 4px; font-size: 11.5px; }
  html[data-text-size="xlarge"] .mot-orbit-core .mot-lead { min-height: 0; margin-top: 4px; font-size: 12px; }
  html[data-text-size="large"] .mot-mode-actions,
  html[data-text-size="xlarge"] .mot-mode-actions { gap: 4px; margin-top: 5px; }
  html[data-text-size="large"] .mot-mode-button,
  html[data-text-size="xlarge"] .mot-mode-button { padding-block: 5px; }
}
