/* cEDH PT — site styles
   Dark purple identity, modernised. Gold is reserved for the Power 9 Quest. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --bg: #08060e;
  --bg-2: #0e0a19;
  --surface: #150f25;
  --surface-2: #1c1531;
  --surface-3: #251c40;
  --line: rgba(176, 150, 255, 0.13);
  --line-strong: rgba(176, 150, 255, 0.28);
  --text: #f2eefc;
  --muted: #a9a1c6;
  --faint: #6f6891;
  --primary: #8b5cf6;
  --primary-2: #a78bfa;
  --primary-3: #c4b5fd;
  --glow: rgba(139, 92, 246, 0.35);
  --gold: #f3c55d;
  --gold-2: #ffe29a;
  --bronze: #d08a4e;
  --silver: #c9d0de;
  --success: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
strong { font-weight: 650; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-3); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: linear-gradient(90deg, var(--gold), transparent); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 520px; margin: 12px 0 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.text-gradient { background: linear-gradient(100deg, #fff 10%, var(--primary-3) 55%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #d89a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body); white-space: nowrap;
  background: var(--btn-bg); color: var(--text); border: 1px solid var(--line-strong);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: linear-gradient(135deg, #9a6bff, #6d3be0); border-color: transparent; box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #d89a2b); color: #1a1206; border-color: transparent; box-shadow: 0 10px 30px -12px rgba(243, 197, 93, 0.55); }
.btn--ghost { background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-3); font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(10, 7, 18, 0.78); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 1.1rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand span { white-space: nowrap; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.45)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav .btn { margin-left: 10px; }
.nav .nav-account { display: inline-flex; align-items: center; gap: 8px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.74rem; font-weight: 700; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1241px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: 10px 9px; font-size: 0.88rem; }
  .nav .btn { margin-left: 6px; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: rgba(10, 7, 18, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; isolation: isolate; }
.hero--page { min-height: 0; padding-bottom: 64px; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 24s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(139, 92, 246, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(8, 6, 14, 0.55) 0%, rgba(8, 6, 14, 0.75) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 6, 14, 0.9) 0%, rgba(8, 6, 14, 0.35) 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; color: #cfc8e6; }
@keyframes slow-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { background: rgba(14, 10, 25, 0.8); backdrop-filter: blur(10px); padding: 22px 24px; }
.stat__value { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* Countdown card */
.countdown-card {
  position: relative; padding: 28px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(243, 197, 93, 0.14), rgba(21, 15, 37, 0.85) 45%), rgba(21, 15, 37, 0.7);
  border: 1px solid rgba(243, 197, 93, 0.35); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.countdown-card h2 { font-size: 1.6rem; margin: 6px 0 4px; }
.countdown-card .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.countdown div { text-align: center; padding: 14px 4px; border-radius: 14px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--line); }
.countdown b { display: block; font: 700 1.7rem/1 var(--font-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px var(--glow); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.08)); border: 1px solid var(--line-strong); color: var(--primary-3);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }

/* ---------- Events (live) ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.event-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a.event-card:hover .event-card__media img { transform: scale(1.05); }
.event-card__date {
  position: absolute; left: 14px; top: 14px; min-width: 58px; padding: 8px 10px; border-radius: 12px; text-align: center;
  background: rgba(8, 6, 14, 0.8); backdrop-filter: blur(8px); border: 1px solid var(--line-strong);
}
.event-card__date b { display: block; font: 700 1.4rem/1 var(--font-display); }
.event-card__date small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-3); }
.event-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card__body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.9rem; margin-top: auto; }
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__meta svg { width: 16px; height: 16px; color: var(--primary-2); }
.event-card--featured { border-color: rgba(243, 197, 93, 0.45); }
.event-card--featured .event-card__date small { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; background: rgba(139, 92, 246, 0.16); color: var(--primary-3); border: 1px solid var(--line-strong); }
.badge--gold { background: rgba(243, 197, 93, 0.14); color: var(--gold); border-color: rgba(243, 197, 93, 0.35); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.skeleton--card { height: 340px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notice { padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.data-note { color: var(--faint); font-size: 0.85rem; margin-top: 18px; }

/* ---------- Leaderboard (live) ---------- */
.board { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.board__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.board__search { flex: 1 1 240px; max-width: 360px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: inherit; }
.board__search::placeholder { color: var(--faint); }
/* Fixed layout: the player column takes the leftover width and long names truncate instead of widening the table */
.board table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board th:nth-child(1) { width: 72px; }
.board th:nth-child(3) { width: 96px; }
.board th:nth-child(4) { width: 110px; }
/* The name column takes all leftover width. Otherwise, on phones (hidden columns), the full-width
   colspan of the cut-line row creates empty phantom columns that take it and squeeze the names */
.board th:nth-child(2) { width: 100%; }
.board th { text-align: left; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board td { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background 0.2s; }
.board tbody tr:hover { background: rgba(139, 92, 246, 0.06); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .points { font: 700 1.05rem var(--font-display); }
.rank { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 700 0.95rem var(--font-display); background: var(--surface-2); color: var(--muted); }
.player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player img, .player .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.player .avatar { display: grid; place-items: center; background: var(--surface-3); color: var(--primary-3); font: 700 0.85rem var(--font-display); }
.player a:hover { color: var(--primary-3); }
.player__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cutline td { padding: 0 !important; }
.cutline div { display: flex; align-items: center; gap: 12px; padding: 8px 20px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(243, 197, 93, 0.06); }
.cutline div::before, .cutline div::after { content: ""; flex: 1; height: 1px; background: rgba(243, 197, 93, 0.35); }
.board__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; color: var(--faint); font-size: 0.85rem; }
@media (max-width: 640px) {
  .board th, .board td { padding: 10px 12px; }
  .board .hide-sm { display: none; }
  .board th:nth-child(1) { width: 58px; }
  .board th:nth-child(4) { width: 78px; }
}

/* ---------- P9Q feature ---------- */
.p9q { overflow: hidden; }
.p9q::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(243, 197, 93, 0.09), transparent 70%), radial-gradient(ellipse 50% 60% at 90% 80%, rgba(139, 92, 246, 0.14), transparent 70%); pointer-events: none; }
.p9q__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.p9q__art { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(243, 197, 93, 0.3); box-shadow: 0 40px 100px -40px rgba(243, 197, 93, 0.35); }
/* the champion's Timetwister, floating above the playmat's top-right corner */
.p9q__showcase { position: relative; }
.p9q__twister { position: absolute; z-index: 2; top: -52px; right: 16px; width: clamp(104px, 28%, 170px); display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: twister-float 6s ease-in-out infinite; }
.p9q__twister img { display: block; width: 100%; height: auto; transform: rotate(7deg);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(243, 197, 93, 0.35)); }
.p9q__twister span { padding: 5px 12px; border-radius: 999px; white-space: nowrap; font: 700 0.72rem var(--font-body); letter-spacing: 0.02em;
  color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 20px -6px rgba(243, 197, 93, 0.6); }
