/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-dark: #2a2a2a;
    --primary-green: #00ff88;
    --secondary-green: #39ff14;
    --bright-green: #7fff00;
    --glow-green: #00ff88;
    --text-light: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --shadow: rgba(0, 255, 136, 0.3);
    --shadow-bright: rgba(0, 255, 136, 0.6);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--accent-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
    width: 100%;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.nav-brand .logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--shadow);
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
    text-shadow: 0 0 10px var(--shadow);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-green), var(--bright-green));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    color: var(--primary-dark);
    box-shadow: 0 0 20px var(--shadow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--shadow-bright);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.cta-button.secondary:hover {
    background: var(--primary-green);
    color: var(--primary-dark);
    box-shadow: 0 0 20px var(--shadow);
}

.nav-cta {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hero-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-shadow: 0 0 20px var(--shadow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Raccoon Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.raccoon-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.raccoon-image {
    width: 300px;
    height: auto;
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.3));
    transition: all 0.3s ease;
    background: transparent;
}

.raccoon-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.5));
}



.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.joint, .leaf, .sparkle, .rocket {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
}

.joint {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.leaf {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.sparkle {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.rocket {
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.about-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary-green);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.about-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Community Section */
.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 25px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.community-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
    border-color: var(--primary-green);
}

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    font-weight: 600;
}

.meme-gallery h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-green);
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.meme-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.meme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--primary-green);
}

.meme-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.meme-card p {
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-green), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.footer-social-link:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.social-icon {
    font-size: 1.1rem;
}

.social-text {
    white-space: nowrap;
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav-links a:hover {
    color: var(--primary-green);
}

.footer-contract {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-contract p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contract-address {
    color: var(--primary-green);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, var(--primary-green), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.contract-address:hover {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    transform: scale(1.02);
}

.footer-disclaimer {
    text-align: center;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 30px var(--shadow);
    }
    to {
        text-shadow: 0 0 40px var(--shadow-bright), 0 0 50px var(--shadow);
    }
}

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

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

/* Game Section Styles */
.game {
    background: linear-gradient(135deg, var(--accent-dark), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.game-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.game-info {
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.game-stats {
    margin-bottom: 2rem;
}

.game-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.game-stats .stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-value {
    color: var(--primary-green);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--shadow);
}


.game-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    border: 3px solid var(--primary-green);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    box-shadow: 0 0 30px var(--shadow);
    max-width: 100%;
    height: auto;
}

.game-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    z-index: 10;
}

.message-content {
    text-align: center;
    color: var(--text-light);
    max-width: 300px;
}

.message-content h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.message-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#start-game-btn {
    margin: 1rem 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--bright-green));
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

#start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, var(--bright-green), var(--primary-green));
}

#start-game-btn:active {
    transform: translateY(0);
}

.instructions {
    background: rgba(0, 255, 136, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-top: 1rem;
}

.instructions p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.instructions strong {
    color: var(--primary-green);
}

/* Game Animation Classes */
.game-active .game-message {
    display: none;
}

.game-paused .game-message {
    display: flex;
}

.game-paused #message-title::after {
    content: '⏸️';
    margin-left: 0.5rem;
}

.game-waiting #message-title::after {
    content: '🎮';
    margin-left: 0.5rem;
}

.game-over #message-title::after {
    content: '💀';
    margin-left: 0.5rem;
}

.game-active .game-message {
    display: none !important;
}

#game-canvas {
    display: block !important;
    visibility: visible !important;
}

/* ========================================
   MEDIA CAROUSEL STYLES
   ======================================== */

.media-carousel {
    margin-top: 4rem;
}

.media-carousel h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    border: 2px solid rgba(0, 255, 136, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 600%; /* 6 slides */
}

.carousel-slide {
    position: relative;
    min-width: calc(100% / 6);
    height: 400px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    padding: 10px;
    box-sizing: border-box;
}

.carousel-slide:hover img {
    transform: scale(1.02);
    filter: brightness(1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    opacity: 0;
}

.carousel-slide:hover .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-overlay h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.slide-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--bright-green));
    border: none;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(0, 255, 136, 0.7);
    transform: scale(1.1);
}

/* Auto-play animation */
@keyframes carouselAuto {
    0% { transform: translateX(0); }
    16.67% { transform: translateX(-16.67%); }
    33.33% { transform: translateX(-33.33%); }
    50% { transform: translateX(-50%); }
    66.67% { transform: translateX(-66.67%); }
    83.33% { transform: translateX(-83.33%); }
    100% { transform: translateX(0); }
}

.carousel-track.auto-play {
    animation: carouselAuto 20s infinite;
}

.carousel-track.auto-play:hover {
    animation-play-state: paused;
}

