/* Panel-Look (Comicheft) – Vorgabe: docs/design/DESIGN.md. Kommt nach style.css und überschreibt dort Farben,
   Schriften, Kopfzeile und Tab-Leiste. Nur helles Design. Die Heute-Ansicht (heute.js) ist komplett hier gestaltet. */

/* iPhone: schnelles Doppeltippen auf Knöpfe (z. B. Tor-Plus) soll zählen, nicht zoomen. Zwei-Finger-Zoom bleibt. */
button, [role="button"], a, label, input, select, .chip { touch-action: manipulation; }

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --paper: #fbf5e6;
  --panel: #ffffff;
  --ink: #141414;
  --mint: #19f0a8;
  --mint-deep: #0b8a5e;
  --you: #ffd84d;          /* Du: Goldgelb (seit 02.11.2026, vorher Blau) */
  --you-text: #9a6f00;     /* Du als Schriftfarbe auf Weiß (Senfgelb) */
  --sun: #ffd84d;
  --red: #ff4a3d;
  --disp: "Fredoka", "Nunito", system-ui, sans-serif;

  /* Variablen aus style.css auf Papier umstellen */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: #f4ecd8;
  --text: var(--ink);
  --muted: #5d5a52;
  --line: #e6dcc4;
  --accent: var(--mint-deep);
  --accent-soft: #dcfbef;
  --live: #e0352b;
  --today: var(--mint-deep);
  --brand: var(--paper);
  --away: #2f6fd6;         /* Auswärts in Tabellen bleibt blau */
  --away-soft: #e4eeff;
  --radius: 16px;
  --shadow: none;
  color-scheme: light;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 20, 20, .06) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; letter-spacing: 0; }

/* ---------- Kopfzeile: Papier statt grüner Balken ---------- */
header.top {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  border-bottom: 0;
}
header.top nav a { color: var(--muted); font-family: var(--disp); font-weight: 600; }
header.top nav a:hover, header.top nav a.active { color: var(--ink); }
header.top .brand { color: var(--ink); }
header.top .brand-slogan { color: var(--muted); }
header.top .lang { border-color: var(--ink); }
header.top .lang button { color: var(--ink); }
header.top .lang button + button { border-left-color: var(--ink); }
header.top .lang button.on { background: var(--ink); color: var(--paper); }
.bell-btn, .hdr-btn:not([hidden]) {
  background: #fff !important; color: var(--ink) !important;
  border: 2.5px solid var(--ink) !important; border-radius: 50% !important;
  box-shadow: 2px 2px 0 var(--ink);
}
.bell-count:not([hidden]) { background: var(--red); color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.hdr-dot:not([hidden]) { background: var(--red); box-shadow: 0 0 0 2px #fff; }

/* ---------- Karten überall: Panel mit harter Schattenkante ---------- */
.card {
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
button.primary, .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip { border: 2px solid var(--ink); font-weight: 800; }
.chip.on { background: var(--mint); color: var(--ink); }

/* ---------- Tab-Leiste: schwebende Pille ---------- */
@media (max-width: 760px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Die Leiste selbst ist nur ein unsichtbarer, klebender Rahmen; die Pille darin trägt Look und Animation. */
  .tabbar {
    left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tab-pill {
    flex: 1; display: flex; padding: 6px 6px; border-radius: 999px;
    background: #fff;
    border: 2.5px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
  }
  .tabbar a { font-family: var(--disp); font-weight: 600; font-size: 11px; color: var(--muted); }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active .tab-icon svg { stroke: var(--ink); }
  .tabbar a.active .tab-icon { background: var(--mint); border-radius: 9px; box-shadow: 0 0 0 2px var(--ink); }
  .tab-icon { display: grid; place-items: center; width: 34px; height: 28px; }
  .tab-icon svg { width: 22px; height: 22px; stroke-width: 2.1; }
}

/* ---------- Ansicht "Heute" ---------- */
#heuteView { display: none; }
body[data-view="heute"] #heuteView { display: grid; }   /* grid, sonst greift der Kachelabstand (gap) nicht */
body[data-view="heute"] .toolbar,
body[data-view="heute"] #chips,
body[data-view="heute"] .layout { display: none; }

.hx { max-width: 520px; margin: 0 auto; display: grid; gap: 22px; padding-top: 6px; }

.hx-panel {
  position: relative;
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 36px 14px 14px;
  overflow: hidden;
}
.hx-cap {
  position: absolute; top: -2px; left: 14px;
  background: var(--sun); color: var(--ink);
  border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px;
  padding: 4px 10px 5px;
  font: 600 13px/1.1 var(--disp); letter-spacing: .04em; text-transform: uppercase;
  max-width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hx-cap.red { background: var(--red); color: #fff; }
.hx-cap.mint { background: var(--mint); }
.hx-empty { margin: 4px 0 0; color: var(--muted); font-weight: 700; }

.hx-sticker {
  width: 60px; height: 60px; flex: none; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center;
}
.hx-sticker img { width: 80%; height: 80%; object-fit: contain; }
.hx-sticker .hx-ball { font-size: 26px; }
.hx-sticker.mini { width: 26px; height: 26px; border-width: 0; box-shadow: none; background: transparent; }
.hx-sticker.mini { padding: 0; }   /* sonst gibt die alte .mini-Regel (style.css) dem Wappen 5 px Rand links und rechts */
.hx-sticker.mini img { width: 100%; height: 100%; }
.hx-sticker.tilt { width: 64px; height: 64px; transform: rotate(-6deg); }

/* Moment-Panel */
.hx-moment { padding-bottom: 0; background: linear-gradient(180deg, var(--panel) 0 205px, var(--mint) 205px 100%); }
.hx-moment.is-live { background: linear-gradient(180deg, var(--panel) 0 205px, var(--mint) 205px 100%); }
.hx-minute {
  position: absolute; top: 10px; right: 12px;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 4px 10px;
  font: 600 14px/1.1 var(--disp);
}
.hx-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; cursor: pointer; }
.hx-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.hx-team b { font: 600 16px/1.15 var(--disp); max-width: 100%; overflow-wrap: anywhere; }
.hx-big { font: 700 60px/1 var(--disp); padding: 0 8px; font-variant-numeric: tabular-nums; }
.hx-big.hx-kickoff { font-size: 40px; }
.hx-league { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }

.hx-stage { margin-top: 16px; padding-bottom: 14px; }
.hx-stage .torlaut-says {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 6px;
  margin: 0; padding: 0; background: none; border: 0; box-shadow: none;
}
.hx-stage .torlaut-says .tl-mascot {
  order: 2; width: 150px; height: 150px; object-fit: contain; object-position: bottom;
  margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; filter: none;
}
.hx-stage .torlaut-says .tl-mascot.tl-flip { transform: scaleX(-1); }   /* schaut zur Sprechblase (common.js FLIP_MOODS) */
.hx-stage .torlaut-says .tl-bubble {
  order: 1; position: relative; margin: 0 0 30px;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 12px 11px; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.hx-stage .torlaut-says .tl-bubble::before, .hx-stage .torlaut-says .tl-bubble::after {
  content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent;
  top: auto; left: auto; transform: none; background: none; box-shadow: none;
}
.hx-stage .torlaut-says .tl-bubble::after { right: -15px; bottom: 14px; border-width: 9px 0 9px 14px; border-left-color: var(--ink); }
.hx-stage .torlaut-says .tl-bubble::before { right: -9px; bottom: 16px; border-width: 7px 0 7px 11px; border-left-color: #fff; z-index: 1; }
.hx-stage .torlaut-says .tl-bubble strong { background: linear-gradient(transparent 55%, var(--mint) 55%); }
.hx-stage .torlaut-says .tl-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.hx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -8px; }
.hx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--disp); padding: 10px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  cursor: pointer; text-decoration: none; max-width: 100%;
}
.hx-btn.dark { background: var(--ink); color: var(--paper); }
.hx-btn .hx-sticker.mini { width: 20px; height: 20px; }

/* Spielfrei */
.hx-rest { background: linear-gradient(180deg, var(--panel) 0 120px, var(--mint) 120px 100%); }
.hx-rest-title { font: 700 26px/1.1 var(--disp); margin: 0 0 4px; }
.hx-rest .hx-stage { margin-top: 18px; }
.hx-rest .hx-stage .torlaut-says { grid-template-columns: minmax(0, 1fr) 160px; }
.hx-rest .hx-stage .torlaut-says .tl-mascot { width: 160px; height: 170px; }
/* langer Knopf (Datum · Uhrzeit) reicht sonst unter die Figur und verdeckt die Schuhe */
.hx-rest .hx-actions { margin-top: 6px; }

/* Titelblatt: alle Spiele des Tages, darunter Torlaut */
.hx-front { padding-bottom: 0; }
.hx-front.no-tl { padding-bottom: 14px; }
.fx-rows { display: grid; }
.fx-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 9px 0; margin: 0; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 0; border-bottom: 2px dashed rgba(20, 20, 20, .12);
  color: var(--ink); font: inherit; cursor: pointer;
}
.fx-row:last-child { border-bottom: 0; }
.fx-main { min-width: 0; }
.fx-match { display: flex; align-items: center; gap: 6px; font: 600 15px/1.2 var(--disp); white-space: nowrap; min-width: 0; }
.fx-crest { width: 22px; height: 22px; object-fit: contain; flex: none; }
.fx-short { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-res { font: 700 19px/1 var(--disp); font-variant-numeric: tabular-nums; padding: 0 2px; }
.fx-time { font: 600 14px/1 var(--disp); color: var(--muted); padding: 0 2px; font-variant-numeric: tabular-nums; }
.fx-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; padding-left: 28px;
  font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; }
.fx-gold { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--ink); flex: none; white-space: nowrap; }
.fx-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* lange Liga kürzen, nie das Gold */
.fx-gold.up { color: var(--mint-deep); }
.fx-gold.down { color: var(--muted); }
.fx-tips { display: flex; gap: 5px; }
.fx-tips .hx-tip { min-width: 42px; height: 34px; font-size: 16px; border-radius: 10px; }
.fx-tips .hx-tip.empty { font-size: 12px; }
.fx-stage { margin: 10px -14px 0; padding: 14px 14px 0; border-top: 2px dashed rgba(20, 20, 20, .12); }
.fx-stage .torlaut-says .tl-bubble { margin-bottom: 24px; font-size: 14px; background: var(--mint); }
.fx-stage .torlaut-says .tl-bubble::before { border-left-color: var(--mint); }
.fx-mascot { order: 2; display: block; line-height: 0; }
.fx-stage .torlaut-says .fx-mascot .tl-mascot { width: 140px; height: 140px; }
.fx-note { margin-top: 6px; font-size: 13px; color: var(--ink); }

/* Du gegen Torlaut */
.hx-tally { position: absolute; top: 10px; right: 14px; font: 600 13px/1.2 var(--disp); color: var(--mint-deep); }
.hx-tally .c-you { color: var(--you-text); }
.c-you { color: var(--you-text); }
.st-chip.you { color: var(--you-text); border-color: var(--you); }
.hx-tally .c-tl { color: var(--mint-deep); }
.hx-rows { display: grid; }
.hx-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 0; margin: 0; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 0; border-bottom: 2px dashed rgba(20, 20, 20, .12);
  color: var(--ink); font: inherit; cursor: pointer;
}
.hx-row:last-child { border-bottom: 0; }
.hx-row-main { min-width: 0; }
.hx-teams { display: flex; align-items: center; gap: 7px; font: 600 15px/1.25 var(--disp); min-width: 0; }
.hx-teams + .hx-teams { margin-top: 3px; }
.hx-teams .hx-sticker.mini { width: 22px; height: 22px; }
.hx-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hx-when { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 5px; padding-left: 29px; }
.hx-live { color: var(--live); font-weight: 800; }
.hx-vs { display: flex; align-items: center; gap: 6px; }
.hx-vs small { font: 600 12px/1 var(--disp); color: var(--muted); }
.hx-tip {
  min-width: 46px; height: 38px; padding: 0 6px; display: grid; place-items: center;
  font: 700 18px/1 var(--disp); border-radius: 12px; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-variant-numeric: tabular-nums;
}
.hx-tip.you { background: var(--you); color: var(--ink); }
.hx-tip.tl { background: var(--mint); color: var(--ink); }
.hx-tip { position: relative; }
.hx-tip.hit::after, .md-slot.hit::after {   /* Volltreffer: Stern-Sticker statt Rahmen (Rahmen ginge auf Gelb unter) */
  content: "★"; position: absolute; top: -10px; right: -9px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--sun); font: 700 13px/20px var(--disp); text-align: center; }
.hx-tip.hit.now::after, .md-slot.hit.now::after { animation: hit-wobble 1.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes hit-wobble { 0%, 60%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .hx-tip.hit.now::after, .md-slot.hit.now::after { animation: none; } }
.hx-tip.empty {
  background: transparent; border-style: dashed; box-shadow: none; color: var(--muted);
  font: 800 13px/1 "Nunito", sans-serif;
}
.hx-legend { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: 11px; font-weight: 800; color: var(--muted); }
.hx-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px;
  border: 1.5px solid var(--ink); vertical-align: -1px; }
.hx-legend .you::before { background: var(--you); }
.hx-legend .tl::before { background: var(--mint); }
.hx-legend a { margin-left: auto; color: var(--ink); font: 600 12px/1 var(--disp); }

