/* =====================================================================
   WHALEFALL RADIO — abyss.css
   Immersive descent layout. Dark-first.
   ===================================================================== */

:root {
  --bg: #03060c;
  --bg2: #061019;
  --ink: #dbe6f2;
  --ink-2: #a9bccf;
  --ink-3: #7e93aa;
  --amber: #ffb454;
  --amber-hi: #ffd08a;
  --amber-dim: rgba(255, 180, 84, 0.16);
  --ice: #7fd8ff;
  --ice-dim: rgba(127, 216, 255, 0.14);
  --line: rgba(150, 178, 208, 0.13);
  --line-2: rgba(150, 178, 208, 0.06);

  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: "Consolas", "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 5vw, 96px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(255, 180, 84, 0.3); color: #fff6e8; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050a12; }
::-webkit-scrollbar-thumb { background: #16304a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #1d4162; }

:focus-visible { outline: 1.5px solid var(--amber); outline-offset: 4px; }

/* ==================== BOOT ==================== */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; gap: 0;
  background: #02050a;
  transition: opacity 1s var(--ease), visibility 1s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-sonar { position: relative; width: 120px; height: 120px; margin-bottom: 26px; }
.boot-sonar i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 180, 84, 0.5);
  animation: sonar 3s var(--ease) infinite;
  opacity: 0;
}
.boot-sonar i:nth-child(2) { animation-delay: 0.75s; }
.boot-sonar i:nth-child(3) { animation-delay: 1.5s; }
.boot-sonar i:nth-child(4) { animation-delay: 2.25s; }
@keyframes sonar {
  0% { transform: scale(0.15); opacity: 0.9; }
  70% { opacity: 0.18; }
  100% { transform: scale(1); opacity: 0; }
}
.boot-line {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.34em;
  color: var(--amber); opacity: 0.9;
}
.boot-brand {
  margin-top: 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.6em; color: var(--ink-3);
}
.boot-note { margin-top: 22px; font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); }

/* ==================== ATMOSPHERE ==================== */
.snow { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.85; }

.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 12%, transparent 20%, rgba(2, 4, 8, 0.55) 78%, rgba(2, 4, 8, 0.9) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.5) 0%, transparent 18%, transparent 82%, rgba(3, 6, 12, 0.7) 100%);
}

.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 5;
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 180, 84, 0.075), rgba(127, 216, 255, 0.03) 40%, transparent 66%);
  transition: opacity 0.4s; opacity: 0;
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.86), rgba(3, 6, 12, 0.0));
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transform: translateY(0); transition: transform 0.6s var(--ease), background 0.4s;
}
.topbar.hidden { transform: translateY(-104%); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 180, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); }
}
.brand-txt { font-size: 14px; letter-spacing: 0.16em; font-weight: 600; }
.brand-txt em {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.28em; color: var(--ink-3); margin-top: 1px;
}

.navlinks { display: flex; align-items: center; gap: 2px; margin-inline: auto; flex-wrap: wrap; }
.navlinks a {
  position: relative; padding: 6px 10px; font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-3); transition: color 0.3s; white-space: nowrap;
}
.navlinks a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.navlinks a.active::after { transform: scaleX(1); }

.soundbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-2); transition: 0.3s;
}
.soundbtn:hover { border-color: rgba(255, 180, 84, 0.4); color: var(--amber); }
.soundbtn[aria-pressed="true"] { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound-bars i { width: 2px; background: currentColor; height: 4px; border-radius: 1px; }
.soundbtn[aria-pressed="true"] .sound-bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-bars i:nth-child(2) { animation-delay: 0.15s; }
.sound-bars i:nth-child(3) { animation-delay: 0.3s; }
.sound-bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

/* ==================== DEPTH GAUGE ==================== */
.gauge {
  position: fixed; right: clamp(10px, 2vw, 34px); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  gap: 4px 12px; align-items: center;
  opacity: 0; transition: opacity 1s var(--ease) 0.6s;
}
body.ready .gauge { opacity: 1; }
.gauge-rail {
  grid-row: 1 / span 2; width: 1px; height: 210px; background: var(--line);
  position: relative; justify-self: center;
}
.gauge-fill {
  position: absolute; top: 0; left: -0.5px; width: 2px; height: 0%;
  background: linear-gradient(180deg, var(--amber), var(--ice));
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.5);
}
.gauge-marks { position: absolute; inset: 0; pointer-events: none; }
.gauge-marks span {
  position: absolute; left: -3px; width: 7px; height: 1px; background: var(--line);
}
.gauge-marks span.hit { background: var(--amber); width: 13px; left: -6px; }
.gauge-read { display: flex; align-items: baseline; gap: 3px; }
.gauge-num {
  font-family: var(--font-mono); font-size: 19px; letter-spacing: 0.02em;
  color: var(--amber); font-variant-numeric: tabular-nums;
}
.gauge-unit { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); letter-spacing: 0.2em; }
.gauge-label {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.24em;
  color: var(--ink-3); writing-mode: vertical-rl; text-orientation: mixed;
  justify-self: end; grid-column: 2; grid-row: 2; height: 100%;
  display: flex; align-items: flex-end;
}

/* ==================== SHARED CHAPTER ==================== */
main { position: relative; z-index: 1; }

