/* ==========================================================================
   WILD LEDGER DAO - ANIMAL CREATIVES & SPECIAL EFFECTS
   Proof of Biology Telemetry & Dedicated Wildlife Corridor System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOP NAVIGATION EFFECTS TOGGLE BUTTONS
   -------------------------------------------------------------------------- */

.toggle-effects-btn-nav {
    margin-top: 0 !important;
    padding: 8px 14px;
    height: 38px;
    font-size: 0.74rem;
    box-sizing: border-box;
}

.nav-container {
    z-index: 10002 !important;
}

.mobile-nav-right {
    display: none;
}

/* Two-row header layout for desktop */
@media (min-width: 1025px) {
    nav {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 8px 40px 8px !important;
        row-gap: 6px !important;
    }

    .nav-logo {
        flex: 0 0 auto !important;
    }

    .nav-logo img {
        height: 50px !important;
    }

    .nav-logo-text {
        font-size: 1.5rem !important;
    }

    .nav-cta {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .nav-cta .btn {
        padding: 9px 20px !important;
        font-size: 0.76rem !important;
    }

    .nav-cta .toggle-effects-btn-nav {
        padding: 7px 12px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
    }

    .nav-links {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 26px !important;
        padding-top: 6px !important;
        margin-top: 2px !important;
        border-top: 1px solid rgba(0, 243, 255, 0.14) !important;
    }

    .nav-links a {
        padding: 3px 0 !important;
        font-size: 0.80rem !important;
    }

    .hero {
        padding-top: 185px !important;
    }

    .hero-content {
        margin-top: 20px !important;
    }
}

@media (max-width: 1024px) {
    nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        min-height: 64px !important;
        padding: 10px 20px !important;
    }

    .nav-logo {
        order: 1 !important;
        flex: 0 1 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .nav-logo img {
        height: 42px !important;
    }

    .nav-logo-text {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
    }

    .mobile-nav-right {
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        flex: 0 0 auto !important;
        position: relative !important;
        z-index: 10005 !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 38px !important;
        height: 36px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 1px solid rgba(0, 243, 255, 0.35) !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 10005 !important;
    }

    .mobile-menu-btn:hover {
        border-color: var(--neon-cyan) !important;
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.3) !important;
    }

    .mobile-menu-btn span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        min-height: 2px !important;
        flex-shrink: 0 !important;
        background: var(--neon-cyan) !important;
        margin: 0 !important;
        border-radius: 1px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    .toggle-effects-mobile {
        margin-top: 0 !important;
        padding: 6px 12px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10005 !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Effects button in expanded mobile menu */
    .nav-container.nav-open .nav-cta .toggle-effects-btn-nav {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 100% !important;
        height: 38px !important;
        padding: 8px 16px !important;
        font-size: 0.76rem !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10005 !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Keep top bar intact when nav is open */
    .nav-container.nav-open nav {
        padding: 10px 20px 20px !important;
        flex-wrap: wrap !important;
        row-gap: 12px !important;
        height: auto !important;
    }

    .nav-container.nav-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-container.nav-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-container.nav-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-container.nav-open .nav-links {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(0, 243, 255, 0.15) !important;
        gap: 10px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .nav-container.nav-open .nav-links li {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-container.nav-open .nav-links a {
        display: inline-block !important;
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    /* Mobile Fix 3: Stack / reflow CTA buttons to eliminate horizontal overflow on ~360px */
    .nav-container.nav-open .nav-cta {
        order: 4 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 12px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .nav-container.nav-open .nav-cta .btn {
        flex: 1 1 calc(50% - 6px) !important;
        text-align: center !important;
        padding: 10px 8px !important;
        font-size: 0.74rem !important;
        box-sizing: border-box !important;
    }

    .nav-container.nav-open .nav-cta #launchAppBtn {
        flex: 1 1 100% !important;
    }

    /* Hero section clear gap in mobile mode */
    .hero {
        padding-top: 130px !important;
        align-items: flex-start !important;
    }

    .hero-content {
        margin-top: 15px !important;
        gap: 35px !important;
    }

    .hero-visual {
        order: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-image-container {
        margin: 10px auto 0 !important;
        max-width: 440px !important;
        width: 100% !important;
    }

    /* Mobile Fix 9: Reposition scroll-to-top button above bottom Wildlife Patrol dock */
    .scroll-top-btn,
    #scrollTopBtn {
        bottom: 115px !important;
        right: 16px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 130px 16px 60px !important;
    }

    .hero-visual {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }

    .hero-image-container {
        margin: 12px auto 0 !important;
        max-width: 380px !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 8px 12px !important;
    }

    .nav-logo {
        gap: 8px !important;
    }

    .nav-logo img {
        height: 34px !important;
    }

    .nav-logo-text {
        font-size: 0.98rem !important;
    }

    .mobile-nav-right {
        gap: 6px !important;
    }

    .toggle-effects-mobile {
        padding: 5px 9px !important;
        font-size: 0.68rem !important;
        height: 32px !important;
    }

    .mobile-menu-btn {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        gap: 4px !important;
    }

    .mobile-menu-btn span {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        min-height: 2px !important;
        flex-shrink: 0 !important;
        background: var(--neon-cyan) !important;
        margin: 0 !important;
    }

    .hero {
        padding: 125px 12px 50px !important;
    }

    .hero-visual {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .hero-image-container {
        margin: 10px auto 0 !important;
        max-width: 330px !important;
    }
}

/* --------------------------------------------------------------------------
   2. DEDICATED WILDLIFE CORRIDOR SECTIONS (Between Static Content Blocks)
   -------------------------------------------------------------------------- */

.wildlife-corridor-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    background: #04040c;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
    transition: all 0.3s ease;
}

/* Dedicated Telemetry HUD Strip at top of corridor */
.corridor-hud-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: rgba(8, 8, 18, 0.95);
    border-bottom: 1px solid rgba(0, 243, 255, 0.12);
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-secondary);
    gap: 15px;
    flex-wrap: wrap;
    z-index: 10;
    position: relative;
}

.corridor-hud-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.corridor-radar-ping {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: blink 1.2s infinite;
}

.corridor-radar-ping.ping-green {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.corridor-radar-ping.ping-cyan {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.corridor-radar-ping.ping-orange {
    background: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange);
}

.corridor-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.corridor-telemetry-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.corridor-stat {
    color: var(--text-muted);
}

.corridor-stat.stat-alt {
    color: var(--neon-cyan);
}

.corridor-stat.stat-secure {
    color: var(--neon-green);
    font-weight: 600;
}

/* Corridor Stage Area Where Animals Traverse */
.corridor-stage {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

/* Dedicated corridor container heights to accommodate full animal, flagpoles and speech banners without clipping */
.corridor-elephant .corridor-stage {
    height: 320px;
}

.corridor-predator .corridor-stage {
    height: 260px;
}

.corridor-rhino .corridor-stage {
    height: 240px;
}

.corridor-vulture .corridor-stage {
    height: 210px;
}

/* Corridor Themed Backgrounds */
.corridor-vulture {
    background: linear-gradient(180deg, #020208 0%, rgba(0, 40, 60, 0.35) 50%, #03030a 100%);
}

.corridor-vulture .corridor-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.corridor-elephant {
    background: linear-gradient(180deg, #03030a 0%, rgba(20, 40, 15, 0.35) 50%, #020308 100%);
}

.corridor-elephant .corridor-stage::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(57, 255, 20, 0.12) 0%, transparent 100%);
    border-bottom: 2px solid rgba(57, 255, 20, 0.3);
    pointer-events: none;
}

.corridor-rhino {
    background: linear-gradient(180deg, #020308 0%, rgba(10, 30, 45, 0.35) 50%, #03030a 100%);
}

.corridor-rhino .corridor-stage::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(0, 243, 255, 0.12) 0%, transparent 100%);
    border-bottom: 2px dashed rgba(0, 243, 255, 0.4);
    pointer-events: none;
}

.corridor-predator {
    background: linear-gradient(180deg, #03030a 0%, rgba(35, 15, 30, 0.35) 50%, #020208 100%);
}

.corridor-predator .corridor-stage::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(255, 102, 0, 0.12) 0%, transparent 100%);
    border-bottom: 2px solid rgba(255, 102, 0, 0.35);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. CORRIDOR ACTORS & ACCESSORIES (STRICT LEFT-TO-RIGHT READING)
   -------------------------------------------------------------------------- */

.corridor-actor {
    position: absolute;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    will-change: left, top;
    transition: filter 0.25s ease;
}

.corridor-actor:hover {
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.9));
    z-index: 20;
}

.corridor-actor.paused {
    animation-play-state: paused !important;
}

.corridor-actor.paused * {
    animation-play-state: paused !important;
}

/* Visual Sprite Frame */
.actor-sprite-wrapper {
    position: relative;
    display: inline-block;
}

.actor-sprite {
    display: block;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    transition: transform 0.2s ease;
}

.corridor-actor:hover .actor-sprite {
    transform: scale(1.03);
}

/* GPS Telemetry Beacon / Collar Glow */
.actor-gps-beacon {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-green);
    animation: gps-beacon-pulse 1.8s infinite ease-in-out;
    pointer-events: none;
}

.actor-gps-beacon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.8;
    animation: beacon-ripple 1.8s infinite ease-out;
}

