/* Custom Arcade Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

body {
    font-family: 'Courier Prime', monospace;
    background: #000;
    margin: 0;
    padding: 0;
}

/* Neon glow effects */
.neon-glow {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}

.neon-title {
    color: #00ff41;
    text-shadow: 
        0 0 5px #00ff41,
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 40px #00ff41;
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px #00ff41,
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 40px #00ff41;
    }
    50% { 
        text-shadow: 
            0 0 2px #00ff41,
            0 0 5px #00ff41,
            0 0 8px #00ff41,
            0 0 12px #00ff41;
    }
}

/* CRT Screen effects */
.crt-screen {
    position: relative;
}

.crt-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

.crt-screen::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1001;
}

/* Animated stars background */
.stars-bg {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* Arcade button styles */
.arcade-button {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: perspective(500px) rotateX(15deg);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.1s ease;
}

.arcade-button:hover {
    transform: perspective(500px) rotateX(15deg) translateY(-2px);
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.arcade-button:active {
    transform: perspective(500px) rotateX(15deg) translateY(2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Arcade switch styles */
.arcade-switch {
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-shadow: 0 0 3px currentColor;
}

.arcade-switch:hover {
    transform: scale(1.05);
}

/* Arcade card styles */
.arcade-card {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.arcade-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Arcade token style for footer link */
.arcade-token {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid currentColor;
    border-radius: 50px;
    text-decoration: none;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.arcade-token:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 10px currentColor;
}

/* Game field styling */
.game-field {
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.3),
        0 0 20px rgba(0, 255, 65, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .neon-title {
        font-size: 3rem;
    }
    
    .arcade-button {
        transform: none;
        padding: 12px 24px;
    }
    
    .arcade-button:hover {
        transform: translateY(-2px);
    }
}

/* Custom scrollbar for retro feel */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #00ff41;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00ff41, #0066ff);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00ff99, #0099ff);
}