.chapter { position: relative; padding: clamp(90px, 13vh, 170px) var(--pad); overflow: hidden; }
.ch-bg {
  position: absolute; inset: -12% 0 -12% 0; z-index: 0;
  background-size: cover; background-position: center; will-change: transform;
  filter: brightness(0.66) saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}
.ch-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(3, 6, 12, 0.40) 6%, rgba(3, 6, 12, 0.56) 46%, rgba(3, 6, 12, 0.60) calc(100% - 72px), var(--bg) 100%),
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(3, 6, 12, 0.26), transparent 70%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 180, 84, 0.055), transparent 60%);
}
.ch-wrap {
  position: relative; z-index: 6; max-width: var(--maxw); margin: 0 auto;
}

.ch-head { margin-bottom: clamp(34px, 5vh, 58px); max-width: 900px; }
.ch-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em; color: var(--ink-3);
}
.ch-no {
  font-size: 12px; color: var(--amber); letter-spacing: 0.1em;
  border: 1px solid rgba(255, 180, 84, 0.25); border-radius: 3px; padding: 1px 6px;
}
.ch-en { color: var(--ink-2); }
.ch-depth { margin-left: auto; color: var(--amber); opacity: 0.65; }

.ch-title {
  font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.16; font-weight: 700;
  letter-spacing: -0.015em; color: #f2f7fd;
}
.ch-lead {
  margin-top: 20px; font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  color: var(--ink-2); max-width: 62ch; line-height: 1.9;
}
.ch-en-big {
  font-family: var(--font-mono); font-size: clamp(2.4rem, 8vw, 6.4rem); line-height: 0.92;
  letter-spacing: 0.06em; color: transparent;
  -webkit-text-stroke: 1px rgba(150, 178, 208, 0.2); margin-bottom: 0.14em; user-select: none;
  opacity: 0.85;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(90px, 12vh, 150px) var(--pad) clamp(70px, 10vh, 120px);
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/abyss/hero_whalefall.jpg") center 54% / cover no-repeat;
  filter: brightness(0.78) saturate(1.14) contrast(1.05);
  animation: kenburns 46s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.5%, -1.2%, 0); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(3, 6, 12, 0) 0%, rgba(3, 6, 12, 0.42) 56%, rgba(3, 6, 12, 0.92) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.6) 0%, transparent 20%, transparent 64%, var(--bg) 100%);
}

.hero-beams { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -30%; width: 22vw; height: 150%;
  background: linear-gradient(180deg, rgba(186, 222, 255, 0.17), rgba(186, 222, 255, 0.05) 38%, transparent 72%);
  filter: blur(34px); transform-origin: top center;
}
.beam.b1 { left: 26%; transform: rotate(9deg); animation: sway 15s ease-in-out infinite alternate; }
.beam.b2 { left: 46%; width: 15vw; transform: rotate(-6deg); opacity: 0.7; animation: sway 19s ease-in-out infinite alternate-reverse; }
.beam.b3 { left: 63%; width: 26vw; transform: rotate(13deg); opacity: 0.55; animation: sway 23s ease-in-out infinite alternate; }
@keyframes sway {
  from { transform: rotate(5deg) translateX(-1.5%); opacity: 0.55; }
  to { transform: rotate(14deg) translateX(2%); opacity: 0.95; }
}

.hero-ghost {
  position: absolute; left: 50%; top: 46%; z-index: 1; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: clamp(9rem, 34vw, 32rem); line-height: 1;
  letter-spacing: -0.03em; color: transparent;
  -webkit-text-stroke: 1px rgba(127, 216, 255, 0.055);
  pointer-events: none; user-select: none; white-space: nowrap;
}

.hero-core { position: relative; z-index: 6; max-width: 1000px; width: 100%; justify-self: center; }

.morse { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.morse i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  opacity: 0.16; animation: blink 2.2s linear infinite;
}
.morse i.dash { width: 26px; border-radius: 4px; }
.morse i:nth-child(1) { animation-delay: 0s; }
.morse i:nth-child(2) { animation-delay: 0.22s; }
.morse i:nth-child(3) { animation-delay: 0.44s; }
.morse i:nth-child(4) { animation-delay: 1.1s; }
@keyframes blink { 0%, 68%, 100% { opacity: 0.14; } 12%, 40% { opacity: 1; box-shadow: 0 0 14px rgba(255, 180, 84, 0.6); } }

.hero-title { display: grid; justify-items: center; gap: clamp(8px, 1.6vh, 16px); }
.ht-zh {
  font-size: clamp(3.2rem, 12.5vw, 10.5rem); line-height: 0.94; font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(175deg, #ffffff 8%, #d8e8f7 42%, #91aec9 78%, #6d8aa6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 44px rgba(6, 20, 36, 0.9));
}
.ht-en {
  font-family: var(--font-mono); font-size: clamp(0.6rem, 1.28vw, 0.95rem);
  letter-spacing: 0.62em; color: var(--amber); opacity: 0.85; padding-left: 0.62em;
}
.hero-tag {
  margin-top: clamp(26px, 4vh, 44px); font-size: clamp(1rem, 1.9vw, 1.4rem);
  color: #e6eef8; letter-spacing: 0.06em; font-weight: 300;
}
.hero-sub {
  margin-top: 16px; font-size: clamp(0.82rem, 1.1vw, 0.95rem); line-height: 2;
  color: var(--ink-2); max-width: 58ch; margin-inline: auto;
}

.hero-stats {
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 54px);
  margin-top: clamp(30px, 5vh, 50px); flex-wrap: wrap;
}
.hs { display: grid; gap: 3px; text-align: left; }
.hs b {
  font-family: var(--font-mono); font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--amber-hi); font-weight: 500; letter-spacing: 0.01em; line-height: 1;
}
.hs span { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); }

