/* public/modules/pacman/style.css */

body {
    overflow: hidden; user-select: none;
    display: flex; flex-direction: column; height: 100vh;
}

.hub-container {
    flex: 1; display: flex; flex-direction: column;
    width: 100%; position: relative; overflow: hidden;
    /* Fundo especial estilo Grid Retro */
    background: 
        linear-gradient(rgba(0, 20, 40, 0.9), rgba(0, 10, 20, 1)),
        linear-gradient(90deg, rgba(0,243,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,243,255,0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.screen {
    display: none; width: 100%; height: 100%;
    flex-direction: column; align-items: center; justify-content: center;
    padding: 10px; box-sizing: border-box; animation: fadeIn 0.5s ease;
}
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SETUP */
.card-panel {
    background: rgba(10, 15, 30, 0.95); border: 1px solid var(--neon-yellow);
    border-radius: 15px; padding: 30px; 
    box-shadow: 0 0 50px rgba(255, 221, 0, 0.2);
    width: 100%; max-width: 500px;
}
.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; color: #aaa; }
.input-group select {
    width: 100%; padding: 12px; background: #151520;
    border: 1px solid #333; border-radius: 8px; color: white; outline: none;
}
.btn-neon {
    background: transparent; border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow); padding: 12px 24px;
    border-radius: 50px; font-weight: bold; cursor: pointer; text-transform: uppercase;
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s;
}
.btn-neon:hover { 
    background: var(--neon-yellow); color: black; 
    box-shadow: 0 0 30px var(--neon-yellow); transform: scale(1.05);
}

/* HUD */
.hud-bar {
    width: 100%; max-width: 800px; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 15px; padding: 0 10px; box-sizing: border-box;
    background: rgba(0,0,0,0.5); border-radius: 50px; padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.info-group { display: flex; align-items: center; gap: 5px; color: white; font-weight: bold; font-size: 1.2rem; }
.word-box {
    color: var(--neon-yellow); font-family: var(--font-gamer); 
    letter-spacing: 2px; font-size: 1.2rem; text-shadow: 0 0 10px var(--neon-yellow);
}
.btn-icon-small {
    background: rgba(255,50,50,0.2); border: 1px solid rgba(255,50,50,0.5);
    color: #ff5555; border-radius: 50%; width: 40px; height: 40px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* CANVAS & 3D EFFECT */
.game-container {
    width: 100%; flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative;
    overflow: hidden;
    perspective: 1000px; /* Prepara para 3D */
}

canvas {
    background: #000; 
    border: 4px solid #222;
    border-radius: 10px; 
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 0 2px var(--neon-blue); /* Borda Neon Externa */
        
    max-width: 100%; max-height: 80vh; object-fit: contain;
    
    /* EFEITO TILT (ARCADE) */
    transform: rotateX(10deg); 
    transition: transform 0.3s;
}

/* No mobile, removemos o tilt para facilitar o controle */
@media (max-width: 600px) {
    canvas { transform: none; border-width: 2px; }
}

.mobile-hint {
    color: #aaa; margin-top: 10px; font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
    opacity: 0; transition: opacity 0.5s;
}

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none;
    justify-content: center; align-items: center; z-index: 5000;
}
.modal-content {
    background: #1a1a2e; border: 2px solid var(--neon-red);
    padding: 40px; border-radius: 20px; text-align: center; width: 90%; max-width: 400px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
}
.control-row { display: flex; }