/* ============================================================
   TackleBot — "Deep Abyss" design system
   The page is the ocean: you start in sunlit water and scroll
   down through twilight and midnight into the hadal trench.
   Depth is driven by js/script.js via --depth (0 → 1) and the
   .depth-layer crossfade; everything else is plain CSS.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Sora:wght@400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* ink */
    --ink: #eaf7ff;
    --ink-dim: rgba(213, 236, 248, 0.8);
    --ink-faint: rgba(186, 218, 234, 0.55);

    /* brand + biolume accents */
    --gold: #ffd166;
    --gold-deep: #ffb703;
    --cyan: #4cc9f0;
    --biolume: #2cf6c3;
    --biolume-dim: rgba(44, 246, 195, 0.35);
    --lure: #ffe066;
    --danger: #ff5d73;

    /* depth zone gradients (top, bottom) */
    --z0-a: #0b557a; --z0-b: #073049;
    --z1-a: #06283f; --z1-b: #041d30;
    --z2-a: #021223; --z2-b: #010b17;
    --z3-a: #010810; --z3-b: #000204;

    /* surfaces */
    --glass: rgba(4, 19, 30, 0.6);
    --glass-strong: rgba(2, 11, 19, 0.88);
    --line: rgba(124, 215, 255, 0.14);
    --line-bright: rgba(124, 215, 255, 0.32);
    --line-glow: rgba(44, 246, 195, 0.4);
    --panel-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);

    /* type */
    --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --font-body: 'Sora', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --page-width: 1180px;
    --reading-width: 860px;
    --header-offset: 118px;
    --radius-large: 26px;
    --radius-medium: 18px;
    --radius-small: 12px;

    --depth: 0; /* set by script.js as you scroll */
}

html { scroll-behavior: smooth; }

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

::selection { background: rgba(44, 246, 195, 0.35); color: #01131d; }

body {
    font-family: var(--font-body);
    background: var(--z1-b);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: var(--header-offset) 20px 32px;
}

a { color: inherit; }
img { max-width: 100%; }

/* ---- depth backdrop: four fixed layers crossfaded by JS ---- */
.depth-layer {
    position: fixed;
    inset: 0;
    z-index: -6;
    pointer-events: none;
    transition: opacity 0.4s linear;
}
.depth-layer.z0 { background: linear-gradient(180deg, var(--z0-a), var(--z0-b)); }
.depth-layer.z1 { background: linear-gradient(180deg, var(--z1-a), var(--z1-b)); opacity: 0; }
.depth-layer.z2 { background: linear-gradient(180deg, var(--z2-a), var(--z2-b)); opacity: 0; }
.depth-layer.z3 { background: linear-gradient(180deg, var(--z3-a), var(--z3-b)); opacity: 0; }

/* sun rays — only visible near the surface, faded out by JS via --depth */
.god-rays {
    position: fixed;
    inset: -10% -20%;
    z-index: -5;
    pointer-events: none;
    background:
        linear-gradient(112deg, transparent 28%, rgba(176, 240, 255, 0.10) 33%, transparent 39%),
        linear-gradient(104deg, transparent 46%, rgba(176, 240, 255, 0.07) 52%, transparent 58%),
        linear-gradient(118deg, transparent 64%, rgba(255, 224, 150, 0.06) 69%, transparent 75%);
    animation: raysDrift 14s ease-in-out infinite alternate;
    opacity: calc(1 - var(--depth) * 2.4);
}
@keyframes raysDrift {
    from { transform: translateX(-2.5%) skewX(-1deg); }
    to   { transform: translateX(2.5%) skewX(1.5deg); }
}

/* caustic shimmer near the surface */
.caustics {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 16% at 22% 6%, rgba(140, 233, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 38% 13% at 70% 3%, rgba(140, 233, 255, 0.12), transparent 70%);
    animation: causticsSway 9s ease-in-out infinite alternate;
    opacity: calc(1 - var(--depth) * 2.2);
}
@keyframes causticsSway {
    from { transform: translateX(-1.5%) scaleY(1); }
    to   { transform: translateX(1.5%) scaleY(1.12); }
}

/* canvas for bubbles / marine snow / biolume motes (injected by JS) */
#ocean-canvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

/* DOM fish layer (existing element on every page) */
#fish-tank {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.fish {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.72;
    will-change: transform, left;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3)) brightness(calc(1 - var(--depth) * 0.45));
}
.fish.fish-deep {
    filter: brightness(0.22) saturate(0.4) blur(1px);
}
.page-privacy .fish, .page-tos .fish { opacity: 0.22; }

