/* speedrunners2.community - design system built from the game's own UI:
   Jost (menu text) + League Gothic (display), indigo/lavender/yellow palette,
   slanted "speed" shapes, striped header strips, yellow-tail buttons. */

@font-face { font-family: "Jost"; src: url("/fonts/Jost-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "League Gothic"; src: url("/fonts/LeagueGothic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "League Gothic Condensed"; src: url("/fonts/LeagueGothic_Condensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --deep: #140C42; --bg: #16104a; --ink: #1C0E5A; --indigo: #271B6E; --primary: #3E31A0; --primary-hi: #4A3FBF;
  --blue: #457EE6; --blue-soft: #5F8CE8; --cyan: #33C7DC; --lav: #C2C1EF; --lav-2: #E3E3F8; --surface: #EDEDFA;
  --yellow: #FADC58; --orange: #FFC148; --orange-deep: #FF9E45; --red: #FF6F6F; --green: #7EDA4F;
  --text: #EEF0FF; --muted: rgba(226, 225, 248, .72); --dim: rgba(226, 225, 248, .5);
  --hair: rgba(194, 193, 239, .18); --hair-2: rgba(194, 193, 239, .32);
  --card: rgba(24, 16, 82, .74); --card-2: rgba(30, 21, 96, .82);
  --gold: #FFD24A; --silver: #D9DCE6; --bronze: #DB9A61;
  --wrap: 1180px; --r: 14px; --skew: -8deg;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "League Gothic", "League Gothic Condensed", Impact, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--deep); color: var(--text); font: 16px/1.55 var(--font); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--deep) url("/assets/pattern.png") center/cover no-repeat; opacity: .9; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 15% -10%, rgba(69, 126, 230, .28), transparent 60%), radial-gradient(800px 500px at 100% 10%, rgba(250, 220, 88, .12), transparent 60%), linear-gradient(180deg, rgba(20, 12, 66, .35), rgba(20, 12, 66, .85) 60%, #0e0834); }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: .01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.y { color: var(--yellow); } .c { color: var(--cyan); } .o { color: var(--orange); }
.mono, .code { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: .92em; }
code, kbd { font-family: ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .35); border: 1px solid var(--hair); border-radius: 6px; padding: 1px 6px; font-size: .92em; color: #fff; }
kbd { background: var(--lav-2); color: var(--ink); border-color: var(--indigo); font-weight: 700; box-shadow: inset 0 -2px 0 rgba(39, 27, 110, .4); }
hr.speed { border: 0; height: 4px; margin: 28px 0; background: linear-gradient(90deg, var(--yellow) 0 60%, var(--cyan) 60% 78%, transparent 78%); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }

/* display type - the game's big italic caps */
.display { font-family: var(--display); font-style: italic; font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
h1.display { font-size: clamp(46px, 7.2vw, 96px); margin: 0 0 14px; text-shadow: 0 3px 0 rgba(20, 12, 66, .6), 0 12px 40px rgba(20, 12, 66, .5); }
h2.display { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 10px; background: var(--yellow); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 62ch; }

/* ── top bar (the game's header: logo left, tabs right) ── */
.topbar { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(23, 14, 75, .97), rgba(30, 21, 96, .94)); border-bottom: 1px solid var(--hair); backdrop-filter: blur(10px); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; color: var(--text); padding: 4px 0; transition: transform .2s; }
.brand:hover { text-decoration: none; transform: scale(1.04); }
.brand img { width: auto; height: 58px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.nav { margin-left: auto; display: flex; gap: 5px; flex-wrap: nowrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(194, 193, 239, .16); border: 1px solid rgba(194, 193, 239, .18); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .18s, color .18s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.tab:hover { background: var(--lav-2); color: var(--ink); text-decoration: none; transform: translateY(-2px) scale(1.05); }
.tab.on { background: var(--yellow); color: var(--ink); border-color: transparent; }
.tab.on:hover { background: var(--yellow); }
.tab.discord { background: linear-gradient(105deg, #5865F2 0 78%, #3b46c9 78%); border-color: transparent; }
.tab.discord:hover { background: linear-gradient(105deg, #7a84ff 0 78%, #5a65e6 78%); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--hair-2); background: rgba(194, 193, 239, .12); border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }
@media (max-width: 1280px) { .brand img { height: 52px; } }
@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 4px; padding: 12px 20px 16px; background: rgba(23, 14, 75, .98); border-bottom: 1px solid var(--hair-2); }
  .nav.open { display: flex; }
  .tab { clip-path: none; border-radius: 8px; justify-content: center; }
}

/* ── buttons (TabButtonYellow / ValueButton shapes) ──
   clip-path also clips box-shadow, so hover feedback is a background flood + lift + a light
   sweep drawn inside the shape instead of a glow. */
.btn { --tail: 78%; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 30px 13px 22px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(194, 193, 239, .14); border: 2px solid rgba(194, 193, 239, .35); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s, color .18s, border-color .18s; text-decoration: none; cursor: pointer; line-height: 1.1; white-space: nowrap; }
.btn::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.btn:hover::before { animation: sweep .55s ease-out; }
@keyframes sweep { 0% { left: -40%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
.btn > * { position: relative; z-index: 1; }
.btn:hover { text-decoration: none; transform: translateY(-3px) scale(1.05); background: rgba(194, 193, 239, .3); border-color: rgba(194, 193, 239, .6); }
.btn:active { transform: translateY(0) scale(1); }
.btn-primary { color: var(--ink); border-color: var(--indigo); background: linear-gradient(104deg, var(--surface) 0 var(--tail), #FECE5B var(--tail) calc(var(--tail) + 9%), var(--orange) calc(var(--tail) + 9%)); }
.btn-primary:hover { background: var(--yellow); border-color: #E8C640; color: var(--ink); }
.btn-indigo { color: #fff; border-color: var(--indigo); background: linear-gradient(104deg, var(--primary) 0 82%, var(--indigo) 82%); }
.btn-indigo:hover { background: var(--primary-hi); border-color: var(--blue); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: var(--lav-2); color: var(--ink); border-color: var(--lav-2); }
.btn-discord { color: #fff; border-color: #3b46c9; background: linear-gradient(104deg, #5865F2 0 82%, #3b46c9 82%); }
.btn-discord:hover { background: #7a84ff; border-color: #7a84ff; color: #fff; }
.btn-sm { padding: 9px 20px 9px 16px; font-size: 12.5px; }
.btn-lg { padding: 16px 40px 16px 28px; font-size: 16px; }
.btn .ver { font-family: ui-monospace, Consolas, monospace; font-weight: 700; opacity: .8; font-size: .9em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── hero ──
   Parallax: site.js writes --sy (page scroll) and --mx/--my (pointer, -1..1) on each .hero;
   the layers below move at different rates. Nothing moves without JS or with reduced motion. */
.hero { --sy: 0px; --mx: 0; --my: 0; position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); isolation: isolate; }
.hero.home { min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: -14% 0; z-index: -1; background: url("/assets/keyart.jpg") center 28%/cover no-repeat; transform: translate3d(0, calc(var(--sy) * .3), 0); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 66, .96) 0 30%, rgba(20, 12, 66, .72) 55%, rgba(20, 12, 66, .35)), linear-gradient(180deg, rgba(20, 12, 66, .2), rgba(20, 12, 66, .05) 50%, var(--deep)); }
.hero-bg.city { background-image: url("/assets/city-bg.jpg"); background-position: center 60%; }
.hero-bg.flat { background: linear-gradient(135deg, #1d1466, #16104a 60%, #1a0f55); }
.hero-bg.flat::after { background: url("/assets/speedlines.png") center/cover no-repeat; opacity: .2; mix-blend-mode: screen; }
/* the community-thumbnail look: electric blue gradient + halftone dots fading out to the right */
.hero-bg.thumb { background: linear-gradient(165deg, #38B6EC 0%, #2E6AD9 32%, #2331CC 62%, #1B1A9E 100%); }
.hero-bg.thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .3) 0 1.6px, transparent 2.4px), radial-gradient(circle, rgba(255, 255, 255, .16) 0 2.4px, transparent 3.2px); background-size: 13px 13px, 26px 26px; background-position: 0 0, 6px 6px; -webkit-mask: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .15) 58%, transparent 72%); mask: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .15) 58%, transparent 72%); transform: translate3d(0, calc(var(--sy) * -.1), 0); }
.hero-bg.thumb::after { background: radial-gradient(48% 70% at 78% 62%, rgba(255, 193, 72, .22), transparent 70%), linear-gradient(180deg, rgba(20, 12, 66, 0) 60%, var(--deep) 100%); }
.hero .wrap { position: relative; }
.hero-logo { width: min(560px, 82vw); height: auto; display: block; margin-bottom: 18px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5)); }
.hero .lede { margin-bottom: 26px; }
.hero.home .lede { color: rgba(255, 255, 255, .9); max-width: 66ch; }
.hero.home .lede a { color: var(--yellow); font-weight: 700; }
.hero.home h1.display { text-shadow: 0 3px 0 rgba(20, 12, 66, .5), 0 14px 40px rgba(20, 12, 66, .55); }
.hero-char { position: absolute; right: -2%; bottom: -12%; height: 118%; width: auto; z-index: -1; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); pointer-events: none; transform: translate3d(calc(var(--mx) * -14px), calc(var(--sy) * .14 + var(--my) * -10px), 0); will-change: transform; }
.hero.home .hero-char { right: -7%; bottom: -10%; height: 112%; }
@media (min-width: 1500px) { .hero.home .hero-char { right: 0; } }
.hero-char.l { right: auto; left: -6%; transform: translate3d(calc(var(--mx) * -14px), calc(var(--sy) * .14 + var(--my) * -10px), 0) scaleX(-1); }
/* the yellow-orange rim glow from the community thumbnail */
.hero-char.glow { filter: drop-shadow(0 0 1px var(--yellow)) drop-shadow(0 0 2px var(--orange)) drop-shadow(0 0 22px rgba(255, 158, 69, .6)) drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
@media (max-width: 1100px) { .hero-char { height: 92%; opacity: .55; } }
@media (max-width: 760px) { .hero-char { display: none; } .hero.home { min-height: 0; } }
.hero-kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.kpi { display: flex; flex-direction: column; }
.kpi b { font-family: var(--display); font-style: italic; font-size: 36px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero.home .kpi span { color: rgba(255, 255, 255, .78); }
.live-note { margin: 12px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(126, 218, 79, .7); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(126, 218, 79, .7); } 70% { box-shadow: 0 0 0 9px rgba(126, 218, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 218, 79, 0); } }

/* ── sections / panels / cards ── */
.section { padding: clamp(36px, 5vw, 72px) 0; }
.section.tight { padding: 26px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; color: var(--text); transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s, background .22s, box-shadow .22s; }
a.card:hover { text-decoration: none; transform: translateY(-6px) scale(1.015); border-color: var(--yellow); background: var(--card-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(250, 220, 88, .35); }
a.card:hover h3 { color: var(--yellow); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: #0e0834; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
a.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 3px 10px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.card.light { background: var(--lav-2); color: var(--ink); border: 0; border-left: 6px solid var(--blue-soft); border-bottom: 6px solid var(--blue-soft); border-radius: 10px; position: relative; }
.card.light::after { content: ""; position: absolute; right: 0; top: 0; width: 90px; height: 100%; background: repeating-linear-gradient(-60deg, transparent 0 9px, rgba(65, 94, 200, .12) 9px 16px); mask: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.card.light .card-body p, .card.light .card-body { color: #2a2170; }
.card.light h3 { color: var(--ink); }
.card.light a { color: var(--primary); font-weight: 700; }
.card.light .ico { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 2px 0 rgba(39, 27, 110, .25)); }
.panel { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.panel-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: linear-gradient(90deg, #F2F1FC, var(--lav-2)); color: var(--ink); overflow: hidden; }
.panel-head::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 140px; background: repeating-linear-gradient(-60deg, transparent 0 10px, rgba(65, 94, 200, .22) 10px 18px); mask: linear-gradient(90deg, transparent, #000 70%); }
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.panel-sub { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4d43a5; position: relative; z-index: 1; }
.panel-sub a, .panel-head a { color: var(--indigo); text-decoration: underline; text-decoration-color: rgba(39, 27, 110, .35); text-underline-offset: 3px; }
.panel-body { padding: 16px 18px 18px; }
.panel-body > :last-child { margin-bottom: 0; }
.callout { border-left: 4px solid var(--yellow); background: rgba(250, 220, 88, .08); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.callout.info { border-color: var(--cyan); background: rgba(51, 199, 220, .08); }
.callout.warn { border-color: var(--orange-deep); background: rgba(255, 158, 69, .1); }
.note { color: var(--muted); font-size: 14px; }
.note.loading { display: flex; align-items: center; gap: 10px; padding: 14px 4px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 6px 0 18px; }
.stat { background: rgba(0, 0, 0, .3); border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; }
.stat-v { font-family: var(--display); font-style: italic; font-size: 36px; line-height: 1; color: #fff; }
.stat-k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 6px; }
.stat-s { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ── the running loader (the game's tournament-screen runner sheet, 4x8 frames) ── */
.runner { width: 32px; height: 32px; background: url("/assets/runner-sheet.png") 0 0/400% 800%; animation: run 1.1s steps(32) infinite; display: inline-block; }
@keyframes run { to { background-position: -400% -800%; } }

/* ── tables / boards ── */
.board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 8px 12px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.board td { padding: 9px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; white-space: nowrap; }
.board tbody tr:hover { background: rgba(194, 193, 239, .08); }
.board tr.me { background: rgba(69, 126, 230, .18); }
.board .num, .board th.num { text-align: right; }
.board .rank { width: 56px; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted); text-align: right; padding-right: 14px; }
.board .rank.r1 { color: var(--gold); } .board .rank.r2 { color: var(--silver); } .board .rank.r3 { color: var(--bronze); }
.board .who { display: flex; align-items: center; gap: 10px; min-width: 200px; white-space: normal; }
.board .who a { color: #fff; font-weight: 700; }
.board .pts { color: var(--yellow); font-weight: 800; }
.board .grow { width: 100%; }
.board .lg { display: inline-flex; align-items: center; gap: 8px; }
.board .empty td { text-align: center; color: var(--muted); padding: 26px; }
/* the top-N widgets (home / competitive): fixed columns so a long name never pushes the score out of view */
table.board:has(tbody[data-top]) { table-layout: fixed; }
table.board:has(tbody[data-top]) td.rank { width: 42px; padding-right: 8px; }
table.board:has(tbody[data-top]) td.num { width: 108px; }
table.board:has(tbody[data-top]) td.grow { overflow: hidden; text-overflow: ellipsis; }
/* live streams inside a half-width panel: compact two-up cards */
[data-streams] .grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
[data-streams] .card-body { padding: 10px 12px 12px; gap: 4px; }
[data-streams] .card-body h3 { font-size: 15px; }
[data-streams] .card-body p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-streams] .chip { font-size: 10px; }
.board .dartmark { font-size: 10px; font-weight: 800; letter-spacing: .12em; background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 4px; }
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--blue)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .42); flex: none; position: relative; overflow: hidden; }
.avatar::before { content: attr(data-initial); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.league { vertical-align: middle; }
.tier { display: inline-block; padding: 2px 10px; border-radius: 6px; background: rgba(194, 193, 239, .16); border: 1px solid var(--hair-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 8px; color: #fff; font-weight: 700; font-size: 13px; }
.pager span.cur { background: var(--lav-2); color: var(--ink); border-color: transparent; }
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.subtabs a { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--hair-2); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.subtabs a.on { background: var(--yellow); color: var(--ink); border-color: transparent; }
.subtabs a:hover { text-decoration: none; background: rgba(194, 193, 239, .18); }
.subtabs a.on:hover { background: var(--yellow); }
.search { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.search input { flex: 1; min-width: 0; padding: 12px 16px; font: inherit; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--hair-2); border-radius: 10px; outline: none; }
.search input:focus { border-color: var(--yellow); }
.search input::placeholder { color: var(--dim); }

/* ── map / character / item grids ── */
.maps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.map { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); background: #0e0834; color: #fff; aspect-ratio: 16/11; transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .22s; }
.map img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.map:hover img { transform: scale(1.1); }
.map:hover { text-decoration: none; border-color: var(--yellow); transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.map .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(20, 12, 66, .92)); font-weight: 800; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.map .lbl small { font-weight: 700; color: var(--yellow); font-size: 12px; }
.chars { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(172px, 100%), 1fr)); }
.char { text-align: center; padding: 14px 10px 12px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s; }
.char:hover { transform: translateY(-4px); border-color: rgba(250, 220, 88, .6); }
.char img { width: 120px; height: 111px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.char:hover img { transform: scale(1.08) translateY(-2px); }
.char b { display: block; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; margin-top: 6px; }
.char b .dartmark { font: 800 10px/1 var(--font); font-style: normal; letter-spacing: .12em; background: var(--yellow); color: var(--ink); padding: 2px 6px; border-radius: 4px; vertical-align: middle; position: relative; top: -3px; }
.char span { font-size: 13px; color: var(--muted); display: block; line-height: 1.35; }
.chars.mini .char { padding: 10px 6px 8px; }
.chars.mini .char b { font-size: 15px; margin-top: 2px; }
.chars.mini .char b .dartmark { font-size: 9px; padding: 1px 4px; top: -2px; }
.items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 14px; }
.item img { width: 52px; height: 50px; flex: none; }
.item b { display: block; font-size: 16px; }
.item span { color: var(--muted); font-size: 14px; }

/* ── steps / faq / timeline ── */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 74px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 42px; height: 42px; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 30px; color: var(--ink); background: var(--yellow); clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.steps li h3 { margin: 0 0 4px; font-size: 17px; }
.steps li p { margin: 0; color: var(--muted); }
details.faq { background: var(--card); border: 1px solid var(--hair); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--yellow); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--hair-2); margin-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--yellow); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.timeline li:first-child::before { background: var(--cyan); }
.timeline h3 { margin: 0 0 4px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.timeline h3 small { font-size: 13px; color: var(--dim); font-weight: 500; }
.timeline pre { white-space: pre-wrap; font: 14px/1.5 var(--font); color: var(--muted); margin: 6px 0 0; background: rgba(0, 0, 0, .28); border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.chip.live { background: var(--red); color: #fff; }
.chip.ok { background: var(--green); color: var(--ink); }
.chip.soon { background: var(--lav); color: var(--ink); }
.chip.dim { background: rgba(194, 193, 239, .18); color: #fff; }

/* ── prose ── */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted); }
.prose li { margin: .35em 0; }
.prose li strong { color: var(--text); }
.prose img.shot { border-radius: 12px; border: 1px solid var(--hair-2); margin: 14px 0; }
.two { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 88px; }
.toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--hair-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.toc a:hover { color: #fff; border-color: var(--yellow); text-decoration: none; }
.dl-box { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 20px 22px; background: linear-gradient(135deg, rgba(250, 220, 88, .12), rgba(69, 126, 230, .12)); border: 1px solid rgba(250, 220, 88, .35); border-radius: 14px; }
.dl-box .meta { color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.dl-box .meta b { color: #fff; }
.dl-box img.dart { background: radial-gradient(circle, rgba(62, 49, 160, .9), rgba(39, 27, 110, .6)); border-radius: 14px; padding: 8px 10px; width: 104px; height: 72px; object-fit: contain; flex: none; }

/* ── footer (the tournament screen skyline) ── */
.foot { margin-top: 60px; background: #0e0834; position: relative; }
.skyline { height: 120px; background: url("/assets/skyline.png") bottom center/1600px auto repeat-x; opacity: .55; margin-top: -60px; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 30px 0 20px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-blurb { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 12px 0; }
.foot-links a { color: var(--lav); font-weight: 700; }
.foot-col h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin: 6px 0 10px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid var(--hair); padding: 16px 0 30px; color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-legal p { margin: 0; max-width: 90ch; }
.foot-legal a { color: var(--dim); }
.foot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.credits { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.socials { display: inline-flex; gap: 4px; }
.socials a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--lav); border: 1px solid var(--hair); transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s, color .18s, border-color .18s; }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-3px) scale(1.1); text-decoration: none; }
@media (max-width: 860px) { .foot-meta { align-items: flex-start; } }
.crumbs { padding: 18px 0 22px; font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: var(--dim); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: #fff; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-bg, .hero-bg.thumb::before, .hero-char { transform: none !important; }
  .hero-char.l { transform: scaleX(-1) !important; }
}
