/* ============================================================
   BBOTTL.com — Deep-Sea Curiosity Cabinet
   Anti-design / layered-depth / art-deco-display / ocean-deep
   ============================================================ */

:root {
    --ink: #02111B;
    --indigo: #0B2A3F;
    --teal-current: #10485E;
    --jade: #2C8C99;
    --bio-cyan: #7DCFD8;
    --parchment: #E8D8B0;
    --brass: #C9A24A;
    --foam: #F4F1E4;
    --coral: #E8554E;

    --font-display: 'Limelight', 'Cormorant Garamond', serif;
    --font-sub: 'Poiret One', 'Cinzel', sans-serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-stamp: 'Special Elite', 'Courier New', monospace;
    --font-roman: 'Cinzel', 'Times New Roman', serif;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    background: var(--ink);
    color: var(--parchment);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    cursor: none;
}

body {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(ellipse at 50% 110%, var(--teal-current) 0%, var(--indigo) 38%, var(--ink) 92%);
    background-attachment: fixed;
}

/* ============ Planes ============ */
.plane {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.plane-deepest { z-index: 1; }
.plane-kelp { z-index: 2; }
.plane-bubbles { z-index: 3; }
.plane-overlays { z-index: 6; pointer-events: none; }

/* Plane -3: abyssal backdrop */
.abyss-gradient {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(125, 207, 216, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 80%, rgba(44, 140, 153, 0.08) 0%, transparent 40%);
}

.deco-sunburst {
    position: absolute;
    width: 60vw;
    height: 60vw;
    opacity: 0.06;
    animation: slow-spin 220s linear infinite;
}

.sunburst-a { top: 20%; left: -10vw; }

.whale {
    position: absolute;
    width: 28vw;
    min-width: 320px;
    animation: drift 90s linear infinite;
}

.whale-a { top: 22%; left: -30vw; }
.whale-b { top: 64%; left: -30vw; animation-duration: 130s; animation-delay: -45s; }

@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(160vw); }
}

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

/* Plane -2: Kelp */
.plane-kelp { top: 0; height: 100%; }

.kelp {
    position: absolute;
    bottom: -10%;
    width: 90px;
    height: 140vh;
    transform-origin: 50% 100%;
    animation: sway 8s ease-in-out infinite alternate;
}

.kelp-1 { left: 4vw; animation-duration: 9s; }
.kelp-2 { left: 28vw; animation-duration: 11s; animation-delay: -2s; }
.kelp-3 { right: 22vw; animation-duration: 13s; animation-delay: -4s; }
.kelp-4 { right: 6vw; animation-duration: 10s; animation-delay: -1s; }

@keyframes sway {
    from { transform: rotate(-2deg); }
    to { transform: rotate(2.5deg); }
}

/* Plane -1: Ambient bubbles */
.plane-bubbles { z-index: 3; }

.bubble {
    position: absolute;
    bottom: -50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(244, 241, 228, 0.85), rgba(125, 207, 216, 0.5) 40%, rgba(44, 140, 153, 0.2) 70%, transparent 100%);
    box-shadow:
        0 0 12px rgba(125, 207, 216, 0.25),
        inset 1px 1px 2px rgba(244, 241, 228, 0.4);
    animation: ascend var(--rise-duration, 22s) linear infinite;
    animation-delay: var(--rise-delay, 0s);
    opacity: 0.85;
    will-change: transform;
}

.bubble.small { width: 4px; height: 4px; }
.bubble.medium { width: 11px; height: 11px; }
.bubble.large { width: 24px; height: 24px; }

@keyframes ascend {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    8% { opacity: 0.85; }
    25% { transform: translate3d(8px, -25vh, 0); }
    50% { transform: translate3d(-6px, -50vh, 0); }
    75% { transform: translate3d(10px, -75vh, 0); }
    95% { opacity: 0.75; }
    100% {
        transform: translate3d(0, -110vh, 0);
        opacity: 0;
    }
}

/* ============ Brass Spine Navigation ============ */
.brass-spine {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    z-index: 30;
    pointer-events: auto;
}

.spine-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--brass) 6%,
        var(--brass) 94%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.45);
    border-radius: 2px;
}

.spine-list {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 0;
}

.spine-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--foam), var(--brass) 65%, #8a6e2c 100%);
    border: 2px solid var(--brass);
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-roman);
    font-size: 0.78rem;
    font-weight: 600;
    transition: transform 0.42s var(--spring), box-shadow 0.42s var(--spring);
    box-shadow: 0 2px 10px rgba(2, 17, 27, 0.55), inset 0 1px 2px rgba(244, 241, 228, 0.5);
    position: relative;
}

