/* =====================================================
   xanadu.quest — Surreal Dreamscape Promo
   Five-layer parallax descent through Kubla Khan's Xanadu
   ===================================================== */

:root {
    --void:        #0A0520;
    --twilight:    #1A0F3A;
    --royal:       #2D1B69;
    --gold:        #FFD700;
    --lavender:    #E8D5FF;
    --pink:        #FF6B9D;
    --cyan:        #00E5FF;
    --jade:        #4AEDC4;
    --violet-soft: #D0C0E8;

    --panel-bg:    rgba(10, 5, 30, 0.7);
    --panel-stroke: rgba(255, 215, 0, 0.18);

    --font-title:  "Playfair Display", "Lora", Georgia, serif;
    --font-verse:  "Cormorant Garamond", "Lora", Georgia, serif;
    --font-label:  "Megrim", "Cormorant Garamond", serif;
}

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

html, body {
    width: 100%;
    background: var(--void);
    color: var(--lavender);
    font-family: var(--font-verse);
    overflow-x: hidden;
}

body {
    /* Total scroll height — six chambers x 100vh + extra for parallax morph */
    min-height: 700vh;
    background:
        radial-gradient(ellipse at 50% 0%, #1A0F3A 0%, #0A0520 35%, #0A0520 70%, #1A0F3A 100%);
    position: relative;
}

/* ----------------------------------------------------
   SCENE + LAYERS
   ---------------------------------------------------- */
.scene {
    position: relative;
    width: 100%;
    min-height: 700vh;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

.layer-fore {
    pointer-events: auto;
    z-index: 30;
}

.layer-sky    { z-index: 1; }
.layer-distant { z-index: 5; }
.layer-mid     { z-index: 15; }
.layer-rev     { z-index: 40; }

/* ----------------------------------------------------
   LAYER 1: SKY — Aurora gradients & starfield
   ---------------------------------------------------- */
.layer-sky {
    height: 720vh;
    background:
        linear-gradient(180deg,
            #0A0520 0%,
            #1A0F3A 12%,
            #2D1B69 24%,
            #1A0F3A 36%,
            #0A0520 48%,
            #1A0F3A 60%,
            #2D1B69 72%,
            #1A0F3A 84%,
            #0A0520 100%);
}

.aurora {
    position: absolute;
    left: 50%;
    width: 200vw;
    height: 80vh;
    transform: translateX(-50%);
    filter: blur(60px);
    opacity: 0.45;
    mix-blend-mode: screen;
    border-radius: 50%;
}

.aurora-1 {
    top: 0;
    background: conic-gradient(
        from 0deg,
        rgba(255, 215, 0, 0.25),
        rgba(255, 107, 157, 0.35),
        rgba(0, 229, 255, 0.25),
        rgba(74, 237, 196, 0.30),
        rgba(255, 215, 0, 0.25));
    animation: aurora-rotate 30s linear infinite;
}

.aurora-2 {
    top: 220vh;
    width: 250vw;
    height: 100vh;
    background: conic-gradient(
        from 90deg,
        rgba(0, 229, 255, 0.30),
        rgba(45, 27, 105, 0.0),
        rgba(255, 107, 157, 0.35),
        rgba(74, 237, 196, 0.25),
        rgba(0, 229, 255, 0.30));
    animation: aurora-rotate 45s linear infinite reverse;
}

.aurora-3 {
    top: 480vh;
    background: conic-gradient(
        from 180deg,
        rgba(255, 215, 0, 0.30),
        rgba(232, 213, 255, 0.20),
        rgba(255, 107, 157, 0.30),
        rgba(0, 229, 255, 0.25),
        rgba(255, 215, 0, 0.30));
    animation: aurora-rotate 38s linear infinite;
}

@keyframes aurora-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

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

.starfield .star {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    animation: star-twinkle 4s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%      { opacity: 0.95; transform: scale(1.3); }
}

/* ----------------------------------------------------
   LAYER 2: DISTANT ARCHITECTURE
   ---------------------------------------------------- */
.layer-distant {
    height: 720vh;
}

.distant-mountains {
    position: absolute;
    top: 60vh;
    left: 0;
    width: 100%;
    height: 60vh;
    background:
        linear-gradient(180deg, transparent 0%, rgba(45, 27, 105, 0.5) 50%, rgba(26, 15, 58, 0.85) 100%),
        conic-gradient(from 220deg at 25% 100%, transparent 0deg, #2D1B69 30deg, transparent 60deg),
        conic-gradient(from 200deg at 60% 100%, transparent 0deg, #1A0F3A 25deg, transparent 50deg),
        conic-gradient(from 240deg at 85% 100%, transparent 0deg, #2D1B69 35deg, transparent 70deg);
    clip-path: polygon(
        0 100%, 0 60%,
        8% 45%, 14% 55%, 22% 30%, 30% 50%,
        38% 40%, 46% 55%, 55% 25%, 64% 50%,
        72% 35%, 80% 55%, 88% 38%, 96% 50%,
        100% 45%, 100% 100%);
    opacity: 0.85;
}

.distant-spires {
    position: absolute;
    top: 130vh;
    left: 0;
    width: 100%;
    height: 80vh;
}

.spire {
    position: absolute;
    bottom: 0;
    width: 60px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--royal) 25%, var(--twilight) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0 100%, 0 25%);
    opacity: 0.55;
    filter: blur(1.5px);
}

.spire-1 { left: 8%;  height: 40vh; width: 50px; }
.spire-2 { left: 24%; height: 60vh; width: 70px; }
.spire-3 { left: 48%; height: 75vh; width: 90px; }
.spire-4 { left: 70%; height: 50vh; width: 60px; }
.spire-5 { left: 88%; height: 45vh; width: 55px; }

.distant-dome {
    position: absolute;
    top: 380vh;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 50vh;
    background:
        radial-gradient(ellipse at 50% 100%,
            rgba(255, 215, 0, 0.45) 0%,
            rgba(255, 107, 157, 0.35) 25%,
            rgba(45, 27, 105, 0.85) 60%,
            transparent 100%);
    clip-path: ellipse(50% 100% at 50% 100%);
    opacity: 0.7;
    filter: blur(2px);
}

/* ----------------------------------------------------
   LAYER 3: MIDGROUND — Arches, crystals, river, dome, shards
   ---------------------------------------------------- */
.layer-mid {
    height: 720vh;
}

.mid-arch {
    position: absolute;
    width: 40vw;
    height: 70vh;
    border: 3px solid rgba(255, 215, 0, 0.18);
    border-bottom: none;
    border-radius: 50% 50% 0 0 / 80% 80% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 105, 0.25) 100%);
    box-shadow: inset 0 -40px 80px rgba(255, 215, 0, 0.1);
}

.arch-1 { top: 90vh;  left: -10vw; opacity: 0.5; }
.arch-2 { top: 120vh; right: -15vw; opacity: 0.45; transform: scaleX(-1); }

.mid-crystal {
    position: absolute;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00E5FF 0%, #4AEDC4 50%, #FFD700 100%);
    transform: rotate(45deg);
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.55),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: crystal-spin 80s linear infinite;
}

.crystal-m1 { top: 150vh; left: 12%; animation-duration: 60s; }
.crystal-m2 { top: 180vh; right: 18%; width: 70px; height: 70px; animation-duration: 90s; animation-direction: reverse; }
.crystal-m3 { top: 210vh; left: 30%; width: 55px; height: 55px; animation-duration: 75s; }
.crystal-m4 { top: 240vh; right: 8%; width: 100px; height: 100px; animation-duration: 110s; animation-direction: reverse; }

@keyframes crystal-spin {
    from { transform: rotate(45deg); }
    to   { transform: rotate(405deg); }
}

.river-band {
    position: absolute;
    top: 320vh;
    left: -10vw;
    width: 120vw;
    height: 24vh;
    overflow: hidden;
    transform: skewY(-2deg);
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.5);
}

