/* ==========================================================================
   cupcl4n – gleicher Look wie wannaG4MING / wannaST4TS, aber ruhiger:
   schwarz, Lime-Akzent, Chakra Petch für Überschriften, abgeschrägte Ecken.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('../fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); }

:root {
  --ac: #c8f31d;
  --ac-ink: #0a0d04;
  --bg: #050607;
  --bg2: #0c0e11;
  --bg3: #13161b;
  --card: rgba(255, 255, 255, .035);
  --fg: #f4f5f6;
  --fg2: #a3a9b4;
  --fg3: #666d79;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --win: #4bd11b;
  --lose: #ff5a5a;
  --font: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --head: 'Chakra Petch', 'Inter', sans-serif;
  --max: 92vw;
  --cut: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(14px, calc(6.8px + .55vw), 22px); -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Filmkorn wie auf wannaG4MING / wannaST4TS */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--ac); color: var(--ac-ink); }

/* Scrollbalken: schmal, dunkel, Griff in der Akzentfarbe */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ac) 55%, #2a2f36) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ac) 45%, #2a2f36); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ac); border-width: 2px; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
html { scrollbar-color: color-mix(in srgb, var(--ac) 40%, #2a2f36) var(--bg); }
/* Turnierbaum: eigene, gut greifbare Leiste unter dem Baum */
.bk-scroll { scrollbar-width: thin; padding-bottom: .9rem; }
.bk-scroll::-webkit-scrollbar { height: 8px; }
.bk-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 8px; }
.bk-scroll::-webkit-scrollbar-thumb { border-width: 1px; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
a { color: var(--ac); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--fg2); }
.small { font-size: .85rem; }
.wrap { width: var(--max); margin: 0 auto; }
main { flex: 1; padding-top: var(--barh); }

/* Leiste – schwebend wie auf wannaG4MING / wannaST4TS */
/* Maße 1:1 wie wannaST4TS/wannaG4MING – deren Grundschrift ist größer, darum rechnet die Leiste in em mit eigener Basis */
:root { --gut: clamp(16px, 5vw, 36px); --bar-fs: clamp(16px, calc(7px + .6vw), 28px); --barh: calc(14px + var(--bar-fs) * 3.6 + 12px); }
.bar { font-size: var(--bar-fs); position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(var(--max), calc(100% - 2 * var(--gut))); display: flex; align-items: center; gap: 1.6em; padding: .5em .5em .5em 1em; border-radius: 12px;
  background: rgba(12, 14, 17, .55); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); transition: background .3s, border-color .3s; }
.bar.scrolled { background: rgba(12, 14, 17, .82); border-color: var(--line2); }
.brand { display: inline-flex; align-items: center; gap: .6em; color: var(--fg); text-decoration: none; font: 700 1.05em/1 var(--head); white-space: nowrap; }
.brand img { width: 1.75em; height: 1.75em; object-fit: contain; }
.brand b { color: var(--ac); }
.bar-nav { display: flex; gap: 1.5em; }
.bar-nav a { color: var(--fg2); text-decoration: none; font-weight: 600; font-size: .9em; transition: color .15s; }
.burger-in a:not(.btn) { color: var(--fg2); text-decoration: none; font-weight: 600; font-size: .9rem; transition: color .15s; }
.bar-nav a:hover, .bar-nav a[aria-current] { color: var(--fg); }
.bar-nav a[aria-current] { box-shadow: 0 2px 0 var(--ac); }
.bar-end { margin-left: auto; display: flex; gap: .5em; align-items: center; }
/* Knöpfe in der Leiste: exakt die ST4TS-Werte */
.bar .btn { padding: calc(var(--bar-fs) * 1.05) calc(var(--bar-fs) * 1.6); font: 700 calc(var(--bar-fs) * .9)/1 var(--head); letter-spacing: .1em; }
.bar .btn--sm { padding: calc(var(--bar-fs) * .75) calc(var(--bar-fs) * 1.1); font-size: calc(var(--bar-fs) * .78); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.bar-nav a { font-size: calc(var(--bar-fs) * .9); }
.btn--line { color: var(--fg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(10px); }
.btn--line:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--ac); }
@media (max-width: 480px) { .bar { gap: .6em; padding-left: .8em; } .brand { font-size: .92em; } }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 2.6rem; height: 2.6rem; display: grid; place-content: center; gap: 4px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.burger summary::-webkit-details-marker { display: none; }
.burger summary i { display: block; width: 18px; height: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }
.burger[open] summary i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[open] summary i:nth-child(2) { opacity: 0; }
.burger[open] summary i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger-in { position: absolute; right: 0; top: calc(100% + .7rem); min-width: 14rem; display: grid; gap: .2rem; padding: .7rem; border-radius: 12px; background: rgba(12, 14, 17, .96); border: 1px solid var(--line2); backdrop-filter: blur(20px); }
.burger-in a:not(.btn) { padding: .6rem .7rem; border-radius: 8px; }
.burger-in a:not(.btn):hover, .burger-in a[aria-current] { background: rgba(255, 255, 255, .06); color: var(--fg); }
.burger-in .btn, .burger-in form { margin-top: .3rem; width: 100%; }
.burger-in form .btn { width: 100%; }
@media (max-width: 860px) {
  .bar-nav { display: none; } .burger { display: block; }
  .bar-end .btn--line, .bar-end form { display: none; } /* bleibt im Menü – der Hauptknopf bleibt sichtbar */
}
@media (max-width: 420px) { .bar-end .btn--ac { display: none; } .burger { margin-left: auto; } }

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border: 0; cursor: pointer; text-decoration: none;
  font: 700 .82rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--fg); background: rgba(255, 255, 255, .07);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: filter .15s, background .15s; }
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn--ac { background: var(--ac); color: var(--ac-ink); }
.btn--ac:hover { background: var(--ac); filter: brightness(1.08); }
.btn--danger { background: rgba(255, 90, 90, .14); color: #ff8a8a; }
.btn--sm { padding: .7rem 1.05rem; font-size: .74rem; --cut: 9px; }
.btn--glass { background: rgba(255, 255, 255, .06); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.btn--glass:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--ac); }
.btn { transition: transform .2s, filter .15s, background .15s; }
.btn:not([disabled]):hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
form.inline { display: inline; }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label, .lbl { font-size: .78rem; font-weight: 700; color: var(--fg2); text-transform: uppercase; letter-spacing: .06em; }
.input, select.input, textarea.input { width: 100%; background: var(--bg2); color: var(--fg); border: 1px solid var(--line2); padding: .7rem .85rem; font: inherit; border-radius: 0; }
.input:focus { outline: none; border-color: var(--ac); }
input[type=color].input { height: 2.8rem; padding: .2rem; }
.hint { font-size: .8rem; color: var(--fg3); }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input { accent-color: var(--ac); width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.2rem; }

/* Karten & Flächen */
.card { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(1.1rem, 2.4vw, 1.6rem);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); margin-bottom: 1.2rem; }
.card > h2 { margin-bottom: 1rem; }
.flash { padding: .85rem 1.1rem; margin: 1rem 0; background: rgba(200, 243, 29, .08); box-shadow: inset 3px 0 0 var(--ac); }
.flash--err { background: rgba(255, 90, 90, .1); box-shadow: inset 3px 0 0 var(--lose); }
.page { padding: 2rem 0 4rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; justify-content: space-between; margin-bottom: 1.6rem; }
.eyebrow { font: 700 .74rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--ac); display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.tabs a { padding: .7rem 1rem; text-decoration: none; color: var(--fg2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--fg); border-color: var(--ac); }
.empty { padding: 2rem; text-align: center; color: var(--fg2); }

