/* =============================================================================
 * Sensya — design-token layer + quiz/nav styles.
 * =============================================================================
 * The tokens below are EXTRACTED from the binding prototype (tipptyp.jsx, CSS
 * block lines 472-633) and konzept.md §10, so PHP templates and quiz.js share one
 * source of truth. The prototype is the calibration anchor: the gradient recipe,
 * the clamp() type scale, the radius scale (18/24/14/9), the shadow/glow recipes,
 * the two motion curves, the colour tokens (incl. the 4 type accents) and the
 * fonts are reproduced here as CSS custom properties.
 *
 * Fonts: Bebas Neue (display), Inter (body), Space Mono (LED labels/percent).
 * Loaded via <link> in the layout with solid system fallbacks. NOTE for Phase 3:
 * the server-side OG PNG renderer (GD/Imagick) needs the actual font FILES bundled
 * — a <link> webfont does not reach the PNG renderer.
 * ========================================================================== */

:root {
  /* ── Colour (konzept.md §10) ─────────────────────────────────────────── */
  --bg: #0A1410;        /* Stadion-Nacht — greenish black */
  --bg2: #0F1D17;       /* Fläche / surface */
  --card-bg: #0C1A14;   /* card interior (prototype) */
  --ink: #F4EFE3;       /* Flutlicht-Creme */
  --muted: #8FA298;
  --line: rgba(244, 239, 227, .12);
  --gold: #8c52ff;      /* Brand accent (violet) — sparingly: wordmark, main CTA, star */
  --gold-ink: #ffffff;  /* text on the accent */
  --pitch: #2A8C5F;     /* Pitch-green — progress, success */

  /* Type accents (per card type) — neg/pos pair each (konzept.md §10) */
  --acc-stratege: #5BA8C9;  --acc-stratege-2: #2E6E8E;
  --acc-patriot:  #E5564B;  --acc-patriot-2:  #A32D26;
  --acc-zocker:   #B4E033;  --acc-zocker-2:   #6F9610;
  --acc-traeumer: #CF6BD8;  --acc-traeumer-2: #8E3A97;

  /* ── Type (fonts + the prototype's clamp() scale) ────────────────────── */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(76px, 22vw, 108px);  /* start h1 */
  --fs-question: clamp(40px, 11vw, 56px);  /* quiz question + page h1 */
  --fs-card-name: clamp(60px, 17vw, 82px); /* result card name */

  /* ── Radius scale (PLAN §E / prototype: 18 / 24 / 14 / 9) ────────────── */
  --r-option: 18px;   /* option buttons */
  --r-card: 24px;     /* result card */
  --r-btn: 14px;      /* share buttons */
  --r-chip: 9px;      /* option key chip */

  /* ── Shadow / glow recipes (prototype) ───────────────────────────────── */
  --shadow-cta: 0 10px 30px -12px rgba(232, 179, 65, .7);
  --shadow-cta-hover: 0 16px 36px -12px rgba(232, 179, 65, .8);
  --glow-scoreboard: 0 0 28px rgba(232, 179, 65, .35);

  /* ── Motion (the two prototype curves) ───────────────────────────────── */
  /* (1) the signature ease, used for screen-in / bar fill / card-in */
  --ease-signature: cubic-bezier(.2, .7, .2, 1);
  /* (2) the count-up cubic 1 - pow(1-p,3) over ~850ms lives in quiz.js JS;
     this token records the matching duration for any CSS that mirrors it. */
  --dur-countup: 850ms;
  --dur-bar: .8s;
  --dur-autoadvance: 1900ms; /* auto-advance window; tap/click skips (konzept §9) */

  /* ── Background gradient recipe (prototype lines 477-480) ────────────── */
  --bg-gradient:
    radial-gradient(120% 80% at 50% -10%, rgba(42, 140, 95, .18) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(232, 179, 65, .08) 0%, rgba(0, 0, 0, 0) 60%),
    var(--bg);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); }

