/* ============================================
   River Run - Stake. Mine. Raid.
   Underwater River Theme
   ============================================ */

/* CSS Variables — variable names kept for backward compat;
   values shifted to a river / underwater palette. */
:root {
    /* Background — deep river bed → upper water */
    --bg-dark: #051828;
    --bg-gradient-1: #0a2640;
    --bg-gradient-2: #144258;
    --bg-gradient-3: #051828;

    /* Primary brand: river aqua-cyan (was neon green) */
    --green-light: #7feaf5;
    --green-main: #2dd4e9;
    --green-dark: #0e9bb1;

    /* Salmon coral accent (was pink) */
    --pink-light: #ffc4ad;
    --pink-main: #ff8a6c;
    --pink-dark: #e25f3e;

    /* Clear water blue (kept blue, slightly cooler) */
    --blue-light: #b3d9f2;
    --blue-main: #5fa8d6;
    --blue-dark: #2c6f9a;

    /* Roe / caviar warm orange (was yellow) */
    --yellow-light: #ffd6a8;
    --yellow-main: #ffa157;
    --yellow-dark: #e57224;

    /* Deep water shadow (was alien purple) */
    --purple-light: #c0d4e0;
    --purple-main: #4e6d80;
    --purple-dark: #0c1d2e;

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-display: 'Lilita One', cursive;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Background — River / Underwater
   ============================================ */
.planet-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Surface light flecks — like sunlight glinting off the water */
.planet-bg .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(180,230,240,0.6), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(200,240,250,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(180,230,240,0.7), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(220,240,250,0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(180,230,240,0.4), transparent),
        radial-gradient(1px 1px at 300px 150px, rgba(200,240,250,0.5), transparent),
        radial-gradient(1px 1px at 350px 200px, rgba(180,230,240,0.4), transparent);
    background-size: 400px 300px;
    animation: surfaceShimmer 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes surfaceShimmer {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 0.4; transform: translateX(8px); }
}

/* Underwater gradient: lighter teal at the top (toward the surface),
   deepening to dark river-bed blue below. Two soft caustic-style glows
   simulate sun shafts filtering through the water. */
.planet-bg .gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 50% at 50% 0%, rgba(127,234,245,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 25% 25%, rgba(127,234,245,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 35%, rgba(95,168,214,0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-gradient-2) 0%, var(--bg-gradient-1) 45%, var(--bg-dark) 100%);
}

/* "Floating plants" repurposed as drifting kelp / river reeds.
   Tapered vertical shapes that sway gently like submerged plants. */
.floating-plants {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plant {
    position: absolute;
    width: 22px;
    height: 320px;
    background: linear-gradient(180deg,
        rgba(143, 199, 148, 0) 0%,
        rgba(94, 154, 109, 0.35) 30%,
        rgba(58, 110, 74, 0.55) 100%);
    border-radius: 50% 50% 6px 6px / 80% 80% 6px 6px;
    transform-origin: bottom center;
    filter: blur(1.5px);
    opacity: 0.6;
}

.plant.p1 { left: 4%;  bottom: -40px; transform: scale(1.0);  animation: kelpSway 7s ease-in-out infinite;       }
.plant.p2 { left: 16%; bottom: -60px; transform: scale(0.7);  animation: kelpSway 9s ease-in-out infinite 1.2s;  }
.plant.p3 { right: 8%; bottom: -30px; transform: scale(1.15); animation: kelpSway 8s ease-in-out infinite 0.5s;  }
.plant.p4 { right: 22%; bottom: -50px; transform: scale(0.55); animation: kelpSway 6s ease-in-out infinite 2.4s; }
.plant.p5 { left: 42%;  bottom: -70px; transform: scale(0.85); animation: kelpSway 10s ease-in-out infinite 1.8s; }

@keyframes kelpSway {
    0%, 100% { transform: rotate(-4deg) scaleY(1); }
    50%      { transform: rotate( 5deg) scaleY(1.04); }
}

/* Rising bubble field */
.bubble-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(180, 230, 240, 0.25) 35%,
        rgba(127, 234, 245, 0.05) 70%,
        transparent 100%);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.35);
    animation: bubbleRise linear infinite;
}