@keyframes twister-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.p9q__showcase .p9q__art figcaption { padding-right: 34%; }   /* the caption stays clear of the card */
@media (max-width: 640px) {
  .p9q__twister { top: -34px; right: 10px; }
  .p9q__twister span { font-size: 0.62rem; padding: 4px 9px; }
}
.p9q__art figcaption { position: absolute; inset: auto 0 0; padding: 40px 20px 16px; font-size: 0.85rem; color: #e9e3d0; background: linear-gradient(transparent, rgba(8, 6, 14, 0.9)); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.fact { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.fact small { display: block; color: var(--faint); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.fact b { font-weight: 600; }
.prizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.prize { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.prize--first { background: linear-gradient(160deg, rgba(243, 197, 93, 0.16), var(--surface) 55%); border-color: rgba(243, 197, 93, 0.4); }
.prize h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.prize--first h3 { color: var(--gold); }
.prize .headline { font: 700 1.2rem/1.25 var(--font-display); margin-bottom: 12px; }
.prize ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.prize li { padding: 4px 0 4px 18px; position: relative; }
.prize li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-2); }
.prize--first li::before { background: var(--gold); }

/* champion and finalist playmats */
.mats { margin-top: 56px; position: relative; }
.mats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mat { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.mat--champion { border-color: rgba(243, 197, 93, 0.45); box-shadow: 0 30px 80px -40px rgba(243, 197, 93, 0.45); }
.mat img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.mat:hover img { transform: scale(1.03); }
.mat figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.mat figcaption b { font: 700 1.05rem var(--font-display); }
.mat--champion figcaption b { color: var(--gold); }
.mat figcaption span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { .mats__grid { grid-template-columns: 1fr; } }

.schedule { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; position: relative; }
.schedule .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.schedule .card h3 small { font: 500 0.85rem var(--font-body); color: var(--gold); }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline-list li:first-child { border-top: 0; }
.timeline-list time { color: var(--primary-3); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Visit guide */
.visit { margin-top: 56px; position: relative; }
.visit h3 { display: flex; align-items: center; gap: 10px; }
.visit h3 svg { width: 20px; height: 20px; color: var(--primary-2); }
.visit ul { list-style: none; margin: 0; padding: 0; }
.visit li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.visit li:first-child { border-top: 0; }
.visit li span { color: var(--muted); white-space: nowrap; }
.visit li div small { display: block; color: var(--faint); font-size: 0.82rem; }

/* ---------- Experience (video band) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media video, .band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The still image always shows; the video fades in on top only once it is actually playing */
.band__media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.band__media video.is-playing { opacity: 1; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 8, 24, 0.62) 22%, rgba(22, 10, 48, 0.7) 78%, var(--bg) 100%); }
.band .card { background: rgba(21, 15, 37, 0.72); backdrop-filter: blur(12px); }

