* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Custom pill cursor - 48x48 flipped horizontally */
    cursor: url('assets/pill-cursor.png') 24 24, auto;
}

:root {
    --primary-color: #FFA500;
    --secondary-color: #87CEEB;
    --accent-color: #FFD700;
    --dark-bg: #87CEEB;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2C3E50;
    --text-secondary: #34495E;
    --chart-green: #7FFF00;
    --chart-red: #FF6B6B;
    --sky-blue: #87CEEB;
    --grass-green: #7EC850;
    --ground-brown: #C4A57B;
    --pill-green: #8FD14F;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', 'Orbitron', monospace;
    background: var(--sky-blue);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Keep pill cursor for interactive elements */
button, a, .clickable, input, select, textarea,
.wallet-option-btn, .connect-wallet-btn, .play-now-btn,
.restart-btn, .control-btn, canvas {
    cursor: url('assets/pill-cursor.png') 24 24, pointer !important;
}

/* Wallet Button */
/* Mute Button */
.mute-btn {
    background: white;
    border: 3px solid #2C3E50;
    padding: 8px 12px;
    border-radius: 0;
    color: #2C3E50;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 3px 3px 0 #2C3E50;
    margin-left: 10px;
}

.mute-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #2C3E50;
    background: #FFD700;
}

.wallet-btn {
    background: #9945FF;
    border: 3px solid #2C3E50;
    padding: 8px 16px;
    border-radius: 0;
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-left: 20px;
    box-shadow: 3px 3px 0 #2C3E50;
    text-transform: uppercase;
}

.wallet-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #2C3E50;
    background: #14F195;
}