.bubble {
    position: absolute;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(180, 235, 255, 0.12) 60%);
    border: 1px solid rgba(220, 245, 255, 0.18);
    border-radius: 50%;
    bottom: -24px;
    animation: rise 12s infinite ease-in;
}
@keyframes rise {
    0%   { bottom: -24px; transform: translateX(0); opacity: 0; }
    50%  { opacity: 0.5; }
    100% { bottom: 104vh; transform: translateX(-26px); opacity: 0; }
}
@keyframes swimRight { from { left: -180px; } to { left: 100vw; } }
@keyframes swimLeft  { from { left: 100vw; } to { left: -180px; } }

/* fine sediment / film-grain texture (replaces old hard scanlines) */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
.scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 60%, rgba(0, 4, 8, 0.5));
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #03111f;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
    z-index: 1400;
}
.skip-link:focus { transform: translateY(0); }

body.nav-open { overflow: hidden; }

/* ============================== NAV ============================== */
.site-header {
    position: fixed;
    top: 18px;
    left: 20px;
    right: 20px;
    z-index: 110;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-hidden { transform: translateY(-130%); opacity: 0; }

.site-nav {
    width: min(var(--page-width), 100%);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(180deg, rgba(3, 16, 26, 0.92), rgba(2, 11, 19, 0.78));
    border: 1px solid var(--line);
    border-bottom-color: var(--line-bright);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(160, 230, 255, 0.08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    flex-shrink: 0;
}
/* the lure: a glowing anglerfish dot */
.brand-mark::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8d8, var(--lure) 55%, rgba(255, 224, 102, 0.2));
    box-shadow: 0 0 14px var(--lure), 0 0 34px rgba(255, 224, 102, 0.55);
    animation: lurePulse 2.6s ease-in-out infinite;
}
@keyframes lurePulse {
    0%, 100% { box-shadow: 0 0 10px var(--lure), 0 0 26px rgba(255, 224, 102, 0.4); }
    50%      { box-shadow: 0 0 18px var(--lure), 0 0 44px rgba(255, 224, 102, 0.75); }
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--ink-dim);
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--biolume), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active,
.site-nav a[aria-current='page'] {
    color: #02131c;
    background: linear-gradient(135deg, var(--biolume), var(--cyan));
    box-shadow: 0 8px 26px rgba(44, 246, 195, 0.32);
    font-weight: 700;
}
.site-nav a.active::after { display: none; }

.site-nav a:focus-visible, .btn:focus-visible, .buy-btn:focus-visible,
.guide-toc a:focus-visible, .nav-toggle:focus-visible, .text-content a:focus-visible,
.boss-nav button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}
.nav-toggle span {
    width: 21px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================= DEPTH GAUGE ========================= */
.depth-gauge {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: var(--font-mono);
    pointer-events: none;
    user-select: none;
}
.depth-gauge .dg-readout {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--biolume);
    text-shadow: 0 0 12px var(--biolume-dim);
    background: rgba(1, 10, 16, 0.7);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}
.depth-gauge .dg-track {
    position: relative;
    width: 3px;
    height: min(40vh, 320px);
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(140, 233, 255, 0.5), rgba(44, 246, 195, 0.28) 55%, rgba(255, 224, 102, 0.4));
    box-shadow: 0 0 14px rgba(76, 201, 240, 0.25);
    margin-right: 8px;
}
.depth-gauge .dg-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 30%, #ffffff, var(--biolume) 60%);
    box-shadow: 0 0 12px var(--biolume), 0 0 30px var(--biolume-dim);
    transition: top 0.12s linear;
}
.depth-gauge .dg-zone {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: var(--ink-faint);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    position: absolute;
    right: 14px;
    transition: color 0.3s ease;
}
@media (max-width: 1340px) { .depth-gauge { display: none; } }

