:root {
    --neon-blue: #00f5ff;
    --electric-purple: #bc13fe;
    --acid-green: #b0ff0d;
    --hot-pink: #ff2cdf;
    --dark: #0f0f12;
    --light: #f5f5fa;
    --card-bg: #1a1a24;
}

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

body {
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    font-family: 'Comfortaa', cursive;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.08) 0%, transparent 25%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header styles */
header {
    background-color: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    text-align: center;
    font-family: 'Bungee', cursive;
    background: linear-gradient(90deg, var(--neon-blue), var(--electric-purple), var(--acid-green), var(--hot-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Main content */
main {
    margin-top: 120px;
    padding-bottom: 3rem;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Game cards */
.game-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.game-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.snake-image {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="180" viewBox="0 0 300 180"><rect width="300" height="180" fill="%231a1a24"/><rect x="40" y="60" width="20" height="20" fill="%23b0ff0d" rx="4"/><rect x="60" y="60" width="20" height="20" fill="%23b0ff0d" rx="4"/><rect x="80" y="60" width="20" height="20" fill="%23b0ff0d" rx="4"/><rect x="100" y="60" width="20" height="20" fill="%23b0ff0d" rx="4"/><rect x="120" y="60" width="20" height="20" fill="%23b0ff0d" rx="4"/><circle cx="180" cy="80" r="10" fill="%23ff2cdf"/><circle cx="180" cy="80" r="6" fill="%231a1a24"/></svg>');
}

.puzzle-image {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="180" viewBox="0 0 300 180"><rect width="300" height="180" fill="%231a1a24"/><rect x="50" y="30" width="40" height="40" fill="%2300f5ff" stroke="%23fff" stroke-width="2" rx="5"/><rect x="90" y="30" width="40" height="40" fill="%23bc13fe" stroke="%23fff" stroke-width="2" rx="5"/><rect x="130" y="30" width="40" height="40" fill="%23b0ff0d" stroke="%23fff" stroke-width="2" rx="5"/><rect x="50" y="70" width="40" height="40" fill="%23b0ff0d" stroke="%23fff" stroke-width="2" rx="5"/><rect x="90" y="70" width="40" height="40" fill="%23bc13fe" stroke="%23fff" stroke-width="2" rx="5"/><rect x="130" y="70" width="40" height="40" fill="%2300f5ff" stroke="%23fff" stroke-width="2" rx="5"/><rect x="50" y="110" width="40" height="40" fill="%23bc13fe" stroke="%23fff" stroke-width="2" rx="5"/><rect x="90" y="110" width="40" height="40" fill="%2300f5ff" stroke="%23fff" stroke-width="2" rx="5"/><rect x="130" y="110" width="40" height="40" fill="%23b0ff0d" stroke="%23fff" stroke-width="2" rx="5"/></svg>');
}

.coming-soon-image {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="180" viewBox="0 0 300 180"><rect width="300" height="180" fill="%231a1a24"/><text x="150" y="90" font-family="Arial" font-size="24" fill="%23ffffff" text-anchor="middle" dominant-baseline="middle">COMING SOON</text><circle cx="150" cy="120" r="20" fill="none" stroke="%23ffffff" stroke-width="2" stroke-dasharray="5,5"/><line x1="150" y1="120" x2="150" y2="105" stroke="%23ffffff" stroke-width="2"/><line x1="150" y1="120" x2="165" y2="120" stroke="%23ffffff" stroke-width="2"/></svg>');
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Bungee', cursive;
    color: var(--light);
    letter-spacing: 1px;
}

.game-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.game-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-blue), var(--electric-purple));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Comfortaa', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.game-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.4);
}

.game-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--electric-purple), var(--hot-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-link:hover::before {
    opacity: 1;
}

/* Game pages */
.game-page {
    padding: 2rem 0;
}

.game-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Bungee', cursive;
    background: linear-gradient(90deg, var(--neon-blue), var(--electric-purple), var(--acid-green), var(--hot-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.game-page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.game-iframe-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.game-iframe-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 14px;
    pointer-events: none;
    z-index: 1;
    margin: 2px;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: var(--card-bg);
}

.game-info {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Bungee', cursive;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

.game-info p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.game-info ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.game-info li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--acid-green);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Comfortaa', cursive;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--acid-green);
}

.back-link:hover {
    background-color: var(--acid-green);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 255, 13, 0.3);
}

/* Footer */
footer {
    background-color: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--neon-blue);
    transform: translateY(-3px);
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .game-page-title {
        font-size: 2rem;
    }
    
    .game-iframe {
        height: 450px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .game-page-title {
        font-size: 1.8rem;
    }
    
    .game-iframe {
        height: 350px;
    }
    
    .game-info {
        padding: 1.5rem;
    }
}