/* ==========================================================================
   bada.cafe - Digital Sea Cafe
   Ocean Deep / Ethereal Blue / Horizontal Scroll Experience
   ========================================================================== */

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

:root {
    --abyssal-ink: #030b14;
    --midnight-ocean: #0a1628;
    --twilight-water: #0f2847;
    --bioluminescent-cyan: #00d4aa;
    --jellyfish-blue: #3a8fd4;
    --hydrothermal-gold: #d4a853;
    --sea-foam: #c8dce8;
    --muted-current: #6b8ca0;
    --coral-pink: #e87461;
    --card-edge: #0a2540;
    --depth-gauge-color: #4a8ba8;
    --midnight-bg: #061220;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--midnight-ocean);
    color: var(--sea-foam);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
}

/* --- Horizontal Scroll Container --- */
#ocean-scroll {
    display: flex;
    width: 600vw;
    height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Allow scroll-snap on the body for horizontal */
body {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* --- Panels --- */
.panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-surface { background: var(--midnight-ocean); }
.panel-shallows { background: var(--twilight-water); }
.panel-twilight { background: var(--midnight-ocean); }
.panel-midnight { background: var(--midnight-bg); }
.panel-abyss { background: var(--abyssal-ink); }
.panel-hydrothermal { background: var(--abyssal-ink); }

/* Twilight darkening overlay */
.twilight-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 11, 20, 0.35);
    pointer-events: none;
}

/* --- Hangul Watermarks --- */
.hangul-watermark {
    position: absolute;
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(30rem, 50vw, 60rem);
    color: var(--sea-foam);
    opacity: 0.025;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 0;
}

.hangul-watermark.rotated-neg {
    transform: translate(-50%, -50%) rotate(-4deg);
}

.hangul-watermark.rotated-pos {
    transform: translate(-50%, -50%) rotate(4deg);
}

/* --- Panel Content --- */
.panel-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.content-left {
    margin-right: auto;
    margin-left: 8vw;
}

.content-right {
    margin-left: auto;
    margin-right: 8vw;
}

.content-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Typography --- */
.domain-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--sea-foam);
    line-height: 1.1;
}

.domain-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.domain-title .letter.revealed {
    opacity: 1;
    transform: translateY(0);
}

.domain-title .dot {
    color: var(--bioluminescent-cyan);
}

.subtitle {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--sea-foam);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 600ms ease, transform 600ms ease;
    margin-top: 0.5rem;
}

.subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hangul-inline {
    font-family: 'Nanum Myeongjo', serif;
}

.tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--muted-current);
    letter-spacing: 0.15em;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.tagline.revealed {
    opacity: 1;
    transform: translateY(0);
}

.panel-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--sea-foam);
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.panel-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.panel-title.gold-accent {
    color: var(--hydrothermal-gold);
}

.panel-subtitle {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--muted-current);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.panel-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hangul-accent {
    font-family: 'Nanum Myeongjo', serif;
}

.large-hangul {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--bioluminescent-cyan);
    margin-bottom: 0.5rem;
}

/* --- Floating Blocks --- */
.floating-block {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 37, 64, 0.15) 100%);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    position: relative;
    will-change: transform;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.floating-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.floating-block p {
    color: var(--sea-foam);
}

/* Glow halo for deeper panels */
.glow-halo {
    box-shadow: 0 0 40px rgba(58, 143, 212, 0.06), 0 0 80px rgba(0, 212, 170, 0.03);
}

.warm-glow {
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.08), 0 0 80px rgba(212, 168, 83, 0.04);
}

/* Floating buoyancy animation */
.floating-block.float-active {
    animation: buoyancy var(--float-duration, 7s) ease-in-out var(--float-delay, 0s) infinite;
}

@keyframes buoyancy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(calc(var(--float-amount, -6px))); }
}

/* Ripple effect on hover (midnight zone) */
.ripple-target {
    overflow: hidden;
}

.ripple-target .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple-expand 1s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* --- Typographic Layer (Abyss) --- */
.typographic-layer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 600ms ease;
}

.typographic-layer.revealed {
    opacity: 1;
}

