/* Lachwerk – Gestaltung im Stil des Story-Bilds:
   gelber Grund, weiße Karten mit hartem schwarzem Schatten, schwarzes Logo-Feld.
   Phone-first, eine Spalte. Systemschriften (keine externen Fonts, DSGVO-freundlich).
   Bewusst nur ein Farbschema: Das Gelb ist die Marke und bleibt auch im Dunkelmodus. */
:root {
  --yellow: #ffc928;      /* Grundfläche, wie das Story-Bild */
  --yellow-deep: #f2b705; /* leicht dunkleres Gelb für Flächen auf Gelb */
  --paper: #ffffff;       /* Karten */
  --ink: #15172a;         /* Schrift, Logo-Feld, Schatten */
  --muted: #5b5f78;       /* Nebentext auf Weiß */
  --muted-on-yellow: #4a3c06; /* Nebentext auf Gelb (ausreichend Kontrast) */
  --line: #e4e2da;        /* feine Linien auf Weiß */
  --up: #17885c; --down: #c93a52; --wa: #1f9e57;
  --scrim: rgba(21, 23, 42, .55);
  --slab: 0 6px 0 var(--ink);       /* harter Schatten wie im Story-Bild */
  --slab-sm: 0 4px 0 var(--ink);
  --r-card: 26px; --r-ctl: 999px;
  --f-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { background: var(--yellow); }
/* Sicherheitsnetz: nie seitlich scrollen (clip statt hidden, damit die Kopfzeile oben kleben bleibt) */
html, body { overflow-x: clip; max-width: 100%; }
body {
  background: var(--yellow); color: var(--ink); font: 400 16px/1.5 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 640px; margin: 0 auto; padding-block: 0 110px; }

/* ───────── Kopf ───────── */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--yellow); padding-block: 16px 12px; display: grid; gap: 12px; }
.bar { display: flex; align-items: center; gap: 10px; }
.logo { font: 800 1.75rem/1 var(--f-display); letter-spacing: -.02em; margin-right: auto; text-decoration: none; color: var(--ink); }
.logo span { background: var(--ink); color: var(--yellow); padding: .06em .2em .1em; border-radius: 8px; margin-left: 2px; }
.who { font: 700 .85rem var(--f-body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-ctl); padding: 6px 12px; box-shadow: var(--slab-sm); }
a.who { text-decoration: none; }
.who:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 6px 12px; font-weight: 700; font-size: .92rem; color: var(--muted-on-yellow); border-radius: var(--r-ctl); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--yellow); background: var(--ink); }
.badge { font: 700 .7rem/1 var(--f-mono); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 3px 6px; }
.badge.alert { background: var(--down); color: #fff; }

.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border-radius: var(--r-ctl); padding: 4px; box-shadow: var(--slab-sm); }
.tabs button { border: 0; background: transparent; border-radius: var(--r-ctl); padding: 9px 4px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.chips::-webkit-scrollbar, .nav::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 2px solid var(--ink); background: transparent; border-radius: var(--r-ctl); padding: 5px 13px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* ───────── Knöpfe ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); border-radius: var(--r-ctl); padding: 10px 18px; font-weight: 700; background: var(--ink); color: var(--yellow); text-decoration: none; font-size: .95rem; box-shadow: var(--slab-sm); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.accent { background: var(--yellow); color: var(--ink); }
.btn.danger { background: var(--down); color: #fff; }
.btn.wa { background: var(--wa); color: #fff; }

/* ───────── Inhalt ───────── */
.view { display: grid; gap: 16px; padding-top: 6px; }
.meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted-on-yellow); }
.meta-row span:last-child { white-space: nowrap; }
.notice { background: var(--paper); border-radius: 16px; padding: 10px 14px; font-size: .9rem; box-shadow: var(--slab-sm); }
h1 { font: 800 1.75rem/1.12 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font: 800 1.15rem var(--f-display); margin: 0; }
.muted { color: var(--muted); margin: 0; }
.view > div > .muted, .view > .muted { color: var(--muted-on-yellow); }
.small { font-size: .85rem; }
.loading { color: var(--muted-on-yellow); text-align: center; padding: 40px 0; font-weight: 700; }

.cta { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: 16px 18px; font-size: .88rem; line-height: 1.4; text-decoration: none; box-shadow: 0 6px 0 var(--yellow-deep); }
.cta strong { font: 800 1.1rem var(--f-display); color: var(--yellow); }
.cta .arrow { margin-left: auto; font: 800 1.7rem var(--f-display); color: var(--yellow); }