/* ============================ LAYOUT ============================ */
.container {
    width: min(var(--page-width), 100%);
    margin: 0 auto;
    padding: 52px;
    background: linear-gradient(180deg, rgba(160, 230, 255, 0.05), rgba(160, 230, 255, 0.015));
    backdrop-filter: blur(14px);
    border-radius: var(--radius-large);
    border: 1px solid var(--line);
    box-shadow: var(--panel-shadow);
    position: relative;
    overflow: hidden;
}
.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(140, 233, 255, 0.06), transparent 40%, rgba(44, 246, 195, 0.05) 90%);
    pointer-events: none;
}
.container > * { position: relative; z-index: 1; }

.page-intro, .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}
.hero-home { min-height: 62vh; padding: 24px 0 30px; }
.hero-compact, .page-intro-compact { min-height: 0; margin-bottom: 18px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--biolume);
    text-shadow: 0 0 14px var(--biolume-dim);
}
.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; }

h1 {
    font-size: clamp(3rem, 7.4vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.title-glow {
    background: linear-gradient(96deg, var(--cyan) 5%, var(--biolume) 45%, var(--gold) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(44, 246, 195, 0.3));
}

.tagline {
    max-width: 700px;
    font-size: clamp(1.02rem, 1.9vw, 1.32rem);
    line-height: 1.75;
    color: var(--ink-dim);
    margin-bottom: 10px;
    text-wrap: pretty;
}

.content-section { margin-top: 64px; }
.content-section-tight { margin-top: 22px; }

.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.section-heading p { color: var(--ink-dim); line-height: 1.7; text-wrap: pretty; }

/* numbered sonar tag above section headings */
.sonar-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}
.sonar-tag::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid currentColor;
    box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.55);
    animation: sonarPing 2.4s ease-out infinite;
}
@keyframes sonarPing {
    0%   { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(76, 201, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

/* ============================ BUTTONS ============================ */
.btn-group { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

.btn {
    padding: 15px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--biolume), var(--cyan) 90%);
    color: #021219;
    box-shadow: 0 14px 36px rgba(44, 246, 195, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary {
    background: rgba(160, 230, 255, 0.05);
    border-color: var(--line-bright);
    color: var(--ink);
}
.btn-secondary:hover { border-color: var(--line-glow); background: rgba(44, 246, 195, 0.07); }

.btn-crimson {
    background: linear-gradient(135deg, #11425c, #0a2c40);
    border-color: rgba(140, 233, 255, 0.2);
    color: #fff;
    box-shadow: 0 14px 30px rgba(6, 40, 63, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #ffe9a8);
    color: #2b1c02;
    box-shadow: 0 14px 36px rgba(255, 209, 102, 0.28);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ====================== HERO (index only) ====================== */
.hero-abyss { position: relative; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hud-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(2, 14, 23, 0.66);
    border: 1px solid var(--line);
    border-left: 2px solid var(--biolume);
    backdrop-filter: blur(8px);
}
.hud-chip .hud-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.16rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.hud-chip .hud-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-faint);
}

/* floating hero fish (parallax layers, real game art) */
.hero-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-art img {
    position: absolute;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
    animation: heroBob 7s ease-in-out infinite;
    will-change: transform;
}
.hero-art .hf-1 { top: 4%;  right: 2%;   width: clamp(130px, 19vw, 250px); animation-delay: -1s; }
.hero-art .hf-2 { top: 46%; right: 14%;  width: clamp(90px, 12vw, 160px);  animation-delay: -3.4s; animation-duration: 8.5s; }
.hero-art .hf-3 { top: 72%; right: 1%;   width: clamp(72px, 9vw, 120px);   animation-delay: -5s;   animation-duration: 9.5s; opacity: 0.85; }
@keyframes heroBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-16px) rotate(2.5deg); }
}
.hero > *:not(.hero-art) { position: relative; z-index: 1; }

/* wavy divider between hero and the dive */
.wave-divider {
    width: 100%;
    height: 38px;
    margin-top: 36px;
    background:
        radial-gradient(34px 24px at 25% 0, transparent 23px, var(--line) 24px, transparent 25px),
        radial-gradient(34px 24px at 75% 38px, transparent 23px, var(--line) 24px, transparent 25px);
    background-size: 100px 38px;
    opacity: 0.7;
}

/* dive prompt */
.dive-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.dive-cue::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--biolume);
    animation: diveBounce 1.8s ease-in-out infinite;
}
@keyframes diveBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ====================== FEATURE CARDS ====================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature-card, .donation-card, .guide-card, .shop-item, .guide-toc, .loc-card, .box-card {
    background: linear-gradient(180deg, rgba(5, 24, 38, 0.66), rgba(2, 13, 22, 0.78));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(160, 230, 255, 0.06);
}

