/* Worlds 2026 — hextech-inspired theme
   Fonts: Cinzel (display), Barlow Condensed (numbers, codes, labels), Barlow (body) */

:root {
  --bg: #04080e;
  --bg-2: #081220;
  --panel: #0b1522;
  --panel-2: #0f1c2d;
  --row: #070e18;
  --line: #182637;
  --line-2: #24364b;
  --gold: #c8aa6e;
  --gold-2: #e6cf9a;
  --gold-deep: #785a28;
  --gold-line: rgba(200, 170, 110, 0.38);
  --cream: #f0e6d2;
  --text: #d6d0c2;
  --muted: #97a1ae;
  --muted-2: #6a7687;
  --teal: #3cd47f;            /* "win" green (name kept so nothing else changes) */
  --teal-dim: rgba(60, 212, 127, 0.14);
  --red: #e84057;
  --red-dim: rgba(232, 64, 87, 0.14);
  --display: "Cinzel", "Times New Roman", serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --cut: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(200, 170, 110, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(60, 212, 127, 0.05), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 9px),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.label { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- hextech frame: 1px line + gold corner ticks ---------- */
.frame { position: relative; background: var(--panel); border: 1px solid var(--line); }
.frame::before, .frame::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.frame::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.frame.quiet::before, .frame.quiet::after { border-color: var(--gold-deep); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 28px; height: 64px;
  background: linear-gradient(180deg, rgba(4,8,14,.96), rgba(4,8,14,.88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand img { height: 30px; width: auto; max-width: 130px; }
.brand img:not([hidden]) + .wordmark { display: none; }
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.wordmark em { font-style: normal; color: var(--gold); }
.nav { display: flex; gap: 2px; justify-self: center; }
.tab {
  position: relative; padding: 0 16px; height: 64px; font-family: var(--cond); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .15s;
}
.tab:hover { color: var(--cream); }
.tab.active { color: var(--cream); }
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--gold); box-shadow: 0 0 12px rgba(200,170,110,.6); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.tab:hover::after { transform: scaleX(.5); box-shadow: none; }
.tab.active::after { transform: scaleX(1); }
.tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: 2px; }
.status { justify-self: end; display: flex; align-items: center; gap: 12px; font-family: var(--cond); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; letter-spacing: .18em; }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,64,87,.6);} 70% { box-shadow: 0 0 0 8px rgba(232,64,87,0);} 100% { box-shadow: 0 0 0 0 rgba(232,64,87,0);} }
.refresh { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.refresh:hover { color: var(--gold); border-color: var(--gold-deep); }
.refresh.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- main ---------- */
main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 28px 48px; }
.view { animation: fade .3s ease; }
/* list items settle in one after another; only the first few are delayed so long lists never lag */
.feature, .result, .sched-row, .sched-tbd, .quick .q, .journey .step, .lb tr.team-row, .pod-col { animation: fade .4s ease both; }
.feature:nth-child(2), .result:nth-child(2), .sched-row:nth-child(2), .quick .q:nth-child(2), .journey .step:nth-child(2), .pod-col:nth-child(2) { animation-delay: .06s; }
.feature:nth-child(3), .result:nth-child(3), .sched-row:nth-child(3), .quick .q:nth-child(3), .journey .step:nth-child(3), .pod-col:nth-child(3) { animation-delay: .12s; }
.result:nth-child(4), .sched-row:nth-child(4), .journey .step:nth-child(4) { animation-delay: .18s; }
.result:nth-child(5), .sched-row:nth-child(5) { animation-delay: .24s; }
.result:nth-child(6), .sched-row:nth-child(n+6) { animation-delay: .3s; }
.lb tr.team-row:nth-child(-n+4) { animation-delay: .05s; }
.lb tr.team-row:nth-child(n+5) { animation-delay: .12s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.loading { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 120px 0; color: var(--muted); font-family: var(--cond); letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
.rune { width: 34px; height: 34px; border: 1px solid var(--gold-deep); transform: rotate(45deg); position: relative; animation: spin 2.4s linear infinite; }
.rune::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold); }
.foot { display: flex; flex-direction: column; gap: 4px; padding: 18px 28px 26px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }

/* section header */
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.sec h1 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.sec h2 { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.sec .eyebrow { display: block; margin-bottom: 6px; }
.sec .sub { font-size: 15px; color: var(--muted); max-width: 720px; margin-top: 6px; line-height: 1.45; }
.sec .tools { display: flex; gap: 8px; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--gold-deep); color: var(--gold); font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: all .15s; background: rgba(200,170,110,.04); }
.btn:hover { border-color: var(--gold); color: var(--cream); background: rgba(200,170,110,.1); }
.btn.active { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.btn.ghost { border-color: var(--line-2); color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--cream); border-color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg .btn { border: 0; border-right: 1px solid var(--line-2); height: 32px; background: transparent; color: var(--muted); }
.seg .btn:last-child { border-right: 0; }
.seg .btn.active { background: var(--gold); color: #1a1206; }

/* key (legend) */
.key { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.key span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 8px; vertical-align: 3px; }
.key .k-win::before { background: var(--teal); }
.key .k-loss::before { background: var(--red); }
.key .k-live::before { background: var(--red); height: 7px; width: 7px; border-radius: 50%; vertical-align: 1px; }

/* ---------- shared: logos, codes ---------- */
.logo-wrap { width: 36px; height: 30px; display: flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.logo-wrap.loser img { opacity: .35; filter: grayscale(1); }
.unknown { width: 22px; height: 22px; border: 1px solid var(--line-2); transform: rotate(45deg); display: flex; align-items: center; justify-content: center; }
.unknown::after { content: ""; width: 6px; height: 6px; background: var(--line-2); }
.teamcode { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1; }
.teamname { font-size: 13px; color: var(--muted); line-height: 1.1; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { min-width: 0; }

/* clickable clock */
.clock { cursor: pointer; border-bottom: 1px dotted rgba(139,149,163,.45); transition: color .15s, border-color .15s; }
.clock:hover { color: var(--cream); border-bottom-color: var(--gold); }
.clock.countdown { color: var(--gold); font-family: var(--cond); font-weight: 700; letter-spacing: .04em; border-bottom-color: var(--gold-deep); }

/* ---------- diagram scaffolding ---------- */
.diagram-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; }
.scroll-hint { display: none; font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 2px 8px 10px; }
.scroll-hint .ic { width: 14px; height: 14px; vertical-align: -3px; }
.diagram-wrap.can-scroll .scroll-hint { display: block; }
.diagram-wrap { position: relative; }
.diagram-wrap.can-scroll::after { content: ""; position: absolute; top: 0; right: 0; bottom: 20px; width: 70px; pointer-events: none; background: linear-gradient(90deg, rgba(4,8,14,0), var(--bg)); }
.diagram-wrap.can-scroll.at-end::after { display: none; }
.diagram { position: relative; display: inline-flex; gap: 44px; align-items: stretch; padding: 10px 8px 16px; min-width: 100%; }
.diagram .col { display: flex; flex-direction: column; justify-content: center; gap: 36px; position: relative; z-index: 1; padding-top: 30px; }
.diagram .col-title { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-family: var(--cond); font-size: 13px; letter-spacing: .22em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.diagram .col-title b { color: var(--cream); font-weight: 600; }
.connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.connectors text { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: -0.5px; }
.connectors text.win { fill: var(--teal); opacity: .9; }
.connectors text.loss { fill: var(--red); opacity: .85; }

/* ---------- swiss card ---------- */
.swiss-card { width: 236px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.swiss-card .card-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 2px 4px 8px; }
.card-head .round { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-head .record { font-family: var(--cond); font-weight: 800; font-size: 28px; letter-spacing: .06em; color: var(--cream); line-height: 1; }
.card-head .record span { color: var(--gold-deep); margin: 0 2px; }
.card-head .bo { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; color: var(--muted); text-align: right; }
.match-row {
  display: grid; grid-template-columns: 1fr 58px 1fr; align-items: center; gap: 6px;
  background: var(--row); border: 1px solid transparent; padding: 6px 8px; height: 50px; cursor: pointer; position: relative;
  transition: border-color .15s, background .15s;
}
.match-row:hover { border-color: var(--gold-deep); background: var(--panel-2); }
.match-row.live { border-color: rgba(232,64,87,.55); box-shadow: inset 0 0 0 1px rgba(232,64,87,.2); }
.match-row.empty { cursor: pointer; }
.match-row .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-row .side.right { flex-direction: row-reverse; }
.match-row .side .logo-wrap { width: 32px; height: 28px; }
.match-row .teamcode { font-size: 14px; }
.match-row .side.winner .teamcode { color: var(--gold-2); }
.match-row .side.loser .teamcode { color: var(--muted-2); }
.match-row .side.tbd .teamcode { color: var(--muted-2); font-weight: 600; }
.vs { height: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--muted-2); border: 1px solid var(--line); background: var(--panel); }
.vs.score { font-size: 16px; color: var(--cream); letter-spacing: .12em; border-color: var(--line-2); }
.vs.live { color: var(--red); border-color: rgba(232,64,87,.45); }
.vs.time { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.vs.time .clock { border-bottom: 0; }
.outcome-box { padding: 7px 8px 9px; background: var(--row); border: 1px solid var(--line); }
.outcome-box .label { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-align: center; margin-bottom: 7px; }
.outcome-box.adv .label { color: var(--teal); }
.outcome-box.elim .label { color: var(--red); }
.outcome-box .teams { display: flex; justify-content: center; gap: 14px; }
.outcome-box .teams .t { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.outcome-box .teams .teamcode { font-size: 12px; color: var(--muted); }
.outcome-box .logo-wrap { width: 40px; height: 28px; }
.outcome-box.elim .logo-wrap img { opacity: .55; filter: grayscale(.7); }

/* ---------- bracket match card ---------- */
.bracket-match { width: 244px; cursor: pointer; transition: transform .15s, border-color .15s; }
.bracket-match:hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.bracket-match.live { border-color: rgba(232,64,87,.6); }
.bracket-match .bm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bracket-match .bm-head .lbl { color: var(--gold); font-weight: 600; white-space: nowrap; }
.bracket-match .bm-head .when { white-space: nowrap; letter-spacing: .04em; font-size: 13px; }
.bracket-match .bm-head .live { color: var(--red); font-weight: 700; letter-spacing: .14em; }
.bm-team { display: grid; grid-template-columns: 4px 40px 1fr 40px; align-items: center; gap: 10px; padding: 7px 10px 7px 6px; height: 50px; background: var(--row); }
.bm-team + .bm-team { border-top: 1px solid var(--line); }
.bm-team .bar { width: 3px; height: 28px; background: transparent; }
.bm-team.winner .bar { background: var(--gold); box-shadow: 0 0 8px rgba(200,170,110,.5); }
.bm-team .logo-wrap { width: 40px; height: 32px; }
.bm-team .score { font-family: var(--cond); font-weight: 800; font-size: 20px; text-align: center; color: var(--muted-2); }
.bm-team.winner .score { color: var(--gold-2); }
.bm-team.winner .teamcode { color: var(--gold-2); }
.bm-team.loser .teamcode { color: var(--muted-2); }
.bm-team.loser .teamname { color: var(--muted-2); }
.bm-team.tbd .teamcode { color: var(--muted-2); font-weight: 600; letter-spacing: .1em; }
.final-box { width: 232px; padding: 18px 14px 16px; text-align: center; background: linear-gradient(180deg, rgba(200,170,110,.10), rgba(200,170,110,0.02)); }
.final-box .label { font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--gold); margin-bottom: 12px; }
.final-box .logo-wrap { width: 110px; height: 64px; margin: 0 auto 10px; }
.final-box .name { font-family: var(--display); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
.final-box .unknown { margin: 14px auto; width: 30px; height: 30px; }
.final-box .crown { width: 22px; height: 22px; fill: var(--gold); margin-bottom: 6px; }

/* ---------- HOME ---------- */
.hero { position: relative; padding: 42px 36px 34px; margin-bottom: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(200,170,110,.08), rgba(11,21,34,.6) 60%), var(--panel); }
.hero::before, .hero::after { width: 18px; height: 18px; }
.hero .glow { position: absolute; inset: auto -10% -60% -10%; height: 220px; background: radial-gradient(closest-side, rgba(200,170,110,.18), transparent); pointer-events: none; }
.hero .inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.hero img { height: 92px; width: auto; max-width: 320px; filter: drop-shadow(0 6px 24px rgba(200,170,110,.25)); animation: drift .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drift { from { opacity: 0; transform: translateX(-10px); } }
.journey { animation: draw .9s ease both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.hero h1 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); line-height: 1.05; }
.hero .tag { font-family: var(--display); font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hero .meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero .meta b { color: var(--text); font-weight: 500; }
.journey { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border-top: 1px solid var(--line); }
.journey .step { position: relative; padding: 14px 10px 0; cursor: pointer; }
.journey .step::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.journey .step.done::before { background: var(--gold-deep); }
.journey .step.active::before { background: var(--gold); box-shadow: 0 0 14px rgba(200,170,110,.6); }
.journey .step .n { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }
.journey .step .t { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 0; }
.journey .step.active .t, .journey .step.done .t { color: var(--cream); }
.journey .step .d { font-size: 13px; color: var(--muted-2); }
.journey .step .s { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.journey .step.done .s { color: var(--gold-deep); }
.journey .step.active .s { color: var(--gold); }
.journey .step:hover .t { color: var(--gold-2); }

.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--gold-deep); background: var(--panel-2); }
.feature.live { border-color: rgba(232,64,87,.5); }
.feature .side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.feature .side.right { flex-direction: row-reverse; text-align: right; }
.feature .side .logo-wrap { width: 64px; height: 50px; }
.feature .side .teamcode { font-size: 24px; }
.feature .side .teamname { font-size: 14px; }
.feature .side.winner .teamcode { color: var(--gold-2); }
.feature .side.loser .teamcode { color: var(--muted-2); }
.feature .mid { text-align: center; min-width: 120px; }
.feature .mid .stage { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.feature .mid .big { font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: .1em; color: var(--cream); line-height: 1; }
.feature .mid .big.vsx { font-size: 16px; color: var(--muted-2); letter-spacing: .14em; }
.feature .mid .big.livesc { color: var(--red); }
.feature .mid .when { margin-top: 6px; font-size: 14px; color: var(--muted); }
.feature .mid .when .live { color: var(--red); font-family: var(--cond); font-weight: 700; letter-spacing: .14em; }
.feature .mid .bo { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; color: var(--muted-2); margin-top: 4px; }
.feature.tbd .teamcode { color: var(--muted-2); }
.result-list { display: flex; flex-direction: column; }
.result { display: grid; grid-template-columns: 70px 1fr 56px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.result:last-child { border-bottom: 0; }
.result:hover { background: var(--panel-2); }
.result .stage { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.result .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result .side.right { flex-direction: row-reverse; }
.result .side .logo-wrap { width: 30px; height: 26px; }
.result .side .teamcode { font-size: 14px; }
.result .side.winner .teamcode { color: var(--gold-2); }
.result .side.loser .teamcode { color: var(--muted-2); }
.result .sc { font-family: var(--cond); font-weight: 800; font-size: 16px; letter-spacing: .14em; text-align: center; color: var(--cream); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head .eyebrow { color: var(--cream); letter-spacing: .18em; }
.panel-head button { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.quick .q { padding: 16px 16px 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.quick .q:hover { border-color: var(--gold-deep); background: var(--panel-2); }
.quick .q .eyebrow { margin-bottom: 6px; }
.quick .q .t { font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.quick .q .d { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.quick .q .go { margin-top: 10px; font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.empty-note { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.sched-tbd { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 10px; padding: 12px 10px; font-size: 14px; color: var(--muted); }
.sched-tbd .time { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }
.sched-tbd .what b { color: var(--text); font-weight: 500; }
.sched-tbd .note { font-size: 14px; color: var(--muted-2); }

/* ---------- SCHEDULE ---------- */
.day { margin-bottom: 22px; }
.day-head { display: flex; align-items: baseline; gap: 12px; padding: 6px 0 8px; border-bottom: 1px solid var(--gold-line); margin-bottom: 6px; }
.day-head .d { font-family: var(--display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.day-head .w { font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.day-head .today { font-family: var(--cond); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #1a1206; background: var(--gold); padding: 2px 8px; margin-left: auto; }
.sched-row { display: grid; grid-template-columns: 96px 140px 1fr 76px 1fr 60px 116px; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sched-row:hover { background: var(--panel-2); }
.sched-row.past { opacity: .78; }
.sched-row.live { background: rgba(232,64,87,.06); }
.sched-row .time { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--text); }
.sched-row .stage { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sched-row .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sched-row .side.right { flex-direction: row-reverse; text-align: right; }
.sched-row .side .logo-wrap { width: 36px; height: 30px; }
.sched-row .side .teamcode { font-size: 16px; }
.sched-row .side.winner .teamcode { color: var(--gold-2); }
.sched-row .side.loser .teamcode { color: var(--muted-2); }
.sched-row .side.tbd .teamcode { color: var(--muted-2); font-weight: 600; }
.sched-row .sc { font-family: var(--cond); font-weight: 800; font-size: 18px; letter-spacing: .14em; text-align: center; color: var(--cream); }
.sched-row .sc.vsx { font-size: 13px; color: var(--muted-2); letter-spacing: .14em; }
.sched-row .sc.live { color: var(--red); }
.sched-row .bo { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; color: var(--muted-2); text-align: center; }
.sched-row .st { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-align: right; color: var(--muted); display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.sched-row .st .live { color: var(--red); font-weight: 700; }
.sched-row .st .final { color: var(--muted-2); }
.vod-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--gold-deep); color: var(--gold); font-family: var(--cond); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.vod-chip:hover { background: var(--gold); color: #1a1206; }
.vod-chip svg { width: 10px; height: 10px; fill: currentColor; }

/* ---------- STANDINGS / LEADERBOARD ---------- */
.strip { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; }
.strip .s .k { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.strip .s .v { font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--cream); letter-spacing: .04em; }
.strip .s .v.gold { color: var(--gold); }
.crowns { display: inline-flex; gap: 1px; vertical-align: -2px; margin-left: 7px; }
.crown { width: 13px; height: 13px; fill: var(--gold); filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.crowns.sm .crown { width: 11px; height: 11px; }
.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb th { text-align: left; font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--gold-line); font-weight: 600; }
.lb td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb tr.team-row { cursor: pointer; transition: background .15s; }
.lb tr.team-row:hover { background: var(--panel-2); }
.lb tr.tbd td { color: var(--muted-2); }
.lb tr.group-start td { border-top: 1px solid var(--line-2); }
.lb .place { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); }
.lb .place.p1 { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.lb .place.p2 { border-color: #a9b1bd; color: #dfe4ea; }
.lb .place.p3 { border-color: #b07a4a; color: #d9a071; }
.lb .place.elim { border-color: rgba(232,64,87,.4); color: var(--red); }
.lb .team-cell { display: flex; align-items: center; gap: 12px; }
.lb .team-cell .logo-wrap { width: 38px; height: 30px; }
.lb .team-cell .teamcode { font-size: 16px; }
.lb .team-cell .teamname { font-size: 13px; }
.lb .prize { font-family: var(--cond); font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap; color: var(--cream); }
.lb .pct { color: var(--muted-2); font-family: var(--cond); text-align: right; }
.lb .status { color: var(--muted); font-size: 14px; }
.lb .status.champ { color: var(--gold); font-weight: 600; }
.lb .status.alive { color: var(--teal); font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.lb .status.out { color: var(--red); }
.lb .status .prov { color: var(--muted-2); font-size: 12px; }
.lb .chev { width: 14px; height: 14px; color: var(--muted-2); margin-left: auto; transition: transform .15s; flex: 0 0 auto; }
.lb tr.open .chev { transform: rotate(90deg); color: var(--gold); }
.lb tr.roster-row td { background: var(--row); padding: 10px 14px 12px 72px; }
.roster-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.member { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); padding: 5px 10px; font-size: 14px; }
.member .role { font-family: var(--cond); font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 700; min-width: 26px; }
.member.staff { opacity: .7; border-style: dashed; }
.member .name { font-weight: 500; color: var(--text); }
.member .flag { flex: 0 0 auto; width: 18px; height: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.titles-cell { display: inline-flex; align-items: center; gap: 10px; }
.titles-cell .crowns { margin-left: 0; }
.note { font-size: 13px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.note .crown { vertical-align: -2px; }

.standings-wrap { margin-top: 26px; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { text-align: left; font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--gold-line); font-weight: 600; }
.standings td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.standings .team-cell { display: flex; align-items: center; gap: 10px; }
.standings .team-cell .logo-wrap { width: 34px; height: 26px; }
.standings .rec { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.standings .place { display: inline-flex; width: 28px; height: 24px; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.standings tr.up .place, .standings tr.seedup .place { border-color: var(--teal); color: var(--teal); }
.standings tr.down .place { border-color: var(--red); color: var(--red); }
.standings td.rcell { text-align: center; color: var(--muted); font-family: var(--cond); font-size: 13px; letter-spacing: .06em; }
.standings td.rcell.w { color: var(--teal); }
.standings td.rcell.l { color: var(--red); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; padding: 20px; overflow-y: auto; overscroll-behavior: contain; animation: fadein .2s ease; }
.modal .modal-card { animation: rise .28s cubic-bezier(.2,.7,.2,1); }
@keyframes fadein { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 9, 0.78); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(720px, 100%); margin: auto; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.7); padding: 24px; animation: fade .2s ease; }
.modal-card::before, .modal-card::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.modal-card::before { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.modal-card::after { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.modal-close:hover { color: var(--cream); border-color: var(--gold-deep); }
.m-stage { text-align: center; margin-bottom: 14px; }
.m-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; }
.m-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.m-team .logo-wrap { width: 100px; height: 68px; }
.m-team .teamcode { font-size: 26px; }
.m-team .teamname { font-size: 14px; white-space: normal; }
.m-team.winner .teamcode { color: var(--gold-2); }
.m-team .region { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }
.m-score { font-family: var(--cond); font-weight: 800; font-size: 54px; letter-spacing: .1em; color: var(--cream); text-align: center; line-height: 1; padding-top: 10px; }
.m-score small { display: block; font-size: 13px; letter-spacing: .24em; color: var(--muted); font-weight: 600; margin-top: 8px; }
.m-score .vsx { font-size: 22px; color: var(--muted-2); letter-spacing: .16em; }
.m-meta { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 18px; }
.m-meta .live { color: var(--red); font-family: var(--cond); font-weight: 700; letter-spacing: .16em; }
.roster { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.roster > span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; border: 1px solid var(--line); padding: 2px 6px; color: var(--muted); }
.roster .crowns { margin-left: 2px; border: 0; padding: 0; }
.roster .flag { flex: 0 0 auto; width: 14px; height: 10px; object-fit: cover; }
.games { display: flex; flex-direction: column; gap: 6px; }
.game { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 8px; background: var(--row); border: 1px solid var(--line); padding: 8px 10px; }
.game .picks { display: flex; gap: 4px; }
.game .picks.right { justify-content: flex-end; }
.game .picks img { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--panel-2); }
.game .picks .ph { width: 30px; height: 30px; border: 1px dashed var(--line); }
.game .mid { text-align: center; }
.game .mid b { display: block; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.game .mid .len { font-family: var(--cond); font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.game.w1 .picks.left img, .game.w2 .picks.right img { border-color: var(--gold); }
.game.w1 .picks.right img, .game.w2 .picks.left img { opacity: .4; filter: grayscale(.6); }
.vod-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; height: 22px; padding: 0 9px; border: 1px solid var(--gold-deep); color: var(--gold); font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: all .15s; }
.vod-btn:hover { background: var(--gold); color: #1a1206; }
.vod-btn svg { width: 9px; height: 9px; fill: currentColor; }
.m-foot { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.m-foot .mvp { color: var(--gold); font-weight: 600; }
.m-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-links .btn { height: 28px; padding: 0 10px; font-size: 13px; }
.m-src { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.live-panel { border: 1px solid rgba(232,64,87,.35); background: var(--row); padding: 12px; margin-bottom: 14px; }
.live-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-family: var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.live-title .live { color: var(--red); font-weight: 700; }
.live-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-side { background: var(--panel); padding: 8px 10px; border-top: 2px solid #3b7fd0; }
.live-side.red { border-top-color: var(--red); }
.live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.side-tag { font-family: var(--cond); font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--muted); }
.live-nums { display: flex; gap: 12px; font-family: var(--cond); font-size: 14px; color: var(--text); margin-bottom: 8px; flex-wrap: wrap; letter-spacing: .04em; }
.live-nums span b { color: var(--muted-2); font-weight: 600; margin-right: 3px; font-size: 11px; letter-spacing: .14em; }
.live-players { display: flex; flex-direction: column; gap: 4px; }
.live-player { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.live-player img { width: 24px; height: 24px; border: 1px solid var(--line); }
.live-player .kda { font-family: var(--cond); color: var(--muted); letter-spacing: .06em; }

[data-tip] { position: relative; }
[data-tip]:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #02050a; color: var(--cream); font-size: 12px; padding: 4px 8px; white-space: nowrap; border: 1px solid var(--gold-deep); z-index: 30; pointer-events: none; font-family: var(--body); }
.error-banner { background: var(--red-dim); border: 1px solid rgba(232,64,87,.4); color: #ffb3bb; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- stacked diagrams (mobile) ---------- */
.diagram.stacked { display: flex; flex-direction: column; gap: 22px; min-width: 0; width: 100%; padding: 4px 0 8px; align-items: stretch; }
.diagram.stacked .col { padding-top: 0; gap: 12px; justify-content: flex-start !important; }
.diagram.stacked .col-title { position: static; text-align: left; padding: 0 2px 6px; border-bottom: 1px solid var(--gold-line); margin-bottom: 2px; }
.diagram.stacked .col-title:empty { display: none; }
.diagram.stacked .swiss-card, .diagram.stacked .bracket-match, .diagram.stacked .final-box { width: 100%; max-width: 480px; margin: 0 auto; }
.diagram.stacked .col > div:empty { display: none; }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .top { grid-template-columns: auto 1fr auto; }
  /* Sideways scroll only: no vertical give, and the active underline stays inside the strip */
  .nav { justify-self: start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .tab.active::after { bottom: 0; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; height: auto; padding: 10px 14px 0; row-gap: 4px; }
  .brand { grid-row: 1; grid-column: 1; }
  .status { grid-row: 1; grid-column: 2; }
  .nav { grid-row: 2; grid-column: 1 / -1; width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .tab { height: 44px; padding: 0 12px; font-size: 14px; flex: 0 0 auto; white-space: nowrap; }
  .brand img { height: 24px; }
  .wordmark { font-size: 14px; }
  .status { font-size: 12px; gap: 8px; }
  .updated { display: none; }
  main { padding: 16px 12px 36px; }
  .hero { padding: 24px 18px 20px; }
  .hero .inner { grid-template-columns: 1fr; gap: 14px; }
  .hero img { height: 60px; }
  .hero h1 { font-size: 22px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .sec h1 { font-size: 20px; }
  .sec .sub { font-size: 14px; }
  .diagram-scroll { overflow: visible; padding-bottom: 0; }
  .feature { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 12px; }
  .feature .side { flex-direction: column; text-align: center; gap: 6px; }
  .feature .side.right { flex-direction: column; text-align: center; }
  .feature .side .teamcode { font-size: 18px; }
  .feature .side .teamname { display: none; }
  .feature .side .logo-wrap { width: 54px; height: 42px; }
  .feature .mid { min-width: 96px; }
  .feature .mid .big { font-size: 24px; }
  .result { grid-template-columns: 56px 1fr 48px 1fr; padding: 8px; }
  .sched-row { grid-template-columns: 64px 1fr 56px 1fr; gap: 6px; padding: 8px 6px; }
  .sched-row .stage, .sched-row .bo, .sched-row .st { display: none; }
  .sched-tbd { grid-template-columns: 1fr; gap: 4px; padding: 10px 8px; }
  .sched-tbd .note { font-size: 13px; }
  .sched-row .side .teamname { display: none; }
  .sched-row .side .teamcode { font-size: 14px; }
  .sched-row .side .logo-wrap { width: 30px; height: 26px; }
  .sched-row .time { font-size: 14px; }
  .day-head .d { font-size: 14px; }
  .strip { gap: 16px; padding: 10px 12px; }
  .strip .s .v { font-size: 16px; }
  .lb th, .lb td { padding: 8px 8px; }
  .lb th:nth-child(5), .lb td:nth-child(5) { display: none; }
  .lb .place { min-width: 40px; height: 24px; font-size: 13px; padding: 0 4px; letter-spacing: 0; white-space: nowrap; }
  .lb th:first-child, .lb td:first-child { padding-right: 2px; }
  .lb.contention th:nth-child(4), .lb.contention td:nth-child(4) { display: none; }
  .lb .team-cell .crowns .crown:nth-child(n+2) { display: none; }
  .lb .team-cell .crowns[data-n]::after { content: "×" attr(data-n); font-family: var(--cond); font-size: 12px; color: var(--gold); margin-left: 2px; }
  .lb .team-cell { gap: 8px; }
  .lb .team-cell .logo-wrap { width: 30px; height: 24px; }
  .lb .team-cell .teamname { display: none; }
  .lb .status { font-size: 13px; }
  .lb .prize { font-size: 14px; }
  .lb tr.roster-row td { padding: 8px 8px 10px; }
  .member { padding: 4px 8px; font-size: 13px; }
  .standings td.rcell, .standings th:nth-child(n+5) { display: none; }
  .foot { font-size: 12px; padding: 12px; }
  /* Floating card centred on the screen (not a bottom sheet) */
  .modal { padding: 14px; align-items: center; }
  .modal-card { width: 100%; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 18px 12px 20px; }
  .m-team .logo-wrap { width: 64px; height: 48px; }
  .m-team .teamcode { font-size: 18px; }
  .m-team .roster { justify-content: center; gap: 3px; }
  .m-team .roster > span { font-size: 11px; padding: 2px 5px; }
  .m-team .roster img { width: 12px; height: 9px; }
  .m-team .fav-btn { height: 22px; font-size: 11px; }
  .m-score { font-size: 34px; }
  .game { grid-template-columns: 1fr 70px 1fr; gap: 4px; padding: 6px; }
  .game .picks { gap: 2px; }
  .game .picks img, .game .picks .ph { width: 22px; height: 22px; }
  .live-cols { grid-template-columns: 1fr; }
}

/* ---------- accessibility + refresh states ---------- */
[role="button"]:focus-visible, .clock:focus-visible, .tab:focus-visible, .btn:focus-visible, .bell:focus-visible, .reveal:focus-visible, .spoiler-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal-card:focus { outline: none; }
.updated.offline { color: var(--red); }
.m-meta .muted { color: var(--muted-2); }

/* ---------- live stage (Overview, while a match is live) ---------- */
.live-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 0; margin-bottom: 26px; border-color: rgba(232,64,87,.45); background: var(--panel); overflow: hidden; }
.live-stage { align-items: start; }
.live-stage .player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; min-height: 200px; }
.live-stage .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-stage .no-embed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.live-stage .no-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.live-stage .no-embed .btn { position: relative; }
.live-info { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-left: 1px solid var(--line); }
.live-info .lbody { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.live-info .lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.live-info .lh .stage { color: var(--gold); }
.live-info .lteams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.live-info .lteams .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-info .lteams .side.right { flex-direction: row-reverse; text-align: right; }
.live-info .lteams .side .logo-wrap { width: 56px; height: 44px; }
.live-info .lteams .side .teamcode { font-size: 22px; }
.live-info .lmid { text-align: center; }
.live-info .lmid .big { font-family: var(--cond); font-weight: 800; font-size: 34px; color: var(--cream); line-height: 1; }
.live-info .lmid .sub { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.live-info .lstats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.live-info .lstats-head { font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); text-align: center; margin-bottom: 6px; }
.live-info .lrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1px 0; font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--muted); }
.live-info .lrow .k { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); padding: 0 14px; }
.live-info .lrow .a { text-align: right; }
.live-info .lrow .lead { color: var(--cream); }
.live-info .live-panel { border: 0; background: transparent; padding: 0; margin: 0; }
.live-info .live-panel .live-title, .live-info .live-panel .live-nums { display: none; }
.live-info .live-side { padding: 6px 8px; }
.live-info .live-head .teamcode { font-size: 14px; }
.live-info .live-players { gap: 2px; }
.live-info .live-player { font-size: 13px; gap: 6px; grid-template-columns: 20px 1fr auto; }
.live-info .live-player img { width: 20px; height: 20px; }
.live-info .live-head { margin-bottom: 4px; }
.live-info .lnote { margin-top: 0; }
.live-info .llinks { display: flex; gap: 8px; flex-wrap: wrap; }
.live-info .llinks .ic { width: 12px; height: 12px; vertical-align: -2px; fill: none; stroke: currentColor; }
.live-info .lnote { font-size: 13px; color: var(--muted-2); margin-top: auto; }
.btn.watch { color: var(--red); background: transparent; border-color: rgba(232,64,87,.6); }
.btn.watch:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn.watch svg { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; margin-right: 4px; }
.sched-row .st .btn.watch { height: 26px; padding: 0 10px; font-size: 12px; }
.m-watch { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; margin-bottom: 14px; background: #000; border: 1px solid rgba(232,64,87,.35); overflow: hidden; }
.m-watch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.m-watch .btn { position: relative; }
.m-watch.noimg { aspect-ratio: auto; padding: 16px; background: var(--row); }
.live-stage .player { min-height: 220px; }

/* ---------- next-match showcase (Overview) ---------- */
.showcase { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 34px 40px 30px; margin-bottom: 26px; overflow: hidden; cursor: pointer; border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(200,170,110,.10), rgba(11,21,34,0) 55%), var(--panel); box-shadow: 0 0 0 1px rgba(200,170,110,.12), 0 18px 50px rgba(0,0,0,.45); transition: border-color .2s, box-shadow .2s, transform .2s; }
.showcase::before, .showcase::after { width: 18px; height: 18px; border-color: var(--gold); }
.showcase:hover { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(200,170,110,.3), -30px 0 60px -20px rgba(var(--c1), .3), 30px 0 60px -20px rgba(var(--c2), .3), 0 18px 50px rgba(0,0,0,.45); }
.showcase { --c1: 200,170,110; --c2: 200,170,110; }
.showcase .sc-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.showcase .sc-half { position: absolute; inset: 0; animation: breathe 7s ease-in-out infinite; transition: opacity .4s; }
.showcase .sc-half.l { clip-path: polygon(0 0, 57% 0, 43% 100%, 0 100%); background: radial-gradient(55% 120% at 18% 50%, rgba(var(--c1), .28), transparent 70%), linear-gradient(90deg, rgba(var(--c1), .14), rgba(var(--c1), .04) 60%, transparent); }
.showcase .sc-half.r { clip-path: polygon(57% 0, 100% 0, 100% 100%, 43% 100%); background: radial-gradient(55% 120% at 82% 50%, rgba(var(--c2), .28), transparent 70%), linear-gradient(270deg, rgba(var(--c2), .14), rgba(var(--c2), .04) 60%, transparent); animation-delay: -3.5s; }
.showcase .sc-seam { position: absolute; inset: 0; clip-path: polygon(57% 0, calc(57% + 1px) 0, calc(43% + 1px) 100%, 43% 100%); background: linear-gradient(180deg, transparent, var(--gold) 35%, var(--gold) 65%, transparent); opacity: .5; }
.showcase .sc-mark { position: absolute; top: 50%; height: 210%; width: auto; max-width: 48%; object-fit: contain; opacity: .055; filter: blur(1.5px); transform: translateY(-50%) rotate(-9deg); }
.showcase .sc-mark.l { left: -6%; }
.showcase .sc-mark.r { right: -6%; transform: translateY(-50%) rotate(9deg); }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.showcase .sc-side { position: relative; display: flex; align-items: center; gap: 22px; min-width: 0; }
.showcase .sc-side.left { justify-content: flex-end; }
.showcase .sc-side.right { flex-direction: row-reverse; justify-content: flex-end; text-align: right; }
.showcase .sc-side .logo-wrap { width: 150px; height: 118px; }
.showcase .sc-side .logo-wrap img { filter: drop-shadow(0 8px 22px rgba(0,0,0,.7)); transition: transform .25s; }
.showcase:hover .sc-side .logo-wrap img { transform: scale(1.02); }
.showcase .sc-side .teamcode { font-family: var(--cond); font-weight: 800; font-size: 46px; letter-spacing: .06em; color: var(--cream); line-height: 1; }
.showcase .sc-side.fav .teamcode { color: var(--gold); }
.showcase .sc-side .teamname { font-size: 15px; color: var(--text); margin-top: 6px; }
.showcase .sc-side .sc-bits { font-family: var(--cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.showcase .sc-mid { position: relative; text-align: center; min-width: 250px; padding: 0 10px; }
.showcase .sc-eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.showcase .sc-stage { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.showcase .sc-vs { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: .12em; color: var(--cream); line-height: 1; margin: 12px 0 10px; text-shadow: 0 0 18px rgba(200,170,110,.22); }
.showcase .sc-vs::before, .showcase .sc-vs::after { content: ""; display: inline-block; width: 34px; height: 1px; vertical-align: middle; margin: 0 14px; background: linear-gradient(90deg, transparent, var(--gold)); }
.showcase .sc-vs::after { background: linear-gradient(90deg, var(--gold), transparent); }
.showcase .sc-count { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.showcase .sc-count .cell { min-width: 58px; }
.showcase .sc-count .n.tick { animation: tick .45s ease; }
@keyframes tick { 0% { opacity: .35; transform: translateY(-5px); } 100% { opacity: 1; transform: none; } }
.showcase .sc-count .n { font-family: var(--cond); font-weight: 800; font-size: 40px; letter-spacing: .04em; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(200,170,110,.2); }
.showcase .sc-count .l { font-family: var(--cond); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.showcase .sc-count .sep { font-family: var(--cond); font-weight: 800; font-size: 32px; color: var(--gold-deep); line-height: 1.2; }
.showcase .sc-count .sc-soon { font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.showcase .sc-when { margin-top: 10px; font-size: 14px; color: var(--cream); }
.showcase .sc-bo { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.showcase .sc-cta { display: inline-block; margin-top: 14px; padding: 7px 16px; font-family: var(--cond); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-deep); transition: background .15s, color .15s; }
.showcase:hover .sc-cta { background: var(--gold); color: var(--bg); }
.showcase .sc-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 22px 14px 18px; }
  .showcase .sc-side.left, .showcase .sc-side.right { flex-direction: column; justify-content: flex-start; text-align: center; gap: 8px; }
  .showcase .sc-side .logo-wrap { width: 92px; height: 74px; }
  .showcase .sc-side .teamcode { font-size: 30px; }
  .showcase .sc-side .teamname { font-size: 14px; }
  .showcase .sc-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; padding: 0; }
  .showcase .sc-vs { font-size: 28px; margin: 8px 0; }
  .showcase .sc-vs::before, .showcase .sc-vs::after { width: 22px; margin: 0 8px; }
  .showcase .sc-count .cell { min-width: 48px; }
  .showcase .sc-count .n { font-size: 32px; }
  .showcase .sc-half.l { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
  .showcase .sc-half.r { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
  .showcase .sc-seam { clip-path: polygon(50% 0, calc(50% + 1px) 0, calc(50% + 1px) 100%, 50% 100%); }
  .showcase .sc-mark { height: 120%; max-width: 60%; }
}

/* ---------- title odds ---------- */
.lb .odds { text-align: right; white-space: nowrap; }
.lb .odds b { font-family: var(--cond); font-weight: 700; font-size: 16px; color: var(--cream); letter-spacing: .02em; }
.lb .odds .was { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.lb .odds .was i { font-style: normal; font-family: var(--cond); font-weight: 700; font-size: 13px; }
.lb .odds .was i.up { color: var(--teal); }
.lb .odds .was i.down { color: var(--red); }
.strip .s .v .odds-v { color: var(--gold); font-weight: 600; margin-left: 4px; }
.note a { color: var(--gold); }
.note a svg { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }

/* ---------- champion banner (Standings, once a winner is known) ---------- */
.champ-banner { --c1: 200,170,110; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 26px 30px; margin: 0 0 26px; overflow: hidden; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(200,170,110,.2); }
.champ-banner::before, .champ-banner::after { width: 18px; height: 18px; }
.champ-banner .cb-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--c1), .22), rgba(var(--c1), .05) 45%, transparent 70%), repeating-linear-gradient(115deg, rgba(200,170,110,.035) 0 1px, transparent 1px 26px); }
.champ-banner .cb-logo { position: relative; }
.champ-banner .cb-logo .logo-wrap { width: 150px; height: 120px; }
.champ-banner .cb-logo .logo-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--gold); opacity: .4; }
.champ-banner .cb-logo .logo-wrap img { position: relative; filter: drop-shadow(0 8px 22px rgba(0,0,0,.7)); }
.champ-banner .cb-text { position: relative; }
.champ-banner .cb-eyebrow { font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.champ-banner h2 { margin: 8px 0 10px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .06em; line-height: 1.15; color: var(--cream); }
.champ-banner p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.55; color: var(--text); }
@media (max-width: 760px) {
  .champ-banner { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; text-align: center; }
  .champ-banner .cb-logo .logo-wrap { margin: 0 auto; width: 110px; height: 90px; }
  .champ-banner h2 { font-size: 22px; }
  .champ-banner p { font-size: 15px; }
}

/* ---------- spoilers ---------- */
.spoiler-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.spoiler-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.spoiler-btn:hover { color: var(--gold); border-color: var(--gold-deep); }
.spoiler-btn.on { color: var(--gold); border-color: var(--gold); background: rgba(200,170,110,.1); }
.reveal { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--gold-deep); background: rgba(200,170,110,.07); color: var(--gold); font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.reveal svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.reveal:hover { background: var(--gold); color: var(--bg); }
.reveal.sm { height: 22px; padding: 0 7px; font-size: 10px; }
.vs.hid, .sc.hid, .big.hid { border: 0; background: transparent; display: flex; justify-content: center; }
/* a team whose presence in this match is itself a result */
.outcome-box .reveal { margin: 8px auto 2px; display: flex; width: max-content; }
.final-box .reveal { margin: 10px auto 0; display: flex; width: max-content; }
.side.spoil .teamcode { color: var(--muted-2); letter-spacing: .2em; }
.side.spoil .teamname { color: var(--muted-2); }
.m-score .reveal { display: inline-flex; margin-top: 8px; }
/* a covered block: contents blurred and inert, one Reveal on top */
.spoiled { position: relative; }
.spoiled > :not(.spoiler-cover) { filter: blur(7px); pointer-events: none; user-select: none; }
.spoiler-cover { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(4,8,14,.3); }
.spoiler-cover .reveal { height: 30px; padding: 0 14px; font-size: 12px; background: var(--panel); box-shadow: 0 8px 28px rgba(0,0,0,.55); }
.spoiler-cover:hover .reveal { background: var(--gold); color: var(--bg); }
/* tall blocks: the button rides along as the page scrolls instead of sitting at the block's centre */
.spoiler-cover.tall { align-items: flex-start; padding-top: 120px; }
.spoiler-cover.tall .reveal { position: sticky; top: 45vh; }
.spoiled > :not(.spoiler-cover) { max-height: 90vh; overflow: hidden; }
@media (max-width: 900px) { .spoiler-btn { padding: 0 8px; } .spoiler-btn span { display: none; } }

/* ---------- match reminders ---------- */
.bell { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 26px; height: 26px; padding: 0; margin-left: 8px; color: var(--muted); background: transparent; border: 1px solid var(--line-2); cursor: pointer; vertical-align: middle; transition: color .15s, border-color .15s, background .15s; }
.bell svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.bell:hover { color: var(--gold); border-color: var(--gold-deep); }
.bell.on { color: var(--gold); border-color: var(--gold); background: rgba(200,170,110,.12); }
.bell.on svg { fill: var(--gold); stroke: var(--gold); }
.bell.sm { width: 22px; height: 22px; margin-left: 6px; }
.bell.sm svg { width: 11px; height: 11px; }
.bell.wide, .sc-actions .bell { width: auto; padding: 0 12px; font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.bell.wide { height: 28px; margin-left: 12px; }
.bell.on span::before { content: "Reminder set"; }
.bell.on span { font-size: 0; }
.bell.on span::before { font-size: 12px; }
.sc-actions { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.sc-actions .sc-cta { margin-top: 0; }
.sc-actions .bell { height: 31px; margin: 0; }
.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(92vw, 520px); padding: 10px 14px; font-size: 14px; line-height: 1.4; color: var(--cream); background: var(--panel-2); border: 1px solid var(--gold-deep); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: fade .2s ease-out; }
.toast b { color: var(--gold); font-weight: 600; }
.toast.hot { border-color: var(--gold); cursor: pointer; }

/* ---------- favourite team ---------- */
.favmark { width: 12px; height: 12px; fill: var(--gold); margin-left: 6px; vertical-align: -1px; filter: drop-shadow(0 0 4px rgba(200,170,110,.7)); }
.side.fav .teamcode, .bm-team.fav .teamcode, .team-cell.fav .teamcode, .m-team.fav .teamcode { color: var(--gold); }
.match-row:has(.side.fav), .sched-row:has(.side.fav), .feature:has(.side.fav), .result:has(.side.fav) { box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg, rgba(200,170,110,.10), transparent 40%); }
.bracket-match:has(.bm-team.fav) { border-color: var(--gold-deep); box-shadow: 0 0 0 1px rgba(200,170,110,.25), 0 0 18px rgba(200,170,110,.15); }
.fav-btn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; margin-left: 10px; font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; }
.fav-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-btn:hover { color: var(--gold); border-color: var(--gold-deep); }
.fav-btn.on { color: var(--gold); border-color: var(--gold-deep); }
.fav-btn.on svg { fill: var(--gold); stroke: var(--gold); }
.m-team .fav-btn { margin: 6px 0 0; }
.lb .team-cell .fav-btn { opacity: 0; transition: opacity .15s; }
.lb tr:hover .team-cell .fav-btn, .lb .team-cell .fav-btn.on, .lb .team-cell .fav-btn:focus-visible { opacity: 1; }
.fav-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 12px 16px; margin-bottom: 26px; }
.fav-strip .fs-team { display: flex; align-items: center; gap: 12px; }
.fav-strip .fs-team .logo-wrap { width: 46px; height: 38px; }
.fav-strip .fs-team .teamcode { font-size: 20px; color: var(--gold); }
.fav-strip .fs-text .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.fav-strip .fs-next { cursor: pointer; }
.fav-strip .fs-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; font-family: var(--cond); font-size: 15px; letter-spacing: .04em; color: var(--cream); }
.fav-strip .fs-line .vsx { font-weight: 700; }
.fav-strip .fs-line .live { color: var(--red); font-weight: 700; }
.fav-strip .fs-line .won { color: var(--teal); font-weight: 700; }
.fav-strip .fs-line .lost { color: var(--red); font-weight: 700; }
.fav-strip .fs-line .muted { color: var(--muted); font-weight: 500; }
.fav-select { height: 34px; padding: 0 10px; font-family: var(--cond); font-size: 14px; letter-spacing: .06em; color: var(--cream); background: var(--panel-2); border: 1px solid var(--line-2); max-width: 260px; }
.fav-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

@media (max-width: 900px) {
  .live-stage { grid-template-columns: 1fr; }
  .live-info { border-left: 0; border-top: 1px solid var(--line); padding: 14px; }
  .fav-strip { grid-template-columns: 1fr; gap: 10px; }
  .fav-select { max-width: none; width: 100%; }
}
@media (max-width: 760px) {
  .sched-row .st { display: flex; grid-column: 1 / -1; justify-content: flex-start; }
  .sched-row .st:empty, .sched-row .st:not(:has(.watch)) { display: none; }
  .lb .team-cell .fav-btn { display: none; }
}

/* Narrower desktops: objectives in one compact row so the player list stays visible */
@media (min-width: 901px) and (max-width: 1340px) {
  .live-stage { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); }
  .live-info .lstats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 6px 0; }
  .live-info .lstats-head { width: 100%; margin-bottom: 2px; }
  .live-info .lrow { display: inline-flex; gap: 5px; font-size: 14px; padding: 0; }
  .live-info .lrow .k { padding: 0; font-size: 11px; }
}

/* ---------- feedback ---------- */
.foot a#feedbackLink { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; margin-left: 6px; }
.foot a#feedbackLink:hover { color: var(--gold); }
.fb-card { width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px; }
.fb-card h2 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
.fb-card .sub { margin: 0; font-size: 14px; color: var(--muted); }
.fb-field { display: flex; flex-direction: column; gap: 5px; font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fb-field em { font-style: normal; color: var(--muted-2); letter-spacing: .08em; text-transform: none; }
.fb-field input, .fb-field textarea { font: 500 15px/1.4 var(--body); color: var(--cream); background: var(--row); border: 1px solid var(--line-2); padding: 9px 11px; letter-spacing: 0; text-transform: none; resize: vertical; }
.fb-field input:focus, .fb-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.fb-field input { max-width: 260px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-status { font-size: 14px; color: var(--muted); }
.fb-status.ok { color: var(--teal); }
.fb-status.err { color: var(--red); }

/* live blocks inside the match modal */
.m-live { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.m-live .lstats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.m-live .lstats-head { font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); text-align: center; margin-bottom: 6px; }
.m-live .lrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1px 0; font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--muted); }
.m-live .lrow .k { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); padding: 0 14px; }
.m-live .lrow .a { text-align: right; }
.m-live .lrow .lead { color: var(--cream); }
.m-live .live-panel { margin-bottom: 0; }

/* ---------- standings: podium + top-three rows ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 14px; align-items: end; margin: 14px 0 22px; }
.pod-col { display: flex; flex-direction: column; --tier: var(--muted); }
.pod-col.p1 { --tier: var(--gold); }
.pod-col.p2 { --tier: #c7ced6; }
.pod-col.p3 { --tier: #d9a071; }
.pod { position: relative; text-align: center; padding: 26px 16px 16px; }
/* background layers stay clipped inside the card; the medallion may overhang */
.pod .pod-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pod .pod-line { position: absolute; inset: 6px; border: 1px solid var(--line-2); }
.pod .pod-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from -90deg at 50% -12%, rgba(200,170,110,.11) 0 1.2deg, transparent 1.2deg 8deg); -webkit-mask-image: radial-gradient(75% 95% at 50% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(75% 95% at 50% 0%, #000 15%, transparent 72%); }
.pod .pod-badge { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%) rotate(45deg); background: var(--bg-2); border: 1px solid var(--tier); box-shadow: 0 0 0 3px var(--bg); z-index: 2; display: flex; align-items: center; justify-content: center; }
.pod .pod-badge span { transform: rotate(-45deg); font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 1; color: var(--tier); letter-spacing: 0; display: flex; align-items: center; }
.pod .pod-badge svg { width: 15px; height: 15px; fill: #1a1206; }
.pod .pod-label { position: relative; display: flex; align-items: center; gap: 12px; font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tier); margin-bottom: 12px; }
.pod .pod-label::before, .pod .pod-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--tier)); opacity: .55; }
.pod .pod-label::after { background: linear-gradient(90deg, var(--tier), transparent); }
.pod-team { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; }
.pod-team[role="button"] { cursor: pointer; }
.pod-team .logo-wrap { width: 96px; height: 84px; }
.pod-team .logo-wrap.big { width: 150px; height: 124px; }
/* hairline diamond crest behind each logo */
.pod-team .logo-wrap::before, .pod-team .logo-wrap::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--crest, 56px); height: var(--crest, 56px); transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--tier); opacity: .4; pointer-events: none; }
.pod-team .logo-wrap::after { width: calc(var(--crest, 56px) * .72); height: calc(var(--crest, 56px) * .72); opacity: .22; }
.pod-team .logo-wrap.big { --crest: 84px; }
.pod.p1 .pod-team .logo-wrap::before { animation: crest 40s linear infinite; }
.pod.p1 .pod-team .logo-wrap::after { animation: crest 60s linear infinite reverse; }
.pod .pod-rays { animation: breathe 5s ease-in-out infinite; }
/* a thin highlight crosses the champion's medallion every few seconds */
.pod.p1 .pod-badge { overflow: hidden; }
.pod.p1 .pod-badge::after { content: ""; position: absolute; top: -50%; left: -120%; width: 60%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -120%; } 100% { left: 180%; } }
@keyframes crest { to { transform: translate(-50%, -50%) rotate(405deg); } }
.pod-team .logo-wrap img { position: relative; }
.pod-team .unknown { width: 26px; height: 26px; margin: 14px auto; position: relative; }
.pod-team.tbd .pod-code { color: var(--muted-2); letter-spacing: .14em; }
.pod-code { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--cream); margin-top: 4px; }
.pod-name { font-size: 13px; color: var(--muted); min-height: 14px; }
.pod-prize { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--cream); margin-top: 10px; letter-spacing: .04em; }
.pod-prize span { font-size: 12px; color: var(--muted-2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pod-sub { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pod-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pod-pair .pod-team .logo-wrap { width: 72px; height: 64px; --crest: 44px; }
.pod-pair .pod-code { font-size: 18px; }
.pod.p1 .pod-code { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pod.p1 .pod-code .crowns { margin: 0; gap: 2px; }
.pod.p1 .pod-code .crowns .crown { width: 13px; height: 13px; }
/* champion roster flanking the team */
.pod-body { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 18px; }
.pod.with-roster .pod-body { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }
.pod-center { display: flex; flex-direction: column; align-items: center; }
.pod-roster { align-self: end; min-width: 0; width: 100%; text-align: left; }
.pod-roster .rh { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--gold-deep); margin-bottom: 2px; }
.pod-roster .rp { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--cream); white-space: nowrap; overflow: hidden; }
.pod-roster .rp:last-child { border-bottom: 0; }
.pod-roster .rp .role { font-family: var(--cond); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--muted); min-width: 30px; flex: 0 0 auto; }
.pod-roster .rp .flag { flex: 0 0 auto; width: 16px; height: 11px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.pod-roster .rp .nm { font-weight: 500; flex: 0 0 auto; }
/* several titles collapse to one crown and a count so names never truncate */
.pod-roster .rp .crowns { margin-left: 2px; flex: 0 0 auto; }
.pod-roster .rp .crowns .crown:nth-child(n+2) { display: none; }
.pod-roster .rp .crowns[data-n]::after { content: "×" attr(data-n); font-family: var(--cond); font-weight: 700; font-size: 12px; color: var(--gold); margin-left: 2px; }
.pod-roster.r { text-align: right; }
.pod-roster.r .rp { flex-direction: row-reverse; }
.pod-roster.r .rh { text-align: right; }
.pod-roster .rp:hover { color: var(--gold-2); }
/* champion's crown above the name */
.pod-bigcrown { position: relative; display: inline-flex; margin: 6px 0 -2px; cursor: default; }
.pod-bigcrown svg { width: 34px; height: 34px; fill: var(--gold); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); transition: transform .2s, fill .2s; }
.pod-bigcrown:hover svg, .pod-bigcrown:focus-visible svg { fill: var(--gold-2); transform: translateY(-2px); }
.pod-bigcrown[data-tip]:hover::before, .pod-bigcrown[data-tip]:focus-visible::before { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
/* stepped plinth under each card */
.pod-plinth { position: relative; height: 22px; margin: 0 -2px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--tier); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-top-color: var(--tier); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); }
.pod-col.p1 .pod-plinth { height: 48px; font-size: 18px; }
.pod-col.p2 .pod-plinth { height: 34px; }
/* champion: gold frame, rays, bigger type */
.pod.p1 { padding: 30px 18px 20px; border-color: var(--gold); background: linear-gradient(180deg, rgba(200,170,110,.07), transparent 50%), var(--panel); box-shadow: 0 0 0 1px rgba(200,170,110,.2); }
.pod.p1::before, .pod.p1::after { width: 20px; height: 20px; }
.pod.p1 .pod-line { border-color: var(--gold-line); }
.pod.p1 .pod-badge { width: 38px; height: 38px; top: -19px; background: linear-gradient(135deg, #e3c88f, #b8955a); border-color: var(--gold-2); }
.pod.p1 .pod-code { font-size: 30px; color: var(--gold-2, var(--gold)); }
.pod.p1 .pod-prize { font-size: 26px; color: var(--gold); }
/* runner-up: silver; semifinalists: bronze */
.pod.p2 { border-color: #7f8893; background: linear-gradient(180deg, rgba(169,177,189,.06), transparent 50%), var(--panel); }
.pod.p2::before, .pod.p2::after { border-color: #c7ced6; }
.pod.p3 { border-color: #7a5636; background: linear-gradient(180deg, rgba(176,122,74,.07), transparent 50%), var(--panel); }
.pod.p3::before, .pod.p3::after { border-color: #d9a071; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* table rows for the top three groups */
.lb tr.medal-p1 { background: linear-gradient(90deg, rgba(200,170,110,.10), transparent 55%); }
.lb tr.medal-p2 { background: linear-gradient(90deg, rgba(169,177,189,.08), transparent 55%); }
.lb tr.medal-p3 { background: linear-gradient(90deg, rgba(176,122,74,.08), transparent 55%); }
/* tiers: a labelled rule between rounds and a thin accent on the left edge */
.lb tr.tier td { padding: 14px 14px 6px; border-bottom: 0; }
.lb tr.tier td span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lb tr.tier td span::after { content: ""; display: block; width: 36px; height: 1px; background: var(--gold-deep); }
.lb tr.tier-final td span { color: var(--gold); }
.lb tr.team-row td:first-child { box-shadow: inset 3px 0 0 var(--tier, transparent); }
.lb tr.team-row.tier-final { --tier: var(--gold); }
.lb tr.team-row.tier-semi { --tier: #b07a4a; }
.lb tr.team-row.tier-quarter { --tier: var(--line-2); }
.lb tr.team-row.tier-swiss, .lb tr.team-row.tier-playin { --tier: rgba(232,64,87,.45); }
.lb tr.team-row.tbd td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--tier, transparent) 45%, transparent); }
.lb .pct { white-space: nowrap; }
.lb .pct-bar { display: inline-block; width: 56px; height: 4px; margin-right: 10px; vertical-align: 2px; background: var(--line); }
.lb .pct-bar i { display: block; height: 100%; background: var(--gold-deep); transform-origin: left; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: .15s; }
@keyframes grow { from { transform: scaleX(0); } }
.lb tr.medal .pct-bar i { background: var(--gold); }
.lb tr.medal .prize { color: var(--gold); }
.lb tr.medal-p1 .prize { font-size: 18px; }
.lb .place .pc { width: 11px; height: 11px; fill: currentColor; margin-right: 4px; }
.lb .place.p1 { background: linear-gradient(180deg, #e3c88f, #b8955a); border-color: #e3c88f; color: #1a1206; }
.lb .place.p2 { background: linear-gradient(180deg, rgba(199,206,214,.18), rgba(199,206,214,.04)); }
.lb .place.p3 { background: linear-gradient(180deg, rgba(217,160,113,.18), rgba(217,160,113,.04)); }
@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; gap: 28px; }
  .podium .pod-col.p1 { order: -1; }
  .pod-col.p1 .pod-plinth, .pod-col.p2 .pod-plinth { height: 22px; font-size: 13px; }
  .pod.with-roster .pod-body { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .pod.with-roster .pod-body .pod-center { grid-column: 1 / -1; grid-row: 1; }
  .pod-roster .rp { font-size: 13px; }
  .lb .pct-bar { display: none; }
  .lb .odds .was { display: none; }
  .pod-team .logo-wrap.big { width: 120px; height: 100px; --crest: 68px; }
}

/* classes replacing inline styles (CSP forbids style attributes) */
.sprite { position: absolute; }
.th-c { text-align: center; }
.th-r { text-align: right; }
.standings td.rec.muted { color: var(--muted); }
.lb .teamcode.tbd { color: var(--muted-2); }
.noscript-summary { padding: 24px; max-width: 900px; margin: 0 auto; font-family: system-ui, sans-serif; line-height: 1.5; color: var(--text); }
.noscript-summary a { color: var(--gold); }
