/* ==========================================================================
   keinegutefrage.net
   Farbpalette: Catppuccin - Latte (hell) und Mocha (dunkel).
   https://catppuccin.com
   ========================================================================== */

/* ----------------------------------------------- Catppuccin Latte (hell) */
:root {
  --ctp-rosewater: #dc8a78;
  --ctp-flamingo:  #dd7878;
  --ctp-pink:      #ea76cb;
  --ctp-mauve:     #8839ef;
  --ctp-red:       #d20f39;
  --ctp-maroon:    #e64553;
  --ctp-peach:     #fe640b;
  --ctp-yellow:    #df8e1d;
  --ctp-green:     #40a02b;
  --ctp-teal:      #179299;
  --ctp-sky:       #04a5e5;
  --ctp-sapphire:  #209fb5;
  --ctp-blue:      #1e66f5;
  --ctp-lavender:  #7287fd;

  --ctp-text:      #4c4f69;
  --ctp-subtext1:  #5c5f77;
  --ctp-subtext0:  #6c6f85;
  --ctp-overlay2:  #7c7f93;
  --ctp-overlay1:  #8c8fa1;
  --ctp-overlay0:  #9ca0b0;
  --ctp-surface2:  #acb0be;
  --ctp-surface1:  #bcc0cc;
  --ctp-surface0:  #ccd0da;
  --ctp-base:      #eff1f5;
  --ctp-mantle:    #e6e9ef;
  --ctp-crust:     #dce0e8;

  --shadow-card: 0 1px 2px rgb(76 79 105 / 0.06), 0 8px 24px -12px rgb(76 79 105 / 0.18);
  --shadow-lift: 0 2px 4px rgb(76 79 105 / 0.08), 0 16px 32px -16px rgb(76 79 105 / 0.28);
  color-scheme: light;
}

/* ---------------------------------------------- Catppuccin Mocha (dunkel) */
/* Zwei Selektoren, damit beides geht: Systemeinstellung und bewusste Wahl. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ctp-rosewater: #f5e0dc;
    --ctp-flamingo:  #f2cdcd;
    --ctp-pink:      #f5c2e7;
    --ctp-mauve:     #cba6f7;
    --ctp-red:       #f38ba8;
    --ctp-maroon:    #eba0ac;
    --ctp-peach:     #fab387;
    --ctp-yellow:    #f9e2af;
    --ctp-green:     #a6e3a1;
    --ctp-teal:      #94e2d5;
    --ctp-sky:       #89dceb;
    --ctp-sapphire:  #74c7ec;
    --ctp-blue:      #89b4fa;
    --ctp-lavender:  #b4befe;

    --ctp-text:      #cdd6f4;
    --ctp-subtext1:  #bac2de;
    --ctp-subtext0:  #a6adc8;
    --ctp-overlay2:  #9399b2;
    --ctp-overlay1:  #7f849c;
    --ctp-overlay0:  #6c7086;
    --ctp-surface2:  #585b70;
    --ctp-surface1:  #45475a;
    --ctp-surface0:  #313244;
    --ctp-base:      #1e1e2e;
    --ctp-mantle:    #181825;
    --ctp-crust:     #11111b;

    --shadow-card: 0 1px 2px rgb(17 17 27 / 0.5), 0 8px 24px -12px rgb(17 17 27 / 0.7);
    --shadow-lift: 0 2px 4px rgb(17 17 27 / 0.6), 0 16px 32px -16px rgb(17 17 27 / 0.9);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo:  #f2cdcd;
  --ctp-pink:      #f5c2e7;
  --ctp-mauve:     #cba6f7;
  --ctp-red:       #f38ba8;
  --ctp-maroon:    #eba0ac;
  --ctp-peach:     #fab387;
  --ctp-yellow:    #f9e2af;
  --ctp-green:     #a6e3a1;
  --ctp-teal:      #94e2d5;
  --ctp-sky:       #89dceb;
  --ctp-sapphire:  #74c7ec;
  --ctp-blue:      #89b4fa;
  --ctp-lavender:  #b4befe;

  --ctp-text:      #cdd6f4;
  --ctp-subtext1:  #bac2de;
  --ctp-subtext0:  #a6adc8;
  --ctp-overlay2:  #9399b2;
  --ctp-overlay1:  #7f849c;
  --ctp-overlay0:  #6c7086;
  --ctp-surface2:  #585b70;
  --ctp-surface1:  #45475a;
  --ctp-surface0:  #313244;
  --ctp-base:      #1e1e2e;
  --ctp-mantle:    #181825;
  --ctp-crust:     #11111b;

  --shadow-card: 0 1px 2px rgb(17 17 27 / 0.5), 0 8px 24px -12px rgb(17 17 27 / 0.7);
  --shadow-lift: 0 2px 4px rgb(17 17 27 / 0.6), 0 16px 32px -16px rgb(17 17 27 / 0.9);
  color-scheme: dark;
}

/* ---------------------------------------------------- Semantische Tokens */
:root {
  --bg:            var(--ctp-base);
  --bg-sunken:     var(--ctp-mantle);
  --bg-raised:     var(--ctp-surface0);
  --fg:            var(--ctp-text);
  --fg-muted:      var(--ctp-subtext0);
  --fg-faint:      var(--ctp-overlay1);
  --border:        var(--ctp-surface1);
  --border-subtle: var(--ctp-surface0);
  --accent:        var(--ctp-mauve);
  --accent-alt:    var(--ctp-pink);
  --bad:           var(--ctp-peach);
  --good:          var(--ctp-green);
  --danger:        var(--ctp-red);

  --radius:    14px;
  --radius-sm: 9px;

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular,
               "SF Mono", Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------- Grundlage */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Zarter Farbverlauf im Hintergrund, damit die Karten etwas tragen. */
  background-image:
    radial-gradient(70rem 32rem at 14% -8%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(60rem 28rem at 92% 0%, color-mix(in oklab, var(--ctp-sapphire) 10%, transparent), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  line-height: 1.18;
  letter-spacing: -0.021em;
  font-weight: 760;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

main.wrap { flex: 1; padding-block: 2.5rem 4rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 50;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--ctp-base);
  font-weight: 600; text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 0.5rem; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg-sunken) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg); text-decoration: none;
  font-size: 1.1rem; letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), var(--accent-alt));
  color: var(--ctp-base);
  font-weight: 800; font-size: 1.15rem;
  /* Das Fragezeichen steht schief - wie die Fragen hier. */
  transform: rotate(-8deg);
  box-shadow: var(--shadow-card);
}
.brand:hover .brand-mark { transform: rotate(8deg); transition: transform 180ms ease; }