.bubble.b1 { left: 8%;   width: 14px; height: 14px; animation-duration: 14s; animation-delay: 0s;   }
.bubble.b2 { left: 22%;  width: 8px;  height: 8px;  animation-duration: 11s; animation-delay: 3s;   }
.bubble.b3 { left: 38%;  width: 18px; height: 18px; animation-duration: 17s; animation-delay: 1.5s; }
.bubble.b4 { left: 54%;  width: 6px;  height: 6px;  animation-duration: 9s;  animation-delay: 5s;   }
.bubble.b5 { left: 67%;  width: 12px; height: 12px; animation-duration: 13s; animation-delay: 2s;   }
.bubble.b6 { left: 78%;  width: 10px; height: 10px; animation-duration: 15s; animation-delay: 6s;   }
.bubble.b7 { left: 90%;  width: 16px; height: 16px; animation-duration: 18s; animation-delay: 0.5s; }
.bubble.b8 { left: 47%;  width: 5px;  height: 5px;  animation-duration: 8s;  animation-delay: 7s;   }

@keyframes bubbleRise {
    0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
    8%   { opacity: 0.85; transform: translate(0, -6vh) scale(0.9); }
    50%  { transform: translate(20px, -55vh) scale(1); opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { transform: translate(-15px, -110vh) scale(1.05); opacity: 0; }
}

/* Cursor blob — subtle aqua glow following the cursor */
.cursor-blob {
    position: fixed;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(45, 212, 233, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: 56px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.nav-logo .brand-logo {
    animation: blobPulse 3s ease-in-out infinite;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s var(--ease-bounce);
}

.nav-links a:hover {
    color: var(--green-light);
    transform: translateY(-2px);
}

.btn-connect {
    position: relative;
    padding: 12px 28px;
    background: var(--green-main);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--purple-dark);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}

.btn-connect:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(45, 212, 233, 0.5);
}

.btn-wiggle {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-connect:hover .btn-wiggle {
    left: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(45, 212, 233, 0.15);
    border: 1px solid rgba(45, 212, 233, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-light);
    margin-bottom: 30px;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.badge-blob {
    width: 8px;
    height: 8px;
    background: var(--green-main);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1;
    margin-bottom: 30px;
}

/* Words surface one by one from below (rising through water), overshoot
   slightly, and settle. The highlight lines then get a one-off shimmer
   sweep (see .highlight below). */
.hero-title .title-line {
    display: block;
    color: var(--text-main);
    animation: surfaceIn 0.9s var(--ease-bounce) forwards;
    opacity: 0;
    transform: translateY(42px) scale(0.96);
}

.hero-title .title-line:nth-child(1) { animation-delay: 0.10s; }
.hero-title .title-line:nth-child(2) { animation-delay: 0.24s; }
.hero-title .title-line:nth-child(3) { animation-delay: 0.38s; }
.hero-title .title-line:nth-child(4) { animation-delay: 0.52s; }

.hero-title .title-line.highlight {
    color: var(--green-light);
    text-shadow: 0 0 40px rgba(168, 255, 107, 0.5);
    /* One-off specular sweep across the glowing words after they land. */
    background: linear-gradient(110deg,
        var(--green-light) 42%, #eafff3 50%, var(--green-light) 58%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: surfaceIn 0.9s var(--ease-bounce) forwards,
               titleShimmer 1.6s ease-in-out 1.5s 1;
}

@keyframes surfaceIn {
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleShimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0% 0; }
}

/* The nth-child animation-delay above is a single value, which would apply
   to BOTH animations on the highlight lines (starting the shimmer with the
   entrance). Explicit two-value delays: entrance stagger, then shimmer after
   all four words have landed. */
.hero-title .title-line:nth-child(3).highlight { animation-delay: 0.38s, 1.7s; }
.hero-title .title-line:nth-child(4).highlight { animation-delay: 0.52s, 1.95s; }

@media (prefers-reduced-motion: reduce) {
    .hero-title .title-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-subtitle .glow {
    color: var(--green-light);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    border: none;
    border-radius: 60px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 16px;
    color: var(--purple-dark);
    cursor: pointer;
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(45, 212, 233, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 50px rgba(45, 212, 233, 0.5);
}

.btn-primary .btn-face {
    font-size: 18px;
}

.btn-secondary {
    padding: 18px 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--green-main);
    background: rgba(45, 212, 233, 0.1);
    color: var(--green-light);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
}

.stat-divider {
    width: 20px;
    height: 40px;
    color: rgba(255, 255, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.blorp-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
}

.blorp-card.featured {
    position: relative;
    width: 280px;
    height: 360px;
    background: linear-gradient(145deg, rgba(45, 27, 78, 0.8) 0%, rgba(26, 77, 46, 0.4) 100%);
    border: 2px solid rgba(45, 212, 233, 0.3);
    border-radius: 30px;
    padding: 20px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

.blorp-card.featured > .class-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 64px;
    height: 64px;
    z-index: 2;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(20, 20, 32, 0.85);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

/* Faction badge: the class badge's top-right mirror (same treatment). */
.blorp-card.featured > .faction-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 64px;
    height: 64px;
    z-index: 2;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(20, 20, 32, 0.85);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

.blorp-card.featured:hover > .faction-badge {
    transform: scale(1.08) rotate(4deg);
}

.blorp-card.featured:hover > .class-badge {
    transform: scale(1.08) rotate(-4deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.blorp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 233, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: -1;
}

.blorp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
}

.blorp-svg,
.featured-salmon {
    width: 200px;
    height: 220px;
}

/* Generic salmon-stack: layered PNGs that fill the parent box */
.salmon-stack {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    animation: heroBob 3.5s ease-in-out infinite;
}

.salmon-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.featured-salmon {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

@keyframes heroBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.blorp-svg .blorp-body {
    animation: squish 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes squish {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1.03) scaleY(0.97); }
}

.blorp-svg .antenna-left,
.blorp-svg .antenna-ball-left {
    animation: antennaWiggle 3s ease-in-out infinite;
    transform-origin: bottom;
}

.blorp-svg .antenna-right,
.blorp-svg .antenna-ball-right {
    animation: antennaWiggle 3s ease-in-out infinite 0.5s;
    transform-origin: bottom;
}

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

.blorp-svg .arm-left {
    animation: armWave 2s ease-in-out infinite;
    transform-origin: right;
}

.blorp-svg .arm-right {
    animation: armWave 2s ease-in-out infinite 0.3s;
    transform-origin: left;
}

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

.blorp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blorp-name {
    font-weight: 700;
    font-size: 14px;
}

.blorp-rarity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.blorp-rarity.legendary {
    background: linear-gradient(135deg, var(--yellow-main) 0%, var(--yellow-dark) 100%);
    color: var(--purple-dark);
}

/* Floating Blorps */
.floating-blorp {
    position: absolute;
    animation: floatRandom 5s ease-in-out infinite;
}

.floating-blorp svg,
.floating-blorp .salmon-stack {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.floating-blorp.b1 {
    width: 90px;
    height: 90px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-blorp.b2 {
    width: 70px;
    height: 70px;
    top: 60%;
    right: 5%;
    animation-delay: 1s;
}

.floating-blorp.b3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.floating-blorp.b4 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 5%;
    animation-delay: 0.5s;
}

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(3deg); }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    position: relative;
    padding: var(--section-padding) 60px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(45, 212, 233, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-main);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--green-light);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* ============================================
   Gameplay Section
   ============================================ */
.gameplay {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 77, 46, 0.2) 50%, transparent 100%);
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.gameplay-card {
    position: relative;
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 77, 46, 0.3) 100%);
    border: 1px solid rgba(45, 212, 233, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-bounce), border-color 0.3s ease;
}

.gameplay-card:hover {
    transform: translateY(-10px);
    border-color: rgba(45, 212, 233, 0.5);
}

.gameplay-card .card-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(45, 212, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.gameplay-card:hover .card-blob {
    transform: scale(1.5);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    color: var(--green-main);
}

.card-icon.mine { color: var(--blue-main); }
.card-icon.raid { color: var(--pink-main); }
.card-icon.breed { color: var(--yellow-main); }

.gameplay-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 15px;
}

.gameplay-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.gameplay-card .token {
    color: var(--blue-main);
    font-weight: 700;
}

.gameplay-card .highlight {
    color: var(--pink-main);
    font-weight: 700;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-main);
}

.stat-txt {
    font-size: 12px;
    color: var(--text-dim);
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--green-main);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: gap 0.3s ease;
}

