:root {
    --bg-color: #050510;
    --text-main: #e0e0e0;
    --vcr-green: #00ff00;
    --muted-red: #d32f2f;
    --muted-yellow: #fbc02d;
    --muted-green: #388e3c;
    --muted-blue: #1976d2;
    --muted-purple: #7b1fa2;
    --font-vcr: 'VT323', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* CRT & Scanline overlays */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 100;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 99;
}

/* Chromatic Aberration Text Shadow */
.chromatic-text {
    text-shadow: 2px 0 rgba(255, 0, 0, 0.6), -2px 0 rgba(0, 255, 255, 0.6);
}

/* VCR OSD (On-Screen Display) */
.vcr-osd {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 3rem;
    font-family: var(--font-vcr);
    font-size: 3rem;
    color: var(--text-main);
    pointer-events: none;
    z-index: 98;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.4);
}

.osd-top-left {
    position: absolute;
    top: 3rem;
    left: 4rem;
    animation: blink 2s infinite;
}

.osd-top-right {
    position: absolute;
    top: 3rem;
    right: 4rem;
}

.osd-bottom-left {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
}

.osd-bottom-right {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 5rem auto;
    position: relative;
    z-index: 10;
}

/* Header */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-text {
    font-family: var(--font-vcr);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 3px 0 rgba(255, 0, 0, 0.8), -3px 0 rgba(0, 255, 255, 0.8);
    animation: jitter 4s infinite;
}

@keyframes jitter {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    1% {
        transform: translate(3px, -2px);
        text-shadow: -3px 0 red, 3px 0 cyan;
    }

    2% {
        transform: translate(-3px, 2px);
        text-shadow: 3px 0 red, -3px 0 cyan;
    }

    3% {
        transform: translate(2px, 3px);
        opacity: 0.8;
    }

    4% {
        transform: translate(0, 0);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0);
    }
}

.rainbow-stripe {
    height: 8px;
    width: 60%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(to right,
            var(--muted-red) 0%, var(--muted-red) 20%,
            var(--muted-yellow) 20%, var(--muted-yellow) 40%,
            var(--muted-green) 40%, var(--muted-green) 60%,
            var(--muted-blue) 60%, var(--muted-blue) 80%,
            var(--muted-purple) 80%, var(--muted-purple) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 5px rgba(255, 255, 255, 0.1) inset;
    border-radius: 2px;
}

.subtitle {
    font-family: var(--font-vcr);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon-badge {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-vcr);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-main);
    animation: blink 2s infinite;
    text-shadow: 2px 0 rgba(255, 0, 0, 0.4), -2px 0 rgba(0, 255, 255, 0.4);
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Content */
.description {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: #b0b0b0;
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.game-card {
    border: 2px solid #333;
    background: rgba(20, 20, 25, 0.8);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--muted-red);
}

.game-card:nth-child(2)::before {
    background: var(--muted-blue);
}

.game-card:nth-child(3)::before {
    background: var(--muted-yellow);
}

.game-card:hover {
    border-color: #555;
    background: rgba(40, 40, 45, 0.9);
    transform: translateX(4px);
}

.card-content {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-vcr);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    width: 100%;
}

.card-content p {
    font-size: 1rem;
    color: #a0a0a0;
    flex-grow: 1;
    min-width: 250px;
}

.btn {
    font-family: var(--font-vcr);
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border: 2px solid #555;
    color: #888;
    cursor: not-allowed;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    border-color: #888;
    color: #ccc;
}

.btn-active {
    border-color: var(--vcr-green);
    color: var(--vcr-green);
    cursor: pointer;
}

.btn-active:hover {
    background-color: var(--vcr-green);
    color: var(--bg-color);
    border-color: var(--vcr-green);
}

footer {
    text-align: center;
    font-family: var(--font-vcr);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 1rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .vcr-osd {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    .osd-top-left {
        top: 1.5rem;
        left: 1.5rem;
    }

    .osd-top-right {
        top: 1.5rem;
        right: 1.5rem;
    }

    .osd-bottom-left {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .osd-bottom-right {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }
}