/* Shared focus ring — the gold ring from the prototype (line 626). */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── App shell + bottom-nav layout ─────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  /* leave room for the fixed bottom nav (progressive nav, not a SPA router) */
  padding: 24px 22px calc(86px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
}

/* ── Wordmark / eyebrow / generic type helpers ─────────────────────────── */
.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .42em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  padding-left: .42em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================================
 * Bottom navigation — server-rendered partial (views/partials/nav.php).
 * Progressive nav: plain <a> links so Trends/Freunde/Profil stay crawlable.
 * NOT a JS router. Renders on every nav surface; the active tab is set by PHP.
 * ========================================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(10, 20, 16, .98), rgba(10, 20, 16, .92));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__inner {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 6px 12px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .18s ease;
}

.bottom-nav__item:hover { color: var(--ink); }

.bottom-nav__item[aria-current="page"] { color: var(--gold); }

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* =============================================================================
 * Quiz — faithful Vanilla port of the prototype's screens.
 * ========================================================================== */
.quiz {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  animation: ttIn .45s var(--ease-signature) both;
}

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

.quiz__of { opacity: .6; }

.quiz__progress {
  display: flex;
  gap: 5px;
}

.quiz__tick {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  transition: background .4s ease;
}
.quiz__tick.is-done { background: var(--pitch); }
.quiz__tick.is-now { background: var(--gold); }

.quiz__question {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-question);
  line-height: .96;
  letter-spacing: .01em;
  margin: 34px 0 26px;
  min-height: 2.2em;
}

/* ── Options ───────────────────────────────────────────────────────────── */
.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-option);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .18s ease, transform .12s ease, background .2s ease;
}
.option:hover:not(:disabled) {
  border-color: rgba(232, 179, 65, .55);
  transform: translateY(-2px);
}
.option:active:not(:disabled) { transform: translateY(0); }
.option:disabled { cursor: default; }
.option.is-selected { border-color: var(--gold); background: rgba(140, 82, 255, .08); }
.option.is-dimmed { opacity: .5; }

.option__key {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-chip);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  background: rgba(244, 239, 227, .08);
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.option.is-selected .option__key { background: var(--gold); color: var(--gold-ink); }

.option__text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.option__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  transition: width var(--dur-bar) var(--ease-signature);
}

.option__pct {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  min-width: 46px;
  text-align: right;
  opacity: 0;
  transition: opacity .25s ease;
}
.option.is-revealing .option__pct { opacity: 1; }

/* ── Scoreboard (LED reveal) ───────────────────────────────────────────── */
.scoreboard {
  min-height: 78px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .3s ease;
}
.scoreboard.is-shown { opacity: 1; }

.scoreboard__big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 46px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: var(--glow-scoreboard);
}
.scoreboard__pct { font-size: 26px; margin-left: 2px; }
.scoreboard__lab {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .03em;
  text-align: center;
}

.quiz__skip {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s ease;
}
.quiz__skip.is-shown { opacity: .8; }

/* ── Start screen ──────────────────────────────────────────────────────── */
.start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: calc(100vh - 110px);
  animation: ttIn .45s var(--ease-signature) both;
}
.start__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .86;
  letter-spacing: .01em;
  margin: 6px 0 0;
}
.start__lead {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(244, 239, 227, .78);
  max-width: 21em;
  margin: 2px 0 0;
}
.start__live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}
.start__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pitch);
  box-shadow: 0 0 0 0 rgba(42, 140, 95, .6);
  animation: ttPulse 1.8s infinite;
}
.cta {
  margin-top: 14px;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: .06em;
  padding: 18px 22px;
  border-radius: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-cta);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); }
.cta:active { transform: translateY(0); }
.cta__arrow { font-size: 26px; }
.start__players {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: .04em;
}
.start__players strong { color: var(--ink); }

