/* Angličtina na cesty
   Layout: aplikácia s tmavým „letiskovým“ pásom hore, jeden stĺpec (max 60rem);
   palubný lístok ako hlavná karta, mapa sedadiel ako postup, moduly ako odletová tabuľa. */
:root {
  --bg: #ECEFF2;
  --surface: #FFFFFF;
  --surface-2: #F4F6F8;
  --ink: #13202C;
  --muted: #566473;
  --line: #D2D9E0;
  --sign: #FFC21A;          /* žltá letiskových tabúľ */
  --sign-ink: #13202C;
  --sign-soft: #FFF0BF;
  --stamp: #1D5BC4;         /* modrá pečiatka / odkazy */
  --ok: #17834A;
  --ok-soft: #DCF2E4;
  --bad: #BF3328;
  --bad-soft: #FBE2DF;
  --board: #13202C;         /* tmavý pás a tabule (v oboch režimoch) */
  --board-ink: #EEF2F5;
  --board-dim: #8E9CAA;
  --shadow: 0 1px 2px rgba(19, 32, 44, .06), 0 10px 28px -14px rgba(19, 32, 44, .22);

  --font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E151C; --surface: #16202A; --surface-2: #1C2834; --ink: #E7ECF1; --muted: #97A4B1; --line: #2C3A47;
    --sign: #FFC21A; --sign-ink: #13202C; --sign-soft: #3A3114; --stamp: #7FAAFF;
    --ok: #52C485; --ok-soft: #14301F; --bad: #FF7B6F; --bad-soft: #3A1A17;
    --board: #090E13; --board-ink: #EEF2F5; --board-dim: #8E9CAA;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E151C; --surface: #16202A; --surface-2: #1C2834; --ink: #E7ECF1; --muted: #97A4B1; --line: #2C3A47;
  --sign: #FFC21A; --sign-ink: #13202C; --sign-soft: #3A3114; --stamp: #7FAAFF;
  --ok: #52C485; --ok-soft: #14301F; --bad: #FF7B6F; --bad-soft: #3A1A17;
  --board: #090E13; --board-ink: #EEF2F5; --board-dim: #8E9CAA;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ───────── základ ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--stamp); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
svg { display: block; }
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 600;
}
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 24px 72px;
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) { .wrap { padding-inline: 28px; padding-block: 32px 96px; } }
.wrap:focus { outline: none; }

