/* ============ 体育安装主站 · 共享样式 /assets/site.css ============ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--space);
  background-image:
    linear-gradient(rgba(42, 63, 96, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 63, 96, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

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

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

table { width: 100%; border-collapse: collapse; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---------- Tokens ---------- */
:root {
  --space: #0A172B;
  --panel: #12294A;
  --line: #2A3F60;
  --cyan: #33F0D2;
  --orange: #FF6A2B;
  --paper: #F1E9DC;
  --ice: #F6FAFF;
  --mist: #A7B8CE;
  --ink: #060D18;
  --amber: #F2C14E;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 3px 3px 0 var(--ink);
  --radius-capsule: 999px;
}

/* ---------- 中文排版与标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ice);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 48px); }
h3 { font-size: clamp(20px, 2.1vw, 32px); }
h4 { font-size: 18px; letter-spacing: 0; }

p + p { margin-top: 0.9em; }

strong { font-weight: 900; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

/* ---------- 布局基础 ---------- */
.container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

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

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 画板面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-hard);
}

.panel--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(6, 13, 24, 0.9);
}

.panel--light h1,
.panel--light h2,
.panel--light h3,
.panel--light h4 { color: var(--ink); }

.panel--light .lede,
.panel--light .media-caption { color: #3C4C60; }

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-index::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.panel--light .section-index { color: #0B6F62; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.1vw, 18px);
  color: var(--mist);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink);
  border-radius: var(--radius-capsule);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--signal {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--signal:hover {
  background: #FF834F;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--cyan:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

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

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-capsule);
  background: rgba(10, 23, 43, 0.6);
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(51, 240, 210, 0.45); }
.tag--signal { color: var(--orange); border-color: rgba(255, 106, 43, 0.5); }

.panel--light .tag {
  color: var(--ink);
  border-color: rgba(6, 13, 24, 0.3);
  background: transparent;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.18s var(--ease);
}

.breadcrumbs a:hover { color: var(--cyan); }

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

/* ---------- 分段 / 标签切换 ---------- */
.tabs { margin-block: 8px; }

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  background: rgba(18, 41, 74, 0.72);
  border: 2px solid var(--line);
  border-radius: var(--radius-capsule);
}

.panel--light .tab-list {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--ink);
}

.tab {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-capsule);
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.tab:hover { color: var(--ice); border-color: var(--line); }

.tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 2px 2px 0 var(--ink);
}

.panel--light .tab { color: #3C4C60; }
.panel--light .tab:hover { color: var(--ink); border-color: rgba(6, 13, 24, 0.35); }
.panel--light .tab[aria-selected="true"] { color: var(--ink); }

.tab-panel { padding-top: 4px; }
.tab-panel[hidden] { display: none; }

/* ---------- 对比矩阵 ---------- */
.matrix-wrap { overflow-x: auto; }

.matrix {
  min-width: 560px;
  font-size: 14px;
}

.matrix th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--mist);
  white-space: nowrap;
  border-bottom: 2px solid var(--line);
}

.matrix td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.matrix tbody tr:hover { background: rgba(51, 240, 210, 0.06); }

.matrix td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  white-space: nowrap;
}

.panel--light .matrix th {
  color: #3C4C60;
  border-bottom-color: rgba(6, 13, 24, 0.28);
}

.panel--light .matrix td { border-bottom-color: rgba(6, 13, 24, 0.16); }
.panel--light .matrix tbody tr:hover { background: rgba(6, 13, 24, 0.05); }
.panel--light .matrix td.num { color: #0B6F62; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--panel) 0%, #0C1E38 100%);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-hard);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, transparent 50%, rgba(51, 240, 210, 0.22) 50%);
  pointer-events: none;
}

.media-frame--tall { aspect-ratio: 4 / 5; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 长正文 ---------- */
.prose { max-width: 70ch; }

.prose p { color: var(--mist); }

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

.prose ol { list-style: decimal; }

.prose li { margin-block: 0.35em; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { color: var(--ice); }

.panel--light .prose p { color: #3C4C60; }
.panel--light .prose a { color: #0B6F62; }
.panel--light .prose strong { color: var(--ink); }

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ============ 头部 ============ */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  font-weight: 900;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  border-radius: var(--radius-capsule);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(10, 23, 43, 0.98) 0%, rgba(10, 23, 43, 0.9) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
  transition: padding 0.22s var(--ease);
}

.site-header[data-scrolled] { padding-top: 8px; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
  padding: 8px 10px 8px 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-capsule);
  box-shadow: var(--shadow-hard);
  transition: padding 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-header[data-scrolled] .header-inner {
  padding: 4px 8px 4px 12px;
  background: #0F2240;
  box-shadow: var(--shadow-soft);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ice);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan) 0 48%, var(--orange) 48% 100%);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(-6deg); }

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

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--mist);
  white-space: nowrap;
}

