:root {
    --bg-color: #111;
    --text-color: #33ff00; /* Verde clássico de terminal */
    --accent-color: #ff00ff; /* Rosa neon */
    --secondary-color: #00ffff; /* Ciano neon */
}

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

body {
    background-color: #000;
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Efeito de linhas de varredura (Scanlines) */
.scanlines {
    position: absolute;
    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.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

/* Efeito de tela CRT */
.crt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    z-index: 11;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.screen {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 0 var(--accent-color), -3px -3px 0 var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.btn-retro {
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.btn-retro:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.arcade-box {
    border: 4px solid var(--text-color);
    padding: 2rem;
    background-color: rgba(0, 50, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(51, 255, 0, 0.2), 0 0 20px rgba(51, 255, 0, 0.2);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.game-menu ul {
    list-style: none;
    text-align: left;
}

.game-menu li {
    margin: 1.5rem 0;
}

.game-option {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
}

.game-option:hover, .game-option.active {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    transform: scale(1.05);
    margin-left: 10px;
}

.game-option.active {
    color: #fff;
}

footer {
    margin-top: 2rem;
}

.insert-coin {
    font-size: 1rem;
    color: #ffff00; /* Amarelo */
    animation: blink 1s infinite;
}

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

.blink-slow {
    animation: blink 2s infinite;
}

/* Efeito Glitch no título */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    10% { clip: rect(61px, 9999px, 90px, 0); }
    20% { clip: rect(24px, 9999px, 80px, 0); }
    30% { clip: rect(96px, 9999px, 7px, 0); }
    40% { clip: rect(15px, 9999px, 73px, 0); }
    50% { clip: rect(84px, 9999px, 37px, 0); }
    60% { clip: rect(38px, 9999px, 12px, 0); }
    70% { clip: rect(72px, 9999px, 80px, 0); }
    80% { clip: rect(4px, 9999px, 91px, 0); }
    90% { clip: rect(32px, 9999px, 38px, 0); }
    100% { clip: rect(60px, 9999px, 70px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(51px, 9999px, 66px, 0); }
    10% { clip: rect(15px, 9999px, 89px, 0); }
    20% { clip: rect(87px, 9999px, 12px, 0); }
    30% { clip: rect(2px, 9999px, 49px, 0); }
    40% { clip: rect(80px, 9999px, 20px, 0); }
    50% { clip: rect(33px, 9999px, 87px, 0); }
    60% { clip: rect(45px, 9999px, 5px, 0); }
    70% { clip: rect(66px, 9999px, 25px, 0); }
    80% { clip: rect(11px, 9999px, 71px, 0); }
    90% { clip: rect(98px, 9999px, 18px, 0); }
    100% { clip: rect(21px, 9999px, 50px, 0); }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .game-option {
        font-size: 0.8rem;
    }
}
