/* ==========================================================
   德赢安装 / assets/site.css
   赛事编辑台 · 全局共享样式
   ========================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --c-navy: #0A1F44;
  --c-navy-deep: #071731;
  --c-navy-mid: #10264D;
  --c-navy-light: #1A3A6E;
  --c-gold: #F5A623;
  --c-gold-light: #FFC45F;
  --c-red: #E23636;
  --c-red-deep: #C92A2A;
  --c-ice: #2C7BE5;
  --c-ice-light: #6AA6F5;
  --c-charcoal: #1C1C1E;
  --c-white: #F8F9FA;
  --c-silver: #D1D5DB;
  --c-body-text: #2D3748;
  --c-muted-text: #6B7280;
  --gradient-gold-red: linear-gradient(135deg, #F5A623 0%, #E23636 100%);

  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-num: "SF Mono", "Roboto Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --container-width: 1280px;
  --header-command-h: 36px;
  --header-main-h: 68px;
  --header-total-h: calc(var(--header-command-h) + var(--header-main-h));

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  --shadow-1: 0 2px 8px rgba(7, 23, 49, 0.12);
  --shadow-2: 0 8px 24px rgba(7, 23, 49, 0.18);
  --shadow-3: 0 16px 48px rgba(7, 23, 49, 0.25);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-body-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--c-navy-light);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

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

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

strong,
b {
  font-weight: 700;
}

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

::selection {
  background: var(--c-gold);
  color: var(--c-navy);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--c-navy);
  line-height: 1.25;
  font-weight: 900;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose h2 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 1em 0 1.5em;
  padding-left: 1.5em;
}

.prose ul li {
  list-style: square;
  margin-bottom: 0.4em;
}

.prose ol li {
  list-style: decimal;
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 3px solid var(--c-gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--c-muted-text);
  font-style: italic;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow {
  max-width: 880px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--c-gold);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(7, 23, 49, 0.3);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  text-decoration: none;
  outline-offset: 0;
}

.divider {
  height: 1px;
  background: var(--c-silver);
  border: 0;
  margin: var(--sp-6) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 0;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn--primary {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-navy);
}

.btn--primary:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  color: var(--c-navy);
}

.btn--ghost {
  background: transparent;
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--ghost:hover {
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
}

.btn--red {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}

.btn--red:hover {
  background: var(--c-red-deep);
  border-color: var(--c-red-deep);
  color: #fff;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: var(--sp-4);
  font-size: 0.8125rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb__item {
  color: var(--c-muted-text);
}

.breadcrumb__link {
  color: var(--c-ice);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--c-navy-light);
  text-decoration: underline;
}

.breadcrumb__sep {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--c-silver);
  font-family: var(--font-num);
  pointer-events: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-navy);
  font-weight: 600;
}

/* ---------- Section Head ---------- */
.section-head {
  margin-bottom: var(--sp-6);
}

.section-head__index {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 0.25rem;
  margin-bottom: var(--sp-3);
}