.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: clamp(30px, 4.6vh, 46px); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.18em;
  transition: 0.4s var(--ease); white-space: nowrap;
}
.btn.solid {
  background: linear-gradient(135deg, #ffc378, #f09a3c); color: #1b1006; font-weight: 700;
  box-shadow: 0 8px 30px rgba(240, 154, 60, 0.24);
}
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(240, 154, 60, 0.36); }
.btn.line { border: 1px solid rgba(150, 178, 208, 0.28); color: var(--ink); }
.btn.line:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.05); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 7; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
}
.cue-line {
  width: 1px; height: 54px; background: linear-gradient(180deg, transparent, rgba(255, 180, 84, 0.7));
  position: relative; overflow: hidden;
}
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -60%; width: 1px; height: 60%;
  background: var(--amber); animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { top: -60%; } 100% { top: 100%; } }
.cue-txt { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.34em; color: var(--ink-3); }

/* ==================== PROLOGUE ==================== */
.ch-plain { background: var(--bg); }
.ch-plain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(127, 216, 255, 0.045), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 180, 84, 0.04), transparent 60%);
}

.pro-card {
  position: relative; border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 4.4vw, 64px);
  background: linear-gradient(160deg, rgba(9, 17, 27, 0.9), rgba(5, 9, 16, 0.6));
  backdrop-filter: blur(6px); overflow: hidden;
}
.pro-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 74px;
  background: linear-gradient(180deg, var(--amber), transparent);
}
.pro-grid {
  display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.6fr; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 5vh, 52px); align-items: start;
}
.pro-quote { border-left: 1px solid rgba(255, 180, 84, 0.3); padding-left: 22px; }
.pro-quote p {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  line-height: 1.6; color: #f0f6fc; letter-spacing: 0.03em;
}
.pro-quote cite {
  display: block; margin-top: 16px; font-style: normal; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3);
}
.pro-text p { color: var(--ink-2); margin-bottom: 16px; max-width: 58ch; }
.pro-text p:last-child { margin-bottom: 0; }

.pro-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; margin-top: clamp(32px, 5vh, 52px);
  padding-top: 26px; border-top: 1px solid var(--line);
}
.pro-meta dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em; color: var(--ink-3); margin-bottom: 5px; }
.pro-meta dd { font-size: 13.5px; color: var(--ink-2); }

/* ==================== TIMELINE ==================== */
.timeline { position: relative; padding-left: clamp(26px, 4vw, 48px); }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.5), rgba(127, 216, 255, 0.28), transparent);
}
.tl-item { position: relative; padding-bottom: clamp(26px, 3.6vh, 42px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(26px, 4vw, 48px) + 3px); top: 9px;
  width: 9px; height: 9px; border-radius: 50%; background: #0a1420;
  border: 1px solid rgba(255, 180, 84, 0.45); transition: 0.6s var(--ease);
}
.tl-item.in::before {
  background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 180, 84, 0.1), 0 0 18px rgba(255, 180, 84, 0.55);
}
.tl-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 7px; }
.tl-year { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--amber); }
.tl-tag {
  font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
}
.tl-metric { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ice); opacity: 0.75; }
.tl-text { color: var(--ink-2); max-width: 74ch; font-size: 14.5px; }

/* ==================== RESIDENTS ==================== */
.residents {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.res-card {
  position: relative; padding: 26px 24px 22px; border: 1px solid var(--line);
  border-radius: 3px; background: linear-gradient(165deg, rgba(10, 18, 29, 0.86), rgba(4, 8, 14, 0.72));
  overflow: hidden; transition: 0.55s var(--ease);
}
.res-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 22% 0%, rgba(255, 180, 84, 0.16), transparent 58%);
  transition: opacity 0.55s;
}
.res-card:hover { border-color: rgba(255, 180, 84, 0.32); transform: translateY(-4px); }
.res-card:hover::after { opacity: 1; }
.res-glyph {
  font-size: 26px; line-height: 1; color: var(--amber); opacity: 0.75;
  margin-bottom: 18px; display: block;
}
.res-name { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; color: #f1f7fe; }
.res-role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--ink-3); margin-top: 5px; }
.res-role b { color: var(--ice); font-weight: 400; }
.res-creed {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-2);
  font-family: var(--font-serif); font-size: 13.5px; line-height: 1.75; color: #d9e6f4;
}
.res-text { margin-top: 11px; font-size: 12.8px; line-height: 1.8; color: var(--ink-3); }

/* ==================== ROUTE ==================== */
.route-map { position: relative; height: clamp(230px, 30vw, 320px); margin-bottom: 30px; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#routePath { stroke-dasharray: 5 7; animation: dashflow 26s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -200; } }

.route-nodes { position: absolute; inset: 0; }
.route-node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; padding: 6px;
  transition: 0.4s var(--ease);
}
.route-node .rn-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255, 180, 84, 0.5);
  background: #060d16; transition: 0.4s var(--ease);
}
.route-node .rn-name {
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; transition: 0.3s;
}
.route-node:hover .rn-name, .route-node.active .rn-name { color: var(--ink); }
.route-node.active .rn-dot {
  background: var(--amber); border-color: var(--amber); transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(255, 180, 84, 0.1), 0 0 24px rgba(255, 180, 84, 0.6);
}