.spine-link:hover, .spine-link.active {
    transform: scale(1.18);
    box-shadow: 0 0 22px var(--bio-cyan), inset 0 1px 2px rgba(244, 241, 228, 0.6);
}

.spine-link .roman { display: block; }

.tooltip {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--foam);
    color: var(--ink);
    padding: 4px 14px;
    font-family: var(--font-stamp);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    border: 1px solid var(--brass);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--spring), transform 0.3s var(--spring);
    box-shadow: 0 2px 8px rgba(2,17,27,0.6);
    border-radius: 2px;
}

.tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--foam);
    border-right: 1px solid var(--brass);
    border-top: 1px solid var(--brass);
}

.spine-link:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============ Bell Toggle ============ */
.bell-toggle {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--foam) 0%, var(--brass) 60%, #8a6e2c 100%);
    border: 2px solid var(--brass);
    cursor: none;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(2,17,27,0.55);
    transition: transform 0.4s var(--spring);
}

.bell-toggle:hover { transform: scale(1.12) rotate(-6deg); }
.bell-toggle[aria-pressed="true"] {
    box-shadow: 0 0 22px var(--bio-cyan), 0 4px 16px rgba(2,17,27,0.55);
}
.bell-toggle svg { width: 100%; height: 100%; }

/* ============ Content / Zones ============ */
.content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6vw 0 6vw;
}

.zone {
    min-height: 100vh;
    padding: 14vh 0 10vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.zone.offset-right { padding-left: 12vw; }
.zone.offset-left  { padding-right: 12vw; padding-left: 2vw; }

/* Fan divider */
.fan-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0.55;
}

.fan-divider.top { top: 8vh; }
.fan-divider svg { width: 70%; max-width: 800px; height: 60px; }

/* ============ Zone 1: Title plate ============ */
.title-plate {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding-top: 4vh;
}

.overline {
    font-family: var(--font-stamp);
    color: var(--brass);
    letter-spacing: 0.32em;
    font-size: 0.84rem;
    text-transform: uppercase;
    transform: rotate(-1.2deg);
    align-self: flex-start;
    border: 1px solid var(--brass);
    padding: 6px 16px;
    background: rgba(2,17,27,0.4);
}

.title-display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.4rem, 11vw, 9.6rem);
    line-height: 0.92;
    color: var(--foam);
    letter-spacing: -0.005em;
    text-shadow: 0 0 24px rgba(125,207,216,0.18), 0 6px 28px rgba(2,17,27,0.6);
    margin-bottom: 0.4em;
}

.title-emph {
    color: var(--brass);
    display: inline-block;
    transform: translateX(6vw);
    background: linear-gradient(180deg, var(--brass) 0%, #a4801f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-sub {
    font-family: var(--font-sub);
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    color: var(--parchment);
    max-width: 36em;
    letter-spacing: 0.04em;
    transform: translateX(8vw) rotate(-0.5deg);
    border-left: 2px solid var(--brass);
    padding-left: 1.6rem;
}

/* ============ Zone headers ============ */
.zone-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-self: flex-start;
}

.zone-header.centered { align-self: center; text-align: center; }
.zone-header.tilt-neg7 { transform: rotate(-7deg) translateX(4vw); }
.zone-header.bleed-right {
    margin-right: -14vw;
    transform-origin: right center;
}

.kicker {
    font-family: var(--font-stamp);
    color: var(--brass);
    font-size: 0.84rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.zone-title {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--foam);
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.01em;
}

.bottle-title { color: var(--brass); }

/* ============ Body prose & layered text ============ */
.body-prose {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--parchment);
    max-width: 38em;
}