.card-action:hover {
    gap: 10px;
}

.card-action .arrow {
    transition: transform 0.3s var(--ease-bounce);
}

.gameplay-card:hover .card-action .arrow {
    transform: translateX(5px);
}

/* ============================================
   Blorps Showcase Section
   ============================================ */
.blorps {
    overflow: hidden;
}

.species-carousel {
    display: flex;
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 30px;
    overflow-x: auto;
    /* proximity, not mandatory: mandatory snapping grabbed incidental
       horizontal wheel deltas and yanked a full card sideways while the
       user was trying to scroll PAST the section. (See also the wheel
       handler in script.js that routes vertical intent to the page.) */
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.species-carousel::-webkit-scrollbar {
    display: none;
}

.species-card {
    flex: 0 0 320px;
    background: linear-gradient(145deg, rgba(45, 27, 78, 0.7) 0%, rgba(26, 77, 46, 0.4) 100%);
    border: 2px solid rgba(45, 212, 233, 0.2);
    border-radius: 28px;
    padding: 30px;
    scroll-snap-align: center;
    transition: transform 0.4s var(--ease-bounce), border-color 0.3s ease;
}

.species-card:hover,
.species-card.active {
    transform: scale(1.02);
    border-color: rgba(45, 212, 233, 0.5);
}

.species-visual {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.species-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(45, 212, 233, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.species-glow.pink { background: radial-gradient(circle, rgba(255, 107, 205, 0.4) 0%, transparent 70%); }
.species-glow.blue { background: radial-gradient(circle, rgba(107, 207, 255, 0.4) 0%, transparent 70%); }
.species-glow.purple { background: radial-gradient(circle, rgba(201, 177, 255, 0.4) 0%, transparent 70%); }
.species-glow.yellow { background: radial-gradient(circle, rgba(255, 217, 61, 0.4) 0%, transparent 70%); }

.species-visual svg,
.species-visual .class-hero,
.species-visual .salmon-stack {
    width: 160px;
    height: 160px;
    position: relative;
    z-index: 1;
}

.species-visual .class-hero {
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.species-visual .salmon-stack {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.species-visual .salmon-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.species-visual .class-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 48px;
    height: 48px;
    z-index: 2;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(20, 20, 32, 0.85);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.species-card:hover .class-badge,
.species-card.active .class-badge {
    transform: scale(1.1) rotate(-4deg);
}

/* Faction badge mirrors the class badge in the opposite corner. */
.species-visual .faction-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 48px;
    height: 48px;
    z-index: 2;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(20, 20, 32, 0.85);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.species-card:hover .faction-badge,
.species-card.active .faction-badge {
    transform: scale(1.1) rotate(4deg);
}

.species-info h4 {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 5px;
}

.species-tagline {
    display: block;
    font-size: 13px;
    color: var(--green-main);
    font-style: italic;
    margin-bottom: 12px;
}

.species-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.species-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-row span {
    width: 60px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-main) 0%, var(--green-light) 100%);
    border-radius: 10px;
    transition: width 0.8s var(--ease-smooth);
}

.species-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.species-nav-btn {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.species-nav-btn:hover,
.species-nav-btn.active {
    background: var(--green-main);
    transform: scale(1.2);
}

/* ============================================
   Economy Section
   ============================================ */
.economy {
    position: relative;
    overflow: hidden;
}

.economy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.eco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.eco-blob.e1 {
    width: 500px;
    height: 500px;
    background: var(--green-main);
    top: -200px;
    left: -200px;
}

.eco-blob.e2 {
    width: 400px;
    height: 400px;
    background: var(--blue-main);
    bottom: -150px;
    right: -150px;
}

.tokens-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.token-card {
    position: relative;
    padding: 40px;
    background: linear-gradient(145deg, rgba(45, 27, 78, 0.8) 0%, rgba(26, 77, 46, 0.4) 100%);
    border: 2px solid rgba(45, 212, 233, 0.3);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-bounce);
}

.token-card:hover {
    transform: translateY(-8px);
}

.token-card .token-blob {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
}

.token-card.blorp-token .token-blob { background: var(--green-main); }
.token-card.roe-token .token-blob { background: var(--blue-main); }

/* Multichain section: chain cards reuse the token-card shell. */
.token-card.chain-avax .token-blob { background: #e84142; } /* Avalanche red */
.token-card.chain-rh .token-blob { background: #00c805; }   /* Robinhood green */

.chains-bridge-note {
    text-align: center;
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chains-bridge-note img { border-radius: 4px; }

.token-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.token-icon {
    width: 60px;
    height: 60px;
}

.token-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.token-icon svg {
    width: 100%;
    height: 100%;
}

.token-name h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-main);
}

.token-name span {
    font-size: 13px;
    color: var(--text-dim);
}

.token-card > p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.token-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-dim);
    font-size: 14px;
}

.spec-value {
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
}

/* Economy Loop */
.economy-loop {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.loop-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.loop-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.loop-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(45, 27, 78, 0.5);
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.loop-step:hover {
    transform: translateY(-5px);
    background: rgba(45, 212, 233, 0.2);
}

.step-icon {
    font-size: 28px;
}

.loop-step span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.loop-arrow {
    width: 40px;
    height: 20px;
    color: var(--green-main);
    opacity: 0.5;
}

/* ============================================
   Roadmap Section
   ============================================ */
.roadmap {
    background: linear-gradient(180deg, rgba(26, 77, 46, 0.1) 0%, transparent 50%, rgba(26, 77, 46, 0.1) 100%);
}

.roadmap-path {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.path-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green-main) 0%, var(--green-dark) 50%, rgba(45, 212, 233, 0.2) 100%);
    border-radius: 4px;
}

.roadmap-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 50px;
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.item-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    background: var(--bg-dark);
    border: 4px solid rgba(45, 212, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.roadmap-item.completed .item-marker {
    background: var(--green-main);
    border-color: var(--green-main);
}

.roadmap-item.active .item-marker {
    border-color: var(--green-main);
    box-shadow: 0 0 20px rgba(45, 212, 233, 0.5);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(45, 212, 233, 0.5); }
    50% { box-shadow: 0 0 40px rgba(45, 212, 233, 0.8); }
}

.marker-check {
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 20px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: rgba(45, 212, 233, 0.3);
    border-radius: 50%;
}

.roadmap-item.active .marker-dot {
    background: var(--green-main);
}

.item-content {
    background: linear-gradient(145deg, rgba(45, 27, 78, 0.5) 0%, rgba(26, 77, 46, 0.3) 100%);
    border: 1px solid rgba(45, 212, 233, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.roadmap-item:hover .item-content {
    transform: translateX(10px);
    border-color: rgba(45, 212, 233, 0.4);
}

.item-phase {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(45, 212, 233, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-main);
    margin-bottom: 10px;
}

.item-content h4 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 15px;
}

.item-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-content li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.item-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green-main);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: blobFloat 8s ease-in-out infinite;
}