@keyframes gps-beacon-pulse {
    0%, 100% {
        transform: scale(0.9);
        box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-green);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 25px var(--neon-cyan), 0 0 45px var(--neon-green);
    }
}

@keyframes beacon-ripple {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Horn Protection Hologram on Rhino (aligned to horn at head) */
.rhino-horn-shield {
    position: absolute;
    top: 24%;
    width: 48px;
    height: 48px;
    border: 2px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: rotate-shield 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.45);
}

.rhino-horn-shield.shield-facing-right {
    left: auto;
    right: 8%;
}

.rhino-horn-shield.shield-facing-left {
    right: auto;
    left: 8%;
}

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

/* --------------------------------------------------------------------------
   STRICT LEFT-TO-RIGHT BANNERS & FLAGS (NEVER REVERSED)
   -------------------------------------------------------------------------- */

.elephant-waving-flag,
.vulture-banner,
.actor-speech-bubble {
    direction: ltr !important;
    unicode-bidi: normal !important;
    text-align: left !important;
    transform-style: flat;
}

/* Elephant Flagpole & Fluttering Flag */
.elephant-flag-pole {
    position: absolute;
    top: 5%;
    width: 4px;
    height: 125px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    border-radius: 2px;
    transform-origin: bottom center;
    animation: flag-pole-bob 2.8s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

.elephant-flag-pole::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 12px #ffd700;
}

