/* ============================================================
   SANCTUM ENGINE — CSS 3D Architecture
   Odin's Eye Enterprises — Est. 2026
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --void:          #0a0a0a;
  --gold:          #D4AF37;
  --gold-dim:      rgba(212,175,55,0.12);
  --gold-glow:     rgba(212,175,55,0.35);
  --gold-mid:      rgba(212,175,55,0.55);
  --stone:         #111111;
  --stone-mid:     #1a1a1a;
  --mercury-col:   #a0a0a8;
  --border:        rgba(212,175,55,0.18);

  /* Sun theming (overridden by JS) */
  --sun-color:     #FFB347;
  --sun-glow:      rgba(255,179,71,0.3);
  --sun-angle:     45deg;

  /* Material theming (overridden by JS) */
  --mat-base:      #1c1a17;
  --mat-surface:   #2a2520;
  --mat-accent:    #3d3530;
  --mat-sheen:     rgba(255,255,255,0.04);

  /* Moon theming */
  --moon-particle: rgba(212,175,55,0.15);

  /* Scene */
  --scene-depth:   1200px;
  --col-height:    320px;
  --col-radius:    18px;

  /* Transit */
  --transit-glow:  rgba(212,175,55,0.6);
}

/* Material overrides */
.mat-stone  { --mat-base:#1a1715; --mat-surface:#252118; --mat-accent:#332c24; --mat-sheen:rgba(200,190,170,0.05) }
.mat-glass  { --mat-base:#0d1420; --mat-surface:#141e2e; --mat-accent:#1e2d42; --mat-sheen:rgba(100,160,255,0.08) }
.mat-liquid { --mat-base:#06141a; --mat-surface:#0c2030; --mat-accent:#163040; --mat-sheen:rgba(80,200,255,0.10) }
.mat-volcanic { --mat-base:#1a0a06; --mat-surface:#2a1208; --mat-accent:#40200c; --mat-sheen:rgba(255,80,30,0.10) }

/* Sun sign colors */
.sun-aries       { --sun-color:#FF6B35; --sun-glow:rgba(255,107,53,0.30) }
.sun-taurus      { --sun-color:#7BC67E; --sun-glow:rgba(123,198,126,0.25) }
.sun-gemini      { --sun-color:#FFD93D; --sun-glow:rgba(255,217,61,0.30) }
.sun-cancer      { --sun-color:#C3B1E1; --sun-glow:rgba(195,177,225,0.25) }
.sun-leo         { --sun-color:#FFB347; --sun-glow:rgba(255,179,71,0.35) }
.sun-virgo       { --sun-color:#8FBC8F; --sun-glow:rgba(143,188,143,0.25) }
.sun-libra       { --sun-color:#FF9EB5; --sun-glow:rgba(255,158,181,0.25) }
.sun-scorpio     { --sun-color:#C0392B; --sun-glow:rgba(192,57,43,0.30) }
.sun-sagittarius { --sun-color:#9B59B6; --sun-glow:rgba(155,89,182,0.30) }
.sun-capricorn   { --sun-color:#AAB7B8; --sun-glow:rgba(170,183,184,0.25) }
.sun-aquarius    { --sun-color:#00CED1; --sun-glow:rgba(0,206,209,0.30) }
.sun-pisces      { --sun-color:#6495ED; --sun-glow:rgba(100,149,237,0.30) }

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }

html {
  font-size: 16px;
  background: var(--void);
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--void);
  color: #d8d0c0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Hidden Easter Eggs ─────────────────────────────────────── */
/* ♊ Est. 2026 🐾 */
.gemini-glyph::before  { content: '♊'; opacity: 0; position: absolute }
.est-marker::after     { content: 'Est. 2026'; opacity: 0; position: absolute }
.paw-marker::after     { content: '⸻'; opacity: 0; position: absolute }

/* ── Loading / Birth Screen ─────────────────────────────────── */
#birth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease;
}

#birth-screen.fading { opacity: 0; pointer-events: none }

.birth-void {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #050505 0%, #000 100%);
}

/* Star field canvas */
#birth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.birth-caption {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease;
  text-align: center;
  min-height: 1.5em;
}

.birth-caption.visible { opacity: 1 }

.birth-progress {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: rgba(212,175,55,0.15);
  overflow: hidden;
}

.birth-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--gold);
}

.birth-skip {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(212,175,55,0.35);
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0.5rem;
}

.birth-skip:hover { color: var(--gold) }

/* ── Main Stage ─────────────────────────────────────────────── */
#sanctum-stage {
  position: fixed;
  inset: 0;
  perspective: var(--scene-depth);
  perspective-origin: 50% 35%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

#sanctum-stage.revealed { opacity: 1 }

/* ── 3D Scene Container ─────────────────────────────────────── */
#scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(18deg) translateY(-8%);
  transition: transform 2s cubic-bezier(0.4,0,0.2,1);
}

#scene.cinematic { transform: rotateX(8deg) translateY(0%) }
#scene.overhead  { transform: rotateX(35deg) translateY(-5%) }

/* ── Floor ──────────────────────────────────────────────────── */
.floor {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: 1400px;
  height: 900px;
  transform: translateX(-50%) rotateX(90deg) translateZ(0);
  transform-origin: bottom center;
  background:
    linear-gradient(var(--mat-base) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-base) 1px, transparent 1px),
    var(--mat-surface);
  background-size: 80px 80px, 80px 80px;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 200px rgba(212,175,55,0.04),
    0 0 60px rgba(212,175,55,0.03);
  opacity: 0;
  transition: opacity 2s ease;
}

.floor.built { opacity: 1 }

/* Floor center inlay */
.floor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse, rgba(212,175,55,0.06) 0%, transparent 70%);
}

/* ── Walls ──────────────────────────────────────────────────── */
.wall {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.wall.built { opacity: 1 }

.wall-back {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 15%;
  height: 500px;
  background: linear-gradient(180deg, var(--mat-base) 0%, var(--mat-surface) 100%);
  transform: translateZ(-380px);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.wall-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mat-sheen);
  pointer-events: none;
}

.wall-left {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 380px;
  height: 500px;
  background: linear-gradient(90deg, var(--mat-accent) 0%, var(--mat-surface) 100%);
  transform-origin: left center;
  transform: rotateY(90deg) translateZ(0) translateX(-380px);
}

.wall-right {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 380px;
  height: 500px;
  background: linear-gradient(270deg, var(--mat-accent) 0%, var(--mat-surface) 100%);
  transform-origin: right center;
  transform: rotateY(-90deg) translateZ(0) translateX(380px);
}

/* ── Ceiling / Vaulting ─────────────────────────────────────── */
.ceiling {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 15%;
  height: 200px;
  background: linear-gradient(180deg, var(--mat-accent) 0%, var(--mat-surface) 100%);
  transform-origin: top center;
  transform: rotateX(-90deg) translateZ(0);
  opacity: 0;
  transition: opacity 3s ease 0.5s;
}

.ceiling.built { opacity: 0.7 }

/* Arch ribs */
.ceiling::before,
.ceiling::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
}
.ceiling::before { left: 33% }
.ceiling::after  { left: 66% }

/* ── Columns / Pillars ──────────────────────────────────────── */
.columns-wrap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.column {
  position: absolute;
  width: calc(var(--col-radius) * 2);
  height: var(--col-height);
  transform-style: preserve-3d;
  transform-origin: bottom center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.5s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer;
  pointer-events: all;
}

.column.risen { opacity: 1 }

/* Column faces — simplified hexagonal prism */
.col-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    var(--mat-accent) 0%,
    var(--mat-surface) 40%,
    var(--mat-base) 100%
  );
  border-left:  1px solid var(--border);
  border-right: 1px solid var(--border);
}

.col-face-left  { transform: rotateY(-30deg) translateZ(-10px); opacity: 0.7 }
.col-face-front { transform: translateZ(calc(var(--col-radius) * 0.866)); }
.col-face-right { transform: rotateY(30deg) translateZ(-10px); opacity: 0.7 }

/* Column capital */
.col-capital {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--col-radius) * 2.8);
  height: 16px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  border-top: 1px solid var(--border);
}

/* Column base */
.col-base {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--col-radius) * 2.8);
  height: 12px;
  background: linear-gradient(0deg, var(--gold-dim), transparent);
  border-bottom: 1px solid var(--border);
}