.feature-card {
    padding: 26px;
    border-radius: var(--radius-medium);
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* sonar corner brackets */
.feature-card::before, .feature-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line-bright);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.feature-card::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.feature-card::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-glow);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(44, 246, 195, 0.12), inset 0 1px 0 rgba(160, 230, 255, 0.06);
}
.feature-card:hover::before, .feature-card:hover::after { opacity: 1; }

.feature-card .fc-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border-radius: 13px;
    background: rgba(44, 246, 195, 0.08);
    border: 1px solid rgba(44, 246, 195, 0.22);
    margin-bottom: 16px;
    box-shadow: 0 0 22px rgba(44, 246, 195, 0.12);
}
.feature-card h3 {
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 1.18rem;
    font-weight: 700;
}
.feature-card p { color: var(--ink-dim); line-height: 1.7; font-size: 0.95rem; }
.feature-card .fc-cmd {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--cyan);
    letter-spacing: 0.04em;
}

/* ====================== LOCATIONS STRIP ====================== */
.loc-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin: 0 -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--biolume-dim) transparent;
}
.loc-card {
    scroll-snap-align: start;
    border-radius: var(--radius-medium);
    padding: 22px;
    min-height: 188px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.loc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--loc-scene, linear-gradient(180deg, #0b557a, #04263d));
    opacity: 0.85;
    transition: transform 0.4s ease;
}
.loc-card:hover { transform: translateY(-4px); border-color: var(--line-glow); }
.loc-card:hover::before { transform: scale(1.06); }
.loc-card > * { position: relative; z-index: 1; }
.loc-card .loc-emoji { font-size: 1.9rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.loc-card h3 { font-size: 1.12rem; }
.loc-card p { font-size: 0.84rem; color: rgba(232, 246, 255, 0.85); line-height: 1.5; }
.loc-card .loc-depth {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    color: rgba(232, 246, 255, 0.75);
    background: rgba(1, 10, 16, 0.55);
    border: 1px solid rgba(160, 230, 255, 0.2);
    padding: 4px 9px;
    border-radius: 999px;
}

/* ====================== SPECIMEN GALLERY ====================== */
.specimen-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.specimen {
    border-radius: var(--radius-medium);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(4, 22, 35, 0.6), rgba(2, 12, 20, 0.8));
    padding: 18px 14px 14px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.specimen:hover {
    transform: translateY(-5px);
    border-color: var(--line-glow);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), 0 0 30px rgba(44, 246, 195, 0.08);
}
.specimen img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}
.specimen:hover img { transform: scale(1.12) rotate(-3deg); }
.specimen .sp-name {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.3;
}
.specimen .sp-tag {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.deck-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.deck-note { font-size: 0.85rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ====================== THE TRENCH (bosses) ====================== */
.trench {
    margin: 70px -52px 0;
    padding: 64px 52px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 93, 115, 0.1), transparent 65%),
        linear-gradient(180deg, transparent, rgba(0, 2, 4, 0.85) 25%, rgba(0, 2, 4, 0.92));
    border-top: 1px solid rgba(255, 93, 115, 0.18);
    position: relative;
}
.trench .sonar-tag { color: var(--danger); }
.trench .sonar-tag::before { animation-name: sonarPingRed; }
@keyframes sonarPingRed {
    0%   { box-shadow: 0 0 0 0 rgba(255, 93, 115, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 93, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 93, 115, 0); }
}