.section-head__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.section-head__desc {
  max-width: 560px;
  color: var(--c-muted-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
}

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

.grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2-1 {
  grid-template-columns: 2fr 1fr;
}

.grid--1-2 {
  grid-template-columns: 1fr 2fr;
}

/* ---------- Card ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-silver);
  border-radius: 0;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) ease,
    transform var(--dur-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.card--dark {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: rgba(255, 255, 255, 0.85);
}

.card--dark .card__title {
  color: var(--c-white);
}

.card--highlight {
  border-color: var(--c-gold);
  border-width: 2px;
}

.card__title {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--c-navy);
  line-height: 1.35;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--c-muted-text);
  line-height: 1.7;
  flex-grow: 1;
}

.card--dark .card__body {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border-left: 3px solid var(--c-navy);
  background: var(--c-white);
}

.stat__value {
  font-family: var(--font-num);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-navy);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--c-muted-text);
  letter-spacing: 0.04em;
}

.stat--gold {
  border-left-color: var(--c-gold);
}

.stat--gold .stat__value {
  color: var(--c-gold);
}

.stat--red {
  border-left-color: var(--c-red);
}

.stat--red .stat__value {
  color: var(--c-red);
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 0;
  line-height: 1.5;
}

.tag--gold {
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--c-gold);
  color: #B7791F;
}

.tag--red {
  background: rgba(226, 54, 54, 0.10);
  border-color: var(--c-red);
  color: var(--c-red);
}

.tag--ice {
  background: rgba(44, 123, 229, 0.10);
  border-color: var(--c-ice);
  color: var(--c-ice);
}

/* ---------- Callout ---------- */
.callout {
  padding: var(--sp-5);
  border-left: 3px solid var(--c-gold);
  background: rgba(245, 166, 35, 0.06);
  font-size: 0.9375rem;
  color: var(--c-body-text);
  margin: var(--sp-6) 0;
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: var(--sp-1);
}

/* ---------- Table List ---------- */
.table-list {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.table-list__row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  border-bottom: 1px solid var(--c-silver);
}

.table-list__row--head {
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-list__row--head .table-list__cell {
  font-weight: 600;
}

.table-list__row--alt {
  background: rgba(209, 213, 219, 0.15);
}

.table-list__cell {
  padding: 0.65rem 0.75rem;
  line-height: 1.5;
}

.table-list__num {
  font-family: var(--font-num);
  text-align: right;
}

.table-list .red-card {
  color: var(--c-red);
}

.table-list .yellow-card {
  color: var(--c-gold);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: var(--sp-6);
  border-left: 2px solid var(--c-silver);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-6);
  padding-left: var(--sp-3);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-6) - 7px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--c-white);
  border: 3px solid var(--c-gold);
  border-radius: 0;
  transform: rotate(45deg);
}

.timeline__item:nth-child(2n) .timeline__dot {
  border-color: var(--c-ice);
}

.timeline__date {
  font-family: var(--font-num);
  font-size: 0.8125rem;
  color: var(--c-gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.timeline__body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.timeline__body p {
  font-size: 0.9375rem;
  color: var(--c-muted-text);
  line-height: 1.7;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-6);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  font-family: var(--font-num);
  font-size: 0.8125rem;
  color: var(--c-navy);
  border: 1px solid var(--c-silver);
  background: var(--c-white);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.pagination__link:hover {
  border-color: var(--c-gold);
  color: var(--c-navy);
  text-decoration: none;
}

.pagination__link[aria-current="page"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-navy);
  font-weight: 700;
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-silver);
  border-radius: 0;
}

.img-frame--4-3 {
  aspect-ratio: 4 / 3;
}

.img-frame--3-2 {
  aspect-ratio: 3 / 2;
}

.img-frame--16-9 {
  aspect-ratio: 16 / 9;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

.img-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 8px,
    transparent 8px,
    transparent 16px);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
}

.img-frame:empty::after {
  opacity: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-navy);
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
  box-shadow: 0 2px 16px rgba(7, 23, 49, 0.35);
}

/* Top command bar */
.site-header__command {
  background: var(--c-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.site-header__command-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-command-h);
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.site-header__sync {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-header__sync-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #46D27A;
  transform: rotate(45deg);
  flex-shrink: 0;
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}

.site-header__sync-sep {
  margin: 0 var(--sp-1);
  color: rgba(255, 255, 255, 0.3);
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(70, 210, 122, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(70, 210, 122, 0);
  }
}

/* League switch */
.league-switch {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-left: var(--sp-4);
}

.league-switch__btn {
  padding: 0.1rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.league-switch__btn:last-child {
  border-right: none;
}

.league-switch__btn:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.07);
}

.league-switch__btn.is-active {
  background: var(--c-gold);
  color: var(--c-navy);
  font-weight: 700;
}

/* Header main bar */
.site-header__bar {
  background: transparent;
}

.site-header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-main-h);
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--sp-5);
  gap: var(--sp-4);
}

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-brand__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-gold);
  flex-shrink: 0;
}