/* Column hover/glow */
.column:hover .col-face-front,
.column.active .col-face-front {
  background: linear-gradient(180deg, var(--mat-accent) 0%, var(--mat-surface) 40%, var(--mat-base) 100%);
  box-shadow: 0 0 30px var(--sun-glow);
}

/* Transit indicator on column */
.col-transit {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse-transit 2s ease-in-out infinite;
  opacity: 0;
}

.col-transit.active { opacity: 1 }

@keyframes pulse-transit {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.8 }
  50%      { transform: translateX(-50%) scale(1.5); opacity: 1 }
}

/* Column label */
.col-label {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0;
  white-space: nowrap;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.column:hover .col-label { opacity: 0.8 }

/* ── The Altar ──────────────────────────────────────────────── */
#altar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(40px);
  transform-style: preserve-3d;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#altar.revealed { opacity: 1 }

.altar-pedestal {
  position: relative;
  width: 120px;
  height: 80px;
  background: linear-gradient(180deg, var(--mat-accent) 0%, var(--mat-base) 100%);
  border: 1px solid var(--border);
  margin: 0 auto;
  transform-style: preserve-3d;
}

.altar-pedestal::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 20px;
  background: linear-gradient(180deg, var(--mat-accent), var(--mat-surface));
  border: 1px solid var(--border);
  border-bottom: none;
}

