/* ===== mujun.study — Candlelit Glass Sanctum ===== */

:root {
    --void: #0a0614;
    --glass: rgba(26, 18, 48, 0.45);
    --glass-solid: #1a1230;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-solid: #2d2445;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-amber: #ffaa00;
    --frost-white: #e8e4f0;
    --glass-haze: #8a82a0;
    --candle-gold: #ffd866;
    --blood-neon: #ff2255;
    --blur-radius: 24px;
    --morph-timing: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--frost-white);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===== Chamber (Section) Base ===== */
.chamber {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    overflow: hidden;
}

/* ===== Glassmorphic Panel Base ===== */
.glass-panel {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(var(--blur-radius)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--blur-radius)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow:
        -4px -4px 20px rgba(0, 240, 255, 0.15),
        4px 4px 20px rgba(255, 0, 170, 0.15),
        0 0 40px rgba(0, 240, 255, 0.06),
        inset 0 0 30px rgba(0, 240, 255, 0.03),
        0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    transition: box-shadow 1.2s var(--morph-timing), transform 1.2s var(--morph-timing), opacity 1.2s var(--morph-timing), border-radius 1.2s var(--morph-timing), width 1.2s var(--morph-timing), height 1.2s var(--morph-timing);
    will-change: transform, opacity, border-radius;
}

.glass-panel:hover {
    box-shadow:
        -4px -4px 20px rgba(0, 240, 255, 0.4),
        4px 4px 20px rgba(255, 0, 170, 0.4),
        0 0 60px rgba(0, 240, 255, 0.12),
        inset 0 0 30px rgba(0, 240, 255, 0.06),
        0 12px 48px rgba(0, 0, 0, 0.5);
}

/* Frost Overlay */
.frost-overlay {
    position: absolute;
    inset: 0;
    filter: url(#frost-noise);
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.panel-content, .threshold-content, .reading-content {
    position: relative;
    z-index: 1;
}

/* ===== Typography ===== */
.title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--frost-white);
}

.title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--morph-timing), transform 0.6s var(--morph-timing);
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(0, 240, 255, 0.15);
}

.title .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle {
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
    color: var(--glass-haze);
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 1.2s var(--morph-timing);
    font-variant: small-caps;
}

.subtitle.visible {
    opacity: 1;
}

.display-heading {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    line-height: 1.0;
    text-transform: uppercase;
}

.secondary-heading {
    font-family: 'Zilla Slab', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(0, 240, 255, 0.15);
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.5),
        0 0 30px rgba(0, 240, 255, 0.3),
        0 0 60px rgba(0, 240, 255, 0.15),
        0 0 100px rgba(0, 240, 255, 0.05);
}

.body-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: rgba(232, 228, 240, 0.9);
    margin-bottom: 1.5rem;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* Contradiction Mark */
.contradiction-mark {
    position: relative;
    font-style: italic;
    color: var(--frost-white);
}

.contradiction-mark::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan) 50%, var(--neon-magenta) 50%);
}

/* ===== Section 1: The Threshold ===== */
#threshold {
    justify-content: center;
    align-items: center;
}

.threshold-panel {
    width: 70vw;
    max-width: 900px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    opacity: 0;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
}

.threshold-panel.visible {
    opacity: 1;
}

.threshold-content {
    text-align: center;
}

/* ===== Section 2: The First Contradiction ===== */
#first-contradiction {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
    padding: 80px 60px;
}

.z-panel-left {
    width: 60vw;
    max-width: 700px;
    min-height: 280px;
    align-self: flex-start;
    padding: 3rem;
    display: flex;
    align-items: center;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
    transform: translateX(-40px);
    opacity: 0;
    transition: transform 1.2s var(--morph-timing), opacity 1.2s var(--morph-timing), box-shadow 1.2s var(--morph-timing);
}

.z-panel-left.visible {
    transform: translateX(0);
    opacity: 1;
}

.z-connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    align-self: center;
    margin: -20px 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s var(--morph-timing);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.z-connector.visible {
    opacity: 1;
}

.z-panel-right {
    width: 55vw;
    max-width: 650px;
    min-height: 240px;
    align-self: flex-end;
    padding: 3rem;
    display: flex;
    align-items: center;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
    transform: translateX(40px);
    opacity: 0;
    transition: transform 1.2s var(--morph-timing), opacity 1.2s var(--morph-timing), box-shadow 1.2s var(--morph-timing);
}