/* Turnier-Kacheln */
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tour { display: block; text-decoration: none; color: var(--fg); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: box-shadow .15s; }
.tour:hover { box-shadow: inset 0 0 0 1px var(--tc, var(--ac)); }
.tour-ban { aspect-ratio: 16 / 6; background: linear-gradient(135deg, color-mix(in srgb, var(--tc, var(--ac)) 30%, #000), #000) center / cover; }
.tour-body { display: flex; gap: .8rem; align-items: center; padding: 1rem; }
.tour-body img, .tour-body .ph-logo { width: 3rem; height: 3rem; object-fit: contain; flex: none; }
.tour-body b { display: block; font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; }
.tour-body small { color: var(--fg2); }
.ph-logo { display: grid; place-items: center; background: var(--bg3); font: 700 1.2rem/1 var(--head); color: var(--tc, var(--ac)); }
.badge { display: inline-block; font: 700 .68rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .5rem; background: rgba(255, 255, 255, .08); color: var(--fg2); }
.badge--ac { background: color-mix(in srgb, var(--tc, var(--ac)) 18%, transparent); color: var(--tc, var(--ac)); }

/* Turnier-Kopf (öffentliche Seite) */
.thero { position: relative; min-height: clamp(180px, 20vw, 280px); display: flex; align-items: flex-end; background: var(--bg2) center / cover; border-bottom: 1px solid var(--line); }
.thero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 7, .25), rgba(5, 6, 7, .95)), radial-gradient(circle at 85% 0, color-mix(in srgb, var(--ac) 18%, transparent), transparent 55%); }
.thero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--ac), transparent 60%); }
.thero .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.2rem 1.4rem; align-items: center; padding: 2rem 0 1.4rem; }
.thero-txt { flex: 1; min-width: 14rem; }
.thero-logo { width: clamp(64px, 7vw, 104px); height: clamp(64px, 7vw, 104px); object-fit: contain; flex: none; }
.thero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.thero .sub { color: var(--fg2); margin-top: .3rem; }
.thero .accent-bar { height: 4px; width: 3.5rem; background: var(--ac); margin-bottom: .8rem; }
.thero-facts { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .9rem 0 0; }
.thero-facts li { padding: .3rem .7rem; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; color: var(--fg2); }
.thero-facts b { color: var(--fg); }
.thero-facts .is-status { color: var(--ac); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 40%, transparent); }
.thero-act { align-self: flex-end; }
.thero + .page { padding-top: 1.6rem; }

/* Rechtliches – wie auf den anderen wannaB33F-Seiten */
.doc { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .2rem 0 .6rem; }
.doc h2 { font-size: 1.15rem; margin: 2.2rem 0 .6rem; }
.doc p, .doc li { color: var(--fg2); line-height: 1.7; }
.doc strong { color: var(--fg); }
.doc address { font-style: normal; line-height: 1.75; color: var(--fg2); }

