/* =========================================================================
   gamelicense.info - Sub-Pelagic Bureau of Game Licensure
   Submerged Seapunk Regulatory Archive
   ========================================================================= */

:root {
    /* Palette */
    --cyan-tide: #4DD8E6;
    --vaporwave-lavender: #C7A6E6;
    --sherbet-pink: #F7B7C5;
    --pressure-indigo: #1A2E3D;
    --abyssal-black: #07111A;
    --bleached-coral: #DCEEF5;
    --kelp-olive: #4F6E55;
    --goldfoil-stamp: #C9A23C;

    /* Fonts */
    --font-display: 'Cormorant Garamond', 'Lora', Georgia, serif;
    --font-script: 'Caveat', 'Lora', cursive;
    --font-body: 'Inter', 'Lato', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Inter', monospace;

    /* Depth */
    --current-depth: 0;
    --bubble-density: 1;
    --depth-fill: 0%;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    width: 100%;
    background: var(--abyssal-black);
    color: var(--bleached-coral);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

body {
    perspective: 1200px;
    cursor: none;
    position: relative;
}

::selection {
    background: var(--vaporwave-lavender);
    color: var(--abyssal-black);
}

/* =========================================================================
   AURORA / OIL-SLICK animated gradient layer (used multiple places)
   ========================================================================= */
@keyframes aurora-shimmer {
    0%   { background-position:   0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes coral-sway {
    0%   { transform: rotate(0deg);    }
    33%  { transform: rotate(-3.5deg); }
    66%  { transform: rotate(4deg);    }
    100% { transform: rotate(0deg);    }
}

@keyframes statue-tumble {
    0%   { transform: rotate(-4deg) translateY(0px); }
    50%  { transform: rotate(4deg)  translateY(-12px); }
    100% { transform: rotate(-4deg) translateY(0px); }
}

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

@keyframes drift-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes wax-cycle {
    0%   { filter: saturate(0.7) brightness(0.92); transform: scale(0.98); }
    65%  { filter: saturate(1.1) brightness(1.05); transform: scale(1.00); }
    80%  { filter: saturate(1.2) brightness(1.1);  transform: scale(1.01); }
    95%  { filter: saturate(0.4) brightness(0.7);  transform: scale(0.99); }
    100% { filter: saturate(0.7) brightness(0.92); transform: scale(0.98); }
}

@keyframes oilslick-cycle {
    0%, 60% { opacity: 0; }
    80%     { opacity: 0.95; }
    95%     { opacity: 1; }
    100%    { opacity: 0; }
}

/* =========================================================================
   CURSOR (diving knife)
   ========================================================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 200;
    transform: translate(-8px, -8px) rotate(0deg);
    transition: transform 0.06s linear;
    will-change: transform;
    mix-blend-mode: normal;
    filter: drop-shadow(0 1px 2px rgba(7,17,26,0.6));
}

.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    pointer-events: none;
    z-index: 60;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(77,216,230,0.16) 0%, rgba(199,166,230,0.08) 45%, rgba(7,17,26,0) 70%);
    mix-blend-mode: screen;
    will-change: transform;
}

@media (hover: none) {
    .cursor, .cursor-light { display: none; }
    body { cursor: auto; }
}

/* =========================================================================
   DEPTH GAUGE (the only chrome)
   ========================================================================= */
.depth-gauge {
    position: fixed;
    top: 6vh;
    right: 26px;
    width: 28px;
    height: 88vh;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--bleached-coral);
}

.depth-gauge__rail {
    position: relative;
    width: 4px;
    height: 100%;
    background: rgba(220,238,245,0.16);
    border-radius: 2px;
    overflow: visible;
}

.depth-gauge__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--depth-fill);
    background: linear-gradient(180deg, var(--cyan-tide) 0%, var(--vaporwave-lavender) 60%, var(--abyssal-black) 100%);
    box-shadow: 0 0 14px rgba(77,216,230,0.5);
    transition: height 0.45s cubic-bezier(.4,.2,.2,1);
    border-radius: 2px;
}

.depth-gauge__tick {
    position: absolute;
    top: calc(var(--at) * 1%);
    left: 14px;
    transform: translateY(-50%);
    white-space: nowrap;
    color: var(--bleached-coral);
    opacity: 0.55;
    letter-spacing: 0.06em;
}

.depth-gauge__tick::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--bleached-coral);
    opacity: 0.4;
}