.z-panel-right.visible {
    transform: translateX(0);
    opacity: 1;
}

/* ===== Section 3: Candle Gallery ===== */
#candle-gallery {
    justify-content: space-around;
    align-items: center;
}

.candle-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(10px, 2vw, 30px);
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}

.candle-panel {
    width: 15vw;
    max-width: 180px;
    min-width: 100px;
    min-height: 70vh;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
    opacity: 0;
    transform: scaleY(0.02);
    transform-origin: center center;
    transition: opacity 1.2s var(--morph-timing), transform 1.2s var(--morph-timing), box-shadow 1.2s var(--morph-timing);
}

.candle-panel:nth-child(1) { background: rgba(26, 18, 48, 0.55); }
.candle-panel:nth-child(2) { background: rgba(26, 18, 48, 0.40); }
.candle-panel:nth-child(3) { background: rgba(26, 18, 48, 0.50); }
.candle-panel:nth-child(4) { background: rgba(26, 18, 48, 0.35); }
.candle-panel:nth-child(5) { background: rgba(26, 18, 48, 0.45); }

.candle-panel.visible {
    opacity: 1;
    transform: scaleY(1);
}

.candle-container {
    position: relative;
    width: 60px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2rem;
}

/* ===== Candle Flames ===== */
.flame {
    width: 30px;
    height: 60px;
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    opacity: 0;
    transition: opacity 1s ease;
}

.candle-panel.visible .flame {
    opacity: 1;
}

.flame-1 {
    background: radial-gradient(ellipse at center bottom, #ffd866 0%, #ffaa00 40%, rgba(255, 170, 0, 0) 70%);
    animation-name: flameMorph1;
    animation-delay: 0s;
    box-shadow: 0 0 40px rgba(255, 216, 102, 0.3), 0 0 80px rgba(255, 170, 0, 0.15);
}

.flame-2 {
    background: radial-gradient(ellipse at center bottom, var(--neon-cyan) 0%, rgba(0, 240, 255, 0.5) 40%, rgba(0, 240, 255, 0) 70%);
    animation-name: flameMorph2;
    animation-delay: 0.7s;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), 0 0 80px rgba(0, 240, 255, 0.15);
}

.flame-3 {
    background: radial-gradient(ellipse at center bottom, #ffd866 0%, #ffaa00 40%, rgba(255, 170, 0, 0) 70%);
    animation-name: flameMorph3;
    animation-delay: 1.3s;
    box-shadow: 0 0 40px rgba(255, 216, 102, 0.3), 0 0 80px rgba(255, 170, 0, 0.15);
}

.flame-4 {
    background: radial-gradient(ellipse at center bottom, var(--neon-magenta) 0%, rgba(255, 0, 170, 0.5) 40%, rgba(255, 0, 170, 0) 70%);
    animation-name: flameMorph4;
    animation-delay: 2.1s;
    box-shadow: 0 0 40px rgba(255, 0, 170, 0.3), 0 0 80px rgba(255, 0, 170, 0.15);
}

.flame-5 {
    background: radial-gradient(ellipse at center bottom, #ffd866 0%, #ff2255 40%, rgba(255, 34, 85, 0) 70%);
    animation-name: flameMorph5;
    animation-delay: 3s;
    box-shadow: 0 0 40px rgba(255, 34, 85, 0.3), 0 0 80px rgba(255, 34, 85, 0.15);
}

.flame-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

.candle-panel.visible .flame-glow {
    opacity: 1;
}

.flame-glow-1 { background: radial-gradient(circle, rgba(255, 216, 102, 0.15) 0%, transparent 70%); animation-name: glowPulse; animation-delay: 0s; }
.flame-glow-2 { background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%); animation-name: glowPulse; animation-delay: 0.7s; }
.flame-glow-3 { background: radial-gradient(circle, rgba(255, 216, 102, 0.15) 0%, transparent 70%); animation-name: glowPulse; animation-delay: 1.3s; }
.flame-glow-4 { background: radial-gradient(circle, rgba(255, 0, 170, 0.15) 0%, transparent 70%); animation-name: glowPulse; animation-delay: 2.1s; }
.flame-glow-5 { background: radial-gradient(circle, rgba(255, 34, 85, 0.15) 0%, transparent 70%); animation-name: glowPulse; animation-delay: 3s; }

@keyframes flameMorph1 {
    0%, 100% { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: scaleX(1) scaleY(1); }
    25% { border-radius: 40% 60% 60% 40% / 70% 50% 50% 30%; transform: scaleX(0.95) scaleY(1.05); }
    50% { border-radius: 50% 50% 45% 55% / 55% 65% 35% 45%; transform: scaleX(1.02) scaleY(0.98); }
    75% { border-radius: 60% 40% 50% 50% / 45% 55% 55% 45%; transform: scaleX(0.98) scaleY(1.03); }
}

@keyframes flameMorph2 {
    0%, 100% { border-radius: 45% 55% 50% 50% / 55% 65% 35% 45%; transform: scaleX(1) scaleY(1); }
    25% { border-radius: 55% 45% 45% 55% / 65% 55% 45% 35%; transform: scaleX(1.03) scaleY(0.97); }
    50% { border-radius: 50% 50% 55% 45% / 50% 60% 40% 50%; transform: scaleX(0.97) scaleY(1.04); }
    75% { border-radius: 40% 60% 50% 50% / 60% 50% 50% 40%; transform: scaleX(1.01) scaleY(0.99); }
}

@keyframes flameMorph3 {
    0%, 100% { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: scaleX(1) scaleY(1); }
    25% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; transform: scaleX(0.96) scaleY(1.04); }
    50% { border-radius: 45% 55% 50% 50% / 65% 50% 50% 35%; transform: scaleX(1.03) scaleY(0.97); }
    75% { border-radius: 55% 45% 45% 55% / 55% 55% 45% 45%; transform: scaleX(0.99) scaleY(1.02); }
}

