/* Variables y configuraciones generales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Estilos para las pantallas */
.screen {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pantalla del menú */
#menu-screen header {
    text-align: center;
    margin-bottom: 40px;
}

#menu-screen h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.game-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.info-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-box h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.difficulty-selector {
    text-align: center;
}

.difficulty-selector h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.difficulty-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 10px 25px;
    border: 2px solid var(--light-color);
    background-color: transparent;
    color: var(--light-color);
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.difficulty-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.difficulty-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Pantalla de instrucciones */
.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.instructions-header h2 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.instruction-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.instruction-step:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.step-content p {
    opacity: 0.9;
    line-height: 1.5;
}

/* Pantalla de juego */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.game-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    min-width: 120px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-end {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-end:hover {
    background-color: #c0392b;
}

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.flag-container {
    position: relative;
    width: 300px;
    height: 200px;
    margin-bottom: 10px;
}

.flag-image {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.flag-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.question {
    text-align: center;
}

.question h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.options-container {
    width: 100%;
    max-width: 700px;
}

.options-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-btn {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.option-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.option-btn.correct {
    background-color: var(--success-color);
    color: white;
}

.option-btn.incorrect {
    background-color: var(--accent-color);
    color: white;
}

.feedback {
    min-height: 60px;
    padding: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    width: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feedback.correct {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

.feedback.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--accent-color);
}

/* Pantalla de resultados */
.results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.results-content h2 {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.result-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    min-width: 250px;
}

.result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.result-icon.correct {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

.result-icon.score {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
}

.result-icon.round {
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.result-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.results-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-game {
    margin-top: 20px;
}

.share-game p {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin-top: 10px;
    }
    
    #menu-screen h1 {
        font-size: 2.2rem;
    }
    
    .game-info {
        flex-direction: column;
    }
    
    .flag-container {
        width: 250px;
        height: 150px;
    }
    
    .flag-image {
        font-size: 3rem;
    }
    
    .option-btn {
        min-width: 100%;
    }
    
    .instructions-header {
        flex-direction: column;
        text-align: center;
    }
    
    .instruction-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .result-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .result-info {
        align-items: center;
    }
}

/* ===========================================
   MEJORAS ESPECÍFICAS PARA MÓVILES
   =========================================== */

@media (max-width: 480px) {
    /* Contenedor principal más compacto */
    .container {
        margin: 5px;
        padding: 10px;
        max-width: 100%;
        border-radius: 8px;
    }
    
    /* Pantallas con menos padding */
    .screen {
        padding: 15px;
    }
    
    /* HEADER MÓVIL */
    #menu-screen h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    /* INFO BOXES - en columna */
    .game-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-box {
        min-width: 100%;
        padding: 15px;
    }
    
    .info-box i {
        font-size: 2rem;
    }
    
    .info-box h3 {
        font-size: 1.3rem;
    }
    
    /* BOTONES PRINCIPALES - más grandes y en columna */
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 18px 20px;
        font-size: 1.1rem;
    }
    
    /* DIFICULTAD - botones más grandes */
    .difficulty-options {
        flex-direction: column;
        width: 100%;
    }
    
    .difficulty-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    /* ===========================================
       PANTALLA DE JUEGO - OPTIMIZACIÓN MÓVIL
       =========================================== */
    
    /* HEADER DE JUEGO - reorganización */
    .game-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    /* ESTADÍSTICAS - en una sola fila compacta */
    .game-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        order: 1;
    }
    
    .stat {
        min-width: auto;
        padding: 12px 5px;
        text-align: center;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Botón de salir - posición fija */
    .btn-end {
        order: 2;
        width: 100%;
        padding: 12px;
        margin-top: 5px;
    }
    
    /* CONTENIDO DEL JUEGO - más compacto */
    .game-content {
        gap: 20px;
    }
    
    /* BANDERA - tamaño reducido */
    .flag-container {
        width: 220px;
        height: 140px;
        margin-bottom: 0;
    }
    
    .flag-shadow {
        top: 8px;
        left: 8px;
    }
    
    /* PREGUNTA - texto más pequeño */
    .question h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    /* OPCIONES - diseño vertical */
    .options-container {
        width: 100%;
    }
    
    .options-row {
        flex-direction: column;
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .option-btn {
        min-width: 100%;
        padding: 18px 15px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    /* FEEDBACK - tamaño ajustado */
    .feedback {
        min-height: 50px;
        padding: 12px;
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    /* ===========================================
       PANTALLA DE INSTRUCCIONES - móvil
       =========================================== */
    .instructions-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .instructions-header h2 {
        font-size: 1.8rem;
    }
    
    .btn-back {
        width: 100%;
    }
    
    .instruction-step {
        padding: 15px;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    /* ===========================================
       PANTALLA DE RESULTADOS - móvil
       =========================================== */
    .results-content h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .results-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-stat {
        min-width: 100%;
        padding: 20px;
        gap: 15px;
    }
    
    .result-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .results-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .results-actions .btn {
        width: 100%;
    }
    
    /* ===========================================
       FOOTER - móvil
       =========================================== */
    footer {
        padding: 15px 10px;
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Para tablets pequeñas */
@media (min-width: 481px) and (max-width: 768px) {
    .game-stats {
        gap: 15px;
    }
    
    .stat {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .options-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .option-btn {
        min-width: 100%;
    }
    
    .flag-container {
        width: 260px;
        height: 160px;
    }
}

/* Para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 360px) {
    #menu-screen h1 {
        font-size: 1.5rem;
    }
    
    .stat {
        padding: 10px 5px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .flag-container {
        width: 200px;
        height: 130px;
    }
    
    .flag-image {
        border-width: 3px;
    }
    
    .question h2 {
        font-size: 1.2rem;
    }
    
    .option-btn {
        padding: 16px 12px;
        font-size: 1rem;
    }
}

/* ===========================================
   MEJORAS DE USABILIDAD GENERAL PARA MÓVILES
   =========================================== */

/* Evitar zoom en inputs en iOS */
@supports (-webkit-touch-callout: none) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Mejorar área de toque en botones */
button, .btn, .option-btn {
    min-height: 44px; /* Tamaño mínimo recomendado para toque */
}

/* Asegurar que los textos no sean demasiado pequeños */
body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Evitar ajuste automático de texto en iOS */
}

/* Animaciones más rápidas para móviles */
@media (max-width: 768px) {
    * {
        transition-duration: 0.2s;
    }
}

/* Ajustar espaciado del loading */
.loading-spinner {
    font-size: 1rem;
}

.loading-spinner i {
    font-size: 1.5rem;
}

/* ===========================================
   HEADER DEL JUEGO - RESPONSIVE
   =========================================== */

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: nowrap;
    gap: 15px;
}

/* Estadísticas del juego */
.game-stats {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 0; /* Permite que se ajuste */
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 80px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
    white-space: nowrap;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Botón de salir */
.btn-end {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0; /* Evita que se encoja */
}

.btn-end:hover {
    background-color: #c0392b;
}

.btn-text {
    display: inline;
}

/* ===========================================
   MEDIA QUERIES PARA RESPONSIVE
   =========================================== */

/* Tabletas */
@media (max-width: 768px) {
    .game-header {
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .game-stats {
        gap: 8px;
    }
    
    .stat {
        padding: 10px 8px;
        min-width: 70px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .btn-end {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .game-header {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    
    .game-stats {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
        justify-content: space-between;
    }
    
    .stat {
        flex: 1;
        min-width: auto;
        padding: 8px 5px;
        margin: 0 2px;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .btn-end {
        order: 2;
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .btn-text {
        display: inline;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .btn-end {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* ===========================================
   CONTENIDO DEL JUEGO - OPTIMIZADO
   =========================================== */

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

/* ===========================================
   CONTENEDOR DE BANDERAS
   =========================================== */

/* Contenedor principal - FLEXIBLE */
.flag-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    min-height: 180px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen de la bandera - SE ADAPTA */
.flag-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    background-color: white; /* Fondo blanco para banderas transparentes */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 5px; /* Espacio interno */
}

/* Imagen dentro del contenedor */
.flag-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain; 
    border-radius: 4px;
}

/* Sombra decorativa */
.flag-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    top: 10px;
    left: 10px;
    z-index: 1;
    filter: blur(2px);
}

/* Para banderas que son emoji (fallback) */
.flag-emoji {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Spinner de carga */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-size: 1rem;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   MEDIA QUERIES PARA RESPONSIVE
   =========================================== */

/* Tablets */
@media (max-width: 768px) {
    .flag-container {
        max-width: 280px;
        min-height: 160px;
    }
    
    .flag-image {
        min-height: 160px;
        border-width: 6px;
    }
    
    .flag-emoji {
        font-size: 3.5rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .flag-container {
        max-width: 250px;
        min-height: 140px;
    }
    
    .flag-image {
        min-height: 140px;
        border-width: 5px;
        padding: 4px;
    }
    
    .flag-shadow {
        top: 8px;
        left: 8px;
    }
    
    .flag-emoji {
        font-size: 3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    .flag-container {
        max-width: 220px;
        min-height: 130px;
    }
    
    .flag-image {
        min-height: 130px;
        border-width: 4px;
    }
    
    .flag-emoji {
        font-size: 2.5rem;
    }
}

/* Opciones */
.options-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.options-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.option-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px 15px;
    font-size: 1.1rem;
}

/* Para móviles - opciones en columna */
@media (max-width: 768px) {
    .flag-container {
        width: 250px;
        height: 156px;
    }
    
    .options-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .option-btn {
        min-width: 100%;
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .flag-container {
        width: 220px;
        height: 140px;
    }
    
    .game-content {
        gap: 20px;
    }
    
    .option-btn {
        padding: 18px 15px;
        font-size: 1rem;
    }
    
    .question h2 {
        font-size: 1.4rem;
        text-align: center;
        padding: 0 10px;
    }
}

/* ===========================================
   ELIMINAR LA ESTRUCTURA ANTIGUA DE MÓVILES
   =========================================== */

.mobile-game-header,
.mobile-stats-top,
.mobile-stat,
.mobile-stat-label,
.mobile-stat-value,
.mobile-btn-end {
    display: none;
}