/* ==========================================================================
   酷体育电竞 · 共享站点样式
   路径：/assets/site.css
   00 变量 / 01 重置 / 02 中文排版 / 03 布局容器 / 04 按钮与标签
   05 头部 / 06 联赛轨道 / 07 页脚 / 08 媒体容器 / 09 通用组件 / 10 动效与可访问性
   ========================================================================== */

/* ---------- 00 变量 ---------- */
:root {
  --ink-900: #06080D;
  --ink-800: #0B1220;
  --ink-700: #111C2E;
  --ink-600: #16233A;
  --line: #223047;
  --line-soft: rgba(34, 48, 71, 0.62);

  --blue: #2F7DFF;
  --blue-soft: rgba(47, 125, 255, 0.12);
  --ice: #9CC0FF;
  --orange: #FF7A1A;
  --green: #39FF88;
  --amber: #FFC94D;
  --mist: #AEB8C8;
  --white: #F4F7FF;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fz-12: 0.75rem;
  --fz-14: 0.875rem;
  --fz-16: 1rem;
  --fz-20: 1.25rem;
  --fz-28: 1.75rem;
  --fz-40: 2.5rem;
  --fz-64: 4rem;

  --header-h: 64px;
  --rail-w: 76px;
  --rail-h: 52px;
  --maxw: 1440px;
  --gutter: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;
  --dur-slow: 260ms;

  --shadow-1: 0 1px 0 rgba(156, 192, 255, 0.05), 0 14px 30px -20px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 1px 0 rgba(156, 192, 255, 0.10), 0 20px 44px -24px rgba(0, 0, 0, 0.95);
}

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 84% -8%, rgba(47, 125, 255, 0.14), transparent 46%),
    radial-gradient(circle at 2% 102%, rgba(255, 122, 26, 0.07), transparent 44%);
  background-repeat: no-repeat;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: var(--fz-16);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img,
svg,
video,
canvas { display: block; max-width: 100%; }

a { color: var(--ice); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--white); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol { margin: 0; padding: 0; list-style: none; }

dl,
dd { margin: 0; }

hr { border: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(47, 125, 255, 0.35); color: var(--white); }

/* ---------- 02 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.4vw, var(--fz-40)); }
h2 { font-size: clamp(1.35rem, 2.6vw, var(--fz-28)); }
h3 { font-size: var(--fz-20); font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--white); font-weight: 700; }

small { font-size: var(--fz-12); }

code,
kbd,
samp { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- 03 布局容器与网格 ---------- */
main {
  display: block;
  padding-top: calc(var(--header-h) + var(--rail-h));
}

.content-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap, 24px);
}

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

.rule {
  display: block;
  height: 1px;
  margin: 0;
  background: var(--line);
  border: 0;
}

/* ---------- 04 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(17, 28, 46, 0.72);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fz-12);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  color: var(--white);
  border-color: var(--blue);
  background: rgba(47, 125, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #04070E;
}

.btn--primary:hover {
  background: #4E90FF;
  border-color: #4E90FF;
  color: #04070E;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ice);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--white);
  background: rgba(255, 122, 26, 0.10);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(47, 125, 255, 0.08);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.10);
}

.tag--green {
  color: var(--green);
  border-color: rgba(57, 255, 136, 0.40);
  background: rgba(57, 255, 136, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 201, 77, 0.40);
  background: rgba(255, 201, 77, 0.08);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist);
}

.status-dot--green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.14);
}

.status-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.14);
}

/* ---------- 05 头部 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--blue);
  color: #04070E;
  font-family: var(--font-mono);
  font-size: var(--fz-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled] {
  background: var(--ink-800);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  height: 100%;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
}

.brand:hover { color: var(--white); }

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--blue);
  background: rgba(47, 125, 255, 0.10);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--blue);
  opacity: 0.85;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: var(--fz-16);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ice);
  opacity: 0.7;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 18px);
}

.nav-item { display: block; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  color: var(--mist);
  font-size: var(--fz-14);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: var(--blue);
  background: rgba(47, 125, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions .btn {
  min-height: 40px;
  padding: 0 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(17, 28, 46, 0.72);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(47, 125, 255, 0.14);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 06 联赛轨道 ---------- */
.league-rail {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: var(--rail-w);
  padding: 10px 0;
  border-right: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.94);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-rail::-webkit-scrollbar { display: none; }

.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 6px 2px;
  border-left: 2px solid transparent;
  color: var(--mist);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.league-chip:hover {
  color: var(--white);
  background: rgba(47, 125, 255, 0.10);
}

.league-chip-key {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ice);
  opacity: 0.55;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.league-chip-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.league-chip[aria-pressed="true"] {
  color: var(--white);
  background: rgba(47, 125, 255, 0.16);
  border-left-color: var(--orange);
}

.league-chip[aria-pressed="true"] .league-chip-key {
  color: var(--orange);
  opacity: 1;
}