.elephant-waving-flag {
    position: absolute;
    top: 6px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.95), rgba(0, 243, 255, 0.95));
    color: #030308;
    padding: 6px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: flag-flutter 2.2s infinite ease-in-out;
}

/* Flag orientation when walking left (elephant faces left, flagpole on rear at right, flag waves right) */
.flag-facing-left .elephant-flag-pole {
    left: auto;
    right: 32%;
}

.flag-facing-left .elephant-waving-flag {
    left: 4px;
    right: auto;
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
}

.flag-facing-left .elephant-waving-flag::after {
    content: '';
    position: absolute;
    right: -12px;
    left: auto;
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 12px solid rgba(0, 243, 255, 0.95);
    border-right: none;
}

/* Flag orientation when walking right (elephant faces right, flagpole on rear at left, flag waves left) */
.flag-facing-right .elephant-flag-pole {
    left: 32%;
    right: auto;
}

.flag-facing-right .elephant-waving-flag {
    left: auto;
    right: 4px;
    border-radius: 8px 0 0 8px;
    transform-origin: right center;
}

.flag-facing-right .elephant-waving-flag::after {
    content: '';
    position: absolute;
    left: -12px;
    right: auto;
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 12px solid rgba(57, 255, 20, 0.95);
    border-left: none;
}

