/* ── Buried2FISH · Stylesheet der Turnier-Website
   Ausgelagert aus index.html. Wird über <link> im <head> geladen. */

  /* ── Buried2FISH Nachthimmel-Theme (Farben aus design/: Banner, Icon, Template) ── */
  :root {
    --page-1: #16122e;      /* Nachthimmel-Indigo */
    --page-2: #221b4a;
    --surface: #251f4e;     /* Karten */
    --ink: #f3effc;
    --ink-2: #cfc5ec;       /* Lavendel */
    --muted: #968cc2;
    --grid: #3b3374;
    --border: rgba(207,197,240,0.14);
    --water: #8f6fe8;       /* Serie: Wolken-Violett (Balken, Winrate) */
    --koi: #f08c4d;         /* Akzent: Koi-Orange */
    --koi-soft: rgba(240,140,77,0.15);
    --pink: #e75b9e;        /* Koi-Flossen-Pink */
    --good: #43c26d;
    --warning: #f5b942;
    --critical: #e25563;
    --track: #322b64;
    --radius: 14px;
    --content-w: 1100px;  /* Inhaltsbreite — wächst auf großen Monitoren mit (s. unten) */
  }
  /* ── Adaptive Breite: große Monitore bekommen mehr Inhalt statt leerer Ränder,
       plus leicht größere Grundschrift, damit nichts „zusammengedrückt" wirkt ── */
  @media (min-width: 1440px) { :root { --content-w: 1240px; } }
  @media (min-width: 1720px) {
    :root { --content-w: 1400px; }
    body { font-size: 15px; }
  }
  @media (min-width: 2200px) {
    :root { --content-w: 1640px; }
    body { font-size: 16px; }
  }
  * { box-sizing: border-box; margin: 0; }
  /* ── Tastatur-Fokus: sichtbarer Ring für Buttons/Links/Tabs (nur bei
       Tastaturbedienung, nicht beim Klicken) ── */
  :focus-visible { outline: 2px solid var(--koi); outline-offset: 2px; border-radius: 4px; }
  /* Skip-Link: unsichtbar, bis er per Tab fokussiert wird */
  .skip-link {
    position: absolute; top: -48px; left: 12px; z-index: 100;
    padding: 8px 14px; background: var(--koi); color: #1b1233;
    border-radius: 8px; font-weight: 700; text-decoration: none;
    transition: top .15s;
  }
  .skip-link:focus { top: 12px; }
  html {
    scroll-behavior: smooth;
    /* Scrollbar immer anzeigen → Layout springt beim Tab-Wechsel nicht mehr
       seitlich. color-scheme macht die Scrollbar dunkel (passend zum Theme). */
    overflow-y: scroll;
    color-scheme: dark;
  }
  body {
    background:
      radial-gradient(1000px 520px at 88% -12%, rgba(143,111,232,.26), transparent 60%),
      radial-gradient(800px 480px at -12% 18%, rgba(123,90,220,.20), transparent 60%),
      radial-gradient(900px 560px at 55% 115%, rgba(231,91,158,.10), transparent 60%),
      linear-gradient(180deg, var(--page-1) 0%, var(--page-2) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }

  /* ── Hero (Banner aus design/Banner.jpg trägt Schriftzug + Koi) ─────── */
  .hero {
    position: relative;
    overflow: hidden;
    background: #2e2a6b;
    min-height: clamp(200px, 28vw, 520px);
    display: flex;
    align-items: flex-end;
  }
  /* Banner als eigene Ebene → cinematischer Ken-Burns-Zoom */
  .hero::before {
    content: ""; position: absolute; inset: -3%;
    background: url('/assets/banner.jpg') center 32% / cover no-repeat;
    animation: kenburns 48s ease-in-out infinite alternate;
    will-change: transform;
  }
  /* Fade läuft unten voll in die Seitenfarbe → nahtloser Übergang zur Tab-Leiste */
  .hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,18,46,.22) 0%, rgba(22,18,46,0) 36%, rgba(22,18,46,.78) 82%, #16122e 99%);
    pointer-events: none;
  }
  @keyframes kenburns {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.07) translateY(-1.2%); }
  }
  .hero-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--content-w); margin: 0 auto;
    padding: 90px 20px 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  }
  .hero h1 { /* Der Banner zeigt den Schriftzug — h1 nur für Screenreader/SEO */
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .hero .sub { color: #efe9fb; text-shadow: 0 1px 10px rgba(10,6,30,.9); }
  .hero .sub a { color: #ffc99d; text-decoration: none; font-weight: 600; }
  .hero .live {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    background: rgba(16,12,40,.55); border: 1px solid rgba(207,197,240,.28);
    border-radius: 999px; font-size: 12px; color: #efe9fb;
    backdrop-filter: blur(4px);
  }
  /* Twitch-LIVE-Badge neben „Stand … Uhr" — erscheint nur, wenn der Stream läuft */
  .live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 10px 2px 8px;
    background: rgba(255,66,66,.16); border: 1px solid rgba(255,80,80,.55);
    border-radius: 999px; color: #ffb3b3; font-weight: 800;
    letter-spacing: .05em; text-decoration: none; font-size: 11.5px;
    transition: background .12s ease;
  }
  .live-badge::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
    background: #ff4d4d; box-shadow: 0 0 9px rgba(255,77,77,.95);
    animation: livePulse 1.4s infinite;
  }
  .live-badge:hover { background: rgba(255,66,66,.3); }
  .live-badge .viewers { color: #ffd7d7; font-weight: 600; letter-spacing: 0; }

  /* ── Lebendiger Nachthimmel: Wolken driften, Sterne funkeln, Kois schweben ── */
  .sky {
    /* Überdimensioniert (inset: -120px), damit der Parallax-Versatz nie den Rand
       des Sternenfelds in den sichtbaren Bereich schiebt (untere/rechte Ecke). */
    position: fixed; inset: -120px; z-index: -1;
    overflow: hidden; pointer-events: none;
    /* Parallax: Himmel weicht der Maus leicht aus (--par-* setzt JS) */
    transform: translate(calc(var(--par-x, 0) * -78px), calc(var(--par-y, 0) * -54px));
    transition: transform .5s cubic-bezier(.2,.6,.3,1);
    will-change: transform;
  }
  .sky i { display: block; position: absolute; }
  .sky .cloud { border-radius: 50%; will-change: transform; }
  .sky .c1 {
    width: 900px; height: 520px; top: -180px; left: -220px;
    background: radial-gradient(closest-side, rgba(143,111,232,.18), transparent 70%);
    animation: drift1 90s ease-in-out infinite alternate;
  }
  .sky .c2 {
    width: 1100px; height: 640px; bottom: -260px; right: -320px;
    background: radial-gradient(closest-side, rgba(123,90,220,.15), transparent 70%);
    animation: drift2 120s ease-in-out infinite alternate;
  }
  .sky .c3 {
    width: 700px; height: 460px; top: 30%; left: 55%;
    background: radial-gradient(closest-side, rgba(231,91,158,.09), transparent 70%);
    animation: drift3 105s ease-in-out infinite alternate;
  }
  @keyframes drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(-140px, -80px) scale(1.1); } }
  @keyframes drift3 { to { transform: translate(-90px, 70px) scale(1.2); } }

  .sky .stars, .sky .stars2 {
    inset: 0;
    background-repeat: repeat;
    background-size: 800px 600px;
  }
  .sky .stars {
    background-image:
      radial-gradient(1.6px 1.6px at 120px 80px, rgba(243,239,252,.9), transparent),
      radial-gradient(1.2px 1.2px at 320px 190px, rgba(207,197,240,.8), transparent),
      radial-gradient(1.8px 1.8px at 540px 60px, rgba(243,239,252,.7), transparent),
      radial-gradient(1.2px 1.2px at 700px 300px, rgba(207,197,240,.75), transparent),
      radial-gradient(1.4px 1.4px at 220px 420px, rgba(243,239,252,.65), transparent),
      radial-gradient(1.2px 1.2px at 620px 500px, rgba(207,197,240,.7), transparent);
    animation: twinkle 5.5s ease-in-out infinite alternate;
  }
  .sky .stars2 {
    background-image:
      radial-gradient(1.3px 1.3px at 80px 320px, rgba(243,239,252,.8), transparent),
      radial-gradient(1.7px 1.7px at 430px 120px, rgba(207,197,240,.7), transparent),
      radial-gradient(1.1px 1.1px at 260px 540px, rgba(243,239,252,.7), transparent),
      radial-gradient(1.5px 1.5px at 660px 220px, rgba(243,239,252,.75), transparent),
      radial-gradient(1.1px 1.1px at 500px 400px, rgba(207,197,240,.65), transparent);
    animation: twinkle 7s ease-in-out -3s infinite alternate;
  }
  @keyframes twinkle { from { opacity: .35; } to { opacity: .95; } }

  .koi-float { position: absolute; fill: #f3effc; will-change: transform; }
  .koi-float.k1 { width: 130px; top: 66%; left: -10%; opacity: .085; animation: swim1 150s linear -45s infinite; }
  .koi-float.k2 { width: 78px; top: 16%; left: 108%; opacity: .06; animation: swim2 190s linear -80s infinite; }
  @keyframes swim1 {
    0%   { transform: translate(0, 0) rotate(58deg); }
    25%  { transform: translate(32vw, -8vh) rotate(72deg); }
    50%  { transform: translate(62vw, -15vh) rotate(55deg); }
    75%  { transform: translate(92vw, -25vh) rotate(70deg); }
    100% { transform: translate(126vw, -33vh) rotate(58deg); }
  }
  @keyframes swim2 {
    0%   { transform: translate(0, 0) rotate(-62deg); }
    25%  { transform: translate(-30vw, 5vh) rotate(-76deg); }
    50%  { transform: translate(-62vw, 9vh) rotate(-58deg); }
    75%  { transform: translate(-94vw, 15vh) rotate(-74deg); }
    100% { transform: translate(-126vw, 18vh) rotate(-62deg); }
  }

  /* Tab-Inhalte sanft einblenden */
  .wrap main { animation: tabIn .28s ease; }
  @keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }

  /* ── Fisch-Cursor: normaler Zeiger = heller Fisch, Klickbares = Koi-Orange ── */
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg transform='rotate(45 16 16)'%3E%3Cpath d='M4 16 C9 9 17 8 23 12 L28 8 L26 15 L28 22 L23 20 C17 24 9 23 4 16 Z' fill='%23f3effc' stroke='%23221b4a' stroke-width='1.5'/%3E%3Ccircle cx='9.5' cy='14.5' r='1.7' fill='%23221b4a'/%3E%3C/g%3E%3C/svg%3E") 7 7, auto;
  }
  a, button, summary, th, .tab-btn, .chip-btn, .arch-card, .hl-btn, .checkline {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg transform='rotate(45 16 16)'%3E%3Cpath d='M4 16 C9 9 17 8 23 12 L28 8 L26 15 L28 22 L23 20 C17 24 9 23 4 16 Z' fill='%23f08c4d' stroke='%23221b4a' stroke-width='1.5'/%3E%3Ccircle cx='9.5' cy='14.5' r='1.7' fill='%23221b4a'/%3E%3C/g%3E%3C/svg%3E") 7 7, pointer;
  }
  input, textarea { cursor: text; }

  /* Klick = der Fisch frisst: Krümel werden ins Maul gesaugt, Bläschen steigen auf */
  .chomp-bit {
    position: fixed; z-index: 999; width: 7px; height: 7px; border-radius: 50%;
    pointer-events: none;
    animation: chompIn .4s cubic-bezier(.5,0,1,.5) forwards;
  }
  @keyframes chompIn {
    to { transform: translate(var(--tx), var(--ty)) scale(.15); opacity: 0; }
  }
  .bubble-fx {
    position: fixed; z-index: 999; border-radius: 50%;
    border: 1.5px solid rgba(207,197,240,.75);
    background: rgba(207,197,240,.12);
    pointer-events: none;
    animation: bubbleUp .9s ease-out forwards;
  }
  @keyframes bubbleUp {
    to { transform: translate(var(--bx, 0), -52px) scale(1.3); opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero::before, .sky .cloud, .sky .stars, .sky .stars2, .koi-float, .wrap main,
    .chomp-bit, .bubble-fx, .hcloud {
      animation: none !important;
    }
    .sky { transform: none; transition: none; }
    .hero-clouds { display: none; }
  }

  /* ── Tabs ──────────────────────────────────────────────────────────── */
  nav.tabs {
    position: sticky; top: 0; z-index: 20;
    background: rgba(22,18,46,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(207,197,240,.09);
  }
  .tabs-inner {
    max-width: var(--content-w); margin: 0 auto;
    display: flex; gap: 2px; padding: 0 12px;
    overflow-x: auto; align-items: center;
    scrollbar-width: none;               /* Scrollbar aus — wischen geht weiter */
  }
  .tabs-inner::-webkit-scrollbar { display: none; }
  .tab-logo {
    width: 26px; height: 26px; border-radius: 50%;
    flex: 0 0 auto; margin-right: 8px;
    border: 1px solid rgba(207,197,240,.3);
    object-fit: cover;
  }
  .tab-btn {
    padding: 13px 15px 11px;
    background: none; border: none;
    color: var(--ink-2); font: inherit; font-weight: 600; font-size: 13.5px;
    cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent;
  }
  .tab-btn:hover { color: var(--ink); }
  .tab-btn.active {
    color: var(--koi); border-bottom-color: var(--koi);
    text-shadow: 0 0 18px var(--koi);
  }
  /* Lücke vor Shop & Mein Profil: schiebt beide nach ganz rechts (flex-grow),
     behält aber auch beim Scrollen auf schmalen Screens eine Mindest-Lücke.
     Dezente Trennlinie markiert: ab hier ist es nicht mehr Turnier. */
  .tab-gap { flex: 1 0 28px; align-self: stretch; position: relative; }
  .tab-gap::after {
    content: ''; position: absolute; right: 13px; top: 26%; bottom: 26%;
    width: 1px; background: rgba(207,197,240,.22);
  }

  .wrap { max-width: var(--content-w); margin: 0 auto; padding: 26px 16px 70px; }
  main[hidden] { display: none; }

  /* ── Stat-Tiles ────────────────────────────────────────────────────── */
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 26px; }
  .tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    transition: transform .15s ease, border-color .15s ease;
  }
  .tile:hover { transform: translateY(-2px); border-color: rgba(240,140,77,.4); }
  .tile .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
  .tile .value { font-size: 28px; font-weight: 800; margin-top: 2px; }
  .tile .value .dim { color: var(--muted); font-size: 15px; font-weight: 600; }
  .tile .sub { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
  .tile.koi-tile .value { color: var(--koi); }

  /* ── Sections ──────────────────────────────────────────────────────── */
  section {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 22px;
  }
  section h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  section h2 .hint { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: auto; }
  section h2::before { content: ""; width: 4px; height: 16px; background: linear-gradient(180deg, var(--koi), var(--pink)); border-radius: 2px; }
  .scroll { overflow-x: auto; }
  .note { color: var(--muted); font-size: 12px; margin-top: 10px; }

  /* ── Tabellen ──────────────────────────────────────────────────────── */
  table { border-collapse: collapse; width: 100%; }
  th, td { text-align: left; padding: 8px 10px; white-space: nowrap; }
  th {
    color: var(--muted); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--grid); cursor: pointer; user-select: none;
  }
  th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
  tbody tr { border-bottom: 1px solid var(--grid); transition: background .12s ease; }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: rgba(143,111,232,0.10); }
  td.name { font-weight: 600; }
  td .riot { color: var(--muted); font-size: 12px; }
  .rank1 td:first-child { color: var(--koi); font-weight: 800; }

  .bar-cell { min-width: 150px; }
  .bar { display: flex; align-items: center; gap: 8px; }
  .bar .track { flex: 1; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
  .bar .fill { height: 100%; background: var(--water); border-radius: 0 4px 4px 0; transition: width .4s ease; }
  .bar .val { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; width: 38px; text-align: right; }

  .hbar-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 40px; align-items: center; gap: 12px; padding: 5px 0; }
  .hbar-row .team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .hbar-row .track { height: 14px; background: var(--track); border-radius: 4px; }
  .hbar-row .fill { height: 100%; background: var(--water); border-radius: 0 4px 4px 0; min-width: 2px; transition: width .4s ease; }
  .hbar-row:first-child .fill { background: var(--koi); }
  .hbar-row .num { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }

  .chip {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; border: 1px solid var(--border); color: var(--ink-2);
    background: rgba(255,255,255,.03);
  }
  .chip.completed { border-color: rgba(67,194,109,.5); color: #6ad894; }
  .chip.pending_review { border-color: rgba(245,185,66,.5); color: var(--warning); }
  .chip.disputed { border-color: rgba(226,85,99,.6); color: #f08a93; }
  .chip.win { border-color: rgba(67,194,109,.55); color: #6ad894; font-weight: 600; }
  .chip.loss { border-color: rgba(226,85,99,.55); color: #f08a93; font-weight: 600; }
  .chip.islive { border-color: rgba(255,80,80,.65); color: #ff8f8f; font-weight: 600; }
  .chip.islive::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px;
    border-radius: 50%; background: #ff4d4d; animation: livePulse 1.4s infinite;
  }
  @keyframes livePulse { 50% { opacity: .3; } }

  /* op.gg-Multisearch-Link neben dem Teamnamen (Scouting/Caster) */
  a.opgg {
    font-size: 10px; font-weight: 700; text-decoration: none;
    color: var(--water); border: 1px solid rgba(63,135,201,.4);
    border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px;
  }
  a.opgg:hover { background: rgba(63,135,201,.15); }

  /* Gold-Verlauf (Match-V5-Timeline) in den Endgame-Stats */
  .eg-gold { margin-top: 10px; }
  .eg-gold-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  .eg-gold svg { display: block; width: 100%; height: 90px; background: rgba(255,255,255,.03); border-radius: 8px; }

  /* ── Tiefe Wolken: gleiten langsam VOR dem Banner über den Bildschirm ──
     Weiche, watteartige Bäusche mit Lavendel-Schatten — angelehnt an die
     Wolkenränder von assets/banner.jpg. Liegen über dem Banner (::before),
     aber unter dem Farbverlauf (::after) und dem Hero-Text (z-index 1). */
  .hero-clouds { position: absolute; inset: 0; pointer-events: none; }
  .hcloud {
    position: absolute; left: -700px; overflow: visible;
    animation: hcloudGlide linear infinite;
    will-change: transform;
  }
  .hc1 { width: min(620px, 58vw); bottom: -36px; opacity: .55; animation-duration: 95s;  animation-delay: -43s; }
  .hc2 { width: min(440px, 42vw); bottom: 26px;  opacity: .38; animation-duration: 145s; animation-delay: -35s; }
  .hc3 { width: min(820px, 74vw); bottom: -95px; opacity: .5;  animation-duration: 118s; animation-delay: -74s; }
  @keyframes hcloudGlide { to { transform: translateX(calc(100vw + 1600px)); } }

  /* Gamemode-Filter-Chips */
  .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .chip-btn {
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(255,255,255,.03);
    color: var(--ink-2); cursor: pointer; font: inherit; font-size: 13px;
    transition: border-color .12s ease, color .12s ease;
  }
  .chip-btn:hover { border-color: rgba(240,140,77,.45); }
  .chip-btn.active { border-color: var(--koi); color: var(--koi); background: var(--koi-soft); font-weight: 600; }

  .round-block { margin-bottom: 16px; }
  .round-block h3 {
    font-size: 12px; color: var(--muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .08em;
  }
  .match-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grid); flex-wrap: wrap; }
  .match-line:last-child { border-bottom: none; }
  .match-line .mid { color: var(--muted); font-size: 12px; width: 62px; font-variant-numeric: tabular-nums; }
  .match-line .vs { flex: 1; min-width: 200px; }
  .match-line .winner { font-weight: 700; color: var(--koi); }
  .match-line .score { font-variant-numeric: tabular-nums; color: var(--ink-2); width: 42px; text-align: center; }
  .checkmark { color: var(--good); }
  .medal { font-size: 13px; }
  .empty { color: var(--muted); padding: 12px 0; }

  /* Arena-Punkte-Spalten nur im Arena-Modus zeigen */
  #lb.no-arena th:nth-child(8), #lb.no-arena td:nth-child(8) { display: none; }
  #standings.no-arena th:nth-child(6), #standings.no-arena td:nth-child(6) { display: none; }

  /* ── Sonderregeln-Seitenleiste (Aktuelles Turnier) ─────────────────── */
  .t-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; align-items: start; }
  .t-cols.has-side { grid-template-columns: minmax(0, 1fr) 280px; }
  .t-cols aside { position: sticky; top: 62px; align-self: start; }
  #bracket-sec { scroll-margin-top: 66px; }

  /* ── Arena-Rangliste (nutzt die Turnierbaum-Sektion) ──────────────────── */
  .ar-legend { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
  .ar-scroll { overflow-x: auto; }
  .ar-table { border-collapse: collapse; width: 100%; font-size: 13px; }
  .ar-table th, .ar-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
  .ar-table thead th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 600; white-space: nowrap;
  }
  .ar-table th.ar-team, .ar-table td.ar-team { text-align: left; }
  .ar-table td.ar-team { font-weight: 600; }
  .ar-table td.ar-team small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; }
  .ar-table td.ar-rank { width: 34px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
  .ar-table th.ar-total, .ar-table td.ar-total {
    text-align: right; font-weight: 800; font-variant-numeric: tabular-nums;
    white-space: nowrap; border-left: 1px solid var(--line);
  }
  .ar-c { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 54px; }
  .ar-c .ar-pl { font-weight: 700; }
  .ar-c .ar-pt { color: var(--muted); font-size: 11px; margin-left: 4px; }
  .ar-c.ar-none { color: var(--muted); }
  .ar-c.ar-p1 { background: rgba(255,215,0,.13); }
  .ar-c.ar-p2 { background: rgba(200,200,200,.10); }
  .ar-c.ar-p3 { background: rgba(205,127,50,.12); }
  .ar-table tr.ar-mine { background: var(--koi-soft); }
  .ar-table tr.ar-mine td.ar-team { color: var(--koi); }
  .ar-table tr.ar-champ td { background: rgba(255,215,0,.10); }
  .ar-open { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
  .ar-open-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px;
    padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  }
  .ar-open-row .ar-open-r { color: var(--muted); }
  .ar-open-row .ar-open-t { color: var(--muted); font-size: 11.5px; flex: 1 1 200px; min-width: 0; }
  .ar-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
  .side-rules-body { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.55; }
  .side-rules-body a { color: var(--water); }
  .side-rules-body code { background: var(--page-1); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }

  /* ── Handicaps: Einstufung pro Team + Regel-Stufen ─────────────────── */
  .hc-legend { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
  .hc-row {
    display: flex; gap: 8px; align-items: center; padding: 6px 0;
    border-top: 1px solid var(--line); font-size: 12.5px;
  }
  .hc-row:first-of-type { border-top: 0; }
  .hc-row .hc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hc-row .hc-pts { color: var(--muted); font-variant-numeric: tabular-nums; }
  .hc-row.mine { background: var(--koi-soft); border-radius: 6px; padding-inline: 6px; }
  .hc-badge {
    font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
    border: 1px solid var(--line); white-space: nowrap;
  }
  .hc-badge.lvl0 { color: #7fe07f; border-color: rgba(12,163,12,.45); }
  .hc-badge.lvl1 { color: #ffd479; border-color: rgba(255,190,60,.45); }
  .hc-badge.lvl2 { color: #ffb066; border-color: rgba(255,140,40,.5); }
  .hc-badge.lvl3 { color: #ff9d9d; border-color: rgba(208,59,59,.5); }
  .hc-badge.lvl4 { color: #d9a6ff; border-color: rgba(160,80,220,.55); }
  .hc-tier { margin-top: 4px; font-size: 12px; line-height: 1.55; }
  .hc-tier li { margin: 3px 0 3px 2px; }
  .hc-players { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); padding: 2px 0 6px; }

  /* ── Self-Roles („Mein Profil" → Benachrichtigungen & Farbe) ───────── */
  .role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
  .role-card {
    display: flex; gap: 10px; align-items: center; text-align: left;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255,255,255,.03); color: var(--ink-2);
    font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
  }
  .role-card:hover:not(:disabled) { border-color: var(--water); }
  .role-card[aria-pressed="true"] { border-color: var(--koi); background: var(--koi-soft); color: var(--ink); }
  .role-card:disabled { opacity: .55; cursor: progress; }
  .role-card .rc-icon { font-size: 18px; line-height: 1; flex: 0 0 auto; }
  .role-card .rc-swatch { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.3); }
  .role-card .rc-text { min-width: 0; flex: 1; }
  .role-card .rc-text b { display: block; font-size: 13px; color: var(--ink); }
  .role-card .rc-text small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
  .role-card .rc-state { font-size: 15px; flex: 0 0 auto; }
  .role-group + .role-group { margin-top: 16px; }
  .role-group > h3 { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
  .role-group > .rg-hint { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
  @media (max-width: 900px) {
    .t-cols.has-side { grid-template-columns: 1fr; }
    .t-cols aside { position: static; }
  }

  /* ── News ──────────────────────────────────────────────────────────── */
  .news-card {
    position: relative;
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; background: rgba(255,255,255,.02); margin-bottom: 20px;
  }
  .news-card.hl {
    border-color: rgba(233, 161, 59, .75);
    box-shadow: 0 0 0 1px rgba(233, 161, 59, .35), 0 4px 18px rgba(233, 161, 59, .12);
    background: linear-gradient(180deg, rgba(233, 161, 59, .05), rgba(255, 255, 255, .02));
  }
  .hl-btn {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; padding: 2px; line-height: 1;
    font-size: 17px; cursor: pointer; color: var(--muted);
  }
  .hl-btn:hover, .hl-btn.on { color: #e9a13b; }
  .news-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; padding-right: 28px; }
  .news-card .meta b { color: var(--ink-2); }
  .news-card .body { font-size: 13.5px; overflow-wrap: anywhere; }
  .news-card .body a { color: var(--water); }
  .news-card .body code { background: var(--page-1); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
  .news-card img { max-width: 100%; border-radius: 8px; margin-top: 10px; display: block; }
  /* News-Tab-Button hervorheben (Staff-Ansage) — aus jedem Tab sichtbar */
  .tab-btn.tab-alert { color: #e9a13b; position: relative; }
  .tab-btn.tab-alert::after {
    content: ''; position: absolute; top: 8px; right: 4px;
    width: 7px; height: 7px; border-radius: 50%; background: #e9a13b;
    animation: tabPulse 1.8s ease-out infinite;
  }
  @keyframes tabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(233, 161, 59, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(233, 161, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 161, 59, 0); }
  }
  /* Globale Ansage-Leiste (klickbar → springt in die News) */
  #news-announce:empty { display: none; }
  .news-announce {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    border: 1px solid rgba(233, 161, 59, .6); border-radius: 12px;
    background: linear-gradient(135deg, rgba(233, 161, 59, .18), rgba(233, 161, 59, .05));
    padding: 12px 16px; margin-bottom: 22px;
  }
  .news-announce:hover { border-color: rgba(233, 161, 59, .9); }
  .news-announce .na-icon { font-size: 20px; line-height: 1; }
  .news-announce .na-text { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--ink); }
  .news-announce .na-cta { font-size: 12.5px; font-weight: 700; color: #e9a13b; white-space: nowrap; }
  .news-mod-tools {
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 16px; background: rgba(255,255,255,.02);
  }
  .news-mod-tools .nm-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
  .news-mod-tools .nm-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .news-mod-tools input { flex: 1; min-width: 180px;
    background: var(--page-1); color: var(--ink); border: 1px solid var(--grid);
    border-radius: 8px; padding: 8px 12px; font: inherit; }
  .news-mod-tools input:focus { outline: none; border-color: var(--water); }

  /* ── Endgame-Stats ─────────────────────────────────────────────────── */
  details.eg { margin: 0 0 8px 72px; }
  details.eg summary { cursor: pointer; color: var(--water); font-size: 12px; list-style: none; user-select: none; }
  details.eg summary::before { content: "▸ "; }
  details.eg[open] summary::before { content: "▾ "; }
  .eg-table { margin: 4px 0 6px; font-size: 12.5px; }
  .eg-table th, .eg-table td { padding: 4px 8px; }
  .eg-table .champ { width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
  .eg-team { color: var(--koi); font-weight: 700; font-size: 12px; padding-top: 8px; }
  .eg-meta { color: var(--muted); font-size: 11.5px; margin: 2px 0 6px; }

  /* ── Archiv ────────────────────────────────────────────────────────── */
  .arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .arch-card {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; background: rgba(255,255,255,.02);
    cursor: pointer; transition: border-color .12s ease, transform .12s ease;
  }
  .arch-card:hover { border-color: rgba(240,140,77,.45); transform: translateY(-2px); }
  .arch-card .mode { font-weight: 700; }
  .arch-card .when { color: var(--muted); font-size: 12px; margin-top: 2px; }
  .arch-card .facts { color: var(--ink-2); font-size: 12.5px; margin-top: 8px; }

  /* ── MVP-Voting ────────────────────────────────────────────────────── */
  .mvp-cand { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 52px auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--grid); }
  .mvp-cand:last-child { border-bottom: none; }
  .mvp-cand .track { height: 16px; background: var(--track); border-radius: 4px; }
  .mvp-cand .fill { height: 100%; background: var(--koi); border-radius: 0 4px 4px 0; min-width: 2px; transition: width .5s ease; }
  .mvp-cand .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mvp-cand .num { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
  .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d03b3b; animation: pulse 1.4s infinite; vertical-align: middle; margin-right: 4px; }
  @keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
  .btn.small { padding: 6px 14px; font-size: 12.5px; }
  .btn.ghost { background: none; border: 1px solid var(--koi); color: var(--koi); }

  /* ── Regeln ────────────────────────────────────────────────────────── */
  .rules h3 { font-size: 13.5px; margin: 16px 0 6px; color: var(--koi); }
  .rules ul { margin: 0 0 0 18px; color: var(--ink-2); font-size: 13.5px; }
  .rules li { margin-bottom: 5px; }

  /* ── LFT-Karten ────────────────────────────────────────────────────── */
  .lft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .lft-card {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; background: rgba(255,255,255,.02);
  }
  .lft-card .who { font-weight: 700; }
  .lft-card .lft-note { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
  .lft-card .ago { color: var(--muted); font-size: 11px; margin-top: 6px; }

  /* ── Solo-Anmeldung & Team-Beitrittsanfragen ───────────────────────── */
  .join-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .join-card {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; background: rgba(255,255,255,.02);
  }
  .join-card .who { font-weight: 700; }
  .jc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .jc-bar { height: 8px; border-radius: 4px; background: var(--track); margin: 8px 0; overflow: hidden; }
  .jc-bar .fill { height: 100%; border-radius: 4px; background: var(--water); transition: width .4s ease; }
  .jc-bar .fill.full { background: var(--good); }
  .jc-members { color: var(--muted); font-size: 12px; min-height: 16px; }
  .jc-foot { margin-top: 10px; }
  .hint-muted { color: var(--muted); font-size: 12px; }
  .join-form input {
    width: 100%; background: var(--page-1); color: var(--ink);
    border: 1px solid var(--grid); border-radius: 8px;
    padding: 8px 10px; font: inherit;
  }
  .join-form input:focus { outline: none; border-color: var(--water); }

  /* ── Mein Team & Nemesis-Draft ─────────────────────────────────────── */
  .help { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
  .btn.danger { background: #c0392b; }
  .btn.danger:hover { background: #a93226; }
  .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
         background: var(--track); color: var(--ink-2); margin-right: 6px; }
  .tag.ok { background: rgba(46,160,90,.18); color: #4bbf7b; }
  .tag.warn { background: rgba(232,85,95,.16); color: #e8555f; }
  .team-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
               background: rgba(255,255,255,.02); margin-top: 16px; }
  .team-card h3 { margin: 0 0 8px; font-size: 14px; color: var(--koi); }
  .team-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .team-row input[type=text] { flex: 1; min-width: 180px; background: var(--page-1); color: var(--ink);
               border: 1px solid var(--grid); border-radius: 8px; padding: 8px 10px; font: inherit; }
  .team-row input[type=text]:focus { outline: none; border-color: var(--water); }
  .switch-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .team-table { width: 100%; border-collapse: collapse; }
  .team-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--grid); }
  .team-table td { padding: 8px; border-bottom: 1px solid var(--grid); font-size: 13.5px; vertical-align: middle; }
  .team-table td code { font-size: 12.5px; }
  .nem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .nem-pick label { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
  .nem-select { width: 100%; background: var(--page-1); color: var(--ink); border: 1px solid var(--grid);
                border-radius: 8px; padding: 8px; font: inherit; }
  .nem-select:focus { outline: none; border-color: var(--water); }
  .nem-select:disabled { opacity: .7; }
  .nem-plays { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
  .nem-play { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.03);
              border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
  .nem-role { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; min-width: 54px; }
  .nem-icon { width: 28px; height: 28px; border-radius: 6px; }
  .nem-revealed { border-color: #e8555f; }

  /* ── Formular (Anmeldung) ──────────────────────────────────────────── */
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
  .field .help { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
  .field input, .field textarea, .field select {
    width: 100%; max-width: 420px;
    background: var(--page-1); color: var(--ink);
    border: 1px solid var(--grid); border-radius: 8px;
    padding: 9px 12px; font: inherit;
  }
  .field select { cursor: pointer; }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--water); }
  .role-row { display: flex; gap: 8px; max-width: 420px; }
  .role-row select { flex: 1; min-width: 0; }
  .checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
  .field .checkline input { width: 16px; height: 16px; accent-color: var(--koi); cursor: pointer; }
  .btn {
    display: inline-block; padding: 10px 22px;
    background: linear-gradient(135deg, var(--koi), var(--pink));
    color: #fff; border: none; border-radius: 8px;
    font: inherit; font-weight: 700; cursor: pointer;
    text-decoration: none;
    transition: filter .12s ease;
    box-shadow: 0 2px 12px rgba(231,91,158,.25);
  }
  .btn:hover { filter: brightness(1.1); }
  .btn:disabled { opacity: .5; cursor: not-allowed; }
  .form-status {
    margin-top: 14px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(255,255,255,.03);
    font-size: 13.5px; display: none;
  }
  .form-status.show { display: block; }
  .form-status.ok { border-color: rgba(12,163,12,.5); }
  .form-status.err { border-color: rgba(208,59,59,.6); }
  .steps { color: var(--ink-2); font-size: 13px; }
  .steps li { margin-bottom: 6px; }

  /* ── Meine Matches (Profil) ────────────────────────────────────────── */
  .prof-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .prof-head .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--koi); object-fit: cover; background: var(--page-1);
  }
  .prof-head .who { font-size: 17px; font-weight: 800; }
  .prof-head .sub { color: var(--muted); font-size: 12px; }
  .prof-head .logout { margin-left: auto; }
  .mh-personal {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    color: var(--ink-2); font-size: 12px;
    margin: 0 0 8px 72px;
  }
  .mh-personal .champ { width: 20px; height: 20px; border-radius: 4px; vertical-align: middle; }
  .mh-personal b { color: var(--ink); }
  .mh-tournament-date { color: var(--muted); font-weight: 400; font-size: 12px; }

  footer { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 0 24px; }
  footer a { color: var(--water); text-decoration: none; }
  footer .foot-logo { width: 20px; height: 20px; border-radius: 50%; vertical-align: -5px; margin-right: 4px; }

  @media (max-width: 720px) {
    .hero::before { background-position: center 40%; }
    .hero-inner { padding-top: 70px; }
    .mh-personal { margin-left: 0; }
  }

  /* ── Anmeldung: aufklappbare Abschnitte (Team / Solo) ─────────────────── */
  .acc > summary {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; list-style: none; user-select: none;
  }
  .acc > summary::-webkit-details-marker { display: none; }
  .acc > summary::before {
    content: ""; width: 4px; align-self: stretch; min-height: 34px;
    background: linear-gradient(180deg, var(--koi), var(--pink)); border-radius: 2px; flex: 0 0 auto;
  }
  .acc-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .acc-title { font-size: 15.5px; font-weight: 800; }
  .acc-sub { color: var(--muted); font-size: 12.5px; }
  .acc-chevron { margin-left: auto; color: var(--muted); font-size: 13px; transition: transform .2s ease; flex: 0 0 auto; }
  .acc[open] > summary .acc-chevron { transform: rotate(180deg); }
  .acc > summary:hover .acc-title { color: var(--koi); }
  .acc-body { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); animation: tabIn .22s ease; }

  /* ── Lade-Skeletons & Retry ───────────────────────────────────────────── */
  .skel-lines { display: flex; flex-direction: column; gap: 9px; padding: 6px 0; }
  .skel-lines > i, .tiles > .skel-tile {
    display: block; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.12) 37%, rgba(255,255,255,.05) 63%);
    background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
  }
  .skel-lines > i { height: 13px; }
  .skel-lines > i:nth-child(2) { width: 82%; }
  .skel-lines > i:nth-child(3) { width: 64%; }
  .tiles > .skel-tile { height: 78px; border-radius: var(--radius); }
  @keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
  .retry-box { text-align: center; color: var(--muted); padding: 16px 8px; }
  .retry-box .btn { margin-top: 10px; }
  @media (prefers-reduced-motion: reduce) { .skel-lines > i, .tiles > .skel-tile { animation: none; } }

  /* ── Turnierbaum / Bracket ──────────────────────────────────────────────
     Klassischer Baum: links Runde 1, rechts das Finale. Jede Spalte verteilt
     ihre Matches per flex über die volle Höhe (Slots) — dadurch sitzt jedes
     Folge-Match exakt mittig zwischen seinen beiden Zubringern, und die
     Verbindungslinien (Pseudo-Elemente) treffen sich in der Spaltenlücke. */
  .bk-wrap { overflow-x: auto; padding-bottom: 6px; }
  .bracket { --bk-line: rgba(207,197,240,.30); display: flex; align-items: stretch; min-width: max-content; }
  .bk-col { flex: 0 0 auto; width: 200px; display: flex; flex-direction: column; }
  .bk-col + .bk-col { margin-left: 44px; } /* Lücke = Platz für die Linien */
  .bk-round {
    flex: 0 0 26px; /* fixe Höhe in JEDER Spalte → Slots aller Spalten bleiben ausgerichtet */
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); font-weight: 700; text-align: center;
    border-bottom: 1px solid var(--border); margin-bottom: 6px;
  }
  .bk-slot { flex: 1; display: flex; align-items: center; position: relative; padding: 7px 0; min-height: 86px; }
  /* Linie raus (rechts) aus jedem Match — bis zur Mitte der Lücke */
  .bk-col:not(:last-child) .bk-slot::after {
    content: ""; position: absolute; right: -22px; top: 50%;
    width: 22px; height: 2px; background: var(--bk-line);
  }
  /* Vertikale Klammer: verbindet die Mittelpunkte der beiden Zubringer-Slots */
  .bk-col:not(:first-child) .bk-slot::before {
    content: ""; position: absolute; left: -22px; top: 25%; height: 50%;
    border-left: 2px solid var(--bk-line);
  }
  .bk-match {
    position: relative; width: 100%;
    background: var(--page-1); border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 10px; transition: border-color .15s ease;
  }
  /* Linie rein (links) in jedes Folge-Match — von der Klammer bis zur Karte */
  .bk-col:not(:first-child) .bk-match::before {
    content: ""; position: absolute; left: -22px; top: 50%;
    width: 22px; height: 2px; background: var(--bk-line);
  }
  .bk-match:hover { border-color: rgba(240,140,77,.4); }
  .bk-match.done { border-color: rgba(67,194,109,.28); }
  .bk-match.review { border-color: rgba(245,185,66,.45); }
  .bk-team { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 3px 0; }
  .bk-team .bk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .bk-team.win .bk-name { color: #6ad894; }
  .bk-team.lose { color: var(--muted); }
  .bk-crown { margin-left: auto; flex: 0 0 auto; }
  .bk-vs { text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 1px 0; }
  /* Double-Elim: Winner-/Loser-Bracket + Finale untereinander, je ein eigener Baum */
  .bracket-elim { flex-direction: column; align-items: stretch; gap: 22px; }
  .bk-section-title { font-size: 13px; font-weight: 800; letter-spacing: .03em; margin: 0 0 8px; color: var(--ink-2); }
  .bk-section .bracket { min-width: max-content; }
  .bk-team.bye .bk-name { color: var(--muted); font-style: italic; }

  /* ── Turnier-Rückblick (Auto-Recap, neuestes Archiv) ──────────────────── */
  .recap { background: linear-gradient(135deg, rgba(240,140,77,.13), rgba(231,91,158,.10)), var(--surface); border-color: rgba(240,140,77,.35); }
  .recap-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--koi); margin-bottom: 12px; }
  .recap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .recap-cup { font-size: 42px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(240,140,77,.4)); }
  .recap-champ { font-size: 22px; font-weight: 800; }
  .recap-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
  .recap-roster { color: var(--ink-2); font-size: 12px; margin-top: 5px; }
  .recap-stats { display: flex; gap: 26px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .recap-stat { display: flex; flex-direction: column; }
  .recap-stat b { font-size: 22px; font-weight: 800; }
  .recap-stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
  .recap-podium { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; font-size: 13px; color: var(--ink-2); }
  .recap-podium .rp b { color: var(--koi); margin-left: 3px; }

  /* ══ Minigames (Work in Progress) ══════════════════════════════════════ */
  .tab-btn-mg .wip-dot {
    font-size: 9px; font-weight: 800; letter-spacing: .06em;
    background: var(--koi); color: #1a1330; padding: 1px 5px;
    border-radius: 6px; vertical-align: 2px;
  }
  .wip-banner {
    background: repeating-linear-gradient(-45deg, rgba(245,185,66,.14) 0 14px, rgba(245,185,66,.06) 14px 28px);
    border: 1px solid rgba(245,185,66,.45); color: var(--ink);
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 22px; font-size: 13.5px;
  }
  .mg-auth .btn { background: #5865F2; box-shadow: none; }
  .mg-auth .help { color: var(--muted); font-size: 12px; margin-top: 6px; }

  /* ── Twitch-Mini-Player + Account-Verknüpfung (×1,2 Perlen) ── */
  .tw-flex { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
  .tw-player {
    position: relative; flex: 0 1 420px; min-width: 260px; aspect-ratio: 16 / 9;
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
    background:
      radial-gradient(120% 90% at 50% -20%, rgba(145,70,255,.22), transparent 60%),
      linear-gradient(180deg, #1a1640 0%, #120f30 100%);
  }
  .tw-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
  .tw-player .tw-off {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; padding: 12px; text-align: center;
  }
  .tw-side { flex: 1 1 260px; }
  .tw-side .btn.twitch { background: #9146FF; box-shadow: none; }
  .tw-side .help { color: var(--muted); font-size: 12px; }

  .mg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }
  .mg-card { margin-bottom: 0; }
  .mg-desc { color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }

  /* Minigames Container */
  .mg-container { width: 100%; position: relative; }
  /* ── Werbung: statisch in den freien Seitenspalten neben dem Inhalt ─────
     position:fixed → scrollt mit. Die genaue Lage (mittig in der Spalte,
     unter Nav/Hero) kommt per JS; passt die Spalte nicht (schmaler Monitor),
     wird das Banner ausgeblendet — es überdeckt also nie Banner oder Inhalt.
     Dazu ✕-Button + „Anzeige"-Label. Nur solange der Minigames-Tab offen
     ist (liegt im <main>). */
  .mg-ad {
    position: fixed; top: 0; left: 0;
    width: 300px;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 12px 26px rgba(10,6,30,.5));
  }
  .mg-ad[hidden] { display: none; }
  .mg-ad-wrapper {
    display: block;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(207,197,240,.25);
    transition: filter 0.2s;
  }
  .mg-ad-wrapper:hover { filter: brightness(1.12); }
  .mg-ad-image {
    width: 100%;
    height: auto;
    display: block;
  }
  /* „Anzeige"-Label wie bei echten Werbebannern */
  .mg-ad-label {
    position: absolute; top: 6px; left: 8px;
    font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(243,239,252,.85); background: rgba(16,12,40,.55);
    padding: 1px 6px; border-radius: 4px; pointer-events: none;
  }
  /* ✕ zum Wegklicken — die Werbung kommt nach einer Weile zurück (wie im echten Web) */
  .mg-ad-close {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; line-height: 20px;
    background: rgba(16,12,40,.75); color: var(--ink-2);
    border: 1px solid rgba(207,197,240,.35); border-radius: 50%;
    font-size: 12px; font-weight: 700; text-align: center; padding: 0;
    cursor: pointer;
  }
  .mg-ad-close:hover { color: #fff; border-color: var(--koi); }

  /* HUD-Chips für beide Spiele */
  .fish-hud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  /* Fress-Rausch-HUD liegt im Stage (oben) → auch im Vollbild sichtbar; nur beim Spielen */
  .feed-hud {
    position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1;
    display: none; flex-wrap: wrap; gap: 8px; align-items: center;
    pointer-events: none;   /* Chips lassen die Maus zum Canvas durch */
  }
  .feed-stage.playing .feed-hud { display: flex; }
  .feed-end-btn {
    margin-left: auto; pointer-events: auto; cursor: pointer;
    background: rgba(22,18,46,.72); color: var(--ink);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 14px; font: inherit; font-weight: 700; font-size: 12.5px;
    backdrop-filter: blur(4px);
  }
  .feed-end-btn:hover { border-color: var(--koi); color: var(--koi); }
  .feed-chip {
    background: var(--page-1); border: 1px solid var(--grid); border-radius: 999px;
    padding: 5px 12px; font-size: 12.5px; color: var(--ink-2);
  }
  .feed-chip b { color: var(--ink); }

  /* ── Minigame 1: Fress-Rausch (Canvas) ── */
  .feed-stage {
    position: relative; height: 320px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
    background:
      radial-gradient(120% 90% at 50% -20%, rgba(143,111,232,.25), transparent 60%),
      linear-gradient(180deg, #1a1640 0%, #120f30 100%);
  }
  .feed-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
  .feed-stage.playing { cursor: none; }
  /* Vollbild beim Start: füllt den GANZEN Bildschirm (auch über der Tab-Leiste) */
  .feed-stage.feed-fs {
    position: fixed; inset: 0;
    height: auto; border-radius: 0; border: none; z-index: 60;
  }
  /* Scrollen komplett sperren, solange das Vollbild-Spiel läuft */
  html.mg-noscroll, body.mg-noscroll {
    overflow: hidden !important; overscroll-behavior: none;
  }
  .feed-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(16,12,40,.55); backdrop-filter: blur(2px); text-align: center; padding: 16px;
  }
  .feed-overlay[hidden] { display: none; }
  .feed-overlay-note { color: var(--ink-2); font-size: 13px; max-width: 260px; }

  /* ── Minigame 2: Angeln ── */
  /* Feste Mindesthöhe + Buttons unten verankert: die Stage darf beim Biss
     (Skill-Check/Boss-UI erscheint) nicht wachsen, sonst verrutscht der
     Anschlag-Button unter dem Mauszeiger weg. */
  .fish-stage {
    position: relative; border-radius: 12px; border: 1px solid var(--border);
    background:
      radial-gradient(120% 80% at 50% 120%, rgba(84,168,236,.18), transparent 60%),
      linear-gradient(180deg, #171445 0%, #101038 100%);
    padding: 18px 16px 16px; text-align: center;
    display: flex; flex-direction: column; min-height: 320px;
  }
  .fish-scene { font-size: 46px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .2s ease; }
  .fish-scene.bite { animation: bobble .35s ease-in-out infinite; }
  @keyframes bobble { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-8deg); } }
  .fish-status { min-height: 20px; margin: 10px 0 12px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
  .fish-status.good { color: #6ad894; }
  .fish-status.bad { color: #f08a93; }

  .skillcheck { margin: 0 auto 14px; max-width: 360px; width: 100%; }
  /* Versteckt = unsichtbar, aber der Platz bleibt reserviert → nichts springt */
  .skillcheck[hidden] { display: block; visibility: hidden; }
  .sk-bar {
    position: relative; height: 28px; border-radius: 8px; overflow: hidden;
    background: linear-gradient(90deg, #2a2358, #241f4e); border: 1px solid var(--grid);
  }
  .sk-zone {
    position: absolute; top: 0; bottom: 0; border-radius: 6px;
    background: linear-gradient(180deg, rgba(67,194,109,.85), rgba(67,194,109,.55));
    box-shadow: 0 0 14px rgba(67,194,109,.6);
  }
  .sk-zone.perfect { background: linear-gradient(180deg, rgba(245,185,66,.9), rgba(240,140,77,.6)); box-shadow: 0 0 16px rgba(245,185,66,.7); }
  .sk-marker { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.9); }
  .sk-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

  /* ── Fangbuch (Index) ── */
  .fangbuch { margin-top: 14px; }
  .fangbuch > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
  .fangbuch > summary:hover { color: var(--ink); }
  .fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
  .fb-item {
    position: relative; text-align: center; padding: 10px 6px 8px; border-radius: 10px;
    background: var(--page-1); border: 1px solid var(--rc, var(--border));
    box-shadow: inset 0 0 18px -8px var(--rc, transparent);
  }
  .fb-item .fb-emoji { font-size: 26px; line-height: 1; filter: grayscale(0); }
  .fb-item .fb-name { font-size: 10.5px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fb-item .fb-count { font-size: 10px; color: var(--rc, var(--muted)); font-weight: 800; margin-top: 1px; }
  .fb-item .fb-rar { display: block; margin: 4px auto 0; width: 22px; height: 3px; border-radius: 2px; background: var(--rc, var(--muted)); opacity: .8; }
  .fb-item.locked { opacity: .55; border-style: dashed; }
  .fb-item.locked .fb-emoji { filter: grayscale(1) brightness(.6); }
  .fb-item.locked .fb-name { color: var(--muted); }

  .rar-common    { --rc: #9aa7c0; }
  .rar-uncommon  { --rc: #43c26d; }
  .rar-rare      { --rc: #54a8ec; }
  .rar-epic      { --rc: #b06cf0; }
  .rar-legendary { --rc: #f5b942; }
  .rar-boss      { --rc: #f0566a; }

  /* ── Boss-Kampf (der 11. Mystery-Fisch) ── */
  .fish-stage.bossfight { border-color: rgba(240,86,106,.55); box-shadow: inset 0 0 46px -18px rgba(240,86,106,.85); }
  .boss-ui { max-width: 360px; margin: 0 auto 12px; }
  .boss-ui[hidden] { display: none; }
  .boss-name { font-weight: 800; font-size: 13px; color: #f0566a; letter-spacing: .4px; margin-bottom: 6px; }
  .boss-hp {
    position: relative; height: 14px; border-radius: 8px; overflow: hidden;
    background: rgba(0,0,0,.35); border: 1px solid rgba(240,86,106,.5);
  }
  .boss-hp-fill {
    height: 100%; width: 100%; border-radius: 7px;
    background: linear-gradient(90deg, #f0566a, #f5b942);
    box-shadow: 0 0 12px rgba(240,86,106,.7); transition: width .25s ease;
  }
  .boss-lives { margin-top: 6px; font-size: 13px; letter-spacing: 2px; }

  /* ── Shop-Tab (Upgrades & Köder) ── */
  .fish-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: auto; }
  .up-pips { display: flex; gap: 4px; }
  .up-pip { width: 14px; height: 5px; border-radius: 3px; background: var(--grid); }
  .up-pip.on { background: var(--koi); box-shadow: 0 0 6px rgba(240,140,77,.7); }

  /* ── Live-Event-Banner ── */
  .mg-event-banner {
    margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 14px;
    border: 1px solid rgba(245,185,66,.55); color: var(--ink);
    background: linear-gradient(90deg, rgba(245,185,66,.14), rgba(240,140,77,.10));
    box-shadow: 0 0 24px -10px rgba(245,185,66,.8);
    animation: evPulse 2.4s ease-in-out infinite;
  }
  .mg-event-banner[hidden] { display: none; }
  @keyframes evPulse { 50% { box-shadow: 0 0 34px -6px rgba(245,185,66,.95); } }

  /* ── Streak-Chip (glüht ab aktivem Serien-Bonus) ── */
  .feed-chip.hot { border-color: rgba(245,185,66,.65); color: #f5b942; box-shadow: 0 0 12px -4px rgba(245,185,66,.8); }
  .feed-chip.hot b { color: #f5b942; }

  /* ── Titel neben dem Namen in den Bestenlisten ── */
  .lb-title {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; color: var(--koi); white-space: nowrap;
    border: 1px solid rgba(240,140,77,.45); background: rgba(240,140,77,.10);
  }
  /* Goldener Name (Prämien-Shop, "goldname" — Flag golden:true in minigame-scores) */
  .gold-name {
    font-weight: 800;
    background: linear-gradient(90deg, #f5b942, #ffe9a8 45%, #f0a63f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 6px rgba(245,185,66,.45));
  }

  /* ── Achievements (Profil) ── */
  .ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .ach-item {
    text-align: center; padding: 12px 8px 10px; border-radius: 12px; cursor: pointer;
    background: var(--page-1); border: 1px solid var(--border);
  }
  .ach-item .ach-emoji { font-size: 26px; line-height: 1; }
  .ach-item .ach-name { font-weight: 800; font-size: 12.5px; margin-top: 4px; }
  .ach-item .ach-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .ach-item.locked { opacity: .45; cursor: default; border-style: dashed; }
  .ach-item.locked .ach-emoji { filter: grayscale(1) brightness(.7); }
  .ach-item:not(.locked):hover { border-color: rgba(240,140,77,.5); }
  .ach-item.active { border-color: var(--koi); box-shadow: inset 0 0 22px -10px rgba(240,140,77,.9); }
  .ach-item .ach-active { margin-top: 4px; font-size: 10.5px; color: var(--koi); font-weight: 800; }

  /* ── Aquarium (Profil) ── */
  .aqua-wrap {
    position: relative; height: 260px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
    background:
      radial-gradient(120% 80% at 50% 120%, rgba(84,168,236,.20), transparent 60%),
      linear-gradient(180deg, #14204a 0%, #0d1638 60%, #0a1130 100%);
  }
  .aqua-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .aqua-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--ink-2); font-size: 13.5px; text-align: center; padding: 16px;
  }
  .aqua-empty[hidden] { display: none; }
  .aqua-empty a { color: var(--water); }


  /* ── Prämien-Shop ── */
  .shop-wallet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
  .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
  .shop-item {
    display: flex; flex-direction: column; gap: 7px; padding: 14px;
    border-radius: 12px; background: var(--page-1); border: 1px solid var(--border);
  }
  .shop-item .si-head { font-weight: 800; font-size: 14px; }
  .shop-item .si-desc { color: var(--ink-2); font-size: 12.5px; flex: 1; line-height: 1.45; }
  .shop-item .si-cost { font-weight: 800; color: var(--koi); font-size: 13px; }
  .shop-item .btn { padding: 8px 12px; font-size: 12.5px; }
  .shop-item .btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
  /* leistbare Prämien leuchten dezent auf */
  .shop-item.affordable { border-color: rgba(245,185,66,.55); box-shadow: inset 0 0 26px -14px rgba(245,185,66,.9); }
  .shop-hist-row { padding: 7px 2px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-2); }
  .shop-hist-row b { color: var(--ink); }
  .shop-hist-row .si-status { float: right; font-size: 11.5px; color: var(--muted); }

  /* ── Minigame-Bestenliste ── */
  .mg-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
  .mg-board-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
  .mg-lb { border-collapse: collapse; width: 100%; }
  .mg-lb th, .mg-lb td { padding: 7px 10px; }
  .mg-lb tbody tr { border-top: 1px solid var(--border); }
  .mg-lb tbody tr.me { background: var(--koi-soft); }
  .mg-lb tbody tr.me td:first-child { box-shadow: inset 3px 0 0 var(--koi); }
  .mg-catch-toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
    z-index: 1000; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14px;
    background: var(--surface); border: 1px solid var(--rc, var(--border)); color: var(--ink);
    box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 0 22px -6px var(--rc, transparent);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  }
  .mg-catch-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 720px) {
    .feed-stage { height: 260px; }
  }

  /* ══ Streams, Live-Ticker & Push ═══════════════════════════════════════
     Alles hier ist optional sichtbar: der Twitch-Teil hängt am Schalter im
     Mod-Panel, der Ticker am Vorhandensein von Ereignissen. Zurückhaltend
     gestaltet — es soll den Turnierinhalt nicht überstrahlen. */

  /* ── Der pulsierende Live-Punkt (überall derselbe) ── */
  .tw-live-dot {
    display: inline-block; width: 8px; height: 8px; flex: 0 0 8px;
    border-radius: 50%; background: #e25563;
    box-shadow: 0 0 0 0 rgba(226,85,99,.6);
    animation: twPulse 2s infinite;
  }
  @keyframes twPulse {
    70% { box-shadow: 0 0 0 7px rgba(226,85,99,0); }
    100% { box-shadow: 0 0 0 0 rgba(226,85,99,0); }
  }
  @media (prefers-reduced-motion: reduce) { .tw-live-dot { animation: none; } }

  /* ── Tab-Knopf „Streams" ── */
  .tab-btn-tw { display: inline-flex; align-items: center; gap: 6px; }
  /* Muss hierbleiben: das display oben schlaegt sonst das display:none, das
     der Browser dem hidden-Attribut gibt — der Knopf bliebe sichtbar, obwohl
     Staff die Anzeige im Mod-Panel ausgeschaltet hat. */
  .tab-btn-tw[hidden] { display: none; }
  .tab-btn-tw .tw-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--muted); transition: background .2s;
  }
  .tab-btn-tw.live .tw-dot { background: #9146FF; }
  .tab-btn-tw .tw-count:not(:empty) {
    background: #9146FF; color: #fff; font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 999px; line-height: 1.5;
  }

  /* ── Indikator hinter Team-/Spielernamen ── */
  .tw-flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-left: 6px; vertical-align: middle;
    border-radius: 50%; background: rgba(145,70,255,.18);
    border: 1px solid rgba(145,70,255,.45); text-decoration: none;
  }
  .tw-flag:hover { background: rgba(145,70,255,.35); }

  /* ── Stream-Karten im Twitch-Tab ── */
  .tw-intro { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
  .tw-group { margin-bottom: 18px; }
  .tw-group-head {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--koi);
    margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
  }
  .tw-group-head .hint { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: auto; }
  .tw-card {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; margin-bottom: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; color: var(--ink);
    transition: border-color .15s, transform .15s;
  }
  .tw-card:hover { border-color: rgba(145,70,255,.6); transform: translateX(2px); }
  .tw-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .tw-name { font-weight: 700; font-size: 15px; }
  .tw-team { font-size: 12px; color: var(--koi); font-weight: 600; }
  .tw-team-none { color: var(--muted); font-weight: 400; }
  .tw-title {
    font-size: 12px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tw-meta { text-align: right; flex: 0 0 auto; }
  .tw-viewers { display: block; font-weight: 700; font-variant-numeric: tabular-nums; color: #b98cff; }
  .tw-viewers-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

  /* ── Kompaktliste in der Seitenleiste ── */
  .tw-mini {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--ink); font-size: 13px;
  }
  .tw-mini:last-of-type { border-bottom: none; }
  .tw-mini-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tw-mini-team { margin-left: auto; font-size: 11px; color: var(--muted); flex: 0 0 auto; }
  .tw-mini-all { display: block; margin-top: 8px; font-size: 12px; color: var(--water); text-decoration: none; }
  .tw-mini-all:hover { text-decoration: underline; }

  /* ── Live-Ticker ── */
  ol.ticker { list-style: none; margin: 0; padding: 0; }
  .tk-row {
    display: grid; grid-template-columns: auto auto 1fr; gap: 8px;
    align-items: start; padding: 7px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
  }
  .tk-row:last-child { border-bottom: none; }
  .tk-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
  .tk-icon { font-size: 13px; }
  .tk-text { color: var(--ink-2); line-height: 1.45; }

  /* ── Push-Sektion im Profil ── */
  .push-intro { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
  .push-warn {
    padding: 10px 12px; margin-bottom: 12px; font-size: 13px;
    background: rgba(245,185,66,.12); border: 1px solid rgba(245,185,66,.4);
    border-radius: 8px; color: var(--ink-2);
  }