/* ---------- League ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist svg { width: 22px; height: 22px; color: var(--primary-2); margin-top: 2px; }
.photo-stack { position: relative; aspect-ratio: 5 / 4; }
.photo-stack img { position: absolute; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.photo-stack img:nth-child(1) { inset: 0 18% 18% 0; width: 82%; height: 82%; }
.photo-stack img:nth-child(2) { inset: 38% 0 0 38%; width: 62%; height: 62%; }
.partner-chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.partner-chips img { height: 44px; width: auto; opacity: 0.9; }

/* ---------- Story timeline ---------- */
.story { position: relative; display: grid; gap: 0; margin-top: 16px; }
.story::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--primary), var(--gold)); opacity: 0.5; }
.story__item { position: relative; padding: 0 0 36px 48px; }
.story__item::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary-2); box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.14); }
.story__item:last-child { padding-bottom: 0; }
.story__item:last-child::before { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(243, 197, 93, 0.16); }
.story__year { font: 600 0.8rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-3); }
.story__item h3 { margin: 6px 0 8px; }
.story__item p { color: var(--muted); max-width: 640px; }
.story-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-layout .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.quote { margin: 32px 0 0; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font: 500 1.1rem/1.5 var(--font-display); }
.quote cite { display: block; margin-top: 12px; color: var(--muted); font: 400 0.9rem var(--font-body); font-style: normal; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; filter: saturate(0.9); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Coverage (lite YouTube) ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.6s var(--ease); }
.yt button:hover img { opacity: 1; transform: scale(1.04); }
.yt .play { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(139, 92, 246, 0.9); box-shadow: 0 10px 30px -5px var(--glow); transition: transform 0.3s var(--ease); }
.yt button:hover .play { transform: scale(1.1); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--short { aspect-ratio: 1200 / 846; }   /* the cover is a wide photo; the Short itself plays tall */
.yt--short.is-playing { aspect-ratio: 9 / 16; width: min(100%, 320px); justify-self: center; }

/* P9Q: the venue, a vertical YouTube Short next to the address */
.venue { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.venue__video { border-radius: 20px; overflow: hidden; border: 1px solid rgba(243, 197, 93, 0.3); box-shadow: 0 30px 60px -30px rgba(243, 197, 93, 0.35); }
.venue__video .play { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.venue__video .play svg { color: #1a1206; }
.venue__video button { place-items: end start; padding: 18px; box-sizing: border-box; }   /* keep the button off the faces */
.venue__video .play { width: auto; height: auto; display: inline-flex; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; }
.venue__video .play svg { width: 18px; height: 18px; margin: 0; }
.venue__video .play b { color: #1a1206; font: 700 0.9rem var(--font-body); }
.venue__text h2 { margin: 10px 0 14px; }
.venue__text > p { color: var(--muted); max-width: 520px; }
.venue__text > .venue__address { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; color: var(--text); }
.venue__address svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.venue__text .data-note a { color: inherit; }
@media (max-width: 760px) {
  .venue { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .venue__video { width: 100%; }
  .venue__video.is-playing { width: min(100%, 300px); }
  .venue__text > .venue__address { display: inline-flex; text-align: left; }
  .venue__text .btn-row { justify-content: center; }
}
.video-card__body { padding: 16px 18px; }
.video-card__body h3 { font-size: 1rem; margin: 0 0 4px; }
.video-card__body p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-strong); margin-bottom: 14px; filter: grayscale(0.2); transition: filter 0.4s, transform 0.4s var(--ease); }
.member:hover img { filter: none; transform: translateY(-4px); }
.member h3 { font-size: 1.02rem; margin: 0 0 2px; }
.member p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--primary-2); border-bottom: 2px solid var(--primary-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer ul { margin: 0; padding-left: 18px; }
.faq .answer li { margin-bottom: 6px; }
.faq .answer a, .prose a { color: var(--primary-3); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.4); text-underline-offset: 3px; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); }
.partners img { height: 64px; width: auto; object-fit: contain; opacity: 0.75; filter: grayscale(0.3); transition: opacity 0.3s, filter 0.3s, transform 0.3s var(--ease); }
.partners a:hover img { opacity: 1; filter: none; transform: translateY(-3px); }
.partners .tall-logo { height: 88px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(139, 92, 246, 0.45), transparent 60%), linear-gradient(135deg, #1d1438, #120c22);
  border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: #cfc8e6; margin: 0; max-width: 560px; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: url("../img/logo-512.png") center / contain no-repeat; opacity: 0.08; pointer-events: none; }

/* ---------- Tiers (Nationals) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { --tier: var(--primary-2); padding: 28px; border-radius: var(--radius); background: linear-gradient(170deg, color-mix(in srgb, var(--tier) 18%, transparent), var(--surface) 55%); border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); }
.tier--bronze { --tier: var(--bronze); }
.tier--silver { --tier: var(--silver); }
.tier--gold { --tier: var(--gold); }
.tier h3 { color: var(--tier); letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; margin-bottom: 4px; }
.tier .req { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.tier dl { margin: 0; display: grid; gap: 10px; }
.tier dl div { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.tier dt { color: var(--muted); }
.tier dd { margin: 0; font: 700 1.05rem var(--font-display); }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.store-banner { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #131016; max-width: 851px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 0.78rem var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: all 0.25s var(--ease); }
.socials a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.legal p { margin: 0; max-width: 760px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .prizes { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__grid, .p9q__grid, .split, .story-layout, .faq-layout, .cta { grid-template-columns: 1fr; }
  .story-layout .sticky { position: static; }
  .grid--3, .grid--4, .tiers { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4, .tiers, .prizes, .schedule, .videos, .facts { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-rows: 140px; }
  .gallery .wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown b { font-size: 1.4rem; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities (kept out of HTML so the CSP can forbid inline styles) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn--block { width: 100%; }
.p9q__art { margin: 0; }
.section-head--sm { margin-bottom: 24px; }
.h2-sm { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.partner-chips { margin-top: 24px; }
.eyebrow--center { display: flex; justify-content: center; }
.skeleton--table { height: 360px; }
.footer-tagline { margin-top: 16px; max-width: 320px; }

/* League: live "this month" card */
.league-live { padding: 20px 22px; margin-bottom: 24px; border-color: var(--line-strong); background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), var(--surface) 60%); }
.league-live h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.league-live h3 a:hover { color: var(--primary-3); }
.league-live p { margin: 0; font-size: 0.93rem; }
.league-live .league-next { margin-top: 8px; color: var(--faint); }
.league-live .league-next a { color: var(--primary-3); }
.league-live .tz { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--primary-3); border: 1px solid var(--line-strong); }

/* ---------- Social media page ---------- */
.hero--compact { padding-bottom: 40px; }
.ig-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ig-profile { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 24px; }
.ig-profile img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--primary-2); background: var(--bg); padding: 4px; }
.ig-profile h2 { margin: 0; }
.ig-profile p { margin: 0; }
.ig-embed { max-width: 560px; width: 100%; justify-self: center; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.ig-embed iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.ig-embed__placeholder { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 32px; min-height: 420px; align-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.25), transparent 70%); }
.ig-embed__placeholder h3 { margin: 0; }
.ig-embed__placeholder p { margin: 0; max-width: 380px; font-size: 0.92rem; }
.ig-embed__icon { width: 44px; height: 44px; color: var(--primary-3); }
.channel { display: flex; gap: 18px; align-items: flex-start; }
.channel .icon { flex: none; margin: 0; }
.channel h3 { margin: 2px 0 4px; }
@media (max-width: 960px) { .ig-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ig-embed iframe { height: 640px; } }