@keyframes flag-pole-bob {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(5deg); }
}

@keyframes flag-flutter {
    0%, 100% {
        transform: rotate(0deg) skewY(0deg);
    }
    30% {
        transform: rotate(-2deg) skewY(-2deg);
    }
    70% {
        transform: rotate(2deg) skewY(2deg);
    }
}

/* Cape Vulture Aero Banner */
.vulture-tether {
    position: absolute;
    top: 45%;
    width: 35px;
    height: 2px;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: tether-sway 2.5s infinite ease-in-out;
}

.vulture-banner {
    position: absolute;
    top: 15%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
    background: rgba(3, 3, 12, 0.94);
    border: 1.5px solid var(--neon-cyan);
    padding: 6px 14px;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.45);
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    color: #ffffff;
    animation: banner-wave 3s infinite ease-in-out;
}

.vulture-banner-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.vulture-banner-row.banner-row-top {
    font-weight: 700;
}

.vulture-banner-row.banner-row-bottom {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.vulture-banner .banner-icon {
    font-size: 0.95rem;
}

.vulture-banner .banner-tag {
    background: rgba(0, 243, 255, 0.18);
    color: var(--neon-cyan);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.70rem;
    letter-spacing: 0.8px;
}

.vulture-banner .banner-highlight {
    color: var(--neon-cyan);
}

/* Vulture flying right-to-left (facing left, banner trails to right) */
.vulture-facing-left .vulture-tether {
    left: 98%;
    right: auto;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    transform-origin: left center;
}

.vulture-facing-left .vulture-banner {
    left: calc(98% + 30px);
    right: auto;
    border-left: 4px solid var(--neon-green);
    border-radius: 0 4px 4px 0;
    transform-origin: left center;
}

/* Vulture flying left-to-right (facing right, banner trails to left - NO MIRROR ON TEXT!) */
.vulture-facing-right .vulture-tether {
    right: 98%;
    left: auto;
    background: linear-gradient(90deg, transparent, var(--neon-cyan));
    transform-origin: right center;
}

.vulture-facing-right .vulture-banner {
    right: calc(98% + 30px);
    left: auto;
    border-right: 4px solid var(--neon-green);
    border-radius: 4px 0 0 4px;
    transform-origin: right center;
}

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

@keyframes banner-wave {
    0%, 100% { transform: rotate(-1deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-3px); }
}

/* Floating Cyber Speech & Status Badges (Rhino, Lion, Leopard) */
.actor-speech-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--border-glow);
    padding: 7px 15px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.76rem;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.35);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bubble-float 3s infinite ease-in-out;
    pointer-events: none;
}

.actor-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(10, 10, 20, 0.95) transparent;
    display: block;
    width: 0;
}

.actor-speech-bubble.badge-rhino {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.45);
}

.actor-speech-bubble.badge-rhino .badge-highlight {
    color: var(--neon-cyan);
    font-weight: 700;
}

.actor-speech-bubble.badge-lion {
    border-color: var(--neon-orange);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.45);
}

.actor-speech-bubble.badge-lion .badge-highlight {
    color: var(--neon-orange);
    font-weight: 700;
}

.actor-speech-bubble.badge-leopard {
    border-color: var(--neon-pink);
    box-shadow: 0 0 25px rgba(255, 0, 153, 0.45);
}

.actor-speech-bubble.badge-leopard .badge-highlight {
    color: var(--neon-pink);
    font-weight: 700;
}

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

/* Footprint Telemetry Ripple */
.actor-footprint-ping {
    position: absolute;
    bottom: 0;
    width: 24px;
    height: 8px;
    border: 1px solid var(--neon-green);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.3);
    animation: footprint-ripple 1.4s infinite ease-out;
    pointer-events: none;
}

@keyframes footprint-ripple {
    0% {
        transform: scale(0.3);
        opacity: 0.9;
        box-shadow: 0 0 5px var(--neon-green);
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
        box-shadow: 0 0 20px var(--neon-green);
    }
}

/* --------------------------------------------------------------------------
   4. STATIC ANIMAL CARDS (UNOBSTRUCTED ANIMAL VIEW)
   -------------------------------------------------------------------------- */

