/* VCT Live — VALORANT-styled skin of the worlds2026.live design (see SOP.md for
   the layout grammar; CLAUDE.md lists where this skin departs from it).
   Fonts: Bebas Neue (display), Barlow Condensed (numbers, codes, labels), Barlow (body) */

:root {
  --bg: #0f1923;          /* VALORANT navy */
  --bg-2: #141f2b;
  --panel: #16222e;
  --panel-2: #1c2a38;
  --row: #0d161f;
  --line: #243241;
  --line-2: #33465a;
  --accent: #ff4655;      /* VALORANT red: links, actives, eyebrows */
  --accent-2: #ff7a85;    /* hover / winner text */
  --accent-deep: #9e2b36; /* quiet accent: button borders, cut corners on quiet frames */
  --accent-line: rgba(255, 70, 85, 0.4);
  --cream: #ece8e1;       /* VALORANT off-white: headings, codes, strong text */
  --text: #d4d1cb;
  --muted: #94a0ab;
  --muted-2: #6b7884;
  --teal: #3dd6a6;        /* WIN */
  --teal-dim: rgba(61, 214, 166, 0.14);
  --red: #ff4655;         /* LIVE and LOSS share the brand red */
  --purple: #7f6ad8;
  --purple-2: #b7a9ff;
  --red-dim: rgba(255, 70, 85, 0.14);
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { 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 520px at 50% -10%, rgba(255,70,85,.10), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(61,214,166,.04), transparent 60%),
    repeating-linear-gradient(135deg, rgba(236,232,225,.014) 0 1px, transparent 1px 10px),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-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(--accent); }
/* VALORANT's small red bar in front of a section label */
.sec .eyebrow::before, .hero .tag::before, .panel-head .eyebrow::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 8px; background: var(--accent); vertical-align: 3px; }
.label { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- hextech frame ---------- */
.frame { position: relative; background: var(--panel); border: 1px solid var(--line); --cut: 12px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
/* the cut corners get a red edge: a hairline that follows the diagonal */
.frame::before, .frame::after { content: ""; position: absolute; width: calc(var(--cut) * 1.5); height: 1px; background: var(--accent); pointer-events: none; transform-origin: left center; }
.frame::before { left: -1px; top: calc(var(--cut) - 1px); transform: rotate(-45deg); }
.frame::after { right: -1px; bottom: calc(var(--cut) - 1px); transform: rotate(-45deg); transform-origin: right center; }
.frame.quiet::before, .frame.quiet::after { background: var(--accent-deep); }

/* ---------- header ---------- */
/* Desktop: one row, brand | region picker | sections | status (1101–1439 px
   the same row, tighter). 761–1100 px: brand | sections | status, the region
   picker on a second row. Phones: brand and status, the regions, then the
   sections; the header sticks at a negative top (--top-hide, set by app.js)
   so only the sections stay pinned. Nothing in it ever scrolls sideways. */
.top {
  position: sticky; top: calc(-1 * var(--top-hide, 0px)); z-index: 20;
  display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 22px;
  padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); min-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(--accent-line) 30%, var(--accent-line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); white-space: nowrap; }
.brand-mark { flex: 0 0 auto; width: 24px; height: 24px; fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255,70,85,.35)); }
.wordmark { font-family: var(--display); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 20px; }
.wordmark em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 2px; justify-self: start; }
.region-nav { display: flex; align-items: center; padding-left: 22px; border-left: 1px solid var(--line); }
.region-nav .seg { flex-wrap: nowrap; }
.region-nav .seg .btn { height: 30px; padding: 0 11px; font-size: 12px; letter-spacing: .14em; }
.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; white-space: nowrap;
}
.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(--accent); box-shadow: 0 0 12px rgba(255,70,85,.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; }
/* The status fills its track and right-aligns; the freshness text gives way first (full text in its title). */
.status { justify-self: stretch; justify-content: flex-end; min-width: 0; display: flex; align-items: center; gap: 12px; font-family: var(--cond); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.status .updated { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status .spoiler-btn, .status .refresh, .status .live-badge { flex: 0 0 auto; }
.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(255,70,85,.6);} 70% { box-shadow: 0 0 0 8px rgba(255,70,85,0);} 100% { box-shadow: 0 0 0 0 rgba(255,70,85,0);} }
.refresh { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.refresh:hover { color: var(--accent); border-color: var(--accent-deep); }
.refresh.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated.offline { color: var(--red); }
.refresh.offline { color: var(--red); border-color: var(--red); }

/* ---------- main ---------- */
main { flex: 1; width: 100%; min-width: 0; max-width: 1480px; margin: 0 auto; padding: 28px max(28px, env(safe-area-inset-right)) 48px max(28px, env(safe-area-inset-left)); }
.view { animation: fade .3s ease; }
.feature, .result, .sched-row, .sched-tbd, .quick .q, .journey .step, .ev-card, .team-card, .lb tr.team-row { 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), .ev-card:nth-child(2), .team-card: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), .ev-card:nth-child(3), .team-card:nth-child(3) { animation-delay: .12s; }
.result:nth-child(4), .sched-row:nth-child(4), .journey .step:nth-child(4), .ev-card:nth-child(4), .team-card:nth-child(4) { animation-delay: .18s; }
.result:nth-child(5), .sched-row:nth-child(5), .journey .step:nth-child(5), .ev-card:nth-child(5), .team-card:nth-child(5) { animation-delay: .24s; }
.result:nth-child(6), .sched-row:nth-child(n+6), .journey .step:nth-child(n+6), .ev-card:nth-child(n+6), .team-card: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(--accent-deep); transform: rotate(45deg); position: relative; animation: spin 2.4s linear infinite; }
.rune::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--accent); }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 18px max(28px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }
.foot .foot-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot .foot-credit { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; max-width: 340px; text-align: right; }
.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(--accent); }
.foot .credit { font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot .credit a { color: var(--accent); border-bottom: 1px solid var(--accent-deep); padding-bottom: 1px; }
.foot .credit a:hover { color: var(--cream); border-bottom-color: var(--accent); }
.foot .credit-note { font-size: 12px; color: var(--muted-2); }

/* 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: 34px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.sec h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); }
.sec .eyebrow { display: block; margin-bottom: 6px; }
.sec .sub { font-size: 15px; color: var(--muted); max-width: 760px; margin-top: 6px; line-height: 1.45; }
.sec .sub b { color: var(--text); font-weight: 600; }
.sec .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec.mt { margin-top: 30px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--accent-deep); color: var(--accent); font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: all .15s; background: rgba(255,70,85,.04); white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--cream); background: rgba(255,70,85,.1); }
.btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.ghost { border-color: var(--line-2); color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--cream); border-color: var(--muted); }
.btn .ic { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.btn.watch { color: var(--red); background: transparent; border-color: rgba(255,70,85,.6); }
.btn.watch:hover { color: var(--bg); background: var(--red); border-color: var(--red); }
.btn.watch svg { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; margin-right: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); flex-wrap: wrap; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.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(--accent); color: var(--bg); }
.seg .btn .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 2px; }

/* 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; }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side.right { flex-direction: row-reverse; text-align: right; }
.side.winner .teamcode { color: var(--accent-2); }
.side.loser .teamcode { color: var(--muted-2); }
.side.tbd .teamcode { color: var(--muted-2); font-weight: 600; }
.region-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--line-2); font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.region-chip.americas { border-color: rgba(255,70,85,.5); color: var(--accent); }
.region-chip.emea { border-color: rgba(199,206,214,.5); color: #c7ced6; }
.region-chip.pacific { border-color: rgba(60,212,127,.5); color: var(--teal); }
.region-chip.china { border-color: rgba(255,70,85,.5); color: var(--red); }
.region-chip.international { border-color: var(--accent); color: var(--accent-2); background: rgba(255,70,85,.08); }
.region-chip.gc { border-color: rgba(217,160,113,.6); color: #d9a071; }

/* 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(--accent); }
.clock.countdown { color: var(--accent); font-family: var(--cond); font-weight: 700; letter-spacing: .04em; border-bottom-color: var(--accent-deep); }

/* ---------- diagram scaffolding ---------- */
/* Diagrams never scroll sideways: columns that do not fit wrap onto the next line, cut at a column boundary. */
.diagram-scroll { padding-bottom: 10px; }
.diagram-wrap { position: relative; }
.diagram { position: relative; display: flex; flex-wrap: wrap; gap: 36px 44px; align-items: stretch; padding: 10px 8px 16px; width: 100%; }
.diagram .col-pair { display: flex; gap: 44px; align-items: stretch; min-width: 0; }
.diagram .col { display: flex; flex-direction: column; justify-content: space-around; gap: 22px; 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; white-space: nowrap; }
.diagram .col-title b { color: var(--cream); font-weight: 600; }
.diagram .col.notitle { padding-top: 0; }
.diagram .cell { display: flex; flex-direction: column; gap: 14px; }
.diagram .cell-title { font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--accent-line); margin-bottom: 2px; }
.diagram .cell.lower .cell-title { color: var(--muted); border-bottom-color: var(--line-2); }

