/* ============================================================
   U体育看台 / site.css
   夜场看台视觉系统：夜场黑底 + 墨绿面板 + 荧光青绿即时高亮
   ============================================================ */

/* ---------- 00 RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, picture { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid #2BF59B; outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: #2BF59B; color: #060A09; }

/* ---------- 01 TOKENS ---------- */
:root {
  --ink: #060A09;
  --pitch: #0C1F19;
  --panel: #12332A;
  --neon: #2BF59B;
  --glow: #7CFFC6;
  --amber: #F7B23B;
  --paper: #F4F1E8;
  --fog: #9FB3AA;
  --line: #1E4A3C;
  --alert: #FF6B4A;

  --rail-w: 84px;
  --bar-h: 40px;
  --mobile-bar: 56px;
  --gutter: clamp(16px, 3.4vw, 44px);
  --maxw: 1320px;
  --gap: 16px;
  --dur: 160ms;

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 02 BASE TYPOGRAPHY ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: clamp(17px, 1.6vw, 21px); }
h4 { font-size: 15px; letter-spacing: 0.01em; }
p { text-wrap: pretty; }

.mono { font-family: var(--font-mono); font-weight: 600; }

/* ---------- 03 SKIP LINK ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform var(--dur) ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 04 LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--dark { background: var(--pitch); }
.section--panel { background: var(--panel); }
.section--tight { padding-block: clamp(24px, 3vw, 44px); }

.grid { display: grid; gap: var(--gap); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

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

/* ---------- 05 LABELS & HEADS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--neon); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- 06 BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.btn--primary { background: var(--neon); color: var(--ink); }
.btn--primary:hover { background: var(--glow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { color: var(--neon); border-color: var(--neon); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #FFC55F; transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ---------- 07 TAGS ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(12, 31, 25, 0.65);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.tag--neon { color: var(--neon); border-color: rgba(43, 245, 155, 0.42); }
.tag--amber { color: var(--amber); border-color: rgba(247, 178, 59, 0.45); }
.tag--solid { background: var(--neon); border-color: var(--neon); color: var(--ink); }

/* ---------- 08 BENTO & PAPER CARDS ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.bento__cell {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color var(--dur), transform var(--dur), background-color var(--dur);
}
.bento__cell--link { display: block; }
.bento__cell--link::after {
  content: "↗";
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fog);
  transition: color var(--dur), transform var(--dur);
}
.bento__cell--link:hover,
.bento__cell--link:focus-visible {
  border-color: var(--neon);
  transform: translateY(-2px);
}
.bento__cell--link:hover::after,
.bento__cell--link:focus-visible::after {
  color: var(--neon);
  transform: translate(2px, -2px);
}

.paper-card {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: -6px 6px 6px -6px;
  z-index: -1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ---------- 09 MEDIA FRAME ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--pitch);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame__img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(6, 10, 9, 0.78);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.media-frame--placeholder {
  background-color: var(--pitch);
  background-image:
    radial-gradient(rgba(43, 245, 155, 0.16) 1px, transparent 1px),
    linear-gradient(140deg, #0C1F19 0%, #12332A 100%);
  background-size: 8px 8px, 100% 100%;
}

/* ---------- 10 STAT ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog);
}
.stat--amber .stat__value { color: var(--amber); }

/* ---------- 11 BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fog);
}
.breadcrumb a { color: var(--fog); border-bottom: 1px solid transparent; transition: color var(--dur), border-color var(--dur); }
.breadcrumb a:hover { color: var(--neon); border-bottom-color: var(--neon); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 12 PROSE ---------- */
.prose { max-width: 68ch; font-size: 16px; line-height: 1.75; color: var(--paper); }
.prose > * + * { margin-top: 12px; }
.prose h2 { margin-top: 32px; font-size: clamp(20px, 2.2vw, 26px); }
.prose h3 { margin-top: 24px; font-size: 18px; }
.prose a { color: var(--neon); border-bottom: 1px solid rgba(43, 245, 155, 0.42); transition: color var(--dur), border-color var(--dur); }
.prose a:hover { color: var(--glow); border-bottom-color: var(--glow); }
.prose ul { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 18px; }
.prose ul > li::before { content: "▸"; position: absolute; left: 0; color: var(--neon); font-size: 12px; top: 0.25em; }
.prose strong { color: var(--glow); font-weight: 700; }