.depth-gauge__readout {
    position: absolute;
    bottom: -32px;
    right: 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan-tide);
    letter-spacing: 0.1em;
    text-shadow: 0 0 6px rgba(77,216,230,0.5);
}

.depth-gauge__unit {
    color: var(--bleached-coral);
    opacity: 0.55;
}

/* =========================================================================
   BUBBLE CANVAS
   ========================================================================= */
.bubbles {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 100vh;
    pointer-events: none;
    z-index: 80;
    mix-blend-mode: screen;
}

/* =========================================================================
   ZONES (photic strata)
   ========================================================================= */
.dive {
    position: relative;
    z-index: 10;
}

.zone {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    padding: 12vh 7vw 18vh;
}

/* base color per zone */
.zone--surface  { --zone-bg: linear-gradient(180deg, #2a4d68 0%, #1A2E3D 100%); --aurora-opacity: 0.75; }
.zone--sunlit   { --zone-bg: linear-gradient(180deg, #1A2E3D 0%, #16263a 100%); --aurora-opacity: 0.55; }
.zone--twilight { --zone-bg: linear-gradient(180deg, #16263a 0%, #0f1d2e 100%); --aurora-opacity: 0.35; }
.zone--midnight { --zone-bg: linear-gradient(180deg, #0f1d2e 0%, #0a1622 100%); --aurora-opacity: 0.18; }
.zone--abyssal  { --zone-bg: linear-gradient(180deg, #0a1622 0%, var(--abyssal-black) 100%); --aurora-opacity: 0.06; }

.zone::before {
    /* base background */
    content: "";
    position: absolute;
    inset: 0;
    background: var(--zone-bg);
    z-index: -3;
}

.zone::after {
    /* aurora gradient layer - the LAYER MEDIUM */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan-tide) 0%, var(--vaporwave-lavender) 50%, var(--sherbet-pink) 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    animation: aurora-shimmer 24s linear infinite;
    mix-blend-mode: screen;
    opacity: var(--aurora-opacity);
    z-index: -2;
    pointer-events: none;
}

/* caustic ripple lighting on Surface and Sunlit only */
.zone--surface .caustic,
.zone--sunlit .caustic {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
}
.zone--surface .caustic--a { top: -10%; left: -10%; animation: caustic-drift-a 22s ease-in-out infinite; }
.zone--sunlit .caustic--b  { bottom: -15%; right: -10%; animation: caustic-drift-b 26s ease-in-out infinite; }

@keyframes caustic-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes caustic-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, -20px) scale(1.1); }
}

/* PLANES (parallax containers) */
.plane {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.plane--far  { z-index: -1; filter: blur(4px); opacity: 0.6; }
.plane--mid  { z-index: 1; filter: blur(1px); opacity: 0.85; }
.plane--fore { z-index: 4; filter: none; opacity: 1; pointer-events: auto; }

.plane--fore { position: relative; }

/* statues drifting in far plane */
.statue {
    position: absolute;
    width: 22vw;
    max-width: 320px;
    aspect-ratio: 200/320;
    pointer-events: none;
    transform-origin: center;
    animation: statue-tumble 18s ease-in-out infinite;
    will-change: transform;
}
.statue--a { top: 18%; left: 4%; }
.statue--b { top: 38%; right: 6%; animation-delay: -4s; }
.statue--c { top: 12%; left: 56%; animation-delay: -7s; }
.statue--d { top: 28%; left: 8%; animation-delay: -2s; }
.statue--e { top: 18%; right: 5%; animation-delay: -10s; }

/* kelp curtain */
.kelp {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
}
.kelp--left { left: 2%; }
.kelp svg { width: 100%; height: 100%; }
.kelp svg path { animation: kelp-sway 9s ease-in-out infinite; transform-origin: bottom center; }
@keyframes kelp-sway {
    0%, 100% { transform: rotate(-2deg); }
    50%      { transform: rotate(2.5deg); }
}

/* ZONE COLUMN (asymmetric reading column) */
.zone__column {
    position: relative;
    z-index: 5;
    max-width: 540px;
    padding: 2vh 2vw;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.zone__column--right {
    margin-left: auto;
    margin-right: 6vw;
    text-align: left;
}

.zone__column--left {
    margin-left: 4vw;
    margin-right: auto;
    text-align: left;
}

.zone__column--abyssal {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
    max-width: 640px;
}

.zone__breadcrumb {
    position: absolute;
    top: 5vh;
    left: 6vw;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bleached-coral);
    opacity: 0.75;
    z-index: 6;
    display: flex;
    gap: 10px;
    align-items: center;
}

.zone__breadcrumb--abyssal {
    color: var(--vaporwave-lavender);
    opacity: 0.55;
}

.zone__depth-label {
    color: var(--cyan-tide);
    text-shadow: 0 0 8px rgba(77,216,230,0.4);
}

.zone__breadcrumb-sep {
    opacity: 0.4;
}

.zone__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(4.5rem, 11vw, 9.5rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
    color: var(--bleached-coral);
    margin-bottom: 0.4em;
    text-shadow: 0 4px 28px rgba(77,216,230,0.32);
}

.zone--abyssal .zone__title,
.zone__title--abyssal {
    color: var(--vaporwave-lavender);
    text-shadow: 0 4px 38px rgba(199,166,230,0.45);
}

.zone__lede {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    line-height: 1.45;
    color: var(--cyan-tide);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 22px rgba(77,216,230,0.18);
}

.zone__lede--abyssal {
    color: var(--sherbet-pink);
    text-shadow: 0 0 22px rgba(247,183,197,0.28);
}

.zone__body {
    font-family: var(--font-body);
    color: var(--bleached-coral);
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.78;
}

.zone__body em {
    color: var(--cyan-tide);
    font-style: italic;
}

/* CAVEAT (handwritten clerk's marginalia) */
.caveat {
    font-family: var(--font-script);
    font-size: 1.35rem;
    color: var(--vaporwave-lavender);
    margin-top: 0.6rem;
    transform: rotate(-0.6deg);
    line-height: 1.35;
    position: relative;
    display: inline-block;
}

.caveat--a { transform: rotate(-1.2deg); }
.caveat--final { transform: rotate(0.4deg); margin-top: 1.4rem; }

.caveat__ink {
    position: relative;
    padding: 1px 6px;
}

.caveat__ink::before {
    content: "";
    position: absolute;
    inset: 0 -2px;
    background: var(--goldfoil-stamp);
    opacity: 0.07;
    border-radius: 4px;
    z-index: -1;
    transform: skew(-2deg);
}

/* SERIAL CODE block */
.serial {
    margin-top: 1.4rem;
    padding: 12px 14px;
    border: 1px solid rgba(220,238,245,0.18);
    background: rgba(7,17,26,0.4);
    backdrop-filter: blur(2px);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--bleached-coral);
}

.serial__label {
    text-transform: uppercase;
    color: var(--cyan-tide);
    opacity: 0.7;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
}

.serial__code {
    color: var(--bleached-coral);
}

/* HINT */
.hint {
    margin-top: 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan-tide);
    opacity: 0.65;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hint__chevron {
    font-family: var(--font-body);
    font-size: 1rem;
    animation: hint-bob 2.8s ease-in-out infinite;
}

@keyframes hint-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* =========================================================================
   MEDALLION (yin-yang dolphin)
   ========================================================================= */
.medallion {
    position: absolute;
    top: 12%;
    right: 8%;
    width: clamp(140px, 18vw, 220px);
    height: clamp(140px, 18vw, 220px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
    filter: drop-shadow(0 0 20px rgba(199,166,230,0.4));
}

.medallion svg {
    width: 100%;
    height: 100%;
}

.medallion__spin {
    transform-origin: 100px 100px;
    animation: spin-slow 60s linear infinite;
}

/* =========================================================================
   REEF (coral filing cabinet)
   ========================================================================= */
.reef {
    position: relative;
    width: 100%;
    min-height: 480px;
    margin: 1.2rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
}

.coral {
    position: relative;
    flex: 1 1 13%;
    min-width: 90px;
    max-width: 140px;
    height: 360px;
    transform-origin: bottom center;
    animation: coral-sway 14s ease-in-out infinite;
    will-change: transform;
}

.coral:nth-child(1) { animation-delay: -0.4s; }
.coral:nth-child(2) { animation-delay: -2.7s; }
.coral:nth-child(3) { animation-delay: -5.1s; }
.coral:nth-child(4) { animation-delay: -7.4s; }
.coral:nth-child(5) { animation-delay: -9.6s; }
.coral:nth-child(6) { animation-delay: -11.8s; }
.coral:nth-child(7) { animation-delay: -13.0s; }

.coral svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.coral__label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bleached-coral);
    opacity: 0.7;
    white-space: nowrap;
    pointer-events: none;
}

/* coral polyp anchor (clickable hotspots) */
.polyp {
    cursor: pointer;
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.polyp:hover {
    filter: drop-shadow(0 0 10px var(--cyan-tide)) brightness(1.2);
}

/* barnacle-card surfacing on polyp hover */
.barnacle-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 18px);
    width: 240px;
    padding: 14px 16px;
    background: linear-gradient(160deg, rgba(7,17,26,0.94), rgba(26,46,61,0.94));
    border: 1px solid var(--cyan-tide);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(7,17,26,0.6), 0 0 22px rgba(77,216,230,0.18);
    color: var(--bleached-coral);
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease-in, transform 0.7s ease-in;
    z-index: 50;
}

.coral:hover .barnacle-card,
.coral:focus-within .barnacle-card {
    opacity: 1;
    transform: translate(-50%, 0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.barnacle-card__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--cyan-tide);
    margin-bottom: 4px;
}

.barnacle-card__serial {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--goldfoil-stamp);
    margin-bottom: 6px;
}

.barnacle-card__desc {
    font-size: 0.78rem;
    color: var(--bleached-coral);
}

.barnacle-card__stamp {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--kelp-olive);
    border: 1px solid var(--kelp-olive);
    padding: 2px 6px;
    display: inline-block;
    border-radius: 2px;
    text-transform: uppercase;
}

/* =========================================================================
   THERMOCLINE (zone divider)
   ========================================================================= */
.thermocline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    z-index: 7;
    pointer-events: none;
}

.thermocline path {
    will-change: d;
}

/* =========================================================================
   BATHYMETRIC chart
   ========================================================================= */
.bathymetric {
    position: absolute;
    top: 22%;
    right: 6%;
    width: clamp(280px, 32vw, 480px);
    z-index: 2;
    border: 1px solid rgba(220,238,245,0.18);
    background: rgba(7,17,26,0.55);
    padding: 12px;
    backdrop-filter: blur(4px);
}

.bathymetric svg {
    width: 100%;
    height: auto;
    display: block;
}

.bathymetric figcaption {
    margin-top: 8px;
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--vaporwave-lavender);
    text-align: right;
    transform: rotate(-0.4deg);
}

