/* ============================================================
   /assets/site.css — 天天娱乐会馆 共享外壳
   夜航会馆：深舱夜蓝 + 霓虹青动线 + 暖金行动点
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

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

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #05141F;
  --ink-800: #0B2338;
  --ink-700: #16344C;
  --neon: #1FE0C4;
  --neon-soft: #8BF5E6;
  --gold: #F0B23C;
  --gold-soft: #FFDC9B;
  --paper: #F4EFE3;
  --text: #E9F3F7;
  --muted: #93AEC1;

  --line-hair: rgba(22, 52, 76, 0.95);
  --line-neon: rgba(31, 224, 196, 0.28);
  --wash-neon: rgba(31, 224, 196, 0.08);
  --wash-gold: rgba(240, 178, 60, 0.12);

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

  --fs-120: clamp(3.25rem, 9vw, 7.5rem);
  --fs-64: clamp(2.25rem, 5vw, 4rem);
  --fs-40: clamp(1.75rem, 3vw, 2.5rem);
  --fs-20: 1.25rem;
  --fs-16: 1rem;

  --header-h: 74px;
  --gutter: clamp(16px, 4vw, 48px);
  --shell: 1280px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(90% 60% at 12% -10%, rgba(31, 224, 196, 0.10), transparent 62%),
    radial-gradient(70% 50% at 100% 0%, rgba(240, 178, 60, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

#main-content { scroll-margin-top: calc(var(--header-h) + 20px); }

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

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

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-64); }
h2 { font-size: var(--fs-40); }
h3 { font-size: var(--fs-20); line-height: 1.4; }
h4 { font-size: var(--fs-16); line-height: 1.5; }

p { max-width: 36em; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong { font-weight: 700; color: #fff; }

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.94em;
}

/* ---------- layout ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.page-first {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(40px, 6vw, 88px);
}

.section {
  padding-block: clamp(40px, 6vw, 96px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
  font-size: var(--fs-64);
  line-height: 0.98;
  max-width: 16em;
}

.prose { max-width: 36em; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose p { color: rgba(233, 243, 247, 0.88); }
.prose ul { padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 0.5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 2px;
  background: var(--neon);
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
}

.grid--split > :last-child {
  margin-top: clamp(0px, 4vw, 72px);
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--split > :last-child { margin-top: 0; }
}

/* ---------- eyebrow / tag ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line-neon);
  color: var(--neon);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  background: var(--wash-neon);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--neon);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-neon);
  color: var(--neon-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.8;
}

.tag--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink-800);
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #06131C;
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 10px 30px -16px rgba(240, 178, 60, 0.9);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-neon);
  color: var(--neon-soft);
}

.btn-outline:hover {
  background: var(--wash-neon);
  border-color: var(--neon);
  color: var(--neon);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(147, 174, 193, 0.5);
  border-style: dashed;
  color: var(--text);
}

.btn-ghost:hover {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn:active { transform: translateY(1px); }

/* ---------- media (reusable image frame) ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-800), #030C14);
  border: 1px solid var(--line-hair);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 84% 0%, rgba(31, 224, 196, 0.18), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(5, 20, 31, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.media-fill {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 224, 196, 0.09) 0 1px, transparent 1px 14px);
}

.media--16x10 { aspect-ratio: 16 / 10; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }

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

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: rgba(11, 35, 56, 0.72);
  border: 1px solid var(--line-hair);
  border-radius: 2px;
}

.card--slab {
  background: linear-gradient(160deg, rgba(22, 52, 76, 0.7), rgba(5, 20, 31, 0.6));
  border-color: rgba(31, 224, 196, 0.16);
}

.card--paper {
  background: var(--paper);
  border-color: #D9D2C2;
  color: #0A1F2E;
  box-shadow: 10px 12px 0 -2px rgba(22, 52, 76, 0.55);
}

.card--paper h2,
.card--paper h3,
.card--paper strong { color: #06131C; }

.card--paper .mono { color: #16344C; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(147, 174, 193, 0.45);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 20, 31, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-hair);
  box-shadow: 0 20px 44px -34px #000;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 130;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--gold-soft);
}

/* 首屏扫描光带 */
.header-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--neon) 18%,
    var(--neon-soft) 48%,
    var(--neon) 72%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: beam-in 0.6s var(--ease) 0.1s forwards;
  pointer-events: none;
}

@keyframes beam-in {
  to { transform: scaleX(1); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 36px);
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
  min-height: var(--header-h);
}

/* brand */
.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  padding-right: 26px;
  text-decoration: none;
  color: var(--text);
}

.brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
  transform: translateY(-50%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--neon);
}

.brand--footer { padding-right: 0; }
.brand--footer::after { display: none; }
.brand--footer .brand-name { font-size: 24px; }

/* nav */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 26px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: rgba(233, 243, 247, 0.74);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 2px;
  background: var(--neon);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}