.wallet-btn.connected {
    background: #14F195;
    color: #2C3E50;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Token Gate Modal */
.token-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.modal-content {
    background: linear-gradient(180deg, #1a0033 0%, #0d001a 100%);
    border: 4px solid #00ff88;
    border-radius: 0;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 
        0 0 0 2px #000,
        0 0 0 4px #00ff88,
        0 0 0 6px #000,
        0 0 20px rgba(0, 255, 136, 0.5),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 10px rgba(0, 255, 136, 0.8);
}

.wallet-address {
    font-family: 'Press Start 2P', monospace;
    background: #000;
    padding: 10px;
    border: 2px solid #00ff88;
    border-radius: 0;
    margin-bottom: 20px;
    font-size: 0.7rem;
    word-break: break-all;
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.token-requirement {
    color: #ffff00;
    font-size: 1.2rem;
    margin: 20px 0;
}

.connect-wallet-btn, .play-now-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border: 3px solid #000;
    border-radius: 0;
    color: #000;
    font-size: 0.9rem;
    font-family: 'Press Start 2P', monospace;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        4px 4px 0 #000,
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    position: relative;
}

.connect-wallet-btn:hover, .play-now-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 
        6px 6px 0 #000,
        inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, #33ff99 0%, #00ff88 100%);
}

.connect-wallet-btn:active, .play-now-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 
        2px 2px 0 #000,
        inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.token-success {
    text-align: center;
}

.nickname-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff88;
    border-radius: 0;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.nickname-prompt {
    color: #00ff88;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
}

.nickname-input {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 2px solid #00ff88;
    border-radius: 0;
    color: #00ff88;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.nickname-input:focus {
    outline: none;
    border-color: #33ff99;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.5),
        inset 0 0 5px rgba(0, 255, 136, 0.3);
}

.nickname-hint {
    display: block;
    color: #00cc6a;
    font-size: 0.6rem;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
}

.success-message {
    color: #00ff88;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    animation: pulse 1s ease-in-out infinite;
}

.fail-message {
    color: #ff0044;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 68, 0.8);
    animation: shake 0.5s ease-in-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.balance-display {
    font-size: 1.2rem;
    color: #fff;
    margin: 10px 0;
}

.buy-token-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #ff0044 0%, #cc0033 100%);
    border: 3px solid #000;
    border-radius: 0;
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
    transition: all 0.1s ease;
    text-transform: uppercase;
    box-shadow: 
        4px 4px 0 #000,
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.buy-token-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 
        6px 6px 0 #000,
        inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, #ff3366 0%, #ff0044 100%);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    border: 2px solid #00ff88;
    color: #00ff88;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 2px 2px 0 #000;
}

.close-modal:hover {
    background: #00ff88;
    color: #000;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

.demo-mode-notice {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #00ff88;
    color: #00cc6a;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Additional wallet modal styles */
.wallet-connect-prompt {
    text-align: center;
    padding: 20px 0;
}

.wallet-connect-prompt p {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.wallet-info {
    text-align: center;
}

.wallet-info p {
    color: #00ff88;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    margin: 10px 0;
}

.token-status {
    text-align: center;
    padding: 20px;
}

.checking {
    color: #00ff88;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    animation: pulse 1.5s infinite;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Wallet Selection */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    background: #000;
    border: 2px solid #00ff88;
    border-radius: 0;
    color: #00ff88;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', monospace;
    font-weight: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 3px 3px 0 #000;
}

.wallet-option-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.wallet-option-btn img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.wallet-option-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.wallet-option-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #000;
}

.wallet-install-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.wallet-install-btn {
    display: block;
    padding: 12px;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.wallet-install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(153, 69, 255, 0.4);
}

.checking {
    text-align: center;
    color: #14F195;
    animation: pulse 1s infinite;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 4px solid #2C3E50;
    z-index: 9999;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #2C3E50;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: #FFD700;
}

.pill-icon-img {
    width: 60px;
    height: 60px;
    animation: rotate 4s linear infinite;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

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

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

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #7EC850 70%, #7EC850 85%, #C4A57B 85%, #C4A57B 100%);
    overflow: hidden;
    padding: 80px 20px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        #7EC850,
        #7EC850 20px,
        #8FD14F 20px,
        #8FD14F 40px
    );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15%;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        #C4A57B,
        #C4A57B 30px,
        #B8956F 30px,
        #B8956F 60px
    );
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-word {
    display: inline-block;
    animation: glitch 2s infinite;
    margin: 0 20px;
    white-space: nowrap;
}

.title-word:first-child {
    color: #FFA500;
    text-shadow: 4px 4px 0 #2C3E50, 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.title-word:nth-child(2) {
    color: #FF8C00;
    text-shadow: 4px 4px 0 #2C3E50, 6px 6px 0 rgba(0, 0, 0, 0.2);
    animation-delay: 0.05s;
}

.pill-word {
    color: #FFD700;
    text-shadow: 4px 4px 0 #2C3E50, 6px 6px 0 rgba(0, 0, 0, 0.2);
    animation-delay: 0.1s;
}

.hero-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #2C3E50;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.hero-description {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #2C3E50;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 2;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary {
    background: #FFD700;
    color: #2C3E50;
    border: 4px solid #2C3E50;
    box-shadow: 4px 4px 0 #2C3E50;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    position: relative;
    border-radius: 0;
    transition: all 0.1s ease;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2C3E50;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn-primary:hover .btn-glow {
    animation: shine 0.5s ease;
}

.btn-secondary {
    background: white;
    color: #2C3E50;
    border: 4px solid #2C3E50;
    box-shadow: 4px 4px 0 #2C3E50;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    border-radius: 0;
    transition: all 0.1s ease;
}

.btn-secondary:hover {
    background: #87CEEB;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2C3E50;
}

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 20px 25px;
    background: white;
    border-radius: 0;
    border: 4px solid #2C3E50;
    animation: float 3s ease-in-out infinite;
    box-shadow: 4px 4px 0 #2C3E50;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 400;
    color: #FFA500;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 10px;
}

.stat-label {
    color: #2C3E50;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.4;
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.hero-social-btn {
    padding: 10px 20px;
    background: white;
    border: 3px solid #2C3E50;
    color: #2C3E50;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    box-shadow: 4px 4px 0 #2C3E50;
    transition: all 0.1s ease;
    display: inline-block;
}

.hero-social-btn:hover {
    background: #FFD700;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2C3E50;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* How to Play Section */
.how-to-play {
    padding: 100px 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 100%);
    position: relative;
}

.how-to-play::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.1) 50px, rgba(255, 255, 255, 0.1) 51px);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #2C3E50;
    text-shadow: 3px 3px 0 #FFA500;
    text-transform: uppercase;
}

