/* =====================================================
   Freitags Bash · v2 Design System
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;800;900&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* === Surfaces (cooler than v1, less black-hole) === */
  --bg:           #0b0d10;
  --bg-2:         #0e1115;
  --surface:      #14171d;
  --surface-2:    #1b1f26;
  --surface-3:    #262b35;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.14);

  /* === Foreground === */
  --text:         #f4f5f7;
  --text-soft:    #c8ccd4;
  --muted:        #9aa1ae;
  --faint:        #4b515c;

  /* === Brand — lime / magenta / ice === */
  --primary:      #d4ff3a;   /* electric lime, hero accent */
  --primary-deep: #a8d428;
  --primary-soft: rgba(212,255,58,0.12);
  --primary-line: rgba(212,255,58,0.35);

  --alert:        #ff3d6e;   /* live, danger */
  --alert-soft:   rgba(255,61,110,0.12);
  --alert-line:   rgba(255,61,110,0.35);

  --cool:         #7df0ff;   /* info, secondary — UI-Akzent, NICHT mehr Disziplin-Identität */
  --cool-soft:    rgba(125,240,255,0.10);

  /* Discipline-specific (jede Disziplin eine distinkte Identitäts-Farbe).
     --d-geo bewusst von --cool entkoppelt (vorher gleicher Hex → Bedeutungs-Kollision
     zwischen „GeoGuessr läuft" und „Pause/Sekundär-Info"). Jetzt eine Spur tiefer. */
  --d-geo:  #5ec8ff;
  --d-hax:  #6cf2a0;
  --d-che:  #ffd34a;
  --d-bra:  #ff7a4a;
  --d-fall: #ff7ce0;
  --d-cha:  #2fae6d; /* Meccha Chameleon */

  /* === Type === */
  --font-display: "Big Shoulders Display", "Anton", "Arial Narrow", sans-serif;
  --font-body:    "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* === Typografie-Skalen — 4 Mono-Stufen + 3 Letter-Spacing-Stufen.
     Vorher gab's 15+ Mikro-Varianten je Achse, die alle gleich wirken sollten. */
  --fs-micro:    0.62rem;  /* Kleinste Mono-Labels (Sub-Sub-Hierarchie) */
  --fs-mono:     0.72rem;  /* Standard Mono-Caps-Label (Eyebrows, Status) */
  --fs-mono-lg:  0.82rem;  /* Größere Mono-Caps (Section-Header) */
  --fs-mono-xl:  0.96rem;  /* Hervorgehobener Mono-Text (selten) */
  --ls-tight:    0.06em;   /* Mono-Inline / Schmal-gespacte Caps */
  --ls-normal:   0.12em;   /* Standard-Mono-Caps */
  --ls-wide:     0.18em;   /* Große Eyebrows / Hero-Caps */

  /* === Avatar-Skala — konsistente Größen statt 26/30/34/40/60/76/130 wild gemischt === */
  --av-xs: 26px;
  --av-sm: 30px;
  --av-md: 40px;
  --av-lg: 60px;
  --av-xl: 130px;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,0.6);
  --shadow:    0 18px 50px -22px rgba(0,0,0,0.85);

  --wrap: 1100px;
  --wrap-narrow: 720px;

  color-scheme: dark;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-feature-settings: "ss01", "ss02";
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background grain + ambient field */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5; mix-blend-mode: overlay;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--primary-soft), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(125,240,255,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 90%, rgba(255,61,110,0.04), transparent 60%);
}

/* Scroll progress */
.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  z-index: 1000;
  box-shadow: 0 0 12px var(--primary);
}

