/* ==========================================================================
   ECHOES OF ASGARD & CHRISTOPHER HANNON — v19 MOBILE-FIRST 3D VIRTUAL WORLD
   - Unobstructed 3D mobile viewport (single-row swipeable HUD ribbon).
   - Extra-large, thumb-friendly Forward (▲) & Back (▼) walk buttons (58x50px).
   - Docked Left/Right Wing indicators that never collide with the 3D scene.
   ========================================================================== */

:root {
  --vw-obsidian: #05070a;
  --vw-panel: rgba(7, 11, 16, 0.94);
  --vw-gold: #dfbc78;
  --vw-gold-bright: #f5dda4;
  --vw-gold-border: rgba(223, 188, 120, 0.36);
  --vw-ember: #ff6e19;
  --vw-ink: #f3efe6;
  --vw-muted: #b8b3a8;
}

/* 1. Scoped 3D Virtual Environment Container */
.book-opening {
  position: relative;
  isolation: isolate;
  background: var(--vw-obsidian) !important;
  color: var(--vw-ink);
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 450dvh;
  border-bottom: 1px solid var(--vw-gold-border);
}

.book-opening * {
  box-sizing: border-box;
}

/* Hide legacy static utility elements so the 3D virtual journey is pure */
.book-opening .bo-utility,
.book-opening .bo-visual,
.book-opening .bo-mobile-scene,
.book-opening .bo-footnote,
body.bo-standalone > header.top {
  display: none !important;
}

.vw-canvas-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #131f2b 0%, #05070a 82%);
  touch-action: pan-y;
}

.vw-canvas-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.vw-canvas-stage canvas:active {
  cursor: grabbing;
}

/* 2. Invisible Scroll Waypoints */
.bo-layout {
  position: relative;
  z-index: 5;
  display: block !important;
  max-width: 1440px;
  margin: -100dvh auto 0;
  pointer-events: none;
}

.bo-reading {
  display: flex;
  flex-direction: column;
  gap: 75dvh;
  padding: 15dvh 5vw 35dvh;
  pointer-events: none;
}

.bo-beat {
  pointer-events: none !important;
  opacity: 0.001;
  clip-path: inset(50%);
  overflow: hidden;
  height: 18dvh;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 3. Bottom-Right Corner "Read more" Button & Vocal Journey Trigger */
.vw-corner-cluster {
  position: absolute;
  right: max(1rem, 3vw);
  bottom: max(1.1rem, 2.8dvh);
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: auto;
  max-width: min(410px, calc(100vw - 1.5rem));
}

.vw-corner-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 188, 120, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.4rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

.vw-corner-audio-btn,
.vw-action-btn {
  font: 600 11px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--vw-gold-bright);
  background: rgba(223, 188, 120, 0.14);
  border: 1px solid rgba(223, 188, 120, 0.38);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vw-corner-audio-btn:hover,
.vw-corner-audio-btn[aria-pressed="true"],
.vw-action-btn:hover,
.vw-action-btn[aria-pressed="true"] {
  background: var(--vw-gold);
  color: #06090e;
}

.vw-read-more-btn {
  font: 600 11px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06090e;
  background: var(--vw-gold);
  border: 1px solid var(--vw-gold-bright);
  border-radius: 999px;
  padding: 0.5rem 0.92rem;
  min-height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vw-read-more-btn:hover,
.vw-read-more-btn[aria-expanded="true"] {
  background: var(--vw-gold-bright);
  box-shadow: 0 0 14px rgba(223, 188, 120, 0.45);
}

/* Expandable Bottom-Right Read More Drawer */
.vw-readmore-drawer {
  width: min(390px, calc(100vw - 1.5rem));
  background: rgba(7, 11, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--vw-gold-border);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.88);
  color: var(--vw-ink);
}

.vw-readmore-drawer[hidden] {
  display: none !important;
}

.vw-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.vw-drawer-kicker {
  font: 700 9.5px/1.2 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vw-gold);
}

.vw-drawer-close {
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--vw-muted);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}