.typo-fragment {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--hydrothermal-gold);
    opacity: 0.6;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.typo-fragment:nth-child(even) {
    font-family: 'Nanum Myeongjo', serif;
    color: var(--bioluminescent-cyan);
    opacity: 0.4;
}

/* --- Dense Layout (Abyss) --- */
.dense-layout .floating-block {
    margin-bottom: 1rem;
    padding: 1.2rem 1.5rem;
}

/* --- Final Element (Hydrothermal) --- */
.final-element {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scaleY(1.15);
    transition: opacity 800ms ease, transform 1200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-element.revealed {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

.final-message {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 2rem;
    color: var(--hydrothermal-gold);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.final-translation {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--muted-current);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.sig-domain {
    font-family: 'Cormorant Infant', serif;
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: var(--sea-foam);
    opacity: 0.7;
}

.sig-depth {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    color: var(--depth-gauge-color);
    opacity: 0.6;
    letter-spacing: 0.15em;
}

/* --- Celadon Borders --- */
.celadon-border {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.celadon-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
}

.celadon-top svg {
    width: 100%;
    height: 100%;
}

.celadon-side {
    top: 0;
    left: 2vw;
    width: 40px;
    height: 100%;
}

.celadon-side svg {
    width: 100%;
    height: 100%;
}

.celadon-crane {
    fill: none;
    stroke: var(--jellyfish-blue);
    stroke-width: 1;
    opacity: 0.2;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.celadon-cloud {
    fill: none;
    stroke: var(--jellyfish-blue);
    stroke-width: 0.5;
    opacity: 0.12;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.celadon-border:hover .celadon-crane {
    transform: scale(1.02) rotate(1deg);
    opacity: 0.35;
}

.celadon-border:hover .celadon-cloud {
    transform: scale(0.98) rotate(-1deg);
    opacity: 0.2;
}

/* --- Tide Dividers --- */
.tide-divider {
    position: absolute;
    bottom: 15vh;
    left: 10%;
    width: 80%;
    height: 10px;
    z-index: 1;
    pointer-events: none;
}

.tide-wave {
    fill: none;
    stroke: var(--jellyfish-blue);
    stroke-width: 0.5;
    opacity: 0.25;
    animation: tide-undulate 8s ease-in-out infinite;
}

@keyframes tide-undulate {
    0%, 100% {
        d: path("M0,5 Q25,2 50,5 Q75,8 100,5 Q125,2 150,5 Q175,8 200,5");
    }
    50% {
        d: path("M0,5 Q25,8 50,5 Q75,2 100,5 Q125,8 150,5 Q175,2 200,5");
    }
}

/* --- Jellyfish --- */
.jellyfish-svg {
    position: absolute;
    width: 250px;
    height: 375px;
    right: 10vw;
    top: 15vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
    animation: jellyfish-drift 15s ease-in-out infinite;
}

.jellyfish-svg.visible {
    opacity: 1;
}

@keyframes jellyfish-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-20px, -15px) rotate(2deg);
    }
    50% {
        transform: translate(10px, -30px) rotate(-1deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
}

/* --- Vent Gradient (Abyss) --- */
.vent-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(212, 168, 83, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* --- Hydrothermal Gradient --- */
.hydrothermal-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(212, 168, 83, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* --- Bioluminescent Particles (CSS) --- */
.bioluminescent-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bioluminescent-particles::before,
.bioluminescent-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Sparse particles (Shallows) */
.bioluminescent-particles.sparse::before {
    width: 4px;
    height: 4px;
    box-shadow:
        20vw 20vh 0 0 rgba(0, 212, 170, 0.15),
        50vw 60vh 0 1px rgba(0, 212, 170, 0.1),
        80vw 30vh 0 0 rgba(0, 212, 170, 0.12),
        35vw 80vh 0 1px rgba(0, 212, 170, 0.08),
        70vw 45vh 0 0 rgba(58, 143, 212, 0.1);
    animation: particle-pulse-1 5s ease-in-out infinite, particle-drift-1 20s linear infinite;
}

.bioluminescent-particles.sparse::after {
    width: 3px;
    height: 3px;
    box-shadow:
        15vw 70vh 0 0 rgba(0, 212, 170, 0.1),
        60vw 15vh 0 1px rgba(58, 143, 212, 0.12),
        90vw 50vh 0 0 rgba(0, 212, 170, 0.08),
        40vw 35vh 0 1px rgba(58, 143, 212, 0.1);
    animation: particle-pulse-2 7s ease-in-out infinite, particle-drift-2 25s linear infinite;
}

/* Moderate particles (Twilight) */
.bioluminescent-particles.moderate::before {
    width: 4px;
    height: 4px;
    box-shadow:
        10vw 15vh 0 0 rgba(0, 212, 170, 0.2),
        30vw 45vh 0 1px rgba(0, 212, 170, 0.15),
        55vw 25vh 0 0 rgba(0, 212, 170, 0.18),
        75vw 70vh 0 1px rgba(58, 143, 212, 0.15),
        20vw 85vh 0 0 rgba(0, 212, 170, 0.12),
        88vw 35vh 0 1px rgba(58, 143, 212, 0.18),
        45vw 55vh 0 0 rgba(0, 212, 170, 0.15),
        65vw 10vh 0 1px rgba(0, 212, 170, 0.1);
    animation: particle-pulse-1 4s ease-in-out infinite, particle-drift-1 18s linear infinite;
}

.bioluminescent-particles.moderate::after {
    width: 5px;
    height: 5px;
    box-shadow:
        5vw 40vh 0 0 rgba(0, 212, 170, 0.15),
        40vw 75vh 0 1px rgba(58, 143, 212, 0.2),
        70vw 20vh 0 0 rgba(0, 212, 170, 0.18),
        95vw 60vh 0 1px rgba(0, 212, 170, 0.12),
        25vw 50vh 0 0 rgba(58, 143, 212, 0.15),
        85vw 85vh 0 1px rgba(0, 212, 170, 0.1);
    animation: particle-pulse-2 6s ease-in-out infinite, particle-drift-2 22s linear infinite;
}

/* Dense particles (Midnight) */
.bioluminescent-particles.dense::before {
    width: 4px;
    height: 4px;
    box-shadow:
        8vw 10vh 0 1px rgba(0, 212, 170, 0.3),
        22vw 30vh 0 0 rgba(0, 212, 170, 0.25),
        38vw 55vh 0 1px rgba(58, 143, 212, 0.2),
        52vw 15vh 0 0 rgba(0, 212, 170, 0.28),
        68vw 75vh 0 1px rgba(0, 212, 170, 0.2),
        82vw 40vh 0 0 rgba(58, 143, 212, 0.25),
        15vw 65vh 0 1px rgba(0, 212, 170, 0.22),
        45vw 85vh 0 0 rgba(0, 212, 170, 0.18),
        72vw 25vh 0 1px rgba(58, 143, 212, 0.2),
        92vw 55vh 0 0 rgba(0, 212, 170, 0.25);
    animation: particle-pulse-1 3.5s ease-in-out infinite, particle-drift-1 15s linear infinite;
}

.bioluminescent-particles.dense::after {
    width: 5px;
    height: 5px;
    box-shadow:
        12vw 20vh 0 0 rgba(0, 212, 170, 0.25),
        28vw 50vh 0 1px rgba(0, 212, 170, 0.3),
        48vw 35vh 0 0 rgba(58, 143, 212, 0.22),
        62vw 65vh 0 1px rgba(0, 212, 170, 0.28),
        78vw 10vh 0 0 rgba(0, 212, 170, 0.2),
        88vw 80vh 0 1px rgba(58, 143, 212, 0.25),
        35vw 90vh 0 0 rgba(0, 212, 170, 0.18),
        58vw 45vh 0 1px rgba(0, 212, 170, 0.22);
    animation: particle-pulse-2 5s ease-in-out infinite, particle-drift-2 18s linear infinite;
}

/* Very Dense + Warm (Abyss, Hydrothermal) */
.bioluminescent-particles.very-dense::before {
    width: 5px;
    height: 5px;
    box-shadow:
        5vw 8vh 0 1px rgba(0, 212, 170, 0.35),
        15vw 22vh 0 0 rgba(0, 212, 170, 0.3),
        25vw 42vh 0 1px rgba(0, 212, 170, 0.28),
        35vw 62vh 0 0 rgba(0, 212, 170, 0.32),
        45vw 18vh 0 1px rgba(0, 212, 170, 0.25),
        55vw 78vh 0 0 rgba(0, 212, 170, 0.3),
        65vw 38vh 0 1px rgba(0, 212, 170, 0.28),
        75vw 58vh 0 0 rgba(0, 212, 170, 0.22),
        85vw 12vh 0 1px rgba(0, 212, 170, 0.35),
        95vw 82vh 0 0 rgba(0, 212, 170, 0.2),
        10vw 48vh 0 1px rgba(0, 212, 170, 0.3),
        50vw 88vh 0 0 rgba(0, 212, 170, 0.25);
    animation: particle-pulse-1 3s ease-in-out infinite, particle-drift-1 14s linear infinite;
}

.bioluminescent-particles.very-dense::after {
    width: 4px;
    height: 4px;
    box-shadow:
        8vw 32vh 0 1px rgba(0, 212, 170, 0.28),
        20vw 52vh 0 0 rgba(0, 212, 170, 0.32),
        32vw 72vh 0 1px rgba(0, 212, 170, 0.25),
        42vw 28vh 0 0 rgba(0, 212, 170, 0.3),
        58vw 48vh 0 1px rgba(0, 212, 170, 0.22),
        68vw 68vh 0 0 rgba(0, 212, 170, 0.28),
        78vw 88vh 0 1px rgba(0, 212, 170, 0.2),
        88vw 35vh 0 0 rgba(0, 212, 170, 0.32),
        18vw 92vh 0 1px rgba(0, 212, 170, 0.25),
        48vw 8vh 0 0 rgba(0, 212, 170, 0.3);
    animation: particle-pulse-2 4.5s ease-in-out infinite, particle-drift-2 16s linear infinite;
}

/* Warm particles override */
.bioluminescent-particles.warm::before {
    box-shadow:
        5vw 8vh 0 1px rgba(212, 168, 83, 0.25),
        15vw 22vh 0 0 rgba(0, 212, 170, 0.25),
        25vw 42vh 0 1px rgba(212, 168, 83, 0.2),
        35vw 62vh 0 0 rgba(0, 212, 170, 0.28),
        45vw 18vh 0 1px rgba(212, 168, 83, 0.22),
        55vw 78vh 0 0 rgba(0, 212, 170, 0.25),
        65vw 38vh 0 1px rgba(212, 168, 83, 0.18),
        75vw 58vh 0 0 rgba(0, 212, 170, 0.2),
        85vw 12vh 0 1px rgba(212, 168, 83, 0.28),
        95vw 82vh 0 0 rgba(0, 212, 170, 0.15),
        10vw 48vh 0 1px rgba(212, 168, 83, 0.22),
        50vw 88vh 0 0 rgba(0, 212, 170, 0.2);
}

.bioluminescent-particles.warm::after {
    box-shadow:
        8vw 32vh 0 1px rgba(212, 168, 83, 0.2),
        20vw 52vh 0 0 rgba(0, 212, 170, 0.22),
        32vw 72vh 0 1px rgba(212, 168, 83, 0.18),
        42vw 28vh 0 0 rgba(0, 212, 170, 0.25),
        58vw 48vh 0 1px rgba(212, 168, 83, 0.15),
        68vw 68vh 0 0 rgba(0, 212, 170, 0.2),
        78vw 88vh 0 1px rgba(212, 168, 83, 0.22),
        88vw 35vh 0 0 rgba(0, 212, 170, 0.25),
        18vw 92vh 0 1px rgba(212, 168, 83, 0.18),
        48vw 8vh 0 0 rgba(0, 212, 170, 0.22);
}

/* Golden particles (Hydrothermal) */
.bioluminescent-particles.golden::before {
    box-shadow:
        5vw 8vh 0 1px rgba(212, 168, 83, 0.35),
        15vw 22vh 0 0 rgba(212, 168, 83, 0.3),
        25vw 42vh 0 1px rgba(212, 168, 83, 0.25),
        35vw 62vh 0 0 rgba(212, 168, 83, 0.32),
        45vw 18vh 0 1px rgba(212, 168, 83, 0.28),
        55vw 78vh 0 0 rgba(212, 168, 83, 0.3),
        65vw 38vh 0 1px rgba(0, 212, 170, 0.2),
        75vw 58vh 0 0 rgba(212, 168, 83, 0.25),
        85vw 12vh 0 1px rgba(212, 168, 83, 0.32),
        95vw 82vh 0 0 rgba(212, 168, 83, 0.2),
        10vw 48vh 0 1px rgba(0, 212, 170, 0.15),
        50vw 88vh 0 0 rgba(212, 168, 83, 0.28);
}

.bioluminescent-particles.golden::after {
    box-shadow:
        8vw 32vh 0 1px rgba(212, 168, 83, 0.3),
        20vw 52vh 0 0 rgba(212, 168, 83, 0.28),
        32vw 72vh 0 1px rgba(212, 168, 83, 0.22),
        42vw 28vh 0 0 rgba(212, 168, 83, 0.3),
        58vw 48vh 0 1px rgba(0, 212, 170, 0.18),
        68vw 68vh 0 0 rgba(212, 168, 83, 0.25),
        78vw 88vh 0 1px rgba(212, 168, 83, 0.3),
        88vw 35vh 0 0 rgba(212, 168, 83, 0.28),
        18vw 92vh 0 1px rgba(0, 212, 170, 0.15),
        48vw 8vh 0 0 rgba(212, 168, 83, 0.32);
}

/* Particle animations */
@keyframes particle-pulse-1 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes particle-pulse-2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes particle-drift-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, -8px); }
    75% { transform: translate(8px, 5px); }
    100% { transform: translate(0, 0); }
}

@keyframes particle-drift-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-12px, 8px); }
    50% { transform: translate(7px, 12px); }
    75% { transform: translate(-8px, -10px); }
    100% { transform: translate(0, 0); }
}