.bathy__pin circle:first-child {
    transform-origin: center;
    transform-box: fill-box;
    animation: pin-pulse 3.4s ease-in-out infinite;
}

@keyframes pin-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}

/* =========================================================================
   JURISDICTIONS list
   ========================================================================= */
.jurisdictions {
    list-style: none;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jurisdiction {
    border-left: 2px solid var(--cyan-tide);
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(77,216,230,0.06), transparent 60%);
    position: relative;
}

.jurisdiction__id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--goldfoil-stamp);
    margin-right: 12px;
}

.jurisdiction__name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--bleached-coral);
}

.jurisdiction__note {
    font-size: 0.85rem;
    color: var(--bleached-coral);
    opacity: 0.78;
    margin-top: 4px;
}

/* =========================================================================
   FAQ (drifting stamped index cards)
   ========================================================================= */
.faq {
    list-style: none;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 22px;
    counter-reset: faq;
}

.faq__card {
    position: relative;
    padding: 20px 22px;
    background: linear-gradient(170deg, rgba(220,238,245,0.96), rgba(220,238,245,0.86));
    color: var(--pressure-indigo);
    border: 1px solid rgba(199,166,230,0.5);
    box-shadow: 0 8px 26px rgba(7,17,26,0.6),
                0 0 0 1px rgba(220,238,245,0.05) inset;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.6s cubic-bezier(.4,.2,.2,1), box-shadow 0.4s ease;
    border-radius: 2px;
}