.boss-stage {
    display: grid;
    grid-template-columns: minmax(220px, 380px) 1fr;
    gap: 38px;
    align-items: center;
}
.boss-art {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.boss-art::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 93, 115, 0.16), transparent 65%);
    animation: bossAura 4s ease-in-out infinite;
}
@keyframes bossAura {
    0%, 100% { transform: scale(0.94); opacity: 0.7; }
    50%      { transform: scale(1.06); opacity: 1; }
}
.boss-art img {
    position: relative;
    width: 86%;
    height: 86%;
    object-fit: contain;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 34px rgba(255, 93, 115, 0.25));
    animation: heroBob 9s ease-in-out infinite;
}
.boss-info h3 {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.boss-info .boss-sub {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--danger);
    display: block;
    margin-bottom: 14px;
}
.boss-info p { color: var(--ink-dim); line-height: 1.75; max-width: 560px; }

.boss-nav {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.boss-nav button {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(2, 12, 20, 0.7);
    cursor: pointer;
    padding: 7px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.boss-nav button img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.55) saturate(0.7); transition: filter 0.2s ease; }
.boss-nav button:hover { transform: translateY(-2px); }
.boss-nav button:hover img { filter: brightness(0.9); }
.boss-nav button.active { border-color: rgba(255, 93, 115, 0.6); box-shadow: 0 0 18px rgba(255, 93, 115, 0.2); }
.boss-nav button.active img { filter: brightness(1); }

/* ====================== SEAFLOOR CTA ====================== */
.seafloor {
    margin: 0 -52px -52px;
    padding: 80px 52px 90px;
    text-align: center;
    background:
        radial-gradient(ellipse 55% 42% at 50% 16%, rgba(255, 224, 102, 0.1), transparent 60%),
        linear-gradient(180deg, transparent, #000204 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.seafloor .lure-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8d8, var(--lure) 55%, rgba(255, 224, 102, 0.2));
    box-shadow: 0 0 18px var(--lure), 0 0 50px rgba(255, 224, 102, 0.5);
    animation: lurePulse 2.2s ease-in-out infinite;
    margin-bottom: 6px;
}
.seafloor h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
.seafloor p { color: var(--ink-dim); max-width: 520px; line-height: 1.7; }
.seafloor .btn-group { justify-content: center; }
.seafloor .sf-depth {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    color: var(--ink-faint);
    text-transform: uppercase;
}

/* ====================== TEXT / LEGAL PAGES ====================== */
.text-content { text-align: left; line-height: 1.75; }
.legal-page {
    width: min(var(--reading-width), 100%);
    background: linear-gradient(180deg, rgba(3, 16, 27, 0.92), rgba(3, 20, 32, 0.85));
}
.legal-header { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.text-content h2 {
    color: var(--gold);
    margin-top: 34px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}
.text-content h3 { color: #c9f1ff; margin-top: 20px; margin-bottom: 10px; font-size: 1.05rem; }
.text-content p, .text-content ul { margin-bottom: 16px; color: var(--ink-dim); }
.text-content ul { padding-left: 20px; }
.text-content li { margin-bottom: 10px; }
.text-content a { color: var(--biolume); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }

code {
    background: rgba(140, 233, 255, 0.08);
    border: 1px solid rgba(140, 233, 255, 0.14);
    padding: 0.18em 0.5em;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    color: #aef3e3;
}

/* ====================== DONATE / TIERS ====================== */
.support-actions { margin-bottom: 6px; }

.tier-explain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.tier-explain .tex {
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: rgba(3, 17, 28, 0.6);
    padding: 18px;
}
.tier-explain .tex h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}
.tier-explain .tex p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.6; }

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.donation-card {
    --tier: var(--biolume);
    padding: 26px;
    border-radius: var(--radius-medium);
    border-top: 3px solid var(--tier);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
}
.donation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--tier) 35%, transparent);
}
.donation-card[data-tier='lurker']    { --tier: #9b7bdc; }
.donation-card[data-tier='hoplite']   { --tier: #8fa6b5; }
.donation-card[data-tier='spartacus'] { --tier: #fbc02d; }
.donation-card[data-tier='polemarch'] { --tier: #b96ae0; }
.donation-card[data-tier='strategos'] { --tier: #ff5d73; }
.donation-card[data-tier='founder']   { --tier: #e7c25a; }

.donation-card-featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 12%, transparent), rgba(2, 13, 22, 0.8));
}

.donation-card h3 { color: var(--ink); font-size: 1.42rem; margin-bottom: 6px; }
.donation-card .tier-rank {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tier);
    display: block;
    margin-bottom: 10px;
}

.price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: #ffffff;
}
.price .per { font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); font-family: var(--font-body); }