/* === Typography helpers === */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.86;
  text-transform: uppercase;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow .num {
  color: var(--primary);
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.eyebrow.alert { color: var(--alert); }
.tnum { font-variant-numeric: tabular-nums; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

/* Logo / mark */
.logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  position: relative;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.25s, border-color 0.25s;
}
.logo-mark::before {
  content: ""; position: absolute; inset: 4px;
  background: var(--primary);
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 60%, 80% 60%, 80% 80%, 0 80%);
}
.logo:hover .logo-mark { transform: rotate(-3deg); border-color: var(--primary); }
.logo-text {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.15rem; letter-spacing: 0.04em;
  text-transform: uppercase; line-height: 1;
}
.logo-text small {
  display: block; margin-top: 3px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute;
  left: -2px; right: -2px; bottom: -8px; height: 2px;
  background: var(--primary);
}
.nav-cta {
  background: var(--primary) !important; color: var(--bg) !important;
  padding: 0.55rem 1rem; border-radius: 999px;
  font-weight: 700 !important; font-size: 0.82rem !important;
}
.nav-cta:hover { box-shadow: 0 6px 20px -6px var(--primary); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links a.hide-sm { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--primary); color: var(--bg); box-shadow: 0 6px 24px -8px var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--primary); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-alert { background: var(--alert); color: white; box-shadow: 0 6px 24px -8px var(--alert); }
.btn-alert:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--alert); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; }

/* === Layout === */
main.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 4rem; }
main.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 1.5rem 4rem; }

.sec { padding-top: 4rem; }
.sec:first-of-type { padding-top: 3rem; }
.sec-head { margin-bottom: 1.75rem; max-width: 640px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.005em; line-height: 0.92;
  text-transform: uppercase;
  margin: 0.7rem 0 0.6rem;
}
.sec-head h2 .accent { color: var(--primary); }
.sec-head h2 .alert  { color: var(--alert); }
.sec-head p { color: var(--text-soft); font-size: 1rem; max-width: 540px; }
.sec-head p a { color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--primary-line); }

/* === Hero === */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(212,255,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,255,58,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.hero-stamp {
  position: absolute; right: 1.5rem; top: 3rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(7rem, 18vw, 14rem); line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  text-stroke: 1.5px var(--border-strong);
  letter-spacing: -0.02em;
  user-select: none; pointer-events: none;
  z-index: 0;
}

.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3.6rem, 11vw, 8rem); line-height: 0.84;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .stk {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
  text-stroke: 1.5px var(--text);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--alert);
  background: var(--alert-soft);
  border: 1px solid var(--alert-line);
  padding: 0.35rem 0.85rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--alert);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-sub {
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.1rem; line-height: 1.55;
  max-width: 480px;
}
.hero-sub b { color: var(--text); font-weight: 600; }

.hero-meta {
  margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.05em; color: var(--muted);
}
.hero-meta b { color: var(--text); font-weight: 500; }
.hero-meta-sep { width: 1px; height: 16px; background: var(--border-strong); }

/* === Countdown === */
.countdown { display: flex; gap: 0.6rem; margin-top: 2rem; }
.cd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 72px; padding: 0.85rem 0 0.65rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.cd::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--primary);
  opacity: 0.6;
}
.cd b {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: 2rem; line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cd small {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2rem;
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}

/* === Stats strip === */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.2rem; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.card.lead::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--primary);
}

/* === Leaderboard === */
.leaderboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lb-header {
  display: grid; grid-template-columns: 56px 1fr 88px 72px;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.lb-row {
  display: grid; grid-template-columns: 56px 1fr 88px 72px;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.02); }
.lb-rank {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lb-rank.gold   { color: var(--primary); }
.lb-rank.silver { color: var(--text-soft); }
.lb-rank.bronze { color: var(--d-bra); }

.lb-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-family: var(--font-display); font-weight: 900;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.lb-player { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.lb-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  background-size: cover; background-position: center;
  font-family: var(--font-mono);
}
.lb-name { font-weight: 600; font-size: 0.95rem; }
.lb-cry { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.lb-pts {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 1.05rem; color: var(--primary);
  text-align: right; font-variant-numeric: tabular-nums;
}
.lb-w {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--muted); text-align: right; font-variant-numeric: tabular-nums;
}
.lb-empty {
  padding: 3rem 1.5rem; text-align: center;
  color: var(--muted); font-size: 0.92rem; line-height: 1.6;
}
.lb-veto {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-left: 0.5rem; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary-line);
  border-radius: 4px;
}