.faq__card[data-card]:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 14px 36px rgba(7,17,26,0.7), 0 0 18px rgba(77,216,230,0.2);
}

.faq__stamp {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--kelp-olive);
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 6px;
    border: 1px dashed var(--kelp-olive);
    margin-bottom: 8px;
}

.faq__q {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--pressure-indigo);
    line-height: 1.2;
    margin-bottom: 6px;
}

.faq__a {
    color: var(--pressure-indigo);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq__a em {
    color: var(--kelp-olive);
    font-style: italic;
    font-weight: 500;
}

.faq__seal {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--goldfoil-stamp);
    border: 1.5px solid var(--goldfoil-stamp);
    padding: 4px 8px;
    border-radius: 2px;
    transform: rotate(-6deg);
    background: rgba(201,162,60,0.1);
}

/* =========================================================================
   WAX SEAL CTA
   ========================================================================= */
.seal-stage {
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.seal {
    position: relative;
    width: 220px;
    height: 220px;
    background: transparent;
    border: 0;
    cursor: none;
    padding: 0;
    transform-origin: center;
    animation: wax-cycle 6s ease-in-out infinite;
    will-change: transform, filter;
    outline: none;
}

.seal__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 8px 28px rgba(247,183,197,0.35));
}

.seal__oilslick {
    animation: oilslick-cycle 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

.seal__glyph {
    transform-origin: 110px 110px;
}

.seal__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.seal:hover {
    animation-play-state: paused;
    filter: brightness(1.1);
}

.seal-line {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--sherbet-pink);
    max-width: 460px;
    text-align: center;
    line-height: 1.55;
    text-shadow: 0 0 18px rgba(247,183,197,0.25);
}