.route-detail {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 46px);
  border: 1px solid var(--line); border-left: 1px solid rgba(255, 180, 84, 0.3);
  border-radius: 3px; padding: clamp(22px, 3.4vw, 40px);
  background: linear-gradient(150deg, rgba(9, 17, 27, 0.92), rgba(4, 8, 14, 0.6));
}
.rd-left { display: grid; align-content: start; gap: 4px; min-width: 130px; }
.rd-no {
  font-family: var(--font-mono); font-size: 34px; line-height: 1; color: var(--amber);
  opacity: 0.9; letter-spacing: 0.06em;
}
.rd-no small {
  display: block; font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-3); margin-top: 4px;
}
.rd-name { font-size: 17px; font-weight: 700; color: #eff6fd; margin-top: 6px; }
.rd-owner { font-size: 11.5px; color: var(--ink-3); }
.rd-depth { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--amber); opacity: 0.8; margin-top: 8px; }
.rd-right { display: grid; gap: 16px; align-content: start; }
.rd-letter {
  font-family: var(--font-serif); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.9;
  color: #e7f0fa; border-left: 2px solid rgba(255, 180, 84, 0.4); padding-left: 20px;
}
.rd-note { font-size: 12.8px; color: var(--ink-3); }
.route-note {
  margin-top: 26px; font-size: 13px; color: var(--ink-3);
  padding-left: 18px; border-left: 1px solid var(--line);
}
.route-note b { color: var(--amber); font-weight: 600; }

/* ==================== RADIO ==================== */
.radio-deck { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 2.6vw, 34px); align-items: start; }

.onair-card {
  border: 1px solid var(--line); border-radius: 3px; padding: 26px 24px;
  background: linear-gradient(160deg, rgba(12, 20, 31, 0.92), rgba(4, 8, 14, 0.8));
  position: relative; overflow: hidden;
}
.onair-card::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.14), transparent 68%);
}
.onair-top { display: flex; align-items: center; gap: 9px; }
.onair-lamp {
  width: 7px; height: 7px; border-radius: 50%; background: #ff5a4d;
  box-shadow: 0 0 12px rgba(255, 90, 77, 0.8); animation: lamp 1.8s ease-in-out infinite;
}
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.onair-word { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.3em; color: #ff8a80; }
.onair-code { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--ink-3); }
.onair-big {
  margin-top: 22px; font-family: var(--font-mono); font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1; color: var(--amber-hi); letter-spacing: -0.02em;
}
.onair-big span { font-size: 0.32em; margin-left: 6px; color: var(--amber); opacity: 0.75; }
.onair-line { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.onair-dial { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin: 24px 0 12px; }
.onair-dial span {
  flex: 1; background: linear-gradient(180deg, var(--amber), rgba(255, 180, 84, 0.18));
  border-radius: 1px; height: 30%; animation: dial 2.6s ease-in-out infinite;
}
.onair-dial span:nth-child(2n) { animation-delay: 0.3s; }
.onair-dial span:nth-child(3n) { animation-delay: 0.6s; }
.onair-dial span:nth-child(5n) { animation-delay: 0.9s; }
@keyframes dial { 0%, 100% { height: 22%; opacity: 0.55; } 50% { height: 86%; opacity: 1; } }
.onair-foot { font-size: 10.5px; color: var(--ink-3); line-height: 1.7; }

.schedule { margin-top: 22px; display: grid; gap: 2px; }
.sc-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--line-2); transition: 0.3s;
}
.sc-item:hover { background: rgba(255, 180, 84, 0.03); }
.sc-time { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.sc-title { font-size: 14px; color: #e8f1fa; }
.sc-text { grid-column: 2 / -1; font-size: 12.3px; color: var(--ink-3); line-height: 1.7; margin-top: 3px; }
.sc-tag { font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.player-card {
  border: 1px solid var(--line); border-radius: 3px; padding: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(155deg, rgba(10, 18, 29, 0.94), rgba(4, 8, 14, 0.78));
}
.track-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 22px; }
.track-btn {
  text-align: left; padding: 11px 14px; border: 1px solid var(--line); border-radius: 3px;
  transition: 0.35s; display: grid; gap: 2px;
}
.track-btn b { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.track-btn span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--ink-3); }
.track-btn:hover { border-color: rgba(255, 180, 84, 0.3); }
.track-btn.active { border-color: rgba(255, 180, 84, 0.5); background: rgba(255, 180, 84, 0.06); }
.track-btn.active b { color: var(--amber-hi); }

.player-main { display: flex; align-items: center; gap: 16px; }
.play-btn {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ffc378, #f09a3c); display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(240, 154, 60, 0.28); transition: 0.35s var(--ease);
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; fill: #1b1006; }
.play-btn .p-pause { display: none; }
.play-btn.playing .p-play { display: none; }
.play-btn.playing .p-pause { display: block; }
.player-info { min-width: 0; }
.pt-title { font-size: 16px; font-weight: 700; color: #f2f8ff; }
.pt-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.player-time {
  margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  display: flex; gap: 5px; align-items: baseline; white-space: nowrap;
}
.player-time em { font-style: normal; opacity: 0.4; }
.spectrum { width: 100%; height: 74px; margin: 18px 0 10px; }
.player-bar { display: flex; align-items: center; gap: 14px; }
.seek {
  -webkit-appearance: none; appearance: none; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber) var(--p, 0%), rgba(150, 178, 208, 0.16) var(--p, 0%));
  outline: none; cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--amber-hi); box-shadow: 0 0 10px rgba(255, 180, 84, 0.7); cursor: pointer;
}
.mini-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); transition: 0.3s; flex: 0 0 auto;
}
.mini-btn:hover { border-color: var(--amber); color: var(--amber); }
.mini-btn[aria-pressed="true"] { color: var(--ink-3); text-decoration: line-through; }
.player-note { margin-top: 16px; font-size: 10.8px; color: var(--ink-3); line-height: 1.8; }

