@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="night"] {
  --bg: #030308;
  --ink: #f8f7fd;
  --ink-soft: rgba(242, 239, 255, 0.86);
  --ink-muted: rgba(214, 208, 240, 0.66);
  --glass: rgba(10, 9, 20, 0.56);
  --glass-strong: rgba(10, 10, 22, 0.62);
  --glass-hover: rgba(18, 16, 36, 0.74);
  --border: rgba(226, 218, 255, 0.18);
  --border-bright: rgba(246, 242, 255, 0.52);
  --accent: #ddd2ff;
  --accent-glow: rgba(168, 140, 255, 0.34);
  --text-shadow-display: 0 4px 26px rgba(2, 2, 10, 0.78), 0 1px 12px rgba(2, 2, 12, 0.68);
  --text-shadow-body: 0 2px 18px rgba(2, 2, 10, 0.86), 0 0 28px rgba(4, 3, 14, 0.64);
  --text-shadow-sm: 0 1px 14px rgba(2, 2, 10, 0.82), 0 0 22px rgba(4, 3, 14, 0.56);
  --hero-blur-halo: radial-gradient(ellipse 68% 68% at 50% 50%, rgba(4, 3, 12, 0.60) 0%, rgba(4, 3, 12, 0.30) 50%, rgba(4, 3, 12, 0) 78%);
  --vignette:
    radial-gradient(ellipse 56% 42% at 50% 35%, rgba(4, 3, 12, 0.52) 0%, rgba(4, 3, 12, 0.22) 56%, rgba(3, 3, 10, 0) 100%),
    radial-gradient(84% 74% at 50% 38%, rgba(8, 6, 18, 0) 0%, rgba(5, 4, 13, 0.22) 66%, rgba(2, 2, 7, 0.76) 100%),
    linear-gradient(180deg, rgba(3, 3, 8, 0.46) 0%, rgba(3, 3, 8, 0) 22%, rgba(3, 3, 8, 0.34) 74%, rgba(2, 2, 6, 0.86) 100%);
  --display: "Syne", "Space Grotesk", sans-serif;
  --serif: "Syne", "Space Grotesk", sans-serif;
  --sans: "Space Grotesk", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="day"] {
  --bg: #e6e0d5;
  --ink: #10121b;
  --ink-soft: rgba(16, 18, 27, 0.84);
  --ink-muted: rgba(16, 18, 27, 0.62);
  --glass: rgba(248, 244, 238, 0.66);
  --glass-strong: rgba(250, 247, 242, 0.76);
  --glass-hover: rgba(255, 252, 248, 0.86);
  --border: rgba(18, 19, 26, 0.14);
  --border-bright: rgba(18, 19, 26, 0.38);
  --accent: #2c375e;
  --accent-glow: rgba(54, 72, 120, 0.20);
  --text-shadow-display: 0 3px 26px rgba(255, 252, 247, 0.92), 0 1px 12px rgba(248, 243, 235, 0.80);
  --text-shadow-body: 0 2px 18px rgba(255, 252, 247, 0.94), 0 0 28px rgba(246, 240, 232, 0.78);
  --text-shadow-sm: 0 1px 14px rgba(255, 252, 247, 0.90), 0 0 20px rgba(246, 240, 232, 0.72);
  --hero-blur-halo: radial-gradient(ellipse 68% 68% at 50% 50%, rgba(252, 248, 242, 0.72) 0%, rgba(248, 243, 236, 0.36) 50%, rgba(245, 240, 232, 0) 78%);
  --vignette:
    radial-gradient(ellipse 56% 42% at 50% 35%, rgba(247, 243, 237, 0.64) 0%, rgba(245, 240, 234, 0.30) 56%, rgba(244, 239, 231, 0) 100%),
    radial-gradient(84% 74% at 50% 38%, rgba(245, 240, 230, 0) 0%, rgba(226, 220, 208, 0.16) 66%, rgba(204, 196, 182, 0.62) 100%),
    linear-gradient(180deg, rgba(242, 237, 228, 0.38) 0%, rgba(242, 237, 228, 0) 22%, rgba(218, 212, 200, 0.28) 76%, rgba(202, 195, 182, 0.76) 100%);
}

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