.vw-drawer-title {
  font: 400 1.15rem/1.22 Georgia, serif;
  color: var(--vw-ink);
  margin: 0 0 0.4rem;
}

.vw-drawer-quote {
  margin: 0.35rem 0 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--vw-gold);
  font: italic 0.9rem/1.45 Georgia, serif;
  color: var(--vw-gold-bright);
}

.vw-drawer-body {
  font: 0.85rem/1.55 Georgia, serif;
  color: #ddd6c7;
  margin: 0 0 0.65rem;
}

.vw-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.bo-library {
  background: #080d13 !important;
  color: var(--vw-gold) !important;
  padding: 1.25rem 5vw;
  font: 600 12px/1.4 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--vw-gold-border);
}

/* 4. Scoped Asgard v52 Build Video Player */
.asgard-player {
  margin: 26px 0;
  color: var(--vw-ink);
  background: rgba(9, 15, 21, 0.92);
  border: 1px solid var(--vw-gold-border);
  border-radius: 8px;
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.asgard-player .asgard-frame,
.content-video {
  position: relative;
  width: 100%;
  aspect-ratio: 854 / 480;
  background: #05070a;
  overflow: hidden;
  border: 1px solid rgba(223, 188, 120, 0.28);
  border-radius: 4px;
  display: block;
}

.asgard-player .asgard-frame img,
.asgard-player .asgard-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asgard-player .asgard-frame video {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.asgard-player.is-playing .asgard-frame video {
  opacity: 1;
}

.asgard-player .asgard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 8px;
}

.asgard-player figcaption,
.asgard-evidence-details {
  font: 13.5px/1.6 system-ui, sans-serif;
  color: var(--vw-muted);
  margin-top: 8px;
}

/* ==========================================================================
   UNIFIED OBSIDIAN DARK THEME & MOBILE IMAGE INTEGRITY OVERRIDES
   ========================================================================== */
:root {
  --paper: #070b10 !important;
  --cream: #0c131b !important;
  --journey-paper: #080d13 !important;
  --journey-ink: #f2ece1 !important;
  --ink: #f2ece1 !important;
  --muted: #b5b0a4 !important;
  --line: rgba(223, 188, 120, 0.24) !important;
}

html,
body,
body[data-atelier] {
  background-color: #05070a !important;
  color: #f2ece1 !important;
}

.nav,
.site-header {
  background: rgba(5, 7, 10, 0.92) !important;
  border-bottom: 1px solid rgba(223, 188, 120, 0.2) !important;
}

.nav .brand,
.nav-links,
.nav .nav-cta,
.mobile-toggle,
.nav .brand-mark {
  color: #f2ece1 !important;
}

.hero,
.story-path,
.journey-paper,
.section,
.section.alt,
.section-blue,
.section-rule,
.page-hero {
  background-color: #070b10 !important;
  background-image: radial-gradient(circle at 50% 15%, rgba(26, 42, 56, 0.28), rgba(5, 7, 10, 0.96) 75%) !important;
  color: #f2ece1 !important;
}

.story-path h2,
.story-path h3,
.story-path p,
.story-path-heading > p,
.journey-paper h2,
.journey-paper h3,
.journey-paper p,
.hero h1,
.hero h2,
.hero p,
.hero-lede,
.hero-copy,
.journal-local-feature h2,
.journal-local-feature p,
.article-card h3,
.article-card p {
  color: #f2ece1 !important;
}

.article-card,
.journal-local-feature,
.journey-card,
.card,
.explore-card,
.format-card,
.world-card,
.production-still,
.page-directory-card {
  background: rgba(11, 18, 26, 0.88) !important;
  border: 1px solid rgba(223, 188, 120, 0.28) !important;
  color: #f2ece1 !important;
}

.world-card img,
.production-still img,
.journey-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

/* ==========================================================================
   CINEMATIC STORYTELLING CURTAIN, FADE-IN, BOOK BAR & PROLOGUE MODAL
   ========================================================================== */
@keyframes vwFadeInStage {
  0% {
    opacity: 0;
    filter: brightness(0.15) blur(6px);
  }
  100% {
    opacity: 1;
    filter: brightness(1) blur(0px);
  }
}

.vw-canvas-stage canvas {
  animation: vwFadeInStage 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vw-story-curtain {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: radial-gradient(circle at 50% 46%, rgba(16, 25, 36, 0.96) 0%, #030508 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 2.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.vw-story-curtain.is-revealed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vw-curtain-inner {
  max-width: 560px;
  transform: translateY(0);
  transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.8s ease;
}

.vw-story-curtain.is-revealed .vw-curtain-inner {
  transform: translateY(-14px) scale(1.02);
  opacity: 0;
}

.vw-curtain-epigraph {
  font: 600 10.5px/1.4 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vw-gold);
  margin: 0 0 0.9rem;
  opacity: 0.9;
}

.vw-curtain-title {
  font: italic 400 clamp(1.55rem, 3.4vw, 2.45rem)/1.28 Georgia, 'Times New Roman', serif;
  color: var(--vw-ink);
  margin: 0 0 0.85rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.9);
}

.vw-curtain-sub {
  font: 400 clamp(0.92rem, 1.5vw, 1.08rem)/1.6 Georgia, serif;
  color: var(--vw-muted);
  margin: 0 0 1.65rem;
}

.vw-curtain-enter {
  font: 600 11px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #05070a;
  background: linear-gradient(135deg, var(--vw-gold-bright) 0%, var(--vw-gold) 100%);
  border: 1px solid var(--vw-gold-bright);
  border-radius: 999px;
  padding: 0.78rem 1.65rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(223, 188, 120, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vw-curtain-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 38px rgba(245, 221, 164, 0.58);
}

.vw-book-pill {
  position: fixed;
  left: max(1rem, 2.5vw);
  bottom: max(1rem, 2.6dvh);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(6, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(223, 188, 120, 0.42);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.78);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.vw-book-pill.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vw-book-pill img {
  width: 26px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(223, 188, 120, 0.4);
}

.vw-book-pill-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.vw-book-pill-title {
  font: 600 11px/1.1 Georgia, serif;
  color: var(--vw-ink);
}

.vw-book-pill-links {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.vw-book-pill-links a,
.vw-book-pill-links button {
  font: 600 9.5px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vw-gold-bright);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vw-prologue-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 5, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.vw-prologue-modal[hidden] {
  display: none !important;
}

.vw-prologue-dialog {
  width: min(680px, 100%);
  max-height: 86dvh;
  overflow-y: auto;
  background: #0a1017;
  border: 1px solid var(--vw-gold);
  border-radius: 12px;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--vw-ink);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.92);
}

.vw-prologue-dialog h3 {
  font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 Georgia, serif;
  color: var(--vw-gold-bright);
  margin: 0.25rem 0 1rem;
}

.vw-prologue-dialog p {
  font: 400 1.06rem/1.8 Georgia, serif;
  color: #e6dfd1;
  margin: 0 0 1.1rem;
}

/* ==========================================================================
   FULL-SITE 6DoF SPATIAL WEB OS, FLOATING 3D COMMERCE & WALK CONTROLS
   ========================================================================== */
.vw-spatial-hud {
  position: fixed;
  top: max(0.85rem, 1.8dvh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 98;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  background: rgba(5, 8, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(223, 188, 120, 0.4);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.78);
  max-width: 96vw;
}

.vw-hud-btn {
  font: 600 10.5px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #e6dfd1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 188, 120, 0.26);
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.vw-hud-btn:hover,
.vw-hud-btn[aria-pressed="true"],
.vw-hud-btn.is-active {
  color: #05070a;
  background: linear-gradient(135deg, #f5dda4 0%, #dfbc78 100%);
  border-color: #f5dda4;
  box-shadow: 0 0 18px rgba(223, 188, 120, 0.45);
}

/* Floating 3D Projected World Cards */
.vw-world-anchors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 18;
  overflow: hidden;
}

.vw-anchor-card {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(-9999px, -9999px, 0);
  pointer-events: auto;
  width: min(290px, 80vw);
  background: rgba(7, 11, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(223, 188, 120, 0.48);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: #f2ece1;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 0 24px rgba(223, 188, 120, 0.14);
  transition: opacity 0.28s ease, border-color 0.25s ease;
}

.vw-anchor-card:hover {
  border-color: #f5dda4;
}

.vw-anchor-kicker {
  display: block;
  font: 600 9px/1.2 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dfbc78;
  margin-bottom: 0.22rem;
}

.vw-anchor-title {
  font: 600 0.98rem/1.25 Georgia, serif;
  color: #fff8eb;
  margin: 0 0 0.35rem;
}

.vw-anchor-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0;
  border-top: 1px solid rgba(223, 188, 120, 0.2);
  border-bottom: 1px solid rgba(223, 188, 120, 0.2);
  margin: 0.38rem 0 0.52rem;
}

.vw-anchor-price {
  font: 700 1.05rem/1 system-ui, sans-serif;
  color: #f5dda4;
}

.vw-anchor-sub {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: #b9afa0;
}

.vw-anchor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.vw-anchor-btn {
  font: 600 9.5px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(223, 188, 120, 0.45);
  background: rgba(223, 188, 120, 0.14);
  color: #f5dda4;
  cursor: pointer;
  text-decoration: none;
}

.vw-anchor-btn.is-primary {
  background: linear-gradient(135deg, #f5dda4 0%, #dfbc78 100%);
  color: #06090e;
  border-color: #f5dda4;
}

/* Expandable Scrollable 3D Slate */
.vw-spatial-slate {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2.5vw, 2rem);
}

.vw-spatial-slate[hidden] {
  display: none !important;
}

.vw-slate-window {
  width: min(920px, 96vw);
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(12, 18, 27, 0.97) 0%, rgba(6, 9, 14, 0.98) 100%);
  border: 1px solid rgba(223, 188, 120, 0.55);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), 0 0 42px rgba(223, 188, 120, 0.16);
  color: #efe8d8;
  overflow: hidden;
}

.vw-slate-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid rgba(223, 188, 120, 0.24);
  background: rgba(4, 7, 11, 0.75);
}

.vw-slate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vw-slate-tab {
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 188, 120, 0.28);
  background: transparent;
  color: #cfc5b4;
  cursor: pointer;
}

