/* 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: -3%; z-index: -2; background: var(--deep) url("/assets/pattern.png") center/cover no-repeat; opacity: .9;
  animation: bgDrift 24s ease-in-out infinite alternate; will-change: transform; }
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);
  animation: bgGlow 6s ease-in-out infinite alternate; }
/* ambient motion: the pattern drifts/breathes and a faint speedlines layer glides across, all very slow and
   GPU-composited (transform/opacity only). Sits between the pattern (-2) and the gradient wash (-1). */
html::after { content: ""; position: fixed; inset: -6%; z-index: -2; pointer-events: none; background: url("/assets/speedlines.png") center/cover no-repeat; opacity: .12; mix-blend-mode: screen;
  animation: bgLines 15s ease-in-out infinite alternate; will-change: transform; }
@keyframes bgDrift { from { transform: translate3d(-1.4%, -.8%, 0) scale(1.03); } to { transform: translate3d(1.4%, 1%, 0) scale(1.09); } }
@keyframes bgGlow  { from { opacity: .7; } to { opacity: 1; } }
@keyframes bgLines { from { transform: translate3d(-4.5%, 1%, 0); } to { transform: translate3d(4.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after, html::after { animation: none; } }
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: full-width labels, then the login chip. site.js measures the
   actual tab/account widths, compacts spacing and opens the menu when needed. */
.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 { width: min(1440px, 100% - 32px); display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #fff; padding: 6px 0; transition: transform .2s; }
.brand:hover { text-decoration: none; transform: scale(1.03); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.brand-text small { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--yellow); margin-top: 4px; }
.nav { --nav-pad: clamp(9px,.95vw,14px); --nav-font: clamp(11px,.9vw,13px); --nav-spacing: .04em; margin-left: auto; display: flex; gap: 4px; flex-wrap: nowrap; flex: 0 0 auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px clamp(9px, .95vw, 14px); font-weight: 700; font-size: clamp(11px, .9vw, 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; }
.tab.discord img { width: 18px; height: 14px; }
.nav > .tab { flex: 0 0 auto; padding-inline: var(--nav-pad); font-size: var(--nav-font); letter-spacing: var(--nav-spacing); }
.topbar.nav-compact .nav { --nav-pad: 9px; --nav-font: 12px; --nav-spacing: .02em; }
/* Login with Discord / the logged-in player (site.js swaps the content from the sr2_user cookie
   and adds the dropdown). Always visible, even when the tabs collapse into the menu. */
.me { position: relative; flex: 0 0 auto; margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--hair-2); }
.tab.login { background: rgba(88, 101, 242, .18); border-color: rgba(88, 101, 242, .55); clip-path: none; border-radius: 999px; padding: 7px 14px 7px 11px; }
.tab.login:hover { background: #5865F2; color: #fff; transform: none; }
.tab.login.me { padding: 3px 10px 3px 4px; text-transform: none; letter-spacing: 0; font-size: 13px; max-width: 200px; background: rgba(194, 193, 239, .14); border-color: var(--hair-2); }
.tab.login.me:hover, .me.open .tab.login.me { background: rgba(194, 193, 239, .26); color: #fff; }
.tab.login.me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.tab.login.me .me-name { overflow: hidden; text-overflow: ellipsis; }
.tab.login.me .chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; flex: 0 0 auto; }
.tab.login.unavailable { opacity: .6; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 6px; background: rgba(23, 14, 75, .98); border: 1px solid var(--hair-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); z-index: 60; animation: menuIn .16s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.me-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.me-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.me-head b { display: block; font-size: 15px; } .me-head small { color: var(--muted); font-size: 12px; }
.me-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #fff; font-weight: 600; font-size: 14px; }
.me-menu a:hover { background: rgba(194, 193, 239, .14); text-decoration: none; }
.me-menu a.out { color: #ffb0b0; }
.nav-toggle { display: none; width: 44px; height: 40px; flex: 0 0 auto; 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; }
.topbar.nav-collapsed .nav-toggle { display: flex; }
.topbar.nav-collapsed [data-me] { margin-left: auto; }
.topbar.nav-collapsed .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-left: 0; flex-direction: column; gap: 4px; padding: 12px 20px 16px; background: rgba(23,14,75,.98); border-bottom: 1px solid var(--hair-2); box-shadow: 0 24px 40px rgba(0,0,0,.4); max-height: calc(100dvh - 65px); overflow-y: auto; }
.topbar.nav-collapsed .nav.open { display: flex; }
.topbar.nav-collapsed .nav > .tab { clip-path: none; border-radius: 8px; justify-content: center; font-size: 14px; padding: 12px; }
@media (max-width: 1280px) { .brand-text b { font-size: 23px; } .brand img { width: 40px; height: 40px; } .tab.login.me { max-width: 170px; } }
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .me { margin-left: auto; }
  .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); box-shadow: 0 24px 40px rgba(0, 0, 0, .4); max-height: calc(100dvh - 65px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .tab { clip-path: none; border-radius: 8px; justify-content: center; font-size: 14px; padding: 12px; }
}
@media (max-width: 560px) { .brand-text { display: none; } .tab.login.me .me-name { display: none; } .tab.login.me { padding-right: 8px; } .tab.login:not(.me) span { display: none; } .tab.login:not(.me) { padding: 9px 12px; } .me-menu { position: fixed; left: 12px; right: 12px; top: 72px; min-width: 0; } }

/* ── 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 banners ──
   A section's character render on the right (public/assets/hero, see layout.mjs HERO) over a
   background that moves on its own: two colour glows (--ga/--gb per section), a halftone field
   and a speedlines layer drift slowly - transform/opacity only, no scroll or pointer parallax.
   The text column keeps clear of the art with padding-right. */
.hero { --ga: rgba(255, 90, 60, .4); --gb: rgba(47, 180, 255, .34); position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 48px) 0; isolation: isolate; min-height: min(90vh, 880px); display: flex; align-items: center; }
/* every banner is the same height on the same screen: the tallest content (home) fits inside
   min(90vh, 880px) at any desktop width, so the minimum is what you see everywhere */
@supports (height: 1svh) { .hero { min-height: min(90svh, 880px); } }
.hero .wrap { width: min(var(--wrap), 100% - 40px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(135deg, #1e1569, #17114d 55%, #1a0f55); }
.hero-bg .hb { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero-bg .ga { background: radial-gradient(46% 64% at 68% 46%, var(--ga), transparent 70%); animation: hbA 8s ease-in-out infinite alternate; }
.hero-bg .gb { background: radial-gradient(42% 60% at 22% 78%, var(--gb), transparent 70%); animation: hbB 10s ease-in-out infinite alternate; }
.hero-bg .dots { inset: -20%; background-image: radial-gradient(circle, rgba(255, 255, 255, .32) 0 1.4px, transparent 2.2px); background-size: 14px 14px; -webkit-mask: linear-gradient(100deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .4) 38%, transparent 68%); mask: linear-gradient(100deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .4) 38%, transparent 68%); animation: hbDots 12s linear infinite; }
.hero-bg .lines { inset: -8%; background: url("/assets/speedlines.png") center/cover no-repeat; opacity: .3; mix-blend-mode: screen; animation: hbLines 11s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 66, .12), rgba(20, 12, 66, .04) 55%, var(--deep)); }
@keyframes hbA { from { transform: translate3d(-8%, -6%, 0) scale(.95); } to { transform: translate3d(8%, 7%, 0) scale(1.3); } }
@keyframes hbB { from { transform: translate3d(8%, 6%, 0) scale(1.25); } to { transform: translate3d(-8%, -7%, 0) scale(.95); } }
@keyframes hbDots { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(84px, 42px, 0); } }
@keyframes hbLines { from { transform: translate3d(-5%, 1%, 0) scale(1); } to { transform: translate3d(5%, -1%, 0) scale(1.08); } }
.hero .wrap { position: relative; }
.hero:not(.plain) .wrap { padding-right: min(38%, 520px); }
.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-pic { display: contents; }
.hero-char { position: absolute; right: max(1%, calc(50% - 740px)); bottom: 0; height: 100%; max-width: 44%; width: auto; object-fit: contain; object-position: right bottom; z-index: -1; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); pointer-events: none; }
.hero.home .hero-char { max-width: 46%; }
/* the transparent DART logo instead of a runner on /dart-mod/* */
.hero-char.logo { height: auto; width: min(30%, 420px); bottom: auto; top: 50%; transform: translateY(-50%); right: max(6%, calc(50% - 640px)); filter: drop-shadow(0 0 2px rgba(51, 199, 220, .8)) drop-shadow(0 0 28px rgba(51, 199, 220, .45)) drop-shadow(0 16px 34px rgba(0, 0, 0, .5)); }
@media (max-width: 1100px) { .hero-char { height: 84%; max-width: 40%; opacity: .95; } .hero:not(.plain) .wrap { padding-right: 36%; } }
@media (max-width: 760px) { .hero-char { display: none; } .hero:not(.plain) .wrap { padding-right: 0; } .hero { min-height: 0; } }
.hero-kpis { display: flex; flex-wrap: nowrap; gap: 10px clamp(14px, 1.6vw, 26px); margin-top: 26px; }
.kpi { display: flex; flex-direction: column; flex: 0 0 auto; }
.kpi b { font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
/* buttons, stats and the sub-tab pills never wrap: the rows are nowrap, the buttons scale with
   the viewport so three of them always fit the text column, and on phones the row scrolls
   sideways instead of stacking */
.hero .actions, .hero .subtabs { flex-wrap: nowrap; }
.hero .actions { gap: clamp(8px, .8vw, 12px); }
.hero .actions .btn { flex: 0 0 auto; white-space: nowrap; padding: 13px clamp(18px, 1.6vw, 30px) 13px clamp(14px, 1.15vw, 22px); font-size: clamp(12px, .95vw, 14px); }
.hero .subtabs { gap: clamp(6px, .5vw, 8px); margin-bottom: 0; }
.hero .subtabs a { flex: 0 0 auto; white-space: nowrap; padding: 8px clamp(11px, .9vw, 16px); font-size: clamp(11.5px, .85vw, 13px); }
@media (max-width: 760px) { .hero .actions, .hero .subtabs, .hero-kpis { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; } .hero .actions::-webkit-scrollbar, .hero .subtabs::-webkit-scrollbar, .hero-kpis::-webkit-scrollbar { display: none; } }
.kpi span { font-size: clamp(9px, .75vw, 11px); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.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); }
/* .who stays a real table cell (a flex td drops out of the row's vertical alignment and its own
   border no longer lines up with the neighbouring cells); avatar / name / chips align inline */
.board .who { min-width: 200px; white-space: normal; }
.board .who > * { vertical-align: middle; }
.board .who .avatar { margin-right: 10px; }
.board .who .dartmark, .board .who .chip { margin-left: 6px; }
.board .who a { color: #fff; font-weight: 700; }
.board .pts { color: var(--yellow); font-weight: 800; }
/* the name column takes whatever the fixed-content columns leave; a 100% cell made Chrome size the
   table wider than its panel and clip the last digit of the rating ("19,08") */
.board .grow { width: auto; }
.board td.num, .board th.num { width: 1%; }
.board .lg { display: inline-flex; align-items: center; gap: 8px; }
.board .lg img { flex: 0 0 auto; }
.board .empty td { text-align: center; color: var(--muted); padding: 26px; }
.board th.rank { text-align: right; width: 56px; padding-right: 14px; }
/* Steam profile icon next to a name */
.steam-link { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; border-radius: 7px; color: var(--lav); border: 1px solid var(--hair); vertical-align: middle; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s, color .18s; }
.steam-link:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px) scale(1.1); text-decoration: none; }
h1 .steam-link { width: 44px; height: 44px; margin-left: 14px; border-radius: 10px; vertical-align: 12px; }
/* Player profile: one half-width identity banner, not a full-screen hero. */
.player-profile { padding: 10px 0 38px; }
.profile-top { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch; }
.profile-intro { min-width:0; display:flex; align-items:flex-start; }
.profile-banner { position:relative; isolation:isolate; overflow:hidden; border:1px solid var(--hair-2); border-radius:18px; min-height:270px; width:100%; background:#20175f; }
.profile-banner .hero-bg::after { background:linear-gradient(90deg,rgba(15,9,45,.7),rgba(15,9,45,.35) 65%,transparent); }
.profile-banner-content { position:relative; z-index:2; width:73%; padding:22px; }
.profile-banner .eyebrow { font-size:10px; letter-spacing:.18em; margin-bottom:16px; }
.profile-character { position:absolute; inset:0 0 0 auto; width:39%; z-index:-1; pointer-events:none; }
.profile-character img { width:100%; height:100%; object-fit:contain; object-position:right bottom; filter:drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.profile-identity { display:flex; align-items:center; gap:12px; }
.profile-identity > div { min-width:0; }
.profile-identity h1 { font-size:clamp(24px,2vw,30px); line-height:1.12; letter-spacing:-.035em; font-weight:800; margin:0 0 6px; overflow-wrap:anywhere; text-shadow:0 2px 12px #140c42; }
.profile-identity .steam-link { margin:0 8px 0 0; width:23px; height:23px; }
.profile-main { font-size:12px; color:var(--muted); }
.profile-main-count { display:block; margin-top:4px; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.profile-platforms { display:block; margin-top:5px; overflow-wrap:anywhere; }
.profile-small-title { font-size:10px; text-transform:uppercase; letter-spacing:.18em; color:var(--muted); margin:20px 0 9px; }
.profile-accolades { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
.profile-accolade { display:flex; align-items:center; gap:7px; min-width:0; }
.profile-accolade img { flex:none; object-fit:contain; }
.profile-accolade strong { display:block; color:var(--yellow); font-size:16px; line-height:1.2; overflow-wrap:anywhere; }
.profile-accolade small { display:block; font-size:11px; line-height:1.3; color:var(--muted); overflow-wrap:anywhere; }
.profile-laurel { font-size:26px; color:var(--yellow); width:24px; text-align:center; flex:none; }
.profile-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.profile-section-heading h2 { font-size:18px; margin:0; letter-spacing:0; }
.profile-section-heading > span { font-size:12px; color:var(--muted); }
.profile-badge-section { margin-top:18px; }
.profile-badge-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); gap:8px; }
.profile-badge { margin:0; min-width:0; padding:9px 7px; border:1px solid var(--hair); border-radius:10px; background:rgba(0,0,0,.17); text-align:center; }
.profile-badge img { display:block; width:100%; height:44px; object-fit:contain; margin-bottom:6px; }
.profile-badge figcaption { font-size:10px; line-height:1.3; color:var(--muted); overflow-wrap:anywhere; }
.profile-badge figcaption span { display:block; margin-top:4px; color:var(--yellow); font-weight:700; }
.profile-badge.equipped { border-color:rgba(250,220,88,.7); background:rgba(250,220,88,.05); }
.profile-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
.profile-stat { min-width:0; padding:16px 18px; background:linear-gradient(140deg,rgba(53,43,115,.86),rgba(15,9,45,.95)); border:1px solid var(--hair); border-radius:14px; display:flex; flex-direction:column; justify-content:center; }
.profile-stat h2 { color:var(--muted); font-size:11px; line-height:1.4; font-weight:700; text-transform:uppercase; letter-spacing:.1em; margin:0 0 10px; }
.profile-stat-value { font-size:33px; font-weight:800; letter-spacing:-.04em; line-height:1.15; font-variant-numeric:tabular-nums; }
.profile-stat-value > span { font-size:20px; color:var(--muted); font-weight:500; }
.profile-stat p { color:var(--muted); font-size:12px; line-height:1.45; margin:7px 0 0; }
.profile-map-record { display:block; margin-top:3px; }
.profile-curator-mark { display:inline-block; width:40px; height:27px; vertical-align:middle; margin-left:7px; }
.profile-progress { height:5px; background:rgba(255,255,255,.12); border-radius:9px; margin-top:12px; overflow:hidden; }
.profile-progress i { display:block; height:100%; background:linear-gradient(90deg,var(--cyan),var(--yellow)); border-radius:inherit; }
.profile-jump { display:flex; flex-wrap:wrap; gap:8px 20px; padding:18px 0; margin:12px 0 20px; border-bottom:1px solid var(--hair); }
.profile-jump a { font-size:13px; font-weight:600; color:var(--muted); }
.profile-jump a:hover { color:var(--yellow); }
.profile-run-columns,.profile-competition { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.player-profile .panel { min-width:0; }
.player-profile .panel-head { flex-wrap:wrap; padding:14px 18px; }
.player-profile .panel-head h2 { font-size:16px; letter-spacing:.04em; }
.profile-runs .panel-body { padding:0; }
.profile-runs.reset { border-top:3px solid var(--orange-deep); }
.profile-runs.laps { border-top:3px solid var(--blue); }
.profile-run-summary { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted); padding:12px 16px; background:rgba(0,0,0,.16); }
.profile-run-summary b { color:var(--text); }
.profile-run-list { list-style:none; margin:0; padding:0 14px; }
.profile-run { display:grid; grid-template-columns:minmax(0,1fr) 82px 51px; gap:10px; align-items:center; min-height:66px; padding:9px 0; border-top:1px solid var(--hair); }
.profile-run-map { display:flex; align-items:center; gap:10px; min-width:0; color:var(--text); }
.profile-run-map img { width:48px; height:40px; object-fit:cover; border-radius:6px; flex:none; }
.profile-run-map span { min-width:0; }
.profile-run-map b { font-size:13px; display:block; line-height:1.3; overflow-wrap:anywhere; }
.profile-run small { font-size:11px; display:block; color:var(--muted); line-height:1.4; margin-top:3px; }
.profile-run-time { text-align:right; font-variant-numeric:tabular-nums; }
.profile-run-time strong { font-size:16px; letter-spacing:-.025em; }
.profile-run.is-record .profile-run-map small,.profile-run.is-record .profile-run-time strong { color:var(--yellow); }
.profile-run.empty img { filter:grayscale(1); opacity:.45; }
.profile-run.empty .profile-run-map { color:var(--muted); }
.profile-run-actions { display:flex; flex-direction:column; align-items:stretch; gap:4px; }
.profile-run-actions .chip { text-align:center; justify-content:center; padding:3px 5px; font-size:10px; line-height:1.1; }
.profile-ranked { display:flex; gap:14px; align-items:center; }
.profile-ranked strong,.profile-ranked span { display:block; }
.profile-ranked span { color:var(--muted); font-size:12px; margin-top:4px; overflow-wrap:anywhere; }
.profile-placements { list-style:none; padding:0; margin:0; }
.profile-placements li { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:12px; border-bottom:1px solid var(--hair); padding:9px 0; }
.profile-placements li:last-child { border-bottom:0; }
.profile-place-rank { margin:0; font-size:15px; color:var(--muted); font-variant-numeric:tabular-nums; }
.profile-place-rank.is-podium { color:var(--yellow); }
.profile-place-event { min-width:0; font-size:14px; overflow-wrap:anywhere; }
.profile-placements small { display:block; color:var(--dim); font-size:11px; }
.profile-details { border-top:1px solid var(--hair); margin-top:16px; padding-top:12px; }
.profile-details summary { cursor:pointer; font-size:14px; font-weight:700; }
.profile-details summary span { color:var(--muted); font-size:12px; font-weight:400; margin-left:8px; }
.profile-creation-heading { margin:28px 0 24px; padding-top:24px; border-top:1px solid var(--hair); }
.profile-creation-heading h2 { font-size:25px; }
.profile-creation-heading p { color:var(--muted); font-size:14px; margin-bottom:0; }
.profile-creations { margin:0 0 30px; scroll-margin-top:90px; }
.profile-creations[hidden] { display:none; }
.profile-contribution-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.profile-contribution-tabs a { display:flex; align-items:center; gap:9px; padding:10px 14px; color:var(--text); border:1px solid var(--hair); border-radius:8px; font-weight:700; font-size:13px; }
.profile-contribution-tabs a[aria-selected="true"] { background:var(--yellow); color:var(--ink); border-color:var(--yellow); }
.profile-contribution-tabs a span { font-size:11px; opacity:.75; }
.profile-creation-art.challenge img { object-fit:cover; }
.profile-creation-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.profile-creation { min-width:0; border:1px solid var(--hair); border-radius:12px; overflow:hidden; background:var(--card); color:var(--text); transition:border-color .18s,transform .18s; }
.profile-creation:hover { border-color:var(--yellow); transform:translateY(-3px); text-decoration:none; }
.profile-creation-art { position:relative; aspect-ratio:5/3; background:#0e0834; }
.profile-creation-art img { width:100%; height:100%; object-fit:contain; }
.profile-creation-art > span { position:absolute; top:9px; left:9px; padding:3px 7px; border-radius:5px; background:var(--yellow); color:var(--ink); font-size:10px; font-weight:800; }
.profile-creation-copy { padding:14px; }
.profile-creation-copy h3 { font-size:16px; overflow-wrap:anywhere; }
.profile-creation-copy p,.profile-creation-copy small { margin:6px 0 0; font-size:12px; color:var(--muted); display:block; }
.profile-empty { margin:0; padding:22px; border:1px dashed var(--hair-2); border-radius:12px; font-size:14px; color:var(--muted); }
.profile-source { margin-top:32px; font-size:12px; }
.curated-detail-preview { display:block; width:100%; height:auto; object-fit:contain; border-radius:10px; background:#140c42; }
.sr1-uploader { font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.ttt { container-type:inline-size; }
.events-layout > div,.events-layout > aside,.ttt-intro > div { min-width:0; }
@media(max-width:900px) { .two.events-layout { grid-template-columns:minmax(0,1fr); } }
.ttt-layout { display:grid; grid-template-columns:minmax(0,240px) minmax(0,1fr); gap:18px; align-items:start; }
.ttt-layout > div { min-width:0; }
.ttt-map-art { display:block; }
.ttt-map-art img { display:block; width:100%; height:auto; border-radius:10px; }
.ttt-board .who { min-width:0; }
.ttt-player { display:grid; grid-template-columns:28px minmax(0,1fr) max-content; align-items:center; gap:8px; min-width:180px; }
.ttt-player-name { min-width:0; overflow-wrap:anywhere; line-height:1.35; }
.ttt-board .who .ttt-player .avatar,.ttt-board .who .ttt-player .chip { margin:0; }
.ttt-player .chip { white-space:nowrap; font-size:10px; }
@container(max-width:760px) { .ttt-layout { grid-template-columns:1fr; } .ttt-intro { display:grid; grid-template-columns:140px minmax(0,1fr); gap:16px; align-items:start; } }
@container(max-width:460px) { .ttt-intro { grid-template-columns:1fr; } .ttt-map-art { max-width:220px; } .ttt-board .ttt-when { display:none; } .ttt-board :is(th,td) { padding:8px; } .ttt-board :is(th,td).rank { width:28px; padding-right:8px; } }
.profile-runs,#competition { scroll-margin-top:90px; }
@media(max-width:960px) { .profile-top { grid-template-columns:1fr; } .profile-banner { min-height:250px; } .profile-banner-content { width:70%; } .profile-stats { grid-template-columns:repeat(3,minmax(0,1fr)); } .profile-badge-list { grid-template-columns:repeat(auto-fill,minmax(72px,1fr)); } }
@media(max-width:800px) { .profile-run-columns,.profile-competition { grid-template-columns:1fr; gap:0; } .profile-creation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .profile-banner { min-height:270px; } .profile-banner-content { width:88%; padding:18px; } .profile-character { width:44%; opacity:.6; } .profile-banner .hero-bg::after { background:linear-gradient(90deg,rgba(15,9,45,.7),rgba(15,9,45,.3)); } .profile-identity .avatar { --s:48px !important; } .profile-identity h1 { font-size:25px; } .profile-accolades { gap:12px; } .profile-accolade strong { font-size:15px; } .profile-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .profile-stat { padding:16px 14px; } .profile-stat-value { font-size:29px; } .profile-stat h2 { font-size:10px; letter-spacing:.07em; } .profile-run { gap:7px; grid-template-columns:minmax(0,1fr) 72px 45px; } .profile-run-map { gap:7px; } .profile-run-map img { width:38px; height:36px; } .profile-run-list { padding:0 10px; } .profile-run-time strong { font-size:14px; } .profile-creation-copy { padding:11px; } .profile-creation-copy h3 { font-size:14px; } .profile-jump { gap:10px 15px; } }
.sub-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.placings { list-style: none; margin: 0; padding: 0; }
.placings li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--hair); padding: 6px 0; }
.placings img { vertical-align: -4px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges img { height: 56px; width: auto; }
.badges img.equipped { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
/* time-trial record grid on a profile: one card per map, same art as the map tiles */
.solo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.solo-card { 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; }
.solo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.solo-card.empty img { filter: grayscale(.8) brightness(.55); }
.solo-card:hover { text-decoration: none; border-color: var(--yellow); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.solo-card:hover img { transform: scale(1.08); }
.solo-card.wr { border-color: rgba(255, 210, 74, .7); box-shadow: inset 0 0 0 1px rgba(255, 210, 74, .35); }
.solo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(20, 12, 66, .94) 45%); display: flex; flex-direction: column; gap: 2px; }
.solo-body b { font-weight: 800; letter-spacing: .03em; font-size: 14px; }
.solo-body .time { font-size: 22px; line-height: 1; font-weight: 700; color: #fff; }
.solo-body .meta { font-size: 12px; color: var(--muted); }
.solo-body .meta .pts { color: var(--yellow); font-weight: 800; }
/* the card is a div: the cover link takes the click, the chips in .solo-body are their own links */
.solo-card .solo-cover { position: absolute; inset: 0; z-index: 1; }
.solo-card .solo-body { z-index: 2; pointer-events: none; }
.solo-card .solo-body a { pointer-events: auto; position: relative; }
.solo-card.wr .solo-body b::after { content: "WR"; margin-left: 8px; font-size: 10px; letter-spacing: .12em; background: var(--gold); color: var(--ink); padding: 1px 6px; border-radius: 4px; vertical-align: 2px; }
/* 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; }
.chip.video { background: #e2457f; color: #fff; }
.chip.watch.replay { background: var(--yellow); color: var(--ink); }
.chip.watch.ghost { background: rgba(194, 193, 239, .22); color: #fff; }
a.chip:hover { text-decoration: none; filter: brightness(1.12); }
/* /watch/: the hand-off page */
.watch-box { max-width: 640px; margin: 0 auto; text-align: center; }
.watch-box .big { font-size: clamp(34px, 5vw, 54px); margin: 6px 0 2px; }
.watch-box .steps { text-align: left; margin: 18px auto 0; max-width: 520px; }

/* ── 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 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); }

/* forms: donate + payouts (Stripe) */
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.field label small, .field legend small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 16px; font: inherit; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--hair-2); border-radius: 10px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--yellow); }
.field select option { color: var(--ink); background: var(--surface); }
button.btn { font-family: inherit; border-width: 1px; border-style: solid; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amount { position: relative; display: inline-flex; align-items: center; min-width: 84px; height: 50px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--hair-2); background: rgba(0, 0, 0, .35); cursor: pointer; font-family: var(--display); font-style: italic; font-size: 26px; color: #fff; }
.amount input[type=radio] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.amount:hover { border-color: var(--lav); }
.amount:has(input:checked) { background: var(--yellow); border-color: #E8C640; color: var(--ink); }
.amount.custom { padding: 0 12px 0 14px; gap: 4px; min-width: 150px; }
.amount.custom .cur { opacity: .7; }
.amount.custom input[type=number] { width: 100px; padding: 0; background: transparent; border: 0; color: inherit; font: inherit; outline: none; -moz-appearance: textfield; }
.amount.custom input::-webkit-outer-spin-button, .amount.custom input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount.custom:has(input:focus), .amount.custom.on { background: var(--yellow); border-color: #E8C640; color: var(--ink); }
.donate-form .actions { align-items: center; margin-top: 6px; }
.donate-form .actions .note { max-width: 260px; }
/* mascot hero art (DART dynamic pose): wider than the character renders, sits lower-right */
/* payout method chooser */
.methods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 6px 0 16px; }
.method { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair-2); background: rgba(0, 0, 0, .35); cursor: pointer; }
.method input[type=radio] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.method:hover { border-color: var(--lav); }
.method.on, .method:has(input:checked) { border-color: var(--yellow); background: rgba(250, 220, 88, .1); box-shadow: inset 0 0 0 1px var(--yellow); }
.method .m-ico { grid-row: 1 / span 2; font-size: 24px; line-height: 1; }
.method b { color: #fff; }
.method small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.linklike { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }
.dim-panel { opacity: .85; }
/* rail chooser on /donate/ (shown only when Stripe AND Ko-fi are both live) */
.rail-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rail-tab { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--hair-2); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.rail-tab small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.rail-tab:hover { border-color: var(--lav); }
.rail-tab.on { background: var(--yellow); border-color: #E8C640; color: var(--ink); }
.rail-tab.on small { color: rgba(28, 14, 90, .7); }
/* Ko-fi rail on /donate/ */
.kofi-stage p { margin-top: 0; }
.kofi-embed { margin: 12px 0 14px; border-radius: 12px; overflow: hidden; }
/* embedded Stripe Checkout stage (replaces the form after "Donate") */
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.checkout-head b { color: var(--yellow); }
.checkout-mount { background: var(--surface); border-radius: 12px; padding: 16px; min-height: 240px; color: var(--ink); }
.checkout-mount .note { color: #555; }
.checkout-mount iframe { border-radius: 8px; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 10px; color: var(--muted); }
.steps li b { color: #fff; }
.donors { list-style: none; margin: 0; padding: 0; }
.donors li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.donors li:last-child { border-bottom: 0; }
.donors b { color: #fff; font-weight: 700; }
.donors .amt { font-family: ui-monospace, Consolas, monospace; color: var(--yellow); white-space: nowrap; }
.donors .msg { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }

/* ── tournaments & events history ── */
/* podium spotlight: 2nd | 1st (raised) | 3rd */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin: 6px 0 22px; }
.podium .step { text-align: center; padding: 18px 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); position: relative; }
.podium .step .avatar { --s: 72px; margin: 0 auto 10px; box-shadow: 0 0 0 3px var(--silver); }
.podium .step.p1 { order: 2; padding-top: 26px; padding-bottom: 28px; background: linear-gradient(180deg, rgba(255, 210, 74, .16), var(--card) 70%); border-color: rgba(255, 210, 74, .45); }
.podium .step.p1 .avatar { --s: 96px; box-shadow: 0 0 0 3px var(--gold), 0 0 34px rgba(255, 210, 74, .5); }
.podium .step.p2 { order: 1; } .podium .step.p3 { order: 3; }
.podium .step.p3 .avatar { box-shadow: 0 0 0 3px var(--bronze); }
.podium .step .place { display: block; font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1; color: var(--silver); margin-bottom: 6px; }
.podium .step.p1 .place { color: var(--gold); font-size: 40px; } .podium .step.p3 .place { color: var(--bronze); }
.podium .step b { display: block; font-size: 16px; } .podium .step.p1 b { font-size: 19px; }
.podium .step small { color: var(--muted); font-size: 12px; }
.podium .step a { color: #fff; }
.podium .step .crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .step { order: 0 !important; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; } .podium .step .avatar { margin: 0; --s: 52px !important; } .podium .step .crown { display: none; } }
/* placement list on a tournament page */
.placings-full { list-style: none; margin: 0; padding: 0; }
.placings-full li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.placings-full li:last-child { border-bottom: 0; }
.placings-full .pl { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.1; color: var(--lav); }
.placings-full li.t1 .pl { color: var(--gold); } .placings-full li.t2 .pl { color: var(--silver); } .placings-full li.t3 .pl { color: var(--bronze); }
.placings-full .who { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.placings-full .who a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.placings-full .who .avatar { --s: 28px; }
/* the champions wall */
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.champ { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); color: #fff; transition: transform .18s, border-color .18s; }
.champ:hover { transform: translateY(-3px); border-color: rgba(255, 210, 74, .5); text-decoration: none; }
.champ .avatar { --s: 52px; box-shadow: 0 0 0 2px var(--gold); flex: 0 0 auto; }
.champ b { display: block; font-size: 15px; line-height: 1.2; } .champ small { color: var(--muted); font-size: 12px; }
.champ .titles { margin-left: auto; font-family: var(--display); font-style: italic; font-size: 30px; color: var(--gold); line-height: 1; }
/* past tournaments */
.tour-list { display: grid; gap: 14px; }
.tour { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--hair); }
.tour .banner { border-radius: 10px; aspect-ratio: 626 / 200; object-fit: cover; width: 100%; background: #0e0834; }
.tour .banner.ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a1d7a, #16104a); color: var(--lav); font-family: var(--display); font-style: italic; font-size: 26px; }
.tour h3 { margin: 0 0 4px; font-size: 20px; } .tour h3 a { color: #fff; }
.tour .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.tour .meta b { color: #fff; font-weight: 600; }
.tour .pod { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; }
.tour .pod span { display: inline-flex; align-items: center; gap: 6px; }
.tour .pod .avatar { --s: 22px; } .tour .pod a { color: #fff; }
.tour .go { white-space: nowrap; }
@media (max-width: 900px) { .tour { grid-template-columns: 1fr; } .tour .banner { max-width: 320px; } .tour .go { justify-self: start; } }
.medal { display: inline-block; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; color: var(--ink); background: var(--lav); vertical-align: middle; }
.medal.m1 { background: var(--gold); } .medal.m2 { background: var(--silver); } .medal.m3 { background: var(--bronze); }
/* bracket match list on a tournament page */
.matches details { border: 1px solid var(--hair); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.matches summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.matches summary::-webkit-details-marker { display: none; }
.matches summary::after { content: "›"; transform: rotate(90deg); color: var(--muted); transition: transform .15s; }
.matches details[open] summary::after { transform: rotate(-90deg); }
.matches summary small { color: var(--muted); font-weight: 500; }
.round { padding: 4px 16px 12px; }
.round h4 { margin: 10px 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.match:nth-child(even) { background: rgba(0, 0, 0, .18); }
.match .p { display: flex; align-items: center; gap: 8px; min-width: 0; } .match .p a { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .p.r { justify-content: flex-end; text-align: right; }
.match .p.w a { color: var(--yellow); font-weight: 700; }
.match .p .avatar { --s: 22px; flex: 0 0 auto; }
.match .sc { font-family: ui-monospace, Consolas, monospace; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: rgba(0, 0, 0, .35); white-space: nowrap; }
.match .sc.live { background: rgba(255, 111, 111, .25); color: #ffb0b0; }
/* entrants grid */
.entrants { display: flex; flex-wrap: wrap; gap: 8px; }
.entrants a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(194, 193, 239, .1); border: 1px solid var(--hair); color: #fff; font-size: 14px; }
.entrants a:hover { background: rgba(194, 193, 239, .2); text-decoration: none; }
.entrants .avatar { --s: 26px; }
.entrants a.dq { opacity: .55; text-decoration: line-through; }
.entrants a small { color: var(--muted); font-size: 11px; }
/* events timeline (the releases changelog shares .timeline; these rules win by specificity) */
.timeline .ev-head h3 { display: block; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--yellow), var(--cyan) 60%, transparent); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250, 220, 88, .18); }
.timeline li.is-tour::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(51, 199, 220, .2); }
.timeline .ev { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.timeline .ev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.timeline .ev-head h3 { margin: 0; font-size: 18px; } .timeline .ev-head h3 a { color: #fff; }
.timeline .ev-head time { color: var(--muted); font-size: 13px; }
.timeline .kind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(250, 220, 88, .16); color: var(--yellow); }
.timeline li.is-tour .kind { background: rgba(51, 199, 220, .16); color: var(--cyan); }
.timeline .pod { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.timeline .pod span { display: inline-flex; align-items: center; gap: 6px; } .timeline .pod a { color: #fff; } .timeline .pod .avatar { --s: 22px; }
.timeline .more { color: var(--muted); font-size: 13px; }
.month { margin: 22px 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.month:first-child { margin-top: 0; }

/* ── the Competitive League page (/league/) ── */
/* latest / live sets: winner | score | loser | when */
.results .match { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; padding: 8px 10px; }
.results .match .when { color: var(--dim); font-size: 12px; white-space: nowrap; text-align: right; min-width: 56px; }
.results .match .sc small { font-weight: 500; opacity: .7; }
.live-sets .panel-head { background: linear-gradient(90deg, #ffe3e3, #ffd1d1); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--hair); }
.facts li b { color: #fff; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.facts li small { color: var(--muted); font-size: 12.5px; }
.seasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.seasons li { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--hair); }
.seasons .s-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; font-size: 14px; }
.seasons .s-head b { color: #fff; font-size: 15px; }
.seasons .s-head .dim { font-size: 12.5px; }
.seasons .pod { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.seasons .pod span { display: inline-flex; align-items: center; gap: 6px; } .seasons .pod a { color: #fff; display: inline-flex; align-items: center; gap: 6px; } .seasons .pod .avatar { --s: 22px; }
.board.tiers td.who strong { font-size: 15px; }
.board .who .avatar { --s: 26px; vertical-align: middle; margin-right: 2px; }

/* ── time-trial world records (per map) ── */
.wr-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(272px, 100%), 1fr)); }
.wr { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--hair); transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .22s; }
.wr:hover { transform: translateY(-4px); border-color: rgba(255, 210, 74, .55); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.wr-art { position: relative; display: block; aspect-ratio: 16 / 8; background: #0e0834; overflow: hidden; }
.wr-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.wr:hover .wr-art img { transform: scale(1.06); }
.wr-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 66, .1), rgba(20, 12, 66, .85)); }
.wr-art .map-name { position: absolute; left: 12px; bottom: 9px; z-index: 1; color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 15px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.wr-art .crown { position: absolute; right: 0; top: 10px; z-index: 1; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ink); background: var(--gold); padding: 4px 10px 4px 12px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.wr-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.wr-time { font-family: var(--display); font-style: italic; font-size: 40px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(20, 12, 66, .5); }
.wr-who { display: flex; align-items: center; gap: 8px; font-size: 15px; } .wr-who a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.wr-who .avatar { --s: 28px; box-shadow: 0 0 0 2px var(--gold); }
.wr-meta { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.wr-meta .chip { font-size: 10px; vertical-align: 1px; }
.wr.empty .wr-time { color: var(--dim); font-size: 26px; }
.wr.empty .wr-art img { filter: saturate(.4) brightness(.7); }
/* the record card at the top of a map board: art left, details right */
.wr.wide { flex-direction: row; align-items: stretch; margin-bottom: 18px; }
.wr.wide .wr-art { flex: 0 0 min(40%, 380px); aspect-ratio: auto; }
.wr.wide .wr-body { justify-content: center; gap: 10px; padding: 18px 22px; }
.wr.wide .wr-time { font-size: clamp(44px, 5vw, 64px); }
.wr.wide .wr-who { font-size: 17px; } .wr.wide .wr-who .avatar { --s: 36px; }
.wr.wide .wr-meta { font-size: 13.5px; }
@media (max-width: 700px) { .wr.wide { flex-direction: column; } .wr.wide .wr-art { aspect-ratio: 16 / 8; flex: none; } }
/* the overview map tiles carry the record too */
.map .lbl small.wr-tag { color: var(--yellow); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.map .lbl .holder { display: block; font-weight: 600; font-size: 11px; color: rgba(255, 255, 255, .78); letter-spacing: 0; margin-top: 1px; }

/* ── video guides: click-to-play YouTube embeds (/guides/) ───────────────────────────────
   .yt holds the thumbnail + a play button; site.js swaps in the iframe on press, so the page
   loads no player code until the visitor asks for it. The 16:9 box uses the card image sizing. */
.yt { position: relative; aspect-ratio: 16/9; background: #0e0834; overflow: hidden; cursor: pointer; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.yt:hover img { transform: scale(1.04); filter: brightness(1.06); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 8, 52, 0) 55%, rgba(14, 8, 52, .55)); pointer-events: none; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 92px; height: 64px; border: 0; padding: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.yt-play svg { width: 100%; height: 100%; }
.yt-play svg path:first-child { fill: rgba(255, 0, 0, .86); transition: fill .2s; }
.yt:hover .yt-play, .yt-play:focus-visible { transform: translate(-50%, -50%) scale(1.1); }
.yt:hover .yt-play svg path:first-child { fill: #f00; }
.yt-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 14px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; z-index: 3; }
.yt.playing { cursor: default; }
.yt.playing::after, .yt.playing img, .yt.playing .yt-play { display: none; }
.video-card .card-body p.video-by { color: var(--dim); font-size: 13px; margin-top: 6px; }
.video-card .card-body p.video-by strong { color: var(--muted); }
.video-card.featured { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.video-card.featured .yt { aspect-ratio: 16/9; }
.video-card.featured .card-body { padding: 26px 28px; justify-content: center; }
.video-card.featured .card-body h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.video-card.featured .card-body p { font-size: 16px; }
@media (max-width: 900px) { .video-card.featured { grid-template-columns: 1fr; } .yt-play { width: 72px; height: 50px; } }
.refs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; padding: 16px 20px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--card); }
.refs .eyebrow { margin: 0 8px 0 0; }
.refs a { font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(250, 220, 88, .35); }
.refs a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-char.logo { transform: translateY(-50%) !important; }
}

/* ── the set page (2.9.1126): /league/set/<a>-<b>/<id>/ ─────────────────────────── */
.match a.sc { color: #fff; text-decoration: none; } .match a.sc:hover { background: rgba(255, 221, 87, .25); color: var(--yellow); }
.board td.pts a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .35); } .board td.pts a:hover { color: var(--yellow); }
.set-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 0 0 22px; padding: 18px 22px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--hair); }
.set-player { display: flex; align-items: center; gap: 12px; font-size: 20px; min-width: 0; } .set-player a { color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.set-player.r { justify-content: flex-end; text-align: right; } .set-player.winner a strong { color: var(--yellow); } .set-player .avatar { --s: 44px; flex: 0 0 auto; }
.set-score { font-size: 44px; font-weight: 800; letter-spacing: .04em; padding: 4px 18px; border-radius: 10px; background: rgba(0, 0, 0, .35); white-space: nowrap; }
.set-games { display: flex; flex-direction: column; gap: 12px; }
.set-game { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .26); border: 1px solid var(--hair); }
.set-game.has-replay { border-color: rgba(255, 221, 87, .35); }
.set-game-art img { display: block; width: 176px; height: 150px; object-fit: cover; border-radius: 8px; } .set-game-noart { width: 176px; height: 150px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.set-game-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; justify-content: center; }
.set-game-head { display: flex; align-items: center; gap: 10px; font-size: 17px; flex-wrap: wrap; } .set-game-head time { font-size: 13px; }
.set-game-score { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .set-game-score .sc { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 800; padding: 2px 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
.set-game-score .took { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); } .set-game-score .took a { color: #fff; font-weight: 600; } .set-game-score .took .avatar { --s: 22px; }
.set-game-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.set-log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.set-log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 7px 10px; border-radius: 8px; } .set-log li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.set-log time { color: var(--dim); font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding-top: 2px; } .set-log code { font-size: 12px; } .set-log a { color: var(--yellow); }
@media (max-width: 720px) { .set-head { grid-template-columns: 1fr; text-align: center; } .set-player, .set-player.r { justify-content: center; text-align: center; } .set-game { grid-template-columns: 1fr; } .set-game-art img, .set-game-noart { width: 100%; height: auto; aspect-ratio: 176 / 150; } }
/* Published recordings and the community channel share YouTube styling. */
.btn-youtube,.chip.video{background:#d60000!important;color:#fff!important;border-color:#ff4848!important;text-transform:uppercase}
.btn-youtube:hover,.chip.video:hover{background:#f01818!important;color:#fff!important}
.btn-youtube .youtube-icon{width:24px;height:18px;flex:none;vertical-align:middle;margin-right:8px}
.chip.video{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.chip.video .youtube-icon{width:16px;height:12px;flex:none}
.hero .season-banner{display:block;width:min(100%,720px);height:auto;max-height:266px;object-fit:contain;object-position:left center;margin:0 0 24px}
.season-banner-card .card-img img{object-fit:contain;background:#101b30}
