/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --warning-color: #ffe66d;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-light) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animowany background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

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

/* Kontener główny */
.game-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Nagłówek */
.game-header {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin: 0 0 5px 0;
    text-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.game-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.game-logo {
    height: 3rem;
    width: 3rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    vertical-align: middle;
}

.snake-icon {
    font-size: 2rem;
    margin-right: 10px;
    animation: bounce 2s infinite;
}


.version {
    font-size: 0.6em;
    opacity: 0.7;
    margin-left: 10px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Statystyki */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

/* Ekrany */
.screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
}

.screen.hidden {
    display: none;
}

/* Menu główne */
.menu-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.logo-animation {
    margin-bottom: 20px;
}

.snake-preview {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    animation: snakeMove 2s ease-in-out infinite;
}

.snake-segment {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 1.5s infinite alternate;
}

.snake-segment.head {
    background: linear-gradient(45deg, var(--secondary-color), var(--warning-color));
    transform: scale(1.1);
}

.snake-segment.tail {
    opacity: 0.7;
    transform: scale(0.9);
}

@keyframes snakeMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

/* Przyciski */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-danger {
    background: linear-gradient(45deg, var(--secondary-color), #ff4757);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

/* Airdrop Announcement */
.airdrop-announcement {
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    animation: airdropGlow 3s ease-in-out infinite;
}

@keyframes airdropGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
}

.airdrop-header {
    margin-bottom: 15px;
}

.airdrop-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.airdrop-amount {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 2s ease-in-out infinite;
    margin-bottom: 5px;
}

@keyframes goldShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.airdrop-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    min-width: 80px;
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--warning-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 230, 109, 0.5);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Prize Breakdown */
.prize-breakdown h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.prize-tiers {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 500px;
    margin: 0 auto;
}

.prize-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.prize-tier:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.prize-tier.gold {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 74, 0.2));
    border-color: #ffd700;
}

.prize-tier.silver {
    background: linear-gradient(45deg, rgba(192, 192, 192, 0.2), rgba(211, 211, 211, 0.2));
    border-color: #c0c0c0;
}

.prize-tier.bronze {
    background: linear-gradient(45deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.2));
    border-color: #cd7f32;
}

.prize-rank {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.prize-tier.gold .prize-rank { color: #ffd700; }
.prize-tier.silver .prize-rank { color: #c0c0c0; }
.prize-tier.bronze .prize-rank { color: #cd7f32; }

.prize-amount {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--warning-color);
}

/* Power-upy preview */
.power-ups-preview {
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.power-ups-preview h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.power-up-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.power-up-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.power-up-icon:nth-child(odd) {
    animation-delay: 0.5s;
}

.power-up-icon.speed {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.power-up-icon.double {
    background: linear-gradient(45deg, #e056fd, #f093fb);
    box-shadow: 0 0 15px rgba(224, 86, 253, 0.5);
}

.power-up-icon.shield {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

.power-up-icon.freeze {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    box-shadow: 0 0 15px rgba(168, 237, 234, 0.5);
}

.power-up-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

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

/* Obszar gry */
.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

#game-canvas {
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-glow);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.power-up-display {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    min-width: 200px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(2px);
}

.power-up-display.active {
    opacity: 1;
    animation: powerUpAppear 0.5s ease-out;
}

.power-up-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.power-up-timer {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--warning-color);
    text-shadow: 0 0 10px rgba(255, 230, 109, 0.5);
}

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



/* Kontrolki gry */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.control-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
    background: rgba(0, 255, 136, 0.3);
}



/* Screen titles */
.screen-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Game Over screen */
.gameover-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.gameover-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    animation: gameOverGlow 2s ease-in-out infinite;
}

@keyframes gameOverGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    50% { text-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
}

.final-stats {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.final-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.score-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.achievement {
    padding: 10px;
    background: linear-gradient(45deg, var(--warning-color), #ffd700);
    color: var(--bg-dark);
    border-radius: 10px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.5s ease;
}

.achievement.show {
    opacity: 1;
    animation: achievementPop 0.5s ease-out;
}

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

.player-input {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-input input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.player-input input#player-wallet {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.player-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.player-input input::placeholder {
    color: var(--text-secondary);
}

.gameover-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Leaderboard */
.leaderboard-content {
    max-width: 600px;
    width: 100%;
}

.leaderboard-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: rgba(0, 255, 136, 0.1);
}

.leaderboard-item.highlight {
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(78, 205, 196, 0.2));
    border-left: 4px solid var(--primary-color);
}

.player-rank {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.player-rank.gold { color: #ffd700; }
.player-rank.silver { color: #c0c0c0; }
.player-rank.bronze { color: #cd7f32; }

.player-info {
    flex: 1;
    text-align: left;
    margin-left: 20px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.player-wallet {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.player-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.leaderboard-buttons {
    display: flex;
    justify-content: center;
}

/* Instructions */
.instructions-content {
    max-width: 800px;
    width: 100%;
}

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

.instruction-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.instruction-section:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.instruction-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instruction-section ul {
    list-style: none;
}

.instruction-section li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

kbd {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.power-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.mobile-control {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .game-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 12px;
    }
    
    .game-logo {
        height: 2.5rem;
        width: 2.5rem;
        margin-right: 10px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .airdrop-title {
        font-size: 1.8rem;
    }
    
    .airdrop-amount {
        font-size: 2.2rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 10px 15px;
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .prize-tiers {
        max-width: 100%;
    }
    
    .prize-tier {
        padding: 12px 15px;
    }
    
    #game-canvas {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }
    

    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leaderboard-buttons,
    .gameover-buttons {
        flex-direction: column;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .screen {
        padding: 10px;
    }
    
    .control-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-logo {
        height: 2rem;
        width: 2rem;
        margin-right: 8px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .snake-icon {
        font-size: 1.5rem;
    }
    
    .power-up-icons {
        gap: 10px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .power-up-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gameover-title {
        font-size: 2rem;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
    
    .screen-title {
        font-size: 1.5rem;
    }
}

/* Dodatkowe animacje i efekty */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Social Footer */
.social-footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--border-color);
    padding: 15px 20px;
    margin-top: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

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

.social-link i {
    font-size: 1.2rem;
}

.social-link.twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.social-link.telegram:hover {
    color: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.social-link.dexscreener:hover {
    color: #ffa500;
    border-color: #ffa500;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

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

.footer-text p {
    margin: 0;
}

/* Responsive social footer */
@media (max-width: 768px) {
    .social-footer {
        padding: 12px 15px;
    }
    
    .social-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .social-link span {
        display: none;
    }
    
    .social-link i {
        font-size: 1.4rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-footer {
        padding: 10px;
    }
    
    .social-links {
        gap: 15px;
    }
}

/* Leaderboard header */
.leaderboard-header {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.total-players {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Airdrop badges and TOP20 styling */
.airdrop-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.leaderboard-item.top20 {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border-left: 4px solid var(--primary-color);
}

.leaderboard-item:not(.top20) {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.02);
}

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

/* Mobile adjustments for prizes */
@media (max-width: 768px) {
    .airdrop-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .player-date {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .airdrop-badge {
        display: none; /* Hide on very small screens to save space */
    }
}
