/* ============================================================
   layer2.report — Goblincore Opulence Underwater Grotto
   ============================================================ */

:root {
    /* Palette: Retro-Futuristic Grotto */
    --c-abyssal: #0B1A1A;
    --c-midnight-kelp: #132E2E;
    --c-deeper: #0D2222;
    --c-thermocline: #1A6B5A;
    --c-fog: #2A3D3D;
    --c-brass: #B8860B;
    --c-treasure: #F5D78E;
    --c-bioluminescent: #7DFFC2;
    --c-coral: #E87C6C;
    --c-stone: #D4CFC4;
    --c-parchment: #E8D5B7;
    --c-seafoam: #C8E6C9;

    --gap-row: 18px;
    --bezier-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --bezier-aquatic: cubic-bezier(0.45, 0.05, 0.55, 0.95);

    --depth-progress: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(184, 134, 11, 0.08), transparent 60%),
        linear-gradient(
            180deg,
            #1A3030 0%,
            #132E2E 25%,
            #0D2222 55%,
            #0B1A1A 85%,
            #06110F 100%
        );
    min-height: 100vh;
    color: var(--c-stone);
    font-family: "Fraunces", "IBM Plex Serif", Georgia, serif;
    font-variation-settings: "opsz" 14, "wght" 350, "WONK" 0, "SOFT" 50;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* ============================================================
   BOKEH BACKGROUND — 3 layers
   ============================================================ */
.bokeh-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

#bokeh-far { z-index: 0; }
#bokeh-mid { z-index: 1; }
#bokeh-near { z-index: 2; }

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

@keyframes bokeh-drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(40px, -30px); }
    50%  { transform: translate(-25px, -55px); }
    75%  { transform: translate(-50px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes bokeh-drift-2 {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-35px, 40px); }
    66%  { transform: translate(45px, -20px); }
    100% { transform: translate(0, 0); }
}

/* ============================================================
   CURSOR LENS
   ============================================================ */
.cursor-lens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(
        circle 200px at var(--cx, 50%) var(--cy, 50%),
        rgba(245, 215, 142, 0.10) 0%,
        rgba(125, 255, 194, 0.06) 30%,
        transparent 70%
    );
    mix-blend-mode: screen;
    transition: opacity 600ms var(--bezier-aquatic);
}

/* ============================================================
   DEPTH GAUGE (right edge)
   ============================================================ */
.depth-gauge {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    z-index: 50;
    width: 50px;
    height: 60vh;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-track {
    position: relative;
    width: 6px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(184, 134, 11, 0.4) 0%,
        rgba(184, 134, 11, 0.25) 100%
    );
    border: 1px solid rgba(184, 134, 11, 0.6);
    border-radius: 4px;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(245, 215, 142, 0.08);
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--depth-progress) * 100%);
    background: linear-gradient(
        180deg,
        var(--c-treasure) 0%,
        var(--c-bioluminescent) 50%,
        var(--c-thermocline) 100%
    );
    box-shadow: 0 0 12px var(--c-bioluminescent);
    transition: height 200ms var(--bezier-aquatic);
}

.gauge-mark {
    position: absolute;
    left: 18px;
    transform: translateY(-50%);
    color: var(--c-stone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.gauge-mark::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--c-brass);
}

.gauge-mark span {
    color: var(--c-treasure);
    font-weight: 500;
}

.gauge-mark em {
    color: var(--c-thermocline);
    font-style: normal;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.gauge-readout {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--c-bioluminescent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    background: rgba(11, 26, 26, 0.7);
    padding: 4px 10px;
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: 3px;
    text-shadow: 0 0 6px var(--c-bioluminescent);
}

/* ============================================================
   COMPASS (bottom-right)
   ============================================================ */
.compass {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 84px;
    height: 84px;
    border: none;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(245, 215, 142, 0.12) 0%,
        transparent 60%
    ), var(--c-abyssal);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow:
        0 0 0 1px rgba(184, 134, 11, 0.3),
        0 0 24px rgba(245, 215, 142, 0.15),
        inset 0 0 16px rgba(0, 0, 0, 0.6);
    padding: 0;
    transition: transform 600ms var(--bezier-spring);
}

.compass:hover {
    transform: scale(1.08) rotate(8deg);
}

.compass-ring,
.compass-needle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.compass-needle {
    transition: transform 1200ms var(--bezier-spring);
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(232, 124, 108, 0.6));
}

@keyframes brass-shimmer {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.2); }
}

.compass-ring {
    animation: brass-shimmer 6s ease-in-out infinite;
}

/* ============================================================
   KELP BED
   ============================================================ */
.kelp-bed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.55;
}