/* Teams */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.team-chip { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.team-chip img, .team-chip i { width: 1.8rem; height: 1.8rem; object-fit: contain; flex: none; display: grid; place-items: center; font: 700 .9rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.team-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row .pos { width: 2rem; color: var(--fg3); font: 700 .85rem/1 var(--head); }
.team-row img, .team-row i.lg { width: 2.2rem; height: 2.2rem; object-fit: contain; flex: none; background: var(--bg3); display: grid; place-items: center; font: 700 1rem/1 var(--head); font-style: normal; color: var(--ac); }
.team-row .grow { flex: 1; min-width: 0; }

/* Format-Auswahl */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.formats label { display: block; padding: 1rem 1.1rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.formats input { display: none; }
.formats b { display: block; font: 700 1rem/1.2 var(--head); text-transform: uppercase; margin: .5rem 0 .3rem; }
.formats span { color: var(--fg2); font-size: .88rem; }
.formats label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ac); background: rgba(200, 243, 29, .05); }
.formats svg { width: 64px; height: 34px; stroke: var(--ac); fill: none; stroke-width: 2; }

/* ───────── Turnierbaum ───────── */
.bk-champ { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; margin-bottom: 1.4rem; background: linear-gradient(90deg, rgba(200, 243, 29, .16), transparent); box-shadow: inset 3px 0 0 var(--ac); }
.bk-champ img { width: 3rem; height: 3rem; object-fit: contain; }
.bk-champ small { display: block; font: 700 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--ac); }
.bk-champ b { font: 700 1.5rem/1.2 var(--head); text-transform: uppercase; }
.bk-sec { margin-bottom: 2rem; }
.bk-title { margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.bk-title::before { content: ""; width: .6rem; height: .6rem; background: var(--ac); transform: rotate(45deg); }
.bk-scroll { position: relative; overflow-x: auto; padding-bottom: .6rem; }
.bk-rounds { display: flex; gap: 2.6rem; position: relative; z-index: 1; min-width: max-content; padding-left: 1.8rem; }
.bk-round { display: flex; flex-direction: column; width: 15.5rem; }
.bk-rtitle { font: 700 .74rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); padding: 0 0 .7rem; }
.bk-col { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.bk-cell { padding: .45rem 0; }
.bk-match { position: relative; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.bk-match.is-pick { cursor: pointer; }
.bk-match.is-pick:hover, .bk-match.is-pick:focus { box-shadow: inset 0 0 0 1px var(--ac); outline: none; }
.bk-match.is-open { box-shadow: inset 0 0 0 1px var(--line2); }
.bk-match.is-bye { opacity: .45; }
.bk-match.is-skip { display: none; }
.bk-no { position: absolute; left: -1.7rem; top: 50%; transform: translateY(-50%); font: 700 .7rem/1 var(--head); font-style: normal; color: var(--fg3); }
.bk-team { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; min-height: 2.3rem; }
.bk-team + .bk-team { border-top: 1px solid var(--line); }
.bk-team img, .bk-team i { width: 1.35rem; height: 1.35rem; object-fit: contain; flex: none; display: grid; place-items: center; font: 700 .75rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.bk-team span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.bk-team b { font: 700 .95rem/1 var(--head); min-width: 1.4rem; text-align: right; color: var(--fg2); }
.bk-team.is-win span, .bk-team.is-win b { color: var(--fg); font-weight: 700; }
.bk-team.is-win { box-shadow: inset 3px 0 0 var(--ac); }
.bk-team.is-win b { color: var(--ac); }
.bk-team.is-lose { opacity: .5; }
.bk-team.is-tbd span, .bk-team.is-bye span { color: var(--fg3); font-style: italic; font-size: .82rem; }
.bk-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.bk-lines path { stroke: var(--line2); stroke-width: 1.5; fill: none; }

/* Gruppen */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.group { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.group h3 { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ac); }
.group ol { list-style: none; margin: 0; padding: .4rem 0; min-height: 3rem; }
.group li { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; }
.group li img, .group li i { width: 1.5rem; height: 1.5rem; object-fit: contain; display: grid; place-items: center; font: 700 .8rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.group li.is-new { animation: pop .6s ease; }
@keyframes pop { from { background: rgba(200, 243, 29, .25); } to { background: transparent; } }

/* Auslosung (Rad) */
.draw { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 2rem; align-items: start; }
.wheel-box { position: relative; aspect-ratio: 1; }
.wheel-box canvas { width: 100%; height: 100%; display: block; will-change: transform; }
.wheel-pin { position: absolute; top: -.4rem; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: .8rem solid transparent; border-top: 1.4rem solid var(--ac); z-index: 2; filter: drop-shadow(0 2px 4px #000); }
.wheel-center { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle, #15191d, var(--bg) 75%); box-shadow: 0 0 0 4px var(--ac), 0 0 40px color-mix(in srgb, var(--ac) 25%, transparent); display: grid; place-items: center; z-index: 2; overflow: hidden; }
.wheel-center img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.wheel-center span { font: 700 clamp(1.6rem, 5vw, 3.4rem)/1 var(--head); color: var(--ac); }
.draw-last { font: 700 1.4rem/1.2 var(--head); text-transform: uppercase; min-height: 2rem; margin: 1rem 0; text-align: center; }
.draw-last em { font-style: normal; color: var(--ac); }
.draw-roll, .lv-roll { color: var(--fg2); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.live-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; margin-top: 1.2rem; padding: .7rem 1rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.live-dot { display: inline-flex; align-items: center; gap: .45rem; font: 700 .7rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #ff5a5a; }
.live-dot::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.6s ease-out infinite; }
.live-dot.is-done { color: var(--ac); } .live-dot.is-done::before { animation: none; }
.live-dot--ink { color: var(--ac-ink); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, .7); } 100% { box-shadow: 0 0 0 .7rem rgba(255, 90, 90, 0); } }

.live-dot.is-off { color: var(--fg3); } .live-dot.is-off::before { animation: none; }
.thero-facts .thero-live { background: transparent; box-shadow: none; padding-left: .3rem; }
.gp-bar .live-dot { margin-left: auto; }
/* Live: frisch eingetragene Ergebnisse leuchten kurz auf */
.gp-m.is-live { animation: liveRow 2.4s ease; }
.gp.is-live { animation: liveCard 2.4s ease; }
.bk-match.is-live { animation: liveCard 2.4s ease; }
@keyframes liveRow { 0%, 30% { background: color-mix(in srgb, var(--ac) 22%, transparent); } 100% { background: transparent; } }
@keyframes liveCard { 0%, 30% { box-shadow: inset 0 0 0 1px var(--ac), 0 0 24px color-mix(in srgb, var(--ac) 25%, transparent); } }

/* Live-Auslosung (öffentlich) */
.lv { position: relative; margin-top: calc(-1 * var(--barh)); padding: calc(var(--barh) + 1.4rem) 0 2.4rem; min-height: 100vh; background: var(--bg) center / cover; }
.lv::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 7, .78), rgba(5, 6, 7, .97) 45%), radial-gradient(circle at 25% 40%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 45%); }
.lv > .wrap { position: relative; z-index: 1; }
.lv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.8rem; }
.lv-head h1 { color: #fff; }
.lv-logo { width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); object-fit: contain; }
.lv-status { margin-left: auto; display: grid; gap: .35rem; justify-items: end; padding: .7rem 1rem; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line2); }
.lv-status b { font: 700 1rem/1 var(--head); }
.lv-side { display: grid; gap: 1rem; align-content: start; }
.lv-side .lv-pick { margin-top: 0; }
.lv-stage { display: grid; grid-template-columns: minmax(280px, min(40rem, calc(100vh - 16rem))) 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.lv-wheel .wheel-box { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px color-mix(in srgb, var(--ac) 18%, transparent)); }
.lv-wheel .wheel-pin { border-width: 1.1rem; border-top-width: 1.9rem; top: -.6rem; }
.lv-pick { min-height: 4.4rem; margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; padding: 1rem; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line2), inset 0 3px 0 var(--ac); font: 700 clamp(1.1rem, 2.2vw, 1.6rem)/1.1 var(--head); text-transform: uppercase; text-align: center; }
.lv-team { display: inline-flex; align-items: center; gap: .6rem; animation: rise .5s ease; }
.lv-team img, .lv-team i { width: 2.2rem; height: 2.2rem; object-fit: contain; display: grid; place-items: center; font-style: normal; background: var(--bg3); color: var(--ac); font-size: 1rem; }
.lv-arrow { color: var(--fg3); }
.lv-grp { color: var(--ac-ink); background: var(--ac); padding: .4rem .8rem; animation: rise .5s .15s ease both; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.lv-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .8rem; }
.lv-group { background: rgba(12, 14, 17, .82); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.lv-group.is-hot { box-shadow: inset 0 0 0 1px var(--ac), 0 0 30px color-mix(in srgb, var(--ac) 18%, transparent); }
.lv-group h3 { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lv-group h3 b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--ac); color: var(--ac-ink); font-size: .9rem; }
.lv-group ol { list-style: none; margin: 0; padding: .35rem 0; }
.lv-group li { display: flex; align-items: center; gap: .55rem; padding: .35rem .9rem; font-size: .9rem; }
.lv-group li img, .lv-group li i { width: 1.35rem; height: 1.35rem; object-fit: contain; flex: none; display: grid; place-items: center; font: 700 .7rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.lv-group li.is-empty { color: var(--fg3); } .lv-group li.is-empty i { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.lv-group li.is-new { animation: pop 1.2s ease; font-weight: 700; }
.lv-group li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
@media (max-width: 900px) { .lv-stage { grid-template-columns: 1fr; } .lv-wheel { max-width: 30rem; margin: 0 auto; width: 100%; } .lv-status { margin-left: 0; justify-items: start; } }

/* Dialog */
dialog.modal { border: 0; padding: 0; background: var(--bg2); color: var(--fg); width: min(92vw, 30rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line2); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .7); }
.modal-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font: 700 1rem/1.2 var(--head); text-transform: uppercase; }
.modal-body { padding: 1.2rem; }
.score-in { display: grid; grid-template-columns: 1fr 5rem; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.score-in .input { text-align: center; font: 700 1.3rem/1 var(--head); }

/* ───────── Startseite ───────── */
.lime { color: var(--ac); }
.lp-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.lp-floor { position: absolute; inset: auto -20% -30% -20%; height: 70%; transform: perspective(700px) rotateX(62deg); transform-origin: top;
  background-image: linear-gradient(rgba(200, 243, 29, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 243, 29, .14) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to top, #000 20%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 85%); pointer-events: none; }
.lp-hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.lp-title { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .92; margin-bottom: 1.2rem; }
.lp-title span { display: block; }
.lp-lead { color: var(--fg2); font-size: 1.1rem; max-width: 34rem; margin: 0 0 1.6rem; }
.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 0; margin: 1.4rem 0 0; color: var(--fg3); font-size: .85rem; }
.lp-chips li::before { content: "▸ "; color: var(--ac); }
.lp-demo { position: relative; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
.lp-demo-in { background: rgba(12, 14, 17, .86); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(200, 243, 29, .08); padding: 1.2rem .6rem .4rem;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); overflow: hidden; }
.lp-demo .bk-sec { margin: 0; }
.lp-demo .bk-title { display: none; }
.lp-demo .bk-round { width: 11.5rem; }
.lp-demo .bk-rounds { gap: 1.6rem; }
.lp-demo .bk-champ { margin-bottom: .8rem; padding: .6rem .9rem; }
.lp-demo .bk-champ b { font-size: 1.1rem; }
.lp-sec { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.lp-head { margin-bottom: 1.6rem; }
.lp-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.lp-tile { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 1.4rem;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: box-shadow .2s; }
.lp-tile:hover { box-shadow: inset 0 0 0 1px rgba(200, 243, 29, .45); }
.lp-tile b { display: block; font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; margin-bottom: .5rem; }
.lp-tile b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--ac); transform: rotate(45deg); margin-right: .6rem; vertical-align: .15em; }
.lp-tile p { margin: 0; color: var(--fg2); font-size: .95rem; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: s; }
.lp-steps li { counter-increment: s; padding: 1.2rem 0 0; border-top: 2px solid var(--line); }
.lp-steps li::before { content: "0" counter(s); display: block; font: 700 2.2rem/1 var(--head); color: transparent; -webkit-text-stroke: 1px rgba(200, 243, 29, .7); margin-bottom: .6rem; }
.lp-steps b { display: block; font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; }
.lp-steps span { color: var(--fg2); font-size: .95rem; }
.lp-final { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1rem; margin-bottom: clamp(3rem, 6vw, 4rem); background: radial-gradient(ellipse at center, rgba(200, 243, 29, .1), transparent 70%); box-shadow: inset 0 0 0 1px var(--line); }
.lp-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 1rem 0 .4rem; }
.lp-final .btn { margin-top: 1rem; }
.lp-ctas { margin-top: .2rem; }
.lp-cta { font-size: .95rem; padding: 1.05rem 1.7rem; }
.lp-sub { margin: 1rem 0 0; color: var(--fg2); font-size: .92rem; }
.lp-sub a { color: var(--ac); font-weight: 600; text-decoration: none; }
.lp-sub a:hover { text-decoration: underline; }
.lp-demo-in { padding-top: 0; }
.lp-demo-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .6rem .8rem; margin: 0 -.6rem .6rem; border-bottom: 1px solid var(--line); }
.lp-demo-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.lp-demo-bar span { margin-left: .6rem; font: 700 .7rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--fg2); }
.lp-demo-bar em { margin-left: auto; margin-right: .3rem; }
.lp-demo #demo { min-height: 21rem; }
.lp-float { position: absolute; z-index: 2; display: grid; gap: .2rem; padding: .7rem .95rem; background: rgba(12, 14, 17, .92); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line2), inset 3px 0 0 var(--ac), 0 18px 40px rgba(0, 0, 0, .55); }
.lp-float b { font: 700 .82rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.lp-float span { font-size: .78rem; color: var(--fg2); }
.lp-float--a { left: -1.6rem; bottom: 2.2rem; }
.lp-float--b { right: -1rem; top: 3.4rem; }
.lp-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .8rem; font-style: normal; font-size: 1.3rem; background: color-mix(in srgb, var(--ac) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 30%, transparent); }
.lp-tile b::before { display: none; }
.lp-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.lp-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
@media (max-width: 900px) { .lp-hero-in { grid-template-columns: 1fr; } .lp-demo { transform: none; } .lp-float { display: none; } }