.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.mode-card {
    background: white;
    border-radius: 0;
    padding: 30px;
    border: 4px solid #2C3E50;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 0 #2C3E50;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #2C3E50;
    border-color: #FFA500;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    display: block;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFA500;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    line-height: 1.4;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.6;
}

.mode-features {
    list-style: none;
    margin-bottom: 30px;
}

.mode-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.mode-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

kbd, .command {
    background: #FFA500;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0 4px;
}

.mode-tag {
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mode-tag:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.mode-btn {
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mode-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    color: #FFFFFF;
}

.coming-soon {
    display: block;
    font-size: 0.6rem;
    margin-top: 8px;
    opacity: 0.9;
    font-family: 'Press Start 2P', monospace;
    color: #FFFFFF;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.instruction-card {
    background: linear-gradient(135deg, rgba(25, 15, 45, 0.9) 0%, rgba(40, 25, 65, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.instruction-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.instruction-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.instruction-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.instruction-card p {
    color: #FFFFFF;
    line-height: 1.8;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    opacity: 0.9;
}

/* Game Section */
.game-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #7EC850 60%, #7EC850 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 40%;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        #7EC850,
        #7EC850 40px,
        #8FD14F 40px,
        #8FD14F 80px
    );
    pointer-events: none;
}

.game-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile Wallet Prompt */
.mobile-wallet-prompt {
    display: none; /* Hidden by default, shown only on mobile */
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
}

.mobile-game-wallet-btn {
    background: #9945FF;
    border: 4px solid #000;
    padding: 12px 30px;
    border-radius: 0;
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #000;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 320px;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.mobile-game-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000;
}

.mobile-game-wallet-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000;
}

.mobile-game-wallet-btn.connected {
    background: #00D632;
}

.mobile-game-wallet-btn.connected .wallet-text::before {
    content: "✅ ";
}

.wallet-prompt-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: #2C3E50;
    margin: 0;
    line-height: 1.4;
}

.game-header {
    background: white;
    border-radius: 0;
    padding: 20px 30px;
    border: 4px solid #2C3E50;
    border-bottom: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-mute {
    margin-left: 0;
}

.game-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-wallet-btn {
    display: none; /* Hidden by default, shown only on mobile */
    background: white;
    border: 3px solid #2C3E50;
    padding: 8px 12px;
    border-radius: 0;
    color: #2C3E50;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 3px 3px 0 #2C3E50;
}

.mobile-wallet-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #2C3E50;
    background: #9945FF;
    color: white;
}

.mobile-wallet-btn.connected {
    background: #9945FF;
    color: white;
}

.game-info {
    display: flex;
    gap: 40px;
    flex: 1;
}

.info-item {
    text-align: center;
    background: #F0F8FF;
    border: 3px solid #2C3E50;
    padding: 10px 15px;
    border-radius: 0;
    box-shadow: 3px 3px 0 #2C3E50;
    min-width: 140px;
}

.info-label {
    display: block;
    color: #2C3E50;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #FFA500;
    text-shadow: 2px 2px 0 #2C3E50;
}

.game-container {
    position: relative;
    background: #87CEEB;
    border: 4px solid #2C3E50;
    box-shadow: 8px 8px 0 #2C3E50;
}

#gameCanvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    image-rendering: crisp-edges;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: none;
    transition: opacity 0.3s ease;
    image-rendering: pixelated;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Death Screen Overlay */
.death-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    pointer-events: all;
}