.vw-slate-tab.is-active {
  background: rgba(223, 188, 120, 0.22);
  color: #f5dda4;
  border-color: #f5dda4;
}

.vw-slate-scroll {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  overflow-y: auto;
  line-height: 1.75;
  font-size: 1.02rem;
}

.vw-slate-scroll h2,
.vw-slate-scroll h3 {
  font-family: Georgia, serif;
  color: #f5dda4;
  margin-top: 0.4rem;
}

.vw-slate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.1rem 0;
}

.vw-slate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(223, 188, 120, 0.24);
  border-radius: 10px;
  padding: 1rem;
}

/* ==========================================================================
   ENLARGED WALK PAD & FORWARD / BACK ARROWS (DESKTOP & MOBILE)
   ========================================================================== */
.vw-walk-controls {
  position: fixed;
  bottom: max(0.9rem, 2dvh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 94;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 10, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(223, 188, 120, 0.48);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.82);
}

.vw-walk-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 188, 120, 0.48);
  background: rgba(255, 255, 255, 0.06);
  color: #f5dda4;
  font: 700 17px/1 system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

/* Prominent Enlarged Forward (▲) & Backward (▼) Buttons */
.vw-walk-btn[data-move="forward"],
.vw-walk-btn[data-move="backward"] {
  width: 54px;
  height: 46px;
  border-radius: 23px;
  font-size: 20px;
  background: rgba(223, 188, 120, 0.2);
  border-color: #f5dda4;
  color: #fff8eb;
  box-shadow: 0 0 14px rgba(223, 188, 120, 0.22);
}