.brand-text { font-weight: 600; }
.brand-text strong { color: var(--accent); font-weight: 800; }
.brand-tld { color: var(--fg-faint); font-weight: 500; }

.search { display: flex; flex: 1 1 14rem; min-width: 0; gap: 0.4rem; }
.search input {
  flex: 1; min-width: 0;
}
.search button {
  flex: none;
  padding-inline: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--fg);
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.search button:hover { background: var(--ctp-surface1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Alle Bedienelemente der Kopfzeile (Suchfeld, Suchen, Frage stellen,
   Theme-Umschalter) teilen sich dieselbe Hoehe. */
.header-inner { --kopf-h: 2.5rem; }
.search input,
.search button,
.header-actions .btn { height: var(--kopf-h); box-sizing: border-box; }
.search button { display: inline-flex; align-items: center; justify-content: center; }
.header-actions .btn-icon { width: var(--kopf-h); }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit; font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.75rem 1.4rem; font-size: 1.0625rem; }

.btn-primary {
  background: var(--accent);
  color: var(--ctp-base);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ctp-text)); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-raised); color: var(--fg); }

.btn-icon {
  width: 2.4rem; height: 2.4rem; padding: 0;
  border-color: var(--border);
  background: var(--bg-raised);
  color: var(--fg);
  font-size: 1.05rem;
}
.btn-icon:hover { background: var(--ctp-surface1); }

/* Sonne im Hellmodus, Mond im Dunkelmodus. */
.theme-switch { margin: 0; }
.icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: inline; }
}
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: inline; }
:root[data-theme="light"] .icon-sun { display: inline; }
:root[data-theme="light"] .icon-moon { display: none; }

/* ------------------------------------------------------------- Formulare */
input[type="text"], input[type="search"], textarea, select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--fg-faint); }
input:hover, textarea:hover, select:hover { border-color: var(--ctp-surface2); }

select {
  appearance: none;
  padding-right: 2rem;
  /* Pfeil als Hintergrundbild, damit er die Textfarbe mitnimmt. */
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.05rem center, right 0.75rem center;
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.card {
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-card);
}

.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.form h3 { margin: 0; }

.field { display: grid; gap: 0.4rem; }
.field > label { font-weight: 650; font-size: 0.9375rem; }

/* Honeypot: fuer Menschen unsichtbar, fuer naive Bots ein Koeder. */
.field-trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.hint { margin: 0; color: var(--fg-muted); font-size: 0.875rem; font-weight: 400; }

.form-actions {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}

.flash {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-weight: 500;
}
.flash-error {
  border-color: color-mix(in oklab, var(--danger) 45%, transparent);
  background: color-mix(in oklab, var(--danger) 13%, var(--bg));
  color: color-mix(in oklab, var(--danger) 75%, var(--fg));
}