.death-screen {
    text-align: center;
    padding: 30px;
    background: #FFF;
    border: 4px solid #2C3E50;
    border-radius: 0;
    box-shadow: 8px 8px 0 #2C3E50;
    animation: deathBounce 0.5s ease;
    max-width: 400px;
    width: 90%;
    image-rendering: pixelated;
}

@keyframes deathBounce {
    0% { transform: scale(0.8) rotate(-5deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.death-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #FF0000;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #2C3E50;
    animation: pulse 1s infinite;
}

.death-stats {
    background: #F0F0F0;
    border: 2px solid #2C3E50;
    border-radius: 0;
    padding: 15px;
    margin: 15px 0;
}

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

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

.stat-label {
    color: #888;
    font-size: 1rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-value.highlight {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.death-message {
    font-size: 1.1rem;
    color: #ff6464;
    margin: 15px 0;
    font-style: italic;
}

.restart-btn {
    background: #FFD700;
    border: 4px solid #2C3E50;
    padding: 12px 35px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #2C3E50;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 15px 0 8px;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 #2C3E50;
}

.restart-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2C3E50;
    background: #FFA500;
}

.restart-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.start-screen {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.start-screen h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #2C3E50;
}

.start-screen p {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 0 #000;
    opacity: 0.9;
}

.controls-hint {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #FFFFFF;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 0 #000;
}

.game-footer {
    background: white;
    border-radius: 0;
    padding: 20px 30px;
    border: 4px solid #2C3E50;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
}

.last-flapper {
    color: var(--text-secondary);
}

.last-flapper span {
    color: var(--accent-color);
    font-weight: bold;
}

.game-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: white;
    border: 3px solid #2C3E50;
    color: #2C3E50;
    padding: 10px 15px;
    border-radius: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 3px 3px 0 #2C3E50;
}

.control-btn:hover {
    background: #FFD700;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #2C3E50;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #7EC850 60%, #7EC850 100%);
    position: relative;
    image-rendering: pixelated;
}

.leaderboard-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 255, 255, 0.1) 40px, rgba(255, 255, 255, 0.1) 42px);
    pointer-events: none;
}

.leaderboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.your-stats, .top-players {
    background: white;
    border-radius: 0;
    padding: 30px;
    border: 4px solid #2C3E50;
    box-shadow: 8px 8px 0 #2C3E50;
}

.your-stats h3, .top-players h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #2C3E50;
    text-shadow: 2px 2px 0 #FFD700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: #F0F8FF;
    border-radius: 0;
    border: 3px solid #2C3E50;
    box-shadow: 4px 4px 0 #2C3E50;
}

.stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: #FF6B6B;
    text-shadow: 2px 2px 0 #2C3E50;
}

.stat-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #F0F8FF;
    border: 2px solid #2C3E50;
    border-radius: 0;
    transition: all 0.1s ease;
    margin-bottom: 8px;
    box-shadow: 3px 3px 0 #2C3E50;
}

.player-item:hover {
    background: #FFD700;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #2C3E50;
}

.player-item.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.player-item.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(169, 169, 169, 0.05) 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.player-item.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(184, 115, 51, 0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.player-item.current-player {
    background: linear-gradient(135deg, rgba(20, 255, 136, 0.1) 0%, rgba(20, 255, 136, 0.05) 100%);
    border: 1px solid rgba(20, 255, 136, 0.3);
}

/* Leaderboard Toggle */
.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.leaderboard-toggle {
    display: flex;
    gap: 5px;
    background: #F0F0F0;
    border: 3px solid #2C3E50;
    border-radius: 0;
    padding: 5px;
    box-shadow: 3px 3px 0 #2C3E50;
}

.toggle-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #2C3E50;
    color: #2C3E50;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.1s ease;
    box-shadow: 2px 2px 0 #2C3E50;
}

.toggle-btn.active {
    background: #FFD700;
    color: #2C3E50;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #2C3E50;
}

.toggle-btn:hover:not(.active) {
    color: #999;
}

.player-rank {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #FF6B6B;
    width: 40px;
    text-shadow: 1px 1px 0 #2C3E50;
}