/* ---------- Swiss stage: record cards (the sister site's layout) ---------- */
.swiss-wrap .key { margin: 2px 0 14px; }
.key .k-rule { color: var(--cream); }
.key .k-rule::before { content: none; }
.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 { width: 252px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.swiss-card .rows { 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; }
.swiss-card .card-head .round { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.swiss-card .card-head .record { font-family: var(--display); font-size: 32px; letter-spacing: .05em; color: var(--cream); line-height: 1; }
.swiss-card .card-head .record span { color: var(--accent); margin: 0 3px; }
.swiss-card .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: minmax(0, 1fr) 58px minmax(0, 1fr); align-items: center; gap: 6px; height: 50px; padding: 6px 8px; background: var(--row); border: 1px solid transparent; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.match-row:hover { border-color: var(--accent-deep); background: var(--panel-2); }
.match-row.empty:not([role="button"]) { cursor: default; }
.match-row.empty:not([role="button"]):hover { border-color: transparent; background: var(--row); }
.match-row.live, .match-row.on-air { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255,70,85,.35), 0 0 16px rgba(255,70,85,.3); background: linear-gradient(90deg, rgba(255,70,85,.12), var(--row) 75%); }
.match-row .side { gap: 8px; min-width: 0; }
.match-row .side .logo-wrap { width: 32px; height: 28px; }
.match-row .who { min-width: 0; }
.match-row .teamcode { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row .crowns { display: none; }
.match-row .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); }
.match-row .vs.score { font-size: 16px; letter-spacing: .12em; color: var(--cream); border-color: var(--line-2); }
.match-row .vs.live { color: var(--red); border-color: rgba(255,70,85,.45); }
.match-row .vs.time { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.match-row .vs.time .clock { border-bottom: 0; }
.sw-out { padding: 7px 8px 9px; background: var(--row); border: 1px solid var(--line); }
.sw-out.adv { border-color: rgba(61,214,166,.3); }
.sw-out.elim { border-color: rgba(255,70,85,.3); }
.sw-out .label { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; text-align: center; margin-bottom: 7px; }
.sw-out.adv .label { color: var(--teal); }
.sw-out.elim .label { color: var(--red); }
.sw-out .teams { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
.sw-out .t { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sw-out .teamcode { font-size: 12px; color: var(--muted); }
.sw-out .logo-wrap { width: 40px; height: 28px; }
.sw-out.elim .logo-wrap img { opacity: .55; filter: grayscale(.7); }
.sw-out .reveal { margin: 8px auto 2px; display: flex; width: max-content; }
.diagram.stacked .swiss-card { width: 100%; max-width: 480px; margin: 0 auto; }

/* ---------- schedule: month calendar ---------- */
.tools .btn .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; vertical-align: -2px; margin-right: 6px; }
.cal { padding: 14px 16px 16px; }
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-bar .cal-title { min-width: 240px; text-align: center; font-family: var(--display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); line-height: 1; }
.cal-bar .nav-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.cal-bar .nav-btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.cal-bar .btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.cal-bar .btn .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; vertical-align: -2px; margin-right: 6px; }
.cal-bar .spacer { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { padding: 8px 8px 6px; font-family: var(--cond); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--accent-line); }
.cal-cell { position: relative; min-width: 0; min-height: 116px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.cal-cell:hover { background: var(--panel-2); }
.cal-cell.other { background: rgba(0,0,0,.2); }
.cal-cell.other .cal-num b { color: var(--muted-2); opacity: .6; }
.cal-cell.out { cursor: default; }
.cal-cell.out:hover { background: rgba(0,0,0,.2); }
.cal-cell.sel { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-cell.today { background: rgba(255,70,85,.08); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.today.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell:focus-visible { outline: 1px solid var(--accent); outline-offset: -3px; }
.cal-num { display: flex; align-items: center; gap: 6px; }
.cal-num b { font-family: var(--cond); font-weight: 700; font-size: 15px; color: var(--muted); }
.cal-cell.has .cal-num b { color: var(--cream); }
.cal-cell.today .cal-num b { color: var(--bg); background: var(--accent); padding: 1px 6px; }
.cal-today-tag { font-family: var(--cond); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cal-evs, .cal-ms { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-ev { padding: 2px 6px; font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(255,70,85,.08); border-left: 2px solid var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.intl { background: rgba(140,100,220,.12); border-left-color: var(--purple-2); }
.cal-ev.end { opacity: .7; }
.cal-ev.stage { background: transparent; border-left-style: dashed; color: var(--muted); }
.cal-ev:hover { color: var(--cream); background: rgba(255,70,85,.16); }
.cal-ev.intl:hover { background: rgba(140,100,220,.22); }
.cal-m { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 1px 2px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.cal-m .t { flex: 0 0 auto; font-family: var(--cond); font-size: 12px; color: var(--muted); }
.cal-m .rg { flex: 0 0 auto; width: 13px; height: 13px; object-fit: contain; align-self: center; opacity: .9; }
.cal-m .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--cond); font-weight: 600; letter-spacing: .04em; color: var(--text); }
.cal-m .s { color: var(--cream); }
.cal-m.past { opacity: .7; }
.cal-m.live .t, .cal-m.live .v { color: var(--red); }
.cal-m:hover .v { color: var(--accent-2); }
.cal-more { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cal-count { display: none; }
.cal-empty { padding: 12px 2px 0; font-size: 13px; color: var(--muted-2); }
.cal-day { margin-top: 22px; }
.cal-evlist { margin-bottom: 10px; }
.cal-evlist .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.cal-evlist .row:last-child { border-bottom: 0; }
.cal-evlist .row:hover { background: var(--panel-2); }
.cal-evlist .nm { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-evlist .row.intl .nm { color: var(--purple-2); }
.cal-evlist .wh { font-family: var(--cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .cal { padding: 10px 8px 12px; }
  .cal-bar { gap: 6px; }
  .cal-bar .cal-title { flex: 1; min-width: 0; font-size: 22px; }
  .cal-bar .spacer { display: none; }
  .cal-bar a.btn { order: 9; flex: 1 1 100%; justify-content: center; }
  .cal-wd { padding: 6px 2px; font-size: 10px; letter-spacing: .06em; text-align: center; }
  .cal-cell { min-height: 54px; padding: 4px 3px; align-items: center; }
  .cal-num b { font-size: 13px; }
  .cal-today-tag, .cal-evs, .cal-ms, .cal-more { display: none; }
  .cal-count { display: flex; align-items: center; gap: 3px; font-family: var(--cond); font-size: 11px; font-weight: 700; color: var(--muted); }
  .cal-count i { display: inline-block; width: 6px; height: 6px; }
  .cal-count i.m { background: var(--accent); }
  .cal-count i.e { background: var(--purple-2); transform: rotate(45deg); }
  .cal-evlist .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cal-evlist .nm { white-space: normal; }
}

/* ---------- bracket match card ---------- */
.bracket-match { width: 244px; cursor: pointer; transition: transform .15s, border-color .15s; }
.bracket-match:hover { border-color: var(--accent-deep); transform: translateY(-1px); }
/* Live, or on air before the start (its broadcast is running): red border and
   an inner red glow that breathes (inside, because the cut-corner frame clips
   anything outside its box), a pulsing dot in the head. */
@keyframes air-glow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,70,85,.45), inset 0 0 14px rgba(255,70,85,.14); } 50% { box-shadow: inset 0 0 0 1px rgba(255,70,85,.8), inset 0 0 26px rgba(255,70,85,.3); } }
.bracket-match.live, .bracket-match.on-air, .bracket-match.live:has(.bm-team.fav), .bracket-match.on-air:has(.bm-team.fav) { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,70,85,.6), inset 0 0 20px rgba(255,70,85,.22); animation: air-glow 2.4s ease-in-out infinite; }
.bracket-match.live .bm-team, .bracket-match.on-air .bm-team { background: linear-gradient(90deg, rgba(255,70,85,.10), var(--row) 70%); }
.air-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; animation: pulse 1.4s infinite; }
.bracket-match .bm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 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(--accent); 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 minmax(0, 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 .teamcode { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-team.winner .bar { background: var(--accent); box-shadow: 0 0 8px rgba(255,70,85,.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(--accent-2); }
.bm-team.winner .teamcode { color: var(--accent-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(255,70,85,.10), rgba(255,70,85,0.02)); }
.final-box .label { font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--accent); margin-bottom: 12px; }
.final-box .logo-wrap { width: 110px; height: 64px; margin: 0 auto 10px; }
.final-box .name { font-family: var(--display); font-size: 21px; letter-spacing: .14em; 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(--accent); margin-bottom: 6px; }

/* ---------- HOME ---------- */
.hero { position: relative; padding: 42px 36px 30px; margin-bottom: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(255,70,85,.08), rgba(11,21,34,.6) 60%), var(--panel); }
.hero { --cut: 20px; }
.hero .glow { position: absolute; inset: auto -10% -60% -10%; height: 220px; background: radial-gradient(closest-side, rgba(255,70,85,.18), transparent); pointer-events: none; }
.hero .inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.hero .mark { width: 92px; height: 92px; fill: var(--accent); filter: drop-shadow(0 6px 24px rgba(255,70,85,.25)); animation: drift .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drift { from { opacity: 0; transform: translateX(-10px); } }
.hero h1 { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1.05; }
.hero .tag { font-family: var(--display); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero .meta { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.hero .meta b { color: var(--text); font-weight: 500; }
.journey { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr) 22px) minmax(0, 1fr); align-items: start; margin-top: 22px; animation: draw .9s ease both; }
.journey .step-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.journey .substep { display: flex; flex-direction: column; align-items: center; }
.journey .substep .sub-arrow { position: relative; width: 12px; height: 22px; }
.journey .substep .sub-arrow .line { position: absolute; left: 50%; top: 5px; bottom: 0; width: 1px; background: linear-gradient(0deg, var(--line-2), var(--accent-deep)); }
.journey .substep .sub-arrow .head { position: absolute; left: 50%; top: 2px; width: 6px; height: 6px; margin-left: -3.5px; border-top: 1px solid var(--accent-deep); border-left: 1px solid var(--accent-deep); transform: rotate(45deg); }
.journey .substep .sub-box { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 8px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.01); min-width: 0; max-width: 100%; }
.journey .substep .sub-box .t { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.journey .substep .sub-box .d { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.journey .substep.active .sub-box { border-color: var(--accent); border-style: solid; }
.journey .substep.active .sub-box .t { color: var(--accent-2); }
.journey .substep.active .sub-arrow .head { border-color: var(--accent); }
.journey .substep.done .sub-box { border-color: var(--accent-deep); }
.journey .jarrow { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; }
.journey .jarrow .line { position: absolute; left: 0; right: 6px; top: 50%; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent-deep)); }
.journey .jarrow .head { width: 6px; height: 6px; margin-left: 4px; border-top: 1px solid var(--accent-deep); border-right: 1px solid var(--accent-deep); transform: rotate(45deg); }
.journey .jarrow.done .line { background: var(--accent-deep); }
.journey .jarrow.done .head { border-color: var(--accent-deep); }
.journey .jarrow.active .line { background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.journey .jarrow.active .head { border-color: var(--accent); }
@keyframes draw { from { clip-path: inset(-24px 100% -24px -24px); } to { clip-path: inset(-24px); } }
.journey .step { position: relative; min-width: 0; min-height: 52px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.015); }
/* Every stage opens the Events page on it: the same hover as the Events tab's timeline. */
.journey .step { cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.journey .step:not(.active):hover { border-color: var(--accent-deep); background: rgba(255,70,85,.05); }
.journey .step.intl:not(.active):hover { border-color: var(--purple-2); background: rgba(140,100,220,.12); }
.journey .step:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.journey .step.done { border-color: var(--accent-deep); }
.journey .step.active { border-color: var(--accent); box-shadow: 0 0 16px rgba(255,70,85,.25), inset 0 0 0 1px rgba(255,70,85,.15); background: rgba(255,70,85,.06); }
.journey .step.intl { border-color: var(--purple); background: rgba(140,100,220,.07); }
.journey .step.intl.active { border-color: var(--purple-2); box-shadow: 0 0 16px rgba(140,100,220,.35), inset 0 0 0 1px rgba(140,100,220,.25); }
.journey .step .t { font-family: var(--display); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.journey .step.active .t, .journey .step.done .t { color: var(--cream); }
.journey .step.intl .t { color: var(--purple-2); }
.journey .step .s { font-family: var(--cond); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.journey .step .s .live { color: var(--red); font-weight: 700; }


.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(--accent-deep); background: var(--panel-2); }
.feature.live { border-color: rgba(255,70,85,.5); }
.feature .side { gap: 14px; }
.feature .side .logo-wrap { width: 64px; height: 50px; }
.feature .side .teamcode { font-size: 24px; }
.feature .side .teamname { font-size: 14px; }
.feature .mid { text-align: center; min-width: 140px; }
.feature .mid .stage { font-family: var(--cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.feature .mid .stage .sub { color: var(--muted); display: block; letter-spacing: .12em; font-size: 12px; margin-top: 2px; }
.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: 86px minmax(0, 1fr) 56px minmax(0, 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: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.result .stage .ev, .result .stage .rd { display: block; }
.result .side .logo-wrap { width: 30px; height: 26px; }
.result .side .teamcode { font-size: 14px; }
.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; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; 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(--accent); }
.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(--accent-deep); background: var(--panel-2); }
.quick .q .eyebrow { margin-bottom: 6px; }
.quick .q .t { font-family: var(--display); font-size: 20px; letter-spacing: .14em; 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(--accent); }
.quick .q .go .ic { width: 12px; height: 12px; fill: none; stroke: currentColor; vertical-align: -1px; }
.quick .q .list { margin-top: 8px; }
.quick .q .list .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.quick .q .list .row:first-child { border-top: 0; }
.quick .q .list .row .k { color: var(--cream); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.quick .q .list .row .k .muted { color: var(--muted); font-weight: 400; }
.quick .q .list .row .k .favmark { width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.quick .q .list .row .v { color: var(--muted); margin-left: auto; text-align: right; }
.quick .q .list .row .v.pos { color: var(--teal); }
.quick .q .list .row .v.neg { color: var(--red); }
.quick .q .list .d { margin-top: 0; }
.quick .q .list .d b { color: var(--cream); }
.quick .q .list .d.small { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.quick .q .slotbar { display: flex; gap: 3px; margin-top: 10px; }
.quick .q .slotbar i { flex: 1; height: 6px; background: var(--line-2); }
.quick .q .slotbar i.on { background: var(--accent); box-shadow: 0 0 6px rgba(255,70,85,.5); }
.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); }
.also-live { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin: -14px 0 26px; }
.also-live .eyebrow { color: var(--red); margin-right: 6px; }
.also-live .btn { min-height: 28px; height: auto; padding-top: 4px; padding-bottom: 4px; font-size: 12px; white-space: normal; text-align: left; line-height: 1.2; }

/* ---------- SCHEDULE ---------- */
.day { margin-bottom: 22px; }
.day-head { display: flex; align-items: baseline; gap: 12px; padding: 6px 0 8px; border-bottom: 1px solid var(--accent-line); margin-bottom: 6px; }
.day-head .d { font-family: var(--display); font-size: 20px; letter-spacing: .14em; 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: var(--bg); background: var(--accent); padding: 2px 8px; margin-left: auto; }
.sched-row { display: grid; grid-template-columns: 96px 190px minmax(0, 1fr) 76px minmax(0, 1fr) 60px 116px; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
/* Desktop: time, stage and format are cells of the row, in this order. */
.sched-row .sr-meta { display: contents; }
.sched-row .time { order: 1; }
.sched-row .stage { order: 2; }
.sched-row .side.left { order: 3; }
.sched-row .sc { order: 4; }
.sched-row .side.right { order: 5; }
.sched-row .bo { order: 6; }
.sched-row .st { order: 7; }
.sched-row:hover { background: var(--panel-2); }
.sched-row.past { opacity: .78; }
.sched-row.live, .sched-row.on-air, .sched-row.live:has(.side.fav), .sched-row.on-air:has(.side.fav) { background: linear-gradient(90deg, rgba(255,70,85,.14), rgba(255,70,85,.03) 60%); box-shadow: inset 3px 0 0 var(--red); }
.sched-row .st .live { display: inline-flex; align-items: center; }
.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: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; min-width: 0; }
.sched-row .stage .ev { color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-row .stage .rd { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); font-size: 12px; }
.sched-row .side { gap: 10px; }
.sched-row .side .logo-wrap { width: 36px; height: 30px; }
.sched-row .side .teamcode { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; min-width: 0; }
.sched-row .st .bell { margin-left: 0; }
.sched-row .st .live { color: var(--red); font-weight: 700; }
.sched-row .st .final { color: var(--muted-2); }
.sched-row .st .btn.watch { height: 26px; padding: 0 10px; font-size: 12px; }
.vod-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--accent-deep); color: var(--accent); font-family: var(--cond); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.vod-chip:hover { background: var(--accent); color: #fff; }
.vod-chip svg { width: 10px; height: 10px; fill: currentColor; }

/* ---------- EVENTS ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 26px; }
.ev-card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.ev-card:hover { border-color: var(--accent-deep); background: var(--panel-2); }
.ev-card.live { border-color: rgba(255,70,85,.5); }
.ev-card .ev-logo { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.ev-card .ev-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.ev-card .ev-logo .unknown { width: 24px; height: 24px; }
.ev-card .ev-body { min-width: 0; }
.ev-card .ev-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ev-card .ev-name { font-family: var(--display); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); line-height: 1.25; }
.ev-card .ev-meta { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.ev-card .ev-meta b { color: var(--text); font-weight: 500; }
.ev-card .ev-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-family: var(--cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ev-card .ev-line .live { color: var(--red); font-weight: 700; }
.ev-card .ev-line .done { color: var(--teal); }
.ev-card .ev-line .prog { color: var(--accent); }
/* status chip, and the card frame that goes with it */
.ev-status { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.ev-status.live { color: var(--red); border-color: rgba(255,70,85,.6); background: var(--red-dim); }
.ev-status.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.ev-status.ongoing { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.ev-status.upcoming { color: var(--cream); border-color: var(--accent-deep); }
.ev-status.completed { color: var(--teal); border-color: rgba(60,212,127,.45); }
.ev-status.announced { color: var(--muted-2); border-style: dashed; }
.ev-card.st-live { border-color: rgba(255,70,85,.55); box-shadow: inset 0 0 0 1px rgba(255,70,85,.15), 0 0 24px rgba(255,70,85,.08); background: linear-gradient(180deg, rgba(255,70,85,.06), transparent 60%), var(--panel); }
.ev-card.st-ongoing { border-color: var(--accent-deep); box-shadow: 0 0 0 1px rgba(255,70,85,.12); background: linear-gradient(180deg, rgba(255,70,85,.08), transparent 60%), var(--panel); }
.ev-card.st-announced { border-style: dashed; background: transparent; }
.ev-card.st-announced .ev-name { color: var(--muted); }
.ev-card.st-announced .ev-logo { opacity: .55; }
.ev-card.st-announced::before, .ev-card.st-announced::after { opacity: .5; }
.ev-card.st-completed { opacity: .8; }
.ev-card.st-completed .ev-name { color: var(--text); }
.ev-card.st-completed .ev-logo img { filter: grayscale(.4) drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.ev-card .ev-bar { display: inline-block; width: 64px; height: 4px; margin-right: 10px; vertical-align: 1px; background: var(--line); }
.ev-card .ev-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
.ev-card.st-live .ev-bar i { background: var(--red); }
@keyframes grow { from { transform: scaleX(0); } }
.ev-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 22px; }
.ev-head .ev-logo { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.ev-head .ev-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.ev-head h1 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.ev-head .meta { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ev-head .meta b { color: var(--text); font-weight: 500; }
.ev-head .meta a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }
.ev-head .meta a:hover { color: var(--accent-2); text-decoration-color: var(--accent); }
.ev-head .meta .live { color: var(--red); font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ev-head .links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ev-head .links .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.region-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 22px; }
.region-bar .seg .btn { height: 32px; }
.region-bar .rb-note { font-size: 13px; color: var(--muted-2); }
.path { padding: 4px 0; }
.path-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.path-row:last-child { border-bottom: 0; }
.path-row .when { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--text); }
.path-row .what { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.path-row .n { flex: 0 0 auto; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); color: var(--muted); }
.path-row.active .n { border-color: var(--accent); color: var(--accent); }
.path-row.done .n { border-color: var(--accent-deep); color: var(--accent-deep); }
.path-row .t { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--cream); }
.path-row .d { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.path-row .st { font-family: var(--cond); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); text-align: right; }
.path-row .st .live { color: var(--accent); font-weight: 700; }
.outcomes { padding: 4px 0; }
.outcome-row { display: grid; grid-template-columns: 200px 24px 1fr; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.outcome-row:last-child { border-bottom: 0; }
.outcome-row .lbl { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--cream); }
.outcome-row .arrow .ic { width: 16px; height: 16px; fill: none; stroke: var(--teal); }
.outcome-row .to a { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.outcome-row .to .d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.outcome-row .to .muted { color: var(--muted-2); }
.outcome-row .lbl .ot { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-top: 2px; }
.outcome-row .lbl .ot.muted { color: var(--muted-2); font-weight: 600; text-transform: none; }
.fmt-note { margin: -6px 0 22px; font-size: 14px; color: var(--muted); max-width: 900px; }
.fmt-note b { color: var(--cream); font-weight: 600; }
.fmt-note .assumed { color: var(--accent); }
.sec-label { margin: 6px 0 10px; }
.open-note { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 760px; line-height: 1.45; }
.sec-label .q { color: var(--teal); letter-spacing: .1em; }
.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 .muted { color: var(--muted-2); font-weight: 600; font-size: 14px; }
.lb.slots td { text-align: left; }
.lb.slots td.th-c { text-align: center; }
.lb.slots .rec { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--cream); }
.lb.slots .rec.muted { color: var(--muted-2); font-weight: 600; }
.lb.slots th { white-space: nowrap; }
.lb.slots .how { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; line-height: 1.35; color: var(--muted-2); }
.lb.slots .how-k { flex: 0 0 auto; font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); padding: 2px 7px; border: 1px solid var(--line); }
.lb.slots tr.tbd .how-k { color: var(--muted-2); border-style: dashed; }
.lb.slots .how-t { flex: 1 1 260px; }
.lb.slots .how a { flex: 0 0 auto; font-family: var(--cond); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.lb.slots .how a .ic { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }
.lb.slots tr.tbd .teamname { color: var(--muted-2); }
.lb .teamcode.tbd { color: var(--muted-2); letter-spacing: .1em; }
.ev-stage { margin-bottom: 30px; }
.ev-stage > .sec { margin-bottom: 12px; }
.group-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.group-table th { text-align: left; font-family: var(--cond); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--accent-line); font-weight: 600; }
.group-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.group-table tr:last-child td { border-bottom: 0; }
.group-table .team-cell { display: flex; align-items: center; gap: 10px; }
.group-table .team-cell .logo-wrap { width: 34px; height: 26px; }
.group-table .rec { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--cream); text-align: center; }
.group-table .diff { font-family: var(--cond); font-size: 14px; color: var(--muted); text-align: center; }
.group-table .diff.pos { color: var(--teal); }
.group-table .diff.neg { color: var(--red); }
.group-table .place { display: inline-flex; width: 26px; height: 22px; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); color: var(--muted); }
.group-wrap { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.group-wrap .frame { padding: 0; }
.match-list { display: flex; flex-direction: column; }
.match-list .sched-row { grid-template-columns: 96px minmax(0, 1fr) 76px minmax(0, 1fr) 60px 116px; }
.match-list .sched-row .stage { display: none; }
/* Player modal: time, teams, score, state (no event column). */
.p-matches .sched-row .stage, .p-matches .sched-row .bo, .p-matches .sched-row .side .teamname { display: none; }
@media (min-width: 761px) { .p-matches .sched-row { grid-template-columns: 70px minmax(0, 1fr) 50px minmax(0, 1fr) 96px; padding: 7px 4px; } }

/* ---------- TEAMS ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 26px; }
.team-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; align-items: center; min-width: 0; }
.team-card:hover { border-color: var(--accent-deep); background: var(--panel-2); }
.team-card .logo-wrap { width: 56px; height: 48px; }
.team-card .teamcode { font-size: 18px; }
.team-card .teamname { font-size: 13px; white-space: normal; }
.team-card .rec { font-family: var(--cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-top: 5px; }
.team-card .rec b { color: var(--cream); font-weight: 700; }
.team-card.fav { border-color: var(--accent-deep); box-shadow: inset 3px 0 0 var(--accent); }
.team-card.fav .teamcode { color: var(--accent); }
.team-card .partner { font-family: var(--cond); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.t-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 22px; }
.t-head .logo-wrap { width: 110px; height: 90px; }
.t-head h1 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.t-head .meta { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.t-head .meta b { color: var(--text); font-weight: 500; }
.roster-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.member { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; max-width: 100%; min-width: 0; 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); min-width: 0; overflow-wrap: anywhere; }
.member .flag { flex: 0 0 auto; width: 18px; height: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.member .cc { font-family: var(--cond); font-size: 11px; letter-spacing: .12em; color: var(--muted-2); }
.note { font-size: 13px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.note a { color: var(--accent); }
.note a svg, .note svg { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }

/* ---------- modal ---------- */
/* The overlay is the visible viewport (app.js keeps --vv-h / --vv-top in step
   with it, so an open keyboard shrinks it); the card never grows past it and
   scrolls inside (.modal-scroll, one scroll owner per dialog). The cut-corner
   frame stays still; close and the feedback form's Send stay in view. */
.modal { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100%); bottom: auto; z-index: 50; display: flex; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overflow: hidden; 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; display: flex; flex-direction: column; width: min(720px, 100%); max-height: 100%; margin: auto; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.7); padding: 0; animation: fade .2s ease; }
.modal-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px; scrollbar-width: thin; }
/* Locking the page must not shift it: the scrollbar's gutter stays reserved. */
html { scrollbar-gutter: stable; }
html.modal-open, html.modal-open body { overflow: hidden; }
.modal-card { --cut: 16px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.modal-card::before, .modal-card::after { content: ""; position: absolute; width: calc(var(--cut) * 1.5); height: 1px; background: var(--accent); pointer-events: none; }
.modal-card::before { left: -1px; top: calc(var(--cut) - 1px); transform: rotate(-45deg); transform-origin: left center; }
.modal-card::after { right: -1px; bottom: calc(var(--cut) - 1px); transform: rotate(-45deg); transform-origin: right center; }
.modal-card:focus { outline: none; }
.modal-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 32px; height: 32px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); display: grid; place-items: center; font-size: 14px; }
.modal-close:hover { color: var(--cream); border-color: var(--accent-deep); }
.m-stage { text-align: center; margin-bottom: 14px; padding: 0 40px; overflow-wrap: anywhere; }
.m-stage .r { color: var(--muted); }
.m-stage .ev-link { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
.m-stage .ev-link:hover { color: var(--accent-2); text-decoration-color: var(--accent); }
.m-stage .ev-link .ic { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }
.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(--accent-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-score.live { color: var(--red); }
.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; }
.m-meta .muted { color: var(--muted-2); }
.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 .flag { flex: 0 0 auto; width: 14px; height: 10px; object-fit: cover; }
.maps { display: flex; flex-direction: column; gap: 6px; }
.map { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 8px; background: var(--row); border: 1px solid var(--line); padding: 8px 10px; }
.map.live { border-color: rgba(255,70,85,.45); }
.map .picks { display: flex; gap: 4px; }
.map .picks.right { justify-content: flex-end; }
.map .picks img { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--panel-2); }
.map .ms { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--muted-2); }
.map .ms.left { text-align: left; }
.map .ms.right { text-align: right; }
.map.w1 .ms.left, .map.w2 .ms.right { color: var(--accent-2); }
.map.live .ms { color: var(--red); }
.map .mid { text-align: center; }
.map .mid b { display: block; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.map .mid .len { font-family: var(--cond); font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.map .mid .len .pk { color: var(--accent); }
.map .mid .len .lv { color: var(--red); font-weight: 700; }
.map.w1 .picks.right img, .map.w2 .picks.left img { opacity: .4; filter: grayscale(.6); }
.map.w1 .picks.left img, .map.w2 .picks.right img { border-color: var(--accent); }
.vod-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; height: 22px; padding: 0 9px; border: 1px solid var(--accent-deep); color: var(--accent); font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: all .15s; }
.vod-btn:hover { background: var(--accent); color: var(--bg); }
.vod-btn svg { width: 9px; height: 9px; fill: currentColor; }
.m-note { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.m-note b { color: var(--accent); font-weight: 600; }
.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(--accent); font-weight: 600; }
.m-foot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }
.m-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-links .btn { min-height: 28px; height: auto; padding: 4px 10px; font-size: 13px; white-space: normal; line-height: 1.2; }
.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(255,70,85,.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); }
.m-live { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

[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(--accent-deep); z-index: 30; pointer-events: none; font-family: var(--body); }
.error-banner { background: var(--red-dim); border: 1px solid rgba(255,70,85,.4); color: #ffb3bb; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- live stage (Overview, while a match is live) ---------- */
/* The player takes the width; the score panel beside it stays narrow, so the
   16:9 broadcast (and the card) is as large as the page allows. */
.live-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 320px); gap: 0; margin-bottom: 26px; border-color: rgba(255,70,85,.45); background: var(--panel); overflow: hidden; align-items: start; }
.live-stage .player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; min-height: 220px; }
.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: 14px 14px; border-left: 1px solid var(--line); min-width: 0; }
/* The player column: platform bar, player, and (before the match) the pre-show strip. */
.live-main { display: flex; flex-direction: column; min-width: 0; }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; background: var(--row); border-bottom: 1px solid var(--line); }
.live-bar .seg { border-color: var(--line-2); }
.live-bar .seg .btn { height: 28px; padding: 0 12px; font-size: 12px; letter-spacing: .14em; }
.live-bar .seg .btn:disabled { color: var(--muted-2); opacity: .6; cursor: not-allowed; background: transparent; }
.live-bar .lang-select { height: 28px; padding: 0 8px; max-width: 100%; font-family: var(--cond); font-size: 13px; letter-spacing: .04em; color: var(--cream); background: var(--panel-2); border: 1px solid var(--line-2); }
.live-bar .lang-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.live-bar .lang-one { font-family: var(--cond); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.live-bar .theater-btn { margin-left: auto; height: 28px; padding: 0 10px; font-size: 12px; }
.live-bar .theater-btn .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.live-bar .ext { height: 28px; padding: 0 10px; font-size: 12px; }
/* Theater mode: the stage covers the window (over the header), the broadcast
   takes all of it but the score panel on the right; the page behind stays put. */
html.theater, html.theater body { overflow: hidden; }
.live-stage.theater { position: fixed; inset: 0; z-index: 40; margin: 0; height: 100vh; height: 100dvh; align-items: stretch; border: 0; clip-path: none; background: #000; }
.live-stage.theater::before, .live-stage.theater::after { display: none; }
.live-stage.theater .live-main { height: 100%; max-width: none; }
.live-stage.theater .player { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
.live-stage.theater .live-info { height: 100%; overflow-y: auto; background: var(--panel); }
@media (max-width: 900px) {
  .live-stage.theater { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .live-stage.theater .live-main { height: auto; }
  .live-stage.theater .player { flex: none; aspect-ratio: 16 / 9; }
  .live-stage.theater.pre .live-main { height: 100%; }
}
/* Before the match: one column, the player centred, the countdown under it. */
.live-stage.pre { grid-template-columns: minmax(0, 1fr); }
.live-stage.pre .live-main { width: 100%; max-width: 1080px; margin: 0 auto; }
.pre-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 20px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.pre-teams { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pre-teams .side .logo-wrap { width: 34px; height: 28px; }
.pre-teams .side .teamcode { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.pre-vs { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.pre-when { text-align: center; }
.pre-label { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.pre-label .dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--red); vertical-align: 1px; animation: pulse 1.4s infinite; }
.pre-strip .sc-count { display: flex; justify-content: center; align-items: flex-start; gap: 4px; }
.pre-strip .sc-count .cell { min-width: 36px; text-align: center; }
.pre-strip .sc-count .n { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: .04em; color: var(--accent-2); line-height: 1; font-variant-numeric: tabular-nums; }
.pre-strip .sc-count .n.tick { animation: tick .45s ease; }
.pre-strip .sc-count .l { font-family: var(--cond); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.pre-strip .sc-count .sep { font-family: var(--cond); font-weight: 800; font-size: 20px; color: var(--accent-deep); line-height: 1.1; }
.pre-strip .sc-count .sc-soon { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.pre-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; text-align: right; }
.pre-ev { font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pre-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pre-act .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.pre-act .bell.wide { margin-left: 0; }
/* The scroll box clips at its edge: padding (cancelled by the margin) gives the live dot's pulse room. */
.live-info .lbody { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 10px; margin: -10px; }
.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(--accent); text-align: right; }
.live-info .lteams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.live-info .lteams .side, .live-info .lteams .side.right { flex-direction: column; text-align: center; gap: 4px; }
.live-info .lteams .side .logo-wrap { width: 52px; height: 40px; }
.live-info .lteams .side .teamcode { font-size: 20px; overflow-wrap: anywhere; }
.live-info .lteams .side .teamname { white-space: normal; overflow: visible; line-height: 1.2; }
.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; }
.lstats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.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; }
.lstats-head .lv { color: var(--red); font-weight: 700; }
.lrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 0; font-family: var(--cond); font-size: 16px; font-weight: 700; color: var(--muted); }
.lrow .k { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); padding: 0 14px; text-align: center; }
.lrow .a { text-align: right; }
.lrow .lead { color: var(--cream); }
.lrow.cur { font-size: 22px; }
.lrow.cur .a.lead, .lrow.cur .b.lead { color: var(--red); }
.lrow.next { opacity: .55; }
.live-info .llinks { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 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(--accent-deep); background: linear-gradient(180deg, rgba(255,70,85,.10), rgba(11,21,34,0) 55%), var(--panel); box-shadow: 0 0 0 1px rgba(255,70,85,.12), 0 18px 50px rgba(0,0,0,.45); transition: border-color .2s, box-shadow .2s, transform .2s; --c1: 200,170,110; --c2: 200,170,110; }
.showcase { --cut: 18px; }
.showcase:hover { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,70,85,.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 .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(--accent) 35%, var(--accent) 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(--accent); }
.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: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.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: 400; font-size: 57px; letter-spacing: .05em; color: var(--cream); line-height: 1; margin: 12px 0 10px; text-shadow: 0 0 18px rgba(255,70,85,.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(--accent)); }
.showcase .sc-vs::after { background: linear-gradient(90deg, var(--accent), 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(--accent-2); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255,70,85,.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(--accent-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(--accent-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(--accent); border: 1px solid var(--accent-deep); transition: background .15s, color .15s; }
.showcase:hover .sc-cta { background: var(--accent); color: var(--bg); }
.showcase .sc-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sc-actions { display: flex; flex-wrap: wrap; 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; }

/* Tablet widths: a smaller showcase; at 900 px and below each team's logo sits over its name. */
@media (max-width: 1100px) {
  .showcase { gap: 18px; padding: 30px 26px 26px; }
  .showcase .sc-side { gap: 16px; }
  .showcase .sc-side .logo-wrap { width: 110px; height: 86px; }
  .showcase .sc-side .teamcode { font-size: 38px; }
  .showcase .sc-mid { min-width: 220px; }
}
@media (max-width: 900px) {
  .showcase .sc-side.left, .showcase .sc-side.right { flex-direction: column; justify-content: flex-start; text-align: center; gap: 10px; }
  .showcase .sc-side .teamcode { overflow-wrap: anywhere; }
  .showcase .sc-mid { min-width: 200px; }
}

/* ---------- 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(--accent); border-color: var(--accent-deep); }
.spoiler-btn.on { color: var(--accent); border-color: var(--accent); background: rgba(255,70,85,.1); }
.reveal { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--accent-deep); background: rgba(255,70,85,.07); color: var(--accent); 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(--accent); color: var(--bg); }
.reveal.sm { height: 22px; padding: 0 7px; font-size: 10px; }
.sc.hid, .big.hid { border: 0; background: transparent; display: flex; justify-content: center; }
.m-score .reveal { display: inline-flex; margin-top: 8px; }
.spoiled { position: relative; }
.spoiled > :not(.spoiler-cover) { filter: blur(7px); pointer-events: none; user-select: none; max-height: 90vh; overflow: hidden; }
.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(--accent); color: var(--bg); }
.spoiler-cover.tall { align-items: flex-start; padding-top: 120px; }
.spoiler-cover.tall .reveal { position: sticky; top: 45vh; }

/* ---------- 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(--accent); border-color: var(--accent-deep); }
.bell.on { color: var(--accent); border-color: var(--accent); background: rgba(255,70,85,.12); }
.bell.on svg { fill: var(--accent); stroke: var(--accent); }
.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"; font-size: 12px; }
.bell.on span { font-size: 0; }
.toast-wrap { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); 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(--accent-deep); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: fade .2s ease-out; }
.toast b { color: var(--accent); font-weight: 600; }
.toast.hot { border-color: var(--accent); cursor: pointer; }

/* ---------- favourite team ---------- */
.favmark { width: 12px; height: 12px; fill: var(--accent); margin-left: 6px; vertical-align: -1px; filter: drop-shadow(0 0 4px rgba(255,70,85,.7)); }
.side.fav .teamcode, .bm-team.fav .teamcode, .team-cell.fav .teamcode, .m-team.fav .teamcode { color: var(--accent); }
.sched-row:has(.side.fav), .feature:has(.side.fav), .result:has(.side.fav) { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, rgba(255,70,85,.10), transparent 40%); }
.bracket-match:has(.bm-team.fav) { border-color: var(--accent-deep); box-shadow: inset 0 0 0 1px rgba(255,70,85,.25), inset 0 0 18px rgba(255,70,85,.12); }
.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(--accent); border-color: var(--accent-deep); }
.fav-btn.on { color: var(--accent); border-color: var(--accent-deep); }
.fav-btn.on svg { fill: var(--accent); stroke: var(--accent); }
.fav-btn.compact { margin: 0; padding: 0; width: 28px; height: 28px; justify-content: center; border-color: transparent; }
.fav-btn.compact svg { width: 14px; height: 14px; }
.fav-btn.compact:hover { border-color: var(--accent-deep); }
.team-card { position: relative; }
.team-card .fav-btn.compact { position: absolute; top: 8px; right: 8px; }
/* Room for the star so a long name never runs under it. */
.team-card { padding-right: 40px; }
.team-card.small { padding-right: 30px; }
.team-card .teamcode, .team-card .teamname { overflow-wrap: anywhere; }
.m-team .fav-btn { margin: 6px 0 0; }
.fav-strip { display: flex; flex-direction: column; gap: 0; padding: 0; margin-bottom: 26px; }
.fav-strip .fs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; }
.fav-strip .fs-tools { display: flex; align-items: center; gap: 8px; }
.fav-strip .fs-list { display: flex; flex-direction: column; }
.fav-strip .fs-row { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; align-items: center; gap: 22px; padding: 10px 16px; border-top: 1px solid var(--line); }
.fav-strip .fs-team { cursor: pointer; }
.fav-strip .fs-team:hover .teamname { color: var(--cream); }
.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(--accent); }
.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(--accent); outline-offset: 1px; }