.body-prose em { color: var(--bio-cyan); font-style: italic; }
.body-prose.centered { text-align: center; margin: 0 auto; }
.final {
    color: var(--foam);
    font-family: var(--font-sub);
    font-style: normal;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

.layered-text { display: flex; flex-direction: column; gap: 1.4rem; max-width: 46em; }
.indent-1 { margin-left: 4vw; }
.indent-2 { margin-left: 12vw; }
.indent-3 { margin-left: 20vw; }
.indent-4 { margin-left: 28vw; }

/* Pull quote */
.pull-quote {
    font-family: var(--font-sub);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    line-height: 1.3;
    color: var(--bio-cyan);
    max-width: 26em;
    border-top: 1px solid var(--brass);
    border-bottom: 1px solid var(--brass);
    padding: 1.2rem 1.6rem;
    align-self: flex-end;
    margin-right: -4vw;
}

.rotate-pos3 { transform: rotate(3deg); }
.rotate-neg2 { transform: rotate(-2deg); }
.rotate-pos5 { transform: rotate(5deg); }
.rotate-neg7 { transform: rotate(-7deg); }

/* Margin / stamp */
.margin-stamp {
    font-family: var(--font-stamp);
    color: var(--brass);
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 3px 10px;
    border: 1px dashed rgba(201,162,74,0.5);
    background: rgba(232,216,176,0.06);
    mix-blend-mode: screen;
}

.margin-block {
    align-self: flex-start;
    max-width: 24em;
    padding: 1rem 1.2rem;
    background: rgba(232,216,176,0.08);
    border-left: 2px solid var(--brass);
    transform: rotate(-1deg);
}
.margin-block.right { align-self: flex-end; transform: rotate(1.4deg); }

.margin-body {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--parchment);
    font-size: 1.04rem;
    margin-top: 0.5rem;
}

/* ============ Portholes ============ */
.porthole-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 1rem 0;
}

.porthole-row.two-up { justify-content: space-between; }

.porthole {
    position: relative;
    width: 240px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    transition: transform 0.6s var(--spring);
    cursor: none;
}

.porthole-small { width: 180px; }
.porthole-large { width: 320px; }

.porthole-rim {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 12px solid var(--brass);
    background: radial-gradient(circle at 35% 35%, #e6c178, var(--brass) 65%, #8a6e2c 100%);
    box-shadow:
        inset 0 4px 12px rgba(244,241,228,0.5),
        inset 0 -6px 12px rgba(2,17,27,0.4),
        0 8px 32px rgba(2,17,27,0.6);
    z-index: 1;
}

.porthole-rim::before,
.porthole-rim::after,
.porthole::before,
.porthole::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 35% 35%, var(--foam), #6a5320);
    border-radius: 50%;
    z-index: 3;
}
.porthole-rim::before { top: -1px; left: 50%; transform: translateX(-50%); }
.porthole-rim::after  { bottom: -1px; left: 50%; transform: translateX(-50%); }
.porthole::before     { top: 50%; left: -1px; transform: translateY(-50%); }
.porthole::after      { top: 50%; right: -1px; transform: translateY(-50%); }

.porthole-glass {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 28px rgba(2,17,27,0.6);
    z-index: 2;
}

.porthole-glass::after {
    content: '';
    position: absolute;
    top: 14%;
    left: 18%;
    width: 30%;
    height: 18%;
    background: radial-gradient(ellipse, rgba(244,241,228,0.45), transparent 70%);
    border-radius: 50%;
    transform: rotate(-25deg);
    pointer-events: none;
}

.porthole-glass svg {
    width: 100%;
    height: 100%;
    display: block;
}

.porthole:hover {
    transform: translateY(-8px) rotate(2deg);
}

/* ============ Specimen tags ============ */
.specimen-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: linear-gradient(180deg, var(--foam) 0%, #e0d4a8 100%);
    color: var(--ink);
    font-family: var(--font-stamp);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    border: 1px solid var(--brass);
    box-shadow: 0 4px 12px rgba(2,17,27,0.4);
    position: relative;
    transform: rotate(-2deg);
}

.specimen-tag::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 18px;
    height: 1.2px;
    background: var(--brass);
    transform: translateY(-50%);
}

.specimen-tag::after {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--brass);
    border-radius: 50%;
    background: var(--foam);
    transform: translateY(-50%);
}

.tag-no {
    font-weight: 700;
    color: var(--coral);
    padding-right: 10px;
    border-right: 1px dashed var(--brass);
}

.tag-label { color: var(--ink); font-style: italic; }

.specimen-tag.floating {
    align-self: flex-start;
    transform: rotate(-2deg) translateX(10vw);
    margin-top: 1.6rem;
    animation: gentle-bob 4.6s ease-in-out infinite alternate;
}

.specimen-tag.inline {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-40%) rotate(-3deg);
}

@keyframes gentle-bob {
    from { transform: rotate(-2deg) translateX(10vw) translateY(0); }
    to   { transform: rotate(-3deg) translateX(10vw) translateY(-8px); }
}