.cta-blob.cb1 {
    width: 300px;
    height: 300px;
    background: rgba(45, 212, 233, 0.3);
    top: 10%;
    left: 10%;
}

.cta-blob.cb2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 107, 205, 0.3);
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.cta-blob.cb3 {
    width: 200px;
    height: 200px;
    background: rgba(107, 207, 255, 0.3);
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 20px 40px;
    font-size: 17px;
}

.cta-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-bounce);
}

.social-btn:hover {
    background: var(--green-main);
    color: var(--purple-dark);
    transform: translateY(-5px);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: rgba(10, 22, 40, 0.8);
    border-top: 1px solid rgba(45, 212, 233, 0.1);
    padding: 80px 60px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .brand-logo {
    height: 48px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--green-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: var(--container-width);
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--green-main);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 120px 40px 60px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .gameplay-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .tokens-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Featured card: auto height so the name/rarity footer always fits
       inside the card (the fixed 320px card couldn't hold the 260px salmon
       container + footer and the pill hung off the bottom edge). Floating
       mini-salmon are hidden — at phone width their offsets land ON the
       card instead of around it. */
    .blorp-showcase {
        height: auto;
    }

    .blorp-card.featured {
        width: 260px;
        height: auto;
    }

    .blorp-container {
        height: 210px;
    }

    .blorp-svg,
    .featured-salmon {
        width: 170px;
        height: 187px;
    }

    .floating-blorp {
        display: none;
    }

    section {
        padding: var(--section-padding) 20px;
    }

    .loop-flow {
        flex-direction: column;
    }

    .loop-arrow {
        transform: rotate(90deg);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer {
        padding: 60px 20px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ============================================
   Animations on Scroll (add via JS)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Wallet Dropdown
   ============================================ */
.wallet-dropdown-container {
    position: relative;
}

.wallet-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(165deg, rgba(30, 45, 60, 0.98) 0%, rgba(15, 25, 40, 0.98) 100%);
    border: 1px solid rgba(45, 212, 233, 0.2);
    border-radius: 16px;
    padding: 16px;
    min-width: 220px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 1000;
}

.wallet-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(30, 45, 60, 0.98) 0%, rgba(30, 45, 60, 0.98) 50%, transparent 50%);
    border-left: 1px solid rgba(45, 212, 233, 0.2);
    border-top: 1px solid rgba(45, 212, 233, 0.2);
    transform: rotate(45deg);
}