.tier-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-small);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.donation-card .tier-desc { color: var(--ink-dim); line-height: 1.6; margin-bottom: 12px; font-size: 0.93rem; }

.donation-card h4.perk-group {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tier);
    margin: 18px 0 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}
.donation-card h4.perk-group:first-of-type { border-top: none; padding-top: 0; }
.donation-card h4.perk-group .pg-hint {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--ink-faint);
    font-weight: 400;
}

.perks { text-align: left; margin-bottom: 0; flex-grow: 0; }
.perks li {
    margin-bottom: 8px;
    list-style-type: none;
    color: var(--ink-dim);
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
}
.perks li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.6em;
    color: var(--tier, var(--biolume));
}
.perks.coming li { opacity: 0.7; }
.perks.coming li::before { content: '◇'; }

.tier-flag {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tier) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
    color: var(--tier);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tier-note { color: var(--ink-faint); font-size: 0.84rem; font-style: italic; margin-top: 12px; line-height: 1.6; }

/* box contents reference */
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.box-card {
    border-radius: var(--radius-medium);
    padding: 20px;
    border-left: 3px solid var(--box-c, var(--cyan));
}
.box-card h4 { font-size: 1.02rem; margin-bottom: 4px; color: var(--ink); }
.box-card .box-roll {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--box-c, var(--cyan));
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}
.box-card p { font-size: 0.86rem; color: var(--ink-dim); line-height: 1.6; }

/* ====================== GUIDE ====================== */
.guide-toc { padding: 26px; border-radius: var(--radius-medium); margin-bottom: 28px; text-align: left; }
.guide-toc h2 {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.guide-toc ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    padding: 0;
}
.guide-toc a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding: 12px 14px;
    background: rgba(160, 230, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.guide-toc a:hover {
    background: rgba(44, 246, 195, 0.08);
    border-color: var(--line-glow);
    transform: translateX(4px);
}

.guide-card {
    padding: 28px;
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
    text-align: left;
    scroll-margin-top: 120px;
}
.guide-card h2 {
    color: var(--gold);
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.guide-card h3 { color: var(--cyan); margin-top: 22px; margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; }
.guide-card ul, .guide-card ol { margin-left: 20px; margin-bottom: 15px; }
.guide-card li { margin-bottom: 8px; color: var(--ink-dim); }
.guide-card p { margin-bottom: 15px; line-height: 1.8; color: var(--ink-dim); }

.card-content { display: flow-root; }

.guide-icon {
    float: right;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-left: 20px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(140, 233, 255, 0.25));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ====================== SHOP / UNDER CONSTRUCTION ====================== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.shop-item { border-radius: var(--radius-medium); padding: 18px; transition: transform 0.25s ease, border-color 0.25s ease; position: relative; overflow: hidden; }
.shop-item:hover { transform: translateY(-5px); border-color: var(--line-glow); }
.shop-item img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 12px; }
.item-header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.shop-item h3 { font-size: 1rem; color: var(--ink); line-height: 1.35; }
.rarity-badge, .sigil {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(44, 246, 195, 0.1);
    color: var(--biolume);
    font-size: 0.74rem;
    font-weight: 700;
}
.epithet, .note { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }
.epithet { margin-bottom: 12px; }
.note { margin-bottom: 14px; }
.shop-item .price { font-size: 1.1rem; color: var(--gold); margin-bottom: 12px; }
.shop-item .currency { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.16em; }
.buy-btn {
    background: rgba(76, 201, 240, 0.12);
    color: #fff;
    border: 1px solid var(--line-bright);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: background 0.2s ease, transform 0.2s ease;
}
.buy-btn:hover { background: rgba(44, 246, 195, 0.2); transform: translateY(-1px); }

.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    min-height: 42vh;
    justify-content: center;
}
.under-construction .uc-emoji { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)); }
.under-construction h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--gold); }
.under-construction p { max-width: 560px; color: var(--ink-dim); line-height: 1.75; }

