/* Paleta de Colores de Sinba y Fundación Sin Barreras:
   - Azul Principal: #0072ce
   - Rojo: #e31b23
   - Verde: #4eb848
   - Amarillo: #fdb913
   - Fondo Oscuro: #0a0f1d
   - Tarjetas Neumórficas: rgba(255, 255, 255, 0.07)
*/

:root {
    --primary-color: #0072ce;
    --red-color: #e31b23;
    --green-color: #4eb848;
    --yellow-color: #fdb913;
    --bg-dark: #0a0f1d;
    --card-bg: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-color: #ffffff;
    --text-muted: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #15223e 0%, #0a0f1d 100%);
    overflow: hidden;
}

/* Pantallas generales */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start; /* Permite empezar desde arriba si hay scroll */
    align-items: center;
    padding: 30px 20px;
    overflow-y: auto; /* Habilita scroll vertical si la pantalla del navegador es baja */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.screen.active {
    display: flex;
    opacity: 1;
    z-index: 10;
}

/* Tarjetas */
.card {
    background: rgba(255, 255, 255, 0.95); /* Fondo claro para máxima legibilidad */
    backdrop-filter: blur(12px);
    border: 3px solid var(--primary-color); /* Borde visible azul */
    border-radius: 28px;
    padding: 35px 45px; /* Más espaciado horizontal */
    width: 90%;
    max-width: 760px; /* Tarjeta más ancha para evitar textos angostos */
    flex-shrink: 0; /* CRÍTICO: Previene que flexbox exprima el ancho al encogerse de alto */
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    color: #1e293b; 
    margin: 40px auto; /* Fijo en lugar de auto para prevenir bug de flexbox y permitir scroll */
}

.logo-sinba {
    width: 105px; /* Más compacto para ajustarse a pantallas de laptops/tablets */
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1 {
    font-size: 2.8rem; /* Tamaño optimizado */
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Instrucciones */
.instructions-card {
    background: rgba(0, 114, 206, 0.07);
    border-radius: 20px;
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 24px;
    border: 2px solid rgba(0, 114, 206, 0.15);
}

.instructions-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    text-align: center;
}

.instructions-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Mayor separación para claridad y descanso visual */
}

.instructions-card li {
    font-size: 1.25rem; /* Texto más grande para niños */
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
    position: relative;
    padding-left: 50px; /* Espacio reservado para el emoji */
}

.instructions-card li:last-child {
    margin-bottom: 0;
}

.emoji {
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 1.8rem; /* Emojis grandes y llamativos */
    text-align: center;
    line-height: 1;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00569e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 114, 206, 0.4);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 206, 0.6);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: #4a5568;
    color: #718096;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(0, 114, 206, 0.08);
    border-color: #00569e;
    color: #00569e;
}

/* Pantalla de Calibración */
.calibration-card {
    max-width: 680px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
    border: 2px solid var(--border-color);
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Efecto espejo */
}

#calibration-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: scaleX(-1); /* Efecto espejo */
}

/* Silueta de guía */
.overlay-guideline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 240px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4); /* Ocultar resto */
    transition: border-color 0.3s ease;
}

.overlay-guideline.success {
    border-color: var(--green-color);
    box-shadow: 0 0 0 9999px rgba(0, 114, 206, 0.2);
}

.status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    animation: spin 1s linear infinite;
}

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

/* Pantalla del Juego */
#screen-game {
    position: relative;
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 15;
}

.hud-left, .hud-right {
    display: flex;
    gap: 16px;
}

.hud-item {
    background: rgba(10, 15, 29, 0.75);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 110px;
}

.hud-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.hud-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

#lives-container {
    display: flex;
    gap: 4px;
    margin-top: 2px;
    font-size: 1.2rem;
}

.heart {
    text-shadow: 0 0 5px rgba(227, 27, 35, 0.6);
}

.shield-bar-bg {
    width: 120px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shield-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 6px;
    transition: width 0.1s linear;
}

/* Feedback de Cámara Pequeño */
.camera-feedback {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 15;
}

#webcam-game {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

#game-pose-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.feedback-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
}

