/* =====================================================================
   GAMING OLYMPIADE – Bühne & gemeinsame Show-Komponenten
   (Dashboard, TV und Admin nutzen diese Basis)
   ===================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--stage-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Bühne: Spotlights, LED-Wand, Vignette
   --------------------------------------------------------------------- */
.spotlights {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* LED-Raster */
    radial-gradient(circle at center, var(--led-dot) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    /* Lichtkegel */
    conic-gradient(from 160deg at 12% -8%, transparent 0deg, var(--spot-left) 14deg, transparent 32deg),
    conic-gradient(from 168deg at 88% -8%, transparent 0deg, var(--spot-right) 18deg, transparent 36deg),
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--spot-center), transparent 70%),
    /* Bühnenboden */
    radial-gradient(ellipse 120% 50% at 50% 110%, var(--stage-bg-2), transparent 70%),
    var(--stage-bg);
}
.spotlights::after {
  /* Vignette + leichtes "Atmen" der Scheinwerfer */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------------------
   Kopfzeile / Logo
   --------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 0.85;
  transform: skewX(var(--slant));
}
.logo-top {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, #fff 30%, #c9c2ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 59, 92, 0.6)) drop-shadow(0 -2px 0 rgba(47, 128, 255, 0.5));
}
.event-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.15;
}
.event-meta strong {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live-Verbindungsanzeige */
.conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  border: 1px solid var(--panel-edge);
  flex-shrink: 0;
}
.conn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.conn.is-on {
  color: var(--live);
  border-color: rgba(255, 45, 85, 0.4);
}
.conn.is-sync {
  color: var(--gold);
  border-color: rgba(255, 197, 49, 0.4);
}
.conn.is-sync i {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.conn.is-on i {
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% { opacity: 0.35; }
}

/* ---------------------------------------------------------------------
   Show-Kachel: abgeschrägte Ecken (Signatur-Form)
   --------------------------------------------------------------------- */
.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  backdrop-filter: blur(6px);
}

/* Schräges Label wie eine Bauchbinde */
.tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px 3px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #120c00;
  background: linear-gradient(90deg, var(--gold), #ffe08a);
  transform: skewX(var(--slant));
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.tag > * {
  display: inline-block;
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------
   Duell-Anzeige (2 Teams/Spieler): Rot vs. Blau
   --------------------------------------------------------------------- */
.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.duel-side {
  --c: var(--red);
  position: relative;
  padding: 14px 12px 12px;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 8%, transparent)),
    var(--panel-solid);
  border-top: 4px solid var(--c);
  min-width: 0;
}
.duel-side.left {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
.duel-side.right {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.duel-side.is-leading::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--c) 55%, transparent);
  pointer-events: none;
}
.duel-name {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duel-score {
  position: relative;
  font-size: clamp(72px, 24vw, 150px);
  line-height: 0.95;
  margin: 2px 0 4px;
  text-shadow: 0 0 28px color-mix(in srgb, var(--c) 80%, transparent), 0 4px 0 rgba(0, 0, 0, 0.5);
}
.duel-members {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.25;
}
.duel-vs {
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  background: var(--panel-solid);
  text-shadow: 0 0 18px rgba(255, 197, 49, 0.7);
  border-top: 4px solid var(--gold);
}
.duel-bar {
  grid-column: 1 / -1;
  display: flex;
  height: 10px;
  background: var(--panel-solid);
  overflow: hidden;
}
.duel-bar i {
  display: block;
  height: 100%;
  transition: flex-grow var(--t-slow) var(--ease-pop);
}
.duel-bar .l { background: var(--cl, var(--red)); }
.duel-bar .r { background: var(--cr, var(--blue)); }

/* ---------------------------------------------------------------------
   Aktuelles Spiel – mit Lauflicht-Rahmen (Glühbirnen)
   --------------------------------------------------------------------- */
.now-card {
  position: relative;
  padding: 18px 18px 16px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 197, 49, 0.18), transparent 70%),
    var(--panel-solid);
  isolation: isolate;
}
.now-card.is-live::before {
  /* Glühbirnen-Rahmen: Punktmuster, maskiert auf einen Ring, läuft im Kreis */
  content: '';
  position: absolute;
  inset: 0;
  padding: 9px;
  background:
    radial-gradient(circle, #fff6d5 0 2px, var(--gold) 3px, transparent 4.5px) -4.5px -4.5px / 18px 18px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 4px var(--gold));
  animation: chase 0.9s linear infinite;
  z-index: -1;
}
@keyframes chase {
  /* um genau eine Rasterzelle weiter → nahtloses Lauflicht */
  to { background-position: 13.5px 13.5px; }
}
.now-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.now-card.is-live .now-kicker {
  color: var(--live);
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px var(--live);
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.now-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.now-stake {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 16px;
  transform: skewX(var(--slant));
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 197, 49, 0.35);
}
.stake-label,
.stake-unit {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-size: 15px;
}
.stake-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 72px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 197, 49, 0.65);
}
.now-sub {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------------------------------------------------------------------
   Kennzahlen + rechnerische Entscheidung
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  padding: 10px 8px 8px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.verdict {
  margin-top: 10px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.03em;
  color: #120c00;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #fff1b8, var(--gold), var(--gold-deep));
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.verdict.is-soft {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.35), rgba(255, 45, 85, 0.15));
  animation: none;
}
@keyframes shine {
  to { background-position: -200% 0; }
}