/* ============================================================
   13 HEADER / RAIL
   ============================================================ */
.site-header { display: block; }

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 16px;
  border-right: 1px solid var(--line);
  background-color: var(--pitch);
  background-image:
    radial-gradient(rgba(43, 245, 155, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, #0C1F19 0%, #060A09 76%);
  background-size: 8px 8px, 100% 100%;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(43, 245, 155, 0.35), 0 8px 20px rgba(43, 245, 155, 0.16);
  transition: background-color var(--dur), box-shadow var(--dur);
}
.rail__brand:hover .rail__mark { background: var(--glow); box-shadow: 0 0 0 1px rgba(124, 255, 198, 0.6), 0 8px 24px rgba(43, 245, 155, 0.28); }
.rail__brandtext {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--fog);
}

.rail__toggle { display: none; }
.rail__burger { display: none; }

.rail__nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  padding-bottom: 6px;
}
.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-block: auto;
}
.rail__item { width: 100%; }
.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 9px 0;
  color: var(--fog);
  transition: color var(--dur);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fog);
  transition: color var(--dur);
}
.rail__label {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  z-index: 2;
  transform: translate(-4px, -50%);
  padding: 5px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur), border-color var(--dur);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 22px;
  background: var(--neon);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%) scaleY(0);
  transition: transform var(--dur), background-color var(--dur);
}
.rail__link:hover { color: var(--paper); }
.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  border-color: var(--neon);
}
.rail__link:hover::before { transform: translateY(-50%) scaleY(1); background: var(--glow); }
.rail__link[aria-current="page"] { color: var(--neon); }
.rail__link[aria-current="page"] .rail__idx { color: var(--glow); }
.rail__link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }

.rail__cta {
  display: block;
  width: calc(100% - 18px);
  margin: 14px auto 0;
  padding: 10px 4px;
  background: var(--neon);
  color: var(--ink);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  transition: background-color var(--dur), transform var(--dur);
}
.rail__cta:hover { background: var(--glow); transform: translateY(-1px); }

/* ============================================================
   14 SCORE BAR
   ============================================================ */
.scorebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 31, 25, 0.97);
  overflow: hidden;
}
.scorebar__status {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fog);
  white-space: nowrap;
}
.scorebar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: status-pulse 2.4s ease-in-out infinite;
}
.scorebar__count { color: var(--neon); }
.scorebar__time { font-size: 11px; color: var(--fog); }

.scorebar__ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
}
.scorebar__rail {
  display: flex;
  width: max-content;
  animation: scorebar-roll 40s linear infinite;
}
.scorebar__ticker:hover .scorebar__rail,
.scorebar__ticker:focus-within .scorebar__rail { animation-play-state: paused; }
.scorebar__track { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.scorebar__item { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.scorebar__team { color: var(--paper); }
.scorebar__score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--glow);
}
.scorebar__tag {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fog);
}
.scorebar__tag--amber { color: var(--amber); border-color: rgba(247, 178, 59, 0.45); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--glow));
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(43, 245, 155, 0.28); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(43, 245, 155, 0.04); opacity: 0.7; }
}
@keyframes scorebar-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   15 FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px) 24px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--fog);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(220px, 40%);
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--amber));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.6fr 1fr;
  gap: clamp(24px, 3.4vw, 56px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer__brandcol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 2px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.footer__name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--paper); }