/* Game Over */
.gameover-title {
    font-size: 3rem;
    color: var(--red-color);
    background: linear-gradient(135deg, #ff4d4d 0%, #a30000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.score-summary {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.final-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--yellow-color);
    text-shadow: 0 0 20px rgba(253, 185, 19, 0.4);
    margin-bottom: 20px;
}

.motivational-phrase {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Selector de Niveles */
.levels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px 0;
    width: 100%;
}

@media (min-width: 600px) {
    .levels-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-level {
    background: rgba(0, 114, 206, 0.05);
    border: 2px solid rgba(0, 114, 206, 0.15);
    border-radius: 18px;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #1e293b;
    width: 100%;
}

.btn-level:hover {
    background: rgba(0, 114, 206, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 114, 206, 0.12);
}

.level-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.level-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.level-desc {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Nivel 2 Estilos diferenciados (Música Geometry Dash - Naranja/Rojo) */
#btn-lvl-2 {
    background: rgba(227, 27, 35, 0.03);
    border-color: rgba(227, 27, 35, 0.12);
}

#btn-lvl-2:hover {
    background: rgba(227, 27, 35, 0.08);
    border-color: var(--red-color);
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.12);
}

#btn-lvl-2 .level-num {
    color: var(--red-color);
}

/* Nivel 3 Estilos diferenciados (Morado/Neon) */
#btn-lvl-3 {
    background: rgba(168, 85, 247, 0.03);
    border-color: rgba(168, 85, 247, 0.12);
}

#btn-lvl-3:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: #a855f7;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.12);
}

#btn-lvl-3 .level-num {
    color: #a855f7;
}

/* Nivel 4 Estilos diferenciados (Índigo/Cian) */
#btn-lvl-4 {
    background: rgba(67, 56, 202, 0.03);
    border-color: rgba(67, 56, 202, 0.12);
}

#btn-lvl-4:hover {
    background: rgba(67, 56, 202, 0.08);
    border-color: #6366f1;
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.12);
}

#btn-lvl-4 .level-num {
    color: #6366f1;
}

/* Nivel 5 Estilos diferenciados (Dorado/Acero) */
#btn-lvl-5 {
    background: rgba(217, 119, 6, 0.03);
    border-color: rgba(217, 119, 6, 0.12);
}

#btn-lvl-5:hover {
    background: rgba(217, 119, 6, 0.08);
    border-color: #d97706;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.12);
}

#btn-lvl-5 .level-num {
    color: #d97706;
}

/* Selector de Modo de Control */
.control-mode-selector {
    margin-bottom: 20px;
    background: rgba(0, 114, 206, 0.04);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 114, 206, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.control-mode-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    text-align: center;
}

.mode-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.btn-mode {
    background: #ffffff;
    border: 2px solid rgba(0, 114, 206, 0.15);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 240px;
    text-align: center;
}

.btn-mode:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-mode.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.2);
}

/* --- AJUSTES DE ACCESIBILIDAD --- */
.accessibility-box {
    margin-top: 15px !important;
    background: rgba(78, 184, 72, 0.05) !important; /* Suave verde */
    border-color: rgba(78, 184, 72, 0.2) !important;
}
.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
}
.switch-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
}
.vol-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.15s;
}
.volume-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    min-width: 45px;
    text-align: right;
}

/* --- PANTALLA DE RANKING (TABLA Y MEDALLAS) --- */
.ranking-table-container {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    margin: 15px 0;
    border: 2px solid rgba(0, 114, 206, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.ranking-table th, .ranking-table td {
    padding: 10px 14px;
    font-size: 1.1rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ranking-table th {
    background: rgba(0, 114, 206, 0.1);
    color: var(--primary-color);
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 5;
}
.ranking-table tr:hover {
    background: rgba(0, 114, 206, 0.03);
}
.ranking-table tr:nth-child(1) td {
    font-weight: 800;
    color: #b45309; /* Oro */
    background: rgba(253, 185, 19, 0.05);
}
.ranking-table tr:nth-child(2) td {
    font-weight: 700;
    color: #475569; /* Plata */
}
.ranking-table tr:nth-child(3) td {
    font-weight: 700;
    color: #78350f; /* Bronce */
}
.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
}
.rank-badge.gold {
    background: #fdb913;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(253, 185, 19, 0.4);
}
.rank-badge.silver {
    background: #cbd5e1;
    color: #475569;
}
.rank-badge.bronze {
    background: #b45309;
    color: #ffffff;
}
.rank-badge.other {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

/* --- FORMULARIO DE REGISTRO DE PUNTAJE Y AVATAR --- */
.save-score-box {
    background: rgba(0, 114, 206, 0.03);
    border: 2px dashed rgba(0, 114, 206, 0.2);
    border-radius: 20px;
    padding: 16px;
    margin: 15px 0;
    width: 100%;
}
#player-name-input {
    width: 100%;
    max-width: 320px;
    padding: 10px 16px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 114, 206, 0.2);
    border-radius: 12px;
    outline: none;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    background: #ffffff;
}
#player-name-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 114, 206, 0.15);
}
.avatar-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.btn-avatar {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}
.btn-avatar:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-avatar.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 114, 206, 0.2);
}
.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
}