.wallet-dropdown.show {
    display: block;
    animation: dropdownSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dropdown-info {
    flex: 1;
}

.dropdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.dropdown-address {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.dropdown-disconnect {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-disconnect:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.4);
    color: #f87171;
}

.dropdown-disconnect svg {
    transition: transform 0.2s ease;
}

.dropdown-disconnect:hover svg {
    transform: translateX(2px);
}

/* ============================================
   Live Stats Strip (landing)
   ============================================ */
.live-stats {
    padding: 0 24px;
    margin: -20px auto 40px;
    max-width: 1100px;
}

.live-stats-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.live-stat {
    flex: 1;
    min-width: 150px;
    max-width: 240px;
    text-align: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(45, 212, 233, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.live-stat-value {
    display: block;
    font-family: 'Lilita One', cursive;
    font-size: 30px;
    color: var(--green-main, #2dd4e9);
    margin-bottom: 4px;
}

.live-stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Start in 3 Steps (landing)
   ============================================ */
.start-steps {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    position: relative;
    padding: 28px 24px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 233, 0.4);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 22px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lilita One', cursive;
    font-size: 17px;
    color: #051828;
    background: var(--green-main, #2dd4e9);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(45, 212, 233, 0.4);
}

.step-card h3 {
    margin: 6px 0 10px;
    font-size: 19px;
    color: #fff;
}

.step-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
}

.steps-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 36px;
}

.steps-learn-link {
    color: var(--green-main, #2dd4e9);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.steps-learn-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .live-stats-strip {
        gap: 10px;
    }

    .live-stat {
        min-width: 130px;
        padding: 14px 12px;
    }

    .live-stat-value {
        font-size: 24px;
    }
}

/* ============================================
   Landing wow-pass (depth scroll, reveals, waves,
   card glare, faction wheel, live ticker)
   ============================================ */

/* ---- 1. Depth-scroll: descend into the abyss ----
   script.js sets --depth (0 at the surface, 1 at the bottom of the page)
   on <html>; this overlay darkens and cools the fixed background only,
   so foreground contrast is untouched. */
:root { --depth: 0; }

.depth-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(2, 8, 18, 0.55) 0%,
        rgba(1, 4, 12, 0.85) 100%);
    opacity: calc(var(--depth) * 0.88);
    transition: opacity 0.2s linear;
}

