/* =========================================
   BPSO PONG GAME (STYLED)
   ========================================= */

.game-overlay, 
.game-canvas {
    /* Impede o navegador de interpretar toques como scroll ou zoom */
    touch-action: none !important; 
    
    /* Garante que o usuário não consiga selecionar nada enquanto joga */
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Fundo Geral (Overlay) */
.game-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Fundo escuro com leve azul BPSO */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10002;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-overlay.active {
    opacity: 1; pointer-events: all;
}

/* Área do Jogo (Canvas) */
.game-canvas {
    background: #0f172a; /* Slate 900 (Fundo do site) */
    border: 1px solid rgba(37, 99, 235, 0.3); /* Borda Azul Sutil */
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5); /* Sombra suave */
    border-radius: 16px; /* Bordas arredondadas modernas */
    max-width: 95%;
    cursor: none; /* Esconde mouse ingame */
}

/* Menu de Início (Glassmorphism) */
#game-menu {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Transparência */
    backdrop-filter: blur(4px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10;
    border-radius: 16px; /* Acompanha o canvas */
}

/* Tipografia */
.game-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: -1px;
}
.game-title span { color: #2563eb; } /* Azul BPSO */

.game-subtitle {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Botão Iniciar (Estilo BPSO) */
.game-btn-start {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, background 0.2s;
}
.game-btn-start:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Instruções */
.game-instructions {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex; align-items: center; gap: 10px;
}
.key-badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: bold; color: #fff;
}

/* Botão Fechar (Externo) */
.game-ui { margin-top: 20px; text-align: center; }
.game-close-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}
.game-close-btn:hover { border-color: #fff; color: #fff; }