.vw-walk-btn:hover {
  background: rgba(223, 188, 120, 0.32);
  border-color: #fff8eb;
}

.vw-walk-btn:active {
  background: #dfbc78 !important;
  color: #05070a !important;
  transform: scale(0.95);
}

.vw-walk-hint {
  font: 600 9.5px/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfc5b4;
  padding: 0 0.4rem;
}

/* Myth-vs-Reality Inspection Lens Overlay */
.vw-myth-lens {
  position: fixed;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 88;
  border: 2px solid #f5dda4;
  box-shadow: 0 0 40px rgba(223, 188, 120, 0.55), inset 0 0 32px rgba(223, 188, 120, 0.35);
  background: radial-gradient(circle at 50% 50%, rgba(28, 19, 8, 0.84) 0%, rgba(8, 12, 18, 0.94) 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.35rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vw-myth-lens.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Asynchronous Chronicle Footprints Toast */
.vw-footprint-ticker {
  position: fixed;
  top: max(3.8rem, 7.2dvh);
  right: max(1rem, 2.2vw);
  z-index: 90;
  background: rgba(7, 11, 17, 0.82);
  border: 1px solid rgba(223, 188, 120, 0.3);
  border-radius: 999px;
  padding: 0.32rem 0.78rem;
  font: 500 10px/1.2 system-ui, sans-serif;
  color: #dcd2c0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.vw-footprint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9d3b;
  box-shadow: 0 0 10px #ff9d3b;
}

/* Subpage Full-Screen 3D World Portal Overlay */
.vw-subpage-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: #05070a;
}

/* 360° Lateral Civilization & Cast Wing Indicators */
.vw-lateral-wing-indicators {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 82;
  display: flex;
  justify-content: space-between;
  padding: 0 max(0.6rem, 1.4vw);
  pointer-events: none;
}

.vw-wing-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 10, 16, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 188, 120, 0.44);
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  color: #f5dda4;
  font: 600 10px/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.vw-wing-pill:hover {
  background: linear-gradient(135deg, #f5dda4 0%, #dfbc78 100%);
  color: #05070a;
  border-color: #f5dda4;
  transform: scale(1.04);
}

.vw-cast-wing-card {
  width: min(265px, 76vw);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-color: rgba(245, 221, 164, 0.55);
}

.vw-cast-wing-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vw-cast-wing-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #dfbc78;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.vw-chris-host-dock {
  position: fixed;
  left: max(0.9rem, 2.2vw);
  bottom: max(4.5rem, 8.5dvh);
  z-index: 96;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: min(390px, calc(100vw - 1.8rem));
  pointer-events: auto;
}