/* Sunlight fades with depth: stars (surface glints) and plants dim.
   filter:opacity() rather than opacity — the stars' surfaceShimmer
   keyframes animate the opacity property and would override it. */
.planet-bg .stars { filter: opacity(calc(1 - var(--depth) * 0.85)); }
.planet-bg .floating-plants { opacity: calc(1 - var(--depth) * 0.5); }

/* ---- 3. Scroll-reveal choreography ----
   script.js sets --reveal-delay per element for the bubble-rise stagger.
   Side entrances for the two token cards. */
.fade-in {
    transition-delay: var(--reveal-delay, 0s);
}

.fade-in.reveal-left  { transform: translateX(-46px); }
.fade-in.reveal-right { transform: translateX(46px); }

.fade-in.reveal-left.visible,
.fade-in.reveal-right.visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---- 11. Wave dividers between sections ---- */
.wave-divider {
    height: 60px;
    margin: -10px 0;
    overflow: hidden;
    pointer-events: none;
}

.wave-divider svg {
    width: 200%;
    height: 100%;
    animation: waveDrift 14s ease-in-out infinite alternate;
}

.wave-divider path {
    fill: none;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.wave-divider .w1 { stroke: rgba(45, 212, 233, 0.16); }
.wave-divider .w2 { stroke: rgba(95, 168, 214, 0.10); }

@keyframes waveDrift {
    from { transform: translateX(0); }
    to   { transform: translateX(-8%); }
}

@media (prefers-reduced-motion: reduce) {
    .wave-divider svg { animation: none; }
}

/* ---- 10. Card hover upgrades: glare + icon life ----
   .card-glare is injected by script.js into each [data-tilt] card; the tilt
   handler feeds --gx/--gy so the specular highlight tracks the cursor. */
.card-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameplay-card:hover .card-glare { opacity: 1; }

/* Icons come alive on hover: caviar jiggles, swords clash, heart beats. */
.gameplay-card:hover .card-icon.mine  { animation: iconJiggle 0.55s var(--ease-bounce); }
.gameplay-card:hover .card-icon.raid  { animation: iconClash 0.55s ease-in-out; }
.gameplay-card:hover .card-icon.breed { animation: iconBeat 0.7s ease-in-out; }

@keyframes iconJiggle {
    25% { transform: rotate(-7deg) scale(1.08); }
    55% { transform: rotate(6deg) scale(1.05); }
    80% { transform: rotate(-2deg) scale(1.02); }
}

@keyframes iconClash {
    30% { transform: translateX(-4px) rotate(-8deg); }
    60% { transform: translateX(4px) rotate(8deg) scale(1.1); }
}

@keyframes iconBeat {
    25% { transform: scale(1.15); }
    45% { transform: scale(0.98); }
    65% { transform: scale(1.1); }
}

/* ---- 8. Faction wheel ---- */
.factions {
    padding: 100px 5% 80px;
    position: relative;
}

.faction-wheel {
    --wheel-r: clamp(140px, 22vw, 220px);
    position: relative;
    width: calc(var(--wheel-r) * 2 + 130px);
    height: calc(var(--wheel-r) * 2 + 130px);
    margin: 40px auto 0;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Never wider than the gap between the side nodes: node half-width is
       54px (+12px breathing room), so the text can't bleed into the circles
       at ANY wheel radius. The 240px cap keeps desktop lines readable. */
    width: min(240px, calc((var(--wheel-r) - 66px) * 2));
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.wheel-center-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
}

.wheel-center-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.wheel-center-text .fw-beats  { color: var(--green-light); font-weight: 700; }
.wheel-center-text .fw-threat { color: var(--pink-main); font-weight: 700; }

.faction-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    margin: -54px 0 0 -54px;
    padding: 0;
    color: inherit;
    transform: rotate(var(--angle)) translateY(calc(var(--wheel-r) * -1)) rotate(calc(var(--angle) * -1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(10, 20, 36, 0.75);
    border: 1px solid rgba(45, 212, 233, 0.25);
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s var(--ease-bounce), border-color 0.25s ease,
                box-shadow 0.25s ease, opacity 0.25s ease;
}

.faction-glyph { font-size: 26px; line-height: 1; }

/* Real faction badge art (same assets as the salmon cards) in the wheel. */
.faction-glyph-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.faction-name {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-main);
}

/* Hover/tap states: the chosen node pops; its prey glow green, its
   predators glow red, bystanders recede. */
.faction-wheel.engaged .faction-node { opacity: 0.35; }

.faction-wheel .faction-node.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.18);
    transform: rotate(var(--angle)) translateY(calc(var(--wheel-r) * -1)) rotate(calc(var(--angle) * -1)) scale(1.14);
    z-index: 2;
}