.floor {
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bleached-coral);
    opacity: 0.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.floor__sub {
    color: var(--goldfoil-stamp);
    opacity: 0.7;
    font-size: 0.58rem;
}

/* =========================================================================
   APPLICATION panel (modal)
   ========================================================================= */
.application {
    position: fixed;
    inset: 0;
    background: rgba(7,17,26,0.82);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    backdrop-filter: blur(8px);
    animation: drift-up 0.5s ease-out;
}

.application[hidden] { display: none; }

.application__inner {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(160deg, #16263a, #0a1622);
    border: 1px solid var(--cyan-tide);
    box-shadow: 0 24px 60px rgba(7,17,26,0.8), 0 0 40px rgba(77,216,230,0.15);
    padding: 36px 36px 32px;
    color: var(--bleached-coral);
}

.application__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    color: var(--bleached-coral);
    font-size: 1.6rem;
    cursor: none;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
}
.application__close:hover { opacity: 1; color: var(--cyan-tide); }

.application__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--goldfoil-stamp);
    margin-bottom: 8px;
}

.application__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.05;
    color: var(--bleached-coral);
    margin-bottom: 10px;
}

.application__body {
    font-size: 0.95rem;
    color: var(--bleached-coral);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.application__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.application__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.application__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan-tide);
}

.application__field input,
.application__field select,
.application__field textarea {
    background: rgba(7,17,26,0.7);
    border: 1px solid rgba(220,238,245,0.2);
    color: var(--bleached-coral);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 2px;
    cursor: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.application__field input:focus,
.application__field select:focus,
.application__field textarea:focus {
    border-color: var(--cyan-tide);
    box-shadow: 0 0 14px rgba(77,216,230,0.18);
    outline: none;
}

.application__field textarea {
    resize: vertical;
    min-height: 70px;
    font-family: var(--font-body);
}

.application__submit {
    margin-top: 6px;
    background: linear-gradient(135deg, var(--cyan-tide), var(--vaporwave-lavender), var(--sherbet-pink));
    background-size: 200% 200%;
    background-position: 0% 50%;
    animation: aurora-shimmer 6s linear infinite;
    color: var(--abyssal-black);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: 0;
    border-radius: 2px;
    cursor: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(77,216,230,0.3);
}

.application__status {
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--vaporwave-lavender);
}

.application__status[hidden] { display: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
    .zone { padding: 10vh 6vw 14vh; }
    .zone__column { max-width: 100%; }
    .zone__column--right, .zone__column--left {
        margin-left: 0; margin-right: 0;
    }
    .medallion { right: 4%; opacity: 0.5; }
    .bathymetric {
        position: relative;
        top: auto; right: auto;
        width: 100%;
        margin: 1rem 0;
    }
    .reef { min-height: 360px; }
    .coral { height: 280px; min-width: 70px; }
    .depth-gauge { right: 12px; }
    .kelp { display: none; }
}

@media (max-width: 600px) {
    .zone__title { font-size: clamp(3.5rem, 14vw, 6rem); }
    .seal { width: 180px; height: 180px; }
    .reef { gap: 4px; }
    .coral { min-width: 56px; height: 240px; }
    .barnacle-card { width: 200px; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .zone::after { animation: none; background-position: 50% 50%; }
    .seal { animation: none; }
    .seal__oilslick { opacity: 0.4; animation: none; }
    .bubbles { display: none; }
    .cursor, .cursor-light { display: none; }
    body { cursor: auto; }
}