/* ── Result handoff stub (the real card is Phase 3) ────────────────────── */
.handoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  min-height: calc(100vh - 110px);
  animation: ttIn .45s var(--ease-signature) both;
}
.handoff__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  animation: ttSpin 1s linear infinite;
}
.handoff__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 46px);
  line-height: .96;
  margin: 4px 0 0;
}
.handoff__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  max-width: 22em;
}
.handoff__btn {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  border-radius: var(--r-btn);
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
}

/* =============================================================================
 * Result card — server-rendered (views/ergebnis.php) AND built by quiz.js.
 * A faithful port of the prototype's ResultScreen (.tt-card / .tt-share,
 * tipptyp.jsx lines 354-396 + 579-624). Tinted per type via --acc / --acc2,
 * which the markup sets inline from the type's accent pair. color-mix uses the
 * 4 type accents already declared in :root. Additive — nothing above changes.
 * ========================================================================== */
.result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: ttIn .45s var(--ease-signature) both;
}
.result__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--acc) 26%, transparent) 0%, rgba(0, 0, 0, 0) 58%),
    var(--card-bg);
  border: 1.5px solid color-mix(in srgb, var(--acc) 55%, transparent);
  padding: 24px 22px 20px;
  box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--acc) 70%, black);
  animation: ttCard .6s var(--ease-signature) both;
}
@keyframes ttCard {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--acc);
}
.card__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 47%, transparent 62%);
  transform: translateX(-120%);
  animation: ttSheen 3.4s ease-in-out 0.5s infinite;
}
@keyframes ttSheen {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.card__ovr { display: flex; flex-direction: column; line-height: 1; }
.card__ovr-num { font-family: var(--font-display); font-size: 64px; color: var(--acc); }
.card__ovr-lab {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  margin-top: 2px;
}
.card__rarity { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.card__rarity-num { font-family: var(--font-display); font-size: 38px; color: var(--acc); }
.card__rarity-lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}
.card__type-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  margin: 18px 0 0;
}
.card__emoji { filter: saturate(1.1); }
.card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-card-name);
  line-height: .9;
  margin: 6px 0 0;
}
.card__tag {
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  margin: 14px 0 0;
}
.card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  margin: 22px 0 4px;
}
.card__stat { display: flex; align-items: baseline; gap: 9px; }
.card__stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--acc);
  line-height: 1;
  min-width: 48px;
}
.card__stat-lab {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.card__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

/* ── Share buttons (prototype .tt-share) ───────────────────────────────── */
.share { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-btn);
  padding: 17px 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform .12s ease, opacity .2s ease, border-color .2s ease;
  display: block;
}
.btn:active { transform: translateY(1px); }
.btn--wa {
  background: #25D366;
  color: #06311A;
  box-shadow: 0 12px 30px -14px rgba(37, 211, 102, .8);
}
.btn--wa:hover { opacity: .94; }
.share__row { display: flex; gap: 10px; }
.btn--ghost {
  flex: 1;
  background: var(--bg2);
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-size: 15px;
}
.btn--ghost:hover { border-color: rgba(232, 179, 65, .5); }
.restart {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px;
  margin-top: 2px;
  text-align: center;
  text-decoration: none;
  display: block;
}
.restart:hover { color: var(--ink); }

/* ── Generic content surfaces (placeholders for Trends/Freunde/Profil) ─── */
.surface { animation: ttIn .45s var(--ease-signature) both; }
.surface__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-question);
  line-height: .96;
  margin: 18px 0 12px;
}
.surface__lead {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(244, 239, 227, .78);
  max-width: 26em;
}
.surface__note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* =============================================================================
 * Freunde-Vergleich (Phase 4) — landing (/vergleich/{token}) + overlap screen
 * appended under the result card by compare.js. ADDITIVE: reuses the existing
 * tokens (--acc/--acc2, fonts, --gold, --ease-signature) and the .cta button.
 * No token churn; nothing above changes.
 * ========================================================================== */

