/* ============ RAY ARENA — shared site kit ============ */
:root {
  --ink-950: #070A12;
  --ink-900: #0D1220;
  --ink-800: #151D33;
  --cold-white: #EAF6FF;
  --neon-cyan: #22F5E6;
  --violet: #8B5CFF;
  --laser: #3D7BFF;
  --orange: #FF7A1A;
  --muted: #8A9BB8;
  --mint: #3DFFB2;

  --rail-w: 76px;
  --rail-open: 252px;
  --topbar-h: 62px;

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

  --edge: 14px;
  --line-cyan: rgba(34, 245, 230, 0.24);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus: 0 0 0 2px #070A12, 0 0 0 4px #22F5E6;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  padding-top: var(--topbar-h);
  background-color: var(--ink-950);
  color: var(--cold-white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 86% 2%, rgba(139, 92, 255, 0.20), transparent 68%),
    radial-gradient(48% 42% at 2% 98%, rgba(34, 245, 230, 0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(61, 123, 255, 0.05) 0 1px, transparent 1px 128px);
}

main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--cold-white);
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: #7BFFF5; }

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

::selection { background: rgba(34, 245, 230, 0.30); color: #FFFFFF; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--neon-cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: top 0.28s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--ink-950);
  box-shadow: none;
  outline: 2px solid var(--cold-white);
  outline-offset: 2px;
}

/* ---------- top command bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.96), rgba(7, 10, 18, 0.74));
  border-bottom: 1px solid rgba(34, 245, 230, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.32s var(--ease-out);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 40%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--violet), transparent);
  opacity: 0.85;
}

.is-scrolled .topbar { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); }

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cold-white);
  text-decoration: none;
  flex: none;
}
.topbar__brand-ray {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.topbar__brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: ray-pulse 2.4s ease-in-out infinite;
}

.topbar__where {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.topbar__where .mono {
  color: rgba(34, 245, 230, 0.78);
  padding-right: 10px;
  border-right: 1px solid rgba(34, 245, 230, 0.22);
  line-height: 1.1;
}
.topbar__where-text { color: var(--cold-white); letter-spacing: 0.04em; }

.topbar__actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
}

/* ---------- chips / dots ---------- */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--cold-white);
  text-decoration: none;
  border: 1px solid rgba(34, 245, 230, 0.26);
  background: rgba(21, 29, 51, 0.55);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: color 0.28s, border-color 0.28s, background 0.28s;
  overflow: hidden;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(34, 245, 230, 0.32) 50%, transparent 68%);
  transform: translateX(-115%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.chip:hover::before,
.chip:focus-visible::before { transform: translateX(115%); }
.chip:hover,
.chip:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(34, 245, 230, 0.12);
  color: #FFFFFF;
}
.chip:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--neon-cyan);
  outline-offset: -3px;
}
.chip--cyan { color: var(--neon-cyan); }
.chip--orange {
  border-color: rgba(255, 122, 26, 0.45);
  color: var(--orange);
}
.chip--orange:hover,
.chip--orange:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--muted);
}
.dot--cyan { background: var(--neon-cyan); box-shadow: 0 0 9px var(--neon-cyan); }
.dot--mint { background: var(--mint); box-shadow: 0 0 9px var(--mint); animation: ray-pulse 2s ease-in-out infinite; }