html,
body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

button,
a {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Living Atmospheric Multi-World Horizon Layer (WebGL 3D Depth, Water & Sky Life + Instant Poster Fallback) */
.world-horizon {
  position: fixed;
  inset: -4%;
  width: 108%;
  height: 108%;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0.94;
}

.world-relief-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.world-horizon.has-living-world .world-relief-canvas {
  opacity: 1;
}

.world-plate {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 58% 48%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s ease;
}

html[data-world="pelagic"] .world-plate-pelagic,
html[data-world="court"] .world-plate-court,
html[data-world="coast"] .world-plate-coast,
html[data-world="observatory"] .world-plate-observatory,
html[data-world="polar"] .world-plate-polar,
html[data-world="sanctuary"] .world-plate-sanctuary {
  opacity: 1;
  transform: scale(1);
}

/* Night World Plates */
.world-plate-pelagic {
  background-image: url("/world/pelagic-night.webp");
  background-position: 62% 48%;
  filter: saturate(1.08) contrast(1.04);
}
.world-plate-court {
  background-image: url("/world/court-night.webp");
  background-position: 54% 46%;
  filter: saturate(1.05) contrast(1.05);
}
.world-plate-coast {
  background-image: url("/world/night.webp");
  background-position: 60% 48%;
  filter: saturate(1.08) contrast(1.04);
}
.world-plate-observatory {
  background-image: url("/world/court-day.webp");
  background-position: 62% 46%;
  filter: brightness(0.68) contrast(1.06) saturate(1.08);
}
.world-plate-polar {
  background-image: url("/world/polar-night.webp");
  background-position: 62% 44%;
  filter: saturate(1.12) contrast(1.06);
}
.world-plate-sanctuary {
  background-image: url("/world/day.webp");
  background-position: 56% 48%;
  filter: brightness(0.68) contrast(1.06) saturate(1.10);
}

/* Day World Plates */
html[data-theme="day"] .world-plate-pelagic {
  background-image: url("/world/pelagic-day.webp");
  filter: saturate(0.96) contrast(1.02);
}
html[data-theme="day"] .world-plate-court {
  background-image: url("/world/court-day.webp");
  filter: saturate(0.96) brightness(1.02);
}
html[data-theme="day"] .world-plate-coast {
  background-image: url("/world/day.webp");
  filter: saturate(0.96) brightness(1.02);
}
html[data-theme="day"] .world-plate-observatory {
  background-image: url("/world/polar-day.webp");
  filter: saturate(0.94) brightness(1.02);
}
html[data-theme="day"] .world-plate-polar {
  background-image: url("/world/polar-night.webp");
  filter: brightness(1.10) saturate(0.94) contrast(0.98);
}
html[data-theme="day"] .world-plate-sanctuary {
  background-image: url("/world/night.webp");
  filter: brightness(1.14) saturate(0.92) contrast(0.96);
}

@media (max-width: 640px) {
  .world-plate-pelagic {
    background-image: url("/world/pelagic-night-phone.webp");
    background-position: 54% 46%;
  }
  .world-plate-court {
    background-image: url("/world/court-night-phone.webp");
    background-position: 52% 46%;
  }
  .world-plate-coast {
    background-image: url("/world/night-phone.webp");
    background-position: 54% 46%;
  }
  .world-plate-observatory {
    background-image: url("/world/court-day-phone.webp");
    background-position: 54% 48%;
  }
  .world-plate-polar {
    background-image: url("/world/polar-night-phone.webp");
    background-position: 54% 44%;
  }
  .world-plate-sanctuary {
    background-image: url("/world/day-phone.webp");
    background-position: 54% 48%;
  }
  html[data-theme="day"] .world-plate-pelagic {
    background-image: url("/world/pelagic-day-phone.webp");
  }
  html[data-theme="day"] .world-plate-court {
    background-image: url("/world/court-day-phone.webp");
  }
  html[data-theme="day"] .world-plate-coast {
    background-image: url("/world/day-phone.webp");
  }
  html[data-theme="day"] .world-plate-observatory {
    background-image: url("/world/polar-day-phone.webp");
  }
  html[data-theme="day"] .world-plate-polar {
    background-image: url("/world/polar-night-phone.webp");
  }
  html[data-theme="day"] .world-plate-sanctuary {
    background-image: url("/world/night-phone.webp");
  }
}

/* Full-Viewport Real-Time 3D WebGL Refractive Clay/Glass Stage (Transparent Void) */
.optic-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.optic-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--vignette);
  transition: background 0.6s ease;
}