.site-brand__emblem svg {
  width: 100%;
  height: 100%;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-brand__sub {
  font-family: var(--font-num);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease;
}

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

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  transition: background var(--dur-fast) ease;
}

/* Navigation */
.site-nav {
  display: block;
}

.site-nav__close {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.site-nav__link:hover {
  color: var(--c-white);
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
  font-weight: 700;
}

/* Scroll progress bar */
.site-header__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.site-header__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-gold-red);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--c-charcoal);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: var(--sp-9);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold-red);
  z-index: 1;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur-fast) ease;
}

.site-footer a:hover {
  color: var(--c-gold);
  text-decoration: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: var(--sp-7);
  padding-block: var(--sp-8);
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.site-brand--footer .site-brand__name {
  color: var(--c-white);
}

.site-brand--footer .site-brand__sub {
  color: var(--c-gold);
}

.site-footer__statement,
.site-footer__trust {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__trust {
  border-left: 3px solid var(--c-gold);
  padding-left: var(--sp-3);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__heading {
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--sp-2);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.site-footer__links li {
  line-height: 1.6;
}

.site-footer__links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  padding: 0.1rem 0;
}

.site-footer__links a:hover {
  color: var(--c-gold);
}

.site-footer__contact-line {
  margin-bottom: var(--sp-3);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.site-footer__contact-line:last-child {
  margin-bottom: 0;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.site-footer__misc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.site-footer__misc a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.site-footer__misc a:hover {
  color: var(--c-gold);
}

.site-footer__slash {
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-num);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  :root {
    --header-command-h: 34px;
    --header-main-h: 58px;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(86vw, 340px);
    background: var(--c-navy-deep);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
    padding: calc(var(--header-total-h) + var(--sp-5)) var(--sp-5) var(--sp-6);
    overflow-y: auto;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-nav__close {
    display: inline-block;
    position: absolute;
    top: var(--header-total-h);
    right: var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color var(--dur-fast),
      color var(--dur-fast);
  }

  .site-nav__close:hover {
    border-color: var(--c-gold);
    color: var(--c-gold);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__link {
    padding: var(--sp-3) var(--sp-2);
    font-size: 1.0625rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    white-space: normal;
  }

  .site-nav__link:hover {
    padding-left: var(--sp-3);
  }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--c-gold);
    color: var(--c-gold);
    border-bottom: none;
  }

  body.has-nav-open {
    overflow: hidden;
    height: 100%;
  }

  body.has-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 23, 49, 0.45);
    z-index: 50;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  :root {
    --header-command-h: 32px;
    --header-main-h: 54px;
    --sp-5: 1.25rem;
  }

  .site-header__command-inner {
    padding-inline: var(--sp-4);
  }

  .site-header__sync {
    font-size: 0.75rem;
    gap: var(--sp-1);
  }

  .league-switch__btn {
    padding: 0.1rem 0.65rem;
    font-size: 0.6875rem;
  }

  .site-header__bar-inner {
    padding-inline: var(--sp-4);
  }

  .site-brand__emblem {
    width: 34px;
    height: 34px;
  }

  .site-brand__name {
    font-size: 1.15rem;
  }

  .site-brand__sub {
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    margin-top: var(--sp-7);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding-block: var(--sp-6);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .grid--2col,
  .grid--3col,
  .grid--4col,
  .grid--2-1,
  .grid--1-2 {
    grid-template-columns: 1fr;
  }

  .section-head__title {
    font-size: 1.5rem;
  }

  .card {
    padding: var(--sp-4);
  }

  .stat__value {
    font-size: 2rem;
  }

  .table-list__row {
    grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr;
    font-size: 0.75rem;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .site-header__sync-dot {
    animation: none;
  }

  .site-header__progress {
    display: none;
  }

  .site-nav {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

/* ---------- Shared States ---------- */
.league-hidden {
  display: none !important;
}

[data-league-empty][hidden] {
  display: none;
}

::backdrop {
  background: var(--c-navy-deep);
}

/* Print: hide header/footer */
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }
}