/* ==================== FILM ==================== */
.film-stage { display: grid; gap: 16px; }
.film-frame {
  position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: #02050a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.film-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.film-meta {
  display: flex; gap: 16px; align-items: baseline; padding: 12px 18px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
  background: rgba(5, 10, 17, 0.9); font-family: var(--font-mono); letter-spacing: 0.08em;
}
.film-meta span:nth-child(2) { color: #e9f2fb; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.04em; }
.film-meta span:last-child { margin-left: auto; color: var(--amber); }
.film-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick-card {
  position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  text-align: left; transition: 0.4s var(--ease); background: #060c14;
}
.pick-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.62; transition: 0.5s; }
.pick-card:hover img { opacity: 0.9; transform: scale(1.03); }
.pick-card.active { border-color: rgba(255, 180, 84, 0.5); }
.pick-card.active img { opacity: 1; }
.pick-meta {
  padding: 10px 12px; display: flex; gap: 10px; align-items: baseline;
  font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono);
}
.pick-meta b { color: var(--ink); font-family: var(--font-sans); font-size: 13px; font-weight: 600; }
.film-desc { font-size: 13px; color: var(--ink-3); line-height: 1.85; max-width: 76ch; }

.shoot-board { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 22px; }
.shoot-board summary {
  cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--amber); list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.shoot-board summary::-webkit-details-marker { display: none; }
.shoot-board summary::before { content: "+"; font-size: 15px; }
.shoot-board[open] summary::before { content: "−"; }
.board-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12.6px; }
.board-table th {
  text-align: left; padding: 9px 12px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; color: var(--ink-3); border-bottom: 1px solid var(--line); font-weight: 400;
}
.board-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.board-table td:first-child { font-family: var(--font-mono); color: var(--amber); white-space: nowrap; }
.board-foot { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }

/* ==================== GAMES ==================== */
.game-switch { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gs-btn {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); transition: 0.35s;
  display: inline-flex; align-items: center; gap: 8px;
}
.gs-btn small { font-family: var(--font-mono); font-size: 8.5px; opacity: 0.7; letter-spacing: 0.14em; }
.gs-btn:hover { border-color: rgba(255, 180, 84, 0.35); color: var(--ink); }
.gs-btn.active { border-color: rgba(255, 180, 84, 0.55); background: rgba(255, 180, 84, 0.07); color: var(--amber-hi); }
.game-stage {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #02050a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.game-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-desc { margin-top: 16px; font-size: 13px; color: var(--ink-3); max-width: 76ch; }

/* ==================== ARCHIVE ==================== */
.archive-filter { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.af-btn {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px;
  font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); transition: 0.3s;
}
.af-btn:hover { color: var(--ink); border-color: rgba(255, 180, 84, 0.3); }
.af-btn.active { color: var(--amber-hi); border-color: rgba(255, 180, 84, 0.5); background: rgba(255, 180, 84, 0.06); }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.arc-item {
  position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  cursor: pointer; background: #060c14; transition: 0.45s var(--ease); aspect-ratio: 4 / 3;
}
.arc-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: 0.6s var(--ease); }
.arc-item:hover { border-color: rgba(255, 180, 84, 0.4); transform: translateY(-3px); }
.arc-item:hover img { opacity: 1; transform: scale(1.045); }
.arc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 13px 11px;
  font-size: 11px; color: #dfeaf6; line-height: 1.5;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 12, 0.92));
  transform: translateY(4px); opacity: 0.85; transition: 0.4s;
}
.arc-item:hover .arc-cap { transform: none; opacity: 1; }
.arc-cat {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 0.16em; color: var(--amber);
  background: rgba(3, 6, 12, 0.72); border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 2px; padding: 2px 6px;
}