/* --- Caustic Canvas --- */
#caustic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
    opacity: 0.05;
    mix-blend-mode: screen;
}

/* --- Bubble Trail --- */
#bubble-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 170, 0.3), rgba(0, 212, 170, 0.05));
    pointer-events: none;
    will-change: transform, opacity;
}

/* --- Depth Gauge --- */
#depth-gauge {
    position: fixed;
    bottom: 20px;
    left: 5vw;
    width: 90vw;
    height: 30px;
    z-index: 20;
    pointer-events: none;
}

#depth-gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-track {
    stroke: var(--muted-current);
    stroke-width: 0.5;
    opacity: 0.2;
}

.gauge-progress {
    stroke: var(--bioluminescent-cyan);
    stroke-width: 1;
    opacity: 0.6;
    transition: x2 0.3s ease;
}

.gauge-marker line {
    stroke: var(--depth-gauge-color);
    stroke-width: 0.8;
    opacity: 0.3;
}

.gauge-label {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 8px;
    fill: var(--depth-gauge-color);
    opacity: 0.6;
    text-anchor: middle;
}

.gauge-marker.active line {
    opacity: 0.8;
    stroke: var(--bioluminescent-cyan);
}

.gauge-marker.active .gauge-label {
    opacity: 1;
    fill: var(--bioluminescent-cyan);
}

/* --- Scrollbar --- */
body::-webkit-scrollbar {
    height: 0;
    width: 0;
}

body {
    scrollbar-width: none;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .panel-content {
        max-width: 90vw;
        padding: 1.5rem;
    }

    .content-left,
    .content-right {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .domain-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .panel-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .subtitle {
        font-size: 3rem;
    }

    .hangul-watermark {
        font-size: clamp(15rem, 40vw, 30rem);
    }

    .jellyfish-svg {
        width: 150px;
        height: 225px;
        right: 5vw;
    }

    .final-message {
        font-size: 1.4rem;
    }
}