.kelp {
    transform-origin: bottom center;
    animation: kelp-sway 7s var(--bezier-aquatic) infinite;
    transform-box: fill-box;
}

.kelp:nth-child(2n) { animation-duration: 9s; animation-delay: -1s; }
.kelp:nth-child(3n) { animation-duration: 11s; animation-delay: -2s; }
.kelp:nth-child(5n) { animation-duration: 8.5s; animation-delay: -3s; }

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

/* ============================================================
   GROTTO MAIN
   ============================================================ */
.grotto {
    position: relative;
    z-index: 5;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 max(48px, 5vw);
}

.zone {
    position: relative;
    min-height: 100vh;
    padding: 12vh 0 8vh;
}

.zone-surface {
    --gap-row: 28px;
}

.zone-thermocline {
    --gap-row: 16px;
    background: radial-gradient(
        ellipse at center top,
        rgba(26, 107, 90, 0.15),
        transparent 70%
    );
}

.zone-abyss {
    --gap-row: 8px;
    background: radial-gradient(
        ellipse at center,
        rgba(11, 26, 26, 0.4),
        transparent 80%
    );
}

/* ============================================================
   SURFACE HEADER
   ============================================================ */
.surface-header {
    position: relative;
    padding: 6vh 0 8vh;
    max-width: 1100px;
}

.eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--c-bioluminescent);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 0 12px rgba(125, 255, 194, 0.4);
}

.hero-title {
    font-family: "Fraunces", serif;
    font-variation-settings: "opsz" 144, "wght" 900, "WONK" 1, "SOFT" 0;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.92;
    color: var(--c-treasure);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    text-shadow:
        0 0 40px rgba(245, 215, 142, 0.2),
        0 2px 0 rgba(0, 0, 0, 0.5);
}

.hero-line {
    display: block;
}

.hero-line:nth-child(1) { padding-left: 0; }
.hero-line:nth-child(2) {
    padding-left: 8vw;
    color: var(--c-coral);
}
.hero-line:nth-child(2) em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "wght" 700, "WONK" 1, "SOFT" 100;
}
.hero-line:nth-child(3) { padding-left: 4vw; }
.hero-line:nth-child(4) {
    padding-left: 12vw;
    color: var(--c-parchment);
    font-variation-settings: "opsz" 144, "wght" 600, "WONK" 0, "SOFT" 100;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--c-stone);
    max-width: 560px;
    margin-bottom: 2rem;
    font-variation-settings: "opsz" 14, "wght" 350, "WONK" 0, "SOFT" 50;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
}

/* ============================================================
   ZONE HEADERS (thermocline, abyss)
   ============================================================ */
.zone-header {
    margin-bottom: 6vh;
    max-width: 800px;
    padding-left: 4vw;
}

.zone-mark {
    color: var(--c-brass);
    letter-spacing: 0.5em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.zone-title {
    font-family: "Fraunces", serif;
    font-variation-settings: "opsz" 48, "wght" 700, "WONK" 1, "SOFT" 50;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    color: var(--c-parchment);
    margin-bottom: 1.5rem;
}

.zone-title em {
    font-style: italic;
    color: var(--c-bioluminescent);
    font-variation-settings: "opsz" 48, "wght" 700, "WONK" 1, "SOFT" 100;
    text-shadow: 0 0 24px rgba(125, 255, 194, 0.3);
}

.zone-prose {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-stone);
    max-width: 600px;
}

.zone-abyss .zone-title em {
    color: var(--c-treasure);
    text-shadow: 0 0 32px rgba(245, 215, 142, 0.4);
}

/* ============================================================
   CARD CLUSTER (Grotto Wall grid)
   ============================================================ */
.card-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap-row) 14px;
    position: relative;
}

.cluster-surface {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 28px 24px;
}

.cluster-thermocline {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px 14px;
}

