/* ==========================================================================
   wannwar.es – Stylesheet
   Dunkel & atmosphärisch × moderner Zeitungsstil. Mobile First.
   Schriften: Newsreader (Serif, Überschriften & Artikel), Instrument Sans (Bedienung)
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060913;
  --bg-2: #0a1020;
  --surface: #0e1528;
  --surface-2: #141d36;
  --surface-3: #1a2544;
  --line: rgba(214, 208, 240, 0.12);
  --line-strong: rgba(214, 208, 240, 0.24);
  --text: #eee9df;
  --text-2: #bdb9c8;
  --muted: #8f93a9;
  --violet: #9b8cff;
  --violet-strong: #6e5ae6;
  --violet-glow: rgba(124, 104, 240, 0.35);
  --gold: #d9b26f;
  --gold-strong: #e8c584;
  --gold-soft: rgba(217, 178, 111, 0.14);
  --danger: #ff8f8f;
  --success: #92d8aa;
  --cat: var(--violet);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --wrap: 1120px;
  --text-col: 42rem;
  --gutter: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 12% -10%, rgba(110, 90, 230, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(217, 178, 111, 0.07), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(40, 60, 140, 0.18), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  /* feines Filmkorn für Atmosphäre */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #c3baff; }
strong { font-weight: 650; }
small { font-size: 0.85em; }
::selection { background: rgba(155, 140, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main { display: block; padding-bottom: 4rem; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--text-col) + 2 * var(--gutter)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #111; padding: 0.6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.placeholder { color: var(--gold); font-style: italic; }

/* ---------- Kopfbereich ---------- */
.masthead { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 9, 19, 0.92), rgba(6, 9, 19, 0.72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; line-height: 1; white-space: nowrap; }
.logo__word { color: #fff; }
.logo__tld { color: var(--gold); }
.logo:hover .logo__word { color: #fff; }
.logo--sm { font-size: 1.35rem; }
.nav { display: none; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 0.975rem; font-weight: 500; padding: 0.5rem 0.15rem; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 0.45rem; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.nav__account { color: var(--text) !important; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(8, 12, 26, 0.98); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; }
.nav.is-open a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav.is-open a[aria-current="page"] { color: var(--gold); }
.dateline { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--muted); }
.dateline__claim { display: none; }
@media (min-width: 820px) {
  .nav { display: flex; align-items: center; gap: 1.6rem; }
  .nav-toggle { display: none; }
  .dateline__claim { display: inline; }
}

/* ---------- Hinweise ---------- */
.flashes { margin-top: 1rem; display: grid; gap: 0.5rem; }
.flash, .notice { margin: 0; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.95rem; }
.flash--success, .notice--success { border-color: rgba(146, 216, 170, 0.35); background: rgba(146, 216, 170, 0.08); }
.flash--error, .notice--error { border-color: rgba(255, 143, 143, 0.4); background: rgba(255, 143, 143, 0.08); }
.flash--info, .notice--info { border-color: rgba(155, 140, 255, 0.3); background: rgba(155, 140, 255, 0.07); }
.notice--warning { border-color: rgba(217, 178, 111, 0.45); background: var(--gold-soft); }
.notice--verify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; border: 1px solid rgba(217, 178, 111, 0.4); background: var(--gold-soft); border-radius: var(--r-md); padding: 0.75rem 1rem; }
.notice--verify p { margin: 0; }
.notice--spoiler { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1rem 0; }
.notice--spoiler p { margin: 0; }
.notice + .notice, .result .notice { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.78rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font: 600 0.975rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; color: var(--text); background: transparent; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, #8471f5, #6250dc); color: #fff; box-shadow: 0 10px 28px -12px var(--violet-glow), 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn--primary:hover { background: linear-gradient(180deg, #9381ff, #6c5ae8); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet); color: #fff; }
.btn--danger { background: #a43b46; color: #fff; }
.btn--danger:hover { background: #bb4552; color: #fff; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.55; cursor: not-allowed; }
.link-quiet { color: var(--muted); font-size: 0.875rem; }
.link-quiet:hover { color: var(--text); }
.link-arrowless { display: inline-block; margin-top: 0.75rem; font-weight: 600; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 7vw, 4.5rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 9vw, 5.25rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0; color: #fff; text-wrap: balance; }
.hero__lead { max-width: 36rem; margin: 1rem 0 0; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-2); line-height: 1.55; }

/* ---------- Rätselkarte ---------- */
.today { display: grid; gap: 1.5rem; }
.today--solo { padding-top: clamp(1.5rem, 5vw, 3rem); }
.puzzle, .result, .empty {
  position: relative;
  max-width: 760px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 100% 0%, color-mix(in srgb, var(--cat) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.puzzle::before, .result::before {
  /* feine Linie in Kategoriefarbe – wie die Rubrikmarke einer Zeitung */
  content: "";
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.25rem);
  top: 0;
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cat);
}
.puzzle__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; margin-bottom: 1rem; }
.kicker { color: var(--cat); font-weight: 650; font-size: 0.9rem; letter-spacing: 0.01em; }
.puzzle__meta { color: var(--muted); font-size: 0.875rem; }
.puzzle__difficulty { margin-left: auto; }
.puzzle__figure { margin: 0 0 1.25rem; }
.puzzle__figure img, .story__figure img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); filter: saturate(0.92) contrast(1.02); }
.credit { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.78rem; font-family: var(--sans); }
.credit a { color: var(--muted); }
.puzzle__question { font-family: var(--serif); font-weight: 450; font-size: clamp(1.55rem, 4.8vw, 2.3rem); line-height: 1.22; letter-spacing: -0.01em; margin: 0; color: #fff; text-wrap: pretty; }
.hints { margin-top: 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hints summary { cursor: pointer; list-style: none; padding: 0.8rem 0; color: var(--text-2); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; }
.hints summary::-webkit-details-marker { display: none; }
.hints summary::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform 0.2s ease; }
.hints[open] summary::before { transform: rotate(45deg); }
.hints__body { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; color: var(--text-2); padding-bottom: 0.6rem; }
.hints__body p { margin: 0 0 0.8rem; }
.puzzle__foot { margin-top: 1.25rem; display: flex; justify-content: flex-end; }

/* ---------- Antwortformular ---------- */
.answer { margin-top: 1.5rem; }
.answer__prompt { margin: 0 0 0.9rem; color: var(--text-2); font-size: 0.95rem; }
.answer__groups { display: grid; gap: 1rem; }
.answer__groups--range { grid-template-columns: 1fr; }
.answer__dash { display: none; }
@media (min-width: 720px) {
  .answer__groups--range { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .answer__dash { display: block; font-family: var(--serif); font-size: 2rem; color: var(--muted); padding-bottom: 0.6rem; }
}
.answer__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.answer__legend { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; margin-bottom: 0.45rem; padding: 0; }
.answer__fields { display: grid; gap: 0.6rem; }
.answer__fields--day { grid-template-columns: 4.6rem minmax(0, 1fr) 6.4rem; }
.answer__fields--month { grid-template-columns: minmax(0, 1fr) 6.4rem; }
.answer__fields--year { grid-template-columns: minmax(0, 8rem) minmax(0, 8rem); }
.answer .field__input { font-size: 1.35rem; font-variant-numeric: tabular-nums lining-nums; padding: 0.7rem 0.8rem; text-align: left; }
.answer select.field__input { font-size: 1.05rem; padding-right: 2rem; }
.answer__errors:empty { display: none; }
.answer__errors { margin-top: 0.9rem; color: var(--danger); font-size: 0.95rem; }
.answer__errors p { margin: 0.15rem 0; }
.answer__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.answer__hint { margin: 0; color: var(--muted); font-size: 0.85rem; flex: 1 1 14rem; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1rem; }
.form--inline { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 560px) { .form--inline { grid-template-columns: 1fr auto; } }
.field { display: grid; gap: 0.35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field--grow { flex: 1 1 auto; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); padding: 0; }
.field__input { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: rgba(6, 9, 19, 0.65); color: var(--text); font: 400 1rem/1.4 var(--sans); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field__input::placeholder { color: #5e6380; }
.field__input:hover { border-color: rgba(214, 208, 240, 0.4); }
.field__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(155, 140, 255, 0.25); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
textarea.field__input { min-height: 8rem; resize: vertical; line-height: 1.55; }
select.field__input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
select.field__input option { background: var(--surface); color: var(--text); }
input[type="file"].field__input { padding: 0.55rem; min-height: auto; }
.field__help { font-size: 0.82rem; color: var(--muted); }
.field__error { font-size: 0.87rem; color: var(--danger); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-2); }
.check input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--violet); flex: none; }
.choice-grid { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: rgba(6, 9, 19, 0.4); font-size: 0.95rem; }
.choice:has(input:checked) { border-color: var(--violet); background: rgba(155, 140, 255, 0.08); }
.choice input { accent-color: var(--violet); }

/* ---------- Ergebnis ---------- */
.result__top { display: grid; gap: 1rem 2rem; align-items: end; }
@media (min-width: 640px) { .result__top { grid-template-columns: auto 1fr; } }
.score { margin: 0; font-family: var(--serif); line-height: 0.9; display: flex; align-items: baseline; gap: 0.15rem; }
.score__value { font-size: clamp(4.5rem, 16vw, 6.5rem); font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; }
.score__max { font-size: 1.6rem; color: var(--muted); }
.score--exact .score__value { color: var(--gold-strong); text-shadow: 0 0 40px rgba(217, 178, 111, 0.35); }
.score__caption { margin: 0.4rem 0 0; color: var(--text-2); font-size: 0.95rem; }
.result__standing p { margin: 0.2rem 0; color: var(--text-2); }
.result__standing strong { color: #fff; }
.standing__rank { font-size: 1.15rem; }
.standing__streak { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem !important; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold) !important; font-weight: 600; font-size: 0.92rem; }
.flame { width: 0.7rem; height: 0.9rem; background: var(--gold); clip-path: path("M5.6 0C6.4 3 10 4.6 10 8.6 10 11.6 7.8 14 5 14S0 11.6 0 8.6C0 6.6 1 5.4 2.2 4.4 2.4 6 3 7 4 7.4 3.8 4.2 4.4 2 5.6 0Z"); }
.compare { margin: 1.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.compare dt { color: var(--muted); font-size: 0.875rem; }
.compare dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums lining-nums; color: #fff; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.compare__row--guess dd { color: var(--violet); }
.compare__row--correct dd { color: var(--gold); }
.deviation { font-size: 1.05rem; color: var(--text-2); }
.deviation--exact { color: var(--success); }
.result__method { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.result__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.result--compact .compare dd { font-size: 1.15rem; }
.result-page { padding-top: clamp(1.5rem, 5vw, 3rem); display: grid; gap: 1.5rem; }
.result-page > * { max-width: 820px; }
.result-page__question { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--text-2); margin: 0; }
.result-page__question .kicker { font-family: var(--sans); display: block; margin-bottom: 0.3rem; }

/* Zeitlineal */
.ruler { margin: 1.5rem 0 0; }
.ruler svg { width: 100%; height: auto; overflow: visible; }
.ruler__svg--wide { display: none; }
@media (min-width: 640px) { .ruler__svg--wide { display: block; } .ruler__svg--narrow { display: none; } }
.ruler__minor line { stroke: rgba(214, 208, 240, 0.28); stroke-width: 2; }
.ruler__base { stroke: rgba(214, 208, 240, 0.45); stroke-width: 2; }
.ruler__major { stroke: rgba(214, 208, 240, 0.6); stroke-width: 2; }
.ruler__label { fill: var(--muted); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ruler__pin--correct { stroke: var(--gold); stroke-width: 3; }
.ruler__head--correct { fill: var(--gold); }
.ruler__band--correct { fill: rgba(217, 178, 111, 0.35); }
.ruler__band--guess { fill: rgba(155, 140, 255, 0.45); }
.ruler__dot--guess { fill: var(--violet); stroke: var(--bg); stroke-width: 4; }
.ruler__gap { stroke: rgba(214, 208, 240, 0.5); stroke-width: 2; stroke-dasharray: 6 7; }
.ruler__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--violet); }
.legend--correct::before { background: var(--gold); border-radius: 2px; transform: rotate(45deg); width: 0.6rem; height: 0.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .ruler.is-revealing .ruler__pin, .ruler.is-revealing .ruler__head, .ruler.is-revealing .ruler__band--correct { animation: ruler-drop 0.7s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .ruler.is-revealing .ruler__dot, .ruler.is-revealing .ruler__band--guess { animation: ruler-fade 0.5s 0.1s ease-out both; }
  .ruler.is-revealing .ruler__gap { animation: ruler-fade 0.5s 0.9s ease-out both; }
}
@keyframes ruler-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes ruler-fade { from { opacity: 0; } to { opacity: 1; } }

/* Countdown */
.countdown { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.countdown__text { margin: 0 0 0.55rem; color: var(--text-2); font-size: 0.95rem; }
.countdown__time { font-family: var(--serif); font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums lining-nums; margin-left: 0.25rem; }
.countdown__day { width: 100%; height: 24px; }
.countdown__tick { stroke: rgba(214, 208, 240, 0.28); stroke-width: 2; vector-effect: non-scaling-stroke; }
.countdown__elapsed { fill: var(--gold); opacity: 0.8; }

/* Punkteverteilung */
.distribution { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(14, 21, 40, 0.6); }
.distribution__title { font-weight: 600; margin-bottom: 0.75rem; }
.distribution .chart { width: 100%; }
/* Diagramme: Farben gegen die dunkle Fläche validiert (#8573EE, Hervorhebung #BE8A2E) */
.chart--narrow { display: none; }
@media (max-width: 600px) { .chart--wide { display: none; } .chart--narrow { display: block; width: 100%; } }
.chart__grid { stroke: rgba(214, 208, 240, 0.08); stroke-width: 1; }
.chart__base { stroke: rgba(214, 208, 240, 0.35); stroke-width: 1; }
.chart__axis { fill: var(--muted); font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__bar { fill: #8573ee; }
.chart__bar.is-highlight { fill: #be8a2e; }
.chart__hit { fill: transparent; }
.chart__item:hover .chart__bar, .chart__item:focus .chart__bar { fill: #9a8bff; }
.chart__item:hover .chart__bar.is-highlight, .chart__item:focus .chart__bar.is-highlight { fill: #d9a447; }
.chart__item:focus { outline: none; }
.chart__item:focus .chart__hit { stroke: var(--gold); stroke-width: 1; }
.chart-table { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.chart-table summary { cursor: pointer; }
.chart-table table { margin-top: 0.5rem; border-collapse: collapse; }
.chart-table td, .chart-table th { padding: 0.25rem 0.75rem 0.25rem 0; text-align: left; }
.chart-table .num { text-align: right; }

/* ---------- Artikel (Magazin) ---------- */
.story { border-top: 1px solid var(--line-strong); padding-top: 2rem; margin-top: 0.5rem; }
.story__head { max-width: var(--text-col); margin-bottom: 1.5rem; }
.story__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0.35rem 0 0.6rem; color: #fff; text-wrap: balance; }
.story__date { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold); }
.story__figure { margin: 1.75rem 0; max-width: 820px; }
.story__figure figcaption { margin-top: 0.5rem; display: grid; gap: 0.2rem; }
.story__caption { font-family: var(--serif); font-style: italic; color: var(--text-2); font-size: 0.98rem; }
.prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.72; color: var(--text); max-width: var(--text-col); }
.prose p { margin: 0 0 1.15rem; hanging-punctuation: first; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.25; margin: 2.2rem 0 0.75rem; color: #fff; }
.prose h3 { font-family: var(--sans); font-weight: 650; font-size: 1.05rem; margin: 1.8rem 0 0.5rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose blockquote { margin: 1.75rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 3px solid var(--gold); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose blockquote footer { margin-top: 0.5rem; font-style: normal; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.story__body .lead::first-letter { float: left; font-size: 4.1em; line-height: 0.82; margin: 0.08em 0.1em 0 0; color: var(--gold); font-weight: 500; }
.story__body .lead { font-size: 1.24rem; }
.dating { max-width: var(--text-col); margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--gold-soft); border: 1px solid rgba(217, 178, 111, 0.3); font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
.dating__title { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 0.35rem; color: var(--gold); }
.dating p { margin: 0; }
.sources { max-width: var(--text-col); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sources__title { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--text-2); }
.sources__list { margin: 0; padding-left: 1.3rem; font-size: 0.92rem; color: var(--text-2); display: grid; gap: 0.45rem; }
.sources__pub, .sources__note { display: block; color: var(--muted); font-size: 0.85rem; }
.story__foot { max-width: var(--text-col); margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.story__issue { margin: 0; color: var(--muted); font-size: 0.85rem; font-family: var(--serif); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; width: 100%; }
.tags a { display: inline-block; padding: 0.25rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 0.82rem; }
.tags a:hover { border-color: var(--violet); color: #fff; }
.after-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Startseite ---------- */
.home-layout { display: grid; gap: 1.25rem; align-items: start; }
.home-aside { display: grid; gap: 1.25rem; }
@media (min-width: 1040px) {
  .home-layout { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 1.75rem; }
  .home-layout .puzzle, .home-layout .result, .home-layout .empty { max-width: none; }
  .home-aside { position: sticky; top: 112px; }
}
.home-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 1fr 1fr; } }
.home-grid > .panel, .home-aside > .panel { margin: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.15rem, 3vw, 1.75rem); background: rgba(14, 21, 40, 0.55); }
.panel__title { font-family: var(--serif); font-weight: 550; font-size: 1.45rem; margin: 0 0 1rem; color: #fff; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.9rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--gold); }
.steps strong { color: #fff; }
.mini-board { list-style: none; margin: 0; padding: 0; }
.mini-board li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.mini-board__rank { width: 1.5rem; font-family: var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.mini-board__name { flex: 1; color: var(--text); text-decoration: none; }
.mini-board__pts { font-variant-numeric: tabular-nums; color: var(--text-2); }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.stat-list div { display: grid; }
.stat-list dt { order: 2; color: var(--muted); font-size: 0.85rem; }
.stat-list dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.55rem; color: var(--text-2); }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.empty { text-align: left; }
.empty__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 0.5rem; color: #fff; }
.verified { display: inline-block; width: 1rem; height: 1rem; margin-left: 0.35rem; vertical-align: -0.12em; border-radius: 50%; background: var(--violet); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 0l2 2.2 2.9-.5.5 2.9L16 6l-1.3 2 1.3 2-2.6 1.4-.5 2.9-2.9-.5L8 16l-2-2.2-2.9.5-.5-2.9L0 10l1.3-2L0 6l2.6-1.4.5-2.9 2.9.5z M6.9 11.2l5-5-1.1-1.1-3.9 3.9-1.8-1.8L4 8.3z' fill-rule='evenodd'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 0l2 2.2 2.9-.5.5 2.9L16 6l-1.3 2 1.3 2-2.6 1.4-.5 2.9-2.9-.5L8 16l-2-2.2-2.9.5-.5-2.9L0 10l1.3-2L0 6l2.6-1.4.5-2.9 2.9.5z M6.9 11.2l5-5-1.1-1.1-3.9 3.9-1.8-1.8L4 8.3z' fill-rule='evenodd'/></svg>") center / contain no-repeat; }
.verified--lg { width: 1.4rem; height: 1.4rem; }

/* ---------- Seitenköpfe, Archiv ---------- */
.page-head { padding: clamp(1.75rem, 5vw, 3rem) 0 1.25rem; }
.page-head__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: #fff; }
.page-head__lead { margin: 0.75rem 0 0; color: var(--text-2); font-size: 1.08rem; max-width: 40rem; }
.filters { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(14, 21, 40, 0.55); }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }
.result-count { color: var(--muted); font-size: 0.9rem; margin: 1.25rem 0 0.5rem; }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.archive-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.35rem; }
@media (min-width: 760px) { .archive-item { grid-template-columns: 1fr auto; column-gap: 2rem; } .archive-item__actions { grid-row: 1 / span 3; grid-column: 2; align-self: center; } }
.archive-item__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--muted); font-size: 0.85rem; }
.archive-item__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.25; }
.archive-item__title a { color: #fff; text-decoration: none; }
.archive-item__title a:hover { color: var(--gold); }
.archive-item__teaser { margin: 0; color: var(--text-2); }
.badge { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.badge--played { background: var(--gold-soft); color: var(--gold); }
.breadcrumb { padding-top: 1.5rem; font-size: 0.875rem; color: var(--muted); display: flex; gap: 0.5rem; }
.breadcrumb a { color: var(--text-2); }
.archive-question { margin: 1.25rem 0 0; max-width: var(--text-col); }
.archive-question__label { margin: 0; color: var(--cat); font-weight: 650; font-size: 0.9rem; }
.archive-question__text { margin: 0.35rem 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--text-2); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.75rem; align-items: center; }
.pagination a, .pagination span { min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--violet); color: #fff; }
.pagination__current { background: var(--surface-3); color: #fff !important; border-color: var(--line-strong) !important; }
.pagination__gap { border: 0 !important; }

/* ---------- Rangliste ---------- */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-top: 0.5rem; scrollbar-width: none; }
.tabs__item { padding: 0.7rem 0.9rem; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs__item[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.tabs--sub { border-bottom: 0; margin-top: 0.5rem; gap: 0.4rem; }
.tabs--sub .tabs__item { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.875rem; font-weight: 500; }
.tabs--sub .tabs__item[aria-current="page"] { border-color: var(--violet); background: rgba(155, 140, 255, 0.1); }
.board-range { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0; }
.board-range__label { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text); text-align: center; flex: 1; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(14, 21, 40, 0.55); }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.board th, .board td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
.board th { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.board th.is-sorted { color: var(--gold); }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; }
.board__rank { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); width: 3.5rem; }
.board__name a { color: var(--text); text-decoration: none; font-weight: 600; }
.board__name a:hover { color: var(--violet); }
.board tr.is-me td { background: rgba(155, 140, 255, 0.09); }
.board--compact td, .board--compact th { padding: 0.55rem 0.75rem; }
@media (max-width: 520px) { .hide-sm { display: none; } .board th, .board td { padding: 0.65rem 0.55rem; } }
.rules { margin-top: 2rem; color: var(--text-2); max-width: var(--text-col); }
.rules summary { cursor: pointer; font-weight: 600; color: var(--text); }
.rules li { margin: 0.4rem 0; }

/* ---------- Anleitung ---------- */
.examples { display: grid; gap: 1rem; margin: 0 0 2rem; }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.example-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(14, 21, 40, 0.55); font-variant-numeric: tabular-nums; }
.example-table caption { text-align: left; font-weight: 600; font-size: 0.9rem; padding: 0 0 0.5rem; color: var(--text-2); }
.example-table th, .example-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.example-table .num { text-align: right; color: var(--gold); }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 1.25rem; align-items: center; padding: 2rem 0 1.5rem; }
.profile-head__name { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 2.8rem); margin: 0; color: #fff; }
.profile-head__meta { margin: 0.25rem 0; color: var(--muted); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.avatar--xs { width: 24px; height: 24px; }
.avatar--lg { width: 96px; height: 96px; flex: none; }
.avatar--initial { display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.5rem; color: var(--gold); border: 1px solid var(--line-strong); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(14, 21, 40, 0.55); display: grid; }
.stat__value { font-family: var(--serif); font-size: 2.1rem; color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.stat__label { color: var(--muted); font-size: 0.85rem; }
.wrap > .panel + .panel, .wrap > .stat-grid + .panel, .wrap > .panel + .notice, .wrap > .notice + .panel { margin-top: 1.25rem; }
.streak__numbers { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.streak__numbers p { margin: 0; color: var(--muted); display: grid; }
.streak__value { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); }
.streak__value--muted { color: var(--text); }
.week { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; max-width: 26rem; }
.week__day { display: grid; justify-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.8rem; }
.week__dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line-strong); }
.week__day.is-played .week__dot { background: var(--gold); border-color: var(--gold); }
.week__day.is-today .week__label { color: #fff; font-weight: 600; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-milestone { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem 0.35rem 0.4rem; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.82rem; }
.badge-milestone__num { min-width: 1.9rem; height: 1.9rem; padding: 0 0.3rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 0.95rem; background: var(--surface-3); color: var(--text-2); }
.badge-milestone.is-reached { border-style: solid; border-color: rgba(217, 178, 111, 0.45); color: var(--text); }
.badge-milestone.is-reached .badge-milestone__num { background: var(--gold); color: #1a1406; }
.month__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.month__head .panel__title { margin: 0; font-size: 1.25rem; text-align: center; flex: 1; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.month__wd { text-align: center; color: var(--muted); font-size: 0.75rem; padding-bottom: 0.25rem; }
.month__cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); display: grid; align-content: center; justify-items: center; font-size: 0.8rem; color: var(--muted); }
.month__cell--empty { border: 0; }
.month__cell.is-played { background: var(--gold-soft); border-color: rgba(217, 178, 111, 0.45); color: var(--text); }
.month__cell.is-future { opacity: 0.35; }
.month__pts { font-family: var(--serif); color: var(--gold); font-size: 0.85rem; line-height: 1; }

/* ---------- Konto & Anmeldung ---------- */
.auth { display: grid; place-items: start center; padding-top: clamp(1.5rem, 6vw, 4rem); }
.auth__card { width: 100%; max-width: 30rem; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.25rem); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.auth__title { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 0.5rem; color: #fff; line-height: 1.15; }
.auth__lead { color: var(--text-2); margin: 0 0 1.25rem; }
.auth__alt { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.settings-block { margin-top: 1.25rem; }
.kv { margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.kv div { display: grid; grid-template-columns: 1fr; gap: 0.1rem; }
@media (min-width: 560px) { .kv div { grid-template-columns: 12rem 1fr; } }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.danger-link a { color: var(--danger); }

/* ---------- Rechtliches & Fehlerseiten ---------- */
.legal { font-size: 1.05rem; }
.legal h2 { font-size: 1.3rem; }
.error-page { padding-top: 3rem; }
.error-page__code { margin: 0; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--gold); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Fußbereich ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.footer__inner { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer__brand p { margin: 0.5rem 0 0; font-family: var(--serif); font-style: italic; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer__nav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text); padding: 0.75rem 1.1rem; border-radius: 999px; box-shadow: 0 20px 40px -20px #000; z-index: 50; font-size: 0.95rem; max-width: calc(100% - 2rem); }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero__lead { animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .today > .puzzle, .today > .result { animation: rise 0.8s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .masthead, .footer, .answer, .result__actions, .nav-toggle { display: none !important; }
  .prose { color: #000; }
}