/* --- ESTILOS NIVELES 6, 7 Y 8 --- */
/* Nivel 6 Estilos diferenciados (Índigo/Azul) */
#btn-lvl-6 {
    background: rgba(79, 70, 229, 0.03);
    border-color: rgba(79, 70, 229, 0.12);
}
#btn-lvl-6:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: #4f46e5;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);
}
#btn-lvl-6 .level-num {
    color: #4f46e5;
}

/* Nivel 7 Estilos diferenciados (Rojo/Castillo) */
#btn-lvl-7 {
    background: rgba(185, 28, 28, 0.03);
    border-color: rgba(185, 28, 28, 0.12);
}
#btn-lvl-7:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: #b91c1c;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.12);
}
#btn-lvl-7 .level-num {
    color: #b91c1c;
}

/* Nivel 8 Estilos diferenciados (Verde Calma) */
#btn-lvl-8 {
    background: rgba(78, 184, 72, 0.03);
    border-color: rgba(78, 184, 72, 0.12);
}
#btn-lvl-8:hover {
    background: rgba(78, 184, 72, 0.08);
    border-color: #4eb848;
    box-shadow: 0 10px 20px rgba(78, 184, 72, 0.12);
}
#btn-lvl-8 .level-num {
    color: #4eb848;
}

/* --- ADVERTENCIA DE ROTACIÓN MÓVIL Y RESPONSIVIDAD --- */
#portrait-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

#portrait-warning h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

#portrait-warning p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.5;
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: rotatePhone 2.5s ease-in-out infinite;
}

@keyframes rotatePhone {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
}

/* Mostrar advertencia en pantallas pequeñas con orientación vertical (portrait) */
@media (orientation: portrait) and (max-width: 850px) {
    #portrait-warning {
        display: flex;
    }
}

/* Optimización para el HUD en pantallas horizontales estrechas (móviles en landscape) */
@media (max-width: 980px) {
    .game-hud {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .hud-left, .hud-right {
        gap: 8px;
    }
    .hud-item {
        min-width: 85px;
        padding: 6px 12px;
        border-radius: 8px;
    }
    .hud-label {
        font-size: 0.65rem;
    }
    .hud-value {
        font-size: 1.1rem;
    }
    #lives-container {
        font-size: 1rem;
    }
    .shield-bar-bg {
        width: 90px;
        height: 8px;
        margin-top: 6px;
    }
    .camera-feedback {
        width: 100px;
        height: 75px;
        bottom: 10px;
        right: 10px;
    }
}

/* Optimización para tarjetas y contenido en pantallas con baja altura (mobile landscape) */
@media (max-height: 580px) {
    .screen {
        padding: 12px 10px;
    }
    .card {
        padding: 16px 24px;
        margin: 10px auto;
        border-radius: 20px;
    }
    .logo-sinba {
        width: 60px;
        margin-bottom: 6px;
    }
    h1 {
        font-size: 1.7rem;
        margin-bottom: 4px;
    }
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .instructions-card {
        padding: 10px 16px;
        margin-bottom: 12px;
    }
    .instructions-card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .instructions-card ul {
        gap: 8px;
    }
    .instructions-card li {
        font-size: 0.95rem;
        padding-left: 32px;
    }
    .emoji {
        font-size: 1.1rem;
    }
    .control-mode-selector {
        padding: 10px;
        margin-bottom: 12px;
    }
    .control-mode-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .btn-mode {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    .menu-actions {
        gap: 10px;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .levels-grid {
        gap: 10px;
        margin: 12px 0;
    }
    .btn-level {
        padding: 12px 16px;
    }
    .level-num {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    .level-name {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    .level-desc {
        font-size: 0.85rem;
    }
}