.vw-chris-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 10, 15, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(223, 188, 120, 0.5);
  border-radius: 999px;
  padding: 0.32rem 0.85rem 0.32rem 0.36rem;
  color: #f5dda4;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vw-chris-host-badge:hover {
  border-color: #f5dda4;
  transform: translateY(-1px);
}

.vw-chris-host-badge img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #dfbc78;
}

.vw-chris-host-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.vw-chris-host-name {
  font: 700 10.5px/1.15 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5dda4;
}

.vw-chris-host-role {
  font: 500 9.5px/1.2 Georgia, serif;
  color: #cfc5b4;
}

.vw-chris-guide-card {
  background: rgba(7, 11, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(223, 188, 120, 0.52);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  color: #f2ece1;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.88);
  font: 400 0.86rem/1.52 Georgia, serif;
}

.vw-chris-guide-card[hidden] {
  display: none !important;
}

.vw-chris-guide-list {
  margin: 0.5rem 0 0.7rem;
  padding-left: 1.1rem;
  font: 400 0.8rem/1.48 system-ui, sans-serif;
  color: #dcd4c6;
}

.vw-chris-guide-list li {
  margin-bottom: 0.3rem;
}

.vw-lang-select {
  font: 600 10px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5dda4;
  background: rgba(223, 188, 120, 0.14);
  border: 1px solid rgba(223, 188, 120, 0.42);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  cursor: pointer;
  outline: none;
}

.vw-lang-select option {
  background: #070b10;
  color: #f2ece1;
}

/* ==========================================================================
   v19 MOBILE VIEWPORT FIX & LARGE TOUCH-FRIENDLY WALK ARROWS (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .vw-walk-hint,
  .vw-footprint-ticker,
  .vw-book-pill {
    display: none !important;
  }

  /* 1. Single-row horizontal swipeable top ribbon (never wraps into a vertical blob) */
  .vw-spatial-hud {
    top: 74px !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    transform: none !important;
    max-width: calc(100vw - 1rem) !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 14px !important;
    padding: 0.38rem 0.55rem !important;
    gap: 0.4rem !important;
  }

  .vw-spatial-hud::-webkit-scrollbar {
    display: none;
  }

  .vw-hud-btn,
  .vw-lang-select {
    flex: 0 0 auto !important;
    font-size: 11px !important;
    padding: 0.5rem 0.85rem !important;
    min-height: 36px !important;
  }

  /* 2. Dock Left/Right Wing Pills cleanly above the bottom controls (out of center view) */
  .vw-lateral-wing-indicators {
    top: auto !important;
    bottom: 9.6rem !important;
    transform: none !important;
    padding: 0 0.55rem !important;
    gap: 0.4rem;
  }

  .vw-wing-pill {
    font-size: 9.5px !important;
    padding: 0.42rem 0.68rem !important;
    max-width: 47vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 3. Position Christopher Host Badge & Read More cleanly above the Walk Pad */
  .vw-chris-host-dock {
    left: 0.55rem !important;
    bottom: 5.3rem !important;
    max-width: calc(100vw - 9.2rem) !important;
  }

  .vw-chris-host-badge {
    padding: 0.26rem 0.68rem 0.26rem 0.3rem !important;
  }

  .vw-chris-host-badge img {
    width: 30px !important;
    height: 30px !important;
  }

  .vw-chris-host-name {
    font-size: 9.5px !important;
  }

  .vw-chris-host-role {
    font-size: 8.5px !important;
  }

  .vw-corner-cluster {
    right: 0.55rem !important;
    bottom: 5.3rem !important;
  }

  .vw-corner-bar {
    padding: 0.24rem 0.32rem !important;
  }

  .vw-corner-audio-btn,
  .vw-read-more-btn {
    font-size: 10px !important;
    padding: 0.4rem 0.68rem !important;
    min-height: 32px !important;
  }

  /* 4. Extra-Large, Easy-Touch Walk Pad & Forward/Back Arrows */
  .vw-walk-controls {
    bottom: max(0.6rem, env(safe-area-inset-bottom)) !important;
    padding: 0.42rem 0.75rem !important;
    gap: 0.55rem !important;
    border-radius: 999px !important;
    background: rgba(6, 10, 15, 0.95) !important;
    border: 1.5px solid rgba(223, 188, 120, 0.6) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9) !important;
  }

  .vw-walk-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 19px !important;
    border-width: 1.5px !important;
    border-color: rgba(223, 188, 120, 0.55) !important;
    touch-action: manipulation;
  }

  .vw-walk-btn[data-move="forward"],
  .vw-walk-btn[data-move="backward"] {
    width: 58px !important;
    height: 50px !important;
    border-radius: 25px !important;
    font-size: 22px !important;
    background: rgba(223, 188, 120, 0.22) !important;
    border-color: #f5dda4 !important;
    color: #fff8eb !important;
    box-shadow: 0 0 16px rgba(223, 188, 120, 0.28) !important;
  }
}