/* ---------- ECL: homepage section + live page (ecl.html) ---------- */
.ecl-home { overflow: hidden; }
.ecl-home::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 15% 40%, rgba(139, 92, 246, 0.16), transparent 70%); pointer-events: none; }
.ecl-home .split { position: relative; align-items: start; }
.ecl-badge { width: min(100%, 300px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 28px; box-shadow: 0 40px 100px -40px var(--glow); }
.ecl-live { padding: 22px; border-color: var(--line-strong); background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), var(--surface) 60%); }
.ecl-live__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.ecl-live__head h3 { margin: 0; font-size: 1.05rem; }
.ecl-live .link-arrow { margin-top: 16px; }

.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stat-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stat-list li:last-child { border-bottom: 0; }
.stat-list .player { gap: 10px; }
.stat-list .player .avatar { width: 30px; height: 30px; font-size: 0.75rem; }
.stat-list__pos { font: 700 0.9rem var(--font-display); color: var(--faint); text-align: center; }
.stat-list__value { font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-list__value small { font: 500 0.75rem var(--font-body); color: var(--faint); }
.stat-list--bars li { grid-template-rows: auto auto; row-gap: 6px; }
.stat-list--bars .bar, .stat-list--bars .wdl { grid-column: 2 / -1; }
.bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-3)); transition: width 0.8s var(--ease); }
.wdl { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge--ok { background: rgba(74, 222, 128, 0.12); color: var(--success); border-color: rgba(74, 222, 128, 0.35); }

.net, .move { font-weight: 700; font-variant-numeric: tabular-nums; }
.net--up, .move--up { color: var(--success); }
.net--down, .move--down { color: #f87171; }
.net--flat, .move--flat { color: var(--faint); }
.move { font-size: 0.85rem; }
.move--new { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-3); }
.board--ecl th:nth-child(3) { width: 130px; }
.board--ecl th:nth-child(4) { width: 90px; }
.board--ecl th:nth-child(5) { width: 90px; }
.board--ecl th:nth-child(6) { width: 70px; }
.board--ecl tr.is-short .player__name { color: var(--muted); }
.board--ecl td small { font-size: 0.75rem; }
@media (max-width: 640px) {
  .board--ecl th:nth-child(5) { width: 64px; }
  .board--ecl th:nth-child(6) { width: 52px; }
}

.ecl-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ecl-hero .ecl-badge { width: clamp(140px, 18vw, 220px); margin: 0; }
.ecl-hero .tz { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; color: var(--primary-3); border: 1px solid var(--line-strong); }
.preview-note { margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed rgba(243, 197, 93, 0.45); color: var(--gold); font-size: 0.85rem; }
.seat-card--lucky { border-color: rgba(74, 222, 128, 0.3); }
.seat-card h3 span { margin-right: 4px; }

/* Future stage: sign in with Discord / link TopDeck (not built yet) */
.account-soon { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-style: dashed; border-color: var(--line-strong); }
.account-soon .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.account-soon .checklist { margin: 18px 0 0; }
@media (max-width: 960px) {
  .account-soon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ecl-hero { grid-template-columns: 1fr; }
  .ecl-hero .ecl-badge { width: 140px; }
}

/* ---------- ECL Live: game by game (feed=ecl-live) ---------- */
.stats--6 { grid-template-columns: repeat(3, 1fr); }
.stat--live .stat__value::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 10px; vertical-align: middle; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.board__more { display: flex; justify-content: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.board__more[hidden] { display: none; }

.heat { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat__day, .heat__hour { font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.heat__hour { text-align: left; white-space: nowrap; overflow: visible; }
.heat__cell { aspect-ratio: 1; border-radius: 4px; background: rgba(176, 150, 255, 0.05); border: 1px solid transparent; cursor: pointer; }
.heat__cell[data-l="1"], .heat__legend [data-l="1"] { background: rgba(139, 92, 246, 0.22); }
.heat__cell[data-l="2"], .heat__legend [data-l="2"] { background: rgba(139, 92, 246, 0.4); }
.heat__cell[data-l="3"], .heat__legend [data-l="3"] { background: rgba(139, 92, 246, 0.6); }
.heat__cell[data-l="4"], .heat__legend [data-l="4"] { background: rgba(167, 139, 250, 0.82); }
.heat__cell[data-l="5"], .heat__legend [data-l="5"] { background: #c4b5fd; }
.heat__cell:hover, .heat__cell.is-on { border-color: var(--text); }
.heat__best { margin: 0 0 18px; color: var(--muted); }
.heat__best strong { color: var(--text); }
.heat__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.heat__readout { margin: 0; color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }
.heat__readout strong { color: var(--text); }
.heat__legend { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 0.75rem; }
.heat__legend span { width: 14px; height: 14px; border-radius: 3px; }
.heat__legend span:first-child { margin-left: 6px; } .heat__legend span:last-child { margin-right: 6px; }


.seat-rate-head { margin-top: clamp(40px, 6vw, 64px); }
.seat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 2px; vertical-align: baseline; }
[data-seat="1"].seat-dot, .seatbar__fill[data-seat="1"] { background: #3987e5; }
[data-seat="2"].seat-dot, .seatbar__fill[data-seat="2"] { background: #d95926; }
[data-seat="3"].seat-dot, .seatbar__fill[data-seat="3"] { background: #199e70; }
[data-seat="4"].seat-dot, .seatbar__fill[data-seat="4"] { background: #c98500; }
.key-item { display: inline-flex; align-items: center; white-space: nowrap; margin-right: 10px; }
.seatbar__key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.85rem; color: var(--muted); margin: 0 0 16px; }
.seatbar__key-bar { display: inline-block; width: 18px; height: 10px; border-radius: 3px; background: var(--muted); margin-right: 2px; }
.seatbar__key-ref { display: inline-block; width: 3px; height: 16px; border-radius: 2px; background: var(--text); margin: 0 4px 0 8px; }
.seatbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.seatbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 118px; align-items: center; gap: 14px; }
.seatbar__label { font-weight: 600; white-space: nowrap; }
.seatbar__track { position: relative; height: 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); }
.seatbar__fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.seatbar__ref { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.seatbar__value { font: 700 1.05rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.seatbar__value small { display: block; font: 500 0.75rem var(--font-body); color: var(--muted); }

.trend__svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.trend__grid { stroke: var(--line); stroke-width: 1; }
.trend__axis { fill: var(--faint); font: 500 11px var(--font-body); }
.trend__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend__cross { stroke: var(--line-strong); stroke-width: 1; }
.trend__dot { stroke: var(--surface); stroke-width: 2; }
.trend__readout { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); min-height: 2.6em; }
.trend__readout strong { color: var(--text); }
@media (max-width: 640px) {
  .stats--6 { grid-template-columns: repeat(2, 1fr); }
  .heat { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .heat__cell { border-radius: 2px; }
  .heat__hour { font-size: 0.62rem; }
  .seatbar { grid-template-columns: 62px minmax(0, 1fr) 96px; gap: 10px; }
}

/* ---------- ECL Live: points race + the lead ---------- */
.race__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.race__who { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); font: 600 0.85rem var(--font-body); cursor: pointer; }
.race__who:hover { border-color: var(--primary-2); }
.race__who[aria-pressed="true"] { border-color: var(--primary-2); background: rgba(139, 92, 246, 0.2); }
.race__pos { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font: 700 0.72rem var(--font-display); }
.race__pts { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.race__line { fill: none; stroke: rgba(169, 161, 198, 0.35); stroke-width: 1.5; stroke-linejoin: round; }
.race__line.is-on { stroke: #a78bfa; stroke-width: 3; }
.race__label { fill: var(--faint); font: 500 11px var(--font-body); }
.race__label.is-on { fill: var(--text); font-weight: 700; }
.race__start { stroke: var(--line-strong); stroke-dasharray: 4 4; }
.race__readout small { color: var(--faint); }
.race-lead { margin-top: 20px; }
.race-lead h3 { display: flex; align-items: center; gap: 10px; }
.lead__list { list-style: none; margin: 0 0 12px; padding: 0; }
.lead__change { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.lead__change[hidden] { display: none; }
.lead__when { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .lead__change { grid-template-columns: 1fr; gap: 2px; }
  .race__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .race__who { min-width: 0; padding: 5px 8px 5px 5px; font-size: 0.78rem; gap: 6px; }
  .race__who .race__pts { margin-left: auto; }
}
.race__who { white-space: nowrap; }
.race__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.race__pos, .race__pts { flex: none; }

/* ---------- Meta tab (meta.html) ---------- */
.meta-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin-top: 28px; }
.meta-views, .meta-sort { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8, 6, 14, 0.6); }
.meta-views button, .meta-sort button { border: 0; background: transparent; color: var(--muted); font: 600 0.9rem var(--font-body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.meta-views button[aria-pressed="true"], .meta-sort button[aria-pressed="true"] { background: linear-gradient(135deg, #9a6bff, #6d3be0); color: #fff; }
.meta-sort button { padding: 7px 12px; font-size: 0.82rem; }
.meta-pick { display: grid; gap: 6px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 0; flex: 1 1 280px; max-width: 520px; }
.meta-pick[hidden] { display: none; }
.meta-pick select { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: 500 0.95rem var(--font-body); text-transform: none; letter-spacing: 0; max-width: 100%; }
[data-meta-view][hidden], #champion[hidden], #topcut[hidden], #meta[hidden], #stats[hidden], #decks[hidden] { display: none; }
.meta-tiles { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.meta-tiles .stat__value { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.notice[hidden] { display: none; }
.meta-pair { margin-top: 20px; }
.muted { color: var(--muted); }

/* commander art, colour pips */
.cmd-art { display: inline-flex; flex: none; overflow: hidden; border-radius: 10px; background: var(--surface-3); }
.cmd-art img { display: block; width: 100%; height: 100%; object-fit: cover; min-width: 0; flex: 1; }
.cmd-art--thumb { width: 64px; height: 44px; border-radius: 8px; }
.cmd-art--hero { width: 100%; height: 190px; border-radius: 14px; }
.cmd-art--none { background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.pips { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.pip { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.35); }
.pip--W { background: #f4ecd0; } .pip--U { background: #3b82d6; } .pip--B { background: #5b5566; } .pip--R { background: #e0553d; } .pip--G { background: #2f9e5f; } .pip--C { background: #b8b3c6; }
.cmd-line { display: inline-flex; align-items: center; min-width: 0; }
.who { font-weight: 650; color: var(--text); }
.meta-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.meta-player > span:last-child { display: grid; gap: 3px; min-width: 0; }
.meta-player small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tables inside .board */
.board .meta-table { table-layout: auto; }
.board .meta-table th { width: auto; }
.meta-table td small { display: block; color: var(--faint); font-size: 0.75rem; }
.meta-table td.num small { text-align: right; }
.meta-table tr.is-faint { opacity: 0.55; }
.board__note { padding: 0 20px 16px; margin-top: 10px; }
.board__tools .muted { font-size: 0.85rem; }
.meta-bar { display: inline-block; vertical-align: middle; width: 100%; max-width: 160px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.meta-bar__fill { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.meta-bar__fill--W { background: #f4ecd0; } .meta-bar__fill--U { background: #3b82d6; } .meta-bar__fill--B { background: #8a8199; } .meta-bar__fill--R { background: #e0553d; } .meta-bar__fill--G { background: #2f9e5f; }

/* result pills */
.res { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 5px 10px; border-radius: 999px; font: 700 0.72rem var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted); }
.res--W { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; border-color: transparent; }
.res--D { background: rgba(139, 92, 246, 0.18); color: var(--primary-3); }
.res--L { background: rgba(255, 255, 255, 0.04); color: var(--faint); }

/* champion's road */
.road { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.road__champ { display: grid; gap: 16px; }
.road__champ h3 { margin: 10px 0 6px; font-size: 1.6rem; }
.road__cmd { margin: 0; color: var(--muted); }
.road__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.road__facts div { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.road__facts dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.road__facts dd { margin: 4px 0 0; font: 700 1.15rem var(--font-display); }
.road__steps { list-style: none; margin: 0; padding: 8px 20px; }
.road__step { display: grid; grid-template-columns: 70px 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.road__step:last-child { border-bottom: 0; }
.road__step--cut { background: linear-gradient(90deg, rgba(243, 197, 93, 0.06), transparent 60%); }
.road__round { font: 700 0.95rem var(--font-display); color: var(--primary-3); }
.road__step--cut .road__round { color: var(--gold); }
.road__seat { display: grid; gap: 2px; font-size: 0.8rem; color: var(--muted); }
.road__seat b { color: var(--text); font-family: var(--font-display); }
.road__opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; font-size: 0.9rem; }
.road__opps span { display: grid; min-width: 0; }
.road__opps .who, .road__opps small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.road__opps small { color: var(--faint); font-size: 0.75rem; }
.road__step--bye .road__opps { display: block; color: var(--muted); }

/* Top Cut: standings + bracket */
.meta-cut { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.bracket__round + .bracket__round { margin-top: 18px; }
.bracket__round h3 { margin: 0 0 10px; font-size: 1.05rem; }
.bracket__byes { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.bracket__byes b { color: var(--gold); }
.bracket__pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pod { padding: 12px 14px; }
.pod h4 { margin: 0 0 8px; font: 700 0.78rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pod__p { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 0.88rem; min-width: 0; }
.pod__p i { font-style: normal; font: 700 0.75rem var(--font-display); color: var(--primary-3); width: 30px; flex: none; }
.pod__p .who { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod__p.is-win .who { color: var(--gold-2); font-weight: 700; }
.meta-facts { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.meta-facts b { color: var(--text); }

/* colours of the field */
.meta-colors { margin-bottom: 20px; }
.colors { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.colors__row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 6px 0; }
.colors__row .meta-bar { max-width: none; }
.colors__row b { text-align: right; font-family: var(--font-display); }
.colors__name { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.colors__combos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.colors__combos li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.colors__combos small { color: var(--faint); text-align: right; }

/* event stats lists */
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.leaders li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.leaders li.is-out { opacity: 0.6; }
.leaders li.cutline { display: block; padding: 0; border: 0; }
.leaders b { font-family: var(--font-display); white-space: nowrap; }
.leaders b small { color: var(--faint); font-weight: 500; font-family: var(--font-body); }
.leaders__round { color: var(--primary-3); font: 600 0.82rem var(--font-display); }
.upsets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.upsets li { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.upsets small { color: var(--faint); }
.upsets__when { font-size: 0.78rem; }

/* decklists and cards */
.deck { margin-bottom: 14px; }
.deck summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.deck h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.deck__cmd { color: var(--gold-2); margin: 10px 0 14px; font-weight: 600; }
.deck__cards { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; font-size: 0.86rem; }
.deck__cards li { break-inside: avoid; padding: 2px 0; color: var(--muted); }
.deck__cards i { font-style: normal; display: inline-block; width: 18px; color: var(--primary-3); font-weight: 700; }
.spicy { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 20px; font-size: 0.86rem; }
.spicy li { break-inside: avoid; display: grid; padding: 4px 0; }
.spicy small { color: var(--faint); }

/* season */
.meta-season-trend, .meta-season-att { margin-top: 20px; }
.season-list { list-style: none; margin: 0; padding: 0; }
.season-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.season-list li > span:nth-child(2) { display: grid; min-width: 0; }
.season-list li > span:nth-child(2) small { color: var(--faint); font-size: 0.78rem; }
.season-list li > .meta-player { display: flex; }
.season-list__v { display: grid; justify-items: end; min-width: 56px; }
.season-list__v b { font: 700 1.1rem var(--font-display); }
.season-list__v small { color: var(--faint); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.season-trend { overflow-x: auto; }
.meta-table--grid { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.meta-table--grid th, .meta-table--grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.meta-table--grid th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.meta-table--grid .num { text-align: center; }
.heat-cell { display: inline-block; min-width: 46px; padding: 4px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.heat-cell[data-l="0"] { color: var(--faint); }
.heat-cell[data-l="1"] { background: rgba(139, 92, 246, 0.14); } .heat-cell[data-l="2"] { background: rgba(139, 92, 246, 0.28); }
.heat-cell[data-l="3"] { background: rgba(139, 92, 246, 0.45); } .heat-cell[data-l="4"] { background: rgba(167, 139, 250, 0.65); } .heat-cell[data-l="5"] { background: #a78bfa; color: #120c22; }
.attendance { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attendance li { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 0.9rem; }
.attendance .meta-bar { max-width: none; }
.attendance b { text-align: right; font-family: var(--font-display); }
.attendance__when { color: var(--faint); font-size: 0.8rem; }
.attendance__name { display: grid; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attendance__name small { color: var(--faint); font-size: 0.75rem; }

@media (max-width: 960px) {
  .road, .meta-cut, .colors { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .meta-tiles { grid-template-columns: repeat(2, 1fr); }
  .road__step { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .road__seat { display: none; }
  .road__opps { grid-template-columns: 1fr; gap: 4px; }
  .cmd-art--thumb { width: 44px; height: 32px; }
  .attendance li { grid-template-columns: 52px minmax(0, 1fr) 36px; }
  .attendance .meta-bar { display: none; }
  .season-list li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .season-list li > .season-list__v:last-child { display: none; }
  .meta-controls .meta-pick { flex-basis: 100%; }
  .meta-table .cmd-art--thumb { display: none; }
  .board .meta-table th, .board .meta-table td { padding: 10px 8px; }
  .board .meta-table th:first-child, .board .meta-table td:first-child { padding-left: 14px; }
  .meta-player { gap: 0; }
}
.meta-table td.num { white-space: nowrap; }
.cmd-line { max-width: 100%; }
.cmd-line > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-table td small.cmd-line { display: flex; align-items: center; min-width: 0; }
.spicy-card { margin-top: 20px; }
.meta-stats .seatbar { grid-template-columns: 64px minmax(0, 1fr) 70px; gap: 10px; }

/* ---------- Back to top (every page, added by main.js) ---------- */
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #9a6bff, #6d3be0); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px -10px var(--glow), 0 0 0 1px rgba(8, 6, 14, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.7); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; } }
.site-header.is-open ~ .to-top { opacity: 0; visibility: hidden; }

/* ---------- ECL Live: league records ---------- */
.records { margin-top: 20px; }
.records h3 { margin: 0 0 18px; }
.records__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; margin: 0; }
.records__grid dd { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--font-display); color: var(--primary-3); letter-spacing: -0.02em; }
.records__grid dt { margin-top: 6px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.records__grid p { margin: 4px 0 0; color: var(--text); font-size: 0.95rem; }
.records[hidden] { display: none; }
@media (max-width: 760px) { .records__grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; } }

/* ---------- ECL Live: months timeline ---------- */
.ecl-months { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; }
.ecl-months[hidden] { display: none; }
.ecl-months__list { list-style: none; margin: 0; padding: 4px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8, 6, 14, 0.6); backdrop-filter: blur(8px); }
.ecl-months__list::-webkit-scrollbar { display: none; }
.ecl-months__list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); font: 600 0.9rem var(--font-body); text-decoration: none; }
.ecl-months__list a:hover { color: var(--text); background: rgba(139, 92, 246, 0.12); }
.ecl-months__list a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #9a6bff, #6d3be0); }
.ecl-months__live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.ecl-months__step { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none;
  border: 1px solid var(--line-strong); background: rgba(8, 6, 14, 0.6); color: var(--text); font: 600 1.3rem/1 var(--font-body); }
.ecl-months__step:hover { border-color: var(--primary-2); }
.ecl-months__step.is-off { opacity: 0.35; pointer-events: none; }
.ecl-months__list li[hidden] { display: none; }
@media (max-width: 640px) {
  .ecl-months__step { display: none; }
  .ecl-months__list a { padding: 8px 12px; }
  .ecl-months__more button { padding: 8px 12px; }
}
.ecl-months__more button { padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(139, 92, 246, 0.12); color: var(--primary-3);
  font: 600 0.85rem var(--font-body); white-space: nowrap; cursor: pointer; }
.ecl-months__more button:hover { background: rgba(139, 92, 246, 0.24); color: var(--text); }
.ecl-months__cut { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--primary-3); flex: none; display: inline-block; }
.ecl-months__note { margin: -16px 0 24px; color: var(--muted); font-size: 0.92rem; }
.ecl-months__note .ecl-months__cut { margin-right: 8px; vertical-align: 1px; }
.ecl-months__note a { color: var(--text); }
.ecl-months__note a:hover { color: var(--primary-3); }

/* ECL Live, a finished month: the champion + the Top Cut, commanders under the names */
.player__text { display: grid; min-width: 0; }
.player__cmd { font-size: 0.75rem; font-weight: 400; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board--final th:last-child, .board--final td:last-child { display: none; }
.ecl-title { margin-bottom: 20px; }
.ecl-title[hidden], .race-lead[hidden] { display: none; }
.ecl-champ .badge--ok { margin-top: 4px; }
.ecl-cut { padding: 18px 20px; }
.ecl-cut .pod__p { align-items: center; }
.pod__who { display: grid; min-width: 0; }
.pod__who small { color: var(--faint); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecl-cut .pod__p.is-win .who { color: var(--primary-3); font-weight: 700; }
.ecl-cut .pod__p.is-champ { margin: 0 -8px; padding: 4px 8px; border-radius: 8px; background: rgba(139, 92, 246, 0.16); }
.race__who--champ { border-color: rgba(74, 222, 128, 0.45); }
.race__tag { padding: 2px 8px; font-size: 0.68rem; }
@media (max-width: 640px) { .race__tag { display: none; } }
@media (max-width: 860px) { .road.ecl-title { grid-template-columns: 1fr; } }

/* ---------- ECL Live: the champion's ring of each month ---------- */
.ring-section { padding-bottom: 0; }
.ring-prize { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 32px; }
.ring-prize[hidden], .ring-row[hidden] { display: none; }
.ring__img { display: block; height: auto; aspect-ratio: 1; overflow: hidden; font-size: 0; color: transparent; }   /* a slow or missing image never spills its alt text */
.ring-prize__ring .ring__img { width: 170px; filter: drop-shadow(0 14px 30px rgba(224, 173, 69, 0.25)); }
.ring-prize__text h2 { margin: 6px 0 10px; }
.ring-prize__text p { margin: 0; color: var(--muted); max-width: 620px; }
.ring-prize__text p b { color: var(--text); }
.ring-prize__text .ring-prize__more { margin-top: 10px; font-size: 0.9rem; }
.ring-prize__more a { color: var(--primary-3); font-weight: 600; }
.ring-prize__more a:hover { color: var(--text); }
.ring-prize__text .btn-row { margin-top: 18px; }
.ring-row { margin-top: 20px; }
.ring-row__title { margin: 0 0 12px; font-size: 1rem; color: var(--muted); }
.ring-row__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ring-row__item a, .ring-row__item > span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; text-align: center;
  text-decoration: none; color: var(--text); border: 1px solid transparent; }
.ring-row__item a:hover { background: rgba(139, 92, 246, 0.1); }
.ring-row__item .ring__img { width: 100%; max-width: 64px; margin-bottom: 4px; }
.ring-row__item b { font: 700 0.8rem var(--font-display); }
.ring-row__item small { max-width: 100%; font-size: 0.7rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-row__item--won small { color: var(--primary-3); }
.ring-row__item--live small { color: var(--success); font-weight: 600; }
.ring-row__item--cut small { color: var(--primary-3); font-weight: 600; }
.ring-row__item--future .ring__img, .ring-row__item--open .ring__img { filter: grayscale(0.9) brightness(0.5); }
.ring-row__item.is-here a { border-color: var(--primary-2); background: rgba(139, 92, 246, 0.14); }
.ecl-champ__ring .ring__img { width: 52px; float: right; }
@media (max-width: 960px) {
  .ring-prize { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 20px; gap: 16px; }
  .ring-prize__ring .ring__img { width: 140px; }
  .ring-prize__text .btn-row { justify-content: center; }
  .ring-row__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .ring-row__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ecl-deck { grid-column: 1 / -1; margin: 0; padding: 18px 22px; }
.ecl-deck summary { list-style: none; align-items: center; }
.ecl-deck summary::-webkit-details-marker { display: none; }
.ecl-deck summary h3 { margin: 0; font-size: 1.1rem; }
.ecl-deck .deck__cmd { color: var(--primary-3); margin: 0; }
.ecl-deck__toggle { margin-left: auto; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font: 600 0.82rem var(--font-body); }
.ecl-deck__toggle::after { content: " · Show list"; color: var(--primary-3); }
.ecl-deck[open] .ecl-deck__toggle::after { content: " · Hide"; }
.ecl-deck summary:hover .ecl-deck__toggle { border-color: var(--primary-2); }
.ecl-deck[open] summary { margin-bottom: 16px; }
.winpct { font-variant-numeric: tabular-nums; font-weight: 600; }
.board--ecl abbr { text-decoration: none; }
.nowrap { white-space: nowrap; }

/* ---------- Contact form (homepage, before the FAQ) ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__intro h2 { margin: 10px 0 14px; }
.contact__intro p { color: var(--muted); max-width: 440px; }
.contact__form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: grid; gap: 8px; font: 600 0.85rem var(--font-body); color: var(--muted); }
.contact__form input, .contact__form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); font: 400 1rem var(--font-body); }
.contact__form textarea { resize: vertical; min-height: 130px; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.contact__form [aria-invalid="true"] { border-color: var(--danger, #f87171); }
.contact__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* the bot trap: people never see it */
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact__foot .btn[disabled] { opacity: 0.6; cursor: progress; }
.contact__status { margin: 0; font-size: 0.92rem; color: var(--muted); }
.contact__status[data-kind="ok"] { color: var(--success); }
.contact__status[data-kind="error"] { color: var(--danger, #f87171); }
.contact__form .data-note { margin: 0; }
@media (max-width: 760px) {
  .contact, .contact__row { grid-template-columns: 1fr; }
}

/* ECL Live, Top Cut in progress: the live pods, and three tiles instead of six */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat[hidden] { display: none; }
.pod--live h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pod__state { font-style: normal; padding: 2px 10px; border-radius: 999px; font: 700 0.68rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.pod__state--on { color: var(--primary-3); background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.4); }
.pod__state--done { color: var(--muted); border: 1px solid var(--line-strong); }
.pod--live .pod__p { align-items: center; }
.pod--live .pod__who { flex: 1; min-width: 0; }
.pod__won { padding: 1px 8px; border-radius: 999px; font: 700 0.68rem var(--font-body); color: #0b2a17; background: var(--success); }
.pod--live .pod__p.is-win .who { color: var(--primary-3); }
@media (max-width: 640px) { .stats--3 { grid-template-columns: 1fr; } }
.bracket__pods:has(.pod--live) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .bracket__pods:has(.pod--live) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bracket__pods:has(.pod--live) { grid-template-columns: 1fr; } }

/* P9Q: the playmat pre-order button under the playmat */
.p9q__preorder { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.p9q__deadline { margin: 0; font-size: 0.9rem; color: var(--muted); }
.p9q__deadline strong { color: var(--gold-2); }
@media (max-width: 640px) { .p9q__preorder .btn { width: 100%; justify-content: center; } }

/* Homepage league cards: last month's Top Cut / champion line */
.ecl-live__prev { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.ecl-live__prev a, .league-next a { color: var(--primary-3); font-weight: 600; }
.league-next .ecl-months__cut, .ecl-live__prev .ecl-months__cut { margin-right: 8px; vertical-align: 1px; }

/* ECL Live, a finished month: the month's swings (climbs and falls over 5 games) */
.swing__sub { margin: -4px 0 12px; font-size: 0.85rem; }
.swings { list-style: none; margin: 0; padding: 0; }
.swing { padding: 12px 0; border-bottom: 1px solid var(--line); }
.swing:last-child { border-bottom: 0; }
.swing__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.swing__who { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.swing__ranks { font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--text); }
.swing__head .net { margin-left: auto; font-weight: 700; }
.swing__detail { margin: 4px 0 0; font-size: 0.8rem; color: var(--faint); }

.yt-icon { display: inline-block; vertical-align: middle; margin-right: 6px; }