.wildlife-sanctuary-section {
    padding: 100px 40px;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 24, 0.95) 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    overflow: hidden;
}

/* Species Filter Tabs */
.species-tabs-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.species-tab-btn {
    background: rgba(15, 15, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.species-tab-btn:hover {
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.species-tab-btn.active {
    background: rgba(0, 243, 255, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.species-tab-btn .tab-badge {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Habitat Cards Grid */
.habitat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.habitat-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.habitat-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.25), 0 0 30px rgba(57, 255, 20, 0.15);
    transform: translateY(-6px);
}

/* Card HUD Bar: Dedicated Header Strip ABOVE the Animal Image */
.card-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(10, 10, 20, 0.96);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.card-tag-pill {
    background: rgba(3, 3, 10, 0.88);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-safe-indicator {
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.card-safe-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

/* Card Visual Wrapper: Dedicated 100% to displaying unobstructed artwork */
.card-visual-wrapper {
    position: relative;
    height: 270px;
    background: radial-gradient(circle at center, rgba(16, 22, 38, 0.9) 0%, rgba(3, 3, 10, 0.98) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.12);
}

.card-visual-img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.75));
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.habitat-card:hover .card-visual-img {
    transform: scale(1.05);
}

/* Banner Quote Strip: Positioned cleanly BELOW the animal image */
.card-banner-quote {
    position: static;
    margin: 0;
    background: rgba(12, 12, 24, 0.96);
    border: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    border-left: 4px solid var(--neon-green);
    padding: 10px 18px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    color: #ffffff;
    box-shadow: none;
}

.card-banner-quote.quote-rhino {
    border-left-color: var(--neon-cyan);
}

.card-banner-quote.quote-vulture {
    border-left-color: var(--neon-pink);
}

/* Card Content Body */
.card-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-group {
    margin-bottom: 16px;
}

.card-species-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-species-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-animal-quote {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    border-left: 2px solid rgba(0, 243, 255, 0.3);
    padding-left: 14px;
}

/* Live Telemetry Data Grid */
.telemetry-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: rgba(3, 3, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.telemetry-metric {
    display: flex;
    flex-direction: column;
}

.telemetry-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.telemetry-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.02rem;
    color: var(--neon-green);
    font-weight: 600;
}

.telemetry-val.val-cyan {
    color: var(--neon-cyan);
}

/* Card Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.vote-count-group {
    display: inline-flex;
    align-items: center;
    white-space: nowrap !important;
}

.btn-cheer {
    flex: 1;
    background: rgba(57, 255, 20, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 10px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap !important;
    text-align: center;
}

.btn-cheer:hover {
    background: rgba(57, 255, 20, 0.25);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transform: translateY(-2px);
}

.btn-sponsor {
    flex: 1;
    background: var(--gradient-cyber);
    color: var(--bg-dark);
    padding: 10px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap !important;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-sponsor:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE CONSERVATION IMPACT CALCULATOR
   -------------------------------------------------------------------------- */

.impact-calculator-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
    margin-top: 40px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 35px;
}

.calculator-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.calculator-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Preset Buttons */
.contribution-presets {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover, .preset-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
}

/* Slider Controls */
.slider-control-group {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.slider-value-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.impact-slider {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.impact-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.impact-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Result Metrics Showcase */
.calculator-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.calc-result-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 255, 20, 0.2);
    padding: 22px 18px;
    border-radius: 8px;
    text-align: center;
}

.calc-result-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.calc-result-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 5px;
}

.calc-result-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calculator-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. WILDLIFE PATROL CONTROLLER DOCK & MOBILE RESPONSIVENESS
   -------------------------------------------------------------------------- */

.wildlife-patrol-dock {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.94);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 243, 255, 0.25);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: calc(100vw - 50px);
}

.dock-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dock-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 12px;
}

.dock-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 1.5s infinite;
}

.dock-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.dock-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dock-animal-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dock-animal-btn:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.dock-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dock-toggle-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dock-toggle-btn:hover {
    background: rgba(0, 243, 255, 0.2);
}