.river-flow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            #00E5FF 0%, #4AEDC4 25%, #00E5FF 50%, #4AEDC4 75%, #00E5FF 100%);
    background-size: 50% 100%;
    animation: river-flow 6s linear infinite;
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.45);
}

.river-flow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.35) 0%,
        transparent 30%,
        transparent 70%,
        rgba(10, 5, 30, 0.5) 100%);
}

@keyframes river-flow {
    from { background-position: 0 0; }
    to   { background-position: 200% 0; }
}

.mid-dome {
    position: absolute;
    top: 420vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 50vh;
    background:
        radial-gradient(ellipse at 50% 100%,
            rgba(255, 215, 0, 0.6) 0%,
            rgba(255, 107, 157, 0.4) 30%,
            rgba(45, 27, 105, 0.7) 65%,
            transparent 100%);
    clip-path: ellipse(50% 100% at 50% 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    filter: blur(0.5px);
}

.ice-shards {
    position: absolute;
    top: 530vh;
    left: 0;
    width: 100%;
    height: 80vh;
}

.shard {
    position: absolute;
    background: linear-gradient(180deg, rgba(232, 213, 255, 0.6) 0%, rgba(0, 229, 255, 0.3) 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0 100%);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    opacity: 0.7;
}

.shard-1 { left: 5%;  bottom: 0; width: 80px;  height: 40vh; }
.shard-2 { left: 30%; bottom: 0; width: 120px; height: 55vh; transform: scaleX(-1); }
.shard-3 { left: 60%; bottom: 0; width: 100px; height: 45vh; }
.shard-4 { left: 85%; bottom: 0; width: 70px;  height: 35vh; transform: scaleX(-1); }

/* ----------------------------------------------------
   LAYER 4: FOREGROUND CONTENT — chambers
   ---------------------------------------------------- */
.layer-fore {
    height: auto;
    min-height: 700vh;
    position: relative;
}

.chamber {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 12vh 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- chamber 0 — portal ---- */
.chamber-portal {
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portal-wrap {
    position: relative;
    width: min(720px, 80vw);
    height: min(720px, 80vw);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

.portal-conic {
    position: absolute;
    inset: -10%;
    background: conic-gradient(
        from 0deg,
        #FFD700 0deg,
        #FF6B9D 60deg,
        #2D1B69 120deg,
        #00E5FF 180deg,
        #4AEDC4 240deg,
        #FFD700 300deg,
        #FFD700 360deg);
    filter: blur(8px);
    animation: portal-rotate 26s linear infinite;
}

.portal-inner {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 215, 0, 0.2) 0%,
            rgba(45, 27, 105, 0.85) 45%,
            rgba(10, 5, 30, 0.95) 80%);
    box-shadow:
        inset 0 0 80px rgba(255, 215, 0, 0.5),
        0 0 120px rgba(255, 107, 157, 0.3);
}

@keyframes portal-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.portal-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--lavender);
}

.site-title {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(64px, 11vw, 160px);
    letter-spacing: 0.04em;
    color: var(--gold);
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 107, 157, 0.3);
    animation: title-glow 4s ease-in-out infinite;
    margin-bottom: 18px;
    line-height: 0.95;
}

