/* ==========================================================================
   JF-Quiz – Design
   ========================================================================== */
:root {
  --red: #d0102f;
  --red-600: #b30d28;
  --red-700: #8f0a20;
  --red-soft: #fdecef;
  --red-ring: rgba(208, 16, 47, .18);
  --bg: #f6f4f2;
  --surface: #ffffff;
  --surface-2: #f9f7f5;
  --surface-3: #f1eeea;
  --text: #17161a;
  --muted: #69656f;
  --border: #e7e2dc;
  --ok: #17864a;
  --ok-soft: #e2f5ea;
  --bad: #c62828;
  --bad-soft: #fdeaea;
  --warn: #a86400;
  --warn-soft: #fff4dc;
  --a0: #e21b3c;
  --a1: #1368ce;
  --a2: #c98a00;
  --a3: #26890c;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 10, 10, .06);
  --shadow: 0 1px 2px rgba(20, 10, 10, .05), 0 8px 24px rgba(20, 10, 10, .06);
  --shadow-lg: 0 20px 50px rgba(20, 10, 10, .18);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --header-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121115;
    --surface: #1c1b20;
    --surface-2: #232228;
    --surface-3: #2b2a31;
    --text: #f2f0f5;
    --muted: #a7a2ae;
    --border: #322f38;
    --red-soft: #3a161e;
    --ok-soft: #12321f;
    --bad-soft: #3a1818;
    --warn-soft: #3a2a10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; }
a { color: var(--red); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .btn, .answer, .tab { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red-ring); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; min-height: var(--header-h);
  padding: .5rem max(1rem, env(safe-area-inset-left)) .5rem max(1rem, env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 850; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #ef2a49, var(--red-700)); color: #fff; box-shadow: 0 4px 12px rgba(208, 16, 47, .35); }
.brand .logo svg { width: 22px; height: 22px; }
.topnav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topnav a, .topnav button {
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 650;
  background: transparent; border: 0; border-radius: 999px; padding: .45rem .85rem; cursor: pointer; white-space: nowrap;
}
.topnav a:hover, .topnav button:hover { background: var(--surface-3); }
.topnav .cta { background: var(--red); color: #fff; }
.topnav .cta:hover { background: var(--red-600); }
.topnav .who { font-size: .85rem; color: var(--muted); padding: 0 .4rem; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .topnav .who, .topnav .hide-sm { display: none; }
  .brand span { font-size: 1.05rem; }
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 1.75rem max(1rem, env(safe-area-inset-left)) 4rem max(1rem, env(safe-area-inset-right)); }
.container.narrow { max-width: 540px; }
.container.mid { max-width: 860px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.25rem 1rem calc(1.25rem + var(--safe-b)); }
.site-footer .inner { max-width: 1160px; margin: 0 auto; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .875rem; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 2.5vw, 1.5rem); }
.card + .card { margin-top: 1rem; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid > .card + .card { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 650; font-size: .95rem; line-height: 1.2;
  padding: .65rem 1.1rem; min-height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none; transition: transform .06s, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--border) 60%, var(--muted)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(208, 16, 47, .25); }
.btn-primary:hover { background: var(--red-600); border-color: var(--red-600); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn-danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: .35rem .7rem; min-height: 34px; font-size: .85rem; }
.btn-lg { padding: .85rem 1.4rem; min-height: 52px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-xl { padding: 1rem 2.2rem; min-height: 64px; font-size: 1.3rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-round { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 1.5rem; flex: none; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .label { font-weight: 650; font-size: .9rem; }
.input, select.input, textarea.input {
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .65rem .8rem; width: 100%; min-height: 46px;
  font-size: max(16px, 1rem); /* verhindert Auto-Zoom auf iOS */
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, textarea.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-ring); }
textarea.input { resize: vertical; min-height: 3.2rem; }
.input-xl { font-size: 1.35rem; padding: .85rem 1rem; text-align: center; font-weight: 650; }
.check { display: flex; align-items: center; gap: .6rem; margin: .45rem 0; cursor: pointer; min-height: 32px; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); flex: none; }
.form-error { color: var(--bad); font-weight: 600; min-height: 1.3em; margin: .2rem 0 .6rem; font-size: .93rem; }
.hint { color: var(--muted); font-size: .88rem; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .45rem .8rem; border-radius: 9px; font-weight: 650; font-size: .88rem; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font-weight: 650; background: none; border: 0; color: var(--muted); padding: .8rem 1rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  padding: .2rem .6rem; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.badge.jf1 { background: #fff1d6; color: #8a5300; }
.badge.jf2 { background: #ffe5d8; color: #9b3a00; }
.badge.ls { background: #e5ebff; color: #213d99; }
.badge.allgemein { background: #e2f4ea; color: #1e6b41; }
.badge.eigenes { background: var(--red-soft); color: var(--red); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.live { background: var(--red); color: #fff; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
@media (prefers-color-scheme: dark) {
  .badge.jf1 { background: #3a2a0d; color: #f3c46b; }
  .badge.jf2 { background: #3b2114; color: #f5a57a; }
  .badge.ls { background: #1b2447; color: #a9bbff; }
  .badge.allgemein { background: #11301f; color: #8ad8ab; }
}

/* ---------- Startseite ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #ff4a64 0%, transparent 60%), linear-gradient(140deg, #d0102f 0%, #8f0a20 100%);
  color: #fff; padding: clamp(2rem, 6vw, 4rem) 1rem clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.2rem); opacity: .92; max-width: 38ch; }
.hero .pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero .pill { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); padding: .35rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.join-card { color: var(--text); border: 0; box-shadow: var(--shadow-lg); }
.code-input { font-size: clamp(1.8rem, 6vw, 2.3rem); font-weight: 800; letter-spacing: .22em; text-align: center; padding: .6rem; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-full { flex: 1; display: flex; align-items: center; }
.hero-full .hero-inner { width: 100%; }
.hero-full h1 { margin: 0; }

.practice-card { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.practice-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 10, 10, .12); border-color: color-mix(in srgb, var(--red) 25%, var(--border)); }
.practice-card .icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--red-soft); }
.practice-card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.practice-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); gap: .5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.feature { display: flex; gap: .75rem; align-items: flex-start; }
.feature .fi { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; font-size: 1.2rem; }
.feature strong { display: block; }
.feature span { color: var(--muted); font-size: .9rem; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 2.25rem 1rem; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }

/* ---------- Medien ---------- */
.q-media { margin: 0 0 1rem; border-radius: var(--radius-md); overflow: hidden; background: #0d0c10; display: flex; justify-content: center; align-items: center; }
.q-media img { display: block; width: 100%; max-height: min(42vh, 420px); object-fit: contain; background: var(--surface-2); }
.q-media video { display: block; width: 100%; max-height: min(48vh, 480px); background: #000; }
.q-media.compact img { max-height: 28vh; }
.q-media.compact video { max-height: 30vh; }
.q-media.is-audio { flex-direction: column; gap: .75rem; padding: 1.25rem; background: linear-gradient(135deg, #2b2440, #1a1625); color: #fff; }
.q-media.is-audio audio { width: 100%; max-width: 480px; }
.audio-badge { font-weight: 750; font-size: 1.1rem; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-consent {
  width: 100%; aspect-ratio: 16 / 9; border: 0; cursor: pointer; color: #fff; padding: 1rem;
  background: radial-gradient(circle at 50% 40%, #3a3346, #15131a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center;
}
.yt-consent .yt-play { width: 72px; height: 50px; border-radius: 14px; background: #ff0033; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .4rem; }
.yt-consent small { opacity: .75; max-width: 46ch; }

/* ---------- Antwort-Kacheln ---------- */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.answer {
  position: relative; display: flex; align-items: center; gap: .75rem; min-height: 4.6rem;
  border: 0; border-radius: var(--radius-md); padding: .9rem 1rem; color: #fff; text-align: left;
  font-weight: 700; font-size: 1.06rem; line-height: 1.3; cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), var(--shadow-sm);
  transition: transform .08s, filter .15s, opacity .2s, box-shadow .15s;
}
.answer:hover:not(:disabled) { filter: brightness(1.07); }
.answer:active:not(:disabled) { transform: scale(.98); }
.answer:disabled { cursor: default; }
.answer .shape { font-size: 1.35rem; width: 1.8rem; text-align: center; flex: none; opacity: .95; }
.answer .txt { flex: 1; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
.answer .cnt { font-size: 1.3rem; font-weight: 850; margin-left: auto; }
.answer .opt-img { width: 100%; max-height: 140px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .92); }
.answers.with-images .answer { flex-direction: column; align-items: stretch; text-align: center; }
.answers.with-images .answer .shape { position: absolute; top: .45rem; left: .45rem; width: auto; font-size: 1rem; }
.answers.with-images .answer .txt:empty { display: none; }
.a0 { background: var(--a0); }
.a1 { background: var(--a1); }
.a2 { background: var(--a2); }
.a3 { background: var(--a3); }
.tf-true { background: var(--a1); }
.tf-false { background: var(--a0); }
.answers.tf .answer { min-height: 6rem; justify-content: center; font-size: 1.25rem; }
.answer.dim { opacity: .3; }
.answer.selected { box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--text); transform: scale(.985); }
.answer.right { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--ok); opacity: 1; }
.answer.wrong { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--bad); }
.answer.picked { box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--text); }
.answer .mark { position: absolute; right: .6rem; top: .45rem; font-size: 1.25rem; background: rgba(0, 0, 0, .25); border-radius: 50%; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; }
.answer-hint { color: var(--muted); font-weight: 650; font-size: .92rem; margin: 0 0 .6rem; }
@media (max-width: 560px) {
  .answers:not(.with-images):not(.tf) { grid-template-columns: 1fr; }
  .answer { min-height: 3.9rem; font-size: 1.02rem; padding: .8rem .9rem; }
}

.slider-answer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.slider-val { display: block; text-align: center; font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 850; font-variant-numeric: tabular-nums; color: var(--red); margin-bottom: .5rem; }
.slider-row { display: flex; align-items: center; gap: .75rem; }
.slider-row input[type=range] { flex: 1; accent-color: var(--red); height: 44px; min-width: 0; }
.slider-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; padding: 0 64px; }

.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.order-item { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: .55rem .6rem .55rem .75rem; box-shadow: var(--shadow-sm); }
.order-num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.order-txt { flex: 1; font-weight: 650; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.order-btns { display: flex; gap: .3rem; flex: none; }
.order-btns .btn { width: 42px; min-height: 42px; padding: 0; }

.text-answer .input { min-height: 60px; }

.sol-box { display: grid; gap: .5rem; margin-top: 1rem; }
.sol-row { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--muted); border-radius: var(--radius-sm); padding: .65rem .9rem; display: flex; flex-direction: column; text-align: left; }
.sol-row.ok { border-left-color: var(--ok); }
.sol-row.bad { border-left-color: var(--bad); }

/* ---------- Spieler-Ansicht ---------- */
body.play { background: var(--bg); }
.play-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: calc(.55rem + env(safe-area-inset-top, 0px)) 1rem .55rem; background: var(--red); color: #fff; font-weight: 750;
}
.play-head .nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-head .score { background: rgba(255, 255, 255, .2); padding: .2rem .75rem; border-radius: 999px; font-variant-numeric: tabular-nums; flex: none; }
.screen { width: 100%; max-width: 680px; margin: 0 auto; padding: 1.25rem 1rem calc(2.5rem + var(--safe-b)); }
.big-emoji { font-size: 4rem; line-height: 1; margin: .75rem 0 1rem; }
.q-meta > :last-child { white-space: nowrap; }
.q-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; color: var(--muted); font-weight: 650; font-size: .92rem; gap: .5rem; }
.q-text-mobile { font-size: clamp(1.2rem, 4.2vw, 1.5rem); font-weight: 780; margin-bottom: 1rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.timebar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.timebar > div { height: 100%; background: var(--red); border-radius: 99px; transition: width .25s linear; }
.timebar.low > div { background: var(--a2); }
.feedback { border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center; color: #fff; margin-bottom: 1rem; box-shadow: var(--shadow); }
.feedback.good { background: linear-gradient(135deg, #1f9d58, #137a40); }
.feedback.badf { background: linear-gradient(135deg, #db3434, #a91f1f); }
.feedback.none { background: linear-gradient(135deg, #6f6b77, #4f4b56); }
.feedback.poll { background: linear-gradient(135deg, #3d63c9, #284aa6); }
.feedback h2 { font-size: 1.8rem; margin-bottom: .2rem; }
.feedback .pts { font-size: 1.15rem; font-weight: 700; opacity: .95; }
.streak { display: inline-block; margin-top: .5rem; background: rgba(255, 255, 255, .2); padding: .2rem .7rem; border-radius: 999px; font-weight: 750; }
.explain { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--red); border-radius: var(--radius-sm); padding: .9rem 1rem; text-align: left; }
.explain strong { display: block; margin-bottom: .25rem; }
.look-up { text-align: center; padding: 2rem 1rem; }
.look-up .big-emoji { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.spinner { width: 42px; height: 42px; border: 4px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.nick-row { display: flex; gap: .5rem; }
.nick-row .input { flex: 1; font-size: 1.15rem; }
.conn-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + var(--safe-b)); background: var(--warn); color: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 650; font-size: .9rem; z-index: 60; box-shadow: var(--shadow); }

@media (orientation: landscape) and (max-height: 520px) {
  .screen { max-width: 900px; }
  .q-media img, .q-media video { max-height: 50vh; }
  .big-emoji { font-size: 2.6rem; margin: .25rem 0 .5rem; }
}

/* ---------- Podium & Rangliste ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; margin: 1.5rem 0; }
.podium .place { display: flex; flex-direction: column; align-items: center; width: min(31%, 200px); }
.podium .name { font-weight: 800; text-align: center; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; margin-bottom: .15rem; line-height: 1.2; }
.podium .pts { color: var(--muted); font-size: .88rem; margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.podium .block { width: 100%; border-radius: 14px 14px 0 0; display: flex; justify-content: center; padding-top: .6rem; font-size: 2rem; font-weight: 900; color: #fff; animation: rise .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.podium .p1 .block { height: 150px; background: linear-gradient(#f5c842, #d39a00); animation-delay: .5s; }
.podium .p2 .block { height: 110px; background: linear-gradient(#cfd5dd, #97a1ad); animation-delay: .25s; }
.podium .p3 .block { height: 80px; background: linear-gradient(#e5a874, #b8723a); }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } }

.leader { list-style: none; padding: 0; margin: 0; }
.leader li { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: .4rem; font-weight: 650; }
.leader .rk { width: 2rem; text-align: center; font-weight: 900; color: var(--muted); }
.leader .nm { flex: 1; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.leader .sc { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: .25rem; }
.matrix td.cell { text-align: center; font-weight: 800; padding: .45rem .3rem; min-width: 2.3rem; }
.matrix td.yes { background: var(--ok-soft); color: var(--ok); }
.matrix td.no { background: var(--bad-soft); color: var(--bad); }
.matrix td.poll { background: var(--surface-3); color: var(--muted); }
.matrix td.skip { color: var(--muted); }
.matrix th.qh { text-align: center; }
.matrix td:first-child, .matrix th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.matrix th:first-child { background: var(--surface-2); }

/* Tabellen werden auf dem Handy zu Karten */
@media (max-width: 640px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border-bottom: 1px solid var(--border); padding: .6rem .2rem; }
  .table.stack td { border: 0; padding: .2rem .6rem; text-align: left; }
  .table.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .82rem; }
  .table.stack .num { text-align: left; }
  .table.stack .actions { text-align: left; padding-top: .5rem; }
}

.only-mobile { display: none; }
@media (max-width: 640px) {
  .table.stack .only-mobile { display: inline; }
  .table.stack td[data-l="Nickname"] { display: none; }
}

/* ---------- Balken & Statistik ---------- */
.bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .6s; }
.bar.red > span { background: var(--red); }
.dist { display: grid; gap: .45rem; margin-top: .75rem; }
.dist-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 3rem; align-items: center; gap: .3rem .55rem; font-size: .92rem; }
.dist-row .lbl { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.dist-row .track { grid-column: 2; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.dist-row .track span { display: block; height: 100%; border-radius: 99px; }
.dist-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.dist-row .shape-dot { width: 1.5rem; height: 1.5rem; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: .72rem; }
.dist-row.correct .lbl { font-weight: 800; color: var(--ok); }
.chips-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chips-list span { background: var(--surface-3); border-radius: 999px; padding: .25rem .7rem; font-size: .88rem; font-weight: 600; }
.chips-list span.ok { background: var(--ok-soft); color: var(--ok); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .v { font-size: clamp(1.5rem, 3.5vw, 1.9rem); font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Modal & Toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 12, 18, .55); display: grid; place-items: center; z-index: 100; padding: 1rem; animation: fade .15s; backdrop-filter: blur(3px); }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(540px, 100%); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow: auto; padding: clamp(1.1rem, 3vw, 1.6rem); animation: pop-in .18s ease-out; overscroll-behavior: contain; }
.modal-wide { width: min(900px, 100%); }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.confirm-text { font-size: 1.05rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } }
@media (max-width: 560px) {
  .modal-back { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 92dvh; padding-bottom: calc(1.2rem + var(--safe-b)); }
}
#toasts { position: fixed; bottom: calc(1rem + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: #222; color: #fff; padding: .7rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; transition: opacity .3s, transform .3s; text-align: center; }
.toast-ok { background: var(--ok); }
.toast-error { background: var(--bad); }
.toast.hide { opacity: 0; transform: translateY(8px); }

.mode-pick { display: grid; gap: .6rem; margin: 1rem 0; }
.mode-opt { display: flex; gap: .75rem; padding: .9rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: border-color .15s, background .15s; }
.mode-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.mode-opt input { accent-color: var(--red); margin-top: .25rem; flex: none; }
.mode-opt span { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quiz-card { display: flex; flex-direction: column; gap: .5rem; }
.quiz-card h3 { margin: 0; }
.quiz-card .desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-card .meta { font-size: .82rem; color: var(--muted); }
.quiz-card .acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.search { position: relative; max-width: 320px; flex: 1 1 220px; }
.search .input { padding-left: 2.3rem; min-height: 42px; }
.search::before { content: "🔍"; position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .6; }
.invite-box { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.invite-box code { font-size: 1.3rem; font-weight: 800; letter-spacing: .12em; }
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .4rem; background: var(--muted); vertical-align: middle; }
.status-dot.running { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.status-dot.lobby { background: var(--warn); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.media-tile { position: relative; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 1; display: flex; flex-direction: column; padding: 0; text-align: left; }
.media-tile:hover { border-color: var(--red); }
.media-tile img, .media-tile video { width: 100%; flex: 1; min-height: 0; object-fit: cover; background: #000; }
.media-tile .kind-icon { flex: 1; display: grid; place-items: center; font-size: 2.2rem; }
.media-tile .nm { font-size: .75rem; padding: .3rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface); }
.media-tile .del { position: absolute; top: 4px; right: 4px; }
.usage { font-size: .85rem; color: var(--muted); }

/* ---------- Editor ---------- */
.q-edit { position: relative; scroll-margin-top: calc(var(--header-h) + 12px); }
.q-edit.collapsed .q-body { display: none; }
.q-edit-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.q-edit.collapsed .q-edit-head { margin-bottom: 0; }
.q-num { font-weight: 800; color: var(--red); display: flex; align-items: center; gap: .5rem; min-width: 0; }
.q-num .q-preview { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.q-tools { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.q-settings { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.q-settings select { width: auto; min-height: 40px; padding: .35rem .5rem; font-size: .9rem; }
.type-select { min-width: 190px; }
.opt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .75rem 0; }
@media (max-width: 680px) { .opt-list { grid-template-columns: 1fr; } }
.opt-edit { display: flex; align-items: center; gap: .45rem; border-radius: var(--radius-sm); padding: .4rem .45rem; color: #fff; min-width: 0; }
.opt-edit .shape { width: 1.3rem; text-align: center; flex: none; }
.opt-edit input[type=text] { flex: 1; border: 0; border-radius: 7px; padding: .5rem .6rem; color: #17161a; background: rgba(255, 255, 255, .95); min-width: 0; font-size: max(16px, 1rem); }
.opt-edit .mark-correct { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: transparent; color: #fff; cursor: pointer; font-weight: 900; display: grid; place-items: center; }
.opt-edit:not(.is-correct) .mark-correct { color: transparent; }
.opt-edit:not(.is-correct) .mark-correct:hover { color: rgba(255, 255, 255, .6); }
.opt-edit.is-correct .mark-correct { background: #fff; color: var(--ok); border-color: #fff; }
.opt-edit.is-correct { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--ok); }
.opt-edit .opt-img-btn { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; overflow: hidden; padding: 0; }
.opt-edit .opt-img-btn img { width: 100%; height: 100%; object-fit: cover; }
.order-edit { display: grid; gap: .45rem; margin: .75rem 0; }
.order-edit .oe { display: flex; gap: .5rem; align-items: center; }
.order-edit .oe .order-num { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
.media-edit { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: .65rem .75rem; margin: .75rem 0; }
.media-edit .thumb { width: 96px; height: 64px; border-radius: 8px; overflow: hidden; background: #000; display: grid; place-items: center; color: #fff; font-size: 1.6rem; flex: none; }
.media-edit .thumb img, .media-edit .thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-edit .info { flex: 1; min-width: 140px; font-size: .9rem; }
.slider-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; margin: .75rem 0; }
.slider-edit .field { margin: 0; }
.editor-bar {
  position: sticky; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: .7rem max(1rem, env(safe-area-inset-left)) calc(.7rem + var(--safe-b));
  display: flex; gap: .5rem; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.add-q-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .5rem; margin-top: 1rem; }
.add-q-row .btn { flex-direction: column; min-height: 72px; gap: .2rem; white-space: normal; text-align: center; }
.add-q-row .btn span { font-size: 1.3rem; }
.picker-list { max-height: 50vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.picker-item { display: flex; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.picker-item:last-child { border-bottom: 0; }
.picker-item input { margin-top: .3rem; accent-color: var(--red); flex: none; }
.picker-item small { display: block; color: var(--muted); }
.upload-progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: .5rem; }
.upload-progress span { display: block; height: 100%; background: var(--red); width: 0; transition: width .2s; }

/* ---------- Spielleitung (Beamer, auch iPad) ---------- */
body.host { background: #131117; color: #f4f1f6; --surface: #1f1b24; --surface-2: #29242f; --surface-3: #332d3a; --border: #3a3441; --muted: #aaa2b2; --text: #f4f1f6; color-scheme: dark; }
.host-bar { display: flex; align-items: center; gap: .6rem; padding: calc(.55rem + env(safe-area-inset-top, 0px)) 1rem .55rem; background: #0c0a0f; border-bottom: 1px solid #241f2a; flex-wrap: wrap; }
.host-bar .brand { color: #fff; }
.host-bar .title { flex: 1; min-width: 0; font-weight: 700; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-bar .code-pill { background: var(--red); color: #fff; font-weight: 800; padding: .3rem .85rem; border-radius: 999px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.host-bar .btn { background: #241f2a; border-color: #3a3441; color: #fff; }
.stage { padding: clamp(.9rem, 2.5vw, 1.75rem); max-width: 1440px; margin: 0 auto; width: 100%; }
.lobby { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 860px) { .lobby { grid-template-columns: 1fr; } }
.join-panel { background: #fff; color: #17161a; border-radius: 22px; padding: 1.4rem; text-align: center; box-shadow: var(--shadow-lg); }
.join-panel .url { font-weight: 800; font-size: 1.1rem; word-break: break-all; color: var(--red); }
.join-panel .code-big { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; letter-spacing: .08em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: .15rem 0 .6rem; }
.join-panel img.qr { width: 100%; max-width: 300px; aspect-ratio: 1; image-rendering: pixelated; }
.join-panel .warn { background: #fff4d6; color: #7a4b00; border-radius: 10px; padding: .6rem; font-size: .85rem; text-align: left; margin-top: .6rem; }
.player-count { font-size: 3rem; font-weight: 900; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; min-height: 3rem; }
.chip { background: #2b2531; border: 1px solid #443d4c; color: #fff; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; cursor: pointer; animation: pop .25s ease-out; }
.chip:hover { background: var(--bad); border-color: var(--bad); text-decoration: line-through; }
.chip.off { opacity: .45; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.q-stage { display: flex; flex-direction: column; gap: 1rem; min-height: calc(100dvh - 120px); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.q-top .info { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.timer-circle { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; font-weight: 900; background: var(--red); color: #fff; font-variant-numeric: tabular-nums; flex: none; }
.timer-circle.low { animation: pulse .8s infinite; }
.q-text-host { font-size: clamp(1.4rem, 3.2vw, 2.6rem); font-weight: 800; text-align: center; background: #fff; color: #17161a; border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1rem, 3vw, 1.8rem); line-height: 1.25; }
.host-body { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.host-body.has-media { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.host-body.has-media .answers:not(.with-images):not(.tf) { grid-template-columns: 1fr; }
@media (max-width: 900px) { .host-body.has-media { grid-template-columns: 1fr; } .host-body.has-media .answers:not(.with-images):not(.tf) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.host .q-media img { max-height: 52vh; background: #fff; }
.host .q-media video { max-height: 56vh; }
.host .q-media.compact img { max-height: 22vh; }
.host .q-media.compact { margin-bottom: .75rem; }
.host .answers .answer { min-height: clamp(4.5rem, 10vh, 7rem); font-size: clamp(1.05rem, 1.9vw, 1.55rem); }
.host .answers.with-images .answer .opt-img { max-height: 22vh; }
.host-big-val { text-align: center; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; color: #fff; }
.q-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: auto; flex-wrap: wrap; }
.reveal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .reveal-grid { grid-template-columns: 1fr; } }
.host .explain { background: #29242f; border-color: #3a3441; color: #f4f1f6; font-size: 1.08rem; }
.host .leader li { background: #29242f; border-color: #3a3441; font-size: 1.12rem; }
.self-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .self-grid { grid-template-columns: 1fr; } }
.self-grid .join-panel .code-big { font-size: 2.6rem; }
.self-grid .join-panel img.qr { max-width: 210px; }
.host .table th { background: #29242f; }
.host .podium .pts { color: #c9c1d1; }
.host .order-list .order-item { background: #29242f; border-color: #3a3441; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.host .chips-list span { background: #332d3a; color: #fff; font-size: 1.05rem; }
.host .chips-list span.ok { background: var(--ok); }
.slider-reveal { background: #29242f; border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.slider-reveal .big { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: #6ee7a0; }

/* ---------- Rechtstexte ---------- */
.legal h2 { margin-top: 1.75rem; }
.legal .placeholder { background: var(--warn-soft); color: var(--warn); padding: 0 .3rem; border-radius: 4px; font-weight: 700; }

/* ---------- Druck ---------- */
@media print {
  .topbar, .no-print, .tabs, #toasts, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap, .stat { box-shadow: none; break-inside: avoid; }
  .container { padding: 0; max-width: none; }
  [data-pane] { display: block !important; margin-bottom: 1.5rem; }
}

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