.dock-minimize-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dock-minimize-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Minimized Floating Pill Mode */
.wildlife-patrol-dock.minimized {
    padding: 6px 14px;
    border-radius: 20px;
}

.wildlife-patrol-dock.minimized .dock-buttons,
.wildlife-patrol-dock.minimized .dock-title,
.wildlife-patrol-dock.minimized .dock-toggle-btn {
    display: none !important;
}

.wildlife-patrol-dock.minimized .dock-status-group {
    border-right: none;
    padding-right: 0;
}

/* --------------------------------------------------------------------------
   7. DOSSIER MODAL & PARTICLES
   -------------------------------------------------------------------------- */

.wildlife-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wildlife-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.wildlife-modal {
    background: var(--bg-panel);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.35);
    padding: 35px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.wildlife-modal-backdrop.open .wildlife-modal {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    transform: rotate(90deg);
}

.cheer-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10005;
    animation: particle-fly 1.6s forwards ease-out;
}

@keyframes particle-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.4) rotate(var(--rot));
    }
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS & EFFECTS OFF
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .calculator-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop footer bottom margin/padding vs floating Wildlife Patrol dock */
footer {
    padding: 80px 40px 115px !important;
}

/* Reduced size and padding of bottom Effects button so it does not crowd GDPR label */
footer #toggleEffectsBtn.toggle-effects-btn {
    padding: 5px 12px !important;
    font-size: 0.68rem !important;
    margin-top: 8px !important;
    height: auto !important;
    border-radius: 14px !important;
}

/* Hero Section full Rhino image gap */
.hero-image-caption {
    margin-top: 12px;
    background: rgba(3, 3, 10, 0.92);
    border: 1px solid var(--neon-cyan);
    padding: 9px 14px;
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.25);
    border-radius: 4px;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.hero-caption-quote {
    color: var(--neon-cyan);
    font-weight: 700;
}

.hero-caption-live {
    color: var(--neon-green);
    font-size: 0.68rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .wildlife-corridor-section .corridor-stage {
        height: 210px;
    }

    .corridor-elephant .corridor-stage {
        height: 250px !important;
    }

    .corridor-predator .corridor-stage {
        height: 220px !important;
    }

    .corridor-hud-strip {
        padding: 8px 14px;
        font-size: 0.68rem;
    }

    .wildlife-patrol-dock {
        bottom: 12px;
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .dock-header-row {
        justify-content: space-between;
        width: 100%;
    }

    .dock-status-group {
        border-right: none;
        padding-right: 0;
    }

    .dock-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        justify-content: space-between;
    }

    .dock-animal-btn {
        flex: 1 1 calc(20% - 6px);
        min-width: 48px;
        padding: 7px 4px;
        font-size: 0.72rem;
        justify-content: center;
        text-align: center;
    }

    /* Extra padding at bottom of footer so fixed dock never covers footer content or buttons */
    footer {
        padding-bottom: 160px !important;
    }

    .footer-bottom {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .card-actions {
        gap: 6px !important;
    }

    .btn-cheer,
    .btn-sponsor {
        padding: 9px 5px !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 600px) {
    .wildlife-sanctuary-section {
        padding: 70px 18px;
    }

    .habitat-cards-grid {
        grid-template-columns: 1fr;
    }

    .card-visual-wrapper {
        height: 230px;
    }

    .calculator-results-grid {
        grid-template-columns: 1fr;
    }

    .impact-calculator-container {
        padding: 24px 16px;
    }

    .species-tab-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* When Effects Are Toggled Off: Hide all corridors, patrol actors and dock */
body.effects-off .wildlife-corridor-section,
body.effects-off #wildlife-patrol-viewport,
body.effects-off .wildlife-patrol-dock {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .corridor-actor,
    .vulture-banner,
    .elephant-waving-flag,
    .elephant-flag-pole,
    .actor-speech-bubble,
    .actor-gps-beacon,
    .rhino-horn-shield {
        animation: none !important;
    }
}