/* ---------------------------------------------------------------------
   Rangliste (FLIP-animiert)
   --------------------------------------------------------------------- */
.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.rank-row {
  --c: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 44px 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c) 26%, transparent), transparent 55%),
    var(--panel);
  border-left: 5px solid var(--c);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  will-change: transform;
}
.rank-row.is-first {
  background:
    linear-gradient(90deg, rgba(255, 197, 49, 0.32), transparent 60%),
    var(--panel);
}
.rank-pos {
  font-family: var(--font-display);
  font-size: 30px;
  text-align: center;
  color: var(--text-dim);
}
.rank-row.is-first .rank-pos {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 197, 49, 0.7);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-family: var(--font-display);
  background: var(--c);
  color: #0b0716;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.avatar.has-emoji {
  background: color-mix(in srgb, var(--c) 30%, var(--panel-solid));
}
.rank-name {
  min-width: 0;
}
.rank-name strong {
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-name small {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #120c00;
  background: var(--gold);
}
.rank-score {
  font-size: 40px;
  line-height: 1;
  text-align: right;
  min-width: 2ch;
}

/* "+4"-Blase bei Punktgewinn */
.delta-pop {
  position: absolute;
  right: 12px;
  top: -4px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--mint);
  text-shadow: 0 0 12px currentColor;
  pointer-events: none;
  animation: deltaUp 1.8s var(--ease-pop) forwards;
}
.delta-pop.is-neg {
  color: var(--live);
}
@keyframes deltaUp {
  0% { transform: translateY(14px) scale(0.6); opacity: 0; }
  20% { transform: translateY(0) scale(1.15); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(-26px) scale(1); opacity: 0; }
}
.flash {
  animation: flash 1.2s ease-out;
}
@keyframes flash {
  0% { filter: brightness(2.2) saturate(1.4); }
  100% { filter: none; }
}

/* ---------------------------------------------------------------------
   Spielplan
   --------------------------------------------------------------------- */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.game-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--panel);
  border-left: 3px solid transparent;
}
.game-no {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  color: var(--text-faint);
}
.game-main {
  min-width: 0;
}
.game-name {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
}
.game-winner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-dim);
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--c, var(--gold));
  vertical-align: 1px;
}
.game-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pts {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  white-space: nowrap;
}
.pts small {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  margin-left: 2px;
  color: var(--text-dim);
}
.status {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--panel-edge);
  color: var(--text-faint);
  white-space: nowrap;
}
.game-row.is-live {
  border-left-color: var(--live);
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.22), transparent 70%), var(--panel);
}
.game-row.is-live .status {
  color: #fff;
  background: var(--live);
  border-color: var(--live);
}
.game-row.is-done .status {
  color: var(--mint);
  border-color: rgba(33, 209, 159, 0.4);
}
.game-row.is-done .game-no {
  color: var(--mint);
}

/* Spiel im Lostopf (Zufallsmodus) */
.game-row.is-pool {
  opacity: 0.6;
  border-left-style: dashed;
  border-left-color: var(--text-faint);
}
.game-row.is-pool .game-no {
  font-family: var(--font-body);
  font-size: 18px;
}

/* ---------------------------------------------------------------------
   Links zum Antippen (z. B. Online-Quiz, Spielraum)
   --------------------------------------------------------------------- */