@keyframes ray-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- nav toggle ---------- */
.navtoggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cold-white);
  border: 1px solid rgba(34, 245, 230, 0.34);
  background: rgba(21, 29, 51, 0.65);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.28s, background 0.28s, border-color 0.28s;
}
.navtoggle:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--neon-cyan);
  outline-offset: -3px;
}
.navtoggle[aria-expanded="true"] {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(34, 245, 230, 0.16);
}
.navtoggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  flex: none;
}
.navtoggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.navtoggle__bars i:nth-child(2) { width: 11px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.navtoggle__text { line-height: 1; }

/* ---------- command rail ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 70;
  width: min(86vw, 326px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #0D1220 0%, #070A12 52%, #0B1020 100%);
  border-right: 1px solid rgba(34, 245, 230, 0.20);
  overflow: hidden;
  transform: translateX(-102%);
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}
.rail[data-open="true"] {
  transform: translateX(0);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.7);
}

.rail__mark {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 20px;
  color: var(--cold-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 92, 255, 0.26);
}
.rail__mark-ray {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(120deg, var(--cold-white) 38%, var(--neon-cyan) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rail__mark-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 245, 230, 0.4) transparent;
}
.rail__list { display: flex; flex-direction: column; gap: 2px; }
.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
.rail__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(34, 245, 230, 0.16), transparent 64%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.rail__link:hover::after,
.rail__link:focus-visible::after { opacity: 1; }
.rail__link:hover,
.rail__link:focus-visible { color: var(--cold-white); }

.rail__idx {
  flex: none;
  width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: rgba(34, 245, 230, 0.68);
  transition: color 0.25s, background 0.25s;
}
.rail__label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  width: auto;
  transition: opacity 0.28s var(--ease-out), width 0.3s var(--ease-out);
}

.rail__link[aria-current="page"] {
  color: var(--cold-white);
  background: linear-gradient(100deg, rgba(34, 245, 230, 0.14), rgba(139, 92, 255, 0.08) 68%, transparent);
}
.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(34, 245, 230, 0.85);
}
.rail__link[aria-current="page"] .rail__idx {
  color: var(--ink-950);
  background: var(--neon-cyan);
  border-radius: 2px;
}

.rail__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(34, 245, 230, 0.14);
}
.rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mint);
}
.rail__status .mono {
  font-size: 11px;
  color: var(--mint);
  transition: opacity 0.3s;
}
.rail__hint {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.3s;
}

.rail__progress {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(34, 245, 230, 0.08);
  pointer-events: none;
}
.rail__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(180deg, var(--neon-cyan), var(--violet));
  box-shadow: 0 0 12px rgba(34, 245, 230, 0.7);
  transition: transform 0.12s linear;
}

/* ---------- mobile quick bar ---------- */
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.94), rgba(7, 10, 18, 0.99));
  border-top: 1px solid rgba(34, 245, 230, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.quickbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-right: 1px solid rgba(34, 245, 230, 0.10);
  transition: color 0.25s, background 0.25s;
}
.quickbar__item:last-child { border-right: 0; }
.quickbar__item:hover,
.quickbar__item:focus-visible { color: var(--neon-cyan); background: rgba(34, 245, 230, 0.08); }
.quickbar__item--alert { color: var(--orange); }
.quickbar__item--alert:hover,
.quickbar__item--alert:focus-visible { color: var(--orange); background: rgba(255, 122, 26, 0.12); }
.quickbar__ico { font-size: 10px; line-height: 1; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(80px, 12vw, 160px);
  padding-bottom: 26px;
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(139, 92, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #0D1220, #070A12 72%);
  border-top: 1px solid rgba(34, 245, 230, 0.18);
}

.replay-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(100deg, rgba(34, 245, 230, 0.08), rgba(139, 92, 255, 0.07) 55%, transparent);
  border-bottom: 1px solid rgba(34, 245, 230, 0.14);
  overflow: hidden;
}
.replay-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan);
}
.replay-strip__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cold-white);
  white-space: nowrap;
}
.replay-strip__title .mono { color: var(--orange); }
.replay-strip__list {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 245, 230, 0.4) transparent;
}
.replay-strip__list li { flex: none; }
.replay-strip__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(34, 245, 230, 0.18);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.replay-strip__list a:hover,
.replay-strip__list a:focus-visible {
  color: var(--cold-white);
  border-color: rgba(34, 245, 230, 0.55);
  background: rgba(34, 245, 230, 0.10);
}
.replay-strip__list .mono { color: rgba(34, 245, 230, 0.8); font-size: 11px; }
.replay-strip__more {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 26, 0.45);
  padding-bottom: 2px;
  white-space: nowrap;
}
.replay-strip__more:hover,
.replay-strip__more:focus-visible { color: #FFB36B; border-bottom-color: #FFB36B; }

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--cold-white);
  text-decoration: none;
  background: linear-gradient(120deg, var(--cold-white) 40%, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.footer-brand__tag {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-brand__meta {
  color: rgba(34, 245, 230, 0.7);
  font-size: 11px;
}

.footer-col { min-width: 0; }
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cold-white);
  text-transform: uppercase;
}
.footer-col__title::before {
  content: "";
  width: 16px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--neon-cyan), var(--violet));
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list--tight { margin-top: 14px; }
.footer-list a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s, padding-left 0.25s;
}
.footer-list a:hover,
.footer-list a:focus-visible { color: var(--neon-cyan); padding-left: 5px; }

