/* style.css */

/* Importando a fonte pixelada */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #0aff00;
    --neon-red: #ff3131;
    --bg-color: #050505;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #111;
    background-image: radial-gradient(circle at center, #222 0%, #000 100%);
    font-family: "Press Start 2P", cursive;
    color: white;
    overflow: hidden;
}

/* Container principal com brilho externo */
.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 4px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue), inset 0 0 20px rgba(0, 243, 255, 0.2);
    background: black;
    overflow: hidden;
}

canvas {
    display: block;
}

/* Efeito de Scanline (TV Antiga) */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none; /* Deixa clicar através do efeito */
    z-index: 10;
}

.score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    z-index: 11;
}

/* Estilos dos Modais (Game Over / Win) */
.modal-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-container {
    background: rgba(20, 20, 20, 0.9);
    padding: 50px;
    border: 2px solid white;
    box-shadow: 0 0 15px white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-container h1 {
    font-size: 40px;
    margin: 0;
    text-transform: uppercase;
}

.modal-container p {
    font-size: 18px;
    margin: 10px 0 30px 0;
    color: #ccc;
}

/* Tipografia Neon */
.neon-text-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
}

.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

/* Botões Retro */
.retro-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-family: "Press Start 2P", cursive;
    font-size: 14px;
    padding: 15px 25px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.5);
    margin: 5px;
}

.retro-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.retro-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Animações */
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
