:root {
    --bg-dark: #0a0a0f;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.08) 0%, transparent 50%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.arcade-container {
    max-width: 1200px;
    width: 100%;
}

.arcade-header {
    text-align: center;
    margin-bottom: 4rem;
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 40px var(--neon-blue),
        0 0 80px var(--neon-blue);
    margin-bottom: 1rem;
    animation: pulsate 2.5s infinite alternate;
}

.arcade-header p {
    font-size: 1.2rem;
    color: #a0a0b8;
    letter-spacing: 1px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.game-card {
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Hover glow effect */
.game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, transparent, var(--theme-color, var(--neon-blue)), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.game-card:hover::before {
    opacity: 0.5;
}

.game-card:hover .card-glass {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px var(--theme-color, rgba(0, 243, 255, 0.3));
}

.icon-container {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Optional inner shadow */
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.icon-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.4s ease;
}

.game-card:hover .icon-container img {
    transform: scale(1.1) rotate(5deg);
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: var(--theme-color, #fff);
}

.play-btn {
    margin-top: auto;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.game-card:hover .play-btn {
    background: var(--theme-color, var(--neon-blue));
    color: #000;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 15px var(--theme-color, var(--neon-blue));
}

@keyframes pulsate {
    100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--neon-blue),
            0 0 40px var(--neon-blue);
    }
    0% {
        text-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 40px var(--neon-blue),
            0 0 80px var(--neon-blue);
    }
}

@media (max-width: 768px) {
    .neon-text {
        font-size: 3rem;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}