.site-subtitle {
    font-family: var(--font-verse);
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 26px);
    color: var(--lavender);
    letter-spacing: 0.02em;
    margin-bottom: 50px;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 107, 157, 0.25); }
    50%      { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 107, 157, 0.4); }
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-cue-text {
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 0.4em;
    color: rgba(255, 215, 0, 0.7);
    text-transform: lowercase;
}

.scroll-cue-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.7), transparent);
    animation: scroll-cue-pulse 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scroll-cue-pulse {
    0%   { transform: scaleY(0.2); opacity: 0.4; }
    50%  { transform: scaleY(1);   opacity: 1;   }
    100% { transform: scaleY(0.2); opacity: 0.4; }
}

/* ---- ambient labels ---- */
.ambient-label {
    position: absolute;
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 0.32em;
    color: rgba(255, 215, 0, 0.5);
    text-transform: lowercase;
    pointer-events: none;
}

.label-tl { top: 6vh; left: 6vw; }
.label-tr { top: 6vh; right: 6vw; }
.label-bl { bottom: 6vh; left: 6vw; }
.label-br { bottom: 6vh; right: 6vw; }

/* ---- content panels ---- */
.content-panel {
    position: relative;
    max-width: 540px;
    padding: 44px 48px;
    background: var(--panel-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-stroke);
    border-radius: 6px;
    box-shadow:
        0 30px 80px rgba(10, 5, 30, 0.55),
        inset 0 0 40px rgba(255, 215, 0, 0.06);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1000ms ease-in, transform 1000ms ease-in;
    z-index: 5;
}