/* === Player cards (grid of registered players) === */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.player-card:hover { border-color: var(--primary-line); transform: translateY(-3px); }
.player-card .pc-avatar {
  width: 56px; height: 56px;
  border-radius: 12px; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1rem; color: var(--bg);
  background-size: cover; background-position: center;
}
.player-card .pc-name { font-weight: 700; font-size: 0.95rem; }
.player-card .pc-cry {
  margin-top: 0.4rem;
  font-size: 0.78rem; color: var(--muted);
  font-style: italic; line-height: 1.4;
}

/* === Forms === */
label {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem;
}
input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-line);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8492' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
select option { background: var(--surface-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }

/* === Badges / pills === */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem; color: var(--text-soft);
  font-family: var(--font-body);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--alert-soft);
  border: 1px solid var(--alert-line);
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.live-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--alert);
  animation: pulse 1.2s ease-in-out infinite;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-inner nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.15s;
}
.footer-inner nav a:hover { color: var(--primary); }
.footer-inner small {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--muted);
}

/* === Animations === */
@keyframes pulse  { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes growBar { from { width: 0; } }

.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* === Admin banner (slim toolbar) === */
.admin-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 110;
  background: var(--alert); color: white;
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 0.45rem 1rem;
  cursor: pointer;
  display: none;
}
.admin-banner.show { display: block; }
body.admin-mode .site-header { top: 1.85rem; }