.cluster-abyss {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 8px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    position: relative;
    padding: 22px 24px;
    color: var(--c-stone);
    overflow: hidden;
    transition:
        transform 800ms var(--bezier-spring),
        box-shadow 600ms var(--bezier-aquatic),
        border-color 600ms var(--bezier-aquatic);
    cursor: pointer;
    isolation: isolate;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

/* Card sizing — span declarations */
.card.square   { grid-column: span 2; grid-row: span 1; min-height: 180px; }
.card.wide     { grid-column: span 4; grid-row: span 1; min-height: 220px; }
.card.large    { grid-column: span 5; grid-row: span 2; min-height: 320px; }
.card.tall     { grid-column: span 2; grid-row: span 2; min-height: 380px; }
.card.portrait { grid-column: span 2; grid-row: span 2; min-height: 360px; }
.card.small    { grid-column: span 3; grid-row: span 1; min-height: 140px; }
.card.tiny     { grid-column: span 2; grid-row: span 1; min-height: 100px; padding: 14px 16px; }

.cluster-thermocline .card.square   { grid-column: span 3; }
.cluster-thermocline .card.wide     { grid-column: span 5; }
.cluster-thermocline .card.large    { grid-column: span 6; }
.cluster-thermocline .card.tall     { grid-column: span 3; }
.cluster-thermocline .card.portrait { grid-column: span 3; }
.cluster-thermocline .card.small    { grid-column: span 4; }
.cluster-thermocline .card.tiny     { grid-column: span 2; }

.cluster-abyss .card.square   { grid-column: span 3; }
.cluster-abyss .card.wide     { grid-column: span 6; }
.cluster-abyss .card.small    { grid-column: span 4; min-height: 130px; }
.cluster-abyss .card.tiny     { grid-column: span 2; min-height: 80px; padding: 10px 12px; }

/* Overlap variants */
.overlap-1 { transform: translateY(8px); z-index: 2; }
.overlap-2 { transform: translateX(-12px) translateY(-6px); z-index: 3; }
.overlap-3 { transform: translateY(12px) translateX(8px); z-index: 1; }

/* Type A — Data Polyp */
.card.type-a {
    background: linear-gradient(135deg, rgba(19, 46, 46, 0.85), rgba(11, 26, 26, 0.92));
    border-radius: 24px;
    border: 1.5px solid rgba(125, 255, 194, 0.18);
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 0 30px rgba(125, 255, 194, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.4);
    /* Organic edge via clip-path */
    clip-path: path("M 24 0 Q 0 0 0 24 L 0 calc(100% - 28px) Q 0 100% 24 100% L calc(100% - 32px) 100% Q 100% 100% 100% calc(100% - 24px) L 100% 28px Q 100% 0 calc(100% - 30px) 0 Z");
}

.card-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(
        ellipse at center,
        rgba(125, 255, 194, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    transition: opacity 600ms var(--bezier-aquatic);
}

.card-glow.strong {
    background: radial-gradient(
        ellipse at center,
        rgba(245, 215, 142, 0.08) 0%,
        rgba(125, 255, 194, 0.04) 40%,
        transparent 70%
    );
}

/* Type B — Brass Plate */
.card.type-b {
    background:
        linear-gradient(135deg, #132E2E 0%, #0D2222 100%);
    border: 2px solid var(--c-brass);
    border-radius: 0;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 215, 142, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative;
}

.card.type-b::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(184, 134, 11, 0.4);
    pointer-events: none;
    background:
        linear-gradient(135deg,
            rgba(184, 134, 11, 0.06) 0%,
            transparent 30%,
            transparent 70%,
            rgba(184, 134, 11, 0.06) 100%);
    background-size: 200% 200%;
    animation: brass-shimmer-bg 12s ease-in-out infinite;
}

@keyframes brass-shimmer-bg {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 100%; }
}

/* Type C — Aquarium Window */
.card.type-c {
    background: rgba(13, 34, 34, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(245, 215, 142, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(245, 215, 142, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover */
.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(184, 134, 11, 0.5),
        0 0 30px rgba(245, 215, 142, 0.18);
}

.card:hover .card-glow {
    opacity: 2.5;
}

.card.proximity-glow {
    box-shadow:
        0 0 30px rgba(125, 255, 194, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(125, 255, 194, 0.06);
}

.card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 80vw;
    max-width: 800px;
    min-height: 60vh;
    max-height: 80vh;
    z-index: 200;
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(135deg, #132E2E 0%, #0B1A1A 100%);
    border: 2px solid var(--c-brass);
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(245, 215, 142, 0.3),
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 60px rgba(125, 255, 194, 0.05);
    clip-path: none;
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 15, 0.7);
    backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    transition: opacity 600ms var(--bezier-aquatic);
    pointer-events: none;
}

.scrim.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   CARD CONTENT
   ============================================================ */
.card-title {
    font-family: "Fraunces", serif;
    font-variation-settings: "opsz" 24, "wght" 500, "WONK" 0, "SOFT" 100;
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    color: var(--c-seafoam);
    line-height: 1.2;
}

.card.type-b .card-title {
    color: var(--c-treasure);
    font-variation-settings: "opsz" 24, "wght" 600, "WONK" 1, "SOFT" 50;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.card-body {
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    line-height: 1.55;
    color: var(--c-stone);
    font-variation-settings: "opsz" 12, "wght" 320, "WONK" 0, "SOFT" 50;
}

.card.tiny .card-body { display: none; }
.card.tiny .card-title { font-size: 0.78rem; }

.mono {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    color: var(--c-bioluminescent);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.mono.small {
    font-size: 0.72rem;
    color: rgba(125, 255, 194, 0.6);
}

.card-mono-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(184, 134, 11, 0.25);
}

.brass-stat {
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--c-treasure);
    font-weight: 500;
    margin: 0.3rem 0;
    text-shadow: 0 0 16px rgba(245, 215, 142, 0.3);
}

.brass-stat.treasure {
    background: linear-gradient(
        135deg,
        var(--c-brass) 0%,
        var(--c-treasure) 50%,
        var(--c-brass) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: treasure-shimmer 4s ease-in-out infinite;
}

@keyframes treasure-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Tags */
.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.card-tags li {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(26, 107, 90, 0.3);
    border: 1px solid rgba(125, 255, 194, 0.2);
    border-radius: 12px;
    color: var(--c-seafoam);
    letter-spacing: 0.05em;
}

.card-tags.small-tags li {
    font-size: 0.65rem;
    padding: 3px 8px;
}

/* Bar chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100px;
    padding: 8px 0;
    margin-top: auto;
}

.bar-chart span {
    flex: 1;
    height: var(--h);
    background: linear-gradient(
        180deg,
        var(--c-treasure) 0%,
        var(--c-brass) 100%
    );
    border-radius: 2px 2px 0 0;
    transition: height 1.2s var(--bezier-spring);
    box-shadow: 0 0 6px rgba(245, 215, 142, 0.3);
}

/* KV list */
.kvlist {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    margin-top: auto;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
}

.kvlist dt {
    color: var(--c-brass);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
}

.kvlist dd {
    color: var(--c-seafoam);
}

/* Mini-table */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: auto;
}

.mini-table td {
    padding: 5px 0;
    color: var(--c-stone);
    border-bottom: 1px dotted rgba(184, 134, 11, 0.2);
}

.mini-table td:nth-child(1) { color: var(--c-seafoam); }
.mini-table td:nth-child(2) { color: var(--c-bioluminescent); text-align: right; padding-right: 12px; }
.mini-table td:nth-child(3) { color: var(--c-coral); text-align: right; width: 20px; }

/* Pulse list */
.pulse-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.pulse-row {
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    gap: 8px;
    align-items: center;
    font-size: 0.72rem;
}

.pulse-bar {
    height: 6px;
    background: rgba(26, 107, 90, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.pulse-bar i {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--c-thermocline), var(--c-bioluminescent));
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(125, 255, 194, 0.4);
    animation: pulse-flow 2.5s ease-in-out infinite;
}

@keyframes pulse-flow {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* Ghost list */
.ghost-list {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ghost-list li {
    color: var(--c-fog);
    font-size: 0.78rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(42, 61, 61, 0.5);
    text-decoration: line-through;
    text-decoration-color: rgba(184, 134, 11, 0.3);
}

.ghost-list.dense li {
    font-size: 0.7rem;
    padding: 3px 0;
}

/* Pip (notification) */
.pip {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--c-coral);
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(232, 124, 108, 0.2),
        0 0 12px rgba(232, 124, 108, 0.6);
    animation: pip-pulse 2s ease-in-out infinite;
    margin: 4px 0;
}

@keyframes pip-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(232, 124, 108, 0.2), 0 0 12px rgba(232, 124, 108, 0.6); }
    50%      { box-shadow: 0 0 0 8px rgba(232, 124, 108, 0.05), 0 0 18px rgba(232, 124, 108, 0.8); }
}

/* ============================================================
   BARNACLES (decorative organism clusters)
   ============================================================ */
.barnacles {
    position: absolute;
    pointer-events: none;
    display: flex;
    gap: 2px;
}

.barnacles span {
    display: block;
    background: var(--c-stone);
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: inset -1px -1px 1px rgba(0, 0, 0, 0.3);
}

.barnacles span:nth-child(1) { width: 8px; height: 8px; }
.barnacles span:nth-child(2) { width: 5px; height: 5px; opacity: 0.4; }
.barnacles span:nth-child(3) { width: 10px; height: 10px; opacity: 0.55; }
.barnacles span:nth-child(4) { width: 6px; height: 6px; opacity: 0.45; }
.barnacles span:nth-child(5) { width: 7px; height: 7px; opacity: 0.5; }

.barnacles.bl {
    bottom: 8px;
    left: 12px;
    flex-wrap: wrap;
    width: 32px;
}

.barnacles.tr {
    top: 10px;
    right: 14px;
    flex-wrap: wrap;
    width: 30px;
    justify-content: flex-end;
}

/* ============================================================
   BUBBLE STREAM
   ============================================================ */
.bubble-stream {
    position: absolute;
    bottom: 0;
    right: 18px;
    width: 14px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bubble-stream span {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: rgba(125, 255, 194, 0.25);
    border-radius: 50%;
    border: 1px solid rgba(125, 255, 194, 0.4);
    animation: bubble-rise 5s ease-in infinite;
}

.bubble-stream span:nth-child(1) { animation-delay: 0s; left: 30%; }
.bubble-stream span:nth-child(2) { animation-delay: -1s; left: 60%; width: 5px; height: 5px; }
.bubble-stream span:nth-child(3) { animation-delay: -2s; left: 45%; width: 8px; height: 8px; }
.bubble-stream span:nth-child(4) { animation-delay: -3s; left: 55%; width: 4px; height: 4px; }
.bubble-stream span:nth-child(5) { animation-delay: -4s; left: 40%; }

@keyframes bubble-rise {
    0%   { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate(-50%, -300px) scale(1.1); opacity: 0; }
}

/* ============================================================
   FISH (decorative SVG creatures)
   ============================================================ */
.fish {
    position: absolute;
    pointer-events: none;
    z-index: 4;
    will-change: transform;
    transition: transform 1.5s var(--bezier-spring);
}

@keyframes fish-bob {
    0%, 100% { transform: translate(var(--fx, 0px), var(--fy, 0px)); }
    50%      { transform: translate(var(--fx, 0px), calc(var(--fy, 0px) - 6px)); }
}

@keyframes fish-drift {
    0%, 100% { transform: translateX(var(--fx, 0px)); }
    50%      { transform: translateX(calc(var(--fx, 0px) + 14px)); }
}

.lionfish {
    width: 220px;
    top: 18%;
    right: 8%;
    animation: fish-bob 7s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(232, 124, 108, 0.25));
}

.angelfish {
    width: 70px;
    top: 30%;
    left: 12%;
    animation: fish-bob 5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(245, 215, 142, 0.3));
}

.angelfish.small {
    width: 48px;
    top: 65%;
    left: 38%;
    animation-duration: 6s;
    animation-delay: -2s;
}

.pufferfish {
    width: 100px;
    top: 12%;
    right: 14%;
    animation: fish-bob 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(125, 255, 194, 0.3));
}

.pufferfish.small {
    width: 70px;
    top: 56%;
    left: 6%;
    animation-duration: 8s;
    animation-delay: -3s;
}

.lanternfish {
    width: 110px;
    top: 18%;
    left: 8%;
    animation: fish-bob 9s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(125, 255, 194, 0.5));
}