/* ---------- 07 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--mist);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 26, 0));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.75fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(28px, 3vw, 44px);
}

.footer-brand { min-width: 0; }

.footer-summary {
  max-width: 32ch;
  margin: 18px 0 20px;
  color: rgba(174, 184, 200, 0.86);
  font-size: var(--fz-14);
  line-height: 1.7;
}

.footer-status {
  display: grid;
  gap: 8px;
}

.footer-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(174, 184, 200, 0.74);
  line-height: 1.5;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 2px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--mist);
  font-size: var(--fz-14);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-contact { min-width: 0; }

.footer-meta {
  display: grid;
  gap: 14px;
}

.footer-meta-row { display: grid; gap: 3px; }

.footer-meta-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.7;
}

.footer-meta-value {
  margin: 0;
  color: var(--mist);
  font-size: var(--fz-14);
  line-height: 1.55;
  word-break: break-word;
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 13, 0.55);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
}

.footer-legal-item {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(174, 184, 200, 0.6);
}

/* ---------- 08 媒体容器（供页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--ink-700);
  background-image:
    linear-gradient(180deg, rgba(17, 28, 46, 0.30), rgba(6, 8, 13, 0.72)),
    repeating-linear-gradient(0deg, rgba(156, 192, 255, 0.055) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(156, 192, 255, 0.055) 0 1px, transparent 1px 26px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.media-frame > img,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.94);
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}

.media-frame:hover {
  border-color: rgba(47, 125, 255, 0.5);
  box-shadow: var(--shadow-2);
}

.media-frame:hover > img { transform: scale(1.025); }

.media-frame::after {
  content: attr(data-media-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.6;
  pointer-events: none;
}

.media-frame--wide { --media-ratio: 21 / 9; }
.media-frame--tall { --media-ratio: 3 / 4; }
.media-frame--square { --media-ratio: 1 / 1; }

/* ---------- 09 通用组件 ---------- */
.panel {
  position: relative;
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-800);
  box-shadow: var(--shadow-1);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.panel:hover {
  border-color: rgba(47, 125, 255, 0.45);
  background: var(--ink-700);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--orange);
}

.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(174, 184, 200, 0.58);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb-link { color: var(--mist); }
.breadcrumb-link:hover { color: var(--blue); }

.breadcrumb [aria-current="page"] { color: var(--white); }

.prose {
  max-width: 38em;
  color: var(--mist);
  font-size: var(--fz-16);
  line-height: 1.8;
}

.prose h2,
.prose h3 { margin: 1.6em 0 0.6em; }

.prose p { margin: 0 0 1.1em; }

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.4em; }

.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(47, 125, 255, 0.4);
}

.prose a:hover {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--orange);
  color: rgba(174, 184, 200, 0.9);
}

/* ---------- 10 动效与可访问性 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

html[data-reveal-ready] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes ku-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(57, 255, 136, 0.04); }
}

.status-dot--green { animation: ku-dot-pulse 3.2s ease-in-out infinite; }

/* ---------- 11 响应式 ---------- */
@media (min-width: 1024px) {
  main {
    padding-top: var(--header-h);
    margin-left: var(--rail-w);
  }

  .site-footer { margin-left: var(--rail-w); }

  .header-inner {
    padding-left: calc(var(--rail-w) + var(--gutter));
    padding-right: var(--gutter);
  }
}

@media (max-width: 1279px) {
  .nav-link { padding: 0 7px; font-size: 13px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 40px; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px var(--gutter) 48px;
    border-top: 1px solid var(--line);
    background: var(--ink-800);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fz-16);
  }

  .nav-link:hover { background: transparent; border-bottom-color: var(--blue); }
  .nav-link[aria-current="page"] { background: rgba(255, 122, 26, 0.08); }

  .league-rail {
    top: var(--header-h);
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--rail-h);
    flex-direction: row;
    gap: 0;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .league-chip {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    width: auto;
    min-height: var(--rail-h);
    padding: 0 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .league-chip[aria-pressed="true"] {
    border-left: 0;
    border-bottom-color: var(--orange);
  }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-2, .col-3, .col-4 { grid-column: span 3; }
  .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: span 6; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-summary { max-width: 46ch; }
}

@media (max-width: 767px) {
  .header-actions .btn--primary { display: none; }

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-legal-inner { padding-bottom: 22px; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; }

  .brand-sub { display: none; }

  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: span 1; }

  .media-frame { --media-ratio: 4 / 3; }
  .media-frame.media-frame--wide { --media-ratio: 16 / 9; }
  .media-frame.media-frame--tall { --media-ratio: 4 / 5; }

  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-legal-inner { flex-direction: column; }
}

@media (max-width: 399px) {
  .brand-name { font-size: 14px; }
  .league-chip-name { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .panel:hover,
  .btn:hover,
  .footer-link:hover { transform: none; }
}