.content-panel.in-view {
    opacity: 1;
    transform: translateY(0);
}

.panel-left   { margin-right: auto; margin-left: 4vw; }
.panel-right  { margin-left: auto;  margin-right: 4vw; }
.panel-center { margin: 0 auto; max-width: 620px; text-align: center; }
.panel-domed  { margin: 0 auto; max-width: 620px; text-align: center; padding: 60px 56px; }

.chamber-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 72px);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    letter-spacing: 0.04em;
    margin-bottom: 26px;
    line-height: 1.1;
}

.verse {
    font-family: var(--font-verse);
    font-style: italic;
    font-size: clamp(20px, 1.6vw, 26px);
    color: var(--lavender);
    line-height: 1.55;
    margin-bottom: 26px;
}

.verse.signoff {
    margin-top: 32px;
    margin-bottom: 0;
    color: rgba(232, 213, 255, 0.85);
    font-size: clamp(18px, 1.4vw, 22px);
}

.body-narrative {
    font-family: var(--font-verse);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    color: var(--violet-soft);
}

.panel-glyph {
    position: absolute;
    bottom: 18px;
    right: 22px;
    width: 38px;
    height: 38px;
    background:
        conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 215, 0, 0.7) 90deg,
            transparent 180deg,
            rgba(0, 229, 255, 0.7) 270deg,
            transparent 360deg);
    border-radius: 50%;
    opacity: 0.5;
    animation: glyph-spin 14s linear infinite;
}

@keyframes glyph-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- chamber 1 — garden ---- */
.chamber-garden {
    background:
        radial-gradient(ellipse at 80% 50%,
            rgba(74, 237, 196, 0.10) 0%,
            transparent 60%),
        radial-gradient(ellipse at 20% 80%,
            rgba(255, 107, 157, 0.10) 0%,
            transparent 55%);
}

.garden-blooms {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bloom {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.65) 0%, rgba(255, 107, 157, 0.0) 70%);
    filter: blur(2px);
    animation: bloom-pulse 5s ease-in-out infinite;
}

.bloom-1 { top: 30%; right: 10%; }
.bloom-2 { top: 60%; right: 30%; width: 90px; height: 90px; animation-delay: -1.2s; }
.bloom-3 { top: 80%; right: 5%;  width: 50px; height: 50px; animation-delay: -2.8s;
           background: radial-gradient(circle, rgba(74, 237, 196, 0.6) 0%, transparent 70%); }
.bloom-4 { top: 20%; right: 35%; width: 40px; height: 40px; animation-delay: -3.5s;
           background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%); }
.bloom-5 { top: 65%; right: 8%; width: 70px; height: 70px; animation-delay: -2s;
           background: radial-gradient(circle, rgba(232, 213, 255, 0.5) 0%, transparent 70%); }

@keyframes bloom-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.55; }
    50%      { transform: scale(1.15); opacity: 1;    }
}

/* ---- chamber 2 — cavern ---- */
.chamber-cavern {
    background:
        radial-gradient(ellipse at 50% 50%,
            rgba(0, 229, 255, 0.08) 0%,
            transparent 60%);
}