.lanternfish.small {
    width: 80px;
    top: 48%;
    right: 12%;
    animation-duration: 7s;
    animation-delay: -2s;
}

.lanternfish.tiny {
    width: 56px;
    top: 76%;
    left: 32%;
    animation-duration: 10s;
    animation-delay: -4s;
}

/* ============================================================
   SEABED FOOTER
   ============================================================ */
.seabed {
    margin-top: 12vh;
    padding: 6vh 0 4vh;
    text-align: center;
    border-top: 1px dashed rgba(184, 134, 11, 0.3);
}

.seabed-line {
    color: var(--c-brass);
    letter-spacing: 0.4em;
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
}

.seabed-credit {
    color: var(--c-fog);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .grotto { padding: 0 24px; }

    .cluster-surface,
    .cluster-thermocline,
    .cluster-abyss {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card.large    { grid-column: span 4; min-height: 240px; }
    .card.wide     { grid-column: span 4; }
    .card.square   { grid-column: span 2; }
    .card.tall     { grid-column: span 2; }
    .card.portrait { grid-column: span 2; }
    .card.small    { grid-column: span 2; }
    .card.tiny     { grid-column: span 2; }

    .cluster-thermocline .card.wide  { grid-column: span 4; }
    .cluster-thermocline .card.large { grid-column: span 4; }
    .cluster-abyss .card.wide        { grid-column: span 4; }
    .cluster-abyss .card.small       { grid-column: span 2; }

    .depth-gauge { right: 10px; transform: translateY(-50%) scale(0.85); }
    .compass     { right: 16px; bottom: 16px; width: 64px; height: 64px; }
    .lionfish, .pufferfish, .lanternfish { transform: scale(0.7); }

    .hero-line:nth-child(2) { padding-left: 4vw; }
    .hero-line:nth-child(3) { padding-left: 0; }
    .hero-line:nth-child(4) { padding-left: 6vw; }
}

@media (max-width: 560px) {
    .gauge-mark em { display: none; }
}