.brand-badge {
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(51, 240, 210, 0.1);
  border: 1px solid rgba(51, 240, 210, 0.5);
  border-radius: var(--radius-capsule);
  white-space: nowrap;
}

/* 胶囊导航 */
.header-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-capsule);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--ice);
  border-color: var(--cyan);
  background: rgba(51, 240, 210, 0.08);
  transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-link[aria-current="page"]:hover { transform: none; }

/* 头部 CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: var(--radius-capsule);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.header-cta:hover {
  background: #FF834F;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(10, 23, 43, 0.6);
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); }

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

.site-header[data-open] .nav-toggle {
  border-color: var(--cyan);
  background: rgba(51, 240, 210, 0.12);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 联赛快捷条 */
.league-strip {
  margin-top: 10px;
  background: rgba(6, 13, 24, 0.55);
  border-top: 1px solid var(--line);
}

.league-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1280px, 100% - 24px);
  margin-inline: auto;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-strip-inner::-webkit-scrollbar { display: none; }

.strip-label {
  flex: 0 0 auto;
  padding-right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  border-right: 1px solid var(--line);
}

.league-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.league-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mist);
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-capsule);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.league-chip::after {
  content: "";
  position: absolute;
  inset: -4px -2px;
  border-radius: var(--radius-capsule);
}

.league-chip:hover,
.league-chip:focus-visible {
  color: var(--ice);
  border-color: var(--cyan);
  background: rgba(51, 240, 210, 0.08);
}

.chip-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.league-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  margin-left: auto;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.league-more::after {
  content: "";
  position: absolute;
  inset: -4px -2px;
}

.league-more:hover { color: var(--ice); }

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 56px 0 24px;
  color: var(--ice);
  background: linear-gradient(180deg, #081426 0%, #050C17 100%);
  border-top: 2px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(42, 63, 96, 0.22) 1px, transparent 1px);
  background-size: 80px 100%;
}

.footer-inner {
  position: relative;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-tagline {
  max-width: 30ch;
  margin-top: 10px;
  font-size: 14px;
  color: var(--mist);
}

.footer-icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 1px;
}

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

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

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

.footer-meta {
  display: block;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
  word-break: break-all;
}

.footer-meta--text {
  font-family: var(--font-body);
  font-size: 14px;
  word-break: normal;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.footer-legal a:hover { color: var(--cyan); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .nav-link { padding: 0 10px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 980px) {
  .header-inner { gap: 10px; padding: 6px 8px 6px 12px; }

  .nav-toggle { display: flex; order: 3; }

  .header-cta {
    order: 2;
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .header-nav {
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex: 0 0 auto;
    max-height: min(62vh, 520px);
    padding: 10px;
    overflow-y: auto;
    background: #0F2240;
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-hard);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--ice);
    border-radius: 14px;
  }

  .nav-link:hover { transform: none; }

  .grid-12 { gap: 16px; }
  .col-4, .col-6, .col-8 { grid-column: span 12; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }

  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-tag { display: none; }
  .brand-badge { font-size: 9px; padding: 2px 6px; }

  .header-inner {
    width: calc(100% - 20px);
    border-radius: 18px;
    padding: 6px 6px 6px 10px;
  }

  .header-cta { padding: 0 12px; font-size: 12px; }

  .league-strip-inner { width: calc(100% - 20px); }
  .strip-label { font-size: 9px; letter-spacing: 0.12em; }
  .league-chip { font-size: 12px; padding: 0 10px; }

  .footer-inner { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col:last-child { grid-column: span 1; }
  .site-footer { padding-top: 40px; }

  .panel { box-shadow: 4px 4px 0 var(--ink); }
}

@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;
  }

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

  .nav-link:hover,
  .brand:hover .brand-mark,
  .btn:hover,
  .btn:active,
  .header-cta:hover {
    transform: none;
  }
}