.altar-orb {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%,
    rgba(255,255,255,0.15) 0%,
    var(--sun-color) 30%,
    rgba(0,0,0,0.8) 100%
  );
  box-shadow:
    0 0 20px var(--sun-glow),
    0 0 40px var(--sun-glow),
    inset 0 0 15px rgba(0,0,0,0.5);
  animation: altar-breathe 4s ease-in-out infinite;
}

@keyframes altar-breathe {
  0%,100% { box-shadow: 0 0 20px var(--sun-glow), 0 0 40px var(--sun-glow), inset 0 0 15px rgba(0,0,0,0.5) }
  50%      { box-shadow: 0 0 30px var(--sun-glow), 0 0 70px var(--sun-glow), 0 0 100px var(--sun-glow), inset 0 0 15px rgba(0,0,0,0.5) }
}

.altar-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
}

#altar:hover .altar-label { opacity: 0.8 }

/* ── Light Rays ─────────────────────────────────────────────── */
.light-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 3s ease;
}

.light-rays.active { opacity: 1 }

.ray {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    var(--sun-color) 0%,
    var(--sun-glow) 20%,
    transparent 60%
  );
  transform-origin: top center;
  opacity: 0.15;
  mix-blend-mode: screen;
}

/* ── Stained Glass Windows ──────────────────────────────────── */
.windows-wrap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease 1s;
}

.windows-wrap.built { opacity: 1 }

.stained-window {
  position: absolute;
  width: 80px;
  height: 160px;
  transform: translateZ(-375px);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.8);
}

.stained-window svg { width: 100%; height: 100% }

/* Window glow when sun active */
.stained-window.lit {
  box-shadow: 0 0 25px var(--sun-glow), inset 0 0 15px var(--sun-glow);
}

/* ── Particle Canvas ─────────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 2s ease;
}

#particles.active { opacity: 1 }

/* ── Mars Walls / Gates ─────────────────────────────────────── */
.gate-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.gate-wrap.built { opacity: 1 }

.gate-arch {
  width: 120px;
  height: 90px;
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  position: relative;
  background: linear-gradient(180deg, var(--mat-accent) 0%, transparent 100%);
}

.gate-arch::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 0;
  border: 1px solid var(--gold-dim);
  border-bottom: none;
  border-radius: 60px 60px 0 0;
}

/* ── Moon Mood Elements ─────────────────────────────────────── */
/* Water: flowing */
.mood-water .floor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0%,
    rgba(80,150,255,0.04) 50%,
    transparent 100%
  );
  animation: water-shift 8s linear infinite;
}

@keyframes water-shift {
  from { background-position: 0 0 }
  to   { background-position: 200px 0 }
}

/* Fire: embers */
.mood-fire .particle-ember {
  background: radial-gradient(circle, #ff6030 0%, transparent 70%);
}

/* Earth: plants */
.mood-earth .vine {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2d5a27, #3d7a37);
  transform-origin: bottom center;
  animation: vine-sway 6s ease-in-out infinite;
}

@keyframes vine-sway {
  0%,100% { transform: rotate(-3deg) }
  50%      { transform: rotate(3deg) }
}

/* Air: wind streaks */
.mood-air .wind-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,220,255,0.12), transparent);
  animation: wind-drift 4s linear infinite;
  pointer-events: none;
}

@keyframes wind-drift {
  from { transform: translateX(-100%) }
  to   { transform: translateX(200%) }
}

/* ── Mercury Orbs ─────────────────────────────────────────── */
.mercury-orb {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(160,160,180,0.8) 0%,
    rgba(80,80,100,0.6) 60%,
    rgba(0,0,0,0.5) 100%
  );
  box-shadow: 0 0 10px rgba(160,160,200,0.3);
  cursor: pointer;
  animation: orb-float 5s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1s ease;
}

.mercury-orb.built { opacity: 1 }

@keyframes orb-float {
  0%,100% { transform: translateY(0) translateZ(20px) }
  50%      { transform: translateY(-10px) translateZ(25px) }
}

/* ── Venus Garden ─────────────────────────────────────────── */
.venus-rose {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 0 50%;
  background: radial-gradient(circle, #c06080 0%, #803050 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(192,96,128,0.3);
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: rose-bloom 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes rose-bloom {
  from { transform: scale(0) rotate(-90deg) }
  to   { transform: scale(1) rotate(0deg) }
}

/* ── Panel System ─────────────────────────────────────────── */
#panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#panel-overlay.open { display: flex }

.panel {
  background: var(--stone);
  border: 1px solid var(--border);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: panel-rise 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(30px) }
  to   { opacity: 1; transform: translateY(0) }
}

.panel-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-glyph {
  font-size: 2rem;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.panel-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.panel-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--mercury-col);
  opacity: 0.7;
}