/* ============================================================================
   v21 MOBILE CONSTANT-FLOW SCROLL TRACK & ANTI-CALLOUT WALK PAD REFINEMENTS
   ============================================================================ */
@media (max-width: 820px) {
  .book-opening {
    min-height: 620dvh !important;
  }
  .bo-reading {
    gap: 110dvh !important;
    padding: 20dvh 5vw 45dvh !important;
  }
  .vw-walk-btn,
  .vw-walk-controls {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
  }
}


/* ============================================================================
   v22 KING'S ROAD TOWN PROXIMITY-EXPANDING FLOATING IMAGE CARD
   ============================================================================ */
.vw-town-proximity-card {
  position: absolute;
  top: 0;
  left: 0;
  width: min(305px, 84vw);
  background: rgba(6, 10, 16, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(245, 221, 164, 0.68);
  border-radius: 14px;
  padding: 0.72rem 0.92rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.88), 0 0 24px rgba(223, 188, 120, 0.24);
  transition: opacity 0.25s ease;
  pointer-events: auto;
  z-index: 19;
}

.vw-town-proximity-card .vw-anchor-title {
  font-size: 0.98rem;
  margin: 0.15rem 0 0.25rem;
  color: #fff8eb;
}

.vw-town-proximity-card .vw-anchor-sub {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #d8d0c0;
  margin: 0 0 0.52rem;
}