/* === Haxball Double Elimination — Live-Turnierbaum (abend.html) === */
.de-wrap { display: flex; gap: 0.9rem; align-items: stretch; }
@media (max-width: 720px) { .de-wrap { flex-direction: column; } }
.de-main { flex: 1; min-width: 0; overflow-x: auto; }
.de-gf { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; border-left: 1px dashed var(--border-strong); padding-left: 0.9rem; }
@media (max-width: 720px) { .de-gf { width: auto; border-left: none; padding-left: 0; } }
.de-bk { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.5rem 0 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.de-bk.wb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.de-bk.lb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); }
.de-rounds { display: flex; gap: 0.65rem; align-items: stretch; padding-bottom: 0.3rem; }
.de-round { min-width: 150px; max-width: 180px; display: flex; flex-direction: column; }
.de-round-h { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; text-align: center; }
.de-rmatches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 0.45rem; }
.de-match { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; }
.de-match.next { border-color: var(--primary-line); box-shadow: 0 0 0 1px var(--primary-line); }
.de-match .de-no { position: absolute; top: 2px; right: 6px; font-family: var(--font-mono); font-size: 0.52rem; color: var(--muted); }
.de-match.next .de-no { color: var(--primary); }
@keyframes dePop { 0% { opacity: 0; transform: translateY(6px) scale(0.92); } 100% { opacity: 1; transform: none; } }
.de-match.de-pop { animation: dePop 0.5s ease both; }
.de-slot { display: flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.5rem; font-size: 0.74rem; border-bottom: 1px solid var(--border); min-height: 1.9rem; }
.de-slot:last-child { border-bottom: none; }
.de-slot .de-nm { font-weight: 600; line-height: 1.2; }
.de-slot.win { background: var(--primary-soft); }
.de-slot.win .de-nm { color: var(--primary); }
.de-slot.win::after { content: '✓'; margin-left: auto; color: var(--primary); font-weight: 700; }
.de-slot.lose { opacity: 0.5; }
.de-slot.lose .de-nm { text-decoration: line-through; text-decoration-color: rgba(255,61,110,0.55); }
.de-dots { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.de-dot { width: 7px; height: 7px; border-radius: 50%; }
.de-adv { font-family: var(--font-mono); font-size: 0.54rem; color: #ffd34a; border: 1px dashed rgba(255,211,74,0.4); border-radius: 5px; padding: 1px 5px; margin-left: auto; white-space: nowrap; }
.de-slot.win .de-adv, .de-slot.lose .de-adv { display: none; }
.de-bye { font-size: 0.66rem; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 7px; padding: 0.3rem 0.45rem; }
.de-bye b { color: var(--text-soft); }
.de-ghost { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 0.5rem; color: var(--muted); font-size: 0.64rem; line-height: 1.45; text-align: center; }
.de-ghost b { color: var(--text-soft); }
.de-gf-card { background: var(--surface-2); border: 1px solid rgba(255,211,74,0.35); border-radius: 10px; overflow: hidden; }
.de-gf-card.next { box-shadow: 0 0 18px -8px #ffd34a; }
.de-gf-head { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; color: #ffd34a; padding: 0.45rem 0.6rem 0.1rem; }
.de-gf-sub { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 0.6rem 0.4rem; }
.de-gf-champ { text-align: center; padding: 0.45rem; font-size: 0.78rem; color: #ffd34a; }
.de-next { font-size: 0.8rem; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.65rem; margin-bottom: 0.6rem; }
.de-next b { color: var(--primary); }

/* === Champions-Bann — Bann-Slide + Veto-Zerstörung (abend.html Intro) === */
.ban-stage { display: flex; align-items: center; justify-content: center; gap: 2rem; margin: 1rem 0 0.8rem; flex-wrap: wrap; }
.ban-champ { text-align: center; }
.ban-champ .ir-av { width: var(--av-lg); height: var(--av-lg); border-radius: 50%; background-size: cover; background-position: center; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #0b0d10; border: 2px solid #ffd34a; box-shadow: 0 0 24px -8px #ffd34a; }
.ban-champ-name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.35rem; }
.ban-champ-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ban-target { position: relative; text-align: center; padding: 0.9rem 1.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.ban-target-name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ban-stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; letter-spacing: 0.14em;
  color: var(--alert); border: 4px solid var(--alert); border-radius: 10px; margin: auto;
  width: 78%; height: 58%; transform: rotate(-12deg) scale(3); opacity: 0;
  background: rgba(255,61,110,0.08); pointer-events: none; text-shadow: 0 0 18px rgba(255,61,110,0.6);
}
.ban-target.stamped .ban-stamp { animation: banStamp 0.45s cubic-bezier(.2,1.6,.35,1) forwards; }
.ban-target.stamped .intro-logo, .ban-target.stamped .ban-target-name { filter: grayscale(0.9) brightness(0.6); }
@keyframes banStamp { 0% { opacity: 0; transform: rotate(-12deg) scale(3); } 60% { opacity: 1; transform: rotate(-12deg) scale(0.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

.ban-victim { position: relative; overflow: visible; transition: filter 0.3s; }
.ban-victim .ban-boom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; opacity: 0; pointer-events: none; }
.ban-victim .ban-lost {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-8deg) scale(0);
  text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.12em; color: var(--alert); text-shadow: 0 2px 10px rgba(0,0,0,0.7); pointer-events: none;
}
.ban-victim.ban-destroying { animation: banShake 1.2s ease both; border-color: var(--alert-line) !important; box-shadow: 0 0 30px -8px var(--alert); }
.ban-victim.ban-destroying .ban-boom { animation: banBoom 1.2s ease both; }
@keyframes banShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-5px) rotate(-1deg); } 20% { transform: translateX(5px) rotate(1deg); }
  30% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  50% { transform: translateX(-7px) rotate(-2deg); } 60% { transform: translateX(7px) rotate(2deg); }
  70% { transform: translateX(-5px); } 80% { transform: translateX(5px); } 90% { transform: translateX(-3px); }
}
@keyframes banBoom { 0% { opacity: 0; transform: scale(0.3); } 55% { opacity: 0; transform: scale(0.3); } 70% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0.9; transform: scale(1); } }
.ban-victim.ban-destroyed { filter: grayscale(1) brightness(0.55); }
.ban-victim.ban-destroyed .ir-cry { text-decoration: line-through; text-decoration-color: rgba(255,61,110,0.7); }
.ban-victim.ban-destroyed .ban-boom { opacity: 0.25; }
.ban-victim.ban-destroyed .ban-lost { transform: translateY(-50%) rotate(-8deg) scale(1); transition: transform 0.3s cubic-bezier(.2,1.6,.35,1); }
@keyframes banQuake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-4px,2px); } 50% { transform: translate(4px,-2px); } 75% { transform: translate(-2px,-2px); } }
body.ban-quake { animation: banQuake 0.4s ease; }