/* ── Landing (views/vergleich.php) ─────────────────────────────────────── */
.compare-landing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 110px);
  justify-content: center;
  animation: ttIn .45s var(--ease-signature) both;
}
.compare-landing .wordmark { margin-bottom: 8px; }
.compare-landing__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.compare-landing__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-question);
  line-height: .98;
  letter-spacing: .01em;
  margin: 4px 0 0;
}
.compare-landing__name { color: var(--acc); }
.compare-landing__emoji { filter: saturate(1.1); }
.compare-landing__lead {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(244, 239, 227, .80);
  max-width: 24em;
  margin: 4px 0 0;
}
.compare-landing__lead strong { color: var(--ink); }
.compare-landing__teaser {
  margin: 8px 0 2px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  border: 1.5px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--acc) 18%, transparent) 0%, rgba(0, 0, 0, 0) 60%),
    var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.compare-landing__teaser-big {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--acc);
}
.compare-landing__teaser-lab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.compare-landing__cta { margin-top: 6px; }
.compare-landing__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ── Overlap screen (compare.js appends .overlap under .result) ─────────── */
.overlap {
  margin-top: 24px;
  padding: 26px 22px 22px;
  border-radius: var(--r-card);
  border: 1.5px solid color-mix(in srgb, var(--acc, var(--gold)) 50%, transparent);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--acc, var(--gold)) 20%, transparent) 0%, rgba(0, 0, 0, 0) 62%),
    var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  animation: ttCard .6s var(--ease-signature) both;
}
.overlap__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.overlap__big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 2px 0;
}
.overlap__num {
  font-family: var(--font-display);
  font-size: clamp(76px, 24vw, 104px);
  line-height: .9;
  color: var(--acc, var(--gold));
  text-shadow: 0 0 28px color-mix(in srgb, var(--acc, var(--gold)) 35%, transparent);
}
.overlap__pct {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 54px);
  color: var(--acc, var(--gold));
  margin-left: 4px;
}
.overlap__lead {
  font-size: 16px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  max-width: 22em;
  margin: 2px 0 0;
}
.overlap__lead strong { color: var(--ink); }
.overlap__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 6px 0 0;
}
.overlap__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.overlap__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--acc, var(--gold));
  animation: ttSpin 1s linear infinite;
}
.overlap__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted);
  max-width: 24em;
  margin: 0;
}
.overlap__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.overlap__empty-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px);
  line-height: .98;
  color: var(--ink);
  margin: 0;
}

/* =============================================================================
 * Trends / SEO (Phase 5) — overview (/trends) + per-question statistic page
 * (/trends/{pack}/{frage}). ADDITIVE only: reuses the existing tokens (--ink,
 * --muted, --gold, --pitch, --line, fonts, radii, --ease-signature) and the .btn
 * / .wordmark / .restart classes. No token churn; nothing above changes.
 * ========================================================================== */

/* ── Overview ──────────────────────────────────────────────────────────── */
.trends { animation: ttIn .45s var(--ease-signature) both; padding-bottom: 24px; }
.trends__head { margin: 14px 0 26px; }
.trends__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-question);
  line-height: .94;
  margin: 0 0 12px;
}
.trends__lead {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(244, 239, 227, .78);
  max-width: 30em;
  margin: 0;
}
.trends__section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 30px 0 12px;
}
.trends__empty {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 239, 227, .78);
}

.stat-list, .pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-option);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease-signature), transform .2s var(--ease-signature);
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.stat-card__q { font-size: 15px; line-height: 1.35; color: rgba(244, 239, 227, .82); }
.stat-card__finding { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stat-card__pct {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1;
  color: var(--gold);
}
.stat-card__choice { font-size: 15px; color: var(--ink); }
.stat-card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.pack-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-option);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease-signature), transform .2s var(--ease-signature);
}
.pack-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.pack-card__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; }
.pack-card__sub { font-size: 14px; color: rgba(244, 239, 227, .72); }
.pack-card__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }

/* ── Per-question statistic page ───────────────────────────────────────── */
.trend { animation: ttIn .45s var(--ease-signature) both; padding-bottom: 24px; }
.trend__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 12px 0 16px;
}
.trend__eyebrow a { color: var(--muted); }
.trend__eyebrow a:hover { color: var(--gold); }
.trend__q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-question);
  line-height: .96;
  margin: 0 0 16px;
}
.trend__headline {
  font-size: clamp(19px, 5.5vw, 24px);
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 22px;
}
.trend__invite {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(244, 239, 227, .82);
  margin: 0 0 22px;
}
.trend__bars { display: grid; gap: 14px; margin: 0 0 18px; }
.trend-bar__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.trend-bar__label { font-size: 15px; line-height: 1.3; color: var(--ink); }
.trend-bar__pct { font-family: var(--font-mono); font-size: 14px; color: var(--muted); flex: 0 0 auto; }
.trend-bar__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.trend-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pitch);
  transition: width var(--dur-bar) var(--ease-signature);
}
.trend-bar.is-dominant .trend-bar__pct { color: var(--gold); }
.trend-bar.is-dominant .trend-bar__fill { background: var(--gold); }
.trend__total {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 26px;
}
.trend__cta { display: grid; gap: 8px; }

/* ── Keyframes (prototype) ─────────────────────────────────────────────── */
@keyframes ttIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes ttPulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 140, 95, .55); }
  70% { box-shadow: 0 0 0 10px rgba(42, 140, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 140, 95, 0); }
}
@keyframes ttSpin { to { transform: rotate(360deg); } }

/* =============================================================================
 * Duel lead form (Phase 7b, konzept.md §15.7/§15.4) — the soft/hard-gate email
 * capture mounted by duel.js into [data-lead-hook]. ADDITIVE only: reuses the
 * existing tokens + the .btn class. The container itself is rendered by views/
 * duel.php; these rules style the JS-built form within it.
 * ========================================================================== */
.duel__lead-hook {
  margin: 22px 0 6px;
  padding: 18px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-option, 14px);
  animation: ttIn .35s var(--ease-signature, ease) both;
}
.duel__lead-copy {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(244, 239, 227, .85);
  margin: 0 0 14px;
}
.duel-lead { display: grid; gap: 12px; }
.duel-lead__email {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px; /* ≥16px avoids iOS zoom-on-focus */
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.duel-lead__email:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.duel-lead__check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(244, 239, 227, .8);
  cursor: pointer;
}
.duel-lead__check input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--pitch); }
.duel-lead__submit { width: 100%; margin-top: 2px; }
.duel-lead__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted);
  margin: 0;
  min-height: 1em;
}
.duel-lead__status:empty { display: none; }
.duel-lead__done {
  font-size: 15px;
  line-height: 1.45;
  color: var(--pitch);
  margin: 0;
}

/* ── Reduced motion — no animation, instant values (prototype lines 628-632).
 * quiz.js ALSO honours prefers-reduced-motion in JS (instant count-up). ──── */
@media (prefers-reduced-motion: reduce) {
  .quiz, .start, .handoff, .surface, .result, .card { animation: none !important; }
  .start__dot, .handoff__spinner { animation: none !important; }
  .card__sheen { animation: none !important; display: none; }
  .option__bar, .option__pct, .scoreboard, .quiz__skip { transition: none !important; }
  /* Phase 4: landing + overlap screens (compare.js also snaps the % in JS). */
  .compare-landing, .overlap { animation: none !important; }
  .overlap__spinner { animation: none !important; }
  /* Phase 5: Trends overview + per-question statistic page. */
  .trends, .trend { animation: none !important; }
  .stat-card, .pack-card, .trend-bar__fill { transition: none !important; }
  /* Phase 7b: duel lead form. */
  .duel__lead-hook { animation: none !important; }
}