.panel-close {
  background: none;
  border: none;
  color: var(--mercury-col);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.panel-close:hover { opacity: 1 }

.panel-body {
  padding: 1.5rem 2rem 2rem;
}

.panel-section {
  margin-bottom: 1.5rem;
}

.panel-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.panel-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #c0b8a8;
}

.panel-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.panel-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--void);
  background: var(--gold);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.panel-cta:hover { background: #c9a030 }

.panel-cta.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.panel-cta.secondary:hover { border-color: var(--gold) }

/* Insight cards */
.insight-card {
  background: rgba(212,175,55,0.05);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.insight-card-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.insight-card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: #e0d8c8;
}

/* ── Transit Banner ─────────────────────────────────────────── */
#transit-banner {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 200;
  background: var(--stone);
  border: 1px solid var(--gold-mid);
  padding: 0.75rem 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  max-width: 90vw;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 4px 30px rgba(212,175,55,0.15);
}

#transit-banner.visible { transform: translateX(-50%) translateY(0) }

/* ── Renovation Overlay ─────────────────────────────────────── */
#renovation-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

#renovation-overlay.active { display: flex }

.renovation-text {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  animation: reno-pulse 2s ease-in-out infinite;
}

@keyframes reno-pulse {
  0%,100% { opacity: 0.6 }
  50%      { opacity: 1 }
}

.renovation-bar {
  width: 200px;
  height: 1px;
  background: rgba(212,175,55,0.2);
  overflow: hidden;
}

.renovation-fill {
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: reno-fill 10s linear both;
}

@keyframes reno-fill {
  from { width: 0% }
  to   { width: 100% }
}

/* ── HUD ────────────────────────────────────────────────────── */
#sanctum-hud {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 1s ease 2s;
}

#sanctum-hud.visible { opacity: 1 }

.hud-name {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

.hud-sign {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: var(--mercury-col);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ── Navigation Orbs ─────────────────────────────────────────── */
#nav-orbs {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 1s ease 2.5s;
}

#nav-orbs.visible { opacity: 1 }

.nav-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10,10,10,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  backdrop-filter: blur(8px);
}

.nav-orb:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-dim);
}

.nav-orb[data-transit="active"]::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: pulse-transit 2s ease-in-out infinite;
}

.nav-orb-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--mercury-col);
  opacity: 0;
  white-space: nowrap;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-orb:hover .nav-orb-label { opacity: 0.7 }

/* ── Mobile Strategy ─────────────────────────────────────────── */
#mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--void);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.mobile-sanctum-img {
  width: 100%;
  max-width: 400px;
  height: 280px;
  background:
    radial-gradient(ellipse at 50% 40%, var(--sun-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--mat-base) 0%, var(--mat-surface) 100%);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.mobile-sanctum-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0px, transparent 39px, rgba(212,175,55,0.04) 40px),
    repeating-linear-gradient(0deg, transparent 0px, transparent 39px, rgba(212,175,55,0.04) 40px);
}

.mobile-sanctum-img::after {
  content: 'YOUR CATHEDRAL';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
  white-space: nowrap;
}

.mobile-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mobile-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--mercury-col);
  opacity: 0.7;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 300px;
}

.mobile-3d-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--void);
  background: var(--gold);
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.mobile-3d-btn:hover { background: #c9a030 }

.mobile-share-btn {
  display: block;
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: none;
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  max-width: 260px;
  transition: border-color 0.2s;
}

.mobile-share-btn:hover { border-color: var(--gold) }

@media (max-width: 767px) {
  #mobile-gate  { display: flex }
  #sanctum-stage,
  #nav-orbs,
  #sanctum-hud  { display: none }
}

@media (min-width: 768px) {
  #mobile-gate  { display: none }
}

/* ── Utility ─────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Glow on hover — architectural elements */
[data-planet]:hover {
  filter: brightness(1.15);
}

/* Reveal animations for birth sequence */
@keyframes emerge {
  from { opacity: 0; transform: translateY(20px) translateZ(0) }
  to   { opacity: 1; transform: translateY(0) translateZ(0) }
}

@keyframes rise-up {
  from { transform: scaleY(0); transform-origin: bottom }
  to   { transform: scaleY(1); transform-origin: bottom }
}

@keyframes glow-in {
  from { opacity: 0; filter: blur(20px) }
  to   { opacity: 1; filter: blur(0) }
}

/* Sanctum scrollbar */
::-webkit-scrollbar { width: 4px }
::-webkit-scrollbar-track { background: var(--stone) }
::-webkit-scrollbar-thumb { background: var(--border) }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim) }