.nav-list a:hover { color: var(--neon-soft); }
.nav-list a:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-list a[aria-current="page"] { color: var(--neon); }
.nav-list a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

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

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-neon);
  border-radius: 2px;
  color: var(--neon-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-box span:first-child { top: 0; }
.nav-toggle-box span:last-child { top: 10px; }

.site-header[data-open] .nav-toggle-box span:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-box span:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft) 55%, var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ============================================================
   SIDE RAIL
   ============================================================ */
.side-rail {
  position: fixed;
  right: 12px;
  top: 50%;
  z-index: 88;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 9px;
  background: rgba(5, 20, 31, 0.55);
  border: 1px solid var(--line-hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.side-rail a {
  position: relative;
  display: block;
  width: 3px;
  height: 24px;
  background: rgba(147, 174, 193, 0.38);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    height 0.2s var(--ease);
}

.side-rail a::before {
  content: "";
  position: absolute;
  inset: -8px -14px;
}

.side-rail a span {
  position: absolute;
  right: 16px;
  top: 50%;
  padding: 3px 10px;
  background: rgba(5, 20, 31, 0.94);
  border: 1px solid var(--line-neon);
  color: var(--neon-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.side-rail a:hover { background: var(--neon-soft); }
.side-rail a:hover span,
.side-rail a:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.side-rail a[aria-current="page"] {
  height: 36px;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(31, 224, 196, 0.75);
}

/* ============================================================
   SUPPORT PILL
   ============================================================ */
.support-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: rgba(11, 35, 56, 0.94);
  border: 1px solid rgba(240, 178, 60, 0.55);
  border-radius: 2px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    visibility 0.3s var(--ease);
}

.support-pill[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-pill:hover {
  background: var(--gold);
  border-color: var(--gold-soft);
  color: #06131C;
}

.support-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 178, 60, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

.support-pill:hover .support-dot {
  background: #06131C;
  box-shadow: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(240, 178, 60, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(240, 178, 60, 0.04); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 132px);
  background: linear-gradient(180deg, var(--ink-800) 0%, #040F18 72%, #030B12 100%);
  border-top: 1px solid var(--line-hair);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -160px;
  left: -8%;
  width: 60%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(31, 224, 196, 0.16), transparent 72%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding-block: clamp(44px, 6vw, 84px) clamp(34px, 4.5vw, 60px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-line {
  color: rgba(233, 243, 247, 0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: 22em;
}

.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.region-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(31, 224, 196, 0.8);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 52, 76, 0.9);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: rgba(233, 243, 247, 0.78);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--muted);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--neon-soft);
  padding-left: 18px;
}

.footer-links a:hover::before {
  width: 12px;
  background: var(--neon);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(22, 52, 76, 0.9);
}

.contact-key {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-val {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.footer-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 24em;
}

.footer-base {
  position: relative;
  border-top: 1px solid rgba(22, 52, 76, 0.9);
  background: rgba(3, 11, 18, 0.6);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-copy,
.footer-legal { max-width: none; }

/* ============================================================
   REVEAL（由 JS 激活，未启用时内容完全可见）
   ============================================================ */
.is-pending {
  opacity: 0;
  transform: translateY(18px);
}

.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .side-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(5, 20, 31, 0.94);
    border: none;
    border-top: 1px solid var(--line-hair);
    transform: none;
  }

  .side-rail a {
    width: 34px;
    height: 4px;
  }

  .side-rail a::before { inset: -10px -3px; }

  .side-rail a span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 1;
    transform: none;
    border: 0;
  }

  .side-rail a[aria-current="page"] {
    height: 4px;
    box-shadow: 0 0 10px rgba(31, 224, 196, 0.8);
  }

  .support-pill {
    right: 16px;
    bottom: 58px;
    padding: 10px 14px;
    font-size: 13px;
  }

  body { padding-bottom: 56px; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 26px;
    margin-left: 0;
    background: rgba(7, 26, 40, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-hair);
    box-shadow: 0 30px 60px -40px #000;
  }

  .site-header[data-open] .site-nav { display: block; }

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

  .nav-list li + li { border-top: 1px dashed rgba(22, 52, 76, 0.9); }

  .nav-list a {
    display: block;
    padding: 15px 0;
    font-size: 17px;
    letter-spacing: 0.1em;
    color: rgba(233, 243, 247, 0.86);
  }

  .nav-list a::after {
    left: 0;
    bottom: 12px;
    width: 12px;
    transform: scaleX(0);
  }

  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .nav-list a[aria-current="page"] {
    color: var(--neon);
    padding-left: 0;
  }

  .header-actions { margin-left: auto; }

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

  .btn-gold.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .brand { padding-right: 20px; }
  .brand::after { width: 12px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.28em; }

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

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

  .footer-base-inner {
    justify-content: flex-start;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .nav-toggle-text { display: none; }

  .header-actions .btn-gold { display: none; }

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

  .section-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }

  .header-beam { transform: scaleX(1); animation: none; }
  .support-dot { animation: none; }
  .is-pending { opacity: 1; transform: none; }
}