@keyframes flameMorph4 {
    0%, 100% { border-radius: 55% 45% 50% 50% / 55% 60% 40% 45%; transform: scaleX(1) scaleY(1); }
    25% { border-radius: 50% 50% 60% 40% / 60% 55% 45% 40%; transform: scaleX(1.02) scaleY(0.98); }
    50% { border-radius: 40% 60% 45% 55% / 50% 65% 35% 50%; transform: scaleX(0.97) scaleY(1.03); }
    75% { border-radius: 55% 45% 50% 50% / 65% 50% 50% 35%; transform: scaleX(1.01) scaleY(0.99); }
}

@keyframes flameMorph5 {
    0%, 100% { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: scaleX(1) scaleY(1); }
    25% { border-radius: 45% 55% 55% 45% / 55% 65% 35% 45%; transform: scaleX(0.98) scaleY(1.02); }
    50% { border-radius: 55% 45% 45% 55% / 65% 50% 50% 35%; transform: scaleX(1.04) scaleY(0.96); }
    75% { border-radius: 50% 50% 60% 40% / 50% 60% 40% 50%; transform: scaleX(0.97) scaleY(1.04); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.candle-word {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--frost-white);
    text-align: center;
    margin-top: auto;
}

/* ===== Section 4: The Reading Chamber ===== */
#reading-chamber {
    justify-content: center;
    align-items: center;
}

.reading-panel {
    width: 85vw;
    max-width: 1100px;
    min-height: 70vh;
    padding: 4rem;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 1.2s var(--morph-timing), transform 1.2s var(--morph-timing), box-shadow 1.2s var(--morph-timing);
}

.reading-panel.visible {
    opacity: 1;
    transform: scaleX(1);
}

.reading-content {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: stretch;
}

.column {
    flex: 1;
    padding: 1rem 2rem;
}

.column-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ===== Section 5: The Dissolution ===== */
#dissolution {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.shards-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 15px;
    padding: 60px;
    z-index: 2;
    pointer-events: none;
}

.glass-shard {
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        -2px -2px 10px rgba(0, 240, 255, 0.2),
        2px 2px 10px rgba(255, 0, 170, 0.2);
    will-change: transform, clip-path, opacity;
    transition: transform 1.5s var(--morph-timing), clip-path 1.5s var(--morph-timing), opacity 1.5s var(--morph-timing);
}

