* { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; }

body { background-color: #1a1a2e; color: white; overflow: hidden; }

#rotate-warning {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #ff5722; z-index: 9999; align-items: center; justify-content: center; text-align: center;
}

@media (orientation: portrait) {
    #rotate-warning { display: flex; } 
    #game-container { display: none; } 
}

#game-container {
    width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%); 
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px;
    padding: 30px; text-align: center; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 80%; max-width: 700px;
}

.hidden { display: none !important; }

/* Botões Login */
button {
    padding: 12px 30px; border: none; border-radius: 50px; font-weight: bold;
    font-size: 16px; cursor: pointer; transition: transform 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
button:hover { transform: scale(1.05); }
.btn-primary { background: white; color: #4364F7; width: 100%; margin-bottom: 15px;}
.btn-secondary { background: rgba(0, 0, 0, 0.3); color: white; border: 1px solid rgba(255,255,255,0.5); width: 100%; margin-bottom: 15px;}

/* Avatares */
.avatar-selection { display: flex; justify-content: space-around; margin: 25px 0; }
.avatar-box {
    width: 140px; height: 150px; border: 2px solid rgba(255,255,255,0.4); 
    border-radius: 15px; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.3s ease; background: rgba(0, 0, 0, 0.1);
}
.avatar-box:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-5px); }
.avatar-img { width: auto; height: 90px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3)); }

/* ==================================
   DESIGN DO MAPA DE FASES
   ================================== */
.map-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 15px; margin-bottom: 20px;
}
.player-status { font-size: 16px; font-weight: bold; background: rgba(0,0,0,0.3); padding: 8px 15px; border-radius: 20px; }

.modules-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; overflow-y: auto; padding: 10px; flex-grow: 1;
}

/* Estilo das Fases do Mapa */
.module-btn {
    padding: 20px; border-radius: 15px; font-size: 16px; width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.module-btn.unlocked {
    background: linear-gradient(45deg, #FF8C00, #FFA500); color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4); border: 2px solid #fff;
    animation: pulse 2s infinite;
}
.module-btn.locked {
    background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.5); cursor: not-allowed; border: 2px dashed rgba(255,255,255,0.2);
}
.module-btn.locked:hover { transform: none; }

/* Efeito de brilho na fase liberada */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
}