.footer-seasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.season-code {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.season-code::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: rgba(61, 123, 255, 0.9);
  box-shadow: 0 0 6px rgba(61, 123, 255, 0.9);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}
.footer-contact__line {
  display: flex;
  gap: 9px;
  line-height: 1.65;
  word-break: break-word;
}
.footer-contact__k {
  flex: none;
  width: 34px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(34, 245, 230, 0.72);
}
.footer-contact a {
  color: var(--cold-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 245, 230, 0.36);
}
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(34, 245, 230, 0.12);
  font-size: 12px;
  color: var(--muted);
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.footer-legal__links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.footer-legal__links a:hover,
.footer-legal__links a:focus-visible {
  color: var(--neon-cyan);
  border-bottom-color: rgba(34, 245, 230, 0.55);
}

/* ---------- back to top ---------- */
.totop {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 72;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon-cyan);
  background: conic-gradient(var(--neon-cyan) calc(var(--p, 0) * 360deg), rgba(34, 245, 230, 0.16) 0);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.totop::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid rgba(34, 245, 230, 0.32);
}
.totop span { position: relative; z-index: 1; line-height: 1; }
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { color: #FFFFFF; }
.totop:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* ---------- shared content components ---------- */
.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: #C9DAEC;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; color: var(--cold-white); }
.prose a { border-bottom: 1px solid rgba(34, 245, 230, 0.45); }

.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  border: 1px solid rgba(34, 245, 230, 0.35);
  background: rgba(34, 245, 230, 0.08);
  white-space: nowrap;
}
.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.42);
  background: rgba(255, 122, 26, 0.10);
}
.tag--mint {
  color: var(--mint);
  border-color: rgba(61, 255, 178, 0.38);
  background: rgba(61, 255, 178, 0.08);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(34, 245, 230, 0.5), rgba(139, 92, 255, 0.25), transparent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--neon-cyan); }