/* ====================== FOOTER & RIBBON ====================== */
.site-footer {
    width: min(var(--page-width), 100%);
    margin: 20px auto 0;
    text-align: center;
    padding: 24px 10px 8px;
    font-size: 0.88rem;
    color: var(--ink-faint);
}
.site-footer .foot-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-bottom: 12px;
}
.site-footer .foot-links a { color: var(--ink-dim); text-decoration: none; font-size: 0.86rem; }
.site-footer .foot-links a:hover { color: var(--biolume); }

.corner-ribbon {
    position: fixed;
    top: 58px;
    left: -86px;
    width: 300px;
    transform: rotate(-45deg);
    z-index: 200;
    display: block;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    color: #1d1402;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    font-family: var(--font-display);
    line-height: 1.2;
}
.corner-ribbon .cr-top { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.8; }
.corner-ribbon .cr-main { display: block; font-size: 0.96rem; font-weight: 800; letter-spacing: 0.02em; }
.corner-ribbon:hover { filter: brightness(1.08); }
.corner-ribbon:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 1280px) { .corner-ribbon { display: none; } }
@media (min-width: 1281px) and (max-width: 1600px) { .site-nav { padding-left: 185px; } }

/* ====================== SCROLLBAR ====================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #010a12; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--biolume));
    border-radius: 999px;
    border: 2px solid #010a12;
}

/* ====================== FOUNDING TITAN BAR ====================== */
.founders-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 13px 18px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(100deg, rgba(231, 194, 90, 0.14), rgba(2, 13, 22, 0.6) 45%, rgba(231, 194, 90, 0.1));
    border: 1px solid rgba(231, 194, 90, 0.45);
    box-shadow: 0 0 34px rgba(231, 194, 90, 0.12), inset 0 1px 0 rgba(255, 240, 200, 0.12);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.founders-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 240, 200, 0.14), transparent);
    transform: skewX(-20deg);
    animation: fbSweep 4.5s ease-in-out infinite;
}
@keyframes fbSweep {
    0%, 60% { left: -60%; }
    100%    { left: 130%; }
}
.founders-bar:hover {
    border-color: rgba(231, 194, 90, 0.8);
    box-shadow: 0 0 44px rgba(231, 194, 90, 0.22), inset 0 1px 0 rgba(255, 240, 200, 0.12);
}
.founders-bar .fb-sigil { font-size: 1.35rem; line-height: 1; filter: drop-shadow(0 0 10px rgba(231, 194, 90, 0.5)); }
.founders-bar .fb-text { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.4; }
.founders-bar .fb-text strong { color: #f0d488; font-family: var(--font-display); letter-spacing: 0.04em; }
.founders-bar .fb-pips { display: flex; gap: 5px; margin-left: auto; }
.fb-pip {
    width: 10px;
    height: 15px;
    border: 1px solid rgba(231, 194, 90, 0.55);
    border-radius: 3px;
    background: transparent;
}
.fb-pip.taken {
    background: linear-gradient(180deg, #ffe9a8, #e7c25a);
    box-shadow: 0 0 10px rgba(231, 194, 90, 0.65);
}
.founders-bar .fb-count {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: #e7c25a;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.founders-bar .fb-cta {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1d1402;
    background: linear-gradient(135deg, var(--gold), #ffe9a8);
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
}
@media (max-width: 780px) {
    .founders-bar { gap: 10px; padding: 12px 14px; }
    .founders-bar .fb-text { flex: 1 1 100%; order: 5; font-size: 0.84rem; }
    .founders-bar .fb-pips { margin-left: 0; }
}

/* extra tier accents (support ranks) */
.donation-card { scroll-margin-top: 130px; }
.donation-card[data-tier='gargoyle'] { --tier: #a99ef0; }
.donation-card[data-tier='olympian'] { --tier: #7ec8ff; }
.donation-card[data-tier='colossus'] { --tier: #9aa4b5; }
.donation-card[data-tier='midas']    { --tier: #ffcf33; }

/* the other bot's rewards shown as a dimmed bonus group */
.donation-card h4.perk-group.pg-bonus { color: var(--ink-faint); }
.perks.bonus li { opacity: 0.74; font-size: 0.88rem; }
.donation-card .tier-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dotted var(--line-bright);
}
.donation-card .tier-link:hover { color: var(--biolume); }

/* slot pips inside the Founding Titan card */
.ft-slots { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.ft-slots .fb-pips { display: flex; gap: 5px; }
.ft-slots .ft-label { font-family: var(--font-mono); font-size: 0.74rem; color: #e7c25a; letter-spacing: 0.1em; }

/* ====================== DEV / WIP DISCLAIMER ====================== */
.dev-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 196, 87, 0.38);
    background: rgba(255, 196, 87, 0.07);
    color: var(--ink-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}
.dev-note .dn-icon { font-size: 1.15rem; line-height: 1.4; }
.dev-note strong { color: #ffc457; }

.foot-disclaimer {
    max-width: 760px;
    margin: 0 auto 10px;
    font-size: 0.78rem;
    color: var(--ink-faint);
    line-height: 1.55;
}

/* ====================== REVEAL ON SCROLL ====================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 960px) {
    .site-nav { padding: 13px 16px; }
    .container { padding: 40px 32px; }
    .trench { margin-inline: -32px; padding-inline: 32px; }
    .seafloor { margin-inline: -32px; margin-bottom: -40px; padding-inline: 32px; }
    .boss-stage { grid-template-columns: 1fr; gap: 16px; }
    .boss-art { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 820px) {
    :root { --header-offset: 96px; }
    body { padding-inline: 14px; }
    .site-header { top: 12px; left: 14px; right: 14px; }
    .site-nav { position: relative; padding: 12px 14px; gap: 12px; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        background: var(--glass-strong);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    body.nav-open .nav-links { display: flex; }
    .site-nav a { width: 100%; text-align: left; }
    .site-nav a::after { display: none; }
    .container { padding: 34px 22px; border-radius: 22px; }
    .hero-home { min-height: 0; padding-top: 10px; }
    h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
    .tagline { font-size: 1.02rem; margin-bottom: 12px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .features, .donation-grid, .shop-grid, .guide-toc ul, .box-grid { grid-template-columns: 1fr; }
    .guide-card { scroll-margin-top: 110px; }
    .guide-icon { float: none; display: block; margin: 0 0 16px 0; width: 74px; height: 74px; }
    .hero-art .hf-2, .hero-art .hf-3 { display: none; }
    .hero-art .hf-1 { opacity: 0.4; }
    .trench { margin-inline: -22px; padding-inline: 22px; }
    .seafloor { margin-inline: -22px; margin-bottom: -34px; padding-inline: 22px; }
}

@media (max-width: 560px) {
    body { padding-bottom: 20px; }
    .container { padding: 28px 18px; }
    .brand-mark { font-size: 0.86rem; letter-spacing: 0.12em; }
    .eyebrow { font-size: 0.66rem; letter-spacing: 0.2em; }
    .feature-card, .donation-card, .guide-card, .guide-toc, .shop-item { padding: 20px; }
    .specimen-deck { grid-template-columns: repeat(2, 1fr); }
    .hud-chip { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
    .god-rays, .caustics { animation: none; }
}