/* ============================================================================
   v25 UNREAL ENGINE L_EOA_ASGARD_ENTRANCE_RECON_001 PHOTOREAL PBR PLAZA
   ============================================================================ */
.vw-canvas-stage {
  background: linear-gradient(180deg, #8ab0d6 0%, #c8d8e8 56%, #8f8474 100%) !important;
}

.vw-anchor-card {
  opacity: 0;
  pointer-events: none;
}


/* ============================================================================
   v26 ROAD PASS-THROUGH EA MONOGRAM & AUTOMATIC HUD / BUTTON OPACITY FADE
   ============================================================================ */
.vw-spatial-hud,
.vw-lateral-wing-indicators,
.vw-chris-host-dock,
.vw-walk-controls,
.vw-corner-cluster,
.vw-book-pill {
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s ease, filter 0.32s ease;
}

/* Elevate active 3D pop-up cards above lateral wing indicators & host badge */
.vw-world-anchors,
.vw-anchor-card,
.vw-town-proximity-card {
  z-index: 92 !important;
}

/* When a proximity card, portrait medallion, town plate, or drawer pops up, fade all surrounding buttons */
body.vw-focus-active .vw-spatial-hud,
.vw-canvas-stage.is-focus-active ~ .vw-spatial-hud {
  opacity: 0.16;
}

body.vw-focus-active .vw-lateral-wing-indicators,
.vw-canvas-stage.is-focus-active .vw-lateral-wing-indicators {
  opacity: 0.12;
  z-index: 15 !important;
}

body.vw-focus-active .vw-chris-host-dock,
.vw-canvas-stage.is-focus-active .vw-chris-host-dock {
  opacity: 0.14;
  z-index: 16 !important;
}

/* Keep the guide card fully opaque if the user explicitly opened it */
body.vw-focus-active .vw-chris-host-dock:has(.vw-chris-guide-card:not([hidden])),
.vw-canvas-stage.is-focus-active .vw-chris-host-dock:has(.vw-chris-guide-card:not([hidden])) {
  opacity: 1 !important;
  z-index: 99 !important;
}

body.vw-focus-active .vw-walk-controls,
.vw-canvas-stage.is-focus-active .vw-walk-controls {
  opacity: 0.18;
}

body.vw-focus-active .vw-corner-cluster,
.vw-canvas-stage.is-focus-active .vw-corner-cluster {
  opacity: 0.18;
}

body.vw-focus-active .vw-corner-cluster:has(.vw-readmore-drawer:not([hidden])),
.vw-canvas-stage.is-focus-active .vw-corner-cluster:has(.vw-readmore-drawer:not([hidden])) {
  opacity: 1 !important;
  z-index: 99 !important;
}

body.vw-focus-active .vw-book-pill.is-active {
  opacity: 0.16;
}

/* Restore full opacity immediately when touching, hovering, or focusing any faded control */
body.vw-focus-active .vw-spatial-hud:hover,
body.vw-focus-active .vw-spatial-hud:active,
body.vw-focus-active .vw-spatial-hud:focus-within,
body.vw-focus-active .vw-lateral-wing-indicators:hover,
body.vw-focus-active .vw-lateral-wing-indicators:active,
body.vw-focus-active .vw-chris-host-dock:hover,
body.vw-focus-active .vw-chris-host-dock:active,
body.vw-focus-active .vw-walk-controls:hover,
body.vw-focus-active .vw-walk-controls:active,
body.vw-focus-active .vw-corner-cluster:hover,
body.vw-focus-active .vw-corner-cluster:active,
body.vw-focus-active .vw-book-pill:hover,
body.vw-focus-active .vw-book-pill:active {
  opacity: 1 !important;
}