.faction-wheel .faction-node.beats {
    opacity: 1;
    border-color: rgba(168, 255, 107, 0.8);
    box-shadow: 0 0 22px rgba(168, 255, 107, 0.25);
}

.faction-wheel .faction-node.threat {
    opacity: 1;
    border-color: rgba(255, 138, 108, 0.8);
    box-shadow: 0 0 22px rgba(255, 138, 108, 0.25);
}

.faction-footnote {
    margin-top: 34px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
}

@media (max-width: 560px) {
    .faction-wheel { --wheel-r: 120px; }
    .faction-node { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
    .faction-glyph { font-size: 20px; }
    .faction-glyph-img { width: 26px; height: 26px; }
    .faction-name { font-size: 11px; }
    .wheel-center-title { font-size: 16px; }
    .wheel-center-text { font-size: 11px; }
    /* mobile nodes are 88px (44px half) - recompute the safe gap */
    .wheel-center { width: calc((var(--wheel-r) - 56px) * 2); }
}

/* ---- 7. Live river activity ticker ----
   Pinned to the top of the hero, between the nav and the headline, so real
   player activity is the first thing in the viewport: inline label on the
   left, edge-faded marquee filling the rest of the row. Absolutely
   positioned so its late arrival (fetch) never shifts the headline. */
.hero {
    position: relative;
}

.river-ticker {
    position: absolute;
    left: 0;
    right: 0;
    top: 104px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 60px;
}

/* Make room for the strip between the fixed nav and the (vertically
   centered) headline — without this the title can start as high as ~y130
   on short viewports and collide with the ticker. */
.hero {
    padding-top: 170px;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--green-main);
    white-space: nowrap;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-main);
    box-shadow: 0 0 8px var(--green-main);
    animation: tickerPulse 2.2s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: inline-flex;
    gap: 14px;
    padding: 2px 0;
    white-space: nowrap;
    will-change: transform;
    animation: tickerScroll var(--ticker-secs, 40s) linear infinite;
}

.river-ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 20, 36, 0.6);
    border: 1px solid rgba(45, 212, 233, 0.18);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ticker-item .t-actor { color: #fff; font-weight: 700; }
.ticker-item .t-time  { font-size: 11px; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .ticker-dot { animation: none; }
}

/* Narrow screens: drop the label text (keep the live dot) and tuck the
   ticker closer to the edges so items get the width. */
@media (max-width: 768px) {
    .river-ticker { padding: 0 20px; gap: 10px; top: 84px; }
    .ticker-label-text { display: none; }
    .hero { padding-top: 150px; }
}

/* Ticker actors that resolved to X handles. */
.t-actor-link { color: var(--green-light, #4ade80); text-decoration: none; font-weight: 700; }
.t-actor-link:hover { text-decoration: underline; }
