/* Configuración General */
/* Reemplaza tu regla 'body' existente con esta */
body {
    background-color: #000000;
    background-image: url('images/Vortex.gif');
    background-size: 300px;
    background-repeat: repeat;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    
    /* CAMBIOS PARA ACOMODAR EL TÍTULO */
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center;    /* Centra todo horizontalmente */
    padding: 20px;          /* Añade un poco de espacio */
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
}

.game-container {
    display: flex;
    gap: 50px;
    width: 95%;
    max-width: 1400px;
    justify-content: center;
}

/* Área Central del Juego */
.game-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Input para nombre de jugador */
.player-input-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.player-input-container input {
    background-color: #333;
    border: 2px solid #777;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
}

.player-input-container button {
    background-color: #00ffff;
    border: none;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: background-color 0.2s;
}

.player-input-container button:hover {
    background-color: #ffffff;
}

#game-elements {
    display: none; /* Se mostrará con JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score {
    font-size: 120px;
    text-shadow: 4px 4px 10px #000000;
    margin: 0;
    animation: score-pop 0.2s ease-in-out;
}

.character-button {
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.1s ease;
    animation: idle-bounce 2s infinite ease-in-out;
    border-radius: 50%;
    overflow: hidden;
}

.character-button:hover { transform: scale(1.05); }
.character-button:active { transform: scale(0.95); }

.character-button img {
    width: 200px;
    display: block;
    filter: drop-shadow(0px 0px 20px rgba(255,255,255,0.4));
}

.instructions {
    margin-top: 30px;
    font-size: 14px;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #555555;
}

/* Barra Lateral */
.sidebar {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    border: 3px solid #777777;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.panel h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #777777;
    padding-bottom: 10px;
}

.panel ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.panel li { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 5px 0; }
.top-tier { color: #ffd700; }

/* CAMBIO: Estilos para premios bloqueados y descripción de meta */
.locked-prize span {
    color: #666; /* Color gris para el texto */
    font-style: italic; /* Texto en cursiva */
}
.meta-descripcion {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    color: #aaa;
}

/* Barra de progreso */
.subgoal-bar { width: 100%; background-color: #222222; border-radius: 20px; padding: 4px; border: 2px solid #777777; text-align: center; position: relative; }
.subgoal-bar .progress { height: 20px; background-color: #00ffff; border-radius: 15px; transition: width 0.5s ease-in-out; }
.subgoal-bar span { position: absolute; width: 100%; left: 0; top: 5px; font-size: 12px; text-shadow: 1px 1px 2px #000; }

/* Ventana de Mensaje Personalizada */
.message-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
.message-box { background-color: #1a1a1a; border: 3px solid #777; border-radius: 15px; padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 18px; }
.message-box button { background-color: #00ffff; border: none; color: black; padding: 10px 30px; margin-top: 20px; border-radius: 5px; font-family: 'Press Start 2P', cursive; cursor: pointer; }

/* Animaciones */
@keyframes idle-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes score-pop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.shake { animation: shake 0.5s; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }


/* --- Estilos para el Contador Regresivo --- */
.countdown-timer {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 10px;
}

.countdown-timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-timer span {
    font-size: 24px; /* Tamaño de los números */
    color: #00ffff; /* Color cian para los números */
    margin-bottom: 5px;
}

.countdown-timer div {
    font-size: 10px; /* Tamaño del texto (Días, Horas, etc.) */
    color: #aaa;
}
/* --- Título Principal del Evento --- */
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

.main-header {
    text-align: center;
    margin-bottom: 20px; /* Espacio entre el título y el juego */
}

.main-header h1 {
    font-family: 'Creepster', cursive; /* Fuente de Halloween */
    font-size: 5rem; /* 5rem es un tamaño grande y adaptable */
    color: #ff6600; /* Naranja Halloween */
    text-shadow: 3px 3px 0px #000;
    margin: 0;
    line-height: 1;
}

.main-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    margin-top: 10px;
}

/* --- Ajustes para la Clasificación de 3 Columnas --- */

/* Estilo para la cabecera (Jugador, Puntaje, Intentos) */
#leaderboard-list .leaderboard-header {
    color: #00ffff; /* Color cian */
    font-size: 12px;
    border-bottom: 2px solid #555;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

/* Ajuste del ancho de cada columna */
#leaderboard-list li span:nth-child(1) { /* Columna de Nickname */
    flex-basis: 50%; /* Ocupa el 50% del espacio */
    text-align: left;
}
#leaderboard-list li span:nth-child(2) { /* Columna de Puntaje */
    flex-basis: 25%;
    text-align: center;
}
#leaderboard-list li span:nth-child(3) { /* Columna de Intentos */
    flex-basis: 25%;
    text-align: right;
}