/* ========================================
@media (max-width: 768px) {
    .comic-container {
        padding: 0.5rem;
        max-width: 100%;
    }

    .comic-panel {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 10px;
        background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    }

    .comic-scene {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        gap: 0.75rem;
    }

    .scene-image {
        position: relative;
        width: 100%;
        height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .scene-rico {
        width: 140px;
        height: 140px;
        max-width: 140px;
        object-fit: contain;
    }

    .speech-bubble {
        position: relative;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--primary-green);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .speech-bubble::after {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid rgba(255, 255, 255, 0.95);
    }

    .speech-bubble::before {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--primary-green);
    }

    #scene-text {
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: center;
        font-weight: 500;
        color: #333;
    }

    .comic-choices {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 0.5rem 0;
        padding: 0;
    }

    .choice-button {
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 10px;
        min-height: 50px;
        display: flex;
        align-items: center;
        text-align: left;
        font-weight: 500;
        background: rgba(0, 255, 136, 0.1);
        border: 1.5px solid var(--primary-green);
    }

    .choice-icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .choice-text {
        flex-grow: 1;
        line-height: 1.2;
        font-weight: 500;
        font-size: 0.85rem;
    }

    .comic-progress {
        margin: 0.75rem 0;
        padding: 0;
    }

    .progress-bar {
        height: 5px;
    }

    .progress-text {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .comic-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .control-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        flex: 1;
    }

    /* Floating elements adjustments for mobile */
    .scene-elements {
        display: none; /* Hide floating elements on mobile to reduce clutter */
    }
}

/* Extra small mobile devices - CRITICAL FOR MOONSHOT! */
@media (max-width: 480px) {
    .comic-panel {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .comic-scene {
        min-height: auto;
        gap: 0.5rem;
    }

    .scene-image {
        height: 150px;
    }

    .scene-rico {
        width: 120px;
        height: 120px;
        max-width: 120px;
    }

    .speech-bubble {
        padding: 0.6rem;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    #scene-text {
        font-size: 0.85rem;
        line-height: 1.3;
        font-weight: 500;
    }

    .choice-button {
        padding: 0.6rem;
        font-size: 0.8rem;
        min-height: 45px;
        font-weight: 500;
    }

    .choice-icon {
        font-size: 1rem;
    }

    .choice-text {
        font-size: 0.8rem;
    }

    #start-game-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin: 0.75rem 0;
    }
}

/* Pulse animation for buttons */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 20px var(--shadow);
    }
    50% {
        box-shadow: 0 0 30px var(--shadow-bright);
    }
}

.game-active #pause-game {
    animation: pulse-green 2s infinite;
}

/* Score popup animation */
.score-popup {
    position: absolute;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(0);
    text-shadow: 0 0 10px #00ff88;
    transition: all 0.3s ease;
    user-select: none;
}

@keyframes score-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1);
    }
}

.score-popup {
    animation: score-float 1s ease-out forwards;
}

/* Game canvas glow effect during gameplay */
.game-active #game-canvas {
    box-shadow: 0 0 40px var(--shadow-bright), inset 0 0 20px rgba(0, 255, 136, 0.1);
    animation: canvas-glow 2s ease-in-out infinite alternate;
}