/* ------------------------------------------------------------------ Hero */
.hero { margin-bottom: 2.5rem; }
.hero h1 { max-width: 34ch; }
.hero-sub {
  max-width: 54ch;
  color: var(--fg-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

.stats {
  display: flex; gap: 2.25rem; flex-wrap: wrap;
  margin: 2rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.stats dt { color: var(--fg-faint); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.07em; }
.stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.page-head { margin-bottom: 2rem; }

/* --------------------------------------------------------------- Toolbar */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tabs a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 600; font-size: 0.9375rem;
}
.tabs a:hover { background: var(--bg-raised); color: var(--fg); }
.tabs a.is-active {
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: color-mix(in oklab, var(--accent) 80%, var(--fg));
}

.filter { display: flex; align-items: center; gap: 0.5rem; }
.filter label { color: var(--fg-muted); font-size: 0.9375rem; white-space: nowrap; }
.filter select { width: auto; min-width: 11rem; }

.result-note { color: var(--fg-muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------- Fragenliste */
.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }

.question-card {
  display: flex; gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.question-card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.score {
  flex: none;
  display: grid; place-content: center; gap: 0.1rem;
  width: 4rem; padding: 0.5rem 0;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--bad) 14%, transparent);
  text-align: center;
}
.score-value {
  font-family: var(--font-mono);
  font-size: 1.25rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--bad) 72%, var(--fg));
}
.score-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.question-body { min-width: 0; }
.question-body h2 { margin-bottom: 0.3rem; font-size: 1.1875rem; }
.question-body h2 a { color: var(--fg); text-decoration: none; }
.question-body h2 a:hover { color: var(--accent); }

.excerpt {
  margin: 0 0 0.5rem;
  color: var(--fg-muted);
  /* Nur zwei Zeilen Vorschau, der Rest steht auf der Detailseite. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
  margin: 0;
  color: var(--fg-faint);
  font-size: 0.875rem;
}
.meta a { color: var(--fg-muted); }

.tag {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ctp-sapphire) 15%, transparent);
  color: color-mix(in oklab, var(--ctp-sapphire) 80%, var(--fg)) !important;
  text-decoration: none;
  font-weight: 600; font-size: 0.8125rem;
}
.tag:hover { background: color-mix(in oklab, var(--ctp-sapphire) 26%, transparent); }

.badge {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
}
.badge-rating {
  background: color-mix(in oklab, var(--bad) 15%, transparent);
  color: color-mix(in oklab, var(--bad) 78%, var(--fg));
}

/* ------------------------------------------------------------- Leerstand */
.empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--fg-muted);
}
.empty-title { font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.empty .btn { margin-top: 0.75rem; }

.empty-inline {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
}

/* ------------------------------------------------------------ Detailseite */
.breadcrumb {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
  color: var(--fg-faint);
  font-size: 0.875rem;
}
.breadcrumb a { color: var(--fg-muted); }

.question-detail {
  display: flex; gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.question-main { min-width: 0; }
.question-main h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.question-main .meta { margin-bottom: 1rem; }

.vote {
  flex: none;
  display: grid; justify-items: center; align-content: start; gap: 0.15rem;
}
.vote form { margin: 0; }
.vote-btn {
  display: grid; place-items: center;
  width: 2.1rem; height: 1.9rem; padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-faint);
  font-size: 0.9rem; line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.vote-btn:hover {
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
}
/* Die eigene Stimme des Besuchers. */
.vote-btn.is-active {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.vote-value {
  font-family: var(--font-mono);
  font-size: 1.0625rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.vote-sm .vote-btn { width: 1.8rem; height: 1.6rem; font-size: 0.8rem; }
.vote-sm .vote-value { font-size: 0.9375rem; }

.prose { color: var(--fg); }
.prose p { margin-bottom: 0.9rem; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Antworten */
.answers { margin-top: 2.5rem; }
.answers > h2 { margin-bottom: 1rem; }

.answer-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.answer {
  display: flex; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.answer-body { min-width: 0; }
.answer-body .meta { margin-top: 0.6rem; }

/* ------------------------------------------------------------ Fehlerseite */
.error-page { padding: 3rem 0; text-align: center; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 2rem + 9vw, 7rem);
  font-weight: 800; line-height: 1;
  margin: 0 0 0.5rem;
  color: color-mix(in oklab, var(--accent) 35%, var(--bg));
}
.error-page .hero-sub { margin-inline: auto; }
.error-page .hero-actions { justify-content: center; }

/* ----------------------------------------------------------------- Footer */
.site-footer {
  margin-top: auto;
  padding-block: 2rem;
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center;
}
.footer-mark { width: 1.75rem; height: 1.75rem; font-size: 1rem; box-shadow: none; }
.footer-meta { color: var(--fg-faint); font-size: 0.875rem; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 46rem) {
  .header-inner { min-height: 0; padding-block: 0.75rem; gap: 0.6rem; }
  /* Marke und Aktionen teilen sich die erste Zeile, die Suche bekommt die
     zweite. Dafuer muss der Schriftzug etwas schrumpfen. */
  .brand { font-size: 1rem; gap: 0.45rem; margin-right: auto; }
  .brand-mark { width: 1.75rem; height: 1.75rem; font-size: 1rem; }
  .brand-tld { display: none; }
  .header-actions { flex: none; }
  .header-actions .btn-primary { padding-inline: 0.75rem; font-size: 0.9375rem; }
  .header-inner { --kopf-h: 2.3rem; }
  .search { order: 3; flex-basis: 100%; }
  .toolbar { align-items: stretch; }
  .filter { width: 100%; }
  .filter select { flex: 1; min-width: 0; }
  .score { width: 3.25rem; }
  .stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