.player-name {
    flex: 1;
    margin-left: 20px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name .wallet-address {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: monospace;
}

.player-name .you-tag {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 8px;
}

.player-name .score-meta {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 2px;
}

.player-item.current-player {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), transparent);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.player-item.gold .player-rank {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-item.silver .player-rank {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.player-item.bronze .player-rank {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.player-score {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #4ECDC4;
    text-shadow: 1px 1px 0 #2C3E50;
}

/* Footer */
.footer {
    background: #2C3E50;
    padding: 60px 0 20px;
    border-top: 8px solid #FFD700;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Press Start 2P', monospace;
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-shadow: 2px 2px 0 #1a1a1a;
}

.footer-section p {
    color: #FFFFFF;
    line-height: 1.8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #2C3E50;
    text-decoration: none;
    padding: 8px 15px;
    background: white;
    border: 3px solid #2C3E50;
    border-radius: 0;
    transition: all 0.1s ease;
    box-shadow: 3px 3px 0 #1a1a1a;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    display: inline-block;
    position: relative;
    z-index: 10;
}

.social-link:hover {
    background: #FFD700;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #1a1a1a;
}

.token-ca-container {
    margin-top: 10px;
}

.token-ca-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.token-ca-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2C3E50;
    padding: 10px;
    border: 3px solid #FFD700;
    border-radius: 0;
    box-shadow: 3px 3px 0 #1a1a1a;
}

.token-ca {
    font-family: 'Press Start 2P', monospace;
    color: #FFD700;
    font-size: 0.6rem;
    word-break: break-all;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.token-ca:hover {
    color: #FFF;
}

.copy-ca-btn {
    background: #FFD700;
    border: 2px solid #2C3E50;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.1s ease;
    border-radius: 0;
    box-shadow: 2px 2px 0 #1a1a1a;
}

.copy-ca-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #1a1a1a;
}

.copy-ca-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #1a1a1a;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 3px dashed #FFD700;
    color: #FFFFFF;
    font-size: 0.8rem;
}

/* Pixel Clouds Styling */
.pixel-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: white;
    opacity: 0.8;
    image-rendering: pixelated;
    box-shadow: 
        20px 0 0 white,
        40px 0 0 white,
        60px 0 0 white,
        10px -10px 0 white,
        30px -10px 0 white,
        50px -10px 0 white,
        20px -20px 0 white,
        40px -20px 0 white;
}

.cloud-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    animation: floatCloud 30s infinite linear;
}

.cloud-2 {
    width: 20px;
    height: 20px;
    top: 35%;
    animation: floatCloud 45s infinite linear;
    animation-delay: -15s;
}

.cloud-3 {
    width: 20px;
    height: 20px;
    top: 15%;
    animation: floatCloud 40s infinite linear;
    animation-delay: -30s;
}