/* Veto-Slide: King-of-the-Hill-Regel + Joker-Spiel-Vorstellung */
.intro-vinfo { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 0.9rem auto 0.4rem; max-width: 760px; }
.vinfo-card { flex: 1; min-width: 260px; display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.85rem; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.vinfo-card b { color: var(--text); }
.vinfo-card .vinfo-ico { flex-shrink: 0; font-size: 1.4rem; line-height: 1; padding-top: 2px; }

/* Champions-Bann: Zwangsrekrutierung nach der Zerstörung */
.ban-victim .ban-forced {
  position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--primary); opacity: 0; transform: scale(0);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); pointer-events: none;
}
.ban-victim.ban-conscripted { filter: grayscale(0.35) brightness(0.9); border-color: var(--alert-line) !important; }
.ban-victim.ban-conscripted .ban-lost { top: 34%; font-size: 0.85rem; opacity: 0.75; }
.ban-victim.ban-conscripted .ban-forced { animation: banForce 0.5s cubic-bezier(.2,1.6,.35,1) 0.15s forwards; }
@keyframes banForce { 0% { opacity: 0; transform: scale(0) rotate(6deg); } 70% { opacity: 1; transform: scale(1.15) rotate(-2deg); } 100% { opacity: 1; transform: scale(1) rotate(-2deg); } }
.ban-epilog { text-align: center; font-size: 0.92rem; color: var(--text-soft); background: var(--alert-soft); border: 1px solid var(--alert-line); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin: 0.8rem auto 0; max-width: 640px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s; }
.ban-epilog.show { opacity: 1; transform: none; }
.ban-epilog b { color: var(--alert); }
.ban-victim.ban-conscripted .ir-cry { opacity: 0.25; }