/* ---------- feedback ---------- */
.fb-card { width: min(520px, 100%); }
.fb-card .modal-scroll { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.fb-card h2 { margin: 0; padding-right: 36px; font-family: var(--display); font-size: 26px; letter-spacing: .05em; 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 16px/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(--accent); outline-offset: 1px; border-color: var(--accent-deep); }
.fb-field input { max-width: 260px; }
.fb-field textarea { min-height: 96px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 24px 20px; border-top: 1px solid var(--line); }
.fb-status { font-size: 14px; color: var(--muted); }
.fb-status.ok { color: var(--teal); }
.fb-status.err { color: var(--red); }

/* ---------- accessibility, misc ---------- */
[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(--accent); outline-offset: 2px; }
/* A cut-corner frame clips everything outside its own box, its outline included: draw the ring inside. */
.frame:focus-visible, .frame[role="button"]:focus-visible, .seg .btn:focus-visible, .lb tr.team-row:focus-visible, .sched-row:focus-visible, .result:focus-visible, .dg-row:focus-visible, .rm-row:focus-visible, .road-row:focus-visible, .match-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.sprite { position: absolute; }
.th-c { text-align: center; }
.th-r { text-align: right; }
.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(--accent); }
.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(--accent-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 .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; min-width: 0; overflow-wrap: anywhere; }
.lb .status { color: var(--muted); font-size: 14px; }