.floating-crystals {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.crystal {
    position: absolute;
    background: linear-gradient(135deg, #00E5FF 0%, #E8D5FF 50%, #FFD700 100%);
    transform: rotate(45deg);
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.6),
        inset 0 0 25px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 0.85;
}

.crystal-1 { top: 18%; left: 8%;  width: 70px;  height: 70px; animation: crystal-float 60s linear infinite; }
.crystal-2 { top: 50%; left: 18%; width: 50px;  height: 50px; animation: crystal-float 85s linear infinite reverse; }
.crystal-3 { top: 28%; left: 30%; width: 110px; height: 110px; animation: crystal-float 75s linear infinite; }
.crystal-4 { top: 70%; left: 10%; width: 60px;  height: 60px; animation: crystal-float 95s linear infinite reverse; }
.crystal-5 { top: 12%; left: 70%; width: 80px;  height: 80px; animation: crystal-float 70s linear infinite; }
.crystal-6 { top: 78%; right: 8%; width: 95px;  height: 95px; animation: crystal-float 100s linear infinite reverse; }

@keyframes crystal-float {
    from { transform: rotate(45deg)  translateY(0)    translateX(0); }
    25%  { transform: rotate(135deg) translateY(-20px) translateX(15px); }
    50%  { transform: rotate(225deg) translateY(0)    translateX(0); }
    75%  { transform: rotate(315deg) translateY(20px) translateX(-15px); }
    to   { transform: rotate(405deg) translateY(0)    translateX(0); }
}

/* ---- chamber 3 — river ---- */
.chamber-river {
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(0, 229, 255, 0.06) 35%,
            rgba(74, 237, 196, 0.08) 50%,
            rgba(0, 229, 255, 0.06) 65%,
            transparent 100%);
    overflow: hidden;
}

.river-strata {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.river-strata-band {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 255, 0.6) 25%,
        rgba(74, 237, 196, 0.8) 50%,
        rgba(0, 229, 255, 0.6) 75%,
        transparent 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    animation: river-strata-flow 10s linear infinite;
}

.band-1 { top: 25%; opacity: 0.6; transform: rotate(-1.5deg); }
.band-2 { top: 55%; height: 6px; opacity: 0.85; }
.band-3 { top: 78%; opacity: 0.5; transform: rotate(1deg); animation-direction: reverse; }

@keyframes river-strata-flow {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

/* ---- chamber 4 — pleasure dome ---- */
.chamber-dome {
    background:
        radial-gradient(ellipse at 50% 80%,
            rgba(255, 215, 0, 0.18) 0%,
            rgba(255, 107, 157, 0.10) 30%,
            transparent 70%);
}

.dome-structure {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dome-arch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--gold);
    border-bottom: none;
    border-radius: 50% 50% 0 0 / 80% 80% 0 0;
    box-shadow:
        inset 0 -50px 80px rgba(255, 215, 0, 0.15),
        0 0 60px rgba(255, 215, 0, 0.2);
}

.dome-arch-outer { bottom: 8vh;  width: 78vw; height: 80vh; opacity: 0.4; border-color: rgba(255, 215, 0, 0.4); }
.dome-arch-mid   { bottom: 12vh; width: 60vw; height: 65vh; opacity: 0.6; border-color: rgba(255, 215, 0, 0.55); }
.dome-arch-inner { bottom: 16vh; width: 42vw; height: 50vh; opacity: 0.85; border-color: rgba(255, 215, 0, 0.8); }

.dome-pillar {
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 70vh;
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.5) 0%,
        rgba(255, 107, 157, 0.3) 30%,
        rgba(45, 27, 105, 0.6) 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.35);
    opacity: 0.6;
}

.dome-pillar-l { left: 11vw; }
.dome-pillar-r { right: 11vw; }

.dome-light {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    width: 36vw;
    height: 36vw;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 107, 157, 0.2) 40%,
        transparent 70%);
    filter: blur(20px);
    animation: dome-light-pulse 6s ease-in-out infinite;
}