.breadcrumb__sep { color: rgba(34, 245, 230, 0.45); }
.breadcrumb [aria-current="page"] { color: var(--cold-white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  text-decoration: none;
  background: linear-gradient(120deg, var(--neon-cyan), #6EF7FF);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: filter 0.28s, transform 0.2s var(--ease-out);
}
.btn:hover { color: var(--ink-950); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--cold-white);
  outline-offset: 3px;
}
.btn--ghost {
  color: var(--cold-white);
  background: rgba(21, 29, 51, 0.5);
  box-shadow: inset 0 0 0 1px rgba(34, 245, 230, 0.45);
}
.btn--ghost:hover {
  color: var(--cold-white);
  background: rgba(34, 245, 230, 0.12);
  box-shadow: inset 0 0 0 1px var(--neon-cyan);
}
.btn--alert {
  color: #180A00;
  background: linear-gradient(120deg, var(--orange), #FFB35C);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #151D33, #0B1020 58%, #101A2E);
  border: 1px solid rgba(34, 245, 230, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(34, 245, 230, 0.16), transparent 46%, rgba(139, 92, 255, 0.20));
  mix-blend-mode: screen;
  opacity: 0.6;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive: tablet ---------- */
@media (min-width: 760px) {
  .topbar { padding: 0 24px; gap: 22px; }
  .topbar__where { display: inline-flex; }
  .shell, .footer-legal { padding-left: 32px; padding-right: 32px; }
  .footer-main { grid-template-columns: repeat(3, 1fr); padding: 56px 32px 44px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .replay-strip { padding: 18px 32px; }
}

/* ---------- responsive: desktop ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    padding-bottom: 0;
  }
  .topbar { left: var(--rail-w); padding: 0 28px; }
  .topbar__brand { display: none; }
  .topbar__actions { display: flex; }
  .navtoggle { display: none; }
  .quickbar { display: none; }
  .totop { right: 26px; bottom: 26px; }

  .rail {
    width: var(--rail-w);
    transform: none;
    transition: width 0.42s var(--ease-out);
  }
  .rail:hover,
  .rail:focus-within,
  .rail[data-open="true"] {
    width: var(--rail-open);
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.6);
  }

  .rail__mark {
    justify-content: center;
    padding: 24px 0 22px;
    gap: 0;
  }
  .rail__mark-ray {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 17px;
    letter-spacing: 0.3em;
  }
  .rail__mark-sub {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s;
  }

  .rail__link {
    justify-content: center;
    gap: 0;
    padding: 13px 0;
  }
  .rail__label {
    opacity: 0;
    width: 0;
  }

  .rail__foot {
    align-items: center;
    padding: 16px 0 22px;
  }
  .rail__status .mono,
  .rail__hint {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .rail:hover .rail__mark,
  .rail:focus-within .rail__mark,
  .rail[data-open="true"] .rail__mark {
    justify-content: flex-start;
    gap: 10px;
    padding: 24px 20px 22px;
  }
  .rail:hover .rail__mark-ray,
  .rail:focus-within .rail__mark-ray,
  .rail[data-open="true"] .rail__mark-ray {
    writing-mode: horizontal-tb;
    font-size: 24px;
    letter-spacing: 0.2em;
  }
  .rail:hover .rail__mark-sub,
  .rail:focus-within .rail__mark-sub,
  .rail[data-open="true"] .rail__mark-sub {
    opacity: 1;
    width: auto;
  }

  .rail:hover .rail__link,
  .rail:focus-within .rail__link,
  .rail[data-open="true"] .rail__link {
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 20px;
  }
  .rail:hover .rail__label,
  .rail:focus-within .rail__label,
  .rail[data-open="true"] .rail__label {
    opacity: 1;
    width: auto;
  }

  .rail:hover .rail__foot,
  .rail:focus-within .rail__foot,
  .rail[data-open="true"] .rail__foot {
    align-items: flex-start;
    padding: 16px 20px 22px;
  }
  .rail:hover .rail__status .mono,
  .rail:focus-within .rail__status .mono,
  .rail[data-open="true"] .rail__status .mono,
  .rail:hover .rail__hint,
  .rail:focus-within .rail__hint,
  .rail[data-open="true"] .rail__hint {
    opacity: 1;
    width: auto;
  }

  .replay-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 16px 48px;
  }
  .replay-strip__more { justify-self: end; }

  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr;
    gap: 40px;
    padding: 64px 48px 48px;
  }
  .footer-brand { grid-column: auto; }
  .footer-legal { padding-left: 48px; padding-right: 48px; }

  .shell { padding: 0 48px; }
  .grid { gap: 28px; }
  .grid--editorial { grid-template-columns: repeat(12, 1fr); }
}

@media (min-width: 1440px) {
  .topbar { padding: 0 40px; }
}

/* ---------- reduced motion ---------- */
@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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .rail__progress span { transition: none; }
}