/* Turnierkopf in Verwaltung / Turnierleitung / Auslosung */
.ahero { position: relative; background: var(--bg2) center / cover; border-bottom: 1px solid var(--line); }
.ahero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 7, .55), rgba(5, 6, 7, .97)), radial-gradient(circle at 85% 0, color-mix(in srgb, var(--ac) 22%, transparent), transparent 55%); }
.ahero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--ac), transparent 60%); }
.ahero .wrap { position: relative; z-index: 1; padding-top: clamp(1.4rem, 3vw, 2.4rem); }
.ahero-top { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end; justify-content: space-between; }
.ahero-id { display: flex; gap: 1.2rem; align-items: center; min-width: 0; }
.ahero-logo { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); object-fit: contain; flex: none; background: rgba(0, 0, 0, .35); padding: .4rem;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.ahero-logo.ph-logo { font-size: 2rem; }
.ahero-role { font: 700 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--ac); display: block; margin-bottom: .5rem; }
.ahero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.ahero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; margin: 1.6rem 0 0; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.ahero-stats > div { background: rgba(8, 9, 11, .82); backdrop-filter: blur(6px); padding: .85rem 1rem; }
.ahero-stats b { display: block; font: 700 1.15rem/1.2 var(--head); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ahero-stats span { font-size: .78rem; color: var(--fg2); }
.atabs { display: flex; gap: .2rem; overflow-x: auto; margin-top: 1rem; scrollbar-width: none; }
.atabs a { padding: .85rem 1.1rem; text-decoration: none; color: var(--fg2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; position: relative; z-index: 2; }
.atabs a:hover { color: var(--fg); }
.atabs a[aria-current] { color: var(--fg); border-color: var(--ac); background: linear-gradient(0deg, color-mix(in srgb, var(--ac) 10%, transparent), transparent); }
.ahero + .page { padding-top: 1.6rem; }
.howto { padding: 1rem 1.2rem; margin-bottom: 1.4rem; background: color-mix(in srgb, var(--ac) 6%, transparent); box-shadow: inset 3px 0 0 var(--ac); }
.howto b { font-family: var(--head); letter-spacing: .04em; }
.howto p { margin: .35rem 0 0; color: var(--fg2); font-size: .92rem; max-width: 62rem; }

/* Turnierleitung – Login */
.lhero { position: relative; min-height: calc(100vh - 4rem); display: grid; align-items: center; background: var(--bg2) center / cover; overflow: hidden; }
.lhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 6, 7, .93) 25%, rgba(5, 6, 7, .45)), radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ac) 25%, transparent), transparent 50%); }
.lhero > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr minmax(18rem, 25rem); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: 3rem 0; }
.lhero-logo { width: clamp(84px, 10vw, 140px); height: clamp(84px, 10vw, 140px); object-fit: contain; margin-bottom: 1.4rem; }
.lhero-logo.ph-logo { font-size: 3rem; }
.lhero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.lhero .sub { color: var(--fg2); margin-top: .7rem; font-size: 1.05rem; }
.lhero .accent-bar { height: 4px; width: 4rem; background: var(--ac); margin-bottom: 1rem; }
.lhero-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.lhero-facts li { padding: .4rem .8rem; background: rgba(255, 255, 255, .06); font-size: .85rem; color: var(--fg2); }
.lhero-facts b { color: var(--fg); }
.lcard { background: rgba(10, 12, 14, .82); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line2), inset 0 3px 0 var(--ac); padding: clamp(1.4rem, 3vw, 2rem);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.lcard h2 { margin-bottom: .3rem; }
.lcard .btn { width: 100%; justify-content: center; }
.lcard-perks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--fg2); }
.lcard-perks li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; background: var(--ac); transform: rotate(45deg); margin-right: .6rem; vertical-align: .12em; }
.lcard-perks li.no::before { background: var(--fg3); }
.lhero-back { display: inline-block; margin-top: 1.6rem; color: var(--fg2); text-decoration: none; font-size: .9rem; }
.lhero-back:hover { color: var(--ac); }
@media (max-width: 860px) { .lhero > .wrap { grid-template-columns: minmax(0, 1fr); } .lhero { min-height: 0; } .lhero::before { background: linear-gradient(180deg, rgba(5, 6, 7, .7), rgba(5, 6, 7, .97) 55%); } }