/* ==================== SPECIMEN 3D ==================== */
.specimen-stage {
  position: relative; border: 1px solid var(--line); border-radius: 3px;
  height: clamp(360px, 56vh, 580px); background: radial-gradient(ellipse at 50% 40%, #08192a, #02050a 72%);
  overflow: hidden; cursor: grab;
}
.specimen-stage:active { cursor: grabbing; }
#whaleCanvas { width: 100%; height: 100%; display: block; }
.specimen-load {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--amber);
  background: rgba(2, 5, 10, 0.7); transition: opacity 0.8s, visibility 0.8s;
}
.specimen-load.done { opacity: 0; visibility: hidden; }
.specimen-hud {
  position: absolute; top: 18px; left: 18px; display: grid; gap: 7px;
  pointer-events: none; background: rgba(3, 7, 13, 0.5); backdrop-filter: blur(4px);
  border: 1px solid var(--line-2); border-radius: 2px; padding: 12px 15px;
}
.hud-row { display: flex; gap: 14px; font-size: 10.5px; align-items: baseline; }
.hud-row span { color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.1em; }
.hud-row b { color: var(--ink); font-weight: 500; }
.specimen-tip {
  position: absolute; bottom: 16px; right: 18px; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em; color: var(--ink-3); opacity: 0.7;
}

.lexicon { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.lex-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--amber); margin-bottom: 18px; }
.lex-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 30px; }
.lex-item dt { font-size: 13.5px; color: #eaf3fc; font-weight: 600; }
.lex-item dd { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin-top: 3px; }

/* ==================== POSTCARD ==================== */
.pc-layout { display: grid; grid-template-columns: 1.24fr 0.76fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.pc-stage {
  position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: #02050a; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}
#pcCanvas { width: 100%; height: auto; }
.pc-stamp { position: absolute; right: 6%; bottom: 7%; width: 17%; height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); }

.pc-panel { display: grid; gap: 14px; }
.pc-label, .pc-label2 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--ink-3);
}
.pc-label b { color: var(--amber); font-size: 12px; letter-spacing: 0.06em; }
.pc-label2 { margin-top: 4px; }
#depthRange {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px;
  background: rgba(150, 178, 208, 0.18); outline: none; cursor: pointer;
}
#depthRange::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber-hi); box-shadow: 0 0 10px rgba(255, 180, 84, 0.6);
}
.pc-presets { display: grid; gap: 6px; }
.preset {
  text-align: left; font-size: 12px; line-height: 1.65; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 3px; padding: 9px 12px; transition: 0.3s;
}
.preset:hover, .preset.active { border-color: rgba(255, 180, 84, 0.38); color: var(--ink); background: rgba(255, 180, 84, 0.04); }
#pcText {
  width: 100%; resize: vertical; background: rgba(6, 12, 20, 0.8); border: 1px solid var(--line);
  border-radius: 3px; padding: 12px; color: var(--ink); font-family: inherit; font-size: 13px;
  line-height: 1.7; transition: 0.3s;
}
#pcText:focus { border-color: rgba(255, 180, 84, 0.45); outline: none; }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-actions .btn { padding: 11px 22px; font-size: 11.5px; }
.pc-hint { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-3); }

.prints { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.prints-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 16px; flex-wrap: wrap;
}
.prints-head span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); }
.print-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.print-item {
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 2; background: #060c14; padding: 0;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.print-item img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  background: #04080e;
}
.print-item:hover {
  border-color: rgba(255, 180, 84, .42);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.print-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.74; transition: 0.5s; }
.print-item:hover img { opacity: 1; transform: scale(1.04); }