.link-buttons {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  color: #120c00;
  text-decoration: none;
  background: linear-gradient(180deg, #ffd65c, var(--gold));
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.link-btn:hover,
.link-btn:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.link-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.link-text {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.link-label {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  text-align: left;
}
.link-host {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0.75;
}
/* kompakte Variante im Spielplan */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.link-row .link-btn {
  min-height: 34px;
  padding: 4px 12px;
}
.link-row .link-label {
  font-size: 15px;
}
.link-row .link-host {
  font-size: 12px;
}

/* ---------------------------------------------------------------------
   Teams / Gruppen
   --------------------------------------------------------------------- */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.group {
  --c: var(--gold);
  padding: 10px 12px 12px;
  border-top: 4px solid var(--c);
}
.group-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--c);
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.member-list li {
  font-size: 17px;
}
.member-emoji {
  display: inline-block;
  width: 1.5em;
}

/* ---------------------------------------------------------------------
   Graph
   --------------------------------------------------------------------- */
.chart-wrap {
  position: relative;
  min-width: 0;
  height: 240px;
  padding: 10px 8px 4px;
  overflow: hidden;
}
/* Canvas absolut im Rahmen: Chart.js passt sich dem Container an, nicht umgekehrt
   (verhindert "Aufschaukeln" beim Ändern der Fenstergröße). */
.chart-wrap canvas {
  position: absolute;
  inset: 10px 8px 4px;
  width: calc(100% - 16px) !important;
  height: calc(100% - 14px) !important;
}

/* ---------------------------------------------------------------------
   Korrekturen-Ticker
   --------------------------------------------------------------------- */
.adjust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 16px;
}
.adjust-list li {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  background: var(--panel);
}
.adjust-list .num {
  min-width: 3ch;
  color: var(--mint);
}
.adjust-list .is-neg .num {
  color: var(--live);
}
.adjust-list span:last-child {
  color: var(--text-dim);
}

.empty {
  padding: 18px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------------------------------------------------------------------
   Sieger-Einblendung + Konfetti + Toasts
   --------------------------------------------------------------------- */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}
.celebration {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  /* Dicht + unscharf: Dahinter darf man das ausgeloste Spiel noch nicht lesen können */
  background: radial-gradient(ellipse at center, rgba(7, 6, 15, 0.82), rgba(7, 6, 15, 0.96));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: fadeIn var(--t-med) ease-out;
}
.celebration-inner {
  --c: var(--gold);
  text-align: center;
  animation: zoomPop var(--t-slow) var(--ease-pop);
}
.celebration-kicker {
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.celebration-name {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 14vw, 140px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--c);
  text-shadow: 0 0 40px color-mix(in srgb, var(--c) 70%, transparent), 0 6px 0 rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;
}
.celebration-points {
  display: inline-block;
  padding: 4px 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 64px);
  color: #120c00;
  background: var(--gold);
  transform: skewX(var(--slant));
}
/* Auslosung (Glücksrad-Effekt) */
.now-card.is-pending .dice {
  display: inline-block;
  animation: diceWobble 2.4s ease-in-out infinite;
}
@keyframes diceWobble {
  0%, 70%, 100% { transform: rotate(0); }
  78% { transform: rotate(-18deg); }
  86% { transform: rotate(14deg); }
  94% { transform: rotate(-6deg); }
}
.draw-slot {
  margin: 16px auto 18px;
  padding: 10px 26px;
  max-width: min(92vw, 1100px);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  background: linear-gradient(90deg, transparent, rgba(255, 197, 49, 0.12), transparent);
}
.draw-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 120px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: anywhere;
}
.draw-slot.is-hit {
  animation: zoomPop var(--t-slow) var(--ease-pop);
}
.draw-slot.is-hit .draw-name {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255, 197, 49, 0.7), 0 6px 0 rgba(0, 0, 0, 0.6);
}

/* Team-Auslosung */
.team-draw {
  width: min(96vw, 1200px);
}
.td-slot {
  --c: var(--gold);
  margin: 14px auto 22px;
  padding: 10px 20px;
  max-width: 100%;
  border-top: 3px solid var(--c);
  border-bottom: 3px solid var(--c);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 18%, transparent), transparent);
  transition: border-color var(--t-fast);
}
.td-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 92px);
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.td-slot.is-hit {
  animation: zoomPop var(--t-med) var(--ease-pop);
}
.td-slot.is-hit .td-name {
  color: var(--c);
  text-shadow: 0 0 34px color-mix(in srgb, var(--c) 70%, transparent), 0 5px 0 rgba(0, 0, 0, 0.6);
}
.td-slot.is-done .td-name {
  color: var(--gold);
  font-size: clamp(26px, 5vw, 64px);
}
.td-teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  text-align: left;
}
.td-team {
  --c: var(--gold);
  min-height: 120px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--panel-solid);
  border-top: 5px solid var(--c);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.td-team-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 34px);
  text-transform: uppercase;
  color: var(--c);
}
.td-count {
  color: var(--text-dim);
}
.td-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.td-member {
  --c: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 28px);
  background: color-mix(in srgb, var(--c) 18%, rgba(0, 0, 0, 0.3));
  border-left: 4px solid var(--c);
  animation: memberIn var(--t-slow) var(--ease-pop);
}
.td-emoji {
  width: 1.4em;
  text-align: center;
}
@keyframes memberIn {
  0% { transform: translateY(-60px) scale(1.4); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* Start-Countdown */
.countdown {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(110px, 32vw, 380px);
  line-height: 0.9;
  color: var(--text);
  text-shadow: 0 0 60px rgba(255, 197, 49, 0.6), 0 8px 0 rgba(0, 0, 0, 0.6);
}
.countdown.pop {
  animation: countPop 0.8s var(--ease-pop);
}
.countdown.is-go {
  font-size: clamp(56px, 13vw, 170px);
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes countPop {
  0% { transform: scale(2.2); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1); }
}
.now-card.is-setup .now-title {
  color: var(--gold);
}

@keyframes fadeIn {
  from { opacity: 0; }
}
@keyframes zoomPop {
  from { transform: scale(0.4); opacity: 0; }
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 60;
  display: grid;
  gap: 6px;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 10px 14px;
  background: var(--panel-solid);
  border-left: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn var(--t-med) var(--ease-pop);
}
.toast.is-error {
  border-left-color: var(--live);
}
.toast.is-ok {
  border-left-color: var(--mint);
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
}

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