@keyframes canvas-glow {
    from {
        box-shadow: 0 0 40px var(--shadow-bright), inset 0 0 20px rgba(0, 255, 136, 0.1);
    }
    to {
        box-shadow: 0 0 50px var(--shadow), inset 0 0 25px rgba(0, 255, 136, 0.2);
    }
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Popup animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes popupBounce {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(10px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Bud collection flash effect */
@keyframes bud-flash {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(2);
        transform: scale(1.1);
    }
    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

/* Rico head bob animation */
@keyframes rico-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.game-active .rico-head {
    animation: rico-bob 1s ease-in-out infinite;
}

/* Hide Tax and Community stats on all devices */
.hero-stats .stat:nth-child(2),
.hero-stats .stat:nth-child(3) {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0 3rem;
        min-height: auto;
        overflow-x: hidden;
        width: 100%;
    }
    
    .floating-elements {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    /* Ensure only supply stat shows and is centered on mobile */
    .hero-stats .stat:first-child {
        flex: none;
        margin: 0 auto;
    }

    .stat {
        flex: 1;
        min-width: 120px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .raccoon-container {
        width: 300px;
        height: 300px;
    }

    .raccoon-image {
        width: 250px;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card {
        padding: 2rem;
    }

    .community-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .community-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-socials {
        gap: 1rem;
    }

    .footer-social-links {
        gap: 0.75rem;
    }

    .footer-social-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .social-icon {
        font-size: 1rem;
    }

    .footer-nav-links {
        gap: 1rem;
        justify-content: center;
    }

    /* Mobile carousel styles */
    .media-carousel h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .carousel-slide {
        height: 300px;
    }

    .slide-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .slide-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .slide-overlay p {
        font-size: 0.8rem;
    }

    .carousel-nav {
        padding: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Game responsive */
    .game-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-info {
        order: 2;
        padding: 1.5rem;
    }

    .game-canvas-container {
        order: 1;
    }

    #game-canvas {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .game-stats {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .raccoon-container {
        width: 250px;
        height: 250px;
    }

    .raccoon-image {
        width: 200px;
    }

    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat {
        min-width: 100px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-button {
        min-height: 44px; /* iOS touch target minimum */
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .game-info {
        padding: 1.2rem;
    }

    .game-stats .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .game-controls .cta-button {
        min-height: 44px;
        font-size: 0.9rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .contract-address {
        font-size: 0.8rem;
        word-break: break-all;
        display: inline-block;
        max-width: 90%;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .game-info {
        padding: 1rem;
    }

    /* Extra small carousel styles */
    .carousel-slide {
        height: 250px;
    }

    .slide-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .slide-overlay h4 {
        font-size: 1rem;
    }

    .slide-overlay p {
        font-size: 0.75rem;
    }

    .carousel-nav {
        padding: 0.75rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 44px;
        padding: 0.8rem 1rem;
    }

    .nav-link, .community-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Prevent text selection on touch */
    .hero-title, .hero-subtitle, .section-title, .section-subtitle {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Virtual Controls for Mobile Game */
.virtual-controls {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .virtual-controls {
        display: block;
    }
}

.virtual-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.5rem;
    max-width: 200px;
    margin: 0 auto 1rem;
    grid-template-areas:
        ". up ."
        "left . right"
        ". down .";
}

.virtual-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.virtual-btn[data-direction="up"] {
    grid-area: up;
}

.virtual-btn[data-direction="left"] {
    grid-area: left;
}

.virtual-btn[data-direction="down"] {
    grid-area: down;
}

.virtual-btn[data-direction="right"] {
    grid-area: right;
}

.virtual-btn:active,
.virtual-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--shadow);
}

.virtual-controls-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 480px) {
    .virtual-controls-grid {
        max-width: 180px;
    }

    .virtual-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .virtual-controls-info {
        font-size: 0.8rem;
    }
}

/* Mobile: Hide Tax & Community stats in hero */
@media (max-width: 768px) {
    .hero-stats .stat:nth-child(2),
    .hero-stats .stat:nth-child(3) {
        display: none;
    }
}

/* Additional mobile breakpoint for smaller screens */
@media (max-width: 480px) {
    .hero-stats .stat:nth-child(2),
    .hero-stats .stat:nth-child(3) {
        display: none;
    }
}

/* Smoke Effect */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.smoke-particle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(200, 200, 200, 0.3) 30%, rgba(150, 150, 150, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    animation: smoke-float linear infinite;
    opacity: 0;
    filter: blur(1px);
}

.smoke-particle.large {
    width: 120px;
    height: 120px;
}

.smoke-particle.medium {
    width: 90px;
    height: 90px;
}

.smoke-particle.small {
    width: 45px;
    height: 45px;
}

@keyframes smoke-float {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) scale(1) rotate(180deg);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) scale(1.2) rotate(360deg);
    }
    100% {
        transform: translateY(-10vh) scale(0.8) rotate(540deg);
        opacity: 0;
    }
}

/* ========================================
   REMOVED GAME POPUP MODAL - Game plays inline
   ======================================== */

/* .game-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.game-popup-overlay.active {
    display: flex;
}

.game-popup-content {
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px var(--shadow);
    position: relative;
}

.game-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-green);
    padding-bottom: 1rem;
}

.game-popup-header h3 {
    color: var(--primary-green);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin: 0;
}

.close-popup-btn {
    background: none;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup-btn:hover {
    background: var(--primary-green);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.game-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#popup-game-canvas {
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    background: var(--primary-dark);
    box-shadow: 0 0 20px var(--shadow);
}

.popup-game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.popup-stat {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.popup-stat span:last-child {
    color: var(--primary-green);
}

.popup-virtual-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.popup-controls-grid {
    display: grid;
    grid-template-areas: 
        ". up ."
        "left . right"
        ". down .";
    gap: 10px;
    max-width: 200px;
}

.popup-virtual-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-virtual-btn:hover,
.popup-virtual-btn:active {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(0.95);
    box-shadow: 0 0 15px var(--shadow);
}

.popup-virtual-btn[data-direction="up"] {
    grid-area: up;
}

.popup-virtual-btn[data-direction="left"] {
    grid-area: left;
}

.popup-virtual-btn[data-direction="down"] {
    grid-area: down;
}

.popup-virtual-btn[data-direction="right"] {
    grid-area: right;
}

.popup-game-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.popup-game-info p {
    margin: 0;
}

/* Mobile adjustments for popup */
@media (max-width: 768px) {
    .game-popup-content {
        padding: 1rem;
        max-width: 95vw;
        max-height: 95vh;
    }

    .game-popup-header h3 {
        font-size: 1.3rem;
    }

    #popup-game-canvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .popup-game-stats {
        gap: 1.5rem;
        font-size: 1rem;
    }

    .popup-controls-grid {
        max-width: 180px;
    }

    .popup-virtual-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
} */