/* Witz-Karten: weiß, stark gerundet, harter Schatten */
ol.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card { background: var(--paper); border-radius: var(--r-card); padding: 18px 18px 14px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 10px; box-shadow: var(--slab); }
.card.top { box-shadow: 0 8px 0 var(--ink); }
.card.single { grid-template-columns: 1fr; padding: 22px 22px 16px; }
.card.single > * { grid-column: 1 / -1; }
.rank { font: 800 2rem/1 var(--f-display); color: var(--muted); text-align: center; padding-top: 2px; }
.card.top .rank { color: var(--ink); }
.rank small { display: block; font: 800 .52rem/1.25 var(--f-body); letter-spacing: .02em; text-transform: uppercase; margin-top: 6px; hyphens: manual; overflow-wrap: normal; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 3px 2px; }
.body { min-width: 0; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.joke { margin: 6px 0 12px; font-size: 1.12rem; line-height: 1.4; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; display: block; text-decoration: none; }
.card.single .joke { font-size: 1.4rem; line-height: 1.32; }
.foot { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: var(--paper); border-radius: var(--r-ctl); padding: 4px 12px; font: 700 .85rem var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.vote svg { width: 16px; height: 16px; }
.vote.up[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.vote.down[aria-pressed="true"] { background: var(--down); border-color: var(--down); color: #fff; }
.score { margin-left: auto; font: 600 .74rem var(--f-mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.meter { grid-column: 2; height: 6px; border-radius: 6px; background: #f1efe7; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--yellow); }
.by { grid-column: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); }
.by-actions { display: inline-flex; gap: 12px; }
.link { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: .8rem; }
.view > div > .link { color: var(--ink); font-weight: 700; }
.empty { text-align: center; color: var(--ink); font-weight: 600; padding: 40px 16px; border: 2px dashed var(--ink); border-radius: var(--r-card); margin: 0; }
.more { justify-self: center; }

.fab { position: fixed; right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 6;
  border: 0; border-radius: var(--r-ctl); background: var(--ink); color: var(--yellow); font: 800 1.02rem var(--f-display); padding: 15px 22px; box-shadow: 0 5px 0 var(--yellow-deep), 0 8px 24px rgba(21,23,42,.25); }
.fab:active { transform: translateY(2px); }

.how { margin-top: 8px; font-size: .88rem; color: var(--muted-on-yellow); border-top: 2px solid var(--ink); padding-top: 16px; }
.how h2 { color: var(--ink); }
.how p { margin: 6px 0 0; max-width: 65ch; }

/* ───────── Swipe: Karte wie im Story-Bild ───────── */
.swipe-stage { position: relative; display: grid; min-height: 340px; }
.swipe-card { grid-area: 1 / 1; position: relative; background: var(--paper); border-radius: 32px; padding: 34px 24px 22px;
  display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  box-shadow: 0 10px 0 var(--ink); transition: transform .22s ease, opacity .22s ease; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.leaving { opacity: 0; }
.swipe-card.behind { transform: scale(.95) translateY(14px); opacity: .6; box-shadow: none; pointer-events: none; }
.swipe-text { font-size: 1.45rem; line-height: 1.32; font-weight: 500; margin: 0; white-space: pre-line; overflow-wrap: anywhere; flex: 1; }
.swipe-meta { font-size: .82rem; color: var(--muted); }
.stamp { position: absolute; top: 16px; font: 800 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border: 3px solid; border-radius: 8px; opacity: 0; pointer-events: none; background: var(--paper); }
.stamp.like { right: 16px; color: var(--up); transform: rotate(8deg); }
.stamp.nope { left: 16px; color: var(--down); transform: rotate(-8deg); }
.swipe-actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 6px; }
.round { width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); display: grid; place-items: center; box-shadow: var(--slab-sm); }
.round:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.round svg { width: 28px; height: 28px; }
.round.like { color: var(--up); }
.round.nope { color: var(--down); }
.swipe-hint { text-align: center; font-size: .78rem; color: var(--muted-on-yellow); margin: 0; }
.swipe-empty { display: grid; gap: 10px; text-align: center; padding: 40px 16px; background: var(--paper); border-radius: 32px; box-shadow: var(--slab); }
.swipe-empty p { margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }

/* ───────── Teilen ───────── */
.share { display: grid; gap: 14px; background: var(--paper); border-radius: var(--r-card); padding: 18px; box-shadow: var(--slab); }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: start; }
.share-grid canvas { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--slab-sm); }
.share-buttons { display: grid; gap: 10px; align-content: start; }
@media (max-width: 460px) { .share-grid { grid-template-columns: 1fr; } .share-grid canvas { max-width: 200px; } }

/* ───────── Moderation ───────── */
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mod-item { background: var(--paper); border-radius: 20px; padding: 16px; display: grid; gap: 8px; box-shadow: var(--slab-sm); }
.mod-item.st-hidden { box-shadow: 0 4px 0 var(--down); }
.mod-item .txt { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; border: 2px solid var(--ink); }
.pill.st-hidden { border-color: var(--down); color: var(--down); }
.pill.st-visible { border-color: var(--up); color: var(--up); }
.pill.reports { background: var(--yellow); border-color: var(--yellow); }

/* ───────── Formulare & Fenster ───────── */
.form { display: grid; gap: 12px; }
.form label, .sheet label { font-size: .82rem; font-weight: 700; display: grid; gap: 4px; }
input[type=text], input[type=password], input[type=email], input[type=url], select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fffdf4; border: 2px solid var(--ink); border-radius: 14px; padding: 11px 12px; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--paper); box-shadow: 0 0 0 3px var(--yellow); }
textarea { min-height: 120px; resize: vertical; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 520px; border-radius: 28px 28px 0 0; border-top: 6px solid var(--yellow); max-height: 92vh; overflow: auto;
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; }
.sheet .tabs { box-shadow: none; border: 2px solid var(--ink); }
.err { color: var(--down); font-size: .85rem; font-weight: 600; margin: 0; }
.sheet label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.sheet label.check input { margin-top: 3px; accent-color: var(--ink); }
.sheet .notice { background: #fff6d6; box-shadow: none; border: 2px solid var(--yellow); }
#authOk { margin: 0; }
.dup { background: #fff1f3; border: 2px solid var(--down); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; font-size: .88rem; }
.dup q { display: block; white-space: pre-line; color: var(--muted); quotes: none; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--yellow); font-weight: 700; padding: 11px 18px; border-radius: var(--r-ctl); font-size: .9rem; z-index: 20; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 4px 0 var(--yellow-deep); }

/* Fußzeile wie im Story-Bild: kräftig, schwarz auf Gelb */
footer { margin-top: 36px; display: grid; gap: 8px; justify-items: center; font-size: .82rem; font-weight: 700; color: var(--ink); text-align: center; }
.private-note { margin: 0; font-size: .76rem; font-weight: 600; opacity: .75; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; max-width: 100%; }
.demo-banner { background: var(--paper); border-radius: 14px; padding: 8px 12px; font-size: .8rem; font-weight: 500; box-shadow: var(--slab-sm); }

/* ───────── Rechtstexte ───────── */
.legal { max-width: 65ch; padding-block: 24px 60px; }
.legal h1 { margin-bottom: 16px; }
.legal h2 { margin-top: 24px; }
.legal > p, .legal > ul { background: transparent; }
.legal mark { background: var(--paper); color: inherit; padding: 0 .25em; border-radius: 4px; }
.legal .notice { margin-bottom: 8px; }

/* ───────── Reaktionen & Autoren-Links ───────── */
.reacts { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card.single .reacts { grid-column: 1 / -1; }
.react { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); background: var(--paper); border-radius: var(--r-ctl); padding: 2px 9px; font: 700 .8rem var(--f-mono); color: var(--ink); min-height: 30px; }
.react span { font-size: 1rem; line-height: 1; }
.react[aria-pressed="true"] { border-color: var(--ink); background: #fff6d6; }
a.author { color: inherit; font-weight: 600; text-decoration: none; }
a.author:hover { text-decoration: underline; }

/* ───────── Banner (Hinweise, Challenge) ───────── */
.banners { display: grid; gap: 10px; }
.banners:empty { display: none; }
.banner { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--slab-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.banner.hl a { color: inherit; text-decoration: none; flex: 1; }
.banner .x { border: 0; background: none; font-size: 1.4rem; line-height: 1; padding: 0 4px; color: var(--muted); }
.banner.ch { display: grid; gap: 2px; background: var(--ink); color: var(--paper); box-shadow: 0 5px 0 var(--yellow-deep); }
.banner.ch strong { font: 800 1.1rem var(--f-display); color: var(--yellow); }
.ch-k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ch-m { font-size: .82rem; font-weight: 500; opacity: .9; }

/* ───────── Highlights ───────── */
.crown { background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: 20px; display: grid; gap: 10px; box-shadow: 0 8px 0 var(--yellow-deep); }
.crown-k { font: 800 .78rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.crown-t { margin: 0; font-size: 1.3rem; line-height: 1.35; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.crown-t.small { font-size: 1rem; }
.crown-m { font-size: .85rem; opacity: .85; }
.crown-m a.author { color: var(--yellow); }
.crown-n { margin: 0; font-size: .8rem; opacity: .75; }
.crown .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: none; }
.crown h1 { color: var(--yellow); }
.crown p { margin: 0; }
.crown-badge { justify-self: start; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: var(--r-ctl); }
.hl-sec { display: grid; gap: 10px; }
.minis { display: grid; gap: 10px; }
.mini { display: grid; gap: 4px; background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--slab-sm); text-decoration: none; color: var(--ink); }
.mini-k { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-t { font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mini-m { font-size: .8rem; color: var(--muted); }
.more-link { justify-self: start; color: var(--ink); font-weight: 700; }
.on-y { color: var(--muted-on-yellow) !important; }
.streak { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.streak-n { font: 800 2rem var(--f-display); }
.streak-pill { display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: .78rem; border-radius: var(--r-ctl); padding: 2px 10px; margin-left: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg { display: grid; gap: 1px; background: transparent; border: 2px dashed var(--muted-on-yellow); color: var(--muted-on-yellow); border-radius: 14px; padding: 6px 10px; font-weight: 800; font-size: .85rem; opacity: .7; }
.bdg small { font-weight: 500; font-size: .7rem; }
.bdg.on { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--slab-sm); opacity: 1; }
.bdg.on::before { content: "★ "; }
.install { display: grid; gap: 6px; background: var(--paper); border-radius: 18px; padding: 14px; box-shadow: var(--slab-sm); font-size: .88rem; }
.install .btn { justify-self: start; }

/* ───────── Duell ───────── */
.duel-grid { display: grid; gap: 10px; }
.duel-card { display: grid; gap: 10px; text-align: left; background: var(--paper); border: 0; border-radius: var(--r-card); padding: 20px; box-shadow: var(--slab); min-height: 130px; transition: transform .18s ease, opacity .18s ease; }
.duel-card:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.duel-t { font-size: 1.15rem; line-height: 1.38; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.duel-pick { justify-self: end; font-weight: 800; font-size: .82rem; background: var(--yellow); border-radius: var(--r-ctl); padding: 4px 12px; }
.duel-card.won { box-shadow: 0 6px 0 var(--up); outline: 3px solid var(--up); }
.duel-card.won .duel-pick { background: var(--up); color: #fff; }
.duel-card.lost { opacity: .45; transform: scale(.98); }
.vs { justify-self: center; font: 800 1rem var(--f-display); background: var(--ink); color: var(--yellow); border-radius: var(--r-ctl); padding: 4px 14px; }

/* ───────── Autoren & Profil ───────── */
ol.authors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.authors a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--slab-sm); text-decoration: none; color: var(--ink); }
.a-rank { grid-row: span 2; font: 800 1.5rem/1.2 var(--f-display); text-align: center; color: var(--muted); }
ol.authors li:first-child .a-rank { color: var(--ink); }
.a-name { font-weight: 800; }
.a-name .pill { font-size: .66rem; background: var(--yellow); border-color: var(--yellow); vertical-align: 2px; }
.a-meta { font-size: .8rem; color: var(--muted); }
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 1.8rem var(--f-display); box-shadow: 0 4px 0 var(--yellow-deep); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stats > div { background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--slab-sm); display: grid; }
.stats b { font: 800 1.5rem var(--f-display); }
.stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ───────── Admin-Erweiterung ───────── */
.admin-tabs { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); border-radius: 22px; }
.admin-tabs button { white-space: nowrap; padding-inline: 10px; }
.panel { background: var(--paper); border-radius: 20px; padding: 16px; box-shadow: var(--slab-sm); display: grid; gap: 10px; overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl td.bar { width: 30%; min-width: 60px; }
.tbl td.bar i { display: block; height: 10px; border-radius: 5px; background: var(--yellow); min-width: 2px; }
.chips.static { flex-wrap: wrap; overflow: visible; }
.chips.static .chip { font-weight: 600; }
input[type=number], input[type=datetime-local] { font: inherit; color: var(--ink); background: #fffdf4; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; }

/* Beim Wischen und Tippen keinen Text markieren (sonst öffnet Android z. B. die Google-Suche) */
.swipe-stage, .swipe-actions, .swipe-hint, .duel-grid, .tv, .round, .vote, .react, .chip, .btn, .tabs, .nav { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kbd-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: inline; } }

/* ───────── Admin: Übersicht, Witze, Nutzer ───────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.kpis > div { display: grid; gap: 1px; border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.kpis b { font: 800 1.35rem var(--f-display); }
.kpis span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.delta { font: 700 .72rem var(--f-mono) !important; }
.delta.up { color: var(--up) !important; } .delta.down { color: var(--down) !important; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.status { display: grid; gap: 2px; text-align: left; background: var(--paper); border: 0; border-radius: 18px; padding: 12px 14px; box-shadow: var(--slab-sm); color: var(--ink); }
.status b { font: 800 1.5rem var(--f-display); }
.status span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.status.warn { box-shadow: 0 4px 0 var(--down); outline: 2px solid var(--down); }
.status.warn b { color: var(--down); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; gap: 2px; font-size: .9rem; }
.facts li > b { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts a { color: var(--ink); font-weight: 600; }
.facts span { color: var(--muted); font-size: .82rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.feed .fi { font-size: 1.1rem; line-height: 1.3; }
.feed .fm { font-size: .78rem; color: var(--muted); display: block; }
.feed .fm a { color: var(--ink); font-weight: 700; text-decoration: none; }
.feed .ft { font-size: .9rem; color: var(--ink); display: block; overflow-wrap: anywhere; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.top-grid h3 { margin: 0 0 6px; font: 800 .95rem var(--f-display); }
.top-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; }
.top-list a { color: var(--ink); }
.top-list span { display: block; font-size: .74rem; color: var(--muted); }
.search-form { gap: 8px; }
.sf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-row input, .sf-row select { flex: 1 1 140px; min-width: 0; }
.ban-form { gap: 6px; flex-wrap: nowrap; }
.ban-form input { flex: 1; min-width: 0; padding: 8px 10px; font-size: .85rem; }
.banner.ann { background: var(--paper); border: 2px dashed var(--ink); box-shadow: none; }
.banner.ann span { flex: 1; }
.panel h2 .small { font-family: var(--f-body); font-weight: 500; }

/* ───────── Sponsoren ───────── */
.sponsor { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 16px; padding: 8px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--slab-sm); }
.sponsor img { max-height: 36px; max-width: 110px; object-fit: contain; }
.sponsor .sp-k { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.sponsor .sp-t { display: grid; font-size: .82rem; line-height: 1.3; }
.sponsor .sp-t small { color: var(--muted); font-size: .76rem; }
.sponsor.dark { background: rgba(255, 255, 255, .08); color: var(--paper); box-shadow: none; }
.sponsor.dark .sp-k { color: var(--yellow); border-color: rgba(255, 201, 40, .5); }
.sponsor.dark .sp-t small { color: rgba(255, 255, 255, .7); }
.sponsor.dark img { background: #fff; border-radius: 6px; padding: 2px 4px; }
.sp-prev img { max-height: 60px; max-width: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.sp-prev { display: flex; align-items: center; gap: 12px; }
.sp-prev:empty { display: none; }
.sp-mini { max-height: 22px; max-width: 70px; object-fit: contain; }
.chip-check { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.chip-check input { accent-color: var(--ink); margin: 0; }
.tv-link { margin: 0; overflow-wrap: anywhere; font-size: .85rem; }
.tv-left { display: grid; gap: calc(1 * var(--vh)); }
.tv-brand { display: flex; align-items: center; gap: calc(1.2 * var(--vw)); font-size: calc(2.4 * var(--vh)); color: var(--tv-tx, var(--ink)); }
.tv-brand img { height: calc(6 * var(--vh)); max-width: calc(18 * var(--vw)); object-fit: contain; background: #fff; border-radius: calc(1 * var(--vh)); padding: calc(.5 * var(--vh)) calc(1 * var(--vh)); }

.push-topics { display: grid; gap: 6px; }
.install.push label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.install.push label.check input { margin-top: 3px; accent-color: var(--ink); }

/* ───────── Lieblingsthemen ───────── */
.favs { display: grid; gap: 6px; }
.favs-k { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-yellow); }
.favs .chip { padding: 3px 11px; font-size: .8rem; }

/* ───────── Pointen-Battle ───────── */
.punch-form { display: grid; gap: 8px; }
.punch-form textarea { min-height: 70px; background: var(--paper); }
.punch-form .row { align-items: center; }
.card.punch .joke { margin: 2px 0 8px; }
.card.punch .score a.author { color: var(--muted); }
.battle-b strong { white-space: pre-line; }

/* ───────── Bildschirm-Modus ───────── */
body.tv-mode header, body.tv-mode footer, body.tv-mode .fab { display: none !important; }
body.tv-mode .wrap { max-width: none; padding: 0; }
body.tv-mode { padding: 0; overflow: hidden; }
.tv { --vh: 1vh; --vw: 1vw; position: fixed; inset: 0; background: var(--yellow); color: var(--tv-tx, var(--ink)); display: grid; grid-template-rows: auto 1fr auto; gap: calc(3 * var(--vh)); padding: calc(5 * var(--vh)) calc(6 * var(--vw)) calc(4 * var(--vh)); cursor: pointer; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: calc(3 * var(--vw)); }
.tv-top .logo { font-size: calc(5 * var(--vh)); margin: 0; color: var(--tv-tx, var(--ink)); }
.tv-k { font: 800 calc(3.2 * var(--vh)) var(--f-display); background: var(--ink); color: var(--yellow); border-radius: 999px; padding: calc(1 * var(--vh)) calc(2.4 * var(--vw)); text-align: right; }
.tv-t { align-self: center; box-sizing: border-box; margin: 0; background: var(--paper); border-radius: calc(4 * var(--vh)); padding: calc(5 * var(--vh)) calc(5 * var(--vw)); box-shadow: 0 calc(1.4 * var(--vh)) 0 var(--ink); font-weight: 600; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; color: var(--tv-ctx, var(--ink)); }
.tv-l { font-size: calc(6.4 * var(--vh)); } .tv-m { font-size: calc(5 * var(--vh)); } .tv-s { font-size: calc(3.8 * var(--vh)); }
.tv-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(3 * var(--vw)); }
.tv-bot .tv-m { font-size: calc(3 * var(--vh)); font-weight: 700; color: var(--muted-on-yellow); }
.tv-qr { display: grid; justify-items: center; gap: calc(.6 * var(--vh)); font: 800 calc(2 * var(--vh)) var(--f-body); }
.tv-qr img { width: calc(16 * var(--vh)); height: calc(16 * var(--vh)); border-radius: calc(1.4 * var(--vh)); box-shadow: 0 calc(.8 * var(--vh)) 0 var(--ink); background: #fff; }
.tv-dots { position: absolute; left: 50%; bottom: calc(2 * var(--vh)); transform: translateX(-50%); display: flex; gap: calc(1 * var(--vh)); }
.tv-dots i { width: calc(1.2 * var(--vh)); height: calc(1.2 * var(--vh)); border-radius: 50%; background: var(--muted-on-yellow); opacity: .35; }
.tv-dots i.on { opacity: 1; background: var(--ink); }
.tv.hoch .tv-l { font-size: calc(4 * var(--vh)); } .tv.hoch .tv-m { font-size: calc(3.4 * var(--vh)); } .tv.hoch .tv-s { font-size: calc(2.7 * var(--vh)); } .tv.hoch .tv-k { font-size: calc(2.2 * var(--vh)); }
.tv.hoch .tv-top { flex-direction: column; align-items: flex-start; gap: calc(2 * var(--vh)); } .tv.hoch .tv-k { text-align: left; padding: calc(.8 * var(--vh)) calc(3 * var(--vw)); }
.tv.hoch .tv-bot .tv-m { font-size: calc(2.2 * var(--vh)); } .tv.hoch .tv-qr img { width: calc(12 * var(--vh)); height: calc(12 * var(--vh)); }
.tv.fix { inset: auto; transform-origin: center; }
body.tv-mode { background: var(--yellow); min-height: 100vh; }

/* ───────── Bildschirm-Link gestalten ───────── */
.scr { gap: 16px; }
.scr-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .wrap:has(.scr) { max-width: 1120px; } .scr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .scr-side { position: sticky; top: 12px; } }
.scr-form { display: grid; gap: 16px; }
.scr-form label { display: grid; gap: 6px; }
.scr-form small { font-weight: 500; }
.scr-sec { display: grid; gap: 8px; }
.scr-fmt { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scr-fmt legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.scr-fmt label { display: block; cursor: pointer; }
.scr-fmt input { position: absolute; opacity: 0; pointer-events: none; }
.scr-fmt label > span { display: grid; gap: 2px; justify-items: center; text-align: center; border: 2px solid var(--line); border-radius: 16px; padding: 12px 8px; height: 100%; box-sizing: border-box; }
.scr-fmt input:checked + span { border-color: var(--ink); box-shadow: var(--slab-sm); }
.scr-fmt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.scr-fmt small { color: var(--muted); font-size: .8rem; }
.scr-ic { display: block; border: 3px solid var(--ink); border-radius: 5px; background: var(--yellow); margin-bottom: 6px; }
.scr-ic.q { width: 48px; height: 27px; } .scr-ic.h { width: 20px; height: 36px; margin-top: -9px; }
.scr-presets .chip { display: inline-flex; align-items: center; gap: 6px; }
.scr-presets .chip i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid; flex: none; }
.scr-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.scr-color { font-size: .88rem; font-weight: 700; }
.scr-color span { display: flex; gap: 6px; align-items: center; }
.scr-color input[type=color] { width: 44px; height: 40px; padding: 2px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); flex: none; cursor: pointer; }
.scr-color input[type=text] { min-width: 0; width: 100%; font-family: ui-monospace, monospace; text-transform: uppercase; }
.scr-warn { color: #8a1c00; font-weight: 700; margin: 0; }
.scr-side { display: grid; gap: 14px; }
.scr-prev-wrap { display: grid; place-items: center; }
.scr-prev { width: 100%; aspect-ratio: 16 / 9; border: 6px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--slab); }
.scr-prev.hoch { width: min(100%, 300px); aspect-ratio: 9 / 16; }
.scr-prev iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.scr-out { display: grid; gap: 10px; }
.scr-out input { font-size: .85rem; width: 100%; box-sizing: border-box; }
.scr-short { margin: 0; display: grid; gap: 2px; background: var(--ink); color: var(--yellow); border-radius: 14px; padding: 12px 14px; font: 800 1.15rem var(--f-display); overflow-wrap: anywhere; }
.scr-short small { font: 600 .82rem var(--f-body); color: var(--paper); }

/* ───────── Errate die Pointe ───────── */
.quiz-card, .quiz-result { gap: 14px; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-k, .live-k { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.quiz-dots i.ok { background: var(--up); border-color: var(--up); } .quiz-dots i.no { background: var(--down); border-color: var(--down); } .quiz-dots i.now { background: var(--yellow); }
.quiz-setup { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left; font: 600 1rem/1.35 var(--f-body); color: var(--ink); background: #fffdf4; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; cursor: pointer; box-shadow: var(--slab-sm); transition: transform .12s; }
.quiz-opt b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 .95rem var(--f-display); }
.quiz-opt:not([disabled]):hover { transform: translateY(-2px); }
.quiz-opt:not([disabled]):active { transform: translateY(2px); box-shadow: none; }
.quiz-opt[disabled] { cursor: default; opacity: 1; }
.quiz-opt.right { background: #e3f7ea; border-color: var(--up); box-shadow: 0 4px 0 var(--up); } .quiz-opt.right b { background: var(--up); color: #fff; }
.quiz-opt.wrong { background: #fde8e6; border-color: var(--down); box-shadow: 0 4px 0 var(--down); } .quiz-opt.wrong b { background: var(--down); color: #fff; }
.quiz-opt.dim { opacity: .5; }
.quiz-after { display: grid; gap: 8px; justify-items: start; }
.quiz-verdict { font: 800 1.2rem var(--f-display); } .quiz-verdict.ok { color: var(--up); } .quiz-verdict.no { color: var(--down); }
.quiz-hint { margin: 0; } @media (pointer: coarse) { .quiz-hint { display: none; } }
.quiz-result { text-align: center; justify-items: center; }
.quiz-emoji { font-size: 2.2rem; letter-spacing: .1em; }
.quiz-score { font: 800 1.6rem var(--f-display); }
.quiz-result .row { justify-content: center; }

/* ───────── Live-Duell am Handy ───────── */
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.live-head b { font: 800 1.4rem var(--f-display); }
.live-head .live-k { color: var(--muted-on-yellow); }
.live-pair { display: grid; gap: 12px; }
.live-opt { display: grid; gap: 10px; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 16px; box-shadow: var(--slab); cursor: pointer; }
.live-opt[disabled] { cursor: default; opacity: 1; }
.live-l { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 1.2rem var(--f-display); }
.live-t { font-size: 1.08rem; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.live-pick { font-weight: 800; font-size: .9rem; color: var(--muted); }
.live-bar { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.live-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .6s ease; }
.live-pct { font: 800 .95rem var(--f-mono); }
.live-opt.mine { border-color: var(--up); box-shadow: 0 6px 0 var(--up); } .live-opt.mine .live-bar i { background: var(--up); }
.live-opt.win { background: #fff7d6; } .live-opt.lose { opacity: .55; }
.live-wait { text-align: center; justify-items: center; }

/* ───────── Gruppen ───────── */
.grp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grp-list a { display: grid; gap: 2px; background: var(--paper); border-radius: 16px; padding: 12px 16px; box-shadow: var(--slab-sm); text-decoration: none; color: var(--ink); }
.grp-list b { font: 800 1.05rem var(--f-display); } .grp-list span { font-size: .85rem; color: var(--muted); }
.grp-forms { display: grid; gap: 14px; } @media (min-width: 700px) { .grp-forms { grid-template-columns: 1fr 1fr; align-items: start; } }
.grp-forms input#groupCode { text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, monospace; }
.grp-hero { background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; box-shadow: 0 8px 0 var(--yellow-deep); }
.grp-hero h1 { color: var(--yellow); margin: 0; overflow-wrap: anywhere; } .grp-hero p { margin: 0; }
.grp-hero .live-k { color: var(--yellow); opacity: .8; }
.grp-hero .pill { border-color: var(--yellow); color: var(--yellow); align-self: center; }
.grp-hero .btn.ghost { color: var(--paper); border-color: var(--paper); background: transparent; }
.grp-invite input { width: 100%; box-sizing: border-box; font-size: .85rem; }
.grp-code { font-family: ui-monospace, monospace; letter-spacing: .12em; font-size: 1.05rem; }
.grp-qr { display: grid; justify-items: center; gap: 6px; } .grp-qr[hidden] { display: none; }
.grp-qr svg { width: min(240px, 70vw); height: auto; border: 2px solid var(--ink); border-radius: 12px; }
.grp-admin summary { font-weight: 800; cursor: pointer; }
.grp-admin .form { display: grid; gap: 8px; margin-top: 10px; }

/* ───────── Bildschirm: Quiz-Folie und Live-Duell ───────── */
.tv-mid { align-self: center; display: grid; gap: calc(2.4 * var(--vh)); }
.tv-quiz { display: grid; gap: calc(1.4 * var(--vh)); }
.tv-quiz span { display: grid; grid-template-columns: calc(5 * var(--vh)) 1fr; gap: calc(1.6 * var(--vw)); align-items: center; background: var(--paper); color: var(--tv-ctx, var(--ink)); border-radius: calc(2 * var(--vh)); padding: calc(1.2 * var(--vh)) calc(2 * var(--vw)); font: 600 calc(3 * var(--vh)) / 1.25 var(--f-body); transition: opacity .5s, transform .5s; }
.tv-quiz b { width: calc(4.6 * var(--vh)); height: calc(4.6 * var(--vh)); border-radius: 50%; background: var(--tv-ctx, var(--ink)); color: var(--paper); display: grid; place-items: center; font: 800 calc(2.6 * var(--vh)) var(--f-display); }
.tv.reveal .tv-quiz span.no { opacity: .3; }
.tv.reveal .tv-quiz span.ok { transform: scale(1.03); box-shadow: 0 calc(.8 * var(--vh)) 0 var(--ink); }
.tv.hoch .tv-quiz span { font-size: calc(2.2 * var(--vh)); }
.tv-live .lv-pair { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: calc(3 * var(--vw)); }
.tv.hoch.tv-live .lv-pair { grid-template-columns: 1fr; gap: calc(2 * var(--vh)); }
.lv-c { background: var(--paper); color: var(--tv-ctx, var(--ink)); border-radius: calc(3 * var(--vh)); padding: calc(3 * var(--vh)) calc(2.4 * var(--vw)); box-shadow: 0 calc(1.2 * var(--vh)) 0 var(--ink); display: grid; gap: calc(1.6 * var(--vh)); align-content: start; transition: opacity .6s, transform .6s; }
.lv-ab { width: calc(6 * var(--vh)); height: calc(6 * var(--vh)); border-radius: 50%; background: var(--tv-ctx, var(--ink)); color: var(--paper); display: grid; place-items: center; font: 800 calc(3.4 * var(--vh)) var(--f-display); }
.lv-t { margin: 0; font-weight: 600; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.lv-t.lv-l { font-size: calc(4.2 * var(--vh)); } .lv-t.lv-m { font-size: calc(3.4 * var(--vh)); } .lv-t.lv-s { font-size: calc(2.7 * var(--vh)); }
.tv.hoch .lv-t.lv-l { font-size: calc(2.8 * var(--vh)); } .tv.hoch .lv-t.lv-m { font-size: calc(2.4 * var(--vh)); } .tv.hoch .lv-t.lv-s { font-size: calc(2 * var(--vh)); }
.lv-bar { height: calc(2.2 * var(--vh)); border-radius: 999px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: var(--tv-ctx, var(--ink)); border-radius: 999px; transition: width .8s ease; }
.lv-p { font: 800 calc(3 * var(--vh)) var(--f-display); }
.lv-c.win { transform: scale(1.03); } .lv-c.lose { opacity: .35; }
.tv-live .lv-info { font: 800 calc(3.6 * var(--vh)) var(--f-display) !important; color: var(--tv-tx, var(--ink)) !important; }
.tv-qrbox { width: calc(16 * var(--vh)); height: calc(16 * var(--vh)); border-radius: calc(1.4 * var(--vh)); box-shadow: 0 calc(.8 * var(--vh)) 0 var(--ink); background: #fff; overflow: hidden; }
.tv-qrbox svg { width: 100%; height: 100%; display: block; }
.tv-live .tv-qrbox { width: calc(20 * var(--vh)); height: calc(20 * var(--vh)); }
.tv.hoch.tv-live .tv-qrbox { width: calc(13 * var(--vh)); height: calc(13 * var(--vh)); }

/* ───────── Suche ───────── */
.search-bar { display: flex; gap: 8px; }
.view.search > * { min-width: 0; }
.search-bar input { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 18px; box-shadow: var(--slab-sm); }
.search-bar input:focus { outline: none; box-shadow: 0 0 0 3px var(--ink); }
.search-tips .chip { font-size: .82rem; }

/* ───────── Grußkarte ───────── */
.gcard { background: var(--paper); border-radius: var(--r-card); padding: 18px; box-shadow: var(--slab); display: grid; gap: 12px; }
.gcard[hidden] { display: none; }
.gcard h2 { margin: 0; }
.gcard-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gcard-in label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.gcard-in input { min-width: 0; }
.gcard canvas { width: min(100%, 420px); height: auto; justify-self: center; border-radius: 16px; box-shadow: var(--slab-sm); }
.gcard .chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
#minePush .install { margin: 0; }

/* ───────── Saisonale Deko ───────── */
.logo { position: relative; }
.season-badge { position: absolute; top: -.5em; right: -.62em; font-size: .64em; font-style: normal; line-height: 1; transform: rotate(14deg); transform-origin: 50% 90%; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)); animation: season-sway 3.2s ease-in-out infinite; }
@keyframes season-sway { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(20deg) translateY(-1px); } }
.season-greet { margin: 0; font-weight: 800; font-size: .86rem; }
.season-side { display: none; }
@media (min-width: 980px) {
  .season-side { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
  .season-side i { position: absolute; font-style: normal; font-size: 34px; opacity: .55; }
  .season-side i:nth-child(1) { right: 4vw; top: 110px; transform: rotate(12deg); }
  .season-side i:nth-child(2) { left: 3.5vw; bottom: 60px; transform: rotate(-14deg); }
  .season-side i:nth-child(3) { left: 5vw; top: 46%; font-size: 26px; opacity: .4; transform: rotate(-6deg); }
  .wrap { position: relative; z-index: 1; }
}
body.tv-mode .season-side { display: none; }
@media (prefers-reduced-motion: reduce) { .season-badge { animation: none; } }

@media (prefers-reduced-motion: reduce) { .duel-card { transition: none; } }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition: none; } .btn:active, .who:active, .round:active, .fab:active { transform: none; } }

/* Live-Duell im Hochformat kompakter */
.tv-live .lv-pair { min-height: 0; }
.tv.hoch.tv-live { gap: calc(2 * var(--vh)); }
.tv.hoch .lv-c { padding: calc(2 * var(--vh)) calc(4 * var(--vw)); gap: calc(1.2 * var(--vh)); border-radius: calc(2.4 * var(--vh)); box-shadow: 0 calc(.8 * var(--vh)) 0 var(--ink); }
.tv.hoch .lv-ab { width: calc(4.2 * var(--vh)); height: calc(4.2 * var(--vh)); font-size: calc(2.4 * var(--vh)); }
.tv.hoch .lv-bar { height: calc(1.4 * var(--vh)); }
.tv.hoch .lv-p { font-size: calc(2.2 * var(--vh)); }
.tv.hoch.tv-live .lv-info { font-size: calc(2.4 * var(--vh)) !important; }
.tv.hoch .lv-t.lv-l { font-size: calc(2.5 * var(--vh)); } .tv.hoch .lv-t.lv-m { font-size: calc(2.1 * var(--vh)); } .tv.hoch .lv-t.lv-s { font-size: calc(1.8 * var(--vh)); }