.shard-1 { clip-path: polygon(10% 0%, 90% 5%, 95% 85%, 5% 95%); }
.shard-2 { clip-path: polygon(5% 10%, 85% 0%, 100% 90%, 15% 100%); }
.shard-3 { clip-path: polygon(0% 5%, 95% 15%, 90% 95%, 10% 85%); }
.shard-4 { clip-path: polygon(15% 0%, 100% 10%, 85% 100%, 0% 90%); }
.shard-5 { clip-path: polygon(5% 5%, 90% 0%, 95% 90%, 0% 100%); }
.shard-6 { clip-path: polygon(0% 15%, 85% 5%, 100% 85%, 10% 95%); }
.shard-7 { clip-path: polygon(10% 10%, 95% 0%, 90% 95%, 5% 85%); }
.shard-8 { clip-path: polygon(5% 0%, 100% 15%, 95% 100%, 0% 85%); }
.shard-9 { clip-path: polygon(0% 10%, 90% 0%, 100% 90%, 10% 100%); }
.shard-10 { clip-path: polygon(15% 5%, 85% 0%, 95% 95%, 5% 100%); }

.shard-text {
    font-family: 'Zilla Slab', serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--frost-white);
    white-space: nowrap;
}

.shards-container.scattered .glass-shard {
    opacity: 1;
}

.shards-container.unified .glass-shard {
    opacity: 0;
    transform: scale(0);
}

.unified-panel {
    width: 70vw;
    max-width: 800px;
    min-height: 200px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    border-bottom: 2px solid rgba(255, 0, 170, 0.3);
    border-right: 2px solid rgba(255, 0, 170, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.5s var(--morph-timing), transform 1.5s var(--morph-timing), box-shadow 1.2s var(--morph-timing);
    z-index: 3;
}

.unified-panel.visible {
    opacity: 1;
    transform: scale(1);
}

.closing-statement {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.closing-kanji {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--neon-amber);
    text-shadow:
        0 0 20px rgba(255, 170, 0, 0.4),
        0 0 60px rgba(255, 170, 0, 0.2),
        0 0 100px rgba(255, 170, 0, 0.1);
    letter-spacing: 0.3em;
    animation: kanjiPulse 4s ease-in-out infinite;
}

@keyframes kanjiPulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(255, 170, 0, 0.4),
            0 0 60px rgba(255, 170, 0, 0.2),
            0 0 100px rgba(255, 170, 0, 0.1);
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 170, 0, 0.6),
            0 0 80px rgba(255, 170, 0, 0.3),
            0 0 120px rgba(255, 170, 0, 0.15);
    }
}

/* ===== Shard Scattered Positions ===== */
.shards-container.scattered .shard-1 { transform: translate(-120px, -80px) rotate(-15deg); }
.shards-container.scattered .shard-2 { transform: translate(80px, -120px) rotate(10deg); }
.shards-container.scattered .shard-3 { transform: translate(-60px, 40px) rotate(-8deg); }
.shards-container.scattered .shard-4 { transform: translate(140px, -30px) rotate(20deg); }
.shards-container.scattered .shard-5 { transform: translate(-100px, 100px) rotate(-12deg); }
.shards-container.scattered .shard-6 { transform: translate(60px, 80px) rotate(5deg); }
.shards-container.scattered .shard-7 { transform: translate(-30px, -150px) rotate(-25deg); }
.shards-container.scattered .shard-8 { transform: translate(110px, 60px) rotate(15deg); }
.shards-container.scattered .shard-9 { transform: translate(-140px, 30px) rotate(-18deg); }
.shards-container.scattered .shard-10 { transform: translate(40px, 130px) rotate(8deg); }

/* ===== Ambient Background Glow ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(255, 0, 170, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(255, 170, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.chamber {
    z-index: 1;
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .chamber {
        padding: 30px;
    }

    .threshold-panel {
        width: 90vw;
        padding: 2rem;
    }

    #first-contradiction {
        padding: 40px 30px;
    }

    .z-panel-left,
    .z-panel-right {
        width: 90vw;
        align-self: center;
        transform: none;
    }

    .z-panel-left { transform: translateY(-20px); }
    .z-panel-left.visible { transform: translateY(0); }
    .z-panel-right { transform: translateY(20px); }
    .z-panel-right.visible { transform: translateY(0); }

    .candle-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .candle-panel {
        width: 28vw;
        min-height: 300px;
    }

    .reading-panel {
        width: 95vw;
        padding: 2rem;
    }

    .reading-content {
        flex-direction: column;
    }

    .column-divider {
        width: 100%;
        height: 1px;
        margin: 1.5rem 0;
    }

    .column {
        padding: 0.5rem 0;
    }

    .unified-panel {
        width: 90vw;
        padding: 2rem;
    }

    .shards-container.scattered .glass-shard {
        transform: translate(0, 0) rotate(0deg) !important;
    }
}
