/* ============================================================
   THEME – Look: VALORANT Season 2026 · Act VI (Hush).
   Farben/Fonts stammen aus dem Riot-Asset-Paket (Paprika-Palette,
   Tungsten + DIN Next LT Pro). Alles Weitere hängt an diesen Variablen.
   ============================================================ */
@font-face { font-family: 'Tungsten'; src: url('/fonts/Tungsten-Semibold.otf') format('opentype'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Tungsten'; src: url('/fonts/Tungsten-Bold.otf') format('opentype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Tungsten'; src: url('/fonts/Tungsten-Black.otf') format('opentype'); font-weight: 800 900; font-display: block; }
@font-face { font-family: 'DIN Next'; src: url('/fonts/DINNextLTPro-Regular.otf') format('opentype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'DIN Next'; src: url('/fonts/DINNextLTPro-Medium.otf') format('opentype'); font-weight: 500 600; font-display: block; }
@font-face { font-family: 'DIN Next'; src: url('/fonts/DINNextLTPro-Bold.otf') format('opentype'); font-weight: 700; font-display: block; }
:root {
  --bg: #0b090e;
  --bg-2: #1e1b26;          /* Palette: Dark */
  --panel: #1e1b26;
  --panel-2: #2b2636;
  --line: rgba(243, 239, 230, .12);
  --bd: #3a3348;            /* deckender Rahmen für Eckenschnitt-Boxen */
  --text: #f3efe6;
  --muted: #b4abcd;            /* aus Palette-Violett #7F72BE aufgehellt, >=4.5:1 auch auf der Textur */
  --accent: #ff2eab;        /* Palette: Accent */
  --accent-2: #f482d3;      /* Palette: Primary (Sieg/Highlights) */
  --pink-light: #fcb0e2;    /* Palette: Primary Light */
  --berry: #bb2a6b;         /* Palette: Secondary */
  --plum: #842665;          /* Palette: Secondary Dark */
  --font-head: 'Tungsten', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'DIN Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --cut: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: linear-gradient(rgba(11, 9, 14, .3), rgba(11, 9, 14, .72)) fixed, url('/img/pattern-dark.webp') center / cover fixed no-repeat, var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }

/* Spieler-Avatare (Twitch-Profilbild oder Initiale) */
.av { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; overflow: hidden; contain: paint;
  background: color-mix(in srgb, var(--tc) 30%, #0b090e); color: var(--text); font: 700 18px/1 var(--font-head);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.av img.on { opacity: 1; }
/* Eliasn97: Quelle etwas oben-links — Zoom + Versatz, Gesicht mittig im Kasten */
.av img[src$="eliasn97.webp"] { inset: auto; width: 135%; height: 135%; max-width: none; left: -8%; top: -5%; }
/* Initiale aus, sobald ein Bild erwartet wird — kein Buchstaben-Flash vor dem Laden */
.av.has-pic, .av:has(img) { color: transparent; }

/* ---- Team-Badge ---- */
.badge { --tc: #555; --bd: var(--tc); --cut: 30%; --fill: color-mix(in srgb, var(--tc) 28%, #0b090e); display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  color: var(--text); font: 700 16px/1 var(--font-head); letter-spacing: .04em; overflow: hidden; }
.badge img { width: 100%; height: 100%; object-fit: contain; }
.badge img.cap { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.badge:has(img.cap) { color: transparent; }
.badge.lg { width: 56px; height: 56px; font-size: 22px; }
.badge.xl { width: 84px; height: 84px; font-size: 30px; }
.badge.tbdb { --tc: #3a4654; color: var(--muted); }

/* ---- Match-Karte ---- */
.mcard { --fill: var(--panel); min-width: 280px; }
.mcard.is-live { --bd: var(--accent); }
.mhead, .mfoot { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; font: 600 16px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(0,0,0,.25); }
.mfoot { font-size: 15px; }
.livetag { color: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.mrow .mname { flex: 1; font: 700 26px var(--font-head); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mscore { font: 700 29px var(--font-head); font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; }
.mrow.win .mscore { color: var(--accent-2); }
.mrow.lose { opacity: .5; }
.mrow.tbd .mname { color: var(--muted); font-weight: 600; font-size: 17px; }

/* ---- Bracket ---- */
.bracket { display: flex; align-items: center; gap: 0; justify-content: center; }
.bcol { display: flex; flex-direction: column; gap: 28px; }
.bcol-title { font: 700 18px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.bconn { width: 70px; align-self: stretch; position: relative; margin-top: 30px; }
.bconn::before { content: ''; position: absolute; left: 0; right: 50%; top: 25%; bottom: 25%; border: 2px solid var(--line); border-left: 0; }
.bconn i { position: absolute; left: 50%; right: 0; top: 50%; border-top: 2px solid var(--line); }
/* Champion-Kasten: Avatare unverändert; Trophy nur als Vollflächen-Hintergrund */
.bcol.final > .bslot + .champ { margin-top: -8px; }
.champ { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--accent-2); background: rgba(244,130,211,.08); width: 100%; box-sizing: border-box; }
/* Lucide-Stroke: groß im Hintergrund, aber Henkel links/oben noch im Kasten */
.champ-trophy { position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  height: 118%; width: auto; aspect-ratio: 1; display: block; max-width: none;
  color: var(--accent-2); opacity: .34; pointer-events: none; z-index: 0; }
.champ > *:not(.champ-trophy) { position: relative; z-index: 1; }
.champ-meta { flex: 1; min-width: 0; display: grid; gap: 8px; }
.champ small { display: block; font: 800 clamp(22px, 2.4vw, 30px)/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.champ-meta b { display: block; font: 700 clamp(22px, 2.6vw, 28px)/1.05 var(--font-head); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Standings ---- */
.stand { width: 100%; border-collapse: collapse; background: var(--panel); }
.stand th { font: 600 16px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; background: rgba(0,0,0,.25); text-align: center; }
.stand td { padding: 8px 10px; text-align: center; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stand .l { text-align: left; }
.stand td.l { font: 700 23px var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.stand td.l .tn { display: flex; align-items: center; gap: 10px; }
.stand tr.adv td:first-child { color: var(--accent-2); }
.stand tr.cut td, .stand tr.cut th.rk { border-top-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }   /* Linie unter Platz 2: Halbfinale */
.stand .tnn { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stand .crew { display: flex; flex-wrap: wrap; gap: 4px; }
.stand .crew a { display: inline-flex; border-radius: 2px; }
.stand .crew a:hover .av, .stand .crew a:focus-visible .av { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.stand .crew .multi { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: color-mix(in srgb, var(--accent-2) 22%, #0b090e); color: var(--accent-2); clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%); transition: background .15s, color .15s; }
.stand .crew .multi:hover, .stand .crew .multi:focus-visible { background: var(--accent-2); color: #1e1b26; }
.stand .crew .av { width: 22px; height: 22px; font-size: 12px; clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%); }

/* Eckenschnitt oben rechts (Riot-Motiv, siehe Palette-Swatches). Rahmen läuft auch über die Diagonale:
   außen die Rahmenfarbe, innen ein um 1px eingerückter Schnitt in Füllfarbe. */
.badge, .mcard, .ov-panel { position: relative; isolation: isolate; background: var(--bd);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.badge::before, .mcard::before, .ov-panel::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: var(--fill);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* Verlaufsüberschriften wie in Riots Vorlagen: kühles Lavendel nach Rosa */
.grad, .hero h1, h2.sec, .ov-title { background: linear-gradient(180deg, #e2dff0 0%, #ecd0ea 55%, #cfa6e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em, .ov-title em { background: none; color: var(--accent); -webkit-text-fill-color: var(--accent); }

/* Barrierefreiheit */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stand th.rk { font-weight: 400; color: inherit; background: none; font-size: 18px; letter-spacing: 0; text-transform: none; text-align: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.stand abbr { text-decoration: none; }
.stand tr.adv th.rk { color: var(--accent-2); font-weight: 700; }
/* sichtbarer Fokus, weniger Bewegung auf Wunsch, ausreichender Kontrast auf Akzentflächen */
:focus-visible { outline: 3px solid var(--pink-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--pink-light); color: #1e1b26; padding: 10px 16px; font: 700 20px var(--font-head); }
.skip:focus { left: 8px; }
body { font-size: 18px; } .stand td { font-size: 18px; } .stand th { font-size: 17px; }
