:root {
    --primary: #4a90e2;
    --success: #2ec4b6;
    --danger: #e71d36;
    --navy-blue: #1b263b;
    --chalk-dark: #0d1b2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('assets/bk.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* --- CONTENEDOR DEL JUEGO --- */
.game-container {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    border: 3px solid var(--navy-blue);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 380px;
    text-align: center;
    z-index: 2;
}

.logo-wrapper { margin-bottom: 12px; }

/* LOGO TAMAÑO ORIGINAL COMPACTO */
.game-logo { 
    max-width: 150px; 
    height: auto; 
}

.stats-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.scoreboard, .timerboard {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.07);
    color: var(--chalk-dark);
    border-radius: 12px;
    padding: 6px 12px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    flex: 1;
    font-weight: bold;
}
.timerboard strong { color: var(--danger); }

.question-box { color: var(--chalk-dark); font-size: 1.25rem; font-weight: 600; margin: 15px 0; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.btn-option {
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 0.95rem;
    color: var(--chalk-dark);
    cursor: pointer;
    font-weight: 500;
}

/* --- POPUPS MINIMALISTAS (SIN CAJA, SOLO IMAGEN Y BOTÓN) --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
}

.popup-img {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}

.popup-content h2, .popup-content p { color: white; margin-bottom: 10px; }

.btn-popup, .btn-popup-submit, .btn-restart {
    background-color: #2ec4b6;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.reg-form {
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    width: 100%;
}
.reg-form input { padding: 12px; border-radius: 8px; border: none; }

.hidden { display: none !important; }