/* Lani's site: warm autumn and alpine colours from the app (ui/theme/Theme.kt) and its village, pixel edges,
   a sky that goes from dawn to night as you scroll (main.js sets --sky-*). Light and dark, reduced motion respected. */

:root {
  --slo-blue: #0b4ea2;
  --slo-blue-deep: #062c63;
  --triglav-red: #e4002b;
  --alpine-green: #16a06e;
  --xp-gold: #ffb300;
  --flame: #ff6b1a;

  --bg: #f3e6c8;
  --paper: #fbf4e4;
  --paper-2: #f3e6c8;
  --card: #fbf4e4;
  --ink: #2a1e14;
  --ink-soft: #5e4a38;
  --line: #d6c19a;
  --link: #0b4ea2;
  --accent: #c2410c;
  --green: #0e7a53;
  --red: #b4142f;
  --bubble: #fffdf6;
  --hard: rgba(42, 30, 20, 0.85);
  --hard-soft: rgba(42, 30, 20, 0.18);
  --code-bg: #2a1e14;
  --code-ink: #f6e7c8;
  --tr: #6b5643;
  --mark: #fff0b3;
  --phone: #1d1712;
  --title: #062c63;

  --sky-top: #f6b98a;
  --sky-mid: #f9d9a8;
  --sky-bot: #fbeed0;
  --stars: 0;
  --sun-x: 20vw;
  --sun-y: 70vh;
  --sun-o: 1;
  --moon-o: 0;

  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --font-text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Kalam", "Comic Sans MS", cursive;
  --px: 4px;
  --gutter: 16px;
  --maxw: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --paper: #111a2c;
    --paper-2: #16213a;
    --card: #0d1526;
    --ink: #f3e9d2;
    --ink-soft: #c9bb9e;
    --line: #2d3b5a;
    --link: #8eb6f5;
    --accent: #ff9d5c;
    --green: #5fd6a5;
    --red: #ff8a9a;
    --bubble: #1c2a44;
    --hard: rgba(0, 0, 0, 0.75);
    --hard-soft: rgba(0, 0, 0, 0.35);
    --code-bg: #070c16;
    --code-ink: #f3e9d2;
    --tr: #b3a688;
    --mark: #4a3b12;
    --phone: #05080f;
    --title: #f6e7c8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --paper: #111a2c; --paper-2: #16213a; --card: #0d1526; --ink: #f3e9d2;
  --ink-soft: #c9bb9e; --line: #2d3b5a; --link: #8eb6f5; --accent: #ff9d5c; --green: #5fd6a5; --red: #ff8a9a;
  --bubble: #1c2a44; --hard: rgba(0, 0, 0, 0.75); --hard-soft: rgba(0, 0, 0, 0.35); --code-bg: #070c16;
  --code-ink: #f3e9d2; --tr: #b3a688; --mark: #4a3b12; --phone: #05080f; --title: #f6e7c8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--xp-gold); outline-offset: 3px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9em; }
h1, h2, h3 { font-family: var(--font-pixel); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; margin: 0; }
h3 { font-size: 1.25rem; margin: 1.2rem 0 0.4rem; }
p { margin: 0 0 0.9rem; }
small { font-size: 0.8em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.tr, .h-tr, i { color: var(--tr); }
[lang="sl"] { font-weight: inherit; }

/* ---------------------------------------------------------------- the sky */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
}
.stars, .stars-2 {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: var(--stars);
  background: transparent;
}
.stars-2 { animation: twinkle 3.2s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: calc(var(--stars) * 0.25); } }
.sun, .moon {
  position: absolute; width: 56px; height: 56px; left: 0; top: 0;
  transform: translate(calc(var(--sun-x) - 28px), calc(var(--sun-y) - 28px));
  image-rendering: pixelated; background: center / 100% 100% no-repeat; border-radius: 50%;
}
.sun {
  opacity: var(--sun-o);
  box-shadow: 0 0 70px 34px rgba(255, 214, 120, 0.45);
}
.moon {
  opacity: var(--moon-o);
  box-shadow: 0 0 50px 18px rgba(220, 230, 255, 0.18);
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--hard);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 1.5rem/1 var(--font-pixel); }
.brand-house { width: 32px; height: 32px; image-rendering: pixelated; }
.nav { margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font: 600 1rem/1 var(--font-pixel); padding: 8px 12px; white-space: nowrap;
  border: 3px solid var(--hard); background: var(--bubble); box-shadow: 3px 3px 0 var(--hard);
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 200px;
  background: var(--paper); border: 3px solid var(--hard); box-shadow: 4px 4px 0 var(--hard);
}
.menu li a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu li a:hover, .menu li a:focus-visible { background: var(--paper-2); }
.clock {
  display: flex; align-items: center; gap: 6px; font: 700 1rem/1 var(--font-pixel);
  padding: 6px 10px; background: var(--code-bg); color: #ffd76a; border: 3px solid var(--hard);
  font-variant-numeric: tabular-nums; min-width: 92px; justify-content: center;
}
.gh { display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font: 700 1rem/1 var(--font-pixel); }
.gh svg { width: 22px; height: 22px; }
.nav-wide { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-wide a { display: block; padding: 6px 8px; color: var(--ink); text-decoration: none; font: 600 0.95rem/1 var(--font-pixel); }
.nav-wide a:hover, .nav-wide a:focus-visible { background: var(--paper-2); }
@media (min-width: 1060px) {
  .nav-wide { display: flex; }
  .menu { display: none; }
}
@media (max-width: 520px) { .gh span { display: none; } .brand span { font-size: 1.3rem; } .clock { min-width: 0; padding: 6px 8px; } }

/* ---------------------------------------------------------------- buttons, chips, bubbles */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 18px; font: 700 1.05rem/1 var(--font-pixel); color: var(--ink); text-decoration: none;
  background: var(--bubble); border: 3px solid var(--hard); box-shadow: 4px 4px 0 var(--hard);
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--hard); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hard); }
.btn-primary { background: var(--slo-blue); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--hard); }
.chip { display: block; margin: 0 0 12px; font-size: 0.92rem; line-height: 1.9; color: var(--ink-soft); }
.chip .chip-time { margin-right: 6px; }
.chip-time {
  font: 700 0.9rem/1 var(--font-pixel); color: #ffd76a; background: var(--code-bg); padding: 5px 8px;
  border: 2px solid var(--hard);
}
.bubble {
  position: relative; display: inline-block; margin: 0; padding: 10px 14px;
  background: var(--bubble); color: var(--ink); font: 700 1.1rem/1.2 var(--font-pixel);
  box-shadow: 0 -3px 0 0 var(--hard), 0 3px 0 0 var(--hard), -3px 0 0 0 var(--hard), 3px 0 0 0 var(--hard), 6px 6px 0 0 var(--hard-soft);
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -15px; width: 12px; height: 12px; background: var(--bubble);
  box-shadow: -3px 0 0 0 var(--hard), 3px 0 0 0 var(--hard), 0 3px 0 0 var(--hard);
  clip-path: polygon(-3px 0, calc(100% + 3px) 0, calc(100% + 3px) 50%, 50% calc(100% + 3px), -3px 50%);
}
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter) 150px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.kicker { font-size: 1.02rem; margin-bottom: 8px; }
.kicker [lang="sl"] { font-weight: 800; }
.hero h1 {
  font-size: clamp(4rem, 13vw, 8.5rem); line-height: 0.95; color: var(--title);
  text-shadow: 5px 5px 0 var(--xp-gold), 10px 10px 0 var(--hard-soft);
  margin: 4px 0 10px;
}
.tagline { font: 700 clamp(1.35rem, 3.2vw, 2rem)/1.2 var(--font-pixel); margin-bottom: 14px; }
.lede { font-size: 1.1rem; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.status { font-size: 0.95rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status abbr { text-decoration: none; }
.dot { width: 10px; height: 10px; background: var(--alpine-green); display: inline-block; box-shadow: 0 0 0 2px var(--hard); animation: pulse 2s steps(2) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-media { position: relative; margin: 0; }
.window { background: var(--phone); border: 4px solid var(--hard); box-shadow: 8px 8px 0 var(--hard-soft); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--paper-2); border-bottom: 4px solid var(--hard); }
.window-bar span { width: 10px; height: 10px; background: var(--line); box-shadow: 0 0 0 2px var(--hard); }
.window-bar span:nth-child(1) { background: var(--triglav-red); }
.window-bar span:nth-child(2) { background: var(--xp-gold); }
.window-bar span:nth-child(3) { background: var(--alpine-green); }
.window-bar b { margin-left: 8px; font: 700 0.95rem/1 var(--font-pixel); color: var(--ink); }
.window video { width: 100%; aspect-ratio: 540 / 580; image-rendering: pixelated; }
.bubble-hero { position: absolute; left: -18px; top: 70px; }
.hero-media figcaption, figure figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }
.hero .kicker [lang="sl"], .hero .lede, .hero .status, .hero-media figcaption { text-shadow: 0 1px 0 color-mix(in srgb, var(--paper) 60%, transparent); }
.ground { position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 0; height: 120px; pointer-events: none; }
.hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill-far { fill: #6f7f9a; opacity: 0.55; }
.hill-snow { fill: #f4f1e6; opacity: 0.8; }
.hill-near { fill: #4f7a3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hill-near { fill: #22402a; } :root:not([data-theme="light"]) .hill-far { fill: #2b3854; } }

/* walkers: chibi villagers drawn as pixel rects (main.js builds the svg) */
.walkers { position: absolute; left: 0; right: 0; bottom: 6px; height: 54px; overflow: hidden; }
.walker { position: absolute; bottom: 0; width: 36px; height: 48px; animation: walk 38s linear infinite; }
.walker svg { width: 100%; height: 100%; image-rendering: pixelated; }
.walker .fr2 { visibility: hidden; }
.walker svg { animation: step 0.5s steps(1) infinite; }
@keyframes step { 50% { transform: translateY(-2px); } }
.walker.w2 { animation-duration: 46s; animation-delay: -18s; }
.walker.w3 { animation-duration: 52s; animation-delay: -34s; animation-direction: reverse; }
.walker.w3 svg { transform: scaleX(-1); animation: step-r 0.5s steps(1) infinite; }
@keyframes step-r { 0% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-2px); } }
@keyframes walk { from { left: -60px; } to { left: calc(100% + 20px); } }

/* ---------------------------------------------------------------- chapters */
/* from the evening on, the chapters take the night's colours, whatever the theme */
.dusk {
  --card: #271f3b; --paper: #2e2546; --paper-2: #372c52; --ink: #f7ead8; --ink-soft: #d8c7b2; --line: #54456f;
  --link: #ffc98a; --accent: #ffb27a; --green: #8de6c0; --red: #ff9aa8; --bubble: #3b2f58; --tr: #cdbba4;
  --mark: #5c4520; --code-bg: #150f22; --hard: rgba(0, 0, 0, 0.82); --hard-soft: rgba(0, 0, 0, 0.35); --title: #f6e7c8;
  color-scheme: dark; color: var(--ink);
}
.night {
  --card: #0d1526; --paper: #111a2c; --paper-2: #18233b; --ink: #f3e9d2; --ink-soft: #c9bb9e; --line: #2d3b5a;
  --link: #8eb6f5; --accent: #ff9d5c; --green: #5fd6a5; --red: #ff8a9a; --bubble: #1c2a44; --tr: #b8aa8c;
  --mark: #4a3b12; --code-bg: #070c16; --hard: rgba(0, 0, 0, 0.85); --hard-soft: rgba(0, 0, 0, 0.4); --title: #f6e7c8;
  color-scheme: dark; color: var(--ink);
}
.dusk.chapter, .night.chapter { outline: 2px solid rgba(255, 215, 150, 0.14); outline-offset: -8px; }
main { display: block; }
.chapter {
  position: relative; max-width: var(--maxw); margin: 0 auto 64px; padding: 36px clamp(16px, 4vw, 48px) 40px;
  background: var(--card); border: 4px solid var(--hard); box-shadow: 10px 10px 0 var(--hard-soft);
}
@media (max-width: 1180px) { .chapter { margin-left: var(--gutter); margin-right: var(--gutter); } }
.chapter h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 20px; }
.chapter h2 .h-tr { display: block; font-size: 0.55em; font-weight: 600; margin-top: 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 28px; }
.cols:last-child { margin-bottom: 0; }
.cols-media-left > :first-child { order: 0; }
.prose { max-width: 38em; }
.prose h3:first-child { margin-top: 0; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; background: var(--alpine-green); box-shadow: 0 0 0 2px var(--hard); }

figure { margin: 0; }
.framed img, .framed video { border: 4px solid var(--hard); box-shadow: 6px 6px 0 var(--hard-soft); width: 100%; image-rendering: auto; background: var(--phone); }
.framed figcaption .tr { margin-left: 4px; }
.phone {
  max-width: 340px; margin: 0 auto; padding: 10px; background: var(--phone); border-radius: 30px;
  border: 3px solid var(--hard); box-shadow: 8px 8px 0 var(--hard-soft);
}
.phone img, .phone video { width: 100%; border-radius: 20px; background: #000; }
.phone-sm { max-width: 260px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pair-tall .phone { max-width: 100%; }

/* the ages strip */
.ages { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 18px; list-style: none; counter-reset: age; }
.ages li { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bubble); border: 3px solid var(--hard); font-size: 0.92rem; }
.ages li b { font-family: var(--font-pixel); }
.ages small { color: var(--accent); font-weight: 800; }

.soundboard { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.snd { cursor: pointer; padding: 8px 12px; background: var(--bubble); color: var(--ink); border: 3px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); font: 700 0.98rem/1.1 var(--font-text); }
.snd small { color: var(--tr); font-weight: 600; }
.snd[aria-pressed="true"] { background: var(--xp-gold); color: #2a1e14; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.snd[aria-pressed="true"] small { color: #5e4a38; }

.daylist { list-style: none; padding: 0; margin: 0 0 20px; border-left: 4px solid var(--hard); }
.daylist li { position: relative; padding: 6px 0 6px 20px; }
.daylist li::before { content: ""; position: absolute; left: -10px; top: 14px; width: 12px; height: 12px; background: var(--xp-gold); box-shadow: 0 0 0 3px var(--hard); }
.daylist li:nth-child(n+6)::before { background: #8e7cc3; }
.daylist time { font: 700 0.9rem/1 var(--font-pixel); color: var(--accent); margin-right: 6px; }
.daylist [lang="sl"] { font-weight: 800; }
.daylist i { display: block; font-size: 0.92rem; }

/* dialogs: tabs and a phone */
.dialogs { margin: 10px 0 34px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tabs [role="tab"] {
  cursor: pointer; padding: 10px 14px; border: 3px solid var(--hard); background: var(--bubble); color: var(--ink);
  font: 700 1rem/1 var(--font-pixel); box-shadow: 3px 3px 0 var(--hard);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--slo-blue); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.dialog-panel { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: center; }
.dialog-panel .phone { margin: 0; }
.note h3 { margin-top: 0; }
.note .h-tr { display: block; font-size: 0.8em; }
.line { padding: 12px 14px; background: color-mix(in srgb, var(--alpine-green) 16%, var(--paper)); border-left: 5px solid var(--alpine-green); }
.line [lang="sl"] { display: block; font-weight: 800; font-size: 1.1rem; }
.line u { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* try-it boxes */
.try { margin-top: 30px; padding: 22px clamp(14px, 3vw, 28px); background: var(--paper-2); border: 3px dashed var(--line); }
.try h3 { margin-top: 0; }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 12px; }

.speech { display: flex; gap: 12px; align-items: flex-start; }
.speaker { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--alpine-green) 22%, var(--paper)); border-radius: 50%; border: 3px solid var(--hard); }
.speech-name { font: 700 1rem/1 var(--font-pixel); margin: 6px 0 8px; }
.speech-line { font-size: 1.7rem; font-weight: 800; line-height: 1.5; margin: 0 0 4px; padding: 10px 16px; background: color-mix(in srgb, var(--alpine-green) 18%, var(--paper)); border-radius: 0 18px 18px 18px; }
.speech-tr { font-style: italic; color: var(--tr); padding-left: 16px; }
.w {
  font: inherit; color: inherit; background: none; border: 0; padding: 0 2px; cursor: pointer;
  border-bottom: 3px dotted color-mix(in srgb, var(--ink) 45%, transparent);
}
.w:hover, .w[aria-pressed="true"] { background: var(--mark); border-bottom-style: solid; border-bottom-color: var(--accent); }
.wordcard {
  min-height: 220px; padding: 18px 20px; background: var(--paper); border: 3px solid var(--hard); box-shadow: 6px 6px 0 var(--hard-soft);
  border-radius: 18px 18px 18px 18px;
}
.wc-empty { color: var(--ink-soft); margin: 70px 0 0; text-align: center; }
.wc-form { font: 800 2rem/1.1 var(--font-text); margin: 0 0 4px; }
.wc-ctx { font-style: italic; color: var(--ink-soft); margin-bottom: 12px; }
.wc-box { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; }
.wc-lemma { font: 800 1.45rem/1.1 var(--font-text); margin: 0 0 6px; }
.wc-lemma small { font-size: 0.6em; color: var(--green); font-weight: 800; margin-left: 6px; }
.wc-gram { color: var(--link); font-weight: 800; margin: 0 0 6px; }
.wc-gloss { margin: 0 0 8px; font-size: 1.1rem; }
.wc-partner { margin: 10px 0 0; padding-top: 10px; border-top: 2px dashed var(--line); font-size: 0.95rem; }
.wc-forms { margin-top: 10px; font-size: 0.95rem; }
.wc-forms table { border-collapse: collapse; width: 100%; }
.wc-forms th { text-align: left; color: var(--link); font-size: 0.8rem; font-weight: 800; padding: 2px 6px 2px 0; }
.wc-forms td { padding: 2px 6px 2px 0; }
.wc-credit { font-size: 0.75rem; color: var(--ink-soft); margin: 10px 0 0; }

/* the six cases */
.cases-table-wrap { overflow-x: auto; }
.cases { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.cases th, .cases td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.cases thead th { font: 700 0.9rem/1 var(--font-pixel); color: var(--ink-soft); }
.cases tbody th { font-weight: 800; white-space: nowrap; }
.cases tbody th small { display: block; font-weight: 600; color: var(--tr); }
.cases tbody tr { cursor: pointer; }
.cases tbody tr:hover { background: color-mix(in srgb, var(--mark) 60%, transparent); }
.cases tbody tr[aria-selected="true"] { background: var(--mark); box-shadow: inset 5px 0 0 var(--accent); }
.stage-wrap { display: flex; flex-direction: column; gap: 14px; }
.stage {
  position: relative; height: 210px; background: linear-gradient(180deg, #9fd0f0 0 62%, #78a84a 62% 100%);
  border: 4px solid var(--hard); overflow: hidden;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage { background: linear-gradient(180deg, #24406b 0 62%, #2f5a2c 62% 100%); } }
.stage-house { position: absolute; left: 50%; bottom: 26%; width: 120px; height: 120px; margin-left: -60px; image-rendering: pixelated; }
.actor { position: absolute; font-size: 40px; line-height: 1; transition: left 0.6s steps(6), bottom 0.6s steps(6), transform 0.3s; left: 18%; bottom: 34%; }
.stage-line { font-size: 1.25rem; margin: 0; }
.stage-line [lang="sl"] { display: block; font-weight: 800; }

/* counting sheep */
.counter { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 10px 0 14px; }
.counter input { flex: 1; accent-color: var(--slo-blue); height: 30px; }
.count-line { font-size: 1.6rem; margin: 0 0 4px; }
.count-line [lang="sl"] { font-weight: 800; margin-right: 8px; }
.count-line b { color: var(--accent); }
.count-rule { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.flock { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; }
.flock svg { width: 56px; height: 42px; image-rendering: pixelated; animation: hop 0.25s steps(2) 1; }
@keyframes hop { from { transform: translateY(-8px); } to { transform: translateY(0); } }

/* SM-2 bars */
.sm2 { display: flex; align-items: flex-end; gap: 8px; list-style: none; padding: 0; margin: 4px 0 18px; height: 110px; }
.sm2 li { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.sm2 li { --d: 1; }
.sm2 .d6 { --d: 6; } .sm2 .d15 { --d: 15; } .sm2 .d38 { --d: 38; } .sm2 .d94 { --d: 94; }
.sm2 li::before { content: ""; display: block; width: 100%; height: calc(8px + var(--d) * 0.9px); background: var(--slo-blue); border: 3px solid var(--hard); margin-bottom: 4px; }
.sm2 li:nth-child(2)::before { background: var(--alpine-green); }
.sm2 li:nth-child(3)::before { background: var(--xp-gold); }
.sm2 li:nth-child(4)::before { background: var(--flame); }
.sm2 li:nth-child(5)::before { background: var(--triglav-red); }
.sm2 b { font-family: var(--font-pixel); color: var(--ink); font-size: 1rem; }

/* the quiz */
.quiz-meta { color: var(--ink-soft); font-size: 0.95rem; white-space: pre-line; margin-bottom: 6px; }
.quiz-q { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.quiz-q .gap { display: inline-block; min-width: 3.2em; border-bottom: 4px solid var(--ink); }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.opt {
  cursor: pointer; padding: 14px 18px; text-align: left; font: 700 1.2rem/1.2 var(--font-text); color: var(--ink);
  background: var(--bubble); border: 3px solid var(--hard); border-radius: 16px; box-shadow: 3px 3px 0 var(--hard);
}
.opt:disabled { cursor: default; }
.opt.right { background: color-mix(in srgb, var(--alpine-green) 30%, var(--paper)); }
.opt.wrong { background: color-mix(in srgb, var(--triglav-red) 22%, var(--paper)); text-decoration: line-through; }
.quiz-fb:empty { display: none; }
.quiz-fb { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--alpine-green) 16%, var(--paper)); border: 3px solid var(--hard); max-width: 640px; }
.quiz-fb.no { background: color-mix(in srgb, var(--xp-gold) 20%, var(--paper)); }
.quiz-fb h4 { margin: 0 0 6px; font: 700 1.25rem/1.2 var(--font-pixel); color: var(--green); }
.quiz-fb.no h4 { color: var(--accent); }
.quiz-fb p { margin: 0 0 6px; }
.quiz-fb .book { color: var(--green); font-weight: 800; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; max-width: 640px; }

/* the car radio */
.drills { padding-left: 0; list-style: none; }
.drills li { margin-bottom: 10px; padding-left: 14px; border-left: 4px solid var(--xp-gold); }
.drills b { display: block; font-family: var(--font-pixel); font-size: 1.05rem; }
.radio {
  background: #22262e; color: #e9f1ff; border: 4px solid var(--hard); border-radius: 22px; padding: 16px; box-shadow: 8px 8px 0 var(--hard-soft);
  max-width: 460px; margin: 0 auto; width: 100%;
}
.radio-top { display: flex; justify-content: space-between; align-items: center; font: 700 1rem/1 var(--font-pixel); color: #aab6cc; margin-bottom: 10px; }
.radio-led { width: 12px; height: 12px; background: #3d4352; box-shadow: 0 0 0 2px #10131a; }
.radio.playing .radio-led { background: #57e389; box-shadow: 0 0 0 2px #10131a, 0 0 12px #57e389; }
.radio-screen { background: #0d1a14; border: 3px solid #10131a; border-radius: 10px; padding: 16px; min-height: 196px; color: #b8f5c8; }
.radio-kind { font: 600 0.9rem/1.2 var(--font-pixel); color: #6fcf97; margin-bottom: 10px; }
.radio-prompt { font-size: 1.05rem; color: #d7f8e0; min-height: 1.6em; }
.radio-sl { font: 800 1.5rem/1.3 var(--font-text); color: #fff; min-height: 2.6em; margin-bottom: 10px; }
.radio-sl.hide { color: transparent; text-shadow: 0 0 10px rgba(184, 245, 200, 0.6); }
.radio-bar { height: 8px; background: #183326; }
.radio-bar span { display: block; height: 100%; width: 0; background: #57e389; }
.radio-keys { display: flex; justify-content: center; gap: 14px; margin: 16px 0 12px; }
.key {
  cursor: pointer; width: 64px; height: 52px; font-size: 1.3rem; color: #e9f1ff; background: #3a4150;
  border: 3px solid #10131a; border-radius: 12px; box-shadow: 0 4px 0 #10131a;
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 #10131a; }
.key-play { background: #2e7d57; width: 80px; }
.radio-drills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip-btn { cursor: pointer; padding: 6px 12px; background: #2b303b; color: #cfd8ea; border: 2px solid #10131a; font: 600 0.9rem/1 var(--font-pixel); }
.chip-btn[aria-pressed="true"] { background: #ffb300; color: #1c1408; }

/* other villages */
.lands { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.lands li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--bubble); border: 3px solid var(--hard); }
.flag { font-size: 1.5rem; line-height: 1; }

/* stories */

.fire-clip { margin: 8px 0 18px; }
.fire-clip video { width: 100%; }
.fire-sound { margin-top: 12px; }
.notebook { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 260px) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 30px; }
.notebook .phone { margin: 0; }
.notebook-note {
  padding: 18px 22px; transform: rotate(-1.5deg);
  background: repeating-linear-gradient(180deg, #fbf6ea 0 30px, #c9d6ef 30px 31px); color: #1e3a8a;
  border-left: 3px solid #e7a3a3; box-shadow: 6px 6px 0 var(--hard-soft);
}
.hand { font-family: var(--font-hand); font-size: 1.5rem; line-height: 31px; margin: 0; }
.hand-tr { font-size: 1.15rem; color: #5b5b5b; }

/* the tutor's chat */
.chat { background: var(--paper); border: 3px solid var(--hard); border-radius: 22px; padding: 16px; box-shadow: 8px 8px 0 var(--hard-soft); }
.chat-head { font: 700 1.05rem/1 var(--font-pixel); margin: 2px 4px 14px; display: flex; gap: 8px; align-items: center; }
.chat-head small { margin-left: auto; font: 600 0.75rem/1 var(--font-text); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.msg { padding: 12px 14px; border-radius: 16px; margin-bottom: 10px; max-width: 92%; }
.msg p { margin: 0 0 6px; }
.msg p:last-child { margin-bottom: 0; }
.msg-me { margin-left: auto; background: color-mix(in srgb, var(--slo-blue) 18%, var(--paper)); border-bottom-right-radius: 4px; }
.msg-about { font-size: 0.82rem; color: var(--ink-soft); }
.msg-tutor { background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg-tools { display: flex; gap: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.msg-pub { background: color-mix(in srgb, var(--xp-gold) 22%, var(--paper)); }

/* how it works */

.diagram { margin: 0 0 28px; }
.diagram svg { width: 100%; height: auto; }
.diagram-tall { display: none; max-width: 420px; margin: 0 auto; }
.dg-node rect { fill: var(--bubble); stroke: var(--hard); stroke-width: 4; }
.dg-tutor rect { fill: color-mix(in srgb, var(--xp-gold) 22%, var(--bubble)); }
.dg-machine { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-dasharray: 10 8; }
.dg-data path, .dg-data ellipse { fill: color-mix(in srgb, var(--alpine-green) 26%, var(--bubble)); stroke: var(--hard); stroke-width: 3; }
.dg-link { stroke: var(--ink); stroke-width: 4; fill: none; }
.dg-link-thin { stroke-width: 3; stroke-dasharray: 5 5; }
.dg-arrowhead { fill: var(--ink); }
.diagram text { fill: var(--ink); font-family: var(--font-text); }
.diagram text:not([text-anchor]) { text-anchor: middle; }
.dg-icon { font-size: 30px; }
.dg-title { font: 700 21px var(--font-pixel); }
.dg-sub { font-size: 15px; fill: var(--ink-soft) !important; }
.dg-small { font: 600 15px var(--font-pixel); text-anchor: start !important; fill: var(--ink-soft) !important; }
.dg-label { font: 700 16px var(--font-pixel); fill: var(--accent) !important; }
.dg-label-sm { font: 600 14px var(--font-text); fill: var(--ink-soft) !important; }
.packet { fill: var(--xp-gold); stroke: var(--hard); stroke-width: 2; }
.packet-2 { fill: var(--alpine-green); }
.packet-3 { fill: var(--flame); }
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
.parts h3 { font-size: 1rem; margin: 0 0 4px; }
.parts h3 code { font-size: 0.95em; background: var(--paper-2); padding: 2px 6px; }
.parts p { margin: 0; font-size: 0.97rem; }

/* run it */
.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 18px 0; }
.steps li { counter-increment: step; margin-bottom: 18px; }
.steps li > p { font-weight: 800; margin-bottom: 8px; }
.steps li > p::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; font: 700 1rem/1 var(--font-pixel); background: var(--xp-gold); color: #2a1e14; border: 3px solid var(--hard); }
.cols:has(.steps) { grid-template-columns: minmax(0, 1fr); }
#run .prose { max-width: 52em; }
.code { position: relative; background: var(--code-bg); color: var(--code-ink); border: 3px solid var(--hard); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 0.92rem; line-height: 1.55; }
.copy {
  position: absolute; top: 8px; right: 8px; cursor: pointer; padding: 4px 10px; font: 600 0.82rem/1.2 var(--font-pixel);
  background: #3a2c20; color: var(--code-ink); border: 2px solid #000;
}
.copy:hover { background: #5a4430; }

/* open source */
.credits dl { margin: 0 0 10px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.credits dt { font-weight: 800; }
.credits dd { margin: 0; }
.credits h3 { margin-top: 0; }

/* footer */
.footer { text-align: center; padding: 30px var(--gutter) 50px; color: #f3e9d2; background-color: #0d1838; box-shadow: 0 -40px 60px 20px #0d1838; }
.campfire { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.glow { position: absolute; inset: -60px; background: radial-gradient(circle, rgba(255, 140, 40, 0.55) 0, rgba(255, 110, 20, 0.18) 35%, transparent 65%); animation: glow 1.6s steps(3) infinite alternate; }
@keyframes glow { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
.fire { position: relative; width: 160px; height: 160px; image-rendering: pixelated; }
.flame { animation: flick 0.6s steps(1) infinite; }
.f2 { animation-delay: -0.3s; }
@keyframes flick { 0% { opacity: 1; } 50% { opacity: 0; } }
.goodnight { font: 700 clamp(1.8rem, 5vw, 2.6rem)/1.2 var(--font-pixel); margin: 10px 0 14px; }
.goodnight .tr { color: #cbb995; font-size: 0.6em; display: block; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.footer a { color: #ffd76a; }
.footer .small { font-size: 0.85rem; color: #cbb995; max-width: 40em; margin: 0 auto; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 28px; }
  .bubble-hero { left: auto; right: 10px; top: -16px; }
  .cols, .try-grid, .dialog-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cols-media-left > :first-child { order: 1; }
  .dialog-panel .phone { margin: 0 auto; }
  .notebook { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notebook-note { grid-column: 1 / -1; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .chapter { padding: 26px 16px 30px; margin-bottom: 40px; box-shadow: 6px 6px 0 var(--hard-soft); }
  .pair { gap: 12px; }
  .phone { padding: 6px; border-radius: 22px; }
  .phone img, .phone video { border-radius: 16px; }
  .speech-line { font-size: 1.4rem; }
  .wc-forms table { font-size: 0.86rem; }
  .wc-forms td { white-space: nowrap; }
  .wordcard { padding: 16px 14px; }
  .wc-box { padding: 10px; }
  .quiz-opts { grid-template-columns: minmax(0, 1fr); }
  .credits dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .credits dd { margin-bottom: 8px; }
  .cases tbody th small { display: none; }
  .cases th, .cases td { padding: 7px 6px; }
  .hero { padding-bottom: 130px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .sun, .moon { display: none; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .walkers, .packet { display: none; }
  .flame.f2 { display: none; }
}

/* clips: a small pause button where they play by themselves */
.vwrap { position: relative; }
.vbtn {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  font-size: 15px; line-height: 1; color: #fff; background: rgba(20, 14, 10, 0.68); border: 2px solid rgba(0, 0, 0, 0.9);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.vbtn:hover, .vbtn:focus-visible { background: rgba(20, 14, 10, 0.9); }
.phone .vbtn { top: 14px; right: 14px; }

/* ---------------------------------------------------------------- the site's language */
.i18n-wait main, .i18n-wait .topbar { visibility: hidden; }
html[lang="sl"] .gloss { display: none; }
.lang-pick {
  display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 3px solid var(--hard); background: var(--bubble);
  box-shadow: 3px 3px 0 var(--hard); font: 700 0.95rem/1 var(--font-pixel); cursor: pointer;
}
.lang-pick select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 700 0.95rem/1 var(--font-pixel); padding: 2px 2px;
}
.lang-pick:focus-within { outline: 3px solid var(--xp-gold); outline-offset: 2px; }
.lang-pick select:focus { outline: none; }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; }
.langs-label { font-weight: 800; margin-right: 2px; }
.lang-btn {
  cursor: pointer; padding: 7px 11px; font: 700 0.95rem/1 var(--font-text); color: var(--ink); background: var(--bubble);
  border: 3px solid var(--hard); box-shadow: 3px 3px 0 var(--hard);
}
.lang-btn[aria-pressed="true"] { background: var(--slo-blue); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.mt-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 10px; }
.mt-note:empty { display: none; }
@media (max-width: 1059px) { .nav-wide { display: none; } }
@media (max-width: 420px) { .clock { display: none; } }

/* ---------------------------------------------------------------- the four villages */
.cols-wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.labels-demo { padding: 14px 16px; background: var(--paper-2); border: 3px dashed var(--line); }
.labels-title { font: 700 1rem/1.2 var(--font-pixel); margin-bottom: 8px; }
.labels { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.labels li { padding: 6px 10px; background: var(--bubble); border: 2px solid var(--hard); border-radius: 999px; font-weight: 700; font-size: 0.92rem; }
.labels-note { font-size: 0.85rem; margin: 0; }
.vtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.vtab {
  cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 14px; color: var(--ink);
  background: var(--bubble); border: 3px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); font: 700 1.05rem/1.1 var(--font-pixel);
}
.vtab small { font: 600 0.8rem/1 var(--font-text); color: var(--ink-soft); }
.vtab[aria-selected="true"] { background: var(--slo-blue); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.vtab[aria-selected="true"] small { color: #dbe7ff; }
.vpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 30px; align-items: start; margin-bottom: 14px; }
.vpanel h3 { margin-top: 0; font-size: 1.45rem; }
.vpanel h3 small { font: 600 0.9rem/1 var(--font-text); }
.learner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; font-weight: 700; }
.learner-btn {
  cursor: pointer; padding: 6px 12px; font: 700 0.95rem/1 var(--font-text); color: var(--ink); background: var(--bubble);
  border: 3px solid var(--hard); border-radius: 999px;
}
.learner-btn[aria-pressed="true"] { background: var(--xp-gold); color: #2a1e14; }
.vcard { padding: 12px 14px; margin-bottom: 12px; background: var(--bubble); border: 3px solid var(--hard); box-shadow: 4px 4px 0 var(--hard-soft); }
.vcard-k { font: 700 0.9rem/1.1 var(--font-pixel); color: var(--accent); margin: 0 0 4px; }
.vcard-who { font-weight: 800; margin: 0 0 6px; }
.vline { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin: 0 0 4px; padding: 8px 12px; background: color-mix(in srgb, var(--alpine-green) 18%, var(--paper)); border-radius: 0 16px 16px 16px; }
.vline-tr { font-style: italic; color: var(--tr); margin: 0; }
.vline-tr:empty { display: none; }
.vstory { margin: 0; padding-left: 20px; }
.vstory li { margin-bottom: 6px; }
.vstory li span { font-weight: 700; }
.vstory li i { display: block; font-size: 0.92rem; }
.vword-head { margin: 0 0 2px; }
.vword-word { font: 800 1.5rem/1.1 var(--font-text); }
.vword-ex { margin: 6px 0 4px; }
.vword-ex span { font-weight: 700; }
.vword-ex i { display: block; font-size: 0.92rem; }
.phone-md { max-width: 320px; }
.vshot { margin: 0; }
.vshot figcaption { color: #e9e2d6; padding: 8px 6px 2px; font-size: 0.88rem; }
.gloss-any { color: #b9ad99; }
.small { font-size: 0.85rem; }

/* ---------------------------------------------------------------- visits */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 10px 0 30px; align-items: start; }
.phone-xs { max-width: 100%; padding: 8px; border-radius: 24px; }
.phone-xs img { border-radius: 16px; }
.phone-xs figcaption { color: #e9e2d6; padding: 8px 4px 2px; font-size: 0.86rem; }
.levels { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: lv; }
.levels li { counter-increment: lv; display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; margin-bottom: 6px; background: var(--bubble); border: 2px solid var(--hard); }
.levels li::before { content: counter(lv); font: 700 0.9rem/1 var(--font-pixel); color: #2a1e14; background: var(--xp-gold); padding: 3px 6px; border: 2px solid var(--hard); }
.levels li:nth-child(1) { margin-right: 32%; } .levels li:nth-child(2) { margin-right: 24%; } .levels li:nth-child(3) { margin-right: 16%; } .levels li:nth-child(4) { margin-right: 8%; }

/* ---------------------------------------------------------------- the car */
.car-card { margin: 16px 0; max-width: 420px; }
.car-card video { width: 100%; border: 4px solid var(--hard); border-radius: 16px; box-shadow: 6px 6px 0 var(--hard-soft); background: #1c1c1e; }
.car-sheet { margin-top: 22px; }
.radio-tr { opacity: 0.75; }

@media (max-width: 900px) {
  .vpanel { grid-template-columns: minmax(0, 1fr); }
  .vshot { max-width: 300px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-wide-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vtab { padding: 8px 10px; font-size: 0.98rem; }
  .vline { font-size: 1.2rem; }
  .levels li { margin-right: 0 !important; }
  .lang-btn { padding: 6px 9px; font-size: 0.9rem; }
}

.framed figcaption .gloss::before { content: "· "; }
.car-card .vbtn { top: auto; bottom: 10px; right: 10px; }
@media (max-width: 560px) {
  .vtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .vtab { justify-content: center; flex-wrap: wrap; }
}