.foot { border-top: 1px solid var(--line); padding-block: 2.4rem; font-size: .9rem; color: var(--fg3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot a { color: var(--fg2); text-decoration: none; }
.foot a:hover { color: var(--ac); }

/* Kopfbereiche laufen unter der schwebenden Leiste durch */
.thero, .ahero, .lhero, .lp-hero { margin-top: calc(-1 * var(--barh)); padding-top: var(--barh); }

/* Ablauf-Reiter mit Nummern */
.atabs em { font: 700 .7rem/1 var(--head); font-style: normal; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: .5rem; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--fg2); vertical-align: .1em; }
.atabs a[aria-current] em { background: var(--ac); color: var(--ac-ink); }
.formats--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Geführte Schritte */
.steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr); gap: 0; margin: 1.6rem 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.steps li { position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -1.2rem; right: calc(100% - .2rem); top: 1.95rem; height: 2px; background: var(--line2); }
.steps li.is-done + li::before { background: var(--ac); }
.steps a { display: flex; gap: .7rem; align-items: center; padding: 1rem 1.4rem 1rem .2rem; text-decoration: none; color: var(--fg2); border-bottom: 2px solid transparent; }
.steps a[aria-current] { border-color: var(--ac); }
.steps em { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font: 700 .85rem/1 var(--head); font-style: normal; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 2px var(--line2); color: var(--fg2); position: relative; z-index: 1; }
.steps b { display: block; font: 700 .86rem/1.15 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--fg); white-space: nowrap; }
.steps small { display: block; font-size: .76rem; color: var(--fg3); white-space: nowrap; margin-top: .15rem; }
.steps .is-done em { background: var(--ac); color: var(--ac-ink); box-shadow: none; }
.steps .is-cur em { box-shadow: inset 0 0 0 2px var(--ac), 0 0 0 4px color-mix(in srgb, var(--ac) 22%, transparent); color: var(--ac); }
.steps .is-cur small { color: var(--ac); }
.steps .is-todo b { color: var(--fg2); }
.steps a:hover b { color: var(--ac); }
.steps .is-locked em { opacity: .55; }
.steps .is-locked b::after { content: " 🔒"; font-size: .75em; }
.card.locked { text-align: center; padding: 2.4rem 1.4rem; }
.card.locked .locked-ico { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.card.locked p { max-width: 34rem; margin: .7rem auto 1.3rem; }
.phase-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1.2rem; }
.phase-note b { font: 700 1.1rem/1 var(--head); text-transform: uppercase; }
.draw-info { margin: 0 0 1rem; color: var(--fg2); font-size: .9rem; }
.howto-warn { color: #ffb35a !important; margin-top: .5rem !important; }
.howto-warn a { color: inherit; font-weight: 600; }
.step-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; margin: 1.6rem 0 1.2rem; padding: 1rem 1.2rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step-next > span { color: var(--fg2); font-weight: 600; }
.step-next.is-ready { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 45%, transparent); background: color-mix(in srgb, var(--ac) 5%, transparent); }
.step-next.is-ready > span { color: var(--ac); }
fieldset.card { border: 0; min-width: 0; margin-inline: 0; }
fieldset[disabled] .formats, fieldset[disabled] .grid2, fieldset[disabled] .check { opacity: .5; }
.setup-q { display: flex; gap: .8rem; align-items: center; margin: 1.4rem 0 .8rem; }
.setup-q:first-of-type { margin-top: .4rem; }
.setup-q b { display: block; font: 700 1rem/1.2 var(--head); text-transform: uppercase; }
.setup-no { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; font: 700 .85rem/1 var(--head); color: var(--ac-ink); background: var(--ac); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.setup .setup-groups, .setup .setup-no--gr, .setup .setup-gr { display: none; }
.setup.is-groups .setup-groups { display: block; }
.setup.is-groups .setup-no--gr { display: grid; }
.setup.is-groups .setup-gr { display: block; }
.setup.is-groups .setup-no--ko, .setup.is-groups .setup-ko { display: none; }
.pill { display: inline-block; margin-top: .5rem; padding: .35rem .75rem; font-size: .8rem; font-weight: 600; color: #ffb35a; background: rgba(255, 179, 90, .1); box-shadow: inset 0 0 0 1px rgba(255, 179, 90, .3); }
.pill--ok { color: var(--ac); background: color-mix(in srgb, var(--ac) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 40%, transparent); }

/* Discord */
.btn.is-on { box-shadow: inset 0 0 0 1px var(--ac); color: var(--ac); }
.dc-howto { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--fg2); display: grid; gap: .45rem; }
.dc-howto code, .dc-copy { display: inline-block; margin-top: .3rem; padding: .3rem .55rem; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font-size: .85rem; user-select: all; word-break: break-all; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 1.2rem; }
.dc-step { position: relative; padding-top: 1.4rem; }
.dc-step > .setup-no { margin-bottom: .7rem; }
.dc-step.is-off { opacity: .5; }
.dc-btn { background: #5865f2; color: #fff; }
.dc-btn:hover { background: #4752c4; filter: none; }
.dc-btn svg { width: 1.3rem; height: 1.3rem; }
.dc-guild { font-size: 1.05rem; }
.dc-ok { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: .3rem; border-radius: 50%; background: var(--win); color: #041; font-weight: 700; font-size: .8rem; }
.dc-opts { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.dc-opts[disabled] { opacity: .6; }
.dc-opts .btn { justify-self: start; margin-top: .3rem; }
.dc-prog { position: relative; height: 2rem; margin-bottom: 1rem; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; }
.dc-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--ac) 35%, transparent); transition: width .3s; }
.dc-prog span { position: relative; display: block; padding: .4rem .8rem; font-size: .85rem; font-weight: 600; }
.dc-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .5rem; }
.dc-teams li { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.dc-teams li img, .dc-teams li i.lg { width: 1.7rem; height: 1.7rem; object-fit: contain; flex: none; display: grid; place-items: center; background: var(--bg3); font: 700 .8rem/1 var(--head); font-style: normal; color: var(--ac); }
.dc-teams b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-state { font-size: .78rem; color: var(--fg3); white-space: nowrap; }
.dc-teams li.is-done { box-shadow: inset 3px 0 0 var(--win), inset 0 0 0 1px var(--line); }
.dc-teams li.is-done .dc-state { color: var(--win); }
.dc-teams li.is-busy { box-shadow: inset 3px 0 0 var(--ac), inset 0 0 0 1px var(--line); }
.dc-teams li.is-err { box-shadow: inset 3px 0 0 var(--lose), inset 0 0 0 1px var(--line); }
.dc-teams li.is-err .dc-state { color: var(--lose); white-space: normal; }
.dc-teams li.is-orphan { opacity: .7; }

.tpl-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { border: 0; cursor: pointer; padding: .5rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font: 600 .82rem/1 var(--font); transition: background .15s; }
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip.is-on { background: var(--ac); color: var(--ac-ink); box-shadow: none; }
.chip--own { color: var(--fg2); }
.btn-row + .dc-prog { margin: 1rem 0 0; }
.msg-opts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1rem; }
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.tpl { display: grid; gap: .4rem; padding: .7rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.tpl input { font-weight: 700; }
/* Warteliste */
.card--wait { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 #ffb35a; }
.team-row.is-wait .pos { color: #ffb35a; }
.team-row .btn--sm { white-space: nowrap; }

.site-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0 1.2rem; }
.site-prev { display: flex; align-items: center; gap: .8rem; height: 5rem; padding: .6rem; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.site-prev img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.site-prev--icon img.sm { height: 32px; width: 32px; }

/* ───────── Auslosungs-Bühne (Stream/Beamer) ───────── */
body.is-bare main { padding-top: 0; }
.stg { position: relative; height: 100vh; min-height: 34rem; display: flex; flex-direction: column; padding: clamp(1rem, 2.2vw, 2rem) clamp(1rem, 3vw, 3rem) 1rem; overflow: hidden; isolation: isolate;
  background: var(--bg); }
.stg::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--stg-img, none) center / cover; filter: blur(18px) saturate(1.2); opacity: .35; }
.stg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 25% 55%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--ac) 10%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 7, .55), rgba(5, 6, 7, .92)); }
.stg-top { display: flex; align-items: center; gap: 1.2rem; }
.stg-logo { width: clamp(52px, 5vw, 84px); height: clamp(52px, 5vw, 84px); object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .6)); }
.stg-title .eyebrow { margin-bottom: .35rem; }
.stg-title h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.stg-sub { color: var(--fg2); margin-top: .25rem; font-size: .95rem; }
.stg-count { margin-left: auto; display: grid; justify-items: end; gap: .2rem; padding: .7rem 1.1rem; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--line2); }
.stg-count b { font: 700 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--head); color: #fff; }
.stg-count small { color: var(--fg3); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.stg-main { flex: 1; display: grid; grid-template-columns: minmax(260px, min(44vw, calc(100vh - 17.5rem))) 1fr; gap: clamp(1.4rem, 3vw, 3rem); align-items: center; margin-top: clamp(.8rem, 2vh, 1.6rem); min-height: 0; }
.stg-wheel .wheel-box { filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .65)) drop-shadow(0 0 70px color-mix(in srgb, var(--ac) 22%, transparent)); }
.stg-wheel .wheel-pin { border-width: 1.2rem; border-top-width: 2.1rem; top: -.7rem; }
.stg-status { margin-top: 1rem; min-height: 2.6rem; text-align: center; font: 700 clamp(1rem, 1.6vw, 1.4rem)/1.2 var(--head); text-transform: uppercase; color: #fff; }
.stg-status i { color: var(--fg3); font-style: normal; margin: 0 .3rem; }
.stg-status b { color: var(--ac); }
.stg-roll { color: var(--fg2); animation: blink 1s ease-in-out infinite; }
.stg-err { color: #ffb35a; font-size: .85em; }
.stg-board { align-self: stretch; overflow: auto; max-height: calc(100vh - 15rem); padding: .2rem .3rem .2rem 0; display: grid; gap: .8rem; align-content: center; }
.stg-board.is-groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.stg-board.is-groups.is-mid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.stg-board.is-groups.is-many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: .55rem; }
.stg-board.is-ko { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.stg-board.is-ko.is-many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .55rem; }
.bgroup, .bmatch { background: rgba(12, 14, 17, .82); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); transition: box-shadow .4s, transform .4s; }
.bgroup.is-hot, .bmatch.is-hot { box-shadow: inset 0 0 0 1px var(--ac), 0 0 40px color-mix(in srgb, var(--ac) 25%, transparent); transform: translateY(-2px); }
.bgroup h3, .bmatch h3 { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-size: .9rem; color: #fff; }
.bgroup h3 b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--ac); color: var(--ac-ink); font-size: .9rem; }
.bgroup h3 small, .bmatch h3 small { margin-left: auto; color: var(--fg3); font: 600 .75rem/1 var(--font); }
.bmatch h3 { color: var(--fg2); font-size: .78rem; letter-spacing: .1em; }
.bgroup ol, .bmatch ol { list-style: none; margin: 0; padding: .35rem 0; }
.bmatch em { display: block; text-align: center; font: 700 .62rem/1 var(--head); letter-spacing: .14em; color: var(--fg3); font-style: normal; margin: .1rem 0; }
.slot { display: flex; align-items: center; gap: .55rem; padding: .32rem .8rem; min-height: 2.35rem; min-width: 0; }
.slot img, .slot i { width: 1.5rem; height: 1.5rem; flex: none; object-fit: contain; display: grid; place-items: center; font: 700 .75rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.slot span { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.slot.is-long span { font-size: .82rem; }
.slot.is-xlong span { font-size: .74rem; }
.slot.is-empty span { color: var(--fg3); font-weight: 400; }
.slot.is-empty i { background: transparent; border: 1px dashed var(--line2); }
.slot.is-bye span { color: var(--fg3); font-style: italic; font-weight: 400; }
.slot.is-bye i { background: transparent; border: 1px dashed var(--line); }
.slot.is-new { animation: slotIn 1.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes slotIn { 0% { background: color-mix(in srgb, var(--ac) 45%, transparent); transform: scale(1.06); } 40% { background: color-mix(in srgb, var(--ac) 25%, transparent); transform: none; } 100% { background: transparent; } }
.stg-empty { color: var(--fg2); text-align: center; }
/* großes Einblenden */
.stg-reveal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(5, 6, 7, .55), rgba(5, 6, 7, .85)); }
.stg-reveal[hidden] { display: none; }
.stg-card { width: min(92vw, 62rem); padding: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3.4rem); text-align: center; background: rgba(10, 12, 14, .92); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line2), inset 0 4px 0 var(--ac), 0 40px 120px rgba(0, 0, 0, .7), 0 0 120px color-mix(in srgb, var(--ac) 25%, transparent);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.stg-card-logo img, .stg-card-logo i { width: clamp(90px, 11vw, 150px); height: clamp(90px, 11vw, 150px); object-fit: contain; margin: 0 auto 1rem; display: grid; place-items: center; font: 700 3.4rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.stg-card-name { font: 700 64px/1.02 var(--head); text-transform: uppercase; color: #fff; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.stg-card-to { display: inline-block; margin-top: 1.2rem; padding: .55rem 1.2rem; font: 700 clamp(1.2rem, 2.4vw, 2rem)/1 var(--head); text-transform: uppercase; color: var(--ac-ink); background: var(--ac);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.stg-card-to:empty { display: none; }
.stg-reveal.is-in { animation: rvBg .35s ease both; }
.stg-reveal.is-in .stg-card { animation: rvIn .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.stg-reveal.is-in .stg-card-to { animation: rvTo .5s .35s cubic-bezier(.2, .9, .25, 1.2) both; }
.stg-reveal.is-out { animation: rvBgOut .4s ease both; }
.stg-reveal.is-out .stg-card { animation: rvOut .4s ease both; }
@keyframes rvBg { from { opacity: 0; } } @keyframes rvBgOut { to { opacity: 0; } }
@keyframes rvIn { from { opacity: 0; transform: scale(.82) translateY(30px); } }
@keyframes rvTo { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes rvOut { to { opacity: 0; transform: scale(.9) translateY(-20px); } }
.stg-done { position: absolute; inset: 0; z-index: 19; display: grid; place-items: center; background: rgba(5, 6, 7, .7); }
.stg-done[hidden] { display: none; }
.stg-card--done b { display: block; margin: .6rem 0 1.4rem; font: 700 clamp(1.6rem, 3.4vw, 2.8rem)/1.1 var(--head); text-transform: uppercase; color: #fff; }
.stg-card--done { width: min(92vw, 40rem); }
/* Steuerleiste */
.stg-ctrl, .stg-foot { position: relative; z-index: 21; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; padding: .6rem; background: rgba(10, 12, 14, .85); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(12px); }
.stg-foot { justify-content: space-between; background: transparent; box-shadow: none; padding: .2rem 0; }
.stg-next { font-size: 1.05rem; padding: 1rem 2.2rem; min-width: 12rem; }
.stg-next[disabled] { opacity: .45; }
.stg-ctrl .btn.is-on { background: var(--ac); color: var(--ac-ink); box-shadow: none; }
.stg-keys { margin-left: auto; color: var(--fg3); font-size: .75rem; }
.stg.is-clean .stg-ctrl { opacity: 0; pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; }
/* Caster-Anmeldung */
.stg-login { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5, 6, 7, .8); backdrop-filter: blur(6px); padding: 1rem; }
.stg-login .lcard { width: min(100%, 26rem); }
.stg-login .lcard .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .stg { height: auto; min-height: 100vh; }
  .stg-main { grid-template-columns: 1fr; align-items: start; }
  .stg-wheel { max-width: 26rem; width: 100%; margin: 0 auto; }
  .stg-board { max-height: none; overflow: visible; }
  .stg-keys { display: none; }
  .stg-count { margin-left: 0; }
  .stg-top { flex-wrap: wrap; }
}

.draw-pult { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 1.2rem; }
.draw-hero h2 { margin: .2rem 0 .6rem; }
.draw-order { columns: 3 14rem; margin: 0; padding-left: 1.4rem; color: var(--fg2); }
@media (max-width: 860px) { .draw-pult { grid-template-columns: 1fr; } }

/* Hinweis unten rechts (Speichern im Hintergrund) */
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; max-width: min(92vw, 26rem); padding: .7rem 1rem; font-size: .88rem; font-weight: 600; color: var(--fg);
  background: rgba(12, 14, 17, .95); box-shadow: inset 0 0 0 1px var(--line2), inset 3px 0 0 var(--win), 0 14px 40px rgba(0, 0, 0, .5); animation: toastIn .25s ease; }
.toast.is-err { box-shadow: inset 0 0 0 1px var(--line2), inset 3px 0 0 var(--lose), 0 14px 40px rgba(0, 0, 0, .5); color: #ffb0b0; }
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Kompakte Einstellungen */
.card.cmp { padding: 1rem 1.2rem 1.1rem; margin-bottom: .9rem; }
.card.cmp > h2, .cmp-head h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .7rem; }
.cmp-head h2 { margin: 0; }
.cmp-label { font: 700 .68rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); margin: .9rem 0 .45rem; }
.setup .setup-groups .cmp-label:first-child { margin-top: .2rem; }
.cmp-row { display: flex; flex-wrap: wrap; gap: .55rem .7rem; align-items: flex-end; }
.cmp-f { display: grid; gap: .25rem; min-width: 0; flex: 0 1 9.5rem; }
.cmp-f > span, .cmp-l { font-size: .72rem; font-weight: 700; color: var(--fg2); text-transform: uppercase; letter-spacing: .05em; }
.cmp-f i, .cmp-l i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cmp-f .input, .cmp .input { padding: .5rem .65rem; font-size: .92rem; height: 2.4rem; }
.cmp .input[type=file] { height: auto; }
.cmp-f--grow { flex: 1 1 14rem; }
.cmp-f--color { flex: 0 0 4.5rem; } .cmp-f--color .input { height: 2.35rem; padding: .15rem; }
.cmp-f--n { flex-basis: 7rem; margin-left: auto; } .cmp-f--n .input { color: var(--fg2); }
.cmp-f.is-lead .input { border-color: var(--ac); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent); }
.cmp-f.is-lead > span::after { content: " ●"; color: var(--ac); }
.cmp-check { margin: .6rem 0 0; }
.cmp .plan { margin: .6rem 0 0; padding: .7rem .8rem; }
.cmp .plan-sum { font-size: .86rem; margin-bottom: .55rem; }
.cmp .tpl-chips { margin: 0; gap: .3rem; }
.cmp .chip { padding: .38rem .7rem; font-size: .76rem; }
.seg2 { display: inline-flex; padding: .2rem; gap: .2rem; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); border-radius: 9px; }
.seg2 label { cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span { display: block; padding: .5rem .9rem; border-radius: 7px; font: 700 .74rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); transition: background .15s; }
.seg2 input:checked + span { background: var(--ac); color: var(--ac-ink); }
.seg2 input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 2px; }
.formats--sm { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0; }
.formats--sm label:not(.check) { display: flex; align-items: center; gap: .55rem; padding: .5rem .8rem; }
.formats--sm svg { width: 40px; height: 22px; }
.formats--sm b { margin: 0; font-size: .82rem; }
.cmp-third { margin-left: .4rem; }
.cmp-imgs { margin-top: .8rem; align-items: stretch; }
.cmp-img { flex: 1 1 18rem; display: flex; gap: .7rem; align-items: center; min-width: 0; }
.cmp-img > div:last-child { display: grid; gap: .25rem; flex: 1; min-width: 0; }
.cmp-img .input[type=file] { padding: .35rem .5rem; font-size: .8rem; }
.cmp-prev { flex: none; width: 7.5rem; height: 3.6rem; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cmp-prev--sq { width: 3.6rem; }
.cmp-prev img { width: 100%; height: 100%; object-fit: cover; }
.cmp-prev--sq img { object-fit: contain; }
.cmp-access { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .8rem 1.2rem; }
.cmp-access > div { display: grid; gap: .35rem; align-content: start; }
.cmp-link { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: .78rem; min-width: 0; }
.cmp-link a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Gruppen-Planer */
.plan { margin: .4rem 0 .6rem; padding: 1rem 1.1rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.plan-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .92rem; margin-bottom: .9rem; }
.plan-sum > i { color: var(--fg3); font-style: normal; }
.plan-sum b { color: var(--ac); }
.plan-sum em { font-style: normal; font-size: .78rem; font-weight: 700; padding: .25rem .55rem; }
.plan-ok { color: var(--win); background: rgba(75, 209, 27, .1); }
.plan-warn { color: #ffb35a; background: rgba(255, 179, 90, .1); }
.plan-sugg .tpl-chips { margin: .5rem 0 .6rem; }
.plan-n { display: inline-flex; align-items: center; gap: .4rem; }
.plan-n .input { width: 5rem; padding: .35rem .5rem; }
.gp-table tr.is-best td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ac) 50%, transparent); color: var(--ac); }
.gp-table tr.is-best .gp-team span { color: var(--fg); }
.gp-table tr.is-best td.l::after { content: "★"; color: var(--ac); font-size: .7rem; margin-left: .4rem; }