/* Ausgegraben: Kartenstapel */
.hx-more { position: absolute; top: 10px; right: 14px; font: 600 13px/1.2 var(--disp); color: var(--ink); }
.hx-deck { display: grid; padding: 4px 12px 12px 0; }
.hx-deck > * { grid-area: 1 / 1; }
.hx-ghost {
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
}
.hx-ghost.g1 { background: var(--mint); transform: translate(6px, 6px) rotate(1.6deg); }
.hx-ghost.g2 { background: var(--sun); transform: translate(12px, 11px) rotate(3.4deg); }
.hx-card {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 12px; background: #fff; color: var(--ink); text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s ease-out, opacity .18s ease-out;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hx-card img { -webkit-user-drag: none; }
.hx-card.in-next { animation: hxInNext .22s ease-out; }
.hx-card.in-prev { animation: hxInPrev .22s ease-out; }
@keyframes hxInNext { from { transform: translate(14px, 12px) rotate(3deg); } to { transform: none; } }
@keyframes hxInPrev { from { transform: translateX(-30px) rotate(-4deg); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-card.in-next, .hx-card.in-prev { animation: none; } }
.hx-kicker { font: 600 12px/1 var(--disp); color: var(--mint-deep); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.hx-card h3 { font: 600 18px/1.18 var(--disp); margin: 0; }
.hx-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.3; }
.hx-src { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.hx-deck-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.hx-dots { display: flex; gap: 6px; }
.hx-dots span { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.hx-dots span.on { background: var(--ink); }
.hx-arrow {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); font: 700 20px/1 var(--disp);
}

/* Comic-Bereich (heute.js hxComicPanel): Banner + wischbare Comic-Karten */
.hx-comic { padding: 12px 14px 10px; background: var(--paper); }
.hx-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.hx-banner b { display: inline-block; background: var(--sun); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 12px; font: 700 17px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; transform: rotate(-2deg); white-space: nowrap; }
.hx-banner small { font: 600 12px/1.2 var(--disp); color: var(--muted); text-align: right; }
.cx-deck .hx-deck { padding: 4px 12px 12px 0; }
.cx-card { position: relative; display: block; padding: 0; overflow: hidden; min-height: 300px; }
.cx-burst { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 70% 60%, var(--c1) 0 7deg, var(--c2) 7deg 14deg); }
.cx-dots { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, .2) 1.4px, transparent 1.7px) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(circle at 70% 60%, transparent 25%, #000 75%); mask: radial-gradient(circle at 70% 60%, transparent 25%, #000 75%); }
.cx-zap { position: absolute; width: 26px; height: 8px; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 3px; }
.cx-zap.z1 { left: 12px; top: 98px; transform: rotate(-35deg); }
.cx-zap.z2 { right: 14px; top: 100px; transform: rotate(35deg); }
.cx-head { position: relative; z-index: 3; padding: 10px 10px 0; }
.cx-lab { display: inline-block; max-width: 100%;
  background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); border-radius: 999px;
  padding: 4px 10px; font: 700 12px/1.1 var(--disp); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-lab.red { background: var(--red); color: #fff; }
.cx-lab.mint { background: var(--mint); }
.cx-lab.sun { background: var(--sun); }
.cx-row { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 0; }
.cx-chips { display: flex; gap: 5px; margin: 0; padding: 0; background: none; border: 0; cursor: pointer; flex: none; }
.cx-chips .hx-tip { min-width: 40px; height: 32px; font-size: 15px; border-radius: 10px; background: #fff; }
.cx-chips .hx-tip.you { background: var(--you); }
.cx-chips .hx-tip.tl { background: var(--mint); }
.cx-chips .hx-tip.empty { background: #fff; }
.cx-stage { position: relative; z-index: 2; padding: 14px 10px 0; }
.cx-stage .torlaut-says {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 4px;
  margin: 0; padding: 0; background: none; border: 0; box-shadow: none;
}
.cx-stage .torlaut-says .tl-mascot { order: 2; width: 150px; height: 170px; object-fit: contain; object-position: bottom;
  margin: 0 0 -6px; border: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.cx-stage .torlaut-says .tl-mascot.tl-flip { transform: scaleX(-1); }
.cx-stage .torlaut-says .tl-bubble {
  order: 1; position: relative; margin: 0 0 24px; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 12px 11px; font: 600 15px/1.2 var(--disp); transform: rotate(-1.5deg);
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;   /* „Phrasenschwein“ passt sonst nicht in die Blase */
}
.cx-stage .torlaut-says .tl-bubble::before, .cx-stage .torlaut-says .tl-bubble::after {
  content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent; top: auto; left: auto; transform: none; background: none; box-shadow: none;
}
.cx-stage .torlaut-says .tl-bubble::after { right: -16px; bottom: 14px; border-width: 9px 0 9px 15px; border-left-color: var(--ink); }
.cx-stage .torlaut-says .tl-bubble::before { right: -9px; bottom: 16px; border-width: 7px 0 7px 11px; border-left-color: #fff; z-index: 1; }
.cx-stage .torlaut-says .tl-bubble strong { background: linear-gradient(transparent 55%, var(--mint) 55%); }
.cx-stage .torlaut-says .tl-tip { display: block; margin-top: 6px; font: 700 12.5px/1.2 "Nunito", sans-serif; color: var(--muted); }
.cx-stage .torlaut-says .tl-mine { display: none; }
.cx-sign { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; margin: 0; min-width: 0; overflow: hidden;
  background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink);
  font: 600 14px/1 var(--disp); cursor: pointer; }
.cx-sign img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cx-sign b { font: 700 18px/1 var(--disp); font-variant-numeric: tabular-nums; }
.cx-sign i { font: 600 13px/1 var(--disp); color: var(--muted); font-style: normal; }

/* ================================================================ Spieldetails (matchdetails.js) */
.match-dialog {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 20, 20, .06) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
}
@media (max-width: 760px) {
  .match-dialog {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh !important; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
}
.match-dialog .dlg-head { border-bottom: 0; padding: 10px 14px 4px; flex-direction: row-reverse; }
.match-dialog .dlg-head h3 { font: 600 13px/1.2 var(--disp); color: var(--muted); text-align: right; }
#matchClose {
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); font: 700 16px/1 var(--disp);
}

/* Kopf-Panel */
#matchHeader { padding: 8px 14px 0; }
.md-head { padding: 36px 12px 12px; }
.md-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.md-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.md-team b { font: 600 15px/1.15 var(--disp); overflow-wrap: anywhere; }
.md-team .hx-sticker { width: 68px; height: 68px; transition: all .2s ease; }
.md-big { font: 700 54px/1 var(--disp); padding: 0 8px; font-variant-numeric: tabular-nums; transition: font-size .2s ease; }
.md-ko { text-align: center; padding: 0 8px; }
.md-ko b { display: block; font: 700 34px/1 var(--disp); }
.md-ko small { font-size: 12px; font-weight: 800; color: var(--muted); }
.md-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.md-chips span {
  font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-chips span.tv { background: var(--sun); }
/* Nachrichten zu diesem Spiel: drei Knöpfe als Leiste */
.md-notify { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 10px; }
.md-notify-ico { font-size: 14px; margin-right: 2px; }
.md-notify-btn {
  font: 800 12px/1 Nunito, system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.md-notify-btn.on { background: var(--ink); color: var(--paper); }
/* kleiner Kopf beim Scrollen */
.match-dialog.head-small .md-head { padding: 30px 12px 8px; }
.match-dialog.head-small .md-chips, .match-dialog.head-small .md-notify, .match-dialog.head-small .md-team b { display: none; }
.match-dialog.head-small .md-team .hx-sticker { width: 48px; height: 48px; }
.match-dialog.head-small .md-big { font-size: 32px; }
.match-dialog.head-small .md-ko b { font-size: 22px; }

/* Reiter als Chips */
.match-dialog .seg {
  margin: 14px 14px 4px; padding: 0; background: none; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.match-dialog .seg::-webkit-scrollbar { display: none; }
.match-dialog .seg button {
  flex: none; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font: 600 13px/1 var(--disp); color: var(--ink); box-shadow: none;
}
.match-dialog .seg button.on { background: var(--ink); color: var(--paper); box-shadow: none; }
#matchBody { padding: 14px 14px 24px; }
#matchBody > .hx-panel + .hx-panel { margin-top: 22px; }

/* Duell: zwei Tipp-Felder */
.md-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-slot {
  border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 8px 12px; text-align: center;
  box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.md-slot.you { background: var(--you); color: var(--ink); }
.md-slot.tl { background: var(--mint); color: var(--ink); }
.md-slot.talkable { position: relative; cursor: pointer; }
.md-slot.talkable:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* kleiner Sticker als Hinweis: die Karte lässt sich antippen */
.md-why { position: absolute; top: -12px; right: -8px; background: #fff; border: 2px solid var(--ink); border-radius: 99px;
  padding: 2px 8px; font: 700 12px/1.2 var(--disp); transform: rotate(6deg); box-shadow: 2px 2px 0 var(--ink); }
.md-slot.hit::after { width: 26px; height: 26px; font-size: 16px; line-height: 26px; top: -12px; right: -10px; }
.md-slot.talkable.hit::after { right: auto; left: -10px; }   /* rechts oben sitzt schon „Wie war's?“ */
.md-slot small { font: 600 12px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.md-slot > b { font: 700 40px/1 var(--disp); font-variant-numeric: tabular-nums; }
.md-slot .hx-btn { padding: 7px 12px; font-size: 13px; }
.md-slot-note { font-size: 12px; font-weight: 800; min-height: 15px; }
.md-sure { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; }
.md-boxes { display: flex; gap: 4px; }
.md-boxes i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); background: #fff; }
.md-boxes i.f { background: var(--ink); }
.md-badge {
  margin-top: 12px; padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff;
  font-weight: 800; font-size: 14px; text-align: center;
}

/* Formcheck */
.md-form-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; }
.md-form-name { min-width: 0; }
.md-form-name > b { display: block; font: 600 15px/1.2 var(--disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-form-row .hx-sticker.mini { width: 34px; height: 34px; }
.md-trend { display: inline-block; margin-top: 3px; font: 600 11px/1 var(--disp); border: 2px solid var(--ink); border-radius: 99px;
  padding: 2px 7px; transform: rotate(-4deg); }
.md-trend.up { background: var(--mint); }
.md-trend.flat { background: var(--sun); }
.md-trend.down { background: var(--red); color: #fff; }
/* Formkurve: 5 Balken, höchstens so groß wie früher die Kästchen (24 × 28) */
.md-form-bars { display: flex; gap: 5px; align-items: flex-end; height: 30px; }
.md-form-bars i { width: 24px; border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.md-form-bars i.lv1 { height: 10px; }
.md-form-bars i.lv2 { height: 19px; }
.md-form-bars i.lv3 { height: 28px; }
.md-form-bars i.s { background: var(--mint); }
.md-form-bars i.u { background: #c4bcab; }   /* Remis = warmes Grau (Gelb ist "du") */
.md-form-bars i.n { background: var(--red); }
.md-fazit { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.md-sub { margin-top: 14px; font: 600 12px/1 var(--disp); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.md-h2h-last {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px;
  margin-top: 8px; border: 2px dashed var(--ink); border-radius: 10px; padding: 8px 10px; font: 600 14px/1.2 var(--disp);
}
.md-h2h-last .home { text-align: right; }
.md-h2h-last b { font: 700 22px/1 var(--disp); font-variant-numeric: tabular-nums; }

/* Torlauts Lage: die große Figur auf gelbem Boden */
.md-lage { padding-bottom: 0; background: linear-gradient(180deg, var(--panel) 0 45%, var(--sun) 45% 100%); }
.md-lage .hx-stage { margin-top: 4px; }
.md-lage .torlaut-says .tl-tip { display: block; }

/* Verlauf, Statistik, Aufstellung, Bericht im Panel-Stil */
.tl-event { background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.tl-event.goal, .tl-event.penalty, .tl-event.owngoal { background: var(--mint); }
.tl-minute { font: 700 13px/1 var(--disp); }
.tl-phase { font-family: var(--disp); font-weight: 600; color: var(--ink); }
.tl-phase::before, .tl-phase::after { height: 2px; background: var(--ink); opacity: .2; }
.tl-comment .tl-mascot { display: none; }   /* keine kleinen Figuren – Torlaut spricht als Sprechblase */
.tl-comment-bubble { background: var(--mint) !important; border: 2px solid var(--ink); color: var(--ink) !important; }
.stat-bar { height: 10px; gap: 4px; }
.stat-bar span { border: 2px solid var(--ink); border-radius: 4px; }
.stat-bar .home { background: var(--ink); }
.stat-bar .away { background: var(--sun); }
.lineup h4 { font-family: var(--disp); }
.report p { background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.report-mascot { width: 110px; height: 110px; }
.report-head strong { font-family: var(--disp); font-size: 18px; font-weight: 600; }

/* ================================================================ Kalender als Stickeralbum (album.js) */
#albumView { display: none; }
body[data-view="kalender"] #albumView { display: grid; }
body[data-view="kalender"] .toolbar,
body[data-view="kalender"] #chips,
body[data-view="kalender"] .layout { display: none; }

.al-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; margin-bottom: -8px; }
.al-head h1 { margin: 0; font: 700 28px/1.1 var(--disp); }
.al-head small { font-size: 12px; font-weight: 800; color: var(--muted); }

.al-week { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-bottom: -6px; }
.al-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.al-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; margin: 0;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: inherit;
}
.al-day small { font: 600 10px/1 var(--disp); color: var(--muted); text-transform: uppercase; }
.al-day b { font: 700 16px/1 var(--disp); }
.al-day i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.al-day i:not([class]), .al-day i[class=""] { border-color: transparent; background: transparent; }
.al-day i.f { background: var(--mint); }
.al-day i.h { background: var(--sun); }
.al-day.none { opacity: .55; border-style: dashed; }
.al-day.today b { color: var(--mint-deep); }
.al-day.on { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); opacity: 1; }
.al-day.on small { color: var(--paper); opacity: .8; }
.al-day.on.today b { color: var(--mint); }

.al-sub { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.al-league { font: 600 12px/1 var(--disp); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 8px; }
.al-league:first-of-type { margin-top: 2px; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.al-stk {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px 9px; margin: 0; min-width: 0;
  border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font: inherit; text-align: center; cursor: pointer;
}
.al-stk.glued { transform: rotate(-1.4deg); }
.al-grid .al-stk.glued:nth-child(2n) { transform: rotate(1.2deg); }
.al-stk.empty { background: transparent; border-style: dashed; box-shadow: none; }
.al-stk.empty .al-pair img { filter: grayscale(1); opacity: .45; }
.al-stk.st-live { border-color: var(--red); }
.al-pair { display: flex; align-items: center; gap: 6px; }
.al-pair img, .al-noc { width: 32px; height: 32px; object-fit: contain; display: grid; place-items: center; }
.al-pair b { font: 700 16px/1 var(--disp); min-width: 30px; }
.al-names { display: grid; font-size: 11px; font-weight: 800; line-height: 1.2; width: 100%; }
.al-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-when { font-size: 11px; font-weight: 700; color: var(--muted); }
.al-pill {
  font: 600 11px/1 var(--disp); padding: 4px 8px; border-radius: 999px; border: 2px solid var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-pill.hit { background: var(--mint); }
.al-pill.half, .al-pill.open { background: var(--sun); }
.al-pill.miss { border-style: dashed; color: var(--muted); }
.al-pill.ask { background: var(--ink); color: var(--paper); }
.al-pill.live { background: var(--red); color: #fff; border-color: var(--red); }
.al-stamp {
  position: absolute; top: -9px; right: -8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 var(--disp);
  border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transform: rotate(12deg);
}
.al-stamp.ok { background: var(--mint); }
.al-blank {
  border: 2.5px dashed var(--ink); border-radius: 14px; padding: 26px 16px; text-align: center;
  font-weight: 800; color: var(--muted); opacity: .8;
}
/* leere Albumseite: Spiele anderswo bzw. News */
.al-else-head { margin: 2px 0 10px; font-weight: 800; }
.al-else-group .al-league { margin: 14px 0 6px; }
.al-else-group:first-of-type .al-league { margin-top: 4px; }
.al-else-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%;
  margin: 0 0 6px; padding: 9px 10px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.al-else-row .lr-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.al-else-row .lr-team:last-child { flex-direction: row-reverse; text-align: right; }
.al-else-row .lr-team img, .al-else-row .nologo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.al-else-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.al-else-row strong { font: 700 15px/1 var(--disp); font-variant-numeric: tabular-nums; padding: 0 4px; }
.al-else-row.live strong { color: var(--live); }
.live-row .live { color: var(--live); font-weight: 700; }
.ldx-pot { margin: 10px 0 0; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff3c4; font-weight: 700; text-align: center; }
.al-news .kiosk-news { border-top: 2px dashed var(--line); }
.al-news .kiosk-news:first-child { border-top: 0; padding-top: 0; }
.al-news .kiosk-headline { color: var(--ink); font-weight: 700; text-decoration: none; }
.al-flip { display: flex; justify-content: space-between; margin-top: 14px; }
.al-flip .linkbtn { font: 600 13px/1 var(--disp); color: var(--ink); background: none; border: 0; padding: 4px 0; }

.al-stand { padding-bottom: 14px; background: linear-gradient(180deg, var(--panel) 0 32px, var(--panel) 100%); }
.al-stand .hx-stage { margin-top: 0; padding-bottom: 6px; }
.al-stand .hx-stage .torlaut-says { grid-template-columns: minmax(0, 1fr) 120px; }
.al-stand .hx-stage .torlaut-says .tl-mascot { width: 120px; height: 120px; }
.al-stand .hx-stage .torlaut-says .tl-bubble { margin-bottom: 18px; }
.al-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.al-bar i { width: 18px; height: 12px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.al-bar i.f { background: var(--mint); }
.al-bar i.h { background: var(--sun); }
.al-bar i.later { border-style: dashed; opacity: .5; }
.al-stand .al-sub { margin: 8px 0 0; }

/* ================================================================ Live-Seite */
.live-view { max-width: 520px; margin: 0 auto; }
.live-head h2 { font: 700 26px/1.1 var(--disp); }
.live-list { display: grid; gap: 22px; }
.hx-lc { padding-bottom: 14px; }
.hx-lc-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; cursor: pointer; }
.hx-lc-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hx-lc-team:last-child { flex-direction: row-reverse; text-align: right; }
.hx-lc-team b { font: 600 15px/1.15 var(--disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-lc-team .hx-sticker.mini { width: 30px; height: 30px; }
.hx-lc-big { font: 700 36px/1 var(--disp); font-variant-numeric: tabular-nums; }
.hx-lc-tips { justify-content: center; margin-top: 10px; }
.hx-lc-say .torlaut-says { display: block; margin: 12px 0 0; padding: 0; background: none; border: 0; box-shadow: none; }
.hx-lc-say .tl-bubble {
  margin: 0; background: var(--mint); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 9px 12px; font-size: 14px; font-weight: 700; box-shadow: none;
}
.hx-lc-say .tl-bubble::before, .hx-lc-say .tl-bubble::after { display: none; }
.hx-lc-say .tl-tip { display: none; }
#liveList .hx-rest { background: var(--sun); }

/* Tagesduell live, Live-Fragen, Hinweis „läuft woanders“: Panels statt Stadion, keine kleinen Figuren */
.live-view .fold { border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); margin-bottom: 22px; }
.live-view .fold-title { font: 600 17px/1.1 var(--disp); }
.live-view .stadium { background: #fff !important; border: 2.5px solid var(--ink) !important; border-radius: 14px !important;
  box-shadow: 3px 3px 0 var(--ink) !important; color: var(--ink) !important; }
.live-view .stadium::before, .live-view .stadium::after { display: none !important; }
.live-view .ld-mascot, .live-view .kiosk-say .tl-mascot, .live-hint .tl-mascot { display: none; }
.live-view .ld-avatar { background: var(--you); color: var(--ink); border: 2px solid var(--ink); }
.live-view .ld-score { font-family: var(--disp); color: var(--ink); }
.live-view .ld-side.user .ld-score { color: var(--you-text); }
.live-view .ld-side.torlaut .ld-score { color: var(--mint-deep); }
.live-view .ld-label { color: var(--ink); font-family: var(--disp); }
.live-view .kiosk-say .tl-bubble { background: var(--mint); border: 2.5px solid var(--ink); border-radius: 14px; color: var(--ink); }
.live-view .kiosk-say .tl-bubble::before, .live-view .kiosk-say .tl-bubble::after { display: none; }
.live-view .day-duel-score { color: var(--ink); }
.lq { background: #fff; border: 2px solid var(--ink); }
.lq.open { background: var(--sun); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
/* Cojones-Tipp: Knall-Stern am mutigen Knopf, Eier-Kästchen als Mut-Barometer, Stempel nach der Auflösung */
.lq { position: relative; }
.lq-buttons.lq-mut { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 14px; }
.lq-opt { display: grid; justify-items: center; gap: 4px; }
.lq-btn { position: relative; width: 100%; justify-content: center; font-family: var(--disp); font-weight: 600; font-size: 16px;
  background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 9px 4px; }
.lq-burst { position: absolute; top: -31px; right: -14px; width: 64px; height: 42px; background: var(--ink); transform: rotate(9deg);
  clip-path: polygon(50% 0, 59% 22%, 77% 6%, 75% 31%, 98% 28%, 84% 50%, 99% 72%, 77% 70%, 80% 97%, 61% 79%, 50% 100%, 39% 79%, 20% 97%, 23% 70%, 1% 72%, 16% 50%, 2% 28%, 25% 31%, 23% 6%, 41% 22%);
  display: grid; place-items: center; pointer-events: none; }
.lq-burst::before { content: ""; position: absolute; inset: 4px 5px; background: var(--red); clip-path: inherit; }
.lq-burst > span { position: relative; width: 4.2em; text-align: center; font: 700 10px/1 var(--disp); color: #fff; letter-spacing: .02em; }
.lq-eggs { display: flex; gap: 3px; }
.lq-eggs i { width: 12px; height: 15px; border: 2px solid var(--ink); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #fff; }
.lq-eggs i.on { background: var(--red); }
.lq-mutlabel { font: 600 10.5px var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lq-mutlabel.bold { color: var(--ink); }
.lq-coj { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lq-stamp { flex: none; transform: rotate(-12deg); border: 3px solid var(--red); color: var(--red);
  background: rgba(255,255,255,.88); border-radius: 10px; padding: 3px 9px; text-align: center; line-height: 1.05;
  font: 700 14px var(--disp); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.lq-stamp small { display: block; font-size: 9.5px; letter-spacing: .06em; }
.lq-stamp.miss { border-color: var(--muted); color: var(--muted); }
.lq-stamp.torlaut { border-color: var(--mint-deep); color: var(--mint-deep); }
.lq-coj-say { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 10px; font-weight: 700; font-size: 14px; flex: 1; }
.live-hint { border: 2.5px solid var(--ink); margin-top: 22px; }

/* ================================================================ Profil als Dauerkarte (einstellungen) */
main.narrow { max-width: 560px; }
/* jeder Abschnitt ein Panel mit Etikett oben links */
main.narrow > .card.section { position: relative; padding: 40px 16px 16px; margin-bottom: 22px; }
main.narrow > .card.section > h2 {
  position: absolute; top: -2px; left: 14px; margin: 0;
  background: var(--sun); color: var(--ink);
  border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px;
  padding: 4px 10px 5px; font: 600 13px/1.1 var(--disp); letter-spacing: .04em; text-transform: uppercase;
}
main.narrow > .skill-card > h2, main.narrow > .pf-duel > h2 { background: var(--mint); }
main.narrow > .pf-duel > h2 { background: var(--red); color: #fff; }

.tk { margin: 4px 0 24px; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
  position: relative; overflow: hidden; }
.tk::before, .tk::after {   /* Einkerbungen an der Abrisslinie */
  content: ""; position: absolute; bottom: 58px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--ink); transform: translateY(50%);
}
.tk::before { left: -15px; } .tk::after { right: -15px; }
.tk-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px; background: var(--mint);
  border-bottom: 2.5px solid var(--ink); }
.tk-top b { font: 700 18px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.tk-top span { font-size: 11px; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
.tk-body { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding: 14px 14px 12px; }
.tk-name { font: 700 26px/1.05 var(--disp); overflow-wrap: anywhere; }
.tk-role { font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.tk-seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tk-seat { border: 2px solid var(--ink); border-radius: 10px; padding: 5px 4px; text-align: center; }
.tk-seat small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tk-seat b { font: 700 18px/1.1 var(--disp); }
.tk-photo { width: 92px; height: 92px; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--you); color: var(--ink);
  display: grid; place-items: center; font: 700 42px/1 var(--disp); box-shadow: 2px 2px 0 var(--ink); }
.tk-foot { border-top: 2.5px dashed var(--ink); padding: 10px 18px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 58px; }
.tk-stamps { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-stamps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.tk-stamps i.tier-bronze { background: #d08a4e; }
.tk-stamps i.tier-silber { background: #c9ced6; }
.tk-stamps i.tier-gold { background: var(--sun); }
.tk-stamps i.tier-diamant { background: #7fd6ff; }
.tk-stamps i.tier-meister { background: var(--mint); }
.tk-foot small { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.tk-barcode { flex: none; width: 86px; height: 24px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); }

.pf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-kpi { text-align: center; border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 4px; background: #fff; }
.pf-kpi b { display: block; font: 700 26px/1 var(--disp); }
.pf-kpi small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-kpi.you { background: var(--you); color: var(--ink); } .pf-kpi.you small { color: var(--ink); opacity: .75; }
.pf-kpi.tl { background: var(--mint); }

/* Skill und Titel im Panel-Stil */
.skill-big { font-family: var(--disp); color: var(--you-text); }
.skill-stat { background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.skill-stat-value { font-family: var(--disp); }
.skill-title { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }
.skill-title.weak { background: #fff; border-style: dashed; }
.skill-title-name { font-family: var(--disp); font-weight: 600; color: var(--ink); }

/* ---------- Tagesduell live im hellen Panel-Look (Reste vom dunklen Stadion-Look übermalen) ---------- */
.live-view .ld-stadium { background: #fff; }
.live-view .ld-avatar { display: none; }                       /* Torlaut hat hier auch kein Gesicht – beide Spalten gleich hoch */
.live-view .ld-stadium .ld-colon { margin-top: 26px; color: var(--muted); opacity: 1; }
.live-view .ld-stadium .ld-side .ld-score { text-shadow: none; }
.live-view .ld-side.user .ld-label { color: var(--you-text); }
.live-view .ld-side.torlaut .ld-label, .live-view .ld-side.torlaut .ld-score { color: var(--mint-deep); }
.live-view .ld-alt, .live-view .ld-note { color: var(--muted); opacity: 1; }
.live-view .ld-stadium .ld-game { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; backdrop-filter: none; color: var(--ink); }
.live-view .ld-game.live .ld-mark { color: var(--live); }
.live-view .ld-game .ld-exact { color: var(--mint-deep); }
.c-tl { color: var(--mint-deep); }   /* helles Mint ist auf Weiß kaum lesbar */
.live-view .live-duel .tl-bubble .muted, .live-view .live-duel .tl-bubble small { color: var(--ink); opacity: .75; }

/* ---------- Profil ---------- */
.league > summary .count { white-space: nowrap; padding-left: 10px; }   /* "alle Mannschaften" nicht umbrechen */
.skill-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }        /* 4 Kacheln als 2×2 statt 3 + 1 */

/* Sprechblase "auf Kurs" (hellgrün): Zipfel ohne eckigen Hintergrund, in der Farbe der Blase */
.hx-stage .torlaut-says:is(.live.exact, .live.on_track, .done.exact, .done.tendency) .tl-bubble::before {
  background: none; border-left-color: var(--accent-soft);
}

/* iOS 26 (Web-App): fest positionierte Leisten rutschen beim Scrollen in die Bildschirmmitte, und fest
   positionierte Flächen werden unten am Home-Strich abgeschnitten. Darum ist die Leiste am Handy kein
   "fixed"-Element, sondern klebt (sticky) am Ende der normal scrollenden Seite. body als Spalte, damit sie
   auch auf kurzen Seiten ganz unten sitzt. */
@media (max-width: 760px) {
  body { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body > main { flex: 1 0 auto; width: 100%; }
  body > header.top { width: 100%; }
  .tabbar {
    position: sticky; top: auto; left: auto; right: auto; bottom: calc(10px + env(safe-area-inset-bottom));
    margin: 0 14px; transform: none; flex: none;
  }
}

/* Leiste schrumpft beim Runterscrollen (common.js: shrinkTabbarOnScroll): die Pille wird als Ganzes weich kleiner
   (nur transform/opacity – das rechnet das iPhone flüssig, ohne die Seite neu aufzubauen), die Beschriftung
   blendet aus, die Symbole rutschen in die Mitte, und die Pille wird durchscheinend.
   Verwandelt wird nur die innere Pille, nie der klebende Rahmen: sonst bleibt die Leiste am iPhone beim
   Scrollen mitten auf dem Bildschirm hängen. */
@media (max-width: 760px) {
  .tab-pill {
    transform-origin: 50% 100%;
    background-color: rgba(255, 255, 255, .8);   /* auch groß leicht durchscheinend, wie Milchglas */
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    transition: transform .7s cubic-bezier(.25,.75,.3,1), background-color .7s ease, box-shadow .7s ease;
  }
  .tabbar .tab-icon { transition: transform .7s cubic-bezier(.25,.75,.3,1); }
  .tabbar a > span:last-child { transition: opacity .45s ease; }
  .tabbar.mini .tab-pill {
    transform: scale(.76);
    background-color: rgba(255, 255, 255, .55);
    box-shadow: 3px 3px 0 rgba(20, 20, 20, .5);
  }
  .tabbar.mini .tab-icon { transform: translateY(8px) scale(1.12); }
  .tabbar.mini a > span:last-child { opacity: 0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .tab-pill, .tabbar .tab-icon, .tabbar a > span:last-child { transition: none; }
}

/* ---------- Tagesduell live: Stand-Kacheln + Spielzeilen (Comic-Panel) ---------- */
.ldx { display: grid; gap: 14px; }
.ldx-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.ldx-vs { font: 700 14px/1 var(--disp); color: var(--muted); }
.ldx-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px 10px; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
}
.ldx-tile.you { background: var(--you); color: var(--ink); }
.ldx-tile.tl { background: var(--mint); color: var(--ink); }
.ldx-tile small { font: 600 12px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; }
.ldx-tile > b { font: 700 56px/1 var(--disp); font-variant-numeric: tabular-nums; }
.ldx-avg { font-size: 12px; font-weight: 800; opacity: .85; }
.ldx-tile.lead { transform: rotate(-1.5deg); }
.ldx-tile.tl.lead { transform: rotate(1.5deg); }
.ldx-badge {
  position: absolute; top: -12px; right: -6px; transform: rotate(8deg);
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  padding: 2px 7px; font: 700 11px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .05em;
}
.ldx-fixed { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: -4px; }
.ldx-how { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 4px 8px 0; line-height: 1.35; }
.ldx-games { display: grid; gap: 10px; }
.ldx-game {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px;
  padding: 10px 12px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px;
}
.ldx-game.tappable { cursor: pointer; }
.ldx-match { display: grid; gap: 3px; min-width: 0; }
.ldx-mark { font: 700 12px/1 var(--disp); color: var(--muted); }
.ldx-game.live .ldx-mark { color: var(--live); }
.ldx-game.live .ldx-mark::before { content: "● "; }
.ldx-teams { display: flex; align-items: center; gap: 7px; font: 600 15px/1.2 var(--disp); white-space: nowrap; overflow: hidden; }
.ldx-crest { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ldx-res { font: 700 19px/1 var(--disp); font-variant-numeric: tabular-nums; }
.ldx-tips { display: flex; gap: 6px; }
.ldx-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; padding: 4px 3px 3px;
  border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}
.ldx-chip b { font: 700 17px/1 var(--disp); font-variant-numeric: tabular-nums; }
.ldx-chip small { font-size: 10.5px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.ldx-chip.you b { color: var(--you-text); }
.ldx-chip.tl b { color: var(--mint-deep); }
.ldx-chip.win { box-shadow: 2px 2px 0 var(--ink); }
.ldx-chip.you.win { background: var(--you); }
.ldx-chip.tl.win { background: var(--mint); }
.ldx-chip.you.win b, .ldx-chip.you.win small { color: var(--ink); }
.ldx-chip.tl.win b, .ldx-chip.tl.win small { color: var(--ink); }
.ldx-exact { grid-column: 1 / -1; font: 700 12px/1.2 var(--disp); color: var(--mint-deep); }
.ldx .ld-alt-note { margin-top: -4px; }
.ldx .kiosk-say .tl-bubble, .ldx .tl-bubble { background: #fff; box-shadow: 3px 3px 0 var(--ink); }

/* Aufgeklappt steht der Stand des Tagesduells groß in den Kacheln – oben in der Kopfzeile nur, wenn zugeklappt */
.live-duel-fold.open > .fold-head .fold-summary { visibility: hidden; }


/* Live: zugeklappte Bereiche im Comic-Stil – Stand als farbige Marken, Pfeil als runder Knopf */
.live-view .fold-head { padding: 12px 14px; }
.live-view .fold-summary { display: flex; align-items: center; gap: 5px; font: 700 15px/1 var(--disp); color: var(--muted); }
.live-view .fold-summary .c-you, .live-view .fold-summary .c-tl {
  min-width: 32px; padding: 6px 7px 5px; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 2px 2px 0 var(--ink);
  text-align: center; font: 700 18px/1 var(--disp); font-variant-numeric: tabular-nums;
}
.live-view .fold-summary .c-you { background: var(--you); color: var(--ink); }
.live-view .fold-summary .c-tl { background: var(--mint); color: var(--ink); }
.live-view .fold-chevron {   /* dicker Comic-Pfeil: zu = nach unten, offen = nach oben (dreht sich mit .open) */
  position: relative; display: block; width: 28px; height: 28px; flex: none; font-size: 0; color: transparent;
}
.live-view .fold-chevron::before {
  content: ""; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px;
  border-right: 4.5px solid var(--ink); border-bottom: 4.5px solid var(--ink); border-radius: 0 0 3px 0; transform: rotate(45deg);
}

/* Telegram: Auswahl im Profil, Schlüsselfeld auf der Systemseite */
.tg-mode { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 700; }
.tg-token { display: flex; gap: 8px; margin: 8px 0; }
.tg-token input { flex: 1; min-width: 0; }
.sess-title { margin: 18px 0 2px; font: 600 15px/1.2 var(--disp); }
.inbox-dot.read { visibility: hidden; }

/* Torlaut-Gold */
.tp-stake { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin: 4px 0; }
.tp-stake-label { font: 600 13px/1 var(--disp); margin-right: 2px; }
.tp-stake .chip { padding: 4px 11px; min-width: 38px; }
.tp-stake .chip.on { background: var(--sun); border-color: var(--ink); font-weight: 800; }
.tp-stake .chip:disabled { opacity: .35; }
.tp-stake small { width: 100%; }
.md-gold { font: 700 12px/1.2 var(--disp); background: rgba(255,255,255,.85); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 99px; padding: 2px 8px; }
.gold-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gold-box { border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); padding: 10px 12px; }
.gold-box.you { background: var(--sun); }
.gold-box.tl { background: var(--mint); }
.gold-box small { display: block; font: 600 12px/1 var(--disp); text-transform: uppercase; letter-spacing: .05em; }
.gold-box b { display: block; margin-top: 6px; font: 700 22px/1 var(--disp); font-variant-numeric: tabular-nums; }

/* Geschäftsbericht (Systemseite) */
.biz-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.biz-kpi { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: var(--panel); }
.biz-kpi small { display: block; font: 600 11px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.biz-kpi b { display: block; margin-top: 4px; font: 700 17px/1.2 var(--disp); }
.biz-kpi.plus b { color: var(--mint-deep); }
.biz-kpi.minus b { color: var(--red); }
.biz-sub { margin: 14px 0 4px; font: 600 14px/1.2 var(--disp); }

/* Pleite-Quiz */
.quiz .qz-host { padding-bottom: 0; background: linear-gradient(180deg, var(--panel) 0 55%, var(--sun) 55% 100%); }
.qz-say { display: flex; align-items: flex-end; gap: 8px; min-height: 170px; }
.qz-bubble { flex: 1; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 12px;
  font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 40px; }
.qz-mascot { width: 150px; height: 150px; display: block; }
.qz-ladder { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.qz-rung { text-align: center; font: 700 13px/1 var(--disp); padding: 6px 0; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.qz-rung.done { background: var(--mint); }
.qz-rung.now { background: var(--sun); transform: translateY(-3px); box-shadow: 2px 2px 0 var(--ink); }
.qz-meta { display: flex; justify-content: space-between; font: 600 13px/1 var(--disp); color: var(--muted); }
.qz-reward { color: var(--ink); }
.qz-time { height: 10px; border: 2px solid var(--ink); border-radius: 99px; margin: 8px 0 10px; overflow: hidden; background: #fff; }
.qz-time i { display: block; height: 100%; width: 100%; background: var(--mint); transition: width .1s linear; }
.qz-time i.hurry { background: var(--red); }
.qz-q { font: 700 20px/1.25 var(--disp); margin: 6px 0 12px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border: 2.5px solid var(--ink);
  border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 15px; color: var(--ink); }
.qz-opt b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font: 700 13px/1 var(--disp); flex: none; }
.qz-opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.qz-opt.gone { opacity: .25; text-decoration: line-through; }
.qz-opt.tl-pick { outline: 3px dashed var(--mint-deep); outline-offset: 2px; }
.qz-opt.right { background: var(--mint); }
.qz-opt.wrong { background: var(--red); color: #fff; }
.qz-jokers { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.qz-joker:disabled { opacity: .35; text-decoration: line-through; }
.qz-cash { width: 100%; }
.qz-rules { padding-left: 18px; margin: 0 0 12px; font-weight: 700; }
.qz-rules li { margin: 4px 0; }
.qz-start { width: 100%; font-size: 18px; }

/* Torlauts Side-Bet */
.md-side { margin-top: 12px; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; font-weight: 800;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.md-side p { margin: 0; }
.md-side.offer { background: var(--sun); transform: rotate(-.6deg); }
.md-side.won { background: var(--mint); }
.md-side.lost { background: #ffd9d5; }
.md-side.declined, .md-side.tie { color: var(--muted); box-shadow: none; border-style: dashed; }
.md-side-btns { display: flex; gap: 8px; margin-top: 8px; }
.lq-side { margin-top: 10px; font-size: 14px; }
.lq-reward { margin-top: 8px; font: 700 13px/1.2 var(--disp); }

/* Gold-Münze oben neben der Glocke */
.gold-pill { display: inline-flex; align-items: stretch; margin-left: auto; margin-right: 8px; overflow: hidden;
  border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 2px 2px 0 var(--ink);
  font: 700 15px/1 var(--disp); color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Zwei gleich breite Hälften (die längere Zahl gibt die Breite vor), Münze fest in der Mitte auf der Naht */
.gold-pill { display: inline-grid; grid-template-columns: 1fr 1fr; position: relative; }
.gold-pill > span { display: flex; align-items: center; justify-content: center; }
.gold-pill .gp-you { background: var(--sun); padding: 6px 19px 6px 12px; }
.gold-pill .gp-tl { background: var(--mint); padding: 6px 12px 6px 19px; }
.gold-pill > .gold-ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
/* Platz für die Doppel-Pille: der Slogan fällt dann weg */
header.top:has(.gold-pill:not([hidden])) .brand-slogan { display: none; }
.gold-pill[hidden] { display: none; }
.gold-pill:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.hx-gold { display: block; color: var(--ink); text-decoration: none; }
.gold-box em { display: block; margin-top: 4px; font: 700 12px/1.2 var(--disp); font-style: normal; }
.gold-box em.up { color: var(--mint-deep); }
.gold-box.tl em.up { color: var(--ink); }
.gold-box em.down { color: #c62b20; }
.gold-box em.flat { color: var(--muted); }
.hx-pot { margin: 10px 0 0; font: 700 13px/1.3 var(--disp); }
.hx-pot:empty { display: none; }
.hx-pot-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hx-pot-pick .chip { font: 700 14px/1 var(--disp); padding: 8px 12px; border-radius: 999px; border: 2.5px solid var(--ink, #141414);
  background: var(--sun, #ffd84d); color: var(--ink, #141414); box-shadow: 2px 2px 0 var(--ink, #141414); cursor: pointer; }
.hx-pot-pick .chip.no { background: #fff; box-shadow: none; }
.pot-pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* Volltreffer-Karte: verdientes Gold */
.card-gold { align-self: flex-start; margin-top: 6px; font: 700 12.5px/1.2 var(--disp); background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px; }
/* Duell: eine Mannschaft genau getroffen */
.md-onexact { font-style: italic; }

/* Tagesduell live: Gold pro Spiel unter der Note */
/* Gold eines fertigen Spiels: links oben neben "Ende" (deins goldgelb, Torlauts mint) */
.ldx-top { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.ldx-gold { display: inline-flex; align-items: center; gap: 2px; font: 800 11.5px/1 var(--disp); color: var(--muted); }
.ldx-gold.you.up { color: var(--you-text); }
.ldx-gold.tl.up { color: var(--mint-deep); }
.ldx-gold .gold-ico { transform: scale(.85); }

/* Wettschein (Gold nachrechnen) */
button.md-gold { cursor: pointer; font: 700 12px/1.2 var(--disp); }
.slip-dialog { border: 0; padding: 0; background: transparent; width: min(92vw, 420px); overflow: visible; }
.slip-dialog::backdrop { background: rgba(0,0,0,.6); }
.slip { background: #fffdf6; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 16px; display: grid; gap: 10px; color: var(--ink); max-height: 78vh; overflow: auto; }
.slip-title { font: 700 18px/1.1 var(--disp); }
.slip-match { font-weight: 800; color: var(--muted); margin-top: -6px; }
.slip-block { border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.slip-block.user { background: rgba(47, 116, 255, .06); }
.slip-block.torlaut { background: rgba(25, 240, 168, .10); }
.slip-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--disp); margin-bottom: 4px; }
.slip-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.slip-row.zero { color: var(--muted); }
.slip-pts { white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip-sum { border-top: 2px solid var(--ink); padding-top: 4px; margin-top: 2px; font-family: var(--disp); }
.slip-calc { margin-top: 4px; padding: 6px 10px; background: var(--sun); border: 2px solid var(--ink); border-radius: 10px;
  font: 700 15px/1.25 var(--disp); text-align: center; }
.slip-foot { font-size: 12.5px; color: var(--muted); margin: 0; }
.slip-close { justify-content: center; width: 100%; }
.tp-quote { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-quote:empty { display: none; }
.tp-q { border: 2px solid var(--ink); border-radius: 10px; padding: 5px 9px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.tp-q.win { background: var(--you); }
.tp-q.win:nth-last-child(2) { grid-column: 1 / -1; }   /* ohne Volltreffer-Feld: ganze Breite */
.tp-q small { font: 600 11.5px/1.1 var(--disp); color: var(--ink); width: auto; }
.tp-q b { font: 800 16px/1.15 var(--disp); color: var(--ink); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tp-sides { grid-column: 1 / -1; display: flex; gap: 10px; font: 600 12px/1.2 var(--disp); color: var(--muted); }
.tp-side.on { color: var(--ink); font-weight: 800; }
/* Tipp-Tafel: Einsatz, Gewinn und Knopf kleben unten, die Tafel scrollt darüber */
.tb-foot { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); margin: 0 -14px calc(-12px - env(safe-area-inset-bottom));
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface, #fff); border-top: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 8px; z-index: 1; }

.skill-big { white-space: nowrap; }

/* Gold-Symbol: kleiner Goldmünzen-Stapel (statt 🪙, das am iPhone silbern aussieht) – common.js goldIcon()/goldText() */
.gold-ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.24em; flex: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 16.4v3.2a9 3.4 0 0 0 18 0V16.4" fill="%23e3a008" stroke="%23141414" stroke-width="1.5"/><ellipse cx="12" cy="16.4" rx="9" ry="3.4" fill="%23ffd84d" stroke="%23141414" stroke-width="1.5"/><path d="M3 12v3.2a9 3.4 0 0 0 18 0V12" fill="%23e3a008" stroke="%23141414" stroke-width="1.5"/><ellipse cx="12" cy="12" rx="9" ry="3.4" fill="%23ffd84d" stroke="%23141414" stroke-width="1.5"/><path d="M3 7.6v3.2a9 3.4 0 0 0 18 0V7.6" fill="%23e3a008" stroke="%23141414" stroke-width="1.5"/><ellipse cx="12" cy="7.6" rx="9" ry="3.4" fill="%23ffd84d" stroke="%23141414" stroke-width="1.5"/><ellipse cx="12" cy="7.6" rx="5.2" ry="1.8" fill="none" stroke="%23b97d00" stroke-width="1.1"/><path d="M6.2 6.4q2-1.3 4.6-1.5" fill="none" stroke="%23fff6c8" stroke-width="1.2" stroke-linecap="round"/></svg>') center / contain no-repeat; }
.gold-pill .gold-ico { width: 22px; height: 22px; }

/* Quoten-Modell: Quoten 1/X/2 im Wettschein, Cash-out-Knopf im Duell */
.slip-sides { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.slip-sides > span:first-child { margin-right: auto; font-weight: 800; }
.slip-side { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border: 2px solid var(--ink);
  border-radius: 999px; background: #fff; color: var(--ink); }
.slip-side small { font-weight: 800; color: var(--muted); }
.slip-calc .gold-ico { margin-right: 4px; }
.md-cashout:empty { display: none; }
.md-cashout { margin-top: 6px; }
.md-cashout-btn { padding: 7px 12px; font-size: 13px; background: var(--sun); }

/* AG-Cockpit (System-Seite) */
.ag-curve-box { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 6px; }
.ag-curve { width: 100%; height: auto; display: block; }
.ag-curve .line { fill: none; stroke: var(--mint-deep); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ag-curve .dot { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.ag-curve .target { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .6; }
.ag-curve .zero { stroke: var(--red); stroke-width: 1; opacity: .5; }
.ag-rules { display: grid; gap: 8px; }
.ag-rule { display: grid; grid-template-columns: 1fr 84px 18px; align-items: center; gap: 8px; font-size: 14px; }
.ag-rule input { width: 100%; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; font-size: 16px; }
.ag-save { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* Resultatstafel (Tipp-Auswahl): Kacheln je Ergebnis, nach Wahrscheinlichkeit in drei Stufen */
.tb-wrap { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.tb-chips { display: flex; gap: 6px; }
.tb-chip { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 800 12.5px/1 Nunito, system-ui, sans-serif; }
.tb-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-chip img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.tb-chip.on { background: var(--ink); color: #fff; }
.tb-tier { margin-top: 6px; }
.tb-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 5px 2px; }
.tb-h b { font: 700 12.5px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; }
.tb-h small { font: 700 11.5px/1 Nunito, system-ui, sans-serif; color: var(--muted); }
.tb-grid { display: grid; gap: 8px; }
.tb-grid.g0 { grid-template-columns: repeat(3, 1fr); }
.tb-grid.g1 { grid-template-columns: repeat(4, 1fr); }
.tb-grid.g2 { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tb-s { position: relative; padding: 0; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font: 700 25px/1 var(--disp); height: 54px; font-variant-numeric: tabular-nums;
  transition: transform .12s ease-out; }
.tb-s.t1 { font-size: 19px; height: 44px; border-radius: 12px; border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); }
.tb-s.t2 { font-size: 14.5px; height: 36px; border-radius: 10px; border-width: 2px; box-shadow: none; background: var(--paper); }
.tb-s.tl { background: var(--accent-soft); }
.tb-s i { position: absolute; top: -9px; right: -6px; font: 800 9px/1 Nunito, system-ui, sans-serif; font-style: normal;
  text-transform: uppercase; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 5px; transform: rotate(6deg); }
.tb-s.t2 i { top: -8px; right: -5px; padding: 2px 3px; font-size: 7.5px; }
.tb-s.sel { background: var(--you); transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); z-index: 1; }
.tb-more { margin-top: 4px; width: 100%; border: 2.5px dashed var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
  font: 800 13px/1 Nunito, system-ui, sans-serif; padding: 10px; }
.tb-back { flex-basis: 100%; margin-top: 2px; }
.tb-s:hover, .tb-chip:hover, .tb-more:hover { border-color: var(--ink); }
.tb-hint { font: 700 13px/1.3 var(--disp); text-align: center; color: var(--ink); }
.tb-hint:empty { display: none; }
button.primary.tb-go { width: 100%; padding: 12px; font: 700 18px/1 var(--disp); background: var(--you); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
button.primary.tb-go:disabled { background: #fff; color: var(--muted); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .tb-s { transition: none; } }

/* "Dein Tipp" in Torlauts Sprechblase: Goldgelb-Schrift statt Blau (Du = Goldgelb) */
.tl-mine { color: var(--you-text); }
.ldx-noday { margin-top: 6px; font-weight: 700; }

/* Comic-Karte "Blick über den Zaun": Spiel außerhalb der eigenen Auswahl */
.cx-zaun { margin-left: 6px; display: inline-block; background: #fff; border: 2px dashed var(--ink); border-radius: 999px;
  padding: 3px 8px; font: 800 10.5px/1 Nunito, system-ui, sans-serif; vertical-align: 2px; color: var(--ink); }
.cx-head:has(.cx-zaun) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cx-head .cx-zaun { margin-left: 0; vertical-align: 0; }
.cx-sign i .cx-sign-day { display: block; font: 800 10px/1 Nunito, system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 2px; text-align: center; font-style: normal; }
.cx-sign i { text-align: center; }
.md-live-note { display: block; margin: 4px 0 2px; white-space: nowrap; font: 800 14px/1.2 Nunito, system-ui, sans-serif; color: var(--ink); }
.hx-quiz .hx-quiz-go { display: block; text-align: center; margin: 4px 14px 14px; }
/* Quiz mit Einsatz: Leiter in Gold, Stufen unter dem Einsatz blass, ab dem Netz mit Sicherheitsstrich */
.qz-stakes { display: grid; gap: 8px; margin-top: 10px; }
.qz-ladder.stake .qz-rung.under { opacity: .6; }
.qz-ladder.stake .qz-rung.net { box-shadow: inset 0 -4px 0 var(--mint); }
.qz-net { text-align: center; margin-top: 8px; }
/* Zonen-Streifen über der Leiter: rot = unter Einsatz, grün = Gewinnzone; Kassieren-Knopf in derselben Farbe */
.qz-zone { grid-row: 1; text-align: center; font: 700 10.5px/1 var(--disp); padding: 3px 0; border-radius: 6px;
  border: 2px solid var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-zone.loss { background: #ffd9d5; color: #a3241b; }
.qz-zone.win { background: var(--mint); }
.qz-ladder.stake .qz-rung { grid-row: 2; }
.qz-cash.plus { background: var(--mint); }
.qz-cash.minus { background: #ffd9d5; }
.qz-sec { color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-sec.hurry { color: #c53030; }
.qz-exit { display: block; width: 100%; margin: 2px 0 12px; padding: 16px 14px; border: 3px solid var(--ink); border-radius: 18px;
  background: var(--mint); box-shadow: 4px 4px 0 var(--ink); outline: 4px solid rgba(25, 240, 168, .45); outline-offset: 4px;
  font: 700 22px/1.1 var(--disp); color: var(--ink); text-align: center; cursor: pointer; }
.qz-exit small { display: block; font: 800 13px/1.3 "Nunito", system-ui, sans-serif; margin-top: 5px; }
.qz-exit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
@media (prefers-reduced-motion: no-preference) { .qz-exit { animation: qz-pop .25s ease-out; } }
@keyframes qz-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.qz-missed { margin: 4px 0 0; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #ffd9d5;
  font: 700 15px/1.3 var(--disp); }
/* Antwort-Bereich darf schrumpfen und scrollen, sonst schneidet der Dialog Einsatz und Tipp-Knopf ab */
.talk-replies { flex: 0 1 auto; min-height: 0; }
/* Cash-out: zwei Knöpfe nebeneinander, darunter Torlauts Auto-Marken */
.md-cashout { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.md-cashout-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.md-cashout-btn.half { background: #fff; }
.md-cashed { font: 600 12px/1.3 var(--disp); color: var(--ink); text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.md-auto small { font: 600 12px/1.3 var(--disp); color: var(--ink); text-transform: none; letter-spacing: 0; display: block; }
.md-auto-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.md-auto-chips .chip { padding: 3px 9px; font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }
.md-auto-chips .chip.on { background: var(--mint, #6fe7ad); border-color: var(--ink); font-weight: 800; }
.tp-seal { flex-basis: 100%; font: 600 12px/1.3 var(--disp); color: var(--muted); }
.tp-kombi-note { flex-basis: 100%; font: 600 12px/1.3 var(--disp); color: var(--ink); background: var(--accent-soft); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 8px; }
.tp-kombi-note.extra { background: var(--sun); }

/* Live-Liste: live bleibt im gelblichen Papier-Ton (Rosa passte nicht, Thomas), fertig ruhig weiß */
.ldx-game.live { background: var(--paper); }
.ldx-game.done { background: #fff; }
.ldx-game.done .ldx-res { color: var(--ink); }
.ldx-top .ldx-exact { font: 800 11.5px/1 var(--disp); overflow: hidden; text-overflow: ellipsis; margin: 0; }
/* Cash-out zugeklappt: ein schlanker Knopf wie die Gold-Pille, aufgeklappt darunter das Panel */
.md-out-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%;
  padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 800 14px/1.1 var(--disp); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.md-out-toggle::after { content: "▾"; margin-left: 2px; }
.md-out-toggle.open::after { content: "▴"; }
.md-out-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.md-out-panel .md-cashout-btns { flex-direction: column; flex-wrap: nowrap; }
.md-out-panel .md-cashout-btn { width: 100%; padding: 7px 10px; font-size: 14px; white-space: nowrap; border-radius: 999px; }
.md-out-toggle { white-space: nowrap; }
/* "Mut"-Sticker: schräg an der Außenseite des Siegertipps – bei dir links, bei Torlaut rechts – in Rot
   (Comic-Stempel, hebt sich von Goldgelb und Mint ab) */
.ldx-chip { position: relative; }
.ldx-mut { position: absolute; top: -14px; font: 800 9.5px/1 var(--disp); font-style: normal;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border-radius: 6px; border: 1.5px solid var(--ink);
  background: var(--live); color: #fff; white-space: nowrap; box-shadow: 1px 1px 0 var(--ink); }
.ldx-chip.you .ldx-mut { left: -12px; transform: rotate(-9deg); }
.ldx-chip.tl .ldx-mut { right: -12px; transform: rotate(9deg); }

/* Torlaut-Abzeichen statt Wappen: das Abzeichen hat Rand und Schatten schon selbst → kein Sticker-Rahmen drumherum */
.hx-sticker:has(> img[src^="/wappen/"]) { border: 0; background: transparent; box-shadow: none; }
.hx-sticker > img[src^="/wappen/"] { width: 100%; height: 100%; }

/* System-Seite: Wappenschalter und Galerie */
.crest-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.crest-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: #fff;
  border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; color: var(--ink); }
.crest-item img { width: 64px; height: 64px; }
.crest-item b { font: 700 12.5px/1.15 var(--disp); text-align: center; }
.crest-item small { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.crest-more { margin-top: 14px; }
.crest-more summary { font-weight: 800; cursor: pointer; }
.crest-plain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.crest-plain img { width: 40px; height: 40px; }
.crest-card { border: 0; padding: 0; background: transparent; max-width: 92vw; text-align: center; }
.crest-card::backdrop { background: rgba(20, 20, 20, .55); }
.crest-card img { display: block; width: min(360px, 88vw); height: auto; margin: 0 auto 10px; }

/* Begrüßung neuer Gäste: Torlaut fragt nach Ligen und Herzensverein */
.ob { padding: 18px 16px 16px; margin-bottom: 18px; display: grid; gap: 14px; }
.ob-talk { display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 6px; }
.ob-bubble { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px; font-weight: 700;
             line-height: 1.35; box-shadow: 3px 3px 0 var(--ink); position: relative; }
.ob-mascot { width: 120px; height: auto; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips .chip.on { background: var(--mint, #1de9a6); border-color: var(--ink); font-weight: 700; }
.ob-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.ob-team { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 2px solid var(--ink); border-radius: 14px;
           background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.ob-team img, .ob-team .nologo { width: 36px; height: 36px; object-fit: contain; }
.ob-team small { font-size: 11px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob .hx-btn { justify-self: stretch; text-align: center; }

/* ---------------------------------------------------------------- Tendenz statt Ergebnis (Torlauts Tipp verdeckt) */
.lean { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.lean-row { display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-size: 13px; }
.lean-row b { font-weight: 600; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lean-track { display: inline-flex; gap: 4px; }
.lean-track i { width: 16px; height: 18px; border: 2px solid var(--ink); border-radius: 5px; background: #fff;
  box-shadow: 1.5px 1.5px 0 var(--ink); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.lean-track i.on { background: var(--mint); }
.lean-track.frech i.on { background: var(--mint); box-shadow: 1.5px 1.5px 0 var(--red); border-color: var(--red); }
.lean-track.none i { border-style: dashed; box-shadow: none; }
.lean-label { font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--mint-deep); }
.md-slot .lean { margin-top: 6px; }
.md-slot .lean-row b { display: none; }   /* im Torlaut-Feld reichen die Kästchen, die Wappen stehen oben */
/* klein im Tipp-Feld der Listen */
.hx-tip.lean-chip { display: inline-grid; place-items: center; padding: 0 6px; background: #fff; }
.lean-chip .lean-track { gap: 2px; }
.lean-chip .lean-track i { width: 7px; height: 12px; border-width: 1.5px; border-radius: 3px; box-shadow: none; font-size: 0; }
.lean-chip .lean-track.none i:nth-child(3) { font-size: 9px; width: 12px; }
.md-slot.tl .lean-track i.on { background: var(--ink); }   /* auf Mint sonst unsichtbar */
.md-slot.tl .lean-label { color: var(--ink); }

/* ---------------------------------------------------------------- Kombi mit Netz */
.hx-kombi { padding-bottom: 14px; }
.hx-kombi .kx-open { margin: 6px 14px 0; }
.kx-hint { display: block; margin: 8px 16px 0; color: var(--muted); font-size: 12px; }
.kx-ladder { margin: 8px 14px 6px; }
.kx-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--disp); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.kx-head b { font-size: 18px; }
.kx-step { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-weight: 800; font-size: 13.5px; }
.kx-step > i { min-width: 36px; height: 24px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 900; background: #fff; }
.kx-step > span b { display: inline-grid; place-items: center; min-width: 30px; height: 20px; border: 2px solid var(--ink);
  border-radius: 6px; background: var(--you); font-family: var(--disp); font-size: 12px; margin-right: 2px; padding: 0 3px; }
.kx-step.good > i { background: var(--mint); }
.kx-step.ok > i { background: #dcfbef; }
.kx-step.bad > i { background: var(--red); color: #fff; }
.kx-step.live > i { border-color: var(--red); }
.hx-kombi .fx-row { width: 100%; }
.kx-ladder .fx-row { padding-left: 0; padding-right: 0; }
.hx-tip.kx-pct { background: #fff; font-size: 13px; }
.hx-tip.kx-pct.good { background: var(--mint); }
.hx-tip.kx-pct.ok { background: #dcfbef; }
.hx-tip.kx-pct.bad { background: var(--red); color: #fff; }
.kx-step.open > i { border-style: dashed; color: var(--muted); }
.kx-score { font-family: var(--disp); font-size: 16px; }
.kx-say { margin: 8px 0 0; padding: 9px 11px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 14px; line-height: 1.3; }
.kx-dialog { max-width: 440px; }
.kx-intro { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.kx-list { max-height: 44vh; overflow-y: auto; }
.kx-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 2px dashed #e6dcc4; }
.kx-row:first-child { border-top: 0; }
.kx-teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kx-teams span { display: flex; align-items: center; gap: 6px; font-family: var(--disp); font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-teams small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.kx-tip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 4px 8px;
  border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); line-height: 1.1; }
.kx-tip b { font-family: var(--disp); font-size: 18px; }
.kx-tip small { font-size: 11px; font-weight: 800; color: var(--muted); }
.kx-tip.on { background: var(--you); box-shadow: 2px 2px 0 var(--ink); }
.kx-tip.on small { color: var(--ink); }
.kx-tip.new { border-style: dashed; }
.kx-tip:disabled { opacity: .35; }
.kx-row.in .kx-teams span { color: var(--ink); }
.kx-out { margin-top: 10px; }
.kx-empty { color: var(--muted); font-size: 13px; margin: 6px 0; }
.kx-q { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--disp); font-weight: 600; }
.kx-q b { font-size: 34px; }
.kx-stake { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-weight: 800; font-size: 13px; }
.kx-stake .chip.on { background: var(--ink); color: var(--paper); }
.kx-o { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px;
  margin-top: 6px; font-size: 13px; font-weight: 800; border: 2px solid var(--ink); }
.kx-o b { font-family: var(--disp); font-size: 15px; white-space: nowrap; }
.kx-o.win { background: var(--you); } .kx-o.net { background: #dcfbef; }
.kx-o.lost { background: #fff; border-style: dashed; color: var(--muted); }
.kx-how { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.kx-wild { color: var(--red); font-weight: 800; font-size: 13px; margin: 4px 0; }
.kx-msg { display: block; color: var(--red); font-weight: 800; margin-top: 6px; }
.kx-go { width: 100%; margin-top: 10px; }
.kx-dialog .kx-intro, .kx-dialog .kx-list, .kx-dialog .kx-out, .kx-dialog .kx-msg { margin-left: 16px; margin-right: 16px; }
.kx-dialog .kx-intro { margin-top: 10px; }
.kx-dialog .kx-go { width: calc(100% - 32px); margin: 10px 16px 16px; }
.kx-score.kx-when { font-family: "Nunito", sans-serif; font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; }

/* Du gegen Torlaut ohne Skala (09.11.2026): Stand als Pillen, Spaltenköpfe, verdecktes „?“, Markierung zum Comic-Stapel */
.hx-tally { display: flex; align-items: center; gap: 5px; color: var(--ink); top: 9px; right: 12px; }
.hx-tally small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* „Saison“/„Heute“ nur für Vorleser – sonst kollidiert es mit dem Reiter */
.hx-tally .pill { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px 2px; font: 600 12.5px/1.25 var(--disp); }
.hx-tally .pill.you { background: var(--you); }
.hx-tally .pill.tl { background: var(--mint); }
.hx-colhead { display: flex; justify-content: flex-end; gap: 6px; margin: 4px 0 4px; }
.hx-colhead span { min-width: 46px; text-align: center; font: 600 11px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hx-front .hx-colhead { gap: 5px; }
.hx-front .hx-colhead span { min-width: 42px; }
.hx-tip.tl.sealed { background: repeating-linear-gradient(45deg, #e3fbef 0 6px, #c8f6e0 6px 12px); color: var(--mint-deep); }
.cx-chips .hx-tip.tl.sealed { background: repeating-linear-gradient(45deg, #e3fbef 0 6px, #c8f6e0 6px 12px); }
.hx-row, .fx-row { transition: background-color .2s; }
.hx-row.on, .fx-row.on { background: #e3fbef; box-shadow: inset 4px 0 0 var(--mint-deep); border-radius: 12px;
  padding-left: 10px; padding-right: 6px; margin: 0 -6px; width: calc(100% + 12px); }
.hx-legend:empty { display: none; }
.md-lean-word { display: block; font: 600 15px/1.2 var(--disp); margin-top: 2px; }

/* Hinweis oben: Meldung, die wegen der offenen App nicht als Push kam (common.js showQuietNote) */
.quiet-note {
  position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 10px);
  transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); box-sizing: border-box;
  display: grid; gap: 2px; padding: 10px 14px 10px 16px; color: var(--ink); text-decoration: none;
  background: var(--panel); border: 2.5px solid var(--ink); border-left: 8px solid var(--mint);
  border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); animation: quiet-in .25s ease-out;
  transition: opacity .5s, transform .5s;
}
.quiet-note b { font-family: var(--disp); font-size: 15px; line-height: 1.25; }
.quiet-note span { font-size: 13.5px; line-height: 1.35; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quiet-note.gone { opacity: 0; transform: translate(-50%, -12px); }
@keyframes quiet-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* Tipp-Blatt: tippen ohne Gespräch (torlaut-chat.js openTipSheet) – Aufbau wie der Antwortbereich im Gespräch */
.tip-sheet { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px); }
.tip-sheet-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
.tip-sheet-body.busy .tb-wrap > :not(.tb-foot), .tip-sheet-body.busy .tp-stake { pointer-events: none; opacity: .55; }
.tip-sheet-body.busy .tb-go { opacity: 1; }
.tip-sheet-note { margin: 4px 0 8px; font: 700 15px/1.4 var(--disp); }
.tip-sheet-error:empty { display: none; }
.tip-sheet-error { margin: 0; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #ffd9d5;
  font: 700 14px/1.3 var(--disp); }

/* Side-Bet-Angebot unten auf der Comic-Karte */
.cx-side { position: relative; z-index: 3; margin: 0 10px 10px; padding: 8px 10px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px 10px; background: var(--panel); border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); font: 700 14px/1.3 var(--disp); }
.cx-side-btns { display: flex; gap: 6px; margin-left: auto; }
.cx-side .chip { font-size: 13.5px; padding: 5px 11px; }
.cx-side .chip.yes { background: var(--mint); border-color: var(--ink); color: var(--ink); }

/* Sender-Schild auf der Comic-Karte (heute.js hxCxTv) */
.cx-head:has(.cx-tv) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cx-tv { display: inline-flex; align-items: center; padding: 3px 10px; background: var(--ink); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px; font: 700 13px/1.2 var(--disp); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Sprung aus der Liste zur Karte: nicht unter der Kopfleiste landen */
.hx-comic, .cx-deck { scroll-margin-top: 76px; }

/* Raus-Knopf im Live-Reiter (Tagesduell live): über die ganze Zeile unter Spiel und Tipps */
.ldx-out { grid-column: 1 / -1; }
.ldx-out .md-cashout { margin-top: 0; }
.ldx-out .md-out-panel .md-cashout-btns { flex-direction: row; }
.ldx-out .md-out-panel .md-cashout-btn { flex: 1; width: auto; }

/* Spielbericht: Absätze im eigenen Block (Claude-Probelauf tauscht nur den aus) + Vergleichsknopf */
.report-body { display: grid; gap: 10px; }
.report-swap { justify-self: start; background: none; border: 0; padding: 2px 0; font: 700 13px/1.3 var(--body, inherit);
  color: var(--muted); text-decoration: underline; cursor: pointer; }
.report-headline { margin: 2px 0 0; font: 700 25px/1.1 var(--disp); letter-spacing: .3px; text-transform: none;
  transform: rotate(-1deg); }
.report-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.report-person { display: grid; gap: 2px; padding: 9px 11px; border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: 3px 3px 0 var(--ink); }
.report-person.hero { background: var(--sun); }
.report-person small { font: 800 11.5px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .4px; }
.report-person b { font: 700 16px/1.15 var(--disp); }
.report-person span { font-size: 13.5px; line-height: 1.35; }
.report-vote { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.report-vote span { flex: 1; }
.report-thumb { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 20px;
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.report-thumb.on { background: var(--mint); }

/* ---------------------------------------------------------------- Ansicht „Tippen“: Feed (feed.js), früher Karten-Stapel */
#feedView { display: none; }
body[data-view="tippen"] #feedView { display: grid; }
body[data-view="tippen"] .toolbar,
body[data-view="tippen"] #chips,
body[data-view="tippen"] .layout { display: none; }
.stk { overflow: visible; }
.stk-count { font: 600 12px/1.2 var(--disp); color: var(--muted); text-align: right; margin: -22px 0 10px; }
.stk-deck { position: relative; margin: 0 6px 10px 0; }
.stk-deck.stk-two::before, .stk-deck.stk-three::after { content: ""; position: absolute; inset: 0; border: 2.5px solid var(--ink); border-radius: 16px; }
.stk-deck.stk-two::before { background: var(--mint); transform: translate(5px, 5px) rotate(1.2deg); }
.stk-deck.stk-three::after { background: var(--sun); transform: translate(9px, 9px) rotate(2.2deg); z-index: 0; }
.stk-deck.stk-two::before { z-index: 1; }
.stk-card { z-index: 2; min-height: 0; touch-action: pan-y; }
.stk-card.stk-in { animation: stkIn .22s ease-out; }
.stk-card.dragging { transition: none; }
.stk-card.gone-left { transform: translateX(-120%) rotate(-14deg) !important; opacity: 0; }
@keyframes stkIn { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stk-card.stk-in { animation: none; } }
.stk-card .cx-chips { cursor: default; }
.stk-league { position: relative; z-index: 3; margin: 6px 10px 0; font: 700 12px/1.2 var(--disp); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.stk-stamp { position: absolute; z-index: 5; top: 74px; right: 14px; opacity: 0; pointer-events: none; transform: rotate(12deg);
  font: 700 20px/1 var(--disp); text-transform: uppercase; color: var(--red); background: #fff;
  border: 3px solid var(--red); border-radius: 10px; padding: 6px 10px; }
.stk-pick { position: relative; z-index: 3; background: #fff; border-top: 2.5px solid var(--ink); padding: 10px 10px 12px; display: grid; gap: 8px; }
.stk-ask { font: 600 15px/1 var(--disp); }
.stk-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stk-scores .tb-s.t1 { height: 48px; font-size: 21px; width: 100%; cursor: pointer; }
.stk-other { background: none; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px; font: 600 13.5px/1 var(--disp); color: var(--ink); cursor: pointer; }
.stk-stake { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 13px/1 var(--disp); }
.stk-stake .chip { min-width: 40px; padding: 5px 10px; font-size: 13.5px; }
.stk-stake .chip.on { background: var(--you); border-color: var(--ink); color: var(--ink); }
.stk-msg { margin: 0; min-height: 0; font: 600 13px/1.2 var(--disp); color: var(--muted); }
.stk-msg:empty { display: none; }
.stk-pick.done { gap: 10px; }
.stk-set { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 14px/1.2 var(--disp); }
.stk-next { justify-content: center; width: 100%; padding: 14px; font-size: 17px; }
.stk-acts { display: flex; gap: 8px; justify-content: space-between; }
.stk-no { background: #fff; }
.stk-hint { display: block; margin-top: 8px; font: 600 12px/1.3 var(--disp); color: var(--muted); text-align: center; }
.stk-undo { display: block; margin: 8px auto 0; font: 600 13px/1 var(--disp); }
.stk-end { background: linear-gradient(180deg, var(--panel) 0 120px, var(--mint) 120px 100%); }
.stk-end-btns { display: grid; gap: 8px; justify-items: start; position: relative; z-index: 2; margin-top: 6px; }
.pf-admin { text-align: right; margin: 0 0 10px; }
.pf-admin a { display: inline-block; font: 600 13px/1 var(--disp); color: var(--ink); text-decoration: none; background: #fff;
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 12px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.stk-set .linklike, .stk-undo.linklike { background: none; border: 0; padding: 4px 2px; font: 600 13px/1 var(--disp); color: var(--ink); text-decoration: underline; cursor: pointer; }
/* Stapel kompakt (21.11.2026): muss am iPhone ohne Scrollen über die untere Leiste passen */
section.stk:not(.hx-panel) { overflow: visible; }
.stk-count { margin: 0 8px 6px 2px; min-height: 18px; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; text-align: right; }
.stk-undo.linklike { margin: 0; padding: 0 2px; }
.stk-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 0; }
.stk-head .cx-lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-acts { display: flex; gap: 6px; flex: none; justify-content: flex-end; }
.stk-act { font: 600 12.5px/1 var(--disp); padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; white-space: nowrap; }
.stk-card .cx-row { padding: 8px 8px 0; }
.stk-league { margin: 5px 10px 0; }
.stk-card .cx-stage { padding: 8px 8px 0; }
.stk-card .cx-stage .torlaut-says { grid-template-columns: minmax(0, 1fr) 138px; }
.stk-card .cx-stage .torlaut-says .tl-mascot { width: 138px; height: min(156px, 20vh); }
.stk-card .cx-stage .torlaut-says .tl-bubble { font-size: 15px; padding: 10px 11px; margin-bottom: 18px; border-radius: 20px; }
.stk-pick { padding: 8px 8px 10px; gap: 7px; }
.stk-scores { gap: 6px; }
.stk-scores .tb-s.t1 { height: 46px; font-size: 21px; }
.stk-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stk-other { padding: 8px 10px; white-space: nowrap; }
.stk-stake { gap: 4px; flex-wrap: nowrap; }
.stk-stake .chip { min-width: 34px; padding: 5px 8px; }
.stk-stamp { top: 96px; }
/* Infos auf der Karte: warum tippen? */
.stk-facts { position: relative; z-index: 3; margin: 8px 8px 0; padding: 8px 10px; display: grid; gap: 5px;
  background: rgba(255, 255, 255, .94); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink);
  font: 600 13px/1.2 var(--disp); color: var(--ink); }
.stk-drama { justify-self: start; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.stk-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.stk-team img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.stk-team b { flex: none; min-width: 34px; }
.stk-rank { flex: none; background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; }
.stk-last { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.stk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; border: 1.5px solid var(--ink); background: #cfcfcf; }
.stk-dot.w { background: var(--mint); } .stk-dot.l { background: var(--red); }
.stk-odds { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 5px; border-top: 2px dashed var(--line); }
.stk-odds span { color: var(--muted); }
.stk-card.fit1 .cx-stage .torlaut-says { grid-template-columns: minmax(0, 1fr) 108px; }
.stk-card.fit1 .cx-stage .torlaut-says .tl-mascot { width: 108px; height: 120px; }
.stk-card.fit1 .cx-stage .torlaut-says .tl-bubble { font-size: 14px; margin-bottom: 12px; }
.stk-card.fit2 .stk-last { display: none; }
.stk-card.fit3 .stk-facts { display: none; }
.stk-deck { margin: 0 12px 12px 0; }

/* Tipp-Stapel: erst Infos, rechts wischen oder „Tippen“ klappt die Ergebnis-Knöpfe auf (21.11.2026) */
.stk-five { display: inline-flex; gap: 2px; flex: none; }
.stk-five .stk-dot { width: 8px; height: 8px; margin: 0; border-width: 1.5px; }
.stk-why { gap: 9px; padding: 10px 10px 10px; }
.stk-why-row { display: flex; align-items: center; gap: 8px; font: 600 14px/1.25 var(--disp); }
.stk-why-row b { white-space: nowrap; }
.stk-why-ico { width: 20px; text-align: center; flex: none; }
.stk-go { justify-content: center; width: 100%; padding: 13px; font-size: 18px; background: var(--you); color: var(--ink); }
.stk-why .stk-hint { margin-top: -2px; }
.stk-stamp.yes { right: auto; left: 14px; transform: rotate(-12deg); color: var(--ink); background: var(--you); border-color: var(--ink); }
.stk-card.stk-flip .stk-open { animation: stkOpen .2s ease-out; }
@keyframes stkOpen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stk-card.stk-flip .stk-open { animation: none; } }
.stk-why-row em { font-style: normal; color: var(--muted); }

/* ---------------------------------------------------------------- Feed im Reiter „Tippen“ (feed.js, Probe 24.11.2026) */
.fd-list { display: grid; gap: 22px; padding-bottom: 8px; }
.fd-sentinel { height: 1px; }
.fd-post { opacity: 0; transform: translateY(18px); transition: opacity .35s ease-out, transform .35s ease-out; }
.fd-post.fd-seen { opacity: 1; transform: none; }
.fd-comic { min-height: 0; margin-right: 4px; }
.fd-when { position: absolute; top: 9px; right: 14px; font: 600 12px/1.2 var(--disp); color: var(--muted); }
.fd-when.on-card { position: static; flex: none; color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.fd-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--line); }
.fd-like { width: 38px; height: 38px; flex: none; padding: 0; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff;
  box-shadow: 2px 2px 0 var(--ink); font: 400 18px/1 var(--disp); color: var(--muted); cursor: pointer; }
.fd-like.on { background: var(--red); color: #fff; }
.fd-like.pop { animation: fdPop .35s ease-out; }
@keyframes fdPop { 40% { transform: scale(1.35) rotate(-10deg); } }
.fd-src { min-width: 0; font: 600 12px/1.2 var(--disp); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-link { margin-left: auto; flex: none; font: 700 14px/1 var(--disp); color: var(--ink); }
.fd-say { position: relative; margin-top: 10px; padding: 10px 12px 10px 16px; background: #fff; border: 2.5px solid var(--ink);
  border-radius: 16px; box-shadow: inset 6px 0 0 var(--mint); font-weight: 700; font-size: 15px; line-height: 1.35; }
/* Ergebnis mit Wappen */
.fd-score { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 0; padding: 6px 0;
  background: none; border: 0; color: var(--ink); cursor: pointer; }
div.fd-score { cursor: default; }
.fd-team { display: grid; justify-items: center; gap: 3px; min-width: 64px; font: 700 14px/1 var(--disp); }
.fd-team .hx-sticker.mini { width: 40px; height: 40px; }
.fd-digits { display: flex; gap: 4px; font: 700 46px/1 var(--disp); font-variant-numeric: tabular-nums; }
.fd-digits i { font-style: normal; opacity: .45; }
.fd-league { text-align: center; font: 600 12px/1.2 var(--disp); color: var(--muted); }
.fd-mytip { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font: 600 13px/1 var(--disp); color: var(--muted); }
.fd-mytip .hx-tip { min-width: 42px; height: 32px; font-size: 15px; border-radius: 10px; }
/* Abrechnung: Balken „Prozent richtig“, Stempel, Gold */
.fd-bars { display: grid; gap: 8px; margin-top: 8px; }
.fd-bar { display: grid; grid-template-columns: 56px 42px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font: 600 13px/1 var(--disp); }
.fd-bar .hx-tip { min-width: 0; width: 42px; height: 30px; font-size: 15px; border-radius: 9px; }
.fd-bar-track { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.fd-bar-track i { display: block; height: 100%; width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1) .15s; }
.fd-seen .fd-bar-track i { width: var(--w); }
.fd-bar.you .fd-bar-track i { background: var(--you); }
.fd-bar.tl .fd-bar-track i { background: var(--mint); }
.fd-bar-pct { text-align: right; font-weight: 700; font-size: 14px; }
.fd-stamp { position: absolute; z-index: 4; top: 40px; right: 8px; opacity: 0; transform: rotate(9deg) scale(2.2); pointer-events: none;
  padding: 5px 9px; border: 3px solid var(--ink); border-radius: 8px; background: var(--you); color: var(--ink);
  font: 700 14px/1 var(--disp); text-transform: uppercase; }
.fd-stamp.lose { background: #fff; border-color: var(--red); color: var(--red); }
.fd-stamp.draw { background: #fff; }
.fd-seen .fd-stamp { animation: fdSlam .35s 1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes fdSlam { from { opacity: 0; transform: rotate(9deg) scale(2.2); } to { opacity: 1; transform: rotate(9deg) scale(1); } }
.fd-gold { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 700 16px/1 var(--disp); }
.fd-gold.up { color: var(--mint-deep); }
.fd-gold.down { color: var(--muted); }
.fd-coins i { position: absolute; left: 4px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--you);
  border: 2px solid var(--ink); opacity: 0; }
.fd-coins .c1 { --dx: -8px; } .fd-coins .c2 { --dx: 22px; } .fd-coins .c3 { --dx: 52px; } .fd-coins .c4 { --dx: 84px; } .fd-coins .c5 { --dx: 118px; }
.fd-seen .fd-coins i { animation: fdCoin .9s 1.3s ease-out; }
.fd-seen .fd-coins .c2 { animation-delay: 1.38s; } .fd-seen .fd-coins .c3 { animation-delay: 1.46s; }
.fd-seen .fd-coins .c4 { animation-delay: 1.54s; } .fd-seen .fd-coins .c5 { animation-delay: 1.62s; }
@keyframes fdCoin { 0% { opacity: 1; transform: translate(0, 0); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -64px) rotate(240deg); } }
/* Tipp-Beitrag */
.fd-odds { display: grid; gap: 5px; }
.fd-odds:empty { display: none; }
.fd-met, .fd-lure { font: 600 12.5px/1.25 var(--disp); color: var(--muted); }
.fd-lure b { color: var(--ink); white-space: nowrap; }
.fd-lure em { font-style: normal; }
.fd-kick { font: 600 12.5px/1 var(--disp); color: var(--muted); }
.fd-flip { display: inline-flex; }
.fd-reveal .fd-flip { animation: fdFlip .7s .25s both; }
@keyframes fdFlip { 0% { transform: perspective(300px) rotateY(180deg) scale(1.5); } 70% { transform: perspective(300px) rotateY(0) scale(1.5); } 100% { transform: none; } }
/* Plakat-Beiträge: Zahl aus der Tabelle, Serie, Spruch */
.fd-poster { position: relative; overflow: hidden; margin-right: 4px; padding: 12px 14px 14px; border: 2.5px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.fd-poster > :not(.cx-burst):not(.cx-dots) { position: relative; z-index: 2; }
.fd-poster-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-big { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; margin: 16px 0 2px; }
.fd-num { display: flex; align-items: baseline; gap: 8px; font: 700 76px/.9 var(--disp); color: #fff; font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.fd-icon { font-style: normal; font-size: 34px; -webkit-text-stroke: 0; text-shadow: none; }
.fd-unit { grid-column: 1 / -1; margin-top: 10px; font: 700 17px/1.25 var(--disp); color: #fff; text-shadow: 1.5px 1.5px 0 var(--ink); }
.fd-seen .fd-flame { display: inline-block; transform-origin: 50% 90%; animation: fdFlame .9s ease-in-out infinite alternate; }
@keyframes fdFlame { from { transform: scale(1) rotate(-5deg); } to { transform: scale(1.18) rotate(5deg); } }
.fd-go { justify-content: center; width: 100%; margin-top: 10px; background: var(--you); color: var(--ink); }
.fd-quote { margin: 20px 0 12px; padding: 0; border: 0; font: 700 27px/1.2 var(--disp); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.fd-quote span { display: inline-block; white-space: pre; opacity: 0; transform: translateY(12px) rotate(-5deg); }
.fd-seen .fd-quote span { animation: fdWord .3s calc(var(--i) * 55ms + .15s) cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes fdWord { to { opacity: 1; transform: none; } }
.fd-sign { text-align: right; font: 700 14px/1 var(--disp); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
/* Ehren-Quiz */
.fd-q { margin: 2px 0 10px; font: 700 18px/1.25 var(--disp); }
.fd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-opt { min-height: 50px; padding: 8px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 var(--ink);
  font: 600 14px/1.15 var(--disp); color: var(--ink); cursor: pointer; }
.fd-opt:disabled { opacity: 1; cursor: default; box-shadow: none; }
.fd-opt.right { background: var(--mint); animation: fdPop .4s ease-out; }
.fd-opt.wrong { background: var(--red); color: #fff; animation: fdShake .35s; }
@keyframes fdShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
/* News und Bericht */
.fd-news-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.fd-news-top h3 { margin: 0; font: 700 18px/1.2 var(--disp); }
.fd-teaser { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; }   /* ganzer Anriss – mehr haben wir von der Quelle nicht */
.fd-nm { margin-top: 10px; padding: 8px 10px 10px; border: 2px dashed var(--line); border-radius: 14px; display: grid; gap: 6px; }
.fd-nm-lab { font: 600 12px/1 var(--disp); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fd-nm.live .fd-nm-lab { color: var(--red); }
.fd-nm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-nm-row .cx-sign { min-width: 0; }
.fd-nm-tip { display: flex; align-items: center; gap: 6px; flex: none; font: 600 12px/1 var(--disp); color: var(--muted); }
.fd-nm-tip .hx-tip { min-width: 42px; height: 32px; font-size: 15px; border-radius: 10px; }
.fd-nm-go { flex: none; padding: 8px 12px; font-size: 14px; background: var(--you); color: var(--ink); }
.fd-report-score { position: relative; z-index: 3; margin: 8px 8px 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); }
.fd-report .cx-stage .torlaut-says .tl-bubble { font-size: 17px; line-height: 1.2; }
.fd-text p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.fd-more { display: grid; gap: 8px; }
.fd-more[hidden] { display: none; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chips:empty { display: none; }
.fd-chip { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; font: 600 12px/1.2 var(--disp); background: #fff; }
.fd-chip.up { background: var(--mint); }
.fd-read { justify-self: start; background: none; border: 0; padding: 4px 0; font: 700 14px/1 var(--disp); color: var(--ink); text-decoration: underline; cursor: pointer; }
.fd-live .hx-panel { margin: 0; }
.fd-end { display: grid; gap: 10px; justify-items: start; }
.fd-loading { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .fd-post { opacity: 1; transform: none; transition: none; }
  .fd-bar-track i { transition: none; }
  .fd-stamp { opacity: 1; transform: rotate(9deg); }
  .fd-quote span { opacity: 1; transform: none; }
  .fd-seen .fd-stamp, .fd-seen .fd-coins i, .fd-reveal .fd-flip, .fd-seen .fd-flame, .fd-seen .fd-quote span,
  .fd-like.pop, .fd-opt.right, .fd-opt.wrong { animation: none; }
}

/* ---------- Chat mit Torlaut (chat.html, Probe seit 24.11.2026) ---------- */
.ch-main { display: flex; flex-direction: column; gap: 12px; }
.ch-top { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; padding: 30px 14px 10px; }
.ch-top .ch-fig { width: 112px; height: 112px; object-fit: contain; }
.ch-intro { margin: 0; font: 700 14px/1.35 "Nunito", system-ui, sans-serif; color: var(--ink); }
.ch-note { margin: 0; padding: 8px 12px; border: 2px dashed var(--ink); border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 700; }
.ch-note a { color: var(--mint-deep); }
.ch-log { display: flex; flex-direction: column; gap: 8px; }
.ch-day { align-self: center; font: 600 12px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 6px 0 2px; }
.ch-msg { max-width: 86%; display: flex; flex-direction: column; gap: 2px; align-self: flex-start; }
.ch-msg.you { align-self: flex-end; align-items: flex-end; }
.ch-bubble {
  border: 2.5px solid var(--ink); border-radius: 16px 16px 16px 4px; background: #fff; padding: 9px 12px;
  font: 600 15.5px/1.38 "Nunito", system-ui, sans-serif; color: var(--ink); box-shadow: 3px 3px 0 var(--mint);
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.ch-msg.you .ch-bubble { background: var(--you); border-radius: 16px 16px 4px 16px; box-shadow: 3px 3px 0 var(--ink); }
.ch-msg.pending .ch-bubble { opacity: .7; }
.ch-meta { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 0 4px; min-height: 0; }
.ch-meta:empty { display: none; }
.ch-typing .ch-bubble { display: inline-flex; gap: 5px; padding: 13px 14px; }
.ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: ch-dot 1s ease-in-out infinite; }
.ch-typing i:nth-child(2) { animation-delay: .15s; }
.ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.ch-form {
  position: fixed; left: 0; right: 0; bottom: 90px; z-index: 30; margin: 0 auto; width: min(720px, 100%);
  padding: 0 10px; display: flex; flex-direction: column; gap: 8px;
}
.ch-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.ch-chips::-webkit-scrollbar { display: none; }
.ch-chips[hidden] { display: none; }
.ch-chip { flex: none; font-size: 13px; padding: 8px 12px; }
.ch-row {
  display: flex; align-items: flex-end; gap: 8px; background: #fff; border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 4px 4px 0 var(--ink); padding: 6px 6px 6px 14px;
}
.ch-row textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: 600 16px/1.35 "Nunito", system-ui, sans-serif; padding: 7px 0; max-height: 120px;   /* 16px: sonst zoomt das iPhone */
}
.ch-row .hx-btn { flex: none; box-shadow: none; }
.ch-row .hx-btn:disabled { opacity: .45; }
.ch-mode { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.ch-mode .hx-btn.on { background: var(--mint); }
.ch-cost { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.ch-cost th, .ch-cost td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ch-cost th:first-child, .ch-cost td:first-child { text-align: left; }
.ch-cost-wrap { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { .ch-typing i { animation: none; opacity: .7; } }
.ch-mem { border: 2px dashed var(--ink); border-radius: 12px; background: #fff; padding: 8px 12px; font-size: 13.5px; }
.ch-mem summary { font-weight: 800; cursor: pointer; }
.ch-mem p { margin: 8px 0; white-space: pre-wrap; font-weight: 600; line-height: 1.4; }
.ch-mem .hx-btn { font-size: 13px; padding: 7px 12px; }
/* Eingabezeile: Papier dahinter, damit durchscrollende Sprechblasen nicht durch die Vorschläge scheinen */
.ch-form { padding-top: 18px; background: linear-gradient(to bottom, rgba(251, 245, 230, 0), var(--paper) 18px); }
.ch-learn { margin: 6px 0; font-weight: 600; }
.ch-learn.mehr b { color: var(--mint-deep); }
.ch-learn.weniger b { color: var(--muted); }
.ch-log-table td, .ch-log-table th { text-align: left; vertical-align: top; }
.ch-log-table td.ch-wrap { white-space: normal; min-width: 150px; }
/* Budget-Ring in der Eingabezeile: Rest vom Tagesbudget */
.ch-ring { position: relative; flex: none; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; cursor: pointer; align-self: center; margin-left: -6px; }
.ch-ring[hidden] { display: none; }
.ch-ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.ch-ring circle { fill: none; stroke-width: 4; }
.ch-ring-bg { stroke: var(--line); }
.ch-ring-fg { stroke: var(--mint-deep); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ch-ring.low .ch-ring-fg { stroke: var(--red); }
.ch-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12.5px/1 var(--disp); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ch-ring-fg { transition: none; } }
.ch-form { z-index: 29; }   /* unter der Leiste (30): die Eingabezeile reicht mit Papier bis zum unteren Rand */

/* Neue Leiste (25.11.2026): Punkt am Chat-Knopf in Torlauts Mint, wenn er etwas Ungelesenes geschrieben hat;
   Parkplatz- und Admin-Link oben im Profil nebeneinander */
#tabbar a[data-tab="chat"] { position: relative; }
#tabbar a[data-tab="chat"].has-new::after {
  content: ""; position: absolute; top: 6px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); border: 2px solid var(--ink);
}
.pf-admin a + a { margin-left: 8px; }

/* Album mit Aufgaben (aufgaben.js, 25.11.2026): Umschalter Sticker/Kalender, Übersicht mit Kacheln, Seite mit Sticker-Feldern */
.al-head { align-items: center; }
.al-switch { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; box-shadow: 2px 2px 0 var(--ink); }
.al-switch button { border: 0; background: transparent; padding: 5px 12px; font: 600 13.5px/1.2 var(--disp); color: var(--muted); cursor: pointer; }
.al-switch button.on { background: var(--you); color: var(--ink); }
.al-month { font: 600 14px/1 var(--disp); color: var(--muted); padding: 0 2px; margin-bottom: -6px; }
#tabbar a[data-tab="calendar"] { position: relative; }
#tabbar a[data-tab="calendar"].has-new::after {
  content: ""; position: absolute; top: 6px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--ink);
}
.ag-scene { display: grid; grid-template-columns: minmax(0, 1fr) 124px; align-items: end; gap: 12px; }
.ag-scene .tl-mascot { width: 124px; height: 124px; object-fit: contain; object-position: bottom; }
.ag-bubble { position: relative; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 9px 12px; margin-bottom: 18px;
  font: 700 14.5px/1.28 "Nunito", sans-serif; box-shadow: 3px 3px 0 var(--ink); display: grid; gap: 8px; }
.ag-bubble::after, .ag-bubble::before { content: ""; position: absolute; border-style: solid; border-color: transparent; }
.ag-bubble::after { right: -15px; bottom: 14px; border-width: 9px 0 9px 14px; border-left-color: var(--ink); }
.ag-bubble::before { right: -9px; bottom: 16px; border-width: 7px 0 7px 11px; border-left-color: #fff; z-index: 1; }
.ag-all { justify-self: start; font-size: 14px; padding: 8px 14px; text-decoration: none; }
.ag-total { padding: 24px 14px 10px; }
#albumView:has(.ag-tiles) { gap: 12px; }
.ag-total > b { font: 600 20px/1.2 var(--disp); }
.ag-total > small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ag-bar { height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; margin-top: 7px; background: #fff; overflow: hidden; }
.ag-bar i { display: block; height: 100%; background: var(--you); border-right: 2.5px solid var(--ink); }
.ag-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ag-tile { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1px 9px; align-items: center; text-align: left;
  padding: 10px; border-radius: 15px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; color: var(--ink); font-family: inherit; }
.ag-tile .ag-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center;
  font-size: 20px; background: var(--you); transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--ink); overflow: hidden; }
.ag-tile .ag-ic img { width: 28px; height: 28px; object-fit: contain; }
.ag-tile .ag-ic:not(.emo):has(img) { background: #fff; }
.ag-tile.tl .ag-ic { background: var(--mint); }
.ag-tile b { font: 600 15px/1.12 var(--disp); overflow-wrap: anywhere; }
.ag-tile { overflow: visible; }
.ag-tile small { font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.ag-wait { position: absolute; top: -9px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff;
  border: 2px solid var(--ink); font: 600 12px/18px var(--disp); font-style: normal; text-align: center; transform: rotate(8deg); }
.ag-back { justify-self: start; font: 600 15px/1 var(--disp); color: var(--muted); padding: 2px 0; margin-bottom: -8px; }
.ag-h2 { margin: 0; font: 600 23px/1.1 var(--disp); }
.ag-note { margin: -8px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.ag-note.err { color: var(--red); margin: 0; }
.ag-club { display: flex; align-items: center; gap: 11px; }
.ag-club h2 { margin: 0; font: 600 23px/1.05 var(--disp); }
.ag-club small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ag-crest { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; font-size: 26px; transform: rotate(-5deg); }
.ag-crest.emo { background: var(--you); }
.ag-crest.tl, .ag-tile .ag-ic.tl { background: var(--mint); }
.ag-crest img { width: 38px; height: 38px; object-fit: contain; }
.ag-sheet { padding: 24px 10px 4px; }
.ag-cols, .ag-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px 62px; align-items: center; }
.ag-cols { font: 600 11px/1.4 var(--disp); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.ag-row { padding: 7px 0 8px; border-top: 2px dashed var(--line); }
.ag-what b { display: block; font: 600 15.5px/1.15 var(--disp); }
.ag-what small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--muted); font-weight: 700; }
.ag-what em { display: block; font-style: normal; font-size: 11.5px; line-height: 1.25; font-weight: 800; color: var(--you-text); margin-top: 2px; }
.ag-st { width: 52px; height: 52px; margin: 0 auto; padding: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-family: var(--disp); line-height: 1; color: var(--ink); }
.ag-st.open { border: 2.5px dashed #b9b09a; color: #8d8674; font-size: 10.5px; font-weight: 600; background: rgba(251, 245, 230, .6); }
.ag-st.open b { font-size: 13px; color: var(--you-text); margin-top: 2px; }
.ag-st.got { border: 2.5px solid var(--ink); box-shadow: 0 0 0 3px #fff, 2px 3px 0 3px rgba(20, 20, 20, .9); font-size: 23px; }
.ag-st.bronze { background: #e0a06a; } .ag-st.silber { background: #d5dae2; } .ag-st.gold { background: var(--you); }
.ag-st.r1 { transform: rotate(-7deg); } .ag-st.r2 { transform: rotate(5deg); } .ag-st.r3 { transform: rotate(-4deg); }
.ag-st.wait { cursor: pointer; font-size: 19px; animation: ag-wobble 1.1s ease-in-out infinite; }
.ag-st.wait b { font-size: 11.5px; margin-top: 1px; }
.ag-st.just { animation: ag-pop .45s ease-out; }
@keyframes ag-wobble { 0%, 100% { transform: rotate(-9deg) translateY(-3px); } 50% { transform: rotate(9deg) translateY(-5px); } }
@keyframes ag-pop { 0% { scale: 1.6; opacity: .3; } 70% { scale: .92; opacity: 1; } 100% { scale: 1; } }
.ag-master { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 11px; align-items: center; text-align: left; width: 100%; padding: 9px 12px;
  background: #fff; border: 2.5px dashed #b9b09a; border-radius: 18px; color: var(--ink); font-family: inherit; }
.ag-master.stuck, .ag-master.wait { border-style: solid; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ag-master.wait { cursor: pointer; background: var(--you); }
.ag-master .ag-st.open { font-size: 24px; filter: grayscale(1); opacity: .45; }
.ag-master b { font: 600 15.5px/1.2 var(--disp); }
.ag-master small { display: block; font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 700; }
.ag-master.wait small { color: var(--ink); }
.ag-say { background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px 12px; font: 700 13.5px/1.28 "Nunito", sans-serif; box-shadow: 3px 3px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .ag-st.wait, .ag-st.just { animation: none; } }

/* Volltreffer-Karten in der Album-Vitrine (aus dem Profil umgezogen, 25.11.2026) */
.ag-cards { padding: 30px 12px 10px; }
.ag-cards .muted.small { margin: 8px 0 0; }

/* Spontanwette im Chat („Was zock ma?“, zock.py): Karte unter Torlauts Zeile und der Knopf über der Eingabe */
.zk-ask { align-self: flex-start; font-size: 13px; padding: 7px 13px; background: var(--mint); }
.zk-ask:disabled { opacity: .5; }
.ch-msg.has-zock { max-width: 94%; gap: 8px; }
.zk-card {
  position: relative; border: 2.5px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink);
  padding: 22px 13px 12px; margin-top: 8px; display: grid; gap: 6px; min-width: 0;
}
.zk-card .hx-cap { position: absolute; top: -11px; left: 12px; }
.zk-card p { margin: 0; }
.zk-who { font: 600 12px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.zk-claim { font: 700 15.5px/1.32 "Nunito", system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.zk-claim b { font-weight: 800; }
.zk-and { display: block; font: 600 11.5px/1.6 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--mint-deep); }
.zk-stakes { font: 600 15px/1.3 var(--disp); color: var(--ink); padding-top: 6px; border-top: 2px dashed var(--ink); }
.zk-win { font: 700 13.5px/1.3 "Nunito", system-ui, sans-serif; color: var(--you-text); }
.zk-hint { font: 600 12px/1.35 "Nunito", system-ui, sans-serif; color: var(--muted); }
.zk-go { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.zk-go .hx-btn { padding: 9px 20px; }
.zk-left { margin-left: auto; font: 600 12.5px/1 var(--disp); color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.zk-stamp {
  justify-self: start; font: 600 12.5px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 11px; background: var(--paper); margin-top: 2px;
}
.zk-angenommen .zk-stamp { background: var(--mint); }
.zk-gewonnen .zk-stamp { background: var(--you); }
.zk-verloren .zk-stamp { background: var(--red); color: #fff; }
.zk-abgelehnt, .zk-verfallen, .zk-ungueltig { box-shadow: none; }
.zk-abgelehnt .zk-claim, .zk-verfallen .zk-claim { color: var(--muted); }
.zk-abgelehnt .zk-win, .zk-verfallen .zk-win, .zk-ungueltig .zk-win { display: none; }

/* Heute-Panel: Überschrift je kommendem Spieltag („Morgen“, „Sa., 29. Nov.“) */
.fx-dayhead { margin: 12px 0 0; padding: 4px 0 2px; font: 700 12px/1.2 var(--disp); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-top: 2.5px solid var(--ink); }
.fx-rows > .fx-dayhead:first-child { margin-top: 0; border-top: 0; }
.fx-row:has(+ .fx-dayhead) { border-bottom: 0; }

/* Album-Übersicht: „Neu“-Schild an der Vitrine-Kachel für ungesehene Volltreffer-Karten */
.ag-wait.ag-fresh { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
