/* ═══════════════════════════════════════════════════════════════
   Journey — "The Descent" scroll-choreographed landing scenes
   Sticky scene sections · layered parallax · map zoom · motes
   Progressive enhancement: everything readable without JS.
   ═══════════════════════════════════════════════════════════════ */

.journey { position: relative; }

.j-scene { position: relative; }
.j-scene--citadel { height: 150vh; background: linear-gradient(180deg, #1a2340 0%, #2a1f3a 45%, #0e0b07 100%); }
.j-scene--realm   { height: 200vh; background: linear-gradient(180deg, #0e0b07 0%, #16110a 50%, #0e0b07 100%); }
.j-scene--world   { height: 330vh; background: linear-gradient(180deg, #0e0b07 0%, #0a1016 25%, #0a1016 75%, #0e0b07 100%); }
.j-scene--depths  { height: 200vh; background: linear-gradient(180deg, #0e0b07 0%, #160a0c 35%, #0a0508 100%); }
.j-scene--call    { height: 120vh; background: linear-gradient(180deg, #0a0508 0%, #0a0508 35%, #14100a 65%, var(--bg) 100%); }

.j-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.j-layer { position: absolute; pointer-events: none; }

/* ── Scene 1: The Citadel ─────────────────────────────────── */

.j-glow {
  inset: -25%;
  background:
    radial-gradient(ellipse 55% 40% at 50% 18%, rgba(245, 217, 138, 0.20) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 30%, rgba(255, 233, 168, 0.12) 0%, transparent 60%);
}
.j-rays {
  inset: -40% -20%;
  background: repeating-conic-gradient(from 195deg at 50% -10%,
    rgba(245, 217, 138, 0.045) 0deg 5deg, transparent 5deg 20deg);
}

.j-hero { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.j-crest { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(245, 217, 138, 0.45)); margin-bottom: 8px; }
.j-title {
  font-family: Cinzel, serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.06em;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(245, 217, 138, 0.25);
}
.j-tagline { font-size: clamp(15px, 1.6vw, 19px); color: var(--text); max-width: 620px; line-height: 1.7; margin: 14px 0 0; }
.j-tagline-gold { color: var(--accent-gold); font-weight: 600; font-size: 15px; }

.j-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.j-cta {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  padding: 13px 30px; border-radius: var(--r-pill);
  background: var(--grad-aurora); color: #1a1410; text-decoration: none;
  box-shadow: 0 6px 24px rgba(245, 217, 138, 0.3);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.j-cta:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 10px 32px rgba(245, 217, 138, 0.45); }
.j-cta--ghost { background: transparent; color: var(--accent-gold); border: 1px solid var(--border-gold); box-shadow: none; }
.j-cta--ghost:hover { background: rgba(245, 217, 138, 0.08); }

.j-scrollcue {
  position: absolute; bottom: -14vh; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.j-cue-arrow { animation: jcue 1.8s ease-in-out infinite; color: var(--accent-gold); }
@keyframes jcue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(7px); opacity: 1; } }

/* ── Shared scene typography ──────────────────────────────── */

.j-scene-heading {
  font-family: Cinzel, serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-bright); margin: 0 0 12px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.j-heading-dark { color: #d8b8a8; }

/* ── Scene 2: The Realm ───────────────────────────────────── */

.j-stats { display: flex; gap: clamp(30px, 7vw, 90px); margin-top: 34px; }
.j-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.j-stat-num {
  font-family: Cinzel, serif; font-size: clamp(38px, 5.5vw, 64px); font-weight: 700;
  background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.j-stat-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }

.j-whispers { position: absolute; top: 14%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.j-whisper {
  margin: 0; font-family: Cinzel, serif; font-style: italic;
  font-size: clamp(12px, 1.3vw, 15px); letter-spacing: 0.08em;
  color: rgba(216, 201, 168, 0.30);
}
.j-armed .j-whisper { opacity: 0; transform: translateY(12px); transition: opacity 1.1s ease, transform 1.1s ease; transition-delay: calc(var(--wi) * 0.35s); }
.j-armed .j-whisper.on { opacity: 1; transform: none; }

.j-walker { position: absolute; bottom: 9%; left: 0; right: 0; height: 96px; pointer-events: none; }
.j-walker-mover {
  position: absolute; left: 0; bottom: 12px;
  animation: jwalkmove 17s linear infinite;
}
.j-walker-img {
  display: block; width: 64px;
  image-rendering: pixelated;
  animation: jwalkscuttle 0.36s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
/* Walk strip — geometry set by journey.js (frame size varies per creature).
   The bob/tilt cycle fakes a gait for single-frame strips. */
.j-walker-sprite {
  display: none;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: jwalkscuttle 0.36s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
@keyframes jwalkmove { from { transform: translateX(-140px); } to { transform: translateX(100vw); } }
@keyframes jwalkbob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
/* Snappier gait for single-frame strips — reads as stepping/scuttling. */
@keyframes jwalkscuttle {
  from { transform: translateY(0) rotate(-4deg) scaleY(1); }
  to { transform: translateY(-4px) rotate(4deg) scaleY(0.94); }
}
.j-walker-label {
  position: absolute; bottom: -6px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
  pointer-events: auto;
}
.j-walker-label a { color: var(--accent-gold); text-decoration: none; }

/* ── Scene 3: The World ───────────────────────────────────── */

.j-worldstage { padding: 0; }
.j-mapview { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.j-mapinner { position: relative; width: min(96vw, calc(86vh * 1.2688)); aspect-ratio: 1929 / 1520; }
.j-mapzoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.j-mapimg { width: 100%; height: 100%; display: block; border-radius: 10px; box-shadow: 0 0 90px rgba(0, 0, 0, 0.75), 0 0 30px rgba(106, 143, 196, 0.12); }

.j-town {
  position: absolute; z-index: 3; text-decoration: none;
  transform: translate(-50%, -50%) scale(calc(1 / var(--jms, 1)));
  transform-origin: 0 0;
}
.j-town i {
  display: block; width: 9px; height: 9px; border-radius: 50%; margin: 0 auto;
  background: var(--accent-gold); box-shadow: 0 0 10px rgba(245, 217, 138, 0.9);
}
.j-town--end i { background: var(--red); box-shadow: 0 0 10px rgba(196, 90, 74, 0.9); }
.j-town--starter i { animation: jtownpulse 1.6s ease-in-out infinite; }
@keyframes jtownpulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 217, 138, 0.9), 0 0 0 0 rgba(245, 217, 138, 0.5); }
  50% { box-shadow: 0 0 12px rgba(245, 217, 138, 1), 0 0 0 8px rgba(245, 217, 138, 0); }
}
.j-town span {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  color: var(--text-bright); background: rgba(10, 8, 5, 0.85);
  padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border);
  opacity: 0; transition: opacity 0.3s;
}
.j-town:hover span { opacity: 1; }
.j-armed .j-town { opacity: 0; transition: opacity 0.6s ease; }
.j-armed .j-town.on { opacity: 1; }
.j-armed .j-town.on span { opacity: 0; }
.j-armed .j-town.on:hover span,
.j-armed .j-town--starter.on span { opacity: 1; }

.j-world-caption { position: absolute; left: 5%; bottom: 7%; z-index: 5; text-align: left; pointer-events: none; }
.j-world-caption .j-scene-heading { margin-bottom: 4px; }
.j-world-sub { margin: 0; color: var(--text-dim); font-size: 15px; font-style: italic; }

/* ── Scene 4: The Depths ──────────────────────────────────── */

.j-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Abyss glow — a red bloom rising from below that intensifies as you
   descend (--p is the scene's scroll progress, set by journey.js). */
.j-abyss {
  inset: 0;
  background:
    radial-gradient(ellipse 72% 46% at 50% 108%, rgba(196, 90, 74, 0.30) 0%, transparent 66%),
    radial-gradient(ellipse 42% 24% at 50% 104%, rgba(224, 110, 90, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(8, 4, 6, 0.6) 0%, transparent 60%);
  opacity: calc(0.25 + var(--p, 0) * 0.75);
}

/* The failing ward — concentric seal rings floating behind the villain
   names. Centered via inset+margin so journey.js parallax owns
   transform. As --p grows the seal dims and drifts apart; a red crack
   blooms across its face — the wards literally failing underfoot. */
.j-ward {
  inset: 0; margin: auto;
  width: min(74vw, 62vh); aspect-ratio: 1;
  opacity: calc(0.85 - var(--p, 0) * 0.55);
}
.j-ward i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(245, 217, 138, 0.30);
  box-shadow:
    0 0 26px rgba(245, 217, 138, 0.14),
    inset 0 0 34px rgba(196, 90, 74, 0.12);
}
.j-ward i:nth-child(2) {
  inset: 11%;
  border-color: rgba(245, 217, 138, 0.22);
  border-style: dashed;
  animation: jwardspin 90s linear infinite;
}
.j-ward i:nth-child(3) {
  inset: 23%;
  border-color: rgba(196, 90, 74, 0.30);
  transform: scale(calc(1 + var(--p, 0) * 0.08));
  animation: jwardspin 64s linear infinite reverse;
}
@keyframes jwardspin { to { transform: scale(calc(1 + var(--p, 0) * 0.08)) rotate(360deg); } }
/* The crack — crossing fault-lines that fade in with scroll depth. */
.j-ward b {
  position: absolute; inset: 8%;
  background:
    linear-gradient(63deg, transparent 49.6%, rgba(224, 110, 90, 0.9) 50%, transparent 50.6%),
    linear-gradient(158deg, transparent 49.4%, rgba(196, 90, 74, 0.8) 49.9%, transparent 50.4%),
    linear-gradient(104deg, transparent 49.2%, rgba(224, 110, 90, 0.6) 49.8%, transparent 50.3%);
  opacity: calc((var(--p, 0) - 0.35) * 2.4);
  filter: blur(1px) drop-shadow(0 0 12px rgba(196, 90, 74, 0.8));
  clip-path: circle(46% at 50% 50%);
}

.j-villains { display: flex; gap: clamp(40px, 9vw, 120px); margin-top: 30px; }
.j-villain {
  position: relative;
  font-family: Cinzel, serif; font-size: clamp(26px, 4.2vw, 50px); font-weight: 700;
  letter-spacing: 0.1em; text-decoration: none; text-align: center;
  color: rgba(196, 90, 74, 0.52);
  text-shadow: 0 0 24px rgba(196, 90, 74, 0.18);
  transition: color 0.4s, text-shadow 0.4s;
}
.j-villain::before {
  content: ""; position: absolute; inset: -34% -20%; z-index: -1;
  background: radial-gradient(ellipse 50% 52% at 50% 55%, rgba(196, 90, 74, 0.20), transparent 70%);
  opacity: 0; transition: opacity 0.8s;
}
.j-villain span { display: block; font-size: 0.32em; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(216, 201, 168, 0.55); margin-top: 6px; }
.j-villain:hover { color: rgba(224, 110, 90, 0.9); text-shadow: 0 0 40px rgba(196, 90, 74, 0.55); }
.j-villain:hover::before { opacity: 1; }
.j-armed .j-villain { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s ease, color 0.4s, text-shadow 0.4s; transition-delay: calc(var(--vi) * 0.4s); }
.j-armed .j-villain.on { opacity: 1; transform: none; }
.j-armed .j-villain.on::before { opacity: 1; animation: jvillainaura 4.5s ease-in-out infinite alternate; }
.j-armed .j-villain.on { animation: jvillainember 5s ease-in-out infinite alternate; }
@keyframes jvillainember {
  from { color: rgba(196, 90, 74, 0.46); text-shadow: 0 0 20px rgba(196, 90, 74, 0.14); }
  to   { color: rgba(216, 104, 84, 0.66); text-shadow: 0 0 38px rgba(196, 90, 74, 0.34); }
}
@keyframes jvillainaura { from { opacity: 0.5; } to { opacity: 1; } }

.j-depths-line { margin-top: 46px; color: var(--text-dim); font-style: italic; font-size: 16px; letter-spacing: 0.05em; }
.j-armed .j-depths-line { opacity: 0; transition: opacity 1.2s ease; }
.j-armed .j-depths-line.on { opacity: 1; }

/* ── Scene 5: The Call ────────────────────────────────────── */

/* Volumetric light shaft — stacked radial gradients anchored above the
   viewport, so light fans out with fully feathered edges (no silhouette). */
.j-shaft {
  inset: 0;
  background:
    radial-gradient(ellipse 34% 95% at 50% -14%, rgba(255, 233, 168, 0.20) 0%, rgba(245, 217, 138, 0.07) 48%, transparent 72%),
    radial-gradient(ellipse 55% 105% at 50% -18%, rgba(245, 217, 138, 0.10) 0%, transparent 68%);
}
.j-shaft--core {
  inset: 0;
  background:
    radial-gradient(ellipse 15% 82% at 50% -10%, rgba(255, 240, 200, 0.30) 0%, rgba(245, 217, 138, 0.11) 55%, transparent 78%);
}
.j-pool {
  bottom: -18%; left: 50%; transform: translateX(-50%);
  width: 64vw; height: 46%;
  background: radial-gradient(ellipse 50% 55% at 50% 100%, rgba(245, 217, 138, 0.16) 0%, transparent 70%);
}
/* Sparse ember motes drifting up through the shaft — residue of the Depths. */
.j-embers {
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 22% 78%, rgba(196, 90, 74, 0.55), transparent 60%),
    radial-gradient(2px 2px at 68% 84%, rgba(245, 217, 138, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 90%, rgba(196, 90, 74, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 66%, rgba(245, 217, 138, 0.35), transparent 60%),
    radial-gradient(2px 2px at 55% 58%, rgba(245, 217, 138, 0.3), transparent 60%);
  animation: jembersrise 9s ease-in-out infinite alternate;
}
@keyframes jembersrise { from { transform: translateY(14px); opacity: 0.7; } to { transform: translateY(-18px); opacity: 1; } }
.j-skip { margin-top: 30px; color: var(--text-dim); font-size: 13px; text-decoration: none; letter-spacing: 0.04em; }
.j-skip:hover { color: var(--accent-gold); }

/* ── Progress rail ────────────────────────────────────────── */

.j-rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 18px;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.journey.j-live .j-rail { opacity: 1; pointer-events: auto; }
.j-rail-dot { display: flex; align-items: center; flex-direction: row-reverse; gap: 10px; text-decoration: none; }
.j-rail-dot i { width: 8px; height: 8px; border-radius: 50%; background: rgba(216, 201, 168, 0.3); transition: all 0.3s; }
.j-rail-dot span {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
  opacity: 0; transform: translateX(6px); transition: all 0.3s;
}
.j-rail-dot:hover span, .j-rail-dot.on span { opacity: 1; transform: none; }
.j-rail-dot.on i { background: var(--accent-gold); box-shadow: 0 0 10px rgba(245, 217, 138, 0.8); transform: scale(1.45); }

/* ═══════════════════════════════════════════════════════════════
   The Chronicle — scroll-drawn timeline (/history)
   Central thread fills with scroll; era cards alternate sides
   and ignite as they enter view.
   ═══════════════════════════════════════════════════════════════ */

.j-timeline { position: relative; padding: 30px 0 50px; }

.j-thread {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; margin-left: -1.5px;
  background: rgba(216, 201, 168, 0.10);
  border-radius: 2px;
}
.j-thread-fill {
  width: 100%; height: 0;
  background: linear-gradient(180deg,
    var(--accent-gold) 0%, var(--arcane) 30%,
    #c9a84c 55%, var(--red) 80%, var(--accent-gold-bright) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(245, 217, 138, 0.35);
  transition: height 0.15s linear;
}

.j-era {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  margin: 0 0 44px;
}
.j-era-node {
  grid-column: 2; grid-row: 1; justify-self: center;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; font-weight: 700; font-size: 16px;
  color: var(--text-dim);
  background: var(--bg-panel-alt);
  border: 2px solid var(--border);
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
  position: sticky; top: 46vh; z-index: 2;
}
.j-era.on .j-era-node {
  border-color: var(--era); color: var(--era);
  box-shadow: 0 0 18px color-mix(in srgb, var(--era) 45%, transparent);
}

.j-era-card {
  grid-row: 1;
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--era);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--glass-shadow);
}
.j-era-card h2 { font-family: Cinzel, serif; font-size: 21px; color: var(--era); margin: 0 0 12px; }
.j-era-card ul, .j-era-card ol { margin: 0; padding-left: 20px; line-height: 1.75; color: var(--text); }
.j-era-card li { margin-bottom: 7px; }

/* Alternate sides: odd eras left, even right */
.j-era:nth-of-type(odd) .j-era-card { grid-column: 1; }
.j-era:nth-of-type(even) .j-era-card { grid-column: 3; }

/* Scroll reveal (only when JS armed the timeline) */
.j-timeline.j-armed .j-era-card { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.j-timeline.j-armed .j-era:nth-of-type(odd) .j-era-card { transform: translateX(-32px); }
.j-timeline.j-armed .j-era:nth-of-type(even) .j-era-card { transform: translateX(32px); }
.j-timeline.j-armed .j-era.on .j-era-card { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .j-thread { left: 22px; }
  .j-era { grid-template-columns: 44px 1fr; margin-bottom: 30px; }
  .j-era-node { grid-column: 1; width: 40px; height: 40px; font-size: 14px; }
  .j-era:nth-of-type(odd) .j-era-card,
  .j-era:nth-of-type(even) .j-era-card { grid-column: 2; }
  .j-timeline.j-armed .j-era:nth-of-type(odd) .j-era-card,
  .j-timeline.j-armed .j-era:nth-of-type(even) .j-era-card { transform: translateX(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .j-thread-fill { height: 100% !important; transition: none; }
  .j-era-node { position: static; }
}

.j-timeline.journey-static .j-thread-fill { height: 100% !important; transition: none; }
.j-timeline.journey-static .j-era-node { position: static; }

/* ═══════════════════════════════════════════════════════════════
   Town map — /towns spatial panel
   Composite map + MST road network drawing on + clickable nodes
   that anchor to town cards below.
   ═══════════════════════════════════════════════════════════════ */

.j-townmap { margin: 6px 0 34px; }
.j-townmap-frame {
  position: relative;
  aspect-ratio: 1929 / 1520;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  background: #0a1016;
}
.j-townmap-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.j-townmap-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.j-road {
  stroke: rgba(245, 217, 138, 0.4);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.j-townmap.j-armed .j-road { transition: stroke-dashoffset 1.1s ease; }

.j-tm-node { position: absolute; transform: translate(-50%, -50%); z-index: 3; text-decoration: none; }
.j-tm-node i {
  display: block; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto;
  background: var(--accent-gold); box-shadow: 0 0 9px rgba(245, 217, 138, 0.85);
  transition: transform 0.2s;
}
.j-tm-node:hover i { transform: scale(1.6); }
.j-tm-node--end i { background: var(--red); box-shadow: 0 0 9px rgba(196, 90, 74, 0.85); }
.j-tm-node--starter i { animation: jtownpulse 1.6s ease-in-out infinite; }
.j-tm-node span {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  color: var(--text-bright); background: rgba(10, 8, 5, 0.85);
  padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.j-tm-node:hover span, .j-tm-node--starter span { opacity: 1; }
.j-townmap-hint { text-align: center; font-size: 12px; margin: 8px 0 0; }

.town-card { scroll-margin-top: 84px; transition: border-color 0.4s, box-shadow 0.4s; }
.town-card:target {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold), 0 0 34px rgba(245, 217, 138, 0.15);
}

@media (max-width: 768px) {
  .j-tm-node span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .j-townmap .j-road { transition: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .j-tm-node--starter i { animation: none; }
}
.j-townmap.journey-static .j-road { transition: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.j-townmap.journey-static .j-tm-node--starter i { animation: none; }

/* ── Day theme adjustments ────────────────────────────────── */

body.theme-day .j-scene--citadel { background: linear-gradient(180deg, #4a5a80 0%, #6a5570 45%, #2a2218 100%); }
body.theme-day .j-scene--realm   { background: linear-gradient(180deg, #2a2218 0%, #33291a 50%, #2a2218 100%); }
body.theme-day .j-tagline { color: var(--text-bright); }

/* World, Depths and Call keep their night backgrounds under theme-day, but
   the theme vars turn near-black there — restore the night text palette
   scoped to those scenes so headings/taglines/CTAs stay readable. */
body.theme-day .j-scene--world,
body.theme-day .j-scene--depths,
body.theme-day .j-scene--call {
  --text: #d8c9a8;
  --text-dim: #9a8a68;
  --text-bright: #f5e8c8;
  --accent: #e8c170;
  --accent-gold: #f5d98a;
  --accent-gold-bright: #ffe9a8;
}

/* ── Fallbacks ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .j-scene--citadel { height: 115vh; }
  .j-scene--realm   { height: 150vh; }
  .j-scene--world   { height: 210vh; }
  .j-scene--depths  { height: 150vh; }
  .j-scene--call    { height: 100vh; }
  .j-rail { display: none; }
  .j-stats { gap: 22px; }
  .j-villains { flex-direction: column; gap: 22px; }
  .j-crest { width: 92px; height: 92px; }
  .j-world-caption { left: 6%; right: 6%; }
  .j-town span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .j-scene { height: auto !important; }
  .j-sticky { position: static; height: auto; min-height: 62vh; padding: 90px 24px; }
  .j-rail, .j-motes, .j-layer, .j-scrollcue { display: none; }
  .j-walker-mover { animation: none; left: 45%; }
  .j-walker-sprite, .j-walker-img { animation: none; }
  .j-town--starter i { animation: none; }
}

/* JS-driven static mode (same as reduced-motion, toggled by journey.js) */
.journey-static .j-scene { height: auto !important; }
.journey-static .j-sticky { position: static; height: auto; min-height: 62vh; padding: 90px 24px; }
.journey-static .j-rail, .journey-static .j-motes, .journey-static .j-layer, .journey-static .j-scrollcue { display: none; }
.journey-static .j-walker-mover { animation: none; left: 45%; }
.journey-static .j-walker-sprite, .journey-static .j-walker-img { animation: none; }
.journey-static .j-town--starter i { animation: none; }