@keyframes dome-light-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* ---- chamber 5 — ice caves ---- */
.chamber-ice {
    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(0, 229, 255, 0.12) 0%,
            transparent 60%),
        linear-gradient(180deg,
            transparent 0%,
            rgba(232, 213, 255, 0.06) 50%,
            rgba(0, 229, 255, 0.08) 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 18vh;
}

.panel-mirrored {
    margin: 0 auto;
    max-width: 620px;
    text-align: center;
}

.panel-reflection {
    margin: 18px auto 0;
    max-width: 620px;
    text-align: center;
    transform: scaleY(-1);
    opacity: 0.25;
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    animation: ice-shimmer 5s ease-in-out infinite;
    /* Reflection panel never needs to "appear"; force visible */
    transform-origin: top center;
}

.panel-reflection {
    transform: scaleY(-1);
}

.panel-reflection .chamber-title {
    color: rgba(255, 215, 0, 0.7);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

@keyframes ice-shimmer {
    0%, 100% { opacity: 0.20; }
    50%      { opacity: 0.30; }
}

.ice-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22vh;
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(0, 229, 255, 0.2) 40%,
            rgba(232, 213, 255, 0.35) 100%);
    box-shadow: 0 -30px 80px rgba(0, 229, 255, 0.25);
    pointer-events: none;
}

.ice-floor::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 80px,
            rgba(232, 213, 255, 0.15) 80px,
            rgba(232, 213, 255, 0.15) 81px);
    opacity: 0.6;
}

/* ----------------------------------------------------
   LAYER 5: REVERSE FOREGROUND (1.2x)
   ---------------------------------------------------- */
.layer-rev {
    height: 720vh;
    pointer-events: none;
}

.rev-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.95) 0%, rgba(255, 215, 0, 0) 70%);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.rev-p1 { width: 8px; height: 8px; top: 30vh; left: 8%;  animation: rev-bob 9s ease-in-out infinite; }
.rev-p2 { width: 6px; height: 6px; top: 110vh; right: 12%; animation: rev-bob 12s ease-in-out infinite; }
.rev-p3 { width: 10px; height: 10px; top: 230vh; left: 20%; animation: rev-bob 7s ease-in-out infinite; }
.rev-p4 { width: 5px; height: 5px; top: 360vh; right: 18%; animation: rev-bob 11s ease-in-out infinite; }
.rev-p5 { width: 9px; height: 9px; top: 490vh; left: 14%; animation: rev-bob 10s ease-in-out infinite; }
.rev-p6 { width: 7px; height: 7px; top: 590vh; right: 10%; animation: rev-bob 8s ease-in-out infinite; }

@keyframes rev-bob {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(15px, -25px); }
}

.rev-frame-l, .rev-frame-r {
    position: fixed;
    top: 0;
    width: 12vw;
    height: 100vh;
    pointer-events: none;
    z-index: 41;
}

.rev-frame-l {
    left: 0;
    background: linear-gradient(90deg,
        rgba(10, 5, 30, 0.5) 0%,
        rgba(10, 5, 30, 0.0) 100%);
}

.rev-frame-r {
    right: 0;
    background: linear-gradient(270deg,
        rgba(10, 5, 30, 0.5) 0%,
        rgba(10, 5, 30, 0.0) 100%);
}

/* ----------------------------------------------------
   ATMOSPHERIC PARTICLES
   ---------------------------------------------------- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    opacity: 0.7;
    will-change: transform, opacity;
}

/* ----------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------- */
@media (max-width: 768px) {
    .chamber {
        padding: 14vh 6vw;
    }

    .panel-left, .panel-right {
        margin: 0 auto;
    }

    .content-panel {
        padding: 32px 28px;
    }

    .ambient-label {
        font-size: 11px;
        letter-spacing: 0.2em;
    }

    .mid-arch { width: 80vw; }
    .arch-2   { transform: scaleX(-1); }

    .crystal-3, .crystal-6 { width: 70px; height: 70px; }
}