/* ==================== WATCHLOG ==================== */
.wl-card {
  border: 1px solid var(--line); border-radius: 3px; padding: clamp(22px, 3.2vw, 40px);
  background: linear-gradient(158deg, rgba(10, 18, 29, 0.9), rgba(4, 8, 14, 0.7));
}
.wl-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.wl-title { font-size: 17px; font-weight: 700; color: #f0f7fe; }
.wl-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.wl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-btns .btn { padding: 10px 20px; font-size: 11.5px; }
.wl-btns .btn:disabled { opacity: 0.35; pointer-events: none; }

.wl-paper {
  position: relative; margin-top: 26px; padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(170deg, #0d1725, #070d16);
  border: 1px solid rgba(255, 180, 84, 0.16); border-radius: 2px;
  box-shadow: inset 0 0 60px rgba(255, 180, 84, 0.03);
}
.wl-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(150, 178, 208, 0.045) 28px);
}
.wl-paper-head {
  display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px;
  border-bottom: 1px dashed rgba(150, 178, 208, 0.16); flex-wrap: wrap;
}
.wl-tape { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--amber); }
.wl-serial { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); }
.wl-date { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.wl-news { margin-top: 16px; display: grid; gap: 10px; }
.wl-news li {
  position: relative; padding-left: 18px; font-size: 13.4px; color: #dde8f4; line-height: 1.8;
}
.wl-news li::before {
  content: "·"; position: absolute; left: 5px; top: -2px; color: var(--amber); font-size: 18px;
}
.wl-req {
  margin-top: 20px; font-family: var(--font-serif); font-size: 14.5px; line-height: 1.9;
  color: #e6f0fa; padding-left: 16px; border-left: 2px solid rgba(255, 180, 84, 0.35);
}
.wl-close { margin-top: 16px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.wl-stamp {
  position: absolute; right: 26px; bottom: 26px; transform: rotate(-14deg);
  font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.2em;
  color: rgba(255, 120, 100, 0.7); border: 1.6px solid rgba(255, 120, 100, 0.55);
  border-radius: 3px; padding: 5px 13px;
}

/* ==================== WALLPAPERS ==================== */
.wall-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.wall-card {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #060c14;
  transition: 0.45s var(--ease);
}
.wall-card:hover { border-color: rgba(255, 180, 84, 0.32); }
.wall-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.wall-info { padding: 15px 17px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wall-info b { font-size: 14px; color: #eef6fe; }
.wall-info em { font-family: var(--font-mono); font-style: normal; font-size: 8.5px; letter-spacing: 0.18em; color: var(--ink-3); }
.wall-info span { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.wall-dl {
  display: inline-flex; margin: 0 17px 16px; padding: 8px 16px; font-size: 10.5px;
  letter-spacing: 0.14em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
  transition: 0.3s;
}
.wall-dl:hover { border-color: var(--amber); color: var(--amber); }

/* ==================== OUTRO ==================== */
.outro {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(80px, 12vh, 140px) var(--pad); overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(3, 6, 12, 0.42) 26%, rgba(3, 6, 12, 0.66) 66%, var(--bg) 100%),
    radial-gradient(ellipse 50% 40% at 50% 62%, rgba(255, 180, 84, 0.09), transparent 62%),
    #010306;
}
.outro::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/abyss/ch_abyss.jpg") center 58% / cover no-repeat;
  filter: brightness(0.62) saturate(1.06) contrast(1.04);
  animation: kenburns 58s ease-in-out infinite alternate;
}
.outro-lamp {
  position: absolute; left: 50%; top: 58%; width: 2px; height: 2px; border-radius: 50%;
  background: var(--amber); transform: translate(-50%, -50%);
  box-shadow: 0 0 60px 26px rgba(255, 180, 84, 0.16), 0 0 140px 70px rgba(255, 180, 84, 0.06);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 50px 20px rgba(255, 180, 84, 0.13), 0 0 120px 60px rgba(255, 180, 84, 0.05); }
  50% { opacity: 1; box-shadow: 0 0 80px 34px rgba(255, 180, 84, 0.2), 0 0 180px 90px rgba(255, 180, 84, 0.08); }
}
.outro-inner { position: relative; z-index: 6; text-align: center; max-width: 820px; }
.outro-depth {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4em; color: var(--amber);
  opacity: 0.8; margin-bottom: 24px;
}
.outro-morse { display: inline-flex; gap: 9px; margin-bottom: 30px; }
.outro-morse i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); opacity: 0.12;
  animation: blink 3.4s linear infinite;
}
.outro-morse i.dash { width: 24px; border-radius: 4px; }
.outro-morse i:nth-child(2) { animation-delay: 0.3s; }
.outro-morse i:nth-child(3) { animation-delay: 0.6s; }
.outro-morse i:nth-child(4) { animation-delay: 1.6s; }
.outro-title {
  font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.32;
  letter-spacing: 0.08em; color: #f4f9ff; font-weight: 400;
}
.outro-sub { margin-top: 26px; font-size: 13.5px; line-height: 2.1; color: var(--ink-2); }
.outro-plate {
  margin-top: clamp(36px, 6vh, 56px); padding: 24px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); display: grid; gap: 11px; text-align: left;
}
.outro-plate div { display: flex; gap: 18px; font-size: 13px; align-items: baseline; }
.outro-plate span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--ink-3); min-width: 42px; }
.outro-plate b { color: #c3d3e4; font-weight: 400; }
.back-top { margin-top: 34px; }

/* ==================== FOOTER ==================== */
.foot {
  padding: 52px var(--pad) 60px; border-top: 1px solid var(--line-2);
  text-align: center; background: #010306;
}
.foot-line { font-size: 13px; letter-spacing: 0.24em; color: var(--ink-2); }
.foot-meta { margin-top: 12px; font-size: 11px; color: var(--ink-3); line-height: 1.9; max-width: 70ch; margin-inline: auto; }
.foot-code { margin-top: 14px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em; color: var(--ink-3); opacity: 0.6; }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(1, 3, 6, 0.94); backdrop-filter: blur(10px); padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1280px, 92vw); margin: 0; }
.lightbox img {
  max-height: 78vh; width: auto; margin: 0 auto; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.lightbox figcaption {
  margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.06em;
}
.lb-x {
  position: absolute; top: 26px; right: 30px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; transition: 0.3s;
}
.lb-x:hover { border-color: var(--amber); color: var(--amber); }
.lb-x svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .radio-deck { grid-template-columns: 1fr; }
  .pc-layout { grid-template-columns: 1fr; }
  .pro-grid { grid-template-columns: 1fr; }

  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .navlinks {
    display: flex; order: 3; width: 100%; margin: 0; gap: 0; flex-wrap: nowrap;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { font-size: 11.5px; padding: 5px 9px; }
  .soundbtn { margin-left: auto; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 15px; }
  .gauge { display: none; }
  .topbar { padding: 12px 20px; }
  .ht-zh { font-size: clamp(2.6rem, 16.5vw, 4.4rem); }
  .ht-en { letter-spacing: 0.4em; font-size: 0.55rem; }
  .hero-stats { gap: 18px 26px; }
  .hs b { font-size: 1.15rem; }
  .ch-kicker { flex-wrap: wrap; row-gap: 6px; }
  .ch-depth { margin-left: 0; }
  .residents { grid-template-columns: 1fr; }
  .film-pick { grid-template-columns: 1fr; }
  .track-list { grid-template-columns: 1fr; }
  .route-detail { grid-template-columns: 1fr; }
  .rd-no { font-size: 30px; }
  .route-map { height: 250px; }
  .route-node .rn-name { font-size: 9.5px; }
  .specimen-hud { display: none; }
  .lightbox { padding: 16px; }
  .board-table { font-size: 11px; }
  .board-table th, .board-table td { padding: 8px 6px; }
  .pro-quote p { font-size: 1.3rem; }
  .wl-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ==================== 00b DEPTH ZONES ==================== */
.zones { display: flex; flex-direction: column; }
.zone {
  position: relative; display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 208px;
  gap: clamp(18px, 3vw, 48px); align-items: start;
  padding: clamp(16px, 2.2vh, 26px) 0 clamp(16px, 2.2vh, 26px) 18px;
  border-top: 1px solid var(--line);
  transition: background .45s ease;
}
.zone:last-child { border-bottom: 1px solid var(--line); }
.zone::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px;
  background: rgba(var(--zc), .62); opacity: .5;
  transition: opacity .4s, width .4s, top .4s, bottom .4s;
}
.zone:hover::before { opacity: 1; width: 3px; top: 6%; bottom: 6%; }
.zone:hover { background: linear-gradient(90deg, rgba(var(--zc), .055), transparent 62%); }
.z-range {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  color: rgb(var(--zc)); padding-top: 4px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.z-main h3 { font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 400; letter-spacing: .04em; margin: 0 0 5px; }
.z-en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em; color: var(--ink-3); }
.z-text { font-size: 13.5px; line-height: 1.9; color: rgba(206, 220, 236, .88); margin: 13px 0 0; max-width: 54ch; }
.z-spec { display: flex; flex-direction: column; gap: 9px; font-size: 12px; padding-top: 2px; }
.z-spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed rgba(120, 145, 170, .16); padding-bottom: 7px; }
.z-spec span { color: var(--ink-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; white-space: nowrap; }
.z-spec b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

/* ==================== 02b ANATOMY ==================== */
.anatomy {
  display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 56px); align-items: center;
}
.ana-stage {
  position: relative;
  padding: clamp(6px, 1.4vw, 20px);
  border-radius: 3px;
  background: radial-gradient(ellipse 62% 58% at 50% 54%, rgba(2, 5, 9, 0.88) 0%, rgba(2, 5, 9, 0.66) 58%, rgba(2, 5, 9, 0) 100%);
}
.ana-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ana-svg .bone { fill: none; stroke: rgba(202, 224, 244, .6); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ana-svg .bone-soft { fill: none; stroke: rgba(196, 220, 242, .26); stroke-width: 1.3; stroke-linecap: round; }
.ana-svg .bone-warm { fill: none; stroke: rgba(255, 180, 84, .55); stroke-width: 1.6; stroke-linecap: round; }
.ana-hot { cursor: pointer; }
.ana-hot .dot { fill: rgba(255, 180, 84, .82); transition: fill .25s, r .25s; }
.ana-hot .ring { fill: none; stroke: rgba(255, 180, 84, .55); stroke-width: 1; }
.ana-hot .lbl { fill: rgba(226, 237, 248, .72); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; pointer-events: none; }
.ana-hot:hover .dot, .ana-hot.on .dot { fill: #ffe3b2; }
.ana-hot.on .lbl { fill: rgba(255, 214, 150, .95); }
.ana-hot:hover .lbl { fill: rgba(255, 214, 150, .8); }
.ana-hint {
  position: absolute; left: 2%; bottom: -30px; margin: 0;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--ink-3);
}
.ana-panel {
  position: relative; border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(160deg, rgba(9, 17, 27, .76), rgba(5, 10, 17, .54));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  min-height: 260px;
}
.ana-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 46px; background: var(--amber); opacity: .7; }
.ap-no { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: var(--amber); margin: 0; }
.ana-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin: 12px 0 4px; letter-spacing: .04em; }
.ap-en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .24em; color: var(--ink-3); margin: 0; }
.ap-metric {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 180, 84, .55);
  margin: 20px 0 16px; letter-spacing: .04em;
}
.ana-panel .ap-note { font-size: 14px; line-height: 1.95; color: var(--ink-2); margin: 0; }
.ap-index { position: absolute; right: 20px; top: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-3); }

/* ==================== new plates: reveal targets ==================== */
.anatomy.reveal, .zones.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.anatomy.reveal.in, .zones.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .anatomy { grid-template-columns: minmax(0, 1fr); }
  .ana-panel { min-height: 0; }
  .ana-hint { bottom: -24px; }
  .zone { grid-template-columns: 104px minmax(0, 1fr); }
  .z-spec { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
  .z-spec div { border: none; padding: 0; gap: 6px; justify-content: flex-start; }
  .z-spec b { text-align: left; }
}
@media (max-width: 560px) {
  .zone { grid-template-columns: minmax(0, 1fr); padding-left: 14px; gap: 10px; }
  .z-range { padding-top: 0; }
  .z-spec { grid-column: 1; }
}


/* anatomy: push the photographic plate further back so the linework reads */
#anatomy .ch-bg { filter: brightness(0.46) saturate(0.92) blur(1.6px) contrast(1.02); }
#anatomy .ch-veil { background: linear-gradient(180deg, var(--bg) 0%, rgba(3, 6, 12, 0.52) 6%, rgba(3, 6, 12, 0.68) 46%, rgba(3, 6, 12, 0.7) calc(100% - 72px), var(--bg) 100%); }