/* ───────── horný pás ───────── */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--board);
  color: var(--board-ink);
}
.topbar-in {
  max-width: 60rem;
  margin: 0 auto;
  padding-inline: 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) { .topbar-in { padding-inline: 28px; } }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--sign); color: var(--sign-ink);
  font: 900 .95rem/1 var(--font-display);
  border-radius: 4px;
  flex: none;
}
.brand-name { font: 800 1.02rem/1.1 var(--font-display); white-space: nowrap; }
@media (max-width: 559px) { .brand-name { display: none; } }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a {
  color: var(--board-dim);
  text-decoration: none;
  font: 700 .95rem/1 var(--font-display);
  padding: 10px 10px 8px;
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--board-ink); }
.tabs a[aria-current="page"] { color: var(--sign); border-bottom-color: var(--sign); }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: var(--r-s);
  background: transparent; color: inherit;
}
.icon-btn svg { width: 22px; height: 22px; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ───────── tlačidlá ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--r-s);
  border: 1.5px solid transparent;
  font: 700 1rem/1.1 var(--font-display);
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sign); color: var(--sign-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--sign) 88%, var(--sign-ink)); }
.btn-dark { background: var(--board); color: var(--board-ink); }
.btn-dark:hover { background: color-mix(in srgb, var(--board) 85%, var(--sign)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); padding-inline: 10px; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-lg { min-height: 54px; font-size: 1.1rem; padding-inline: 24px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-danger { color: var(--bad); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* reproduktor */
.say {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
.say svg { width: 19px; height: 19px; }
.say:hover { border-color: var(--ink); }
.say.is-playing { background: var(--sign); border-color: var(--sign); color: var(--sign-ink); }
.say-sm { display: inline-grid; width: 30px; height: 30px; vertical-align: middle; margin-left: 4px; }
.say-sm svg { width: 15px; height: 15px; }

/* ───────── nadpisy sekcií ───────── */
.sec { display: grid; gap: 14px; }
.sec-head { display: grid; gap: 4px; }
.sec-head h2 { font-size: 1.35rem; font-weight: 800; }
.eyebrow { color: var(--muted); }
.page-head { display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 900; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 20px;
}
@media (min-width: 640px) { .panel { padding: 24px; } }

/* ───────── palubný lístok ───────── */
.pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pass-main { padding: 22px 24px 24px; display: grid; gap: 10px; min-width: 0; }
.pass-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pass-kicker { font: 700 .95rem/1 var(--font-display); color: var(--muted); margin-top: 6px; }
.pass-title { font-size: clamp(2.1rem, 6.5vw, 3.3rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.pass-sub { font-size: 1.2rem; color: var(--muted); }
.pass-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.pass-fields div { min-width: 0; }
.pass-fields dt { font: 600 .68rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pass-fields dd { margin: 4px 0 0; font: 800 1.05rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.pass-goal { display: grid; gap: 4px; margin-top: 6px; max-width: 34rem; }
.pass-goal .mono { color: var(--muted); }
.pass-stub {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--sign);
  color: var(--sign-ink);
  border-left: 2px dashed color-mix(in srgb, var(--sign-ink) 35%, transparent);
}
.pass-stub::before, .pass-stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
}
.pass-stub::before { top: -12px; }
.pass-stub::after { bottom: -12px; }
.stub-day { font: 900 4.6rem/.85 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.barcode {
  display: block;
  width: 100%;
  height: 34px;
  background: repeating-linear-gradient(90deg,
    var(--sign-ink) 0 2px, transparent 2px 4px, var(--sign-ink) 4px 5px, transparent 5px 8px,
    var(--sign-ink) 8px 11px, transparent 11px 12px, var(--sign-ink) 12px 13px, transparent 13px 16px);
  opacity: .8;
}
@media (max-width: 679px) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-stub {
    border-left: 0;
    border-top: 2px dashed color-mix(in srgb, var(--sign-ink) 35%, transparent);
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 18px 20px;
  }
  .pass-stub::before, .pass-stub::after { top: -13px; left: auto; }
  .pass-stub::before { left: -12px; }
  .pass-stub::after { right: -12px; bottom: auto; }
  .pass-stub > .mono { display: none; }
  .stub-day { font-size: 3.4rem; }
  .pass-stub .btn { justify-self: end; }
  .barcode { grid-column: 1 / -1; height: 26px; }
}

/* ───────── štatistiky ───────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.stat .mono { color: var(--muted); font-size: .66rem; }
.stat strong { font: 900 1.7rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat small { font: 700 .9rem var(--font-display); color: var(--muted); }
@media (max-width: 420px) { .stat { padding: 12px; } .stat strong { font-size: 1.4rem; } }

/* ───────── mapa sedadiel ───────── */
.seatmap { display: grid; gap: 8px; max-width: 40rem; }
.seat-row {
  display: grid;
  grid-template-columns: 2.4rem repeat(5, minmax(0, 1fr)) .9rem repeat(5, minmax(0, 1fr)) minmax(0, 9rem);
  gap: 5px;
  align-items: center;
}
.seat-label { font: 600 .7rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.seat-name { font: 600 .85rem/1.2 var(--font-body); color: var(--muted); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 559px) {
  .seat-row { grid-template-columns: 2rem repeat(5, minmax(0, 1fr)) .5rem repeat(5, minmax(0, 1fr)); gap: 4px; }
  .seat-name { display: none; }
}
.seat {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1.08;
  max-width: 100%;
  border-radius: 7px 7px 3px 3px;
  border: 1.5px solid var(--line);
  border-bottom-width: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 .7rem/1 var(--font-mono);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.seat.is-open { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.seat.is-next { box-shadow: 0 0 0 3px var(--sign); }
.seat.is-done { background: var(--sign); border-color: color-mix(in srgb, var(--sign) 70%, var(--sign-ink)); color: var(--sign-ink); }
.seat:hover { filter: brightness(.97); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 15px; border-radius: 4px 4px 2px 2px; border: 1.5px solid var(--line); background: var(--surface-2); }
.legend i.l-done { background: var(--sign); border-color: var(--sign); }
.legend i.l-open { background: var(--surface); border-color: var(--ink); }

/* ───────── priebeh lekcie ───────── */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.flow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.flow-top strong { font: 800 1.02rem/1.2 var(--font-display); }
.flow-top strong::before { content: counter(flow) " · "; color: var(--muted); font-weight: 600; }
.flow-top .mono { color: var(--muted); white-space: nowrap; }
.flow p { color: var(--muted); font-size: .95rem; }
@media (max-width: 679px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ───────── plán ───────── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.fact .mono { color: var(--muted); }
.fact p { font-size: 1rem; }
@media (max-width: 759px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.outcomes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.outcomes svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
@media (max-width: 639px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

.module { display: grid; gap: 0; }
.board {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 14px 18px;
  background: var(--board);
  color: var(--board-ink);
  border-radius: var(--r-m) var(--r-m) 0 0;
}
.board .mono { color: var(--sign); }
.board h2 { font-size: 1.3rem; font-weight: 800; color: var(--board-ink); }
.board .board-days { margin-left: auto; color: var(--board-dim); }
.board-goal { padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--line); border-top: 0; font-size: 1rem; }
.board-goal strong { font-family: var(--font-display); }
.lessons { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); }
.lrow {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
  transition: background-color .4s ease;
}
.lrow:first-child { border-top: 0; }
.lrow.is-focus { background: var(--sign-soft); }
.lrow-day { font: 700 1.05rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.lrow-main { display: grid; gap: 4px; min-width: 0; }
.lrow h3 { font-size: 1.1rem; font-weight: 800; }
.lrow h3 .sk { font: 400 1rem/1.3 var(--font-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.lrow p { font-size: .98rem; }
.lrow-gram { color: var(--muted); font-size: .92rem !important; }
.lrow-gram .mono { font-size: .64rem; margin-right: 6px; }
.lrow.is-review .lrow-day { color: var(--stamp); }
@media (max-width: 559px) {
  .lrow { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 14px; }
  .lrow .pill { grid-column: 2; justify-self: start; margin-top: 4px; }
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font: 600 .68rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.pill svg { width: 13px; height: 13px; }
.pill-done { background: var(--ok-soft); color: var(--ok); }
.pill-open { background: var(--sign); color: var(--sign-ink); }
.pill-soon { border-color: var(--line); color: var(--muted); }

/* ───────── lekcia ───────── */
.lesson { display: grid; gap: 22px; }
.lesson-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font: 700 .95rem/1 var(--font-display); padding: 8px 10px 8px 4px; border-radius: var(--r-s); }
.back svg { width: 18px; height: 18px; }
.back:hover { background: var(--surface); }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.timer.is-over { background: var(--sign-soft); color: var(--ink); }
.lesson-head { display: grid; gap: 6px; }
.lesson-head h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.lesson-sk { font-size: 1.2rem; color: var(--muted); }
.lesson-goal { margin-top: 6px; max-width: 42rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.steps li { min-width: 0; }
.step {
  width: 100%;
  display: grid; gap: 6px; justify-items: start;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  border-radius: 4px;
}
.step-bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--line); }
.step-label { font: 700 .92rem/1.15 var(--font-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-min { font-size: .62rem; }
.step.is-done .step-bar { background: var(--ink); }
.step.is-done { color: var(--ink); }
.step.is-current .step-bar { background: var(--sign); }
.step.is-current { color: var(--ink); }
.step:hover .step-label { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 559px) {
  .steps { gap: 4px; }
  .step-label { font-size: .66rem; letter-spacing: -.01em; }
  .step-min { display: none; }
}

.step-body { display: grid; gap: 18px; min-width: 0; }
.step-headline { display: grid; gap: 6px; }
.step-headline h2 { font-size: 1.55rem; font-weight: 800; }
.step-hint { color: var(--muted); max-width: 42rem; }
.scene { color: var(--muted); font-style: italic; max-width: 42rem; }
.rec-note { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.step-nav .btn-primary { margin-left: auto; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 1rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background-color .15s ease; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }

/* úvod */
.intro { display: grid; gap: 14px; max-width: 44rem; }
.intro h2 { font-size: 1.55rem; font-weight: 800; }
.intro-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }

/* slovíčka */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 10px; }
.vcard {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: border-color .15s ease;
}
.vcard.is-speaking { border-color: var(--sign); box-shadow: 0 0 0 2px var(--sign); }
.v-text { display: grid; gap: 3px; min-width: 0; }
.v-en { font: 800 1.15rem/1.2 var(--font-display); }
.v-pron { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.v-sk { font-size: 1rem; }
.v-note { font-size: .9rem; color: var(--muted); }
.v-ex { font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; }
.v-ex b { color: var(--ink); font-weight: 600; }
.is-quiz .vcard { cursor: pointer; }
.is-quiz .vcard:not(.is-revealed) .v-en { color: transparent; background: var(--line); border-radius: 4px; user-select: none; }
.is-quiz .vcard:not(.is-revealed) .v-pron,
.is-quiz .vcard:not(.is-revealed) .v-ex { visibility: hidden; }
.is-quiz .vcard:not(.is-revealed) .say { visibility: hidden; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: 8px; }
.ncard {
  display: grid; gap: 2px; justify-items: start; text-align: left;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  min-width: 0;
}
.ncard:hover { border-color: var(--ink); }
.ncard.is-playing, .ncard.is-speaking { border-color: var(--sign); box-shadow: 0 0 0 2px var(--sign); }
.n-digit { font: 900 1.7rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.n-word { font: 700 .98rem/1.2 var(--font-display); }
.n-pron { font: 400 .75rem/1.2 var(--font-mono); color: var(--muted); }
.is-quiz .ncard:not(.is-revealed) .n-word { color: transparent; background: var(--line); border-radius: 3px; }
.is-quiz .ncard:not(.is-revealed) .n-pron { visibility: hidden; }
.sub-h { font: 800 1.05rem/1.2 var(--font-display); margin-top: 6px; }

/* dialóg */
.dlg { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: minmax(0, auto) 40px; gap: 10px; align-items: end; justify-self: start; max-width: min(34rem, 100%); }
.line.me { grid-template-columns: 40px minmax(0, auto); justify-self: end; }
.line.me .say { order: -1; }
.bubble {
  display: grid; gap: 4px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  min-width: 0;
}
.line.me .bubble { background: var(--sign-soft); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.line.is-speaking .bubble { box-shadow: 0 0 0 2px var(--sign); }
.who { color: var(--muted); font-size: .64rem; }
.l-en { font: 700 1.1rem/1.3 var(--font-display); }
.l-sk { color: var(--muted); font-size: .95rem; }
.no-tr .l-sk { display: none; }
.is-role .line.me:not(.is-revealed) .bubble { cursor: pointer; }
.is-role .line.me:not(.is-revealed) .l-en { color: transparent; background: color-mix(in srgb, var(--sign) 35%, var(--surface)); border-radius: 4px; user-select: none; }
.is-role .line.me:not(.is-revealed) .l-sk { display: block; }
.dlg-scene { text-align: center; color: var(--muted); font-style: italic; font-size: .95rem; padding: 4px 0; }
.role-hint { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px dashed var(--line); }

/* gramatika */
.g { display: grid; gap: 16px; max-width: 46rem; }
.g h3 { font-size: 1.15rem; font-weight: 800; margin-top: 6px; }
.g-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.g-table table { width: 100%; border-collapse: collapse; min-width: 30rem; }
.g-table th { text-align: left; font: 600 .68rem/1.2 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.g-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.g-table tr:first-child td { border-top: 0; }
.g-pairs, .g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-pairs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.g-pairs li > span:first-child { color: var(--muted); }
.g-arrow { color: var(--muted); }
.g-list li { padding-left: 18px; position: relative; }
.g-list li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--sign); }
.g-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); }
.g-tip { background: var(--sign-soft); }
.g-warn { background: var(--bad-soft); }
.g-label { justify-self: start; font: 600 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--ink); color: var(--surface); }
.g-warn .g-label { background: var(--bad); color: var(--surface); }
.g-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g-ex li { padding-left: 26px; position: relative; }
.g-ex li::before { position: absolute; left: 0; top: 0; font: 800 1rem/1.5 var(--font-display); }
.g-no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bad); }
.g-no::before { content: "✗"; color: var(--bad); }
.g-yes { font-weight: 600; }
.g-yes::before { content: "✓"; color: var(--ok); }
.g-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-cols > div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; gap: 6px; align-content: start; }
.g-kicker { font: 800 1.05rem/1.2 var(--font-display); }
@media (max-width: 559px) { .g-cols { grid-template-columns: minmax(0, 1fr); } }

/* cvičenia */
.ex-wrap { display: grid; gap: 18px; max-width: 40rem; }
.ex-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; color: var(--muted); }
.ex-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ex-bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .3s ease; }
.ex { display: grid; gap: 16px; }
.ex-kind { color: var(--muted); }
.ex-q { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.ex-body { display: grid; gap: 14px; }
.ex-audio { display: flex; align-items: center; gap: 12px; }
.say-big {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--sign); color: var(--sign-ink);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--sign) 60%, var(--sign-ink));
}
.say-big svg { width: 32px; height: 32px; }
.say-big:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--sign) 60%, var(--sign-ink)); }
.say-big.is-playing { background: var(--ink); color: var(--surface); box-shadow: none; }
.opts { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: center;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--r-m);
  font-size: 1.08rem;
}
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.opt:disabled { cursor: default; }
.opt.is-right { background: var(--ok-soft); border-color: var(--ok); }
.opt.is-right .opt-k { background: var(--ok); color: var(--surface); border-color: var(--ok); }
.opt.is-wrong { background: var(--bad-soft); border-color: var(--bad); }
.opt.is-wrong .opt-k { background: var(--bad); color: var(--surface); border-color: var(--bad); }
.opt:disabled:not(.is-right):not(.is-wrong) { opacity: .55; }

.order-line { min-height: 58px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0 12px; border-bottom: 2px solid var(--line); }
.order-ph { color: var(--muted); font-style: italic; }
.order-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.tile {
  padding: 9px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--r-s);
  font: 700 1.05rem/1.2 var(--font-display);
}
.tile:hover:not(:disabled) { border-color: var(--ink); }
.order-line.is-right .tile { background: var(--ok-soft); border-color: var(--ok); }
.order-line.is-wrong .tile { background: var(--bad-soft); border-color: var(--bad); }

