/* ============================================================
   Site Kit · 爱游戏竞界 Roar·IGAME
   File: /assets/site.css
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg-deep: #0A1128;
  --bg-alt: #101B3A;
  --bg-card: #0D1530;
  --accent-primary: #39FF14;
  --accent-secondary: #FF6B35;
  --text-primary: #E8EAF0;
  --text-secondary: #A0A8C0;
  --line-subtle: #1E2A4A;
  --glow-green: rgba(57, 255, 20, 0.4);
  --glow-orange: rgba(255, 107, 53, 0.3);

  --header-h: 72px;
  --container-max: 1280px;
  --container-wide: 1620px;
  --container-pad: clamp(16px, 4vw, 32px);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-display: "Orbitron", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-header: 0 4px 24px rgba(0, 0, 0, 0.3);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent-primary);
  color: #06120A;
}

/* ---------- 3. Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 10px 22px;
  background: var(--accent-primary);
  color: #06120A;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 24px var(--glow-green);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

#main-content {
  flex: 1;
  outline: none;
}

.page-main {
  padding-top: var(--header-h);
}

/* ---------- 4. Container & Grid ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(57, 255, 20, 0.5) 20%,
    rgba(255, 107, 53, 0.4) 50%,
    rgba(57, 255, 20, 0.5) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.site-header[data-scrolled] {
  background-color: rgba(10, 17, 40, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-subtle);
  box-shadow: var(--shadow-header);
}

.site-header[data-scrolled]::after {
  opacity: 1;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--text-primary);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg-alt), rgba(16, 27, 58, 0.3));
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 10px;
  box-shadow:
    0 0 14px rgba(57, 255, 20, 0.15),
    inset 0 0 8px rgba(57, 255, 20, 0.06);
}

.brand-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: drop-shadow(0 0 6px var(--glow-green));
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--glow-orange);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(232, 234, 240, 0.04);
}

.nav-link[aria-current="page"] {
  color: var(--accent-primary);
  background-color: rgba(57, 255, 20, 0.07);
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}

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

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(16, 27, 58, 0.5);
  border: 1px solid var(--line-subtle);
  border-radius: 40px;
  line-height: 1.2;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--glow-green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(16, 27, 58, 0.6);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: #060C1E;
  border-top: 1px solid var(--line-subtle);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-primary),
    transparent
  );
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.8fr;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

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

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-name {
  font-size: 17px;
}

.footer-slogan {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 32ch;
}

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

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--glow-green);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition:
    color var(--transition-fast),
    padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-label {
  flex-shrink: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  min-width: 2em;
}

.footer-meta {
  border-top: 1px solid var(--line-subtle);
  padding: 18px 0;
}

.footer-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent-primary);
  color: #06120A;
  border-color: var(--accent-primary);
  box-shadow: 0 0 18px var(--glow-green);
}

.btn-primary:hover {
  background: #4BFF30;
  border-color: #4BFF30;
  color: #06120A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow-green);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border-color: rgba(57, 255, 20, 0.4);
}

.btn-outline:hover {
  background: rgba(57, 255, 20, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ---------- 8. Cards & Panels ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: var(--shadow-card);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-footer {
  margin-top: 16px;
}

.stat-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}

.stat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-green);
}

.stat-panel-hot::before {
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--glow-orange);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-value-hot {
  color: var(--accent-secondary);
}

/* ---------- 9. Section & Headings ---------- */
.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-tight {
  padding: clamp(24px, 4vw, 48px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: clamp(24px, 4vw, 44px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.section-num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent-primary);
  opacity: 0.55;
}

@supports (-webkit-text-stroke: 1px rgba(57, 255, 20, 0.7)) {
  .section-num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(57, 255, 20, 0.7);
    opacity: 1;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-desc {
  width: 100%;
  max-width: 440px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 921px) {
  .section-desc {
    margin-left: auto;
    width: auto;
  }
}

/* ---------- 10. Filter Panel ---------- */
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: 32px;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.filter-btn.is-active {
  color: #06120A;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--glow-green);
}

/* ---------- 11. Tags & Badges ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent-primary);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 32px;
}

.tag-hot {
  color: var(--accent-secondary);
  background: rgba(255, 107, 53, 0.07);
  border-color: rgba(255, 107, 53, 0.35);
}

.tag-neutral {
  color: var(--text-secondary);
  background: rgba(232, 234, 240, 0.04);
  border-color: var(--line-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  background: var(--bg-alt);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
}

.badge-live {
  color: var(--accent-primary);
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: inset 0 0 12px rgba(57, 255, 20, 0.05);
}

.badge-hot {
  color: var(--accent-secondary);
  border-color: rgba(255, 107, 53, 0.4);
}

/* ---------- 12. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-sep {
  color: var(--line-subtle);
  font-family: var(--font-mono);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- 13. Image Frames ---------- */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

.image-frame-wide {
  aspect-ratio: 21 / 9;
}

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

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.04),
    transparent 40%,
    rgba(255, 107, 53, 0.03)
  );
  pointer-events: none;
}

.image-frame img,
.image-frame video,
.image-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.03) 0%, transparent 50%),
    var(--bg-alt);
}

/* ---------- 14. Dividers ---------- */
.divider {
  border: none;
  height: 1px;
  background: var(--line-subtle);
  margin: clamp(32px, 5vw, 64px) 0;
}

.divider-glow {
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    var(--accent-secondary),
    transparent
  );
  opacity: 0.4;
}

/* ---------- 15. Back to Top & Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 10px var(--glow-green);
  pointer-events: none;
  border-radius: 0 3px 3px 0;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  color: var(--accent-primary);
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 18px var(--glow-green);
}

/* ---------- 16. Scroll Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin-left: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.45s ease,
      opacity 0.35s ease,
      border-color 0.45s ease,
      box-shadow 0.45s ease,
      visibility 0s linear 0.45s;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    border-bottom-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition:
      max-height 0.45s ease,
      opacity 0.35s ease,
      border-color 0.45s ease,
      box-shadow 0.45s ease,
      visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--container-pad) 18px;
  }

  .nav-link {
    display: block;
    padding: 15px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-subtle);
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    background: rgba(57, 255, 20, 0.06);
    box-shadow: inset 2px 0 0 var(--accent-primary);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 62px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-meta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-text {
    display: none;
  }

  .live-status {
    padding: 6px 8px;
  }
}

/* ---------- 18. 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;
  }

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