/* ---------- 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-pair { flex-direction: column; gap: 22px; }
.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(--accent-line); margin-bottom: 2px; white-space: normal; }
.diagram.stacked .col-title:empty { display: none; }
.diagram.stacked .bracket-match, .diagram.stacked .final-box { width: 100%; max-width: 480px; margin: 0 auto; }

/* Header, 1101–1439 px: the same row, tighter; the spoiler toggle keeps its icon and its accessible name. */
@media (max-width: 1439px) {
  .top { gap: 14px; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .region-nav { padding-left: 14px; }
  .region-nav .seg .btn { padding: 0 8px; font-size: 11px; letter-spacing: .1em; }
  .tab { padding: 0 11px; font-size: 14px; }
  .tab::after { left: 9px; right: 9px; }
  .status { gap: 8px; }
  .spoiler-btn { padding: 0 8px; }
  .spoiler-btn span { display: none; }
}
/* 761–1100 px: brand | sections | status, the region picker on its own row. */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .top { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; }
  .brand { grid-row: 1; grid-column: 1; }
  .nav { grid-row: 1; grid-column: 2; flex-wrap: wrap; }
  .status { grid-row: 1; grid-column: 3; }
  .status .updated { display: none; }
  .region-nav { grid-row: 2; grid-column: 1 / -1; padding: 0 0 10px; border-left: 0; }
  .region-nav .seg { flex-wrap: wrap; }
  .tab { height: 56px; }
  .tab.active::after { bottom: 0; }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .journey .jarrow { display: none; }
  .group-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  main { padding: 16px max(12px, env(safe-area-inset-right)) 36px max(12px, env(safe-area-inset-left)); }
  .hero { padding: 24px 18px 20px; }
  .hero .inner { grid-template-columns: 1fr; gap: 14px; }
  .hero .mark { width: 60px; height: 60px; }
  .hero h1 { font-size: 22px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: 1fr; }
  /* One column: the 16:9 player at full width (no fixed minimum height), the score and links under it. */
  .live-stage { grid-template-columns: minmax(0, 1fr); }
  .live-stage .player { min-height: 0; }
  .live-info { border-left: 0; border-top: 1px solid var(--line); padding: 14px; min-width: 0; }
  .fav-strip .fs-row { grid-template-columns: 1fr; gap: 8px; }
  .fav-select { max-width: none; width: 100%; }
  .ev-head, .t-head { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 18px 16px; }
  .ev-head .ev-logo, .t-head .logo-wrap { margin: 0 auto; }
  .ev-head .links { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .sec h1 { font-size: 20px; }
  .sec .sub { font-size: 14px; }
  .diagram-scroll { overflow: visible; padding-bottom: 0; }
  /* Feature cards: opponents side by side, the stage, score and clock between them, allowed to wrap. */
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 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: 0; max-width: 150px; }
  .feature .mid .big { font-size: 24px; }
  .feature .mid .when { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
  .feature .mid .when .bell { margin-left: 0; }
  /* Latest results: the event line above the two teams. */
  .result { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "stage stage stage" "t1 sc t2"; gap: 4px 8px; padding: 8px 10px; }
  .result .stage { grid-area: stage; overflow: visible; }
  .result .stage .ev, .result .stage .rd { display: inline; }
  .result .stage .rd::before { content: " · "; }
  .result .side.left { grid-area: t1; }
  .result .sc { grid-area: sc; }
  .result .side.right { grid-area: t2; }
  /* Match rows: a meta line (time, event, round, format; state and actions on
     the right) above the two teams and the score. Nothing is dropped. */
  .sched-row, .match-list .sched-row, .p-matches .sched-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "meta meta st" "t1 sc t2"; gap: 6px 8px; padding: 8px 10px; }
  .sched-row .sr-meta { grid-area: meta; display: block; min-width: 0; align-self: center; line-height: 1.35; }
  .sched-row .sr-meta > div { display: inline; }
  .sched-row .sr-meta .stage:not(:empty)::before, .sched-row .sr-meta .bo:not(:empty)::before { content: " · "; color: var(--muted-2); }
  .sched-row .side.left { grid-area: t1; }
  .sched-row .sc { grid-area: sc; min-width: 44px; }
  .sched-row .side.right { grid-area: t2; }
  .sched-row .st { grid-area: st; align-self: start; }
  .sched-row .stage { min-width: 0; }
  .sched-row .stage .ev, .sched-row .stage .rd { display: inline; white-space: normal; font-size: 12px; }
  .sched-row .stage .ev + .rd::before { content: " · "; }
  .sched-row .bo { font-size: 12px; }
  .match-list .sched-row .sr-meta .stage { display: none; }
  .sched-tbd { grid-template-columns: 1fr; gap: 4px; padding: 10px 8px; }
  .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; }
  /* A team without a short code shows its full name: two lines at most, the full name in the row's title. */
  .sched-row .side .teamcode, .result .side .teamcode, .feature .side .teamcode { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.1; }
  .day-head .d { font-size: 14px; }
  .foot { font-size: 12px; padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); flex-direction: column; align-items: stretch; gap: 12px; }
  .foot .foot-credit { align-items: flex-start; max-width: none; text-align: left; }
  .m-team .logo-wrap { width: 64px; height: 48px; }
  .m-team .teamcode { font-size: 18px; overflow-wrap: anywhere; }
  .m-team .roster > span { font-size: 11px; padding: 2px 5px; }
  .m-score { font-size: 34px; }
  /* Map rows: score, map, score on one line; each side's agents underneath. */
  .map { grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); grid-template-areas: "ms1 mid mid ms2" "p1 p1 p2 p2"; gap: 6px 8px; padding: 8px; }
  .map > div:first-child, .map > div:last-child { display: contents; }
  .map .ms.left { grid-area: ms1; }
  .map .ms.right { grid-area: ms2; }
  .map .mid { grid-area: mid; min-width: 0; }
  .map .picks.left { grid-area: p1; flex-wrap: wrap; }
  .map .picks.right { grid-area: p2; flex-wrap: wrap; }
  .map .picks { gap: 3px; }
  .map .picks img { width: 24px; height: 24px; }
  .map .ms { font-size: 20px; }
  .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%; }
  .ev-grid, .team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- touch screens: 44 px targets ---------- */