/* Original Luminous Glass Orb & 3D Orbital Ribbon Layer */
.orb-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 3;
  display: block;
  pointer-events: none;
}

.optic-grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.032;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* Primary Frame */
.frame {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100dvh;
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(16px, 2.4vh, 28px) clamp(20px, 3.6vw, 52px);
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: var(--text-shadow-sm);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wordmark:hover {
  opacity: 0.86;
}

/* On Home, FinalScreen.com lives exclusively front-and-center (never duplicated in the corner) */
html[data-chamber="home"] .wordmark-return-brand {
  display: none;
}

.wordmark-return-brand {
  display: inline-block;
  white-space: nowrap;
}

.wordmark-return-brand .brand-tld {
  font-size: 0.62em;
  margin-left: 2px;
}

.wordmark-glyph {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.glyph-prism {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: conic-gradient(from 130deg, #f5efff, #9fb8ff, #d4a5ff, #7ce8df, #f5efff);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-shadow: var(--text-shadow-sm);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-pill[aria-pressed="true"] {
  border-color: var(--border-bright);
  color: var(--ink);
  background: var(--glass-hover);
}

.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.sound-bars i {
  display: block;
  width: 1.5px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  transition: height 0.25s ease;
}

.nav-pill[aria-pressed="true"] .sound-bars i:nth-child(1) {
  animation: barPulse 0.9s ease-in-out infinite;
}
.nav-pill[aria-pressed="true"] .sound-bars i:nth-child(2) {
  animation: barPulse 0.9s ease-in-out 0.22s infinite;
}
.nav-pill[aria-pressed="true"] .sound-bars i:nth-child(3) {
  animation: barPulse 0.9s ease-in-out 0.44s infinite;
}

@keyframes barPulse {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}

.polarity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.polarity-btn:hover {
  border-color: var(--border-bright);
  transform: scale(1.06);
}

.polarity-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 10px var(--accent);
}

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

/* Viewport & Sanctum */
.viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sanctum {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(8px, 1.8vh, 22px);
  padding-bottom: clamp(4px, 1vh, 12px);
  animation: sanctumFade 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sanctumFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* FRONT AND CENTRE HERO MONUMENT */
.sanctum-presence {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  transform: translateY(-4px);
}

/* Soft, feathered atmospheric blurred halo cushion behind floating hero typography */
.sanctum-presence::before {
  content: "";
  position: absolute;
  inset: -56px -92px;
  z-index: -1;
  pointer-events: none;
  background: var(--hero-blur-halo);
  filter: blur(28px);
  -webkit-filter: blur(28px);
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.6rem, 9.2vw, 8.1rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  display: inline-block;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: none;
}

.brand-final {
  font-weight: 700;
  color: var(--ink);
  text-shadow: var(--text-shadow-display);
}

.brand-screen {
  font-weight: 700;
  background: linear-gradient(112deg, #ffffff 4%, #dfd3ff 42%, #88e6ff 84%, #f4edff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 5px 24px rgba(2, 2, 10, 0.76))
    drop-shadow(0 0 28px rgba(176, 152, 255, 0.40));
}

html[data-theme="day"] .brand-screen {
  background: linear-gradient(112deg, #17213d 6%, #31488a 50%, #6d469a 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 4px 20px rgba(255, 252, 247, 0.92))
    drop-shadow(0 0 24px rgba(246, 240, 232, 0.78));
}

.brand-tld {
  font-family: var(--sans);
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: 0.12em;
  color: var(--accent);
  opacity: 0.94;
  text-shadow: var(--text-shadow-body);
}

.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(1.16rem, 1.9vw, 1.56rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-top: clamp(10px, 1.5vh, 18px);
  text-shadow: var(--text-shadow-display);
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.90rem, 1.04vw, 1.02rem);
  font-weight: 400;
  line-height: 1.54;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  max-width: 640px;
  text-wrap: balance;
  margin-top: 8px;
  text-shadow: var(--text-shadow-body);
}

/* Sculptural Frosted-Glass Early Access Email Bar */
.waitlist-form {
  margin-top: clamp(16px, 2.2vh, 26px);
  width: min(444px, 92vw);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 224, 255, 0.24);
  background: rgba(9, 9, 20, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 20px 50px -14px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.28s ease, box-shadow 0.32s ease, background 0.28s ease;
}

.waitlist-form:focus-within {
  border-color: rgba(220, 208, 255, 0.72);
  background: rgba(12, 11, 26, 0.76);
  box-shadow:
    0 22px 54px -12px rgba(0, 0, 0, 0.78),
    0 0 32px -6px rgba(170, 145, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.waitlist-form.is-reserved {
  border-color: rgba(160, 240, 212, 0.52);
  box-shadow:
    0 20px 50px -14px rgba(0, 0, 0, 0.72),
    0 0 28px -6px rgba(130, 232, 205, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-theme="day"] .waitlist-form {
  border-color: rgba(18, 22, 36, 0.18);
  background: rgba(252, 249, 244, 0.76);
  box-shadow:
    0 16px 40px -14px rgba(24, 28, 46, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="day"] .waitlist-form:focus-within {
  border-color: rgba(42, 54, 96, 0.54);
  background: rgba(255, 253, 250, 0.92);
  box-shadow:
    0 20px 44px -12px rgba(24, 28, 46, 0.24),
    0 0 24px -6px rgba(64, 82, 148, 0.22);
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  text-shadow: var(--text-shadow-sm);
  user-select: text;
  -webkit-user-select: text;
}

.waitlist-input::placeholder {
  color: var(--ink-muted);
}

.waitlist-submit {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #090a14;
  background: linear-gradient(125deg, #ffffff 0%, #e0d6ff 52%, #b6e9ff 100%);
  box-shadow: 0 4px 18px rgba(175, 152, 255, 0.34);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.22s ease;
}

.waitlist-submit:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 6px 24px rgba(185, 165, 255, 0.50);
  filter: brightness(1.04);
}

.waitlist-submit:active {
  transform: scale(0.985);
}

html[data-theme="day"] .waitlist-submit {
  color: #f8f7fc;
  background: linear-gradient(125deg, #141827 0%, #2a3660 100%);
  box-shadow: 0 6px 20px rgba(24, 30, 54, 0.26);
}

.waitlist-note {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 230, 252, 0.82);
  text-shadow: 0 2px 16px rgba(2, 2, 10, 0.94), 0 0 24px rgba(2, 2, 12, 0.82);
}

html[data-theme="day"] .waitlist-note {
  color: rgba(16, 18, 27, 0.76);
  text-shadow: var(--text-shadow-body);
}

.waitlist-note.is-confirmed {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.82rem;
  color: #c5f7e6;
}

html[data-theme="day"] .waitlist-note.is-confirmed {
  color: #195e4c;
}

.waitlist-note.is-error {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.80rem;
  color: #ffbcd2;
}

html[data-theme="day"] .waitlist-note.is-error {
  color: #9c2b4e;
}

/* Vertical Portrait Monoliths Rail — Full-Bleed Architectural Worlds + Luminous Optical Glass */
.monolith-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.45vw, 20px);
  width: 100%;
  align-items: end;
  perspective: 1200px;
}

.monolith {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.85;
  max-height: clamp(195px, 32vh, 308px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #080812;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(13px, 1.35vw, 18px);
  text-align: left;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(0);
  transition:
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s ease,
    box-shadow 0.38s ease;
  box-shadow:
    0 22px 52px -18px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="day"] .monolith {
  border-color: rgba(18, 22, 36, 0.16);
  box-shadow:
    0 22px 44px -18px rgba(24, 26, 40, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.monolith:hover,
.monolith:focus-visible {
  border-color: rgba(245, 240, 255, 0.62);
  transform:
    perspective(900px)
    rotateX(var(--rx, 2deg))
    rotateY(var(--ry, 0deg))
    translateY(-12px)
    scale(1.022);
  box-shadow:
    0 32px 68px -16px rgba(0, 0, 0, 0.88),
    0 0 36px -6px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  outline: none;
}

/* Full-Bleed Architectural World Cover Art Inside Each Card */
.monolith-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--card-photo-opacity, 0.92);
  transform: scale(1.01);
  transition: opacity 0.38s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.monolith:hover .monolith-photo,
.monolith:focus-visible .monolith-photo {
  opacity: 1 !important;
  transform: scale(1.07);
  filter: saturate(1.12) brightness(1.06);
}

/* Night Card Images (1-to-1 matched with hover background worlds) */
.monolith-photo-court {
  background-image: url("/world/court-night.webp");
  background-position: 34% 48%;
}
.monolith-photo-coast {
  background-image: url("/world/night.webp");
  background-position: 62% 46%;
}
.monolith-photo-observatory {
  background-image: url("/world/court-day.webp");
  background-position: 68% 45%;
}
.monolith-photo-polar {
  background-image: url("/world/polar-night.webp");
  background-position: 54% 42%;
}
.monolith-photo-sanctuary {
  background-image: url("/world/day.webp");
  background-position: 56% 48%;
}

/* Day Card Images (1-to-1 matched with Day hover background worlds) */
html[data-theme="day"] .monolith-photo-court {
  background-image: url("/world/court-day.webp");
  background-position: 68% 45%;
}
html[data-theme="day"] .monolith-photo-coast {
  background-image: url("/world/day.webp");
  background-position: 56% 48%;
}
html[data-theme="day"] .monolith-photo-observatory {
  background-image: url("/world/polar-day.webp");
  background-position: 62% 48%;
}
html[data-theme="day"] .monolith-photo-polar {
  background-image: url("/world/polar-night.webp");
  background-position: 54% 42%;
}
html[data-theme="day"] .monolith-photo-sanctuary {
  background-image: url("/world/night.webp");
  background-position: 62% 46%;
}

/* Subtle Kinetic Optical Geometry Layer Floating Over the Artwork */
.monolith-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: var(--card-glyph-opacity, 0.34);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.monolith:hover .monolith-canvas,
.monolith:focus-visible .monolith-canvas {
  opacity: 0.16 !important;
  transform: scale(1.04);
}

.monolith-refraction {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.18) 0%, transparent 52%),
    linear-gradient(180deg, rgba(4, 4, 12, 0.64) 0%, rgba(4, 4, 12, 0.05) 35%, rgba(4, 4, 12, 0.12) 58%, rgba(3, 3, 10, 0.92) 100%);
}

.monolith-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.monolith-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.84), 0 0 22px rgba(0, 0, 0, 0.56);
}

.monolith-realm {
  font-family: var(--sans);
  font-size: clamp(0.80rem, 0.96vw, 0.94rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #f0eaff;
  opacity: var(--realm-opacity, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.88), 0 0 28px rgba(0, 0, 0, 0.64);
  transition: opacity 0.2s linear, color 0.25s ease;
}

.monolith-foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.monolith-name {
  font-family: var(--display);
  font-size: clamp(1.26rem, 1.66vw, 1.68rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  opacity: var(--name-opacity, 0.96);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.88), 0 1px 12px rgba(0, 0, 0, 0.72), 0 0 32px rgba(0, 0, 0, 0.56);
  transition: opacity 0.2s linear;
}

.monolith:hover .monolith-realm,
.monolith:focus-visible .monolith-realm,
.monolith:hover .monolith-name,
.monolith:focus-visible .monolith-name {
  opacity: 1 !important;
}

/* Active Chamber Stage (In-World Artifact Vessel) */
.chamber-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(12px, 1.8vh, 20px);
  padding: clamp(10px, 1.8vh, 20px) 0 clamp(6px, 1.2vh, 14px);
  animation: sanctumFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.chamber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chamber-title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.chamber-roman {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.88;
  text-shadow: var(--text-shadow-body);
}

.chamber-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: var(--text-shadow-display);
}

.chamber-twin {
  font-family: var(--sans);
  font-style: normal;
  color: var(--accent);
  opacity: 0.88;
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: 0.01em;
  margin-left: 6px;
  text-shadow: var(--text-shadow-body);
}

.chamber-verse {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 4px;
  text-shadow: var(--text-shadow-body);
}

.chamber-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-shadow: var(--text-shadow-sm);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.chamber-close:hover {
  border-color: var(--border-bright);
  color: var(--ink);
  transform: translateY(-1px);
}

.chamber-close kbd {
  font-family: var(--sans);
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.chamber-vessel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow:
    0 32px 80px -24px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.chamber-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.chamber-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: clamp(16px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: var(--text-shadow-sm);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hud-reading {
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
}

.hud-reading-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.24rem;
  color: var(--ink);
  margin-bottom: 6px;
  text-shadow: var(--text-shadow-body);
}

.hud-reading-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: var(--text-shadow-sm);
}

.chamber-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chamber-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.artifact-chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-shadow: var(--text-shadow-sm);
  transition: all 0.22s ease;
}

.artifact-chip:hover,
.artifact-chip.is-active {
  border-color: var(--border-bright);
  background: var(--glass-hover);
  color: var(--ink);
  box-shadow: 0 0 18px var(--accent-glow);
}

.chamber-RailNav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chamber-step {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-shadow: var(--text-shadow-sm);
  transition: all 0.2s ease;
}

.chamber-step:hover,
.chamber-step.is-current {
  border-color: var(--border);
  background: var(--glass);
  color: var(--ink);
}

/* Inscription Stage */
.inscription-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sanctumFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.inscription-card {
  max-width: 650px;
  width: 100%;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 36px 90px -24px rgba(0, 0, 0, 0.85);
}

.inscription-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-shadow: var(--text-shadow-display);
}

.inscription-couplets {
  display: grid;
  gap: 14px;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 28px;
  text-shadow: var(--text-shadow-sm);
}

.inscription-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.inscription-release {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-shadow: var(--text-shadow-sm);
}

/* Responsive Tablet & Mobile */
@media (max-width: 960px) {
  .monolith-rail {
    grid-template-columns: repeat(5, minmax(136px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .monolith-rail::-webkit-scrollbar {
    display: none;
  }
  .chamber-RailNav {
    display: none;
  }
}

@media (max-width: 640px) {
  .frame {
    padding: 14px 16px;
  }
  .sound-label {
    display: none;
  }
  .sanctum {
    padding-top: 6px;
  }
  .sanctum-presence {
    padding: 0 4px;
    transform: translateY(-2px);
  }
  .hero-brand {
    font-size: clamp(2.45rem, 10.6vw, 3.6rem);
    letter-spacing: -0.045em;
  }
  .hero-tagline {
    font-size: 1.02rem;
    margin-top: 8px;
  }
  .hero-sub {
    font-size: 0.82rem;
    line-height: 1.46;
    margin-top: 6px;
  }
  .hero-sub-break {
    display: none;
  }
  .waitlist-form {
    margin-top: 14px;
    width: 100%;
    padding: 4px 4px 4px 14px;
  }
  .waitlist-input {
    font-size: 0.86rem;
    height: 36px;
  }
  .waitlist-submit {
    height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
  }
  .waitlist-note {
    margin-top: 8px;
    font-size: 0.68rem;
  }
  .monolith-rail {
    display: grid;
    grid-template-columns: repeat(5, 140px);
    gap: 10px;
  }
  .monolith {
    aspect-ratio: 3 / 3.7;
    max-height: 184px;
    padding: 11px;
  }
  .monolith-realm {
    font-size: 0.76rem;
  }
  .monolith-name {
    font-size: 1.08rem;
  }
  .chamber-verse {
    display: none;
  }
  .hud-reading {
    max-width: 100%;
    padding: 10px 12px;
  }
}