/* Siegertreppchen */
.podium { --gold: #f5c542; --silver: #cfd6e0; --bronze: #d58a4f; position: relative; overflow: hidden; margin-bottom: 1.8rem; padding: 1.4rem 1rem 0; text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 70%), var(--bg2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.pd-head small { display: block; font: 700 .7rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--ac); }
.pd-head b { display: block; margin-top: .35rem; font: 700 1.25rem/1 var(--head); text-transform: uppercase; }
.pd-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: .6rem; align-items: end; max-width: 40rem; margin: 1.2rem auto 0; }
.pd { display: flex; flex-direction: column; align-items: center; min-width: 0; animation: pdUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.pd--2 { animation-delay: .15s; } .pd--1 { animation-delay: .35s; } .pd--3 { animation-delay: .05s; }
@keyframes pdUp { from { opacity: 0; transform: translateY(24px); } }
.pd-teams { display: grid; gap: .5rem; margin-bottom: .7rem; width: 100%; }
.pd-team { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 0; }
.pd-team img, .pd-team i { width: 3rem; height: 3rem; object-fit: contain; display: grid; place-items: center; font: 700 1.2rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.pd--1 .pd-team img, .pd--1 .pd-team i { width: 4.2rem; height: 4.2rem; font-size: 1.6rem; box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(245, 197, 66, .35); }
.pd-team b { font: 700 .9rem/1.15 var(--head); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd--1 .pd-team b { font-size: 1.1rem; }
.pd-crown { color: var(--gold); font-size: 1.7rem; line-height: 1; margin-bottom: .2rem; text-shadow: 0 0 18px rgba(245, 197, 66, .6); animation: crown 2.4s ease-in-out infinite; }
@keyframes crown { 50% { transform: translateY(-3px) rotate(-4deg); } }
.pd-step { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: .7rem; gap: .25rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 32%, #15181c), #101215); box-shadow: inset 0 2px 0 var(--pc), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.pd--1 { --pc: var(--gold); } .pd--2 { --pc: var(--silver); } .pd--3 { --pc: var(--bronze); }
.pd--1 .pd-step { height: 7.5rem; } .pd--2 .pd-step { height: 5.4rem; } .pd--3 .pd-step { height: 4.2rem; }
.pd-no { font: 700 2rem/1 var(--head); color: var(--pc); }
.pd--1 .pd-no { font-size: 2.6rem; }
.pd-step small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); }
.pd--3 .pd-teams { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.pd--3 .pd-team img, .pd--3 .pd-team i { width: 2.6rem; height: 2.6rem; }
.pd-confetti { position: absolute; inset: 0; pointer-events: none; }
.pd-confetti i { position: absolute; top: -10px; width: 7px; height: 11px; opacity: 0; animation: confetti 3.2s ease-in 1 forwards; }
.pd-confetti i:nth-child(3n) { background: var(--ac); } .pd-confetti i:nth-child(3n+1) { background: #f5c542; } .pd-confetti i:nth-child(3n+2) { background: #fff; }
.pd-confetti i:nth-child(1) { left: 6%; animation-delay: .3s; } .pd-confetti i:nth-child(2) { left: 12%; animation-delay: .9s; } .pd-confetti i:nth-child(3) { left: 18%; animation-delay: .5s; }
.pd-confetti i:nth-child(4) { left: 24%; animation-delay: 1.2s; } .pd-confetti i:nth-child(5) { left: 30%; animation-delay: .2s; } .pd-confetti i:nth-child(6) { left: 36%; animation-delay: .7s; }
.pd-confetti i:nth-child(7) { left: 42%; animation-delay: 1s; } .pd-confetti i:nth-child(8) { left: 48%; animation-delay: .4s; } .pd-confetti i:nth-child(9) { left: 54%; animation-delay: .8s; }
.pd-confetti i:nth-child(10) { left: 60%; animation-delay: .1s; } .pd-confetti i:nth-child(11) { left: 66%; animation-delay: 1.1s; } .pd-confetti i:nth-child(12) { left: 72%; animation-delay: .6s; }
.pd-confetti i:nth-child(13) { left: 78%; animation-delay: .3s; } .pd-confetti i:nth-child(14) { left: 84%; animation-delay: .9s; } .pd-confetti i:nth-child(15) { left: 90%; animation-delay: .5s; }
.pd-confetti i:nth-child(16) { left: 95%; animation-delay: 1.3s; } .pd-confetti i:nth-child(17) { left: 3%; animation-delay: 1.5s; } .pd-confetti i:nth-child(18) { left: 50%; animation-delay: 1.4s; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(300px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .pd, .pd-crown, .pd-confetti i { animation: none; } }

/* Gruppenphase */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); gap: 1rem; align-items: start; }
.gp { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.gp-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.gp-head b { display: grid; place-items: center; width: 2rem; height: 2rem; font: 700 1.05rem/1 var(--head); background: var(--ac); color: var(--ac-ink); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.gp-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.gp-table th { font: 700 .66rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); padding: .65rem .4rem; text-align: center; }
.gp-table td { padding: .5rem .4rem; text-align: center; border-top: 1px solid var(--line); color: var(--fg2); }
.gp-table .l { text-align: left; width: 100%; }
.gp-table th:first-child, .gp-table td:first-child { padding-left: 1rem; width: 2.2rem; }
.gp-table th:last-child, .gp-table td:last-child { padding-right: 1rem; }
.gp-table td b { color: var(--fg); font-family: var(--head); }
.gp-table tr.is-up td:first-child { box-shadow: inset 3px 0 0 var(--ac); color: var(--ac); font-weight: 700; }
.gp-table tr.is-up .gp-team span { color: var(--fg); font-weight: 600; }
.gp-team { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.gp-team img, .gp-team i { width: 1.35rem; height: 1.35rem; object-fit: contain; flex: none; display: grid; place-items: center; font: 700 .7rem/1 var(--head); font-style: normal; background: var(--bg3); color: var(--ac); }
.gp-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.gp-games { border-top: 1px solid var(--line); }
.gp-games summary { cursor: pointer; list-style: none; padding: .7rem 1rem; font: 700 .72rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); display: flex; justify-content: space-between; }
.gp-games summary::-webkit-details-marker { display: none; }
.gp-games summary::after { content: "+"; color: var(--ac); font-size: 1rem; }
.gp-games[open] summary::after { content: "–"; }
.gp-day { padding: .5rem 1rem .3rem; font: 700 .64rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }
.gp-m { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; padding: .35rem 1rem; font-size: .88rem; }
.gp-m:last-child { padding-bottom: .9rem; }
.gp-n1 { text-align: right; } .gp-n1, .gp-n2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.gp-m.w1 .gp-n1, .gp-m.w2 .gp-n2 { color: var(--fg); font-weight: 700; }
.gp-sc { display: inline-flex; align-items: center; gap: .3rem; font: 700 .95rem/1 var(--head); min-width: 3.4rem; justify-content: center; padding: .3rem .5rem; background: rgba(255, 255, 255, .05); }
.gp-sc i { font-style: normal; color: var(--fg3); }
.gp-sc input { width: 2.4rem; padding: .35rem .2rem; text-align: center; background: var(--bg); color: var(--fg); border: 1px solid var(--line2); font: 700 .95rem/1 var(--head); }
.gp-sc input:focus { outline: none; border-color: var(--ac); }
.gp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-bottom: 1.2rem; padding: .9rem 1.1rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.gp-bar > div { flex: 1; min-width: 14rem; display: grid; gap: .2rem; }
.gp-save { font-size: .85rem; color: var(--fg3); }
.gp-save.is-ok { color: var(--win); } .gp-save.is-err { color: var(--lose); }
.qual-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.qual-m { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; padding: .55rem .8rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; }
.qual-m span:last-child { text-align: right; }
.qual-m b { color: var(--ac); font-family: var(--head); margin-right: .2rem; }
.qual-m em { font: 700 .66rem/1 var(--head); color: var(--fg3); text-transform: uppercase; font-style: normal; }
.qual-m i { color: var(--fg3); }

/* Umschalter Gruppenphase / Playoffs */
.seg { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.4rem; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.seg button { border: 0; cursor: pointer; padding: .65rem 1.2rem; border-radius: 7px; background: transparent; color: var(--fg2); font: 700 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.seg button[aria-selected="true"] { background: var(--ac); color: var(--ac-ink); }

@media (max-width: 760px) {
  .draw { grid-template-columns: 1fr; }
  .bk-round { width: 13rem; }
  .bar nav { gap: .8rem; }
}
