/* ===== CSS Custom Properties ===== */
:root {
    --deep-ground: #3B2712;
    --primary-bg: #F5E6C8;
    --secondary-bg: #D4B896;
    --primary-text: #2C1810;
    --secondary-text: #8B7355;
    --accent-warm: #C4853A;
    --accent-cool: #5A7F6B;
    --highlight: #D4713A;
    --fish-blue: #6B8FA3;
    --surface-shimmer: #FFF3DC;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 400;
    color: var(--primary-text);
    background: var(--primary-bg);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.01em;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

/* ===== Noise Overlay ===== */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: multiply;
    filter: url(#noise-filter);
    transition: opacity 0.12s ease;
}

#noise-overlay.flash {
    opacity: 0.15;
}

/* ===== Pixel Grid ===== */
#pixel-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(to right, rgba(44,24,16,0.03) 0px, rgba(44,24,16,0.03) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(to bottom, rgba(44,24,16,0.03) 0px, rgba(44,24,16,0.03) 1px, transparent 1px, transparent 4px);
}

/* ===== Sections ===== */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.surface-layer {
    height: 15vh;
    min-height: 60px;
    background: var(--surface-shimmer);
    filter: url(#ripple-filter);
    opacity: 0.5;
    flex-shrink: 0;
}

.substrate-layer {
    height: 15vh;
    min-height: 60px;
    background: var(--deep-ground);
    flex-shrink: 0;
    position: relative;
}

.substrate-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#noise-filter);
    opacity: 0.08;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 0.85;
    color: var(--primary-text);
    margin-bottom: 3rem;
}

/* ===== Hero ===== */
.hero-content {
    text-align: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 10vw, 9rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 0.85;
    color: var(--primary-text);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.5rem, 1.2vw, 0.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-text);
    line-height: 1.8;
}

/* ===== Dithered Section Transitions ===== */
.section + .section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary-bg), var(--secondary-bg));
    filter: url(#noise-filter);
    opacity: 0.3;
    z-index: 3;
}

/* ===== Evolution Pods ===== */
.pods-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.pod {
    background: var(--surface-shimmer);
    padding: 2.5rem 2rem;
    max-width: 300px;
    width: 100%;
    position: relative;
    transition: border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.pod-1 {
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    transform: translate(-5px, 8px);
}
.pod-2 {
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
    transform: translate(10px, -5px);
}
.pod-3 {
    border-radius: 45% 55% 60% 40% / 55% 45% 45% 55%;
    transform: translate(-8px, 3px);
}

.pod:hover {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 4px 20px rgba(59,39,18,0.15);
}

.pod-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.pod-text {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 300;
    color: var(--primary-text);
    line-height: 1.7;
}

/* Pod Icons (pixel art via box-shadow) */
.pod-icon {
    width: 4px;
    height: 4px;
    margin-bottom: 1.2rem;
    position: relative;
}

.icon-dna {
    background: var(--accent-cool);
    box-shadow:
        4px 0 0 var(--highlight), 8px 4px 0 var(--accent-cool), 4px 8px 0 var(--highlight),
        0px 12px 0 var(--accent-cool), 4px 16px 0 var(--highlight), 8px 20px 0 var(--accent-cool),
        4px 24px 0 var(--highlight), 0px 28px 0 var(--accent-cool);
}

.icon-brain {
    background: var(--highlight);
    box-shadow:
        4px 0 0 var(--highlight), 8px 0 0 var(--highlight),
        0px 4px 0 var(--highlight), 4px 4px 0 var(--accent-warm), 8px 4px 0 var(--highlight), 12px 4px 0 var(--highlight),
        0px 8px 0 var(--highlight), 4px 8px 0 var(--accent-warm), 8px 8px 0 var(--accent-warm), 12px 8px 0 var(--highlight),
        4px 12px 0 var(--highlight), 8px 12px 0 var(--highlight);
}

.icon-egg {
    background: var(--surface-shimmer);
    box-shadow:
        4px -4px 0 var(--secondary-bg),
        0px 0px 0 var(--surface-shimmer), 4px 0px 0 var(--surface-shimmer),
        -4px 4px 0 var(--secondary-bg), 0px 4px 0 var(--surface-shimmer), 4px 4px 0 var(--surface-shimmer), 8px 4px 0 var(--secondary-bg),
        0px 8px 0 var(--secondary-bg), 4px 8px 0 var(--secondary-bg);
}

/* Flow Lines */
.flow-line {
    width: 100px;
    height: 50px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 768px) {
    .flow-line { display: block; }
}

/* ===== Ecosystem Constellation ===== */
.constellation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 900px;
    width: 100%;
}