.footer__slogan {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.footer__desc { margin-top: 6px; max-width: 30ch; font-size: 13px; line-height: 1.7; color: var(--fog); }

.footer__col { display: block; }
.footer__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}
.footer__list { display: grid; gap: 8px; }
.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--fog);
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 1px;
  transition: color var(--dur), background-size var(--dur);
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--neon); background-size: 100% 1px; }
.footer__link--strong { margin-top: 12px; color: var(--neon); }
.footer__contact { font-style: normal; display: grid; gap: 6px; }
.footer__line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}
.footer__note { margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--fog); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 16px var(--gutter) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fog);
}
.footer__copy { color: var(--fog); }
.footer__icp { color: var(--fog); }
.footer__totop {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog);
  transition: color var(--dur), background-color var(--dur), border-color var(--dur), opacity var(--dur), transform var(--dur);
}
.footer__totop:hover,
.footer__totop:focus-visible { color: var(--ink); background: var(--neon); border-color: var(--neon); }

.footer__totop {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 70;
  margin-left: 0;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.footer__totop[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   16 RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4 { grid-column: span 3; }
  .col-6, .col-8 { grid-column: span 6; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--mobile-bar);
  }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--mobile-bar);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background-image: linear-gradient(180deg, #0C1F19 0%, #0C1F19 100%);
  }
  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .rail__mark { width: 28px; height: 28px; font-size: 15px; }
  .rail__brandtext {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--paper);
  }

  .rail__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--panel);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: border-color var(--dur), color var(--dur);
  }
  .rail__toggle:hover { border-color: var(--neon); color: var(--neon); }
  .rail__burger { display: flex; flex-direction: column; gap: 3px; width: 16px; }
  .rail__burger span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--neon);
    transition: transform var(--dur), opacity var(--dur);
  }
  .rail__toggle[aria-expanded="true"] .rail__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .rail__toggle[aria-expanded="true"] .rail__burger span:nth-child(2) { opacity: 0; }
  .rail__toggle[aria-expanded="true"] .rail__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .rail__toggletext { line-height: 1; }

  .rail__nav {
    position: fixed;
    top: var(--mobile-bar);
    left: 0;
    right: 0;
    z-index: 55;
    max-height: calc(100vh - var(--mobile-bar));
    overflow-y: auto;
    padding: 8px 14px 18px;
    background: var(--pitch);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .rail__nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .rail__list { margin-block: 0; gap: 0; }
  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .rail__link::before {
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    transform: none;
    opacity: 0;
  }
  .rail__link[aria-current="page"]::before { transform: none; opacity: 1; }
  .rail__link[aria-current="page"] { color: var(--neon); }
  .rail__label {
    position: static;
    order: 1;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
    font-size: 15px;
    letter-spacing: 0.04em;
    white-space: normal;
  }
  .rail__idx { order: 2; font-size: 12px; }
  .rail__cta { width: 100%; margin: 14px 0 0; padding: 13px 8px; font-size: 14px; }

  .scorebar { top: var(--mobile-bar); gap: 10px; padding-inline: 14px; }
  .scorebar__status { padding-right: 0; border-right: 0; gap: 7px; font-size: 11px; }
  .scorebar__time { display: none; }
  .scorebar__track { gap: 18px; padding-right: 18px; }
  .scorebar__item { font-size: 11px; gap: 6px; }
  .scorebar__score { font-size: 12px; }

  .footer__totop { right: 14px; bottom: 14px; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-2, .col-3, .col-4, .col-6, .col-8 { grid-column: span 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { gap: 10px 16px; font-size: 11px; }
  .footer__totop { margin-left: 0; }
}

/* ---------- 17 REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color !important;
    transition-duration: 120ms !important;
  }
  .scorebar__rail { animation: none !important; transform: none !important; }
  .scorebar__dot { animation: none !important; }
  .rail__nav { transition-property: opacity, visibility !important; }
  .bento__cell--link:hover,
  .bento__cell--link:focus-visible,
  .btn:hover,
  .rail__cta:hover,
  .footer__totop[data-visible="true"] { transform: none !important; }
  .rail__label,
  .rail__link:hover .rail__label,
  .rail__link:focus-visible .rail__label { transform: translate(0, -50%) !important; }
}