.match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.match-col { display: grid; gap: 8px; align-content: start; }
.m-btn {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--r-m);
  font-size: 1rem;
  line-height: 1.25;
}
.m-btn[data-side="l"] { font-family: var(--font-display); font-weight: 700; }
.m-btn:hover:not(:disabled) { border-color: var(--ink); }
.m-btn.is-sel { border-color: var(--ink); background: var(--sign-soft); }
.m-btn.is-matched { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); cursor: default; }
.m-btn.is-err { background: var(--bad-soft); border-color: var(--bad); animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.type-form { display: flex; flex-wrap: wrap; gap: 10px; }
.type-in {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 12px 14px;
  font-size: 1.15rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
}
.type-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sign-soft); }
.type-in.is-right { border-color: var(--ok); background: var(--ok-soft); }
.type-in.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.ex-hint { color: var(--muted); font-size: .95rem; }

.fb { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-m); }
.fb-ok { background: var(--ok-soft); }
.fb-bad { background: var(--bad-soft); }
.fb-title { font: 800 1.15rem/1.2 var(--font-display); }
.fb-ok .fb-title { color: var(--ok); }
.fb-bad .fb-title { color: var(--bad); }
.fb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.fb-actions .btn-primary { margin-left: auto; }

.ex-result { display: grid; gap: 12px; justify-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ex-result .mono { color: var(--muted); }
.ex-score { font: 900 3.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ex-score span { color: var(--muted); font-size: 1.8rem; }

/* do praxe */
.tag {
  position: relative;
  display: grid; gap: 10px;
  padding: 22px 24px 24px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  max-width: 44rem;
}
.tag-hole { position: absolute; left: 22px; top: 26px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); background: var(--bg); }
.tag .mono { color: var(--muted); }
.tag h2 { font-size: 1.45rem; font-weight: 800; }
@media (max-width: 479px) { .tag { padding: 56px 18px 20px; } .tag-hole { left: 18px; top: 20px; } }
.cheat { display: grid; gap: 10px; max-width: 44rem; }
.cheat h3 { font-size: 1.15rem; font-weight: 800; }
.cheat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cheat-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.cheat-list strong { font-family: var(--font-display); font-weight: 800; }
.cheat-list span { color: var(--muted); }
.finish { display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
.finish p { color: var(--muted); max-width: 36rem; }

.stamp {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 22px;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  outline: 1.5px solid var(--stamp);
  outline-offset: 4px;
  border-radius: 12px;
  transform: rotate(-6deg);
  margin: 10px 8px;
  animation: stamp-in .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
.stamp-top { font-size: .7rem; }
.stamp-day { font: 900 2.2rem/1 var(--font-display); letter-spacing: .02em; }
.stamp-date { font-size: .72rem; }
@keyframes stamp-in { from { transform: rotate(-14deg) scale(1.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* opakovanie */
.review-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 4px; font: 700 .9rem/1 var(--font-display); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.flash {
  display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: 32px 20px;
  min-height: 18rem;
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
}
.flash .mono { color: var(--muted); }
.flash-front { font: 900 clamp(1.6rem, 5vw, 2.3rem)/1.15 var(--font-display); text-wrap: balance; }
.flash-back { display: grid; gap: 6px; justify-items: center; padding-top: 14px; border-top: 1px dashed var(--line); width: 100%; }
.flash-answer { font: 800 1.4rem/1.25 var(--font-display); }
.flash .v-pron { font-size: .9rem; }
.flash-meta { color: var(--muted); font-size: .9rem; }
.flash-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-know { background: var(--ok); color: var(--surface); }
.btn-again { background: var(--surface); color: var(--bad); border-color: var(--bad); }

/* nastavenia */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(9, 14, 19, .55); display: grid; justify-items: end; }
.sheet {
  width: min(100%, 26rem);
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 18px; align-content: start;
  box-shadow: var(--shadow);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 1.4rem; font-weight: 800; }
.sheet fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sheet legend, .field-label { font: 600 .7rem/1 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.radio input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.field { display: grid; gap: 0; }
.text-in { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: 1rem; }
.text-in:focus { outline: none; border-color: var(--ink); }
.voice-info { font-size: .9rem; color: var(--muted); }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.confirm { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); background: var(--bad-soft); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--board);
  color: var(--board-ink);
  box-shadow: var(--shadow);
  font-size: .98rem;
}

.note { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