/* ============ Inverted block ============ */
.inverted-block {
    align-self: flex-end;
    max-width: 36em;
    padding: 1.6rem 1.8rem;
    background: rgba(11,42,63,0.6);
    border: 1px solid var(--brass);
    transform: rotate(180deg);
    position: relative;
}

.inverted-block .margin-stamp {
    transform: rotate(-5deg);
    position: absolute;
    top: -14px;
    right: 30px;
}

.body-prose.inverted { color: var(--foam); }

/* ============ Brass rule ============ */
.brass-rule {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--brass) 20%, #e6c178 50%, var(--brass) 80%, transparent 100%);
    margin: 2rem 0;
    transform-origin: center;
    transition: transform 0.09s cubic-bezier(0.6, -0.5, 0.4, 1.5);
}

.brass-rule.snapping { transform: scaleX(0.97) translateY(2px); }

/* ============ Bottle stage ============ */
.bottle-stage {
    position: relative;
    align-self: center;
    margin-top: 2rem;
    perspective: 800px;
}

.bottle-svg {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(2,17,27,0.7));
    animation: bottle-rock 7s ease-in-out infinite alternate;
}

@keyframes bottle-rock {
    from { transform: rotate(-2deg); }
    to { transform: rotate(2.5deg); }
}

.bottle-bubbles circle {
    animation: bottle-rise 6s ease-in infinite;
}
.bottle-bubbles circle:nth-child(1) { animation-delay: 0s; }
.bottle-bubbles circle:nth-child(2) { animation-delay: -1.3s; }
.bottle-bubbles circle:nth-child(3) { animation-delay: -2.6s; }
.bottle-bubbles circle:nth-child(4) { animation-delay: -3.9s; }
.bottle-bubbles circle:nth-child(5) { animation-delay: -4.7s; }

@keyframes bottle-rise {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.9; }
    100% { transform: translateY(-260px); opacity: 0; }
}

.bottle-tag {
    position: absolute;
    bottom: 36%;
    right: -120px;
    width: 220px;
    background: linear-gradient(180deg, var(--foam), #e0d4a8);
    color: var(--ink);
    padding: 12px 18px;
    font-family: var(--font-stamp);
    font-size: 0.85rem;
    border: 1px solid var(--brass);
    transform: rotate(4deg);
    box-shadow: 0 6px 18px rgba(2,17,27,0.55);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bottle-tag::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 50%;
    width: 38px;
    height: 1.4px;
    background: var(--brass);
    transform: translateY(-50%) rotate(-12deg);
    transform-origin: right center;
}

.bottle-tag .tag-no { color: var(--coral); border: 0; padding: 0; }
.bottle-tag .tag-label { color: var(--ink); font-style: italic; }

/* ============ Shipwreck footer ============ */
.shipwreck-footer {
    margin-top: 14vh;
    padding: 6vh 0 4vh;
    position: relative;
    text-align: center;
}

.hull {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    height: 320px;
}

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

.rooms {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 6vh 8vw;
    height: 100%;
    align-items: center;
}

.room {
    text-align: center;
    color: var(--parchment);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.room-roman {
    font-family: var(--font-roman);
    color: var(--brass);
    font-size: 1.6rem;
    letter-spacing: 0.1em;
}

.room h4 {
    font-family: var(--font-sub);
    font-weight: 400;
    color: var(--foam);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
}

.room a {
    font-family: var(--font-stamp);
    color: var(--bio-cyan);
    text-decoration: none;
    font-size: 0.94rem;
    letter-spacing: 0.06em;
    border-bottom: 1px dashed var(--bio-cyan);
    padding-bottom: 2px;
    transition: color 0.3s var(--spring), transform 0.3s var(--spring);
}

.room a:hover { color: var(--coral); transform: translateY(-2px); }

.footer-line {
    margin-top: 3rem;
    font-family: var(--font-stamp);
    color: var(--brass);
    font-size: 0.84rem;
    letter-spacing: 0.18em;
}

/* ============ Torn paper overlays ============ */
.torn-paper {
    position: absolute;
    background:
        linear-gradient(180deg, rgba(232,216,176,0.18), rgba(232,216,176,0.08)),
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(2,17,27,0.04) 8px 9px);
    padding: 12px 22px;
    border: 0;
    box-shadow: 0 4px 14px rgba(2,17,27,0.5);
    mix-blend-mode: screen;
    pointer-events: none;
}

.torn-paper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 12px;
    background:
        radial-gradient(circle at 5% 0, transparent 4px, rgba(232,216,176,0.18) 5px),
        radial-gradient(circle at 15% 0, transparent 4px, rgba(232,216,176,0.18) 5px),
        radial-gradient(circle at 25% 0, transparent 4px, rgba(232,216,176,0.18) 5px),
        radial-gradient(circle at 35% 0, transparent 4px, rgba(232,216,176,0.18) 5px);
}

