@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

:root {
    --neon-pink: #ff2a6d;
    --neon-cyan: #05d9e8;
    --neon-green: #39ff14;
    --neon-purple: #d300c5;
    --neon-yellow: #f5f500;
    --dark-bg: #0d0d0d;
    --darker-bg: #050505;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--darker-bg);
    min-height: 100vh;
    font-family: 'VT323', monospace;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Noise texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.site-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 900px;
    margin: auto;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.back-link {
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
    color: var(--neon-cyan);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.back-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    transform: translateX(-5px);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 8vw, 3rem);
    color: var(--neon-pink);
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        3px 3px 0 var(--neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* Glitch effect */
.glitch {
    position: relative;
    animation: glitch-skew 2s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--neon-cyan);
    animation: glitch-anim 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch::after {
    color: var(--neon-green);
    animation: glitch-anim-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

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

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-0.5deg); }
    20% { transform: skew(0.5deg); }
    30% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.tagline {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.tagline .blink {
    color: var(--neon-green);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(255, 42, 109, 0.3),
        inset 0 0 20px rgba(255, 42, 109, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.game-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.game-card.coming-soon:hover {
    opacity: 1;
}

.card-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 42, 109, 0.03) 2px,
        rgba(255, 42, 109, 0.03) 4px
    );
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.card-content p {
    font-size: 1.25rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.card-content .status {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 42, 109, 0.2);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    border-radius: 3px;
    animation: pulse 2s infinite;
}

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

/* Active game card (for when you add real games) */
.game-card.active {
    opacity: 1;
    cursor: pointer;
}

.game-card.active .status {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
    animation: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer p {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
    .site-container {
        padding: 1rem 0;
    }

    .header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .header h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        min-height: 150px;
        padding: 1.25rem;
    }

    .card-content h3 {
        font-size: 0.85rem;
    }

    .card-content p {
        font-size: 1.1rem;
    }

    .card-content .status {
        font-size: 0.5rem;
    }

    .back-link {
        font-size: 1.1rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 380px) {
    .header h1 {
        font-size: 1.1rem;
    }

    .card-content h3 {
        font-size: 0.75rem;
    }
}