@media (max-width: 600px) {
    .constellation { grid-template-columns: 1fr; }
}

.node {
    background: var(--secondary-bg);
    padding: 2rem 1.8rem;
    transition: border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: node-pulse 4s ease-in-out infinite;
}

.node-1 {
    border-radius: 35% 65% 50% 50% / 55% 45% 55% 45%;
    transform: translate(8px, -4px);
    animation-delay: 0s;
}
.node-2 {
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
    transform: translate(-6px, 10px);
    animation-delay: 1s;
}
.node-3 {
    border-radius: 50% 50% 60% 40% / 50% 50% 40% 60%;
    transform: translate(4px, 6px);
    animation-delay: 2s;
}
.node-4 {
    border-radius: 45% 55% 55% 45% / 60% 40% 55% 45%;
    transform: translate(-10px, -3px);
    animation-delay: 3s;
}

.node:hover {
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(196,133,58,0.2);
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(196,133,58,0); }
    50% { box-shadow: 0 0 20px rgba(196,133,58,0.12); }
}

.node-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cool);
    margin-bottom: 0.8rem;
}

.node-text {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 300;
    color: var(--primary-text);
    line-height: 1.7;
    font-size: 0.95em;
}

/* ===== Memory Strata ===== */
.strata {
    width: 100%;
    max-width: 800px;
}

.stratum {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139,115,85,0.2);
}

.stratum-1 { background: var(--primary-bg); }
.stratum-2 { background: var(--secondary-bg); }
.stratum-3 { background: color-mix(in srgb, var(--secondary-bg) 70%, var(--deep-ground)); }
.stratum-4 { background: color-mix(in srgb, var(--secondary-bg) 40%, var(--deep-ground)); color: var(--surface-shimmer); }
.stratum-5 { background: var(--deep-ground); color: var(--surface-shimmer); }

.stratum-date {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--accent-warm);
    white-space: nowrap;
    min-width: 50px;
}