/* Spielpool-Reveal-Slide (Intro) */
.pool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; max-width: 860px; margin: 1rem auto 0.4rem; }
.pool-card { position: relative; background: var(--surface-2); border: 1px solid var(--border-strong); border-top: 2px solid var(--gc, var(--border-strong)); border-radius: var(--radius); padding: 0.8rem 0.6rem 0.7rem; text-align: center; }
.pool-card .pool-logo { height: 58px; width: 58px; object-fit: cover; border-radius: 13px; margin-bottom: 0.4rem; box-shadow: 0 0 22px -8px var(--gc, transparent), 0 4px 14px rgba(0,0,0,0.4); }
.pool-card .pool-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; line-height: 1.1; }
.pool-card .pool-mode { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.pool-card .pool-pos { position: absolute; top: -9px; left: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #0b0d10; font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0); }
.pool-card .pool-bench { position: absolute; top: -8px; right: -6px; font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 2px 7px; background: var(--bg); opacity: 0; }
/* Einflug aller Pool-Karten, dann Line-up-Highlight / Rest dimmt */
.pool-card.anim { opacity: 0; animation: poolIn 0.5s cubic-bezier(.2,1.4,.4,1) var(--pd) forwards; }
@keyframes poolIn { 0% { opacity: 0; transform: translateY(16px) scale(0.85); } 100% { opacity: 1; transform: none; } }
.pool-card.picked.anim { animation: poolIn 0.5s cubic-bezier(.2,1.4,.4,1) var(--pd) forwards, poolPick 0.45s ease var(--pp) forwards; }
@keyframes poolPick { 0% { border-color: var(--border-strong); box-shadow: none; } 100% { border-color: var(--primary-line); box-shadow: 0 0 22px -8px var(--primary); } }
.pool-card.picked.anim .pool-pos { animation: poolPos 0.4s cubic-bezier(.2,1.6,.35,1) calc(var(--pp) + 0.1s) forwards; }
@keyframes poolPos { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }
.pool-card.benched.anim { animation: poolIn 0.5s cubic-bezier(.2,1.4,.4,1) var(--pd) forwards, poolDim 0.5s ease var(--pp) forwards; }
@keyframes poolDim { 100% { opacity: 0.42; filter: grayscale(0.7); } }
.pool-card.benched.anim .pool-bench { animation: poolPos 0.4s ease calc(var(--pp) + 0.1s) forwards; }
/* Endzustand ohne Animation (Re-Render desselben Slides) */
.pool-card.settled { opacity: 1; }
.pool-card.picked.settled { border-color: var(--primary-line); box-shadow: 0 0 22px -8px var(--primary); }
.pool-card.picked.settled .pool-pos { opacity: 1; transform: scale(1); }
.pool-card.benched.settled { opacity: 0.42; filter: grayscale(0.7); }
.pool-card.benched.settled .pool-bench { opacity: 1; }

/* Admin · Abend-Checkliste */
.cl-phase { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.4rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.25rem; }
.cl-item { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.45rem 0.55rem; border-radius: var(--radius-sm); margin-bottom: 0.2rem; }
.cl-item .cl-ico { flex-shrink: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; margin-top: 1px; }
.cl-item .cl-label { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.cl-item .cl-hint { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 1px; }
.cl-done { opacity: 0.72; }
.cl-done .cl-ico { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line); }
.cl-done .cl-label { text-decoration: line-through; text-decoration-color: rgba(212,255,58,0.4); color: var(--text-soft); }
.cl-warn { background: var(--alert-soft); border: 1px solid var(--alert-line); }
.cl-warn .cl-ico { background: var(--alert); color: #fff; }
.cl-warn .cl-label { color: var(--text); }
.cl-todo .cl-ico { border: 1px dashed var(--border-strong); color: var(--muted); }
.cl-info .cl-ico { background: var(--cool-soft); color: var(--cool); border: 1px solid rgba(125,240,255,0.3); }

/* Entbannung — Kino-Akte */
.ban-act { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ban-act.show { opacity: 1; transform: none; }
.ban-act-king { text-align: center; padding-top: 0.6rem; }
.ban-king-av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 0.6rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; color: #0b0d10; background-size: cover; background-position: center; border: 3px solid #ffd34a; box-shadow: 0 0 34px -6px #ffd34a; }
.ban-power-line { text-align: center; max-width: 640px; margin: 0.9rem auto 0; font-size: 0.98rem; color: var(--text-soft); background: linear-gradient(135deg, rgba(255,211,74,0.08), transparent 70%); border: 1px dashed rgba(255,211,74,0.4); border-radius: var(--radius); padding: 0.7rem 1rem; }
.ban-power-line b { color: #ffd34a; }
.ban-act-target { text-align: center; margin-top: 0.9rem; }
.ban-act-target .ban-target { display: inline-block; }
.ban-act-target .intro-rules { margin-top: 0.7rem; }

/* Entbannung — Erklär-Modus: „King wählt jetzt sein Spiel …" (Wartezustand) */
.ban-wait { text-align: center; margin-top: 1.1rem; }
.ban-wait-dot { display: inline-block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--alert); opacity: 0.35; animation: banWaitPulse 1.2s ease-in-out infinite; }
.ban-wait-dot:nth-child(2) { animation-delay: 0.2s; }
.ban-wait-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes banWaitPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* Veto-Slide: Karten-Akzente (Veto-Spieler hervorheben, King dezent) */
.ir-card.vt-veto { border-color: var(--cool); box-shadow: 0 0 0 1px var(--cool) inset, 0 8px 24px -14px var(--cool); }
.ir-card.vt-king { border-color: rgba(255,211,74,0.55); }
/* Karten-Fußzeile: gevetotes Spiel mit Original-Logo */
.vt-line { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: 0.35rem; font-size: 0.9rem; color: var(--text-soft); }
.vt-line b { color: var(--text); }
.vt-mini { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 7px rgba(0,0,0,0.45); }

/* Entbannung-Reveal: kompakter Kopf (King-Avatar + entbanntes Spiel mit Stempel) über dem Roster */
.ban-reveal-head { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin: 0.7rem 0 0.2rem; flex-wrap: wrap; }
.ban-reveal-head .ban-king-av { margin: 0; }
.ban-reveal-head .ban-target { display: inline-block; }

/* Vetospiel-Slide: Spieler-Chips */
.vg-players { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; align-items: center; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vg-chip { display: inline-flex; align-items: center; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--ir-c, var(--border-strong)); color: var(--text); font-weight: 700; }

/* Endstand: Entbannungs-Story (zerstörte Vetos) */
.ce-banned { margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-soft); background: var(--alert-soft); border: 1px solid var(--alert-line); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; }
.ce-banned b { color: var(--alert); }