@keyframes floatCloud {
    from {
        transform: translateX(-200px);
    }
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes floatBird {
    from {
        transform: translateX(-50px) translateY(0);
    }
    25% {
        transform: translateX(calc(25vw)) translateY(-10px);
    }
    50% {
        transform: translateX(calc(50vw)) translateY(5px);
    }
    75% {
        transform: translateX(calc(75vw)) translateY(-5px);
    }
    to {
        transform: translateX(calc(100vw + 50px)) translateY(0);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}

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

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes shine {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

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

/* Death Animation */
.dumped-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    animation: dumpedPulse 0.5s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
}

@keyframes dumpedPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
}

/* Candlestick Background Animation */
.candlestick {
    position: absolute;
    bottom: 0;
    border-radius: 4px;
    opacity: 0.3;
    animation: floatUp linear infinite;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-200px) translateX(20px);
        opacity: 0;
    }
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatAround ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(-40px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .game-modes {
        grid-template-columns: 1fr;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Mobile Specific Styles */
@media (max-width: 480px) {
    /* Navigation Mobile */
    .nav-logo {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .pill-icon-img {
        width: 40px;
        height: 40px;
    }
    
    /* Hero Section Mobile Fix */
    .hero {
        padding: 120px 10px 40px;
        min-height: auto;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        white-space: nowrap;
    }
    
    .title-word {
        margin: 0 3px;
    }
    
    .hero-description {
        font-size: 0.65rem;
        padding: 0 10px;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 10px;
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.7rem;
    }
    
    /* Stats Cards Mobile */
    .hero-stats {
        padding: 0 10px;
    }
    
    .stat-card {
        width: 100%;
        padding: 12px;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Hero Social Links Mobile */
    .hero-social-links {
        margin-top: 20px;
        gap: 10px;
    }
    
    .hero-social-btn {
        font-size: 0.55rem;
        padding: 8px 12px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Game Mode Cards Mobile */
    .game-modes {
        padding: 0 10px;
        gap: 20px;
    }
    
    .mode-card {
        padding: 20px 15px;
    }
    
    .mode-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .mode-card h3 {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .mode-card p {
        font-size: 0.55rem;
    }
    
    .mode-features li {
        font-size: 0.65rem;
        padding: 8px 0;
    }
    
    kbd, .command {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin: 0 2px;
    }
    
    .mode-tag, .mode-btn {
        font-size: 0.65rem;
        padding: 10px 20px;
    }
    
    /* Instructions Mobile */
    .instruction-card {
        padding: 15px;
    }
    
    .instruction-icon {
        font-size: 2rem;
    }
    
    .instruction-card h4 {
        font-size: 0.9rem;
    }
    
    .instruction-card p {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    /* Game Canvas Mobile */
    .game-wrapper {
        padding: 5px;
        max-width: 100%;
    }
    
    /* Show mobile wallet prompt on mobile */
    .mobile-wallet-prompt {
        display: block !important;
    }
    
    .mobile-game-wallet-btn {
        font-size: 0.65rem;
        padding: 10px 20px;
        max-width: 280px;
    }
    
    .wallet-prompt-text {
        font-size: 0.5rem;
        padding: 0 10px;
    }
    
    .game-header {
        padding: 10px;
        gap: 10px;
    }
    
    /* Show mobile wallet button on mobile only */
    .mobile-wallet-btn {
        display: inline-block !important;
        padding: 6px 10px;
        font-size: 1rem;
    }
    
    .game-header-buttons {
        gap: 5px;
    }
    
    .game-info {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .info-item {
        padding: 5px 8px;
        min-width: 80px;
        flex: 1;
    }
    
    .info-label {
        font-size: 0.6rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    .game-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    #gameCanvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    
    .game-overlay {
        transform: scale(0.75);
    }
    
    /* Death Screen Mobile */
    .death-overlay {
        transform: scale(0.85);
    }
    
    .death-screen {
        padding: 20px;
        max-width: 300px;
    }
    
    .death-title {
        font-size: 1rem;
    }
    
    .death-stats {
        gap: 10px;
    }
    
    .stat-row {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Leaderboard Mobile */
    .leaderboard-section {
        padding: 60px 0;
    }
    
    .leaderboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        max-width: 100%;
    }
    
    .your-stats, .top-players {
        width: 100%;
        margin: 0;
        padding: 15px;
    }
    
    .your-stats h3, .top-players h3 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-box {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-name {
        font-size: 0.6rem;
    }
    
    .leaderboard-toggle {
        flex-direction: row;
        gap: 5px;
    }
    
    .toggle-btn {
        font-size: 0.55rem;
        padding: 8px 10px;
    }
    
    .player-item {
        font-size: 0.65rem;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
    }
    
    .player-name {
        flex: 1;
        text-align: left;
    }
    
    .player-rank {
        min-width: 30px;
    }
    
    .player-score {
        min-width: 40px;
        text-align: right;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 30px 10px;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .footer-section p {
        font-size: 0.65rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        font-size: 0.55rem;
        padding: 8px 12px;
    }
    
    .token-ca-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .token-ca {
        font-size: 0.45rem;
        text-align: center;
    }
    
    .copy-ca-btn {
        width: 100%;
        padding: 8px;
    }
}