.stratum-event {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .stratum {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== Substrate (Footer) ===== */
.section-substrate {
    background: var(--deep-ground);
}

.section-substrate .surface-layer {
    background: var(--secondary-bg);
}

.substrate-content {
    color: var(--surface-shimmer);
}

.substrate-content .section-title {
    color: var(--secondary-bg);
}

.substrate-domain {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.substrate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.substrate-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--accent-warm);
    text-decoration: none;
    background-image: repeating-linear-gradient(to right, var(--accent-warm) 0px, var(--accent-warm) 4px, transparent 4px, transparent 8px);
    background-size: 8px 2px;
    background-position: 0 100%;
    background-repeat: repeat-x;
    padding-bottom: 4px;
    transition: background-position 0.3s linear;
}

.substrate-link:hover {
    background-position: 8px 100%;
    color: var(--highlight);
}

.fish-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

/* ===== Pixel Fish (box-shadow sprites) ===== */
.pixel-fish {
    position: absolute;
    width: 4px;
    height: 4px;
    z-index: 5;
    pointer-events: none;
    image-rendering: pixelated;
}

.fish-nav, .fish-row .pixel-fish {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

/* Angelfish — triangular, #D4713A body with #C4853A stripes, 12x10 */
.angelfish {
    background: transparent;
    box-shadow:
        /* Row 0 */                     20px 0 0 var(--highlight), 24px 0 0 var(--highlight),
        /* Row 1 */          16px 4px 0 var(--highlight), 20px 4px 0 var(--accent-warm), 24px 4px 0 var(--highlight), 28px 4px 0 var(--highlight),
        /* Row 2 */ 12px 8px 0 var(--highlight), 16px 8px 0 var(--accent-warm), 20px 8px 0 var(--highlight), 24px 8px 0 var(--accent-warm), 28px 8px 0 var(--highlight), 32px 8px 0 var(--highlight),
        /* Row 3 */ 8px 12px 0 var(--highlight), 12px 12px 0 var(--highlight), 16px 12px 0 var(--accent-warm), 20px 12px 0 var(--highlight), 24px 12px 0 var(--accent-warm), 28px 12px 0 var(--highlight), 32px 12px 0 var(--highlight), 36px 12px 0 var(--primary-text),
        /* Row 4 */ 4px 16px 0 var(--highlight), 8px 16px 0 var(--accent-warm), 12px 16px 0 var(--highlight), 16px 16px 0 var(--highlight), 20px 16px 0 var(--accent-warm), 24px 16px 0 var(--highlight), 28px 16px 0 var(--accent-warm), 32px 16px 0 var(--highlight), 36px 16px 0 var(--highlight), 40px 16px 0 var(--highlight),
        /* Row 5 */ 4px 20px 0 var(--highlight), 8px 20px 0 var(--highlight), 12px 20px 0 var(--accent-warm), 16px 20px 0 var(--highlight), 20px 20px 0 var(--highlight), 24px 20px 0 var(--accent-warm), 28px 20px 0 var(--highlight), 32px 20px 0 var(--highlight), 36px 20px 0 var(--highlight), 40px 20px 0 var(--highlight),
        /* Row 6 */ 8px 24px 0 var(--highlight), 12px 24px 0 var(--highlight), 16px 24px 0 var(--accent-warm), 20px 24px 0 var(--highlight), 24px 24px 0 var(--accent-warm), 28px 24px 0 var(--highlight), 32px 24px 0 var(--highlight), 36px 24px 0 var(--highlight),
        /* Row 7 */          12px 28px 0 var(--highlight), 16px 28px 0 var(--highlight), 20px 28px 0 var(--accent-warm), 24px 28px 0 var(--highlight), 28px 28px 0 var(--highlight),
        /* Row 8 */                     16px 32px 0 var(--highlight), 20px 32px 0 var(--highlight), 24px 32px 0 var(--highlight),
        /* Row 9 */                              20px 36px 0 var(--highlight), 24px 36px 0 var(--highlight);
}

/* Tetra — small, #6B8FA3 body with #FFF3DC belly, 8x5 */
.tetra {
    background: transparent;
    box-shadow:
        8px 0 0 var(--fish-blue), 12px 0 0 var(--fish-blue), 16px 0 0 var(--fish-blue),
        4px 4px 0 var(--fish-blue), 8px 4px 0 var(--fish-blue), 12px 4px 0 var(--fish-blue), 16px 4px 0 var(--fish-blue), 20px 4px 0 var(--fish-blue), 24px 4px 0 var(--primary-text),
        0px 8px 0 var(--fish-blue), 4px 8px 0 var(--fish-blue), 8px 8px 0 var(--surface-shimmer), 12px 8px 0 var(--fish-blue), 16px 8px 0 var(--fish-blue), 20px 8px 0 var(--fish-blue), 24px 8px 0 var(--fish-blue), 28px 8px 0 var(--fish-blue),
        4px 12px 0 var(--fish-blue), 8px 12px 0 var(--surface-shimmer), 12px 12px 0 var(--surface-shimmer), 16px 12px 0 var(--fish-blue), 20px 12px 0 var(--fish-blue),
        8px 16px 0 var(--surface-shimmer), 12px 16px 0 var(--fish-blue), 16px 16px 0 var(--fish-blue);
}

/* Guppy — flowing tail, #5A7F6B body to #C4853A tail, 10x7 */
.guppy {
    background: transparent;
    box-shadow:
        12px 0 0 var(--accent-cool), 16px 0 0 var(--accent-cool),
        8px 4px 0 var(--accent-cool), 12px 4px 0 var(--accent-cool), 16px 4px 0 var(--accent-cool), 20px 4px 0 var(--accent-cool), 24px 4px 0 var(--primary-text),
        4px 8px 0 var(--accent-warm), 8px 8px 0 var(--accent-cool), 12px 8px 0 var(--accent-cool), 16px 8px 0 var(--accent-cool), 20px 8px 0 var(--accent-cool), 24px 8px 0 var(--accent-cool), 28px 8px 0 var(--accent-cool),
        0px 12px 0 var(--accent-warm), 4px 12px 0 var(--accent-warm), 8px 12px 0 var(--accent-cool), 12px 12px 0 var(--accent-cool), 16px 12px 0 var(--accent-cool), 20px 12px 0 var(--accent-cool), 24px 12px 0 var(--accent-cool),
        0px 16px 0 var(--accent-warm), 4px 16px 0 var(--accent-warm), 8px 16px 0 var(--accent-cool), 12px 16px 0 var(--accent-cool), 16px 16px 0 var(--accent-cool), 20px 16px 0 var(--accent-cool),
        4px 20px 0 var(--accent-warm), 8px 20px 0 var(--accent-cool), 12px 20px 0 var(--accent-cool), 16px 20px 0 var(--accent-cool),
        12px 24px 0 var(--accent-cool), 16px 24px 0 var(--accent-cool);
}

/* Discus — circular, #8B7355 body with #D4713A eye, 10x10 */
.discus {
    background: transparent;
    box-shadow:
        12px 0 0 var(--secondary-text), 16px 0 0 var(--secondary-text), 20px 0 0 var(--secondary-text),
        8px 4px 0 var(--secondary-text), 12px 4px 0 var(--secondary-text), 16px 4px 0 var(--secondary-text), 20px 4px 0 var(--secondary-text), 24px 4px 0 var(--secondary-text),
        4px 8px 0 var(--secondary-text), 8px 8px 0 var(--secondary-text), 12px 8px 0 var(--secondary-text), 16px 8px 0 var(--secondary-text), 20px 8px 0 var(--secondary-text), 24px 8px 0 var(--secondary-text), 28px 8px 0 var(--secondary-text),
        4px 12px 0 var(--secondary-text), 8px 12px 0 var(--secondary-text), 12px 12px 0 var(--secondary-text), 16px 12px 0 var(--highlight), 20px 12px 0 var(--secondary-text), 24px 12px 0 var(--secondary-text), 28px 12px 0 var(--primary-text),
        4px 16px 0 var(--secondary-text), 8px 16px 0 var(--secondary-text), 12px 16px 0 var(--secondary-text), 16px 16px 0 var(--secondary-text), 20px 16px 0 var(--secondary-text), 24px 16px 0 var(--secondary-text), 28px 16px 0 var(--secondary-text),
        4px 20px 0 var(--secondary-text), 8px 20px 0 var(--secondary-text), 12px 20px 0 var(--secondary-text), 16px 20px 0 var(--secondary-text), 20px 20px 0 var(--secondary-text), 24px 20px 0 var(--secondary-text), 28px 20px 0 var(--secondary-text),
        8px 24px 0 var(--secondary-text), 12px 24px 0 var(--secondary-text), 16px 24px 0 var(--secondary-text), 20px 24px 0 var(--secondary-text), 24px 24px 0 var(--secondary-text),
        12px 28px 0 var(--secondary-text), 16px 28px 0 var(--secondary-text), 20px 28px 0 var(--secondary-text);
}

/* Betta — elaborate fins, #3B2712 body with #6B8FA3 fins, 14x12 */
.betta {
    background: transparent;
    box-shadow:
        20px 0 0 var(--fish-blue), 24px 0 0 var(--fish-blue),
        16px 4px 0 var(--fish-blue), 20px 4px 0 var(--deep-ground), 24px 4px 0 var(--deep-ground), 28px 4px 0 var(--fish-blue),
        8px 8px 0 var(--fish-blue), 12px 8px 0 var(--fish-blue), 16px 8px 0 var(--deep-ground), 20px 8px 0 var(--deep-ground), 24px 8px 0 var(--deep-ground), 28px 8px 0 var(--deep-ground), 32px 8px 0 var(--fish-blue),
        4px 12px 0 var(--fish-blue), 8px 12px 0 var(--fish-blue), 12px 12px 0 var(--deep-ground), 16px 12px 0 var(--deep-ground), 20px 12px 0 var(--deep-ground), 24px 12px 0 var(--deep-ground), 28px 12px 0 var(--deep-ground), 32px 12px 0 var(--deep-ground), 36px 12px 0 var(--primary-text),
        4px 16px 0 var(--fish-blue), 8px 16px 0 var(--deep-ground), 12px 16px 0 var(--deep-ground), 16px 16px 0 var(--deep-ground), 20px 16px 0 var(--deep-ground), 24px 16px 0 var(--deep-ground), 28px 16px 0 var(--deep-ground), 32px 16px 0 var(--deep-ground), 36px 16px 0 var(--deep-ground), 40px 16px 0 var(--deep-ground),
        0px 20px 0 var(--fish-blue), 4px 20px 0 var(--fish-blue), 8px 20px 0 var(--deep-ground), 12px 20px 0 var(--deep-ground), 16px 20px 0 var(--deep-ground), 20px 20px 0 var(--deep-ground), 24px 20px 0 var(--deep-ground), 28px 20px 0 var(--deep-ground), 32px 20px 0 var(--deep-ground), 36px 20px 0 var(--deep-ground),
        0px 24px 0 var(--fish-blue), 4px 24px 0 var(--fish-blue), 8px 24px 0 var(--fish-blue), 12px 24px 0 var(--deep-ground), 16px 24px 0 var(--deep-ground), 20px 24px 0 var(--deep-ground), 24px 24px 0 var(--deep-ground), 28px 24px 0 var(--deep-ground), 32px 24px 0 var(--fish-blue),
        4px 28px 0 var(--fish-blue), 8px 28px 0 var(--fish-blue), 12px 28px 0 var(--fish-blue), 16px 28px 0 var(--deep-ground), 20px 28px 0 var(--deep-ground), 24px 28px 0 var(--deep-ground), 28px 28px 0 var(--fish-blue),
        8px 32px 0 var(--fish-blue), 12px 32px 0 var(--fish-blue), 16px 32px 0 var(--fish-blue), 20px 32px 0 var(--deep-ground), 24px 32px 0 var(--fish-blue),
        12px 36px 0 var(--fish-blue), 16px 36px 0 var(--fish-blue), 20px 36px 0 var(--fish-blue),
        16px 40px 0 var(--fish-blue), 20px 40px 0 var(--fish-blue),
        20px 44px 0 var(--fish-blue);
}

/* Fossil fish — desaturated */
.fossil {
    opacity: 0.25;
    filter: sepia(1) saturate(0.3);
}

/* ===== Fish Positioning & Animation ===== */
.fish-1 { top: 35%; left: 10%; animation: swim-h 12s ease-in-out infinite, bob-v 4s ease-in-out infinite; }
.fish-2 { top: 50%; right: 15%; animation: swim-h 9s ease-in-out infinite reverse, bob-v 3.5s ease-in-out infinite 1s; transform: scaleX(-1); }
.fish-3 { top: 60%; left: 45%; animation: swim-h 15s ease-in-out infinite 2s, bob-v 5s ease-in-out infinite; }
.fish-4 { top: 40%; right: 20%; animation: swim-h 11s ease-in-out infinite 3s, bob-v 4.5s ease-in-out infinite 0.5s; }
.fish-5 { top: 45%; left: 25%; animation: swim-h 10s ease-in-out infinite 1s, bob-v 3s ease-in-out infinite; }
.fish-6 { top: 55%; right: 10%; animation: swim-h 14s ease-in-out infinite reverse, bob-v 4s ease-in-out infinite 2s; transform: scaleX(-1); }
.fish-fossil-1 { bottom: 25%; left: 20%; }
.fish-fossil-2 { bottom: 15%; right: 25%; }

@keyframes swim-h {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

@keyframes bob-v {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -12px; }
}

.pixel-fish.startled {
    animation-duration: 0.5s !important;
}

/* ===== Bubbles ===== */
.bubble {
    position: absolute;
    bottom: 15vh;
    width: 5px;
    height: 5px;
    border: 1px solid var(--secondary-bg);
    border-radius: 50%;
    background: transparent;
    animation: bubble-rise 10s ease-in infinite;
    z-index: 4;
    pointer-events: none;
}

@keyframes bubble-rise {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-70vh); opacity: 0; }
}

/* ===== Seaweed ===== */
.seaweed {
    position: fixed;
    width: 3px;
    height: 80px;
    background: linear-gradient(var(--accent-cool), var(--deep-ground));
    z-index: 4;
    pointer-events: none;
    border-radius: 2px;
    animation: sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

.seaweed-left-1 { left: 12px; bottom: 60px; height: 100px; animation-delay: 0s; }
.seaweed-left-2 { left: 24px; bottom: 60px; height: 70px; animation-delay: 1s; }
.seaweed-right-1 { right: 12px; bottom: 60px; height: 90px; animation-delay: 0.5s; }
.seaweed-right-2 { right: 28px; bottom: 60px; height: 60px; animation-delay: 2s; }

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ===== Fish Navigation ===== */
#fish-nav {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-fish {
    width: 4px;
    height: 4px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-fish:hover {
    transform: translateX(-15px) scale(1.3);
}

/* ===== Click Ripple ===== */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 1px solid var(--accent-warm);
    pointer-events: none;
    z-index: 9998;
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 100px; height: 100px; opacity: 0; }
}