/* Icons stay small inside larger buttons; content-bearing buttons grow
   with their text instead of clipping it. Mouse and trackpad sizes are
   unchanged. */
@media (pointer: coarse) {
  .btn, .seg .btn, .region-nav .seg .btn, .ev-head .links .btn, .m-links .btn, .m-share .btn, .also-live .btn, .roster-moves .panel-head .seg .btn, .sched-row .st .btn.watch, .digest .dg-act .btn.watch { min-height: 44px; height: auto; }
  .refresh { width: 44px; height: 44px; }
  .spoiler-btn { height: 44px; min-width: 44px; justify-content: center; }
  .modal-close { width: 44px; height: 44px; top: 6px; right: 6px; }
  .m-stage { padding: 0 48px; }
  .bell, .bell.sm { width: 44px; height: 44px; }
  .bell.wide, .sc-actions .bell { width: auto; height: 44px; }
  .fav-btn { min-height: 44px; }
  .fav-btn.compact, .team-card.small .fav-btn.compact { width: 44px; height: 44px; top: 2px; right: 2px; }
  .team-card, .team-card.small { padding-right: 48px; }
  .reveal, .reveal.sm { min-height: 44px; padding: 0 12px; }
  .vod-chip, .vod-btn { min-height: 44px; padding: 0 12px; }
  .cal-link { display: inline-flex; min-height: 44px; }
  .tz-select, .fav-select, .live-bar .lang-select { height: 44px; }
  .live-bar .seg .btn, .live-bar .ext, .live-bar .theater-btn, .pre-act .btn { min-height: 44px; }
  .cal-bar .nav-btn { width: 44px; height: 44px; }
  .ev-tabs .seg .btn { min-height: 44px; }
  .mf-chip { min-height: 44px; justify-content: center; }
  .roster > span[role="button"], .roster-grid .member[role="button"] { min-height: 36px; }
  .team-card .players span[role="button"] { display: inline-block; padding: 6px 2px; }
}

@media (max-width: 760px) {
  .path-row { grid-template-columns: 1fr; gap: 6px; }
  .path-row .st { text-align: left; }
  .outcome-row { grid-template-columns: 1fr; gap: 4px; }
  .outcome-row .arrow { display: none; }
  .region-bar .rb-note { display: none; }
}

.empty-note { margin-top: 18px; }

/* Event showcase: the match showcase's frame, counting down to an event. */
.ev-showcase { --c1: 200,170,110; --c2: 200,170,110; cursor: pointer; }
.ev-showcase .sc-side .logo-wrap.ev-logo { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.ev-showcase .sc-side .logo-wrap.ev-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ev-showcase .sc-side .teamcode { font-size: 30px; letter-spacing: .04em; line-height: 1.05; max-width: 360px; }
.ev-showcase .sc-side.right .who { max-width: 320px; }
.ev-showcase .sc-side.right .teamname { color: var(--cream); font-weight: 600; }
.ev-showcase .sc-side.right .sc-bits { margin-top: 4px; }
.ev-showcase .sc-soon-block { margin: 12px 0 6px; }
.ev-showcase .sc-stage { max-width: 300px; margin-left: auto; margin-right: auto; }
.ev-panel .ev-showcase { margin-top: 18px; }
/* Phones: one column, the event (logo and name), its countdown, then what it decides. */
@media (max-width: 760px) {
  .ev-showcase { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ev-showcase .sc-side.left { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; gap: 14px; }
  .ev-showcase .sc-side .logo-wrap.ev-logo { width: 64px; height: 64px; flex: 0 0 auto; }
  .ev-showcase .sc-side .teamcode { font-size: 24px; max-width: none; overflow-wrap: anywhere; }
  .ev-showcase .sc-mid { grid-row: auto; grid-column: auto; max-width: none; }
  .ev-showcase .sc-side.right { text-align: left; flex-direction: row; justify-content: flex-start; }
  .ev-showcase .sc-side.right .who { max-width: none; }
}
.ev-showcase .sc-side.right .sc-note { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Events: the Overview flowchart as a picker; one stage selected at a time.
   One row with arrows on desktop; where it wraps (1100 px down) the arrows go
   and each stage carries its number in the tour instead. */
.flow-pick { padding: 0; margin: 0 0 14px; }
.flow-pick .flow-scroll { padding: 14px 16px 12px; }
.flow-pick .journey { margin-top: 0; animation: none; }
.journey { counter-reset: tour-step; }
.journey .step { counter-increment: tour-step; }
@media (max-width: 1100px) {
  .journey .step .t::before { content: counter(tour-step); display: inline-block; min-width: 1.4em; margin-right: 6px; padding: 0 3px; font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 18px; vertical-align: 3px; color: var(--muted); border: 1px solid var(--line-2); }
  .journey .step.active .t::before, .journey.pick .step.selected .t::before { color: var(--accent); border-color: var(--accent); }
  .journey .step.intl .t::before { color: var(--purple-2); border-color: var(--purple); }
}
.journey.pick .step { cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s, box-shadow .15s; }
.journey.pick .step:hover { border-color: var(--accent-deep); background: rgba(255,70,85,.05); }
.journey.pick .step.intl:hover { border-color: var(--purple-2); }
.journey.pick .step .s { font-family: var(--cond); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.journey.pick .step.selected { border-color: var(--accent); background: rgba(255,70,85,.08); box-shadow: 0 0 16px rgba(255,70,85,.25), inset 0 0 0 1px rgba(255,70,85,.2); }
.journey.pick .step.selected .t, .journey.pick .step.selected .s { color: var(--accent-2); }
.journey.pick .step.intl.selected { border-color: var(--purple-2); background: rgba(140,100,220,.12); box-shadow: 0 0 16px rgba(140,100,220,.35), inset 0 0 0 1px rgba(140,100,220,.3); }
.journey.pick .step.now:not(.selected)::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 6px; height: 6px; margin-left: -3px; background: var(--accent); transform: rotate(45deg); }
.journey.pick .step:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.ev-showcase .sc-mid { max-width: 380px; }
.ev-showcase .sc-when { max-width: 320px; margin-left: auto; margin-right: auto; }
.ev-showcase .sc-side.right .teamname { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* Overview, whole tour: four region quadrants, each with its own countdown. */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.quad-cell { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 176px; padding: 14px 18px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.quad-cell:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,70,85,.2); }
.quad-cell.live { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,70,85,.35), inset 0 0 18px rgba(255,70,85,.15); }
.quad-head { display: flex; justify-content: space-between; align-items: center; }
.quad-what { font-family: var(--cond); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.quad-what .live { color: var(--red); font-weight: 700; }
.quad-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; flex: 1; }
.quad-match .side.right { justify-content: flex-start; }
.quad-match .side .logo-wrap { width: 70px; height: 56px; }
.quad-match .side .teamcode { font-size: 24px; }
.quad-match .side .teamname { font-size: 12px; }
.quad-match .side .who { max-width: 100%; }
.quad-match .side .teamcode { overflow-wrap: anywhere; }
.quad-mid { text-align: center; min-width: 190px; }
.quad .sc-count { display: flex; justify-content: center; align-items: flex-start; gap: 4px; }
.quad .sc-count .cell { min-width: 46px; text-align: center; }
.quad .sc-count .n { font-family: var(--cond); font-weight: 800; font-size: 32px; letter-spacing: .04em; color: var(--accent-2); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255,70,85,.2); }
.quad .sc-count .n.tick { animation: tick .45s ease; }
.quad .sc-count .l { font-family: var(--cond); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.quad .sc-count .sep { font-family: var(--cond); font-weight: 800; font-size: 26px; color: var(--accent-deep); line-height: 1.2; }
.quad .sc-count .sc-soon { font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.quad-score { font-family: var(--cond); font-weight: 800; font-size: 40px; color: var(--cream); line-height: 1; }
.quad-map { margin-top: 6px; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.quad-sub { font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.quad-when { font-size: 13px; color: var(--cream); margin-top: 3px; }
.quad-event { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; flex: 1; }
.quad-event .ev-logo { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.quad-event .ev-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.quad-who { min-width: 0; }
.quad-who .t { font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.quad-who .d { font-size: 13px; color: var(--muted); margin-top: 5px; }
.quad-empty { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 1100px) { .quad-mid { min-width: 150px; } .quad .sc-count .cell { min-width: 40px; } .quad .sc-count .n { font-size: 26px; } }
@media (max-width: 900px) { .quad { grid-template-columns: 1fr; } }

/* Rosters on the Teams page and the roster-move log */
.team-card .players { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 6px; font-family: var(--cond); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.team-card .players span.inactive { color: var(--muted-2); text-decoration: line-through; }
.roster-grid .member .cap { display: inline-block; margin-left: 5px; padding: 0 4px; font-family: var(--cond); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--bg); background: var(--accent); line-height: 14px; vertical-align: 2px; }
.roster-grid .member .since { margin-left: 8px; font-family: var(--cond); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.roster-grid .member .note { margin-left: 8px; font-family: var(--cond); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.roster-grid .member.inactive .name { color: var(--muted-2); }
.roster-src { margin-top: 10px; font-size: 12px; color: var(--muted-2); }
.roster-src a { color: var(--muted); text-decoration: underline; }
.roster-moves { margin: 0 0 22px; }
.roster-moves .rm-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.roster-moves .rm-list { display: flex; flex-direction: column; }
.roster-moves .rm-row { display: grid; grid-template-columns: 64px 180px 1fr 1.4fr; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.roster-moves.one .rm-row { grid-template-columns: 64px 1fr 1.4fr; cursor: default; }
.roster-moves .rm-row:hover { background: var(--panel-2); }
.roster-moves.one .rm-row:hover { background: transparent; }
.roster-moves .rm-when { font-family: var(--cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.roster-moves .rm-team { font-family: var(--cond); font-weight: 700; letter-spacing: .06em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-moves .rm-who { font-weight: 600; color: var(--cream); }
.roster-moves .rm-staff { margin-left: 6px; font-family: var(--cond); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line-2); padding: 0 4px; }
.roster-moves .rm-what { color: var(--muted); }
.roster-moves .rm-row.joined .rm-what { color: var(--teal); }
.roster-moves .rm-row.left .rm-what { color: var(--red); }

/* Images the proxy could not fetch: never the broken-image glyph. */
img.img-pending, img.img-broken { visibility: hidden; width: 0 !important; min-width: 0 !important; margin: 0 !important; }
.sec .eyebrow:empty::before { display: none; }

/* Teams: the region's open (tier-two) teams as small cards under the partners */
.sub-label { margin: -10px 0 10px; }
.team-grid.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.team-card.small { grid-template-columns: 36px 1fr; gap: 10px; padding: 8px 10px; --cut: 8px; }
.team-card.small .logo-wrap { width: 36px; height: 32px; }
.team-card.small .teamcode { font-size: 15px; }
.team-card.small .teamname { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card.small .rec { font-size: 11px; margin-top: 2px; letter-spacing: .1em; }
.team-card.small .fav-btn.compact { top: 4px; right: 4px; width: 24px; height: 24px; }
.team-card.small .fav-btn.compact svg { width: 12px; height: 12px; }
.roster-grid .member a.name { color: var(--cream); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.roster-grid .member a.name:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* The Live tab glows red with a pulsing dot while a match is on */
.tab.on-air { color: var(--red); text-shadow: 0 0 12px rgba(255,70,85,.75); }
.tab.on-air::after { background: var(--red); box-shadow: 0 0 14px rgba(255,70,85,.9); }
.tab.on-air .dot { animation: pulse 1.4s infinite; box-shadow: 0 0 8px rgba(255,70,85,.9); }
.live-banner { display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin-bottom: 18px; border-color: rgba(255,70,85,.55); cursor: pointer; background: linear-gradient(90deg, rgba(255,70,85,.12), rgba(255,70,85,.02) 60%), var(--panel); }
.live-banner .lb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; box-shadow: 0 0 10px rgba(255,70,85,.9); }
.live-banner .lb-live { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.live-banner .lb-match { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--cream); }
.live-banner .lb-map { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.live-banner .lb-ev { font-family: var(--cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: 1; min-width: 0; }
.live-banner .lb-count { font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--accent-2); border-bottom: 0; white-space: nowrap; }
.hero img.mark.region { object-fit: contain; fill: none; filter: drop-shadow(0 6px 24px rgba(0,0,0,.5)); }

/* Feed health page (/status): the site's tables on a plain page */
.status-page main { padding-top: 28px; }
.status-page .lb td.ok { color: var(--teal); font-family: var(--cond); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.status-page .lb td.err { color: var(--red); font-size: 13px; }
.status-page .lb td { font-size: 13px; vertical-align: top; }
.status-page .sub .live { color: var(--red); }
.status-page .lb td { overflow-wrap: anywhere; }
/* Phones: each source a block, every value under its column name; long errors wrap. */
@media (max-width: 760px) {
  .status-page main { padding-top: 18px; }
  .status-page .lb.feeds, .status-page .lb.feeds tbody, .status-page .lb.feeds tr, .status-page .lb.feeds td { display: block; }
  .status-page .lb.feeds thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .status-page .lb.feeds tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .status-page .lb.feeds tr:last-child { border-bottom: 0; }
  .status-page .lb.feeds td { padding: 2px 0; border: 0; }
  .status-page .lb.feeds td.src { font-size: 15px; padding-bottom: 4px; }
  .status-page .lb.feeds td[data-label] { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 8px; }
  .status-page .lb.feeds td[data-label]::before { content: attr(data-label); padding-top: 2px; font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
}

/* ---------- crowns: Champions (gold) and Masters (purple) titles ---------- */
:root { --gold: #e6cf9a; }
.crowns { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; vertical-align: -1px; }
.crowns .crown { width: 12px; height: 12px; fill: var(--gold); filter: drop-shadow(0 0 3px rgba(230,207,154,.5)); }
.crowns.masters .crown { fill: var(--purple-2); filter: drop-shadow(0 0 3px rgba(183,169,255,.5)); }
.crowns .x { font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--gold); margin-left: 2px; }
.crowns.masters .x { color: var(--purple-2); }
.member .crowns .crown, .roster .crowns .crown, .team-card .players .crowns .crown { width: 10px; height: 10px; }
.t-head h1 .crowns .crown { width: 20px; height: 20px; }
.team-card .teamcode .crowns { vertical-align: -2px; }
.team-card .teamcode .crowns .crown { width: 16px; height: 16px; }
.honours { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.honours .h { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 24px; padding: 3px 9px; line-height: 1.2; border: 1px solid rgba(230,207,154,.45); font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.honours .h .crown { width: 12px; height: 12px; fill: var(--gold); }
.honours .h.masters { color: var(--purple-2); border-color: rgba(183,169,255,.45); }
.honours .h.masters .crown { fill: var(--purple-2); }
.honours .h small { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: none; }

/* ---------- region chips: one neutral colour; the Overview quadrant chip says how soon ---------- */
.region-chip.americas, .region-chip.emea, .region-chip.pacific, .region-chip.china { border-color: var(--line-2); color: var(--muted); }
.region-chip.state-live { border-color: rgba(255,70,85,.7); color: var(--red); background: var(--red-dim); }
.region-chip.state-soon { border-color: rgba(61,214,166,.6); color: var(--teal); background: var(--teal-dim); }
.region-chip.state-tbd { border-style: dashed; color: var(--muted-2); }

/* ---------- the picked region tints the page with its league colour ---------- */
body.region-americas { --region-rgb: 255,120,60; }
body.region-emea { --region-rgb: 120,220,80; }
body.region-pacific { --region-rgb: 60,170,255; }
body.region-china { --region-rgb: 255,70,85; }
body[class*="region-"] { background: radial-gradient(1100px 520px at 50% -10%, rgba(var(--region-rgb), .10), transparent 60%), radial-gradient(900px 600px at 100% 110%, rgba(61,214,166,.04), transparent 60%), repeating-linear-gradient(135deg, rgba(236,232,225,.014) 0 1px, transparent 1px 10px), var(--bg); }
body[class*="region-"] .hero .glow { background: radial-gradient(closest-side, rgba(var(--region-rgb), .18), transparent); }
body[class*="region-"] .hero { background: linear-gradient(180deg, rgba(var(--region-rgb), .08), rgba(11,21,34,.6) 60%), var(--panel); }

/* ---------- event page: sticky centred tabs, compact path, outcomes on the bracket ---------- */
:root { --top-h: 64px; }
.ev-tabs { position: sticky; top: var(--top-h); z-index: 6; display: flex; justify-content: center; margin: 0 -8px 22px; padding: 10px 8px; background: linear-gradient(180deg, var(--bg) 70%, rgba(15,25,35,0)); }
.ev-tabs .seg { border-color: var(--accent-deep); box-shadow: 0 0 0 1px rgba(255,70,85,.12), 0 10px 30px rgba(0,0,0,.35); }
.ev-tabs .seg .btn { height: 42px; padding: 0 24px; font-size: 15px; letter-spacing: .18em; color: var(--text); }
.ev-tabs .seg .btn.active { background: var(--accent); color: var(--bg); }
.ev-head .links .btn.spoil-ev.on { color: var(--accent); border-color: var(--accent-deep); }
.ev-head .links .btn .ic { width: 12px; height: 12px; }
.path-strip { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; padding: 10px 12px; margin-bottom: 10px; }
.path-strip .ps { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); min-width: 0; }
.path-strip .ps .n { flex: 0 0 auto; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.path-strip .ps > div { min-width: 0; }
.path-strip .ps .t { font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--cream); white-space: nowrap; }
.path-strip .ps .d { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .path-strip .ps .t, .path-strip .ps .d { white-space: normal; } }
.path-strip .ps .d .live { color: var(--accent); font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.path-strip .ps .d a { color: var(--accent); text-decoration: none; }
.path-strip .ps .d a:hover { text-decoration: underline; }
.path-strip .ps .d a .ic { width: 11px; height: 11px; fill: none; stroke: currentColor; vertical-align: -1px; }
.path-strip .ps.active { border-color: var(--accent); background: rgba(255,70,85,.06); }
.path-strip .ps.active .n { border-color: var(--accent); color: var(--accent); }
.path-strip .ps.done { opacity: .7; }
.path-strip .ps.done .n { border-color: var(--accent-deep); color: var(--muted); }
.path-strip .ps-arrow { display: flex; align-items: center; color: var(--muted-2); }
.path-strip .ps-arrow .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.path-note { margin: 0 0 18px; }
.outcomes { margin-bottom: 18px; }
.diagram .outcome-col { justify-content: center; gap: 10px; padding-left: 10px; position: relative; }
.diagram .outcome-col .out-arrow { position: absolute; left: -38px; top: 50%; width: 42px; height: 0; }
.diagram .outcome-col .out-arrow .line { position: absolute; left: 0; right: 8px; top: 0; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--teal)); }
.diagram .outcome-col .out-arrow .head { position: absolute; right: 6px; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); transform: rotate(45deg); }
.outcome-box { width: 232px; padding: 12px 14px; border-color: rgba(61,214,166,.4); background: linear-gradient(180deg, rgba(61,214,166,.08), transparent); }
.outcome-box[role="button"] { cursor: pointer; }
.outcome-box[role="button"]:hover { border-color: var(--teal); }
.outcome-box .ob-lbl { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.outcome-box .ob-to { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--cream); margin-top: 4px; line-height: 1.2; }
.outcome-box .ob-d { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
/* The team that earned it: logo and name under the destination. */
.outcome-box .ob-team { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(61,214,166,.25); }
.outcome-box .ob-team .logo-wrap { width: 32px; height: 26px; flex: 0 0 auto; }
.outcome-box .ob-team .nm { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); min-width: 0; overflow-wrap: anywhere; }
.outcome-box .ob-team.hidden-res { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
.diagram.stacked .outcome-col { padding-left: 0; align-items: center; }
.diagram.stacked .outcome-col .out-arrow { display: none; }
.diagram.stacked .outcome-box { width: 100%; max-width: 480px; }
.standings-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lb .adv { color: var(--teal); font-family: var(--cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.lb .out { color: var(--red); font-family: var(--cond); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.lb tr.out .teamcode, .lb tr.out .teamname { color: var(--muted-2); }
.lb tr.out .logo-wrap img { opacity: .5; filter: grayscale(1); }
.lb tr.win .teamcode { color: var(--gold); }
.lb tr.adv .teamcode { color: var(--teal); }

/* ---------- standings on phones: one small card per row ---------- */
/* Every column stays: place, team and record on the first line, the rest
   (maps, Buchholz, region, how a slot is earned, status) labelled below.
   The tables keep ARIA table roles (app.js, stackTable). */
@media (max-width: 760px) {
  .stack, .stack tbody { display: block; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stack tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .stack td:empty { display: none; }
  .stack td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .stack td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .stack td.th-c { text-align: right; }
  .stack .team-cell .teamname { white-space: normal; }
  /* Labelled values: the column name in small caps before the number. */
  .stack td.th-c[data-label]::before, .group-table.stack td:nth-child(n+3)[data-label]::before { content: attr(data-label); display: block; font-family: var(--cond); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
  .stack td.th-c:not(:empty) { min-width: 44px; }
  /* Placement: # | team | W–L, then the placement line. */
  .lb.placement.stack td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .lb.placement.stack td:nth-child(4) { grid-column: 2 / -1; grid-row: 2; }
  /* Swiss: # | team | W–L, then maps and Buchholz, then the status. */
  .lb.swiss.stack tr { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .lb.swiss.stack td:nth-child(2) { grid-column: 2 / 4; }
  .lb.swiss.stack td:nth-child(3) { grid-column: 4; grid-row: 1; }
  .lb.swiss.stack td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .lb.swiss.stack td:nth-child(5) { grid-column: 4; grid-row: 2; }
  .lb.swiss.stack td:nth-child(6) { grid-column: 2; grid-row: 2; align-self: end; }
  /* Field: # | team | region | W–L, then how the slot is earned and the maps. */
  .lb.slots.stack tr { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .lb.slots.stack td:nth-child(2) { grid-column: 2; }
  .lb.slots.stack td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .lb.slots.stack td:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  .lb.slots.stack td:nth-child(5) { grid-column: 4; grid-row: 1; }
  .lb.slots.stack td:nth-child(6) { grid-column: 4; grid-row: 2; align-self: start; }
  .lb.slots .how a { white-space: normal; }
  .lb.slots .how-t { flex: 1 1 100%; }
  /* Group table: # | team | W–L, then maps and the map difference. */
  .group-table.stack tr { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .group-table.stack td:nth-child(2) { grid-column: 2 / 4; }
  .group-table.stack td:nth-child(3) { grid-column: 4; grid-row: 1; text-align: right; }
  .group-table.stack td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; }
  .group-table.stack td:nth-child(5) { grid-column: 4; grid-row: 2; text-align: right; }
  .standings-groups { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- share, calendar, watched VODs ---------- */
.btn.share.done { color: var(--teal); border-color: rgba(61,214,166,.5); }
.m-share { display: flex; justify-content: flex-end; margin-top: 12px; }
.m-share .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.cal-link { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-family: var(--cond); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dotted var(--line-2); }
.cal-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cal-link .ic { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.vod-btn.watched, .vod-chip.watched, .btn.vod-link.watched { color: var(--muted-2); border-color: var(--line); background: transparent; }
.vod-btn.watched:hover, .vod-chip.watched:hover { color: var(--cream); background: var(--line-2); }
.tz-select { height: 34px; padding: 0 10px; font-family: var(--cond); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); background: var(--panel-2); border: 1px solid var(--line-2); max-width: 220px; }
.tz-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- match modal: form and head-to-head, veto timeline ---------- */
.m-form { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; margin: 0 0 16px; padding: 10px 12px; background: var(--row); border: 1px solid var(--line); }
.m-form .label { font-size: 11px; letter-spacing: .18em; }
.mf-col.right { text-align: right; }
.mf-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mf-col.right .mf-chips { justify-content: flex-end; }
.mf-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 3px 5px; border: 1px solid var(--line-2); font-family: var(--cond); font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer; }
.mf-chip small { font-size: 9px; font-weight: 600; letter-spacing: .06em; color: var(--muted-2); margin-top: 3px; text-transform: uppercase; white-space: nowrap; }
.mf-chip.w { color: var(--teal); border-color: rgba(61,214,166,.45); }
.mf-chip.l { color: var(--red); border-color: rgba(255,70,85,.4); }
.mf-chip:hover { background: var(--panel-2); }
.mf-chips .muted { font-size: 12px; color: var(--muted-2); }
.mf-mid { text-align: center; min-width: 120px; }
.mf-h2h { font-family: var(--cond); font-weight: 800; font-size: 26px; color: var(--cream); line-height: 1; margin-top: 4px; }
.mf-h2h.muted { font-size: 14px; color: var(--muted-2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.mf-note { font-size: 11px; color: var(--muted-2); }
.mf-list { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.mf-row { display: flex; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.mf-row b { color: var(--cream); font-family: var(--cond); }
.mf-row:hover { color: var(--cream); }
.veto { margin-top: 12px; }
.veto .label { font-size: 11px; letter-spacing: .18em; }
.veto-line { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.veto .vt { display: inline-flex; flex-direction: column; align-items: center; min-width: 62px; padding: 5px 7px; border: 1px solid var(--line-2); background: var(--row); line-height: 1.1; }
.veto .vt i { font-style: normal; font-family: var(--cond); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.veto .vt b { font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); margin-top: 3px; }
.veto .vt small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.veto .vt.ban b { color: var(--muted-2); text-decoration: line-through; }
.veto .vt.pick { border-color: rgba(61,214,166,.4); }
.veto .vt.pick small { color: var(--teal); }
.veto .vt.decider { border-color: var(--accent-deep); }
.veto .vt.decider small { color: var(--accent); }
.veto .vt.s1 i { color: var(--accent-2); }
.veto .vt.s2 i { color: var(--purple-2); }
.veto .vt.cur { border-color: var(--red); box-shadow: 0 0 8px rgba(255,70,85,.3); }
.veto .vt.cur b { color: var(--red); }

/* ---------- player modal ---------- */
.p-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.p-head > div { min-width: 0; }
.p-head .flag { width: 34px; height: 24px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.p-head .cc { font-family: var(--cond); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.p-head h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); line-height: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; min-width: 0; }
.p-head h2 .cap { padding: 0 5px; font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--bg); background: var(--accent); line-height: 16px; }
.p-head .p-full { font-size: 14px; color: var(--text); margin-top: 4px; }
.p-head .p-meta { font-family: var(--cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.p-head .p-logo { width: 72px; height: 56px; }
.modal .honours { margin: 0 0 12px; }
.p-label { margin: 16px 0 8px; }
.roster > span[role="button"] { cursor: pointer; }
.roster > span[role="button"]:hover { color: var(--cream); border-color: var(--accent-deep); }
.roster-grid .member[role="button"] { cursor: pointer; }
.roster-grid .member[role="button"]:hover { border-color: var(--accent-deep); }
.team-card .players span[role="button"]:hover { color: var(--accent); }

/* ---------- Overview: followed-team digest; four quick cards ---------- */
.digest { margin-bottom: 26px; padding: 0; }
.digest .dg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.digest .dg-head .status { font-size: 13px; color: var(--muted-2); }
.digest .dg-row { display: grid; grid-template-columns: 36px fit-content(170px) minmax(0, 110px) 150px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.digest .dg-row:first-of-type { border-top: 0; }
.digest .dg-row:hover { background: var(--panel-2); }
.digest .dg-row.live { background: rgba(255,70,85,.05); }
.digest .dg-code { min-width: 60px; font-family: var(--cond); font-weight: 700; font-size: 16px; color: var(--accent); letter-spacing: .05em; overflow-wrap: anywhere; }
.digest .dg-vs { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--cream); min-width: 0; overflow-wrap: anywhere; }
.digest .dg-when { font-size: 14px; color: var(--text); }
.digest .dg-when .live { color: var(--red); font-family: var(--cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.digest .dg-ev { font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.digest .dg-act { display: flex; justify-content: flex-end; }
.digest .dg-act .btn.watch { height: 26px; padding: 0 10px; font-size: 12px; }
.quick { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Teams: road so far; roster moves grouped by team ---------- */
.road { padding: 2px 0; }
.road-row { display: grid; grid-template-columns: 120px 1fr 56px 1.3fr; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.road-row:first-child { border-top: 0; }
.road-row:hover { background: var(--panel-2); }
.road-row .rd-when { font-family: var(--cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.road-row .rd-ev { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--cream); }
.road-row .rd-rec { font-family: var(--cond); font-weight: 800; font-size: 16px; color: var(--cream); text-align: center; }
.road-row .rd-st { color: var(--muted); }
.road-row.win .rd-st { color: var(--gold); font-weight: 600; }
.road-row.out .rd-st { color: var(--red); }
.road-row.live .rd-st { color: var(--red); font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.roster-moves .panel-head .seg .btn { height: 26px; font-size: 11px; padding: 0 9px; }
.roster-moves .rm-group { display: flex; align-items: center; gap: 10px; padding: 9px 14px 6px; border-top: 1px solid var(--line-2); background: rgba(255,255,255,.015); cursor: pointer; }
.roster-moves .rm-group .logo-wrap { width: 30px; height: 26px; }
.roster-moves .rm-group .teamname { margin: 0; }
.roster-moves .rm-group .rm-count { margin-left: auto; font-family: var(--cond); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.roster-moves .rm-group:hover .teamcode { color: var(--accent); }

/* ---------- Schedule: sticky day heads with a countdown ---------- */
.day-head { position: sticky; top: var(--top-h); z-index: 4; background: var(--bg); }
.day-head .day-count { margin-left: auto; font-size: 13px; }
.day-head .today + .day-count { margin-left: 10px; }

/* ---------- phone widths ---------- */
@media (max-width: 760px) {
  .quad-match { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
  .quad-match .quad-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .quad-match .side { flex-direction: column; text-align: center; gap: 4px; }
  .quad-match .side.right { flex-direction: column; justify-content: flex-start; }
  .quad-match .side .logo-wrap { width: 54px; height: 44px; }
  .quad-match .side .teamcode { font-size: 20px; }
  .quad-event { grid-template-columns: 48px minmax(0, 1fr); }
  .quad-event .ev-logo { width: 48px; height: 48px; }
  .quad-head { flex-wrap: wrap; gap: 6px; }
  .quad-event .quad-mid { grid-column: 1 / -1; min-width: 0; }
  .journey .substep .sub-box .d { white-space: normal; text-align: center; }
  .road-row { grid-template-columns: 1fr 48px; gap: 4px 10px; }
  .road-row .rd-when { grid-column: 1 / -1; }
  .road-row .rd-st { grid-column: 1 / -1; }
  .roster-moves .rm-row, .roster-moves.one .rm-row { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 10px; }
  .roster-moves .rm-team { white-space: normal; }
  .roster-moves .panel-head { flex-wrap: wrap; gap: 6px 10px; }
  .roster-moves .rm-team, .roster-moves .rm-who, .roster-moves .rm-what { grid-column: 2; }
  .m-form { grid-template-columns: 1fr; }
  .mf-col.right { text-align: left; }
  .mf-col.right .mf-chips { justify-content: flex-start; }
  .p-head { grid-template-columns: auto minmax(0, 1fr); }
  .p-head h2 { font-size: 26px; }
  .p-head .p-logo { display: none; }
  .ev-tabs { margin: 0 0 16px; padding: 8px 0; }
  .ev-tabs .seg { display: flex; width: 100%; }
  .ev-tabs .seg .btn { flex: 1 1 auto; justify-content: center; height: auto; min-height: 40px; padding: 0 8px; font-size: 13px; letter-spacing: .1em; }
  .path-strip .ps { flex: 1 1 100%; }
  .path-strip .ps-arrow { display: none; }
  .tz-select { max-width: 160px; }
}
.quick .q .list .row .v { min-width: 0; overflow-wrap: anywhere; }
/* 901–1100 px: the quadrants stack their teams over the countdown. */
@media (min-width: 901px) and (max-width: 1100px) {
  .quad-match { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
  .quad-match .quad-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .quad-match .side { flex-direction: column; text-align: center; gap: 4px; }
  .quad-match .side.right { flex-direction: column; justify-content: flex-start; }
}

/* Short landscape screens (a phone on its side): the two-row header scrolls
   away instead of pinning a third of the height; event tabs and day heads
   then stick at the very top (--top-h is 0, app.js). */
@media (max-height: 500px) and (min-width: 761px) {
  .top { position: relative; top: auto; }
}

/* ---------- phones: header ---------- */
/* Brand and status, then the regions, then the sections. The sections wrap
   onto a second line rather than scroll; only they stay pinned (app.js sets
   --top-hide to the height above them). */
@media (max-width: 760px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding-top: calc(6px + env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand { grid-row: 1; grid-column: 1; min-height: 44px; }
  .wordmark { font-size: 18px; }
  .status { grid-row: 1; grid-column: 2; }
  .region-nav { grid-row: 2; grid-column: 1 / -1; padding: 4px 0 8px; }
  .region-nav .seg { display: flex; width: 100%; gap: 1px; background: var(--line-2); }
  .region-nav .seg .btn { flex: 1 1 auto; justify-content: center; border: 0; background: var(--bg-2); padding: 0 8px; letter-spacing: .08em; }
  .region-nav .seg .btn.active { background: var(--accent); }
  .nav { grid-row: 3; grid-column: 1 / -1; width: 100%; flex-wrap: wrap; gap: 0; }
  .tab { flex: 1 1 auto; height: 44px; padding: 0 6px; font-size: 13px; letter-spacing: .08em; }
  .tab::after { left: 6px; right: 6px; }
}

/* ---------- phones: Live tab ---------- */
@media (max-width: 760px) {
  .live-info .lteams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .live-info .lteams .side, .live-info .lteams .side.right { flex-direction: column; text-align: center; gap: 4px; }
  .live-info .lteams .side .logo-wrap { width: 48px; height: 38px; }
  .live-info .lteams .side .teamcode { font-size: 18px; overflow-wrap: anywhere; }
  .live-info .lteams .side .teamname { white-space: normal; }
  .live-info .lmid .big { font-size: 28px; }
  .live-info .lh .stage { text-align: left; }
  .lrow .k { padding: 0 8px; overflow-wrap: anywhere; }
}

/* ---------- phones: buttons grow with their label instead of running off the edge ---------- */
@media (max-width: 760px) {
  .btn:not(.nav-btn) { white-space: normal; height: auto; min-height: 32px; padding-top: 4px; padding-bottom: 4px; line-height: 1.15; }
  .sec .tools { min-width: 0; max-width: 100%; }
}

/* ---------- phones: the pre-show strip stacks, centred ---------- */
@media (max-width: 760px) {
  .pre-strip { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; padding: 12px; }
  .pre-side { align-items: center; text-align: center; }
  .pre-act { justify-content: center; }
  .live-bar .theater-btn { margin-left: 0; }
}

/* ---------- phones: dialogs ---------- */
@media (max-width: 760px) {
  .modal { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .modal-card { width: 100%; }
  .modal-scroll { padding: 16px 14px 18px; }
  .fb-actions { padding: 10px 14px 14px; }
  .fb-field input { max-width: none; }
  .m-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .m-links .btn { white-space: normal; height: auto; min-height: 28px; padding: 5px 10px; line-height: 1.2; text-align: left; }
}

/* ---------- phones: Overview live banner and followed-team digest ---------- */
@media (max-width: 760px) {
  .live-banner { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .live-banner .lb-match { font-size: 20px; }
  .live-banner .lb-ev { order: 3; flex: 1 1 100%; white-space: normal; overflow: visible; }
  .live-banner .btn.watch { order: 4; }
  .live-banner .lb-count { order: 2; }
  /* Team, opponent and action on the first line; when and which event under it. */
  .digest .dg-row { grid-template-columns: 30px auto minmax(0, 1fr) auto; grid-template-areas: "logo code vs act" "logo when when act" "logo ev ev act"; gap: 2px 10px; padding: 8px 12px; }
  .digest .dg-row > .logo-wrap { grid-area: logo; width: 30px; height: 26px; align-self: start; }
  .digest .dg-code { grid-area: code; }
  .digest .dg-vs { grid-area: vs; }
  .digest .dg-when { grid-area: when; }
  .digest .dg-ev { grid-area: ev; white-space: normal; overflow: visible; }
  .digest .dg-act { grid-area: act; align-self: center; }
  .digest .dg-head { flex-wrap: wrap; }
}

/* ---------- touch screens, last word: the phone rules above must not shrink the 44 px targets ---------- */
@media (pointer: coarse) {
  .btn:not(.nav-btn), .seg .btn, .ev-tabs .seg .btn, .m-links .btn, .also-live .btn, .pre-act .btn, .live-bar .ext, .live-bar .theater-btn, .m-share .btn { min-height: 44px; }
  .team-card.small .fav-btn.compact { width: 44px; height: 44px; top: 2px; right: 2px; }
  .tz-select, .fav-select { min-height: 44px; }
}
/* Narrow phones: the region picker stays on one row. */
@media (max-width: 360px) {
  .region-nav .seg .btn { letter-spacing: .04em; padding: 0 6px; }
}