.torn-a { top: 28vh; left: 4vw; transform: rotate(-3deg); }
.torn-b { top: 65vh; right: 6vw; transform: rotate(4deg); }

/* ============ Jellyfish cursor companion ============ */
.jellyfish {
    position: fixed;
    width: 60px;
    height: 80px;
    pointer-events: none;
    z-index: 50;
    transform: translate(-30px, -40px);
    filter: drop-shadow(0 0 10px rgba(125,207,216,0.6));
    transition: filter 0.4s var(--spring);
}

.jellyfish g {
    transform-origin: 30px 30px;
    animation: jelly-pulse 1.6s ease-in-out infinite;
}

@keyframes jelly-pulse {
    0%, 100% { transform: scaleY(1) scaleX(1); }
    50% { transform: scaleY(0.88) scaleX(1.08); }
}

.jellyfish.springing {
    animation: jelly-spring 0.5s var(--spring);
}

@keyframes jelly-spring {
    0% { transform: translate(-30px, -40px); }
    40% { transform: translate(-30px, -40px) translateX(46px) rotate(8deg); }
    100% { transform: translate(-30px, -40px); }
}

/* Click bubbles container */
.click-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 49;
    overflow: hidden;
}

.click-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(244,241,228,0.9), rgba(125,207,216,0.5) 45%, transparent 80%);
    box-shadow: 0 0 8px rgba(125,207,216,0.4);
    pointer-events: none;
    animation: click-rise 1800ms ease-out forwards;
    will-change: transform, opacity;
}

@keyframes click-rise {
    0% { transform: translate(0,0) scale(0.4); opacity: 0; }
    15% { opacity: 1; }
    100% {
        transform: translate(var(--cx, 0px), -240px) scale(1.1);
        opacity: 0;
    }
}

/* ============ Active zone color shift ============ */
body.zone-active-1 { background: radial-gradient(ellipse at 50% 110%, #1a6377 0%, #0B2A3F 40%, #02111B 92%); }
body.zone-active-2 { background: radial-gradient(ellipse at 50% 110%, #176580 0%, #0B2A3F 38%, #02111B 92%); }
body.zone-active-3 { background: radial-gradient(ellipse at 50% 110%, #10485E 0%, #0B2A3F 38%, #02111B 92%); }
body.zone-active-4 { background: radial-gradient(ellipse at 50% 110%, #0B2A3F 0%, #02111B 50%, #000308 100%); }
body.zone-active-5 { background: radial-gradient(ellipse at 50% 110%, #082434 0%, #02111B 50%, #000308 100%); }
body.zone-active-6 { background: radial-gradient(ellipse at 50% 110%, #061a26 0%, #000c14 60%, #000 100%); }
body.zone-active-7 { background: radial-gradient(ellipse at 50% 50%, #0B2A3F 0%, #02111B 70%, #000 100%); }

body { transition: background 1.6s ease-out; }

/* ============ Final flourishes ============ */

a, button { cursor: none; }

::selection {
    background: var(--brass);
    color: var(--ink);
}

/* Smaller screens — keep narrative but reflow */
@media (max-width: 760px) {
    .content { padding: 0 5vw; }
    .zone, .zone.offset-right, .zone.offset-left { padding-left: 0; padding-right: 0; }
    .indent-1, .indent-2, .indent-3, .indent-4 { margin-left: 0; }
    .brass-spine { right: 10px; }
    .spine-link { width: 30px; height: 30px; font-size: 0.7rem; }
    .pull-quote { margin-right: 0; align-self: center; }
    .title-emph { transform: translateX(2vw); }
    .title-sub { transform: translateX(0); }
    .porthole { width: 200px; }
    .porthole-large { width: 220px; }
    .bottle-tag { right: -10px; bottom: -40px; }
    .rooms { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .zone-header.bleed-right { margin-right: 0; }
    .torn-paper { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble, .kelp, .whale, .deco-sunburst, .specimen-tag.floating, .bottle-svg, .bottle-bubbles circle, .jellyfish g {
        animation: none !important;
    }
    .jellyfish { display: none; }
    html, body, a, button { cursor: auto; }
    body { transition: none; }
}
