/* Fuente similar a Daggersquare +1 */

/* Estilos para la imagen de la copa */
.cup-icon {
    width: 70px;
    height: 70px;
    vertical-align: middle;
    margin-right: 18px;
    display: inline-block;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Arial', sans-serif;
    /* Colores RGB SDR optimizados (8-bit: 0-255) para LG Full HD */
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(51, 51, 51);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Transición optimizada para 60Hz - 16.67ms por frame */
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimización para TV Box y dispositivos táctiles */
input, button, .option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* Mejoras para dispositivos con pantallas grandes (TV Box) */
@media (min-width: 1920px) {
    body {
        font-size: 1.2em;
    }
}

/* Contenedor principal */
.container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Optimización específica para LG Full HD 1920x1080 @ 60Hz (SDR 8-bit RGB) */
@media (min-width: 1920px) and (max-width: 1920px), (min-width: 1900px) and (max-width: 1940px) {
    body {
        font-size: 18px;
        /* Optimización para renderizado suave a 60fps */
        backface-visibility: hidden;
    }
    
    .container {
        max-width: 1600px;
        padding: 50px;
        margin: 0 auto;
    }
    
    .title {
        font-size: 5.5rem;
        letter-spacing: 4px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
    }
    
    .subtitle {
        font-size: 1.8rem;
        margin-bottom: 45px;
    }
    
    .question-text {
        font-size: 3.8rem;
        padding: 85px 60px 45px 60px;
        border-radius: 32px;
        border: 4px solid rgba(0, 0, 0, 0.15);
        line-height: 1.4;
        min-height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        box-shadow: none;
    }
    
    .question-number {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .lives-container-corner .heart {
        font-size: 2.5rem;
        margin: 0 8px;
    }
    
    .timer-container-corner {
        font-size: 2rem;
        top: 22px;
        right: 30px;
    }
    
    .timer-container-corner .timer {
        font-size: 2.5rem;
        min-width: 60px;
    }
    
    .options-container {
        gap: 45px;
        max-width: 1300px;
        margin: 40px auto;
        padding-bottom: 40px;
    }
    
    .option {
        font-size: 2rem;
        padding: 40px 60px;
        min-height: 110px;
        border-radius: 28px;
        line-height: 1.7;
        /* Optimización para animaciones suaves */
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateZ(0);
        will-change: transform, box-shadow;
    }
    
    .option:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    }
    
    .cta-button {
        font-size: 1.9rem;
        padding: 28px 70px;
        min-height: 80px;
        border-radius: 50px;
        /* Optimización para 60fps */
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .game-info {
        gap: 60px;
        margin-bottom: 50px;
    }
    
    .info-item {
        font-size: 1.6rem;
    }
    
    .icon {
        font-size: 2rem;
    }
    
    .player-input input {
        max-width: 600px;
        font-size: 1.6rem;
        padding: 20px 30px;
    }
    
    .result-title {
        font-size: 4rem;
    }
    
    .result-subtitle {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 1.3rem;
    }
    
    .ranking-title {
        font-size: 1.5rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 18px 15px;
        font-size: 1.2rem;
    }
    
    .cup-icon {
        width: 90px;
        height: 90px;
    }
    
    .feedback-icon {
        font-size: 5rem;
        margin-bottom: 20px;
    }
    
    .feedback-text {
        font-size: 2rem;
    }
}

/* Optimización para TV Box (resoluciones típicas: 1280x720) */
@media (min-width: 1280px) and (max-width: 1919px) {
    .container {
        max-width: 1000px;
        padding: 30px;
    }
    
    .title {
        font-size: 4rem;
    }
    
    .question-text {
        font-size: 3rem;
        padding: 65px 40px 32px 40px;
        border-radius: 28px;
        border: 3px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner .heart {
        font-size: 2rem;
    }
    
    .timer-container-corner {
        font-size: 1.7rem;
    }
    
    .timer-container-corner .timer {
        font-size: 2rem;
    }
    
    .option {
        font-size: 1.4rem;
        padding: 25px;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button {
        font-size: 1.5rem;
        padding: 20px 50px;
        min-height: 60px;
    }
}

/* Clase específica para detección de Full HD 1920x1080 */
.full-hd-screen {
    /* Optimización global para Full HD */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.full-hd-screen * {
    /* Renderizado de texto optimizado para Full HD */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Media query backup para resoluciones Full HD */
@media (min-width: 1920px) and (max-width: 1920px) and (min-height: 1080px) and (max-height: 1080px) {
    body {
        /* Confirmación de optimización Full HD */
        font-size: 18px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1200px;
        padding: 40px;
    }
    
    .title {
        font-size: 5rem;
    }
    
    .question-text {
        font-size: 3.6rem;
        padding: 70px 50px 35px 50px;
        border-radius: 30px;
        border: 4px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner .heart {
        font-size: 2.2rem;
    }
    
    .timer-container-corner {
        font-size: 1.8rem;
        top: 18px;
        right: 25px;
    }
    
    .timer-container-corner .timer {
        font-size: 2.2rem;
    }
    
    .option {
        font-size: 1.6rem;
        padding: 30px;
        min-height: 90px;
    }
    
    .cta-button {
        font-size: 1.7rem;
        padding: 25px 60px;
        min-height: 70px;
    }
    
    .cup-icon {
        width: 80px;
        height: 80px;
    }
    
    .game-info {
        gap: 50px;
    }
    
    .info-item {
        font-size: 1.4rem;
    }
}

/* Pantallas */
.screen {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

/* Animación optimizada para 60Hz (16.67ms por frame) */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) translateZ(0); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) translateZ(0); 
    }
}

/* Pantalla de Bienvenida */
#welcome-screen {
    /* RGB SDR 8-bit optimizado */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.title {
    font-family: 'Orbitron', 'Bungee', 'Meta Courage', 'Manor', serif;
    font-size: 3.5rem;
    font-weight: 900;
    /* RGB SDR optimizado para Full HD */
    color: rgb(74, 85, 104);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    /* Renderizado suave de texto en Full HD */
    text-rendering: optimizeLegibility;
}

.subtitle {
    font-size: 1.3rem;
    /* RGB SDR 8-bit */
    color: rgb(113, 128, 150);
    margin-bottom: 40px;
    font-weight: 300;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Share Tech Mono', 'Orbitron', 'Arial', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.icon {
    font-size: 1.5rem;
}

/* Input del nombre del jugador */
.player-input {
    margin-bottom: 30px;
}

.player-input input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.2rem;
    /* RGB SDR 8-bit */
    border: 3px solid rgb(226, 232, 240);
    border-radius: 25px;
    text-align: center;
    /* Optimizado para 60fps */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    color: rgb(74, 85, 104);
    font-weight: 500;
}

.player-input input:focus {
    outline: none;
    border-color: #e2e8f0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.player-input input::placeholder {
    /* RGB SDR 8-bit */
    color: rgb(0, 102, 255);
    font-weight: 400;
}

/* Estados de error para el input del jugador */
.player-input input.error {
    border-color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

.player-input input.error:focus {
    border-color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Animación de shake optimizada para 60fps */
@keyframes shake {
    0%, 100% { transform: translateX(0) translateZ(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px) translateZ(0); }
    20%, 40%, 60%, 80% { transform: translateX(5px) translateZ(0); }
}

/* Botón Call to Action */
.cta-button {
    /* Colores RGB SDR 8-bit optimizados para Full HD */
    background: linear-gradient(135deg, rgb(255, 0, 0), rgb(238, 90, 36));
    color: rgb(255, 255, 255);
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    /* Transición optimizada para 60fps */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Hardware acceleration para 60fps suaves */
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.cta-button:hover {
    /* Animación optimizada para 60Hz */
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

.cta-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Grupo de botones */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botón secundario */
.cta-button.secondary {
    /* RGB SDR 8-bit optimizado */
    background: linear-gradient(135deg, rgb(102, 126, 234), rgb(118, 75, 162));
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.cta-button.secondary:hover {
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* Pantalla de Juego */
#game-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Estilos antiguos - ocultos pero mantenidos por compatibilidad */
.game-header {
    display: none;
}

.lives-container, .timer-container {
    display: none;
}

/* Animación pulse optimizada para 60fps en Full HD */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1) translateZ(0); 
    }
    50% { 
        transform: scale(1.1) translateZ(0); 
    }
}

/* Contenedor de preguntas */
.question-container {
    margin-bottom: 100px;
}

.question-number {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Contenedor de la caja de pregunta */
.question-box {
    position: relative;
    margin-bottom: 100px;
}

.question-text {
    font-size: 2.8rem;
    /* RGB SDR 8-bit optimizado */
    color: rgb(45, 55, 72);
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 700;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    padding: 60px 40px 30px 40px;
    background: transparent;
    box-shadow: none;
    /* Optimización de renderizado */
    transform: translateZ(0);
    text-rendering: optimizeLegibility;
}

/* Vidas en esquina superior izquierda */
.lives-container-corner {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lives-container-corner .hearts {
    display: flex;
    gap: 5px;
}

.lives-container-corner .heart {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.lives-container-corner .heart.lost {
    opacity: 0.3;
    transform: scale(0.8);
}

/* Timer en esquina superior derecha */
.timer-container-corner {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
}

.timer-container-corner .timer {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e53e3e;
    min-width: 40px;
}

.timer-container-corner .timer.warning {
    color: #ff0000;
    animation: pulse 1s infinite;
}

/* Opciones de respuesta */
.options-container {
    display: grid;
    gap: 35px;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.option {
    background: rgba(255, 255, 255, 0.9);
    /* Sin borde por defecto - se aplicará desde JavaScript con colores personalizados */
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 25px 40px;
    cursor: pointer;
    /* Transición optimizada para 60fps */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(74, 85, 104);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
    hyphens: none;
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Mejorar interacción táctil */
.option:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Optimización para TV Box - botones más grandes */
@media (min-width: 1280px) {
    .options-container {
        gap: 40px;
        max-width: 900px;
        padding-bottom: 35px;
    }
    
    .option {
        min-height: 90px;
        font-size: 1.6rem;
        padding: 30px 45px;
        border-radius: 30px;
        line-height: 1.7;
    }
}

.option:hover {
    /* Sin cambio de borde - se mantiene el color personalizado */
    background: rgba(255, 255, 255, 1);
    /* Optimizado para 60fps */
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.option.selected {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.9);
}

.option.correct {
    /* RGB SDR 8-bit optimizado */
    border-color: rgb(72, 187, 120);
    background: rgba(72, 187, 120, 0.2);
    color: rgb(47, 133, 90);
}

.option.incorrect {
    /* RGB SDR 8-bit optimizado */
    border-color: rgb(245, 101, 101);
    background: rgba(245, 101, 101, 0.2);
    color: rgb(197, 48, 48);
}

.option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Feedback */
.feedback {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999 !important;
    animation: feedbackPop 0.5s ease;
    width: auto !important;
    max-width: 90vw;
    min-width: 250px;
    margin: 0 !important;
    backface-visibility: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.feedback.hidden {
    display: none !important;
}

/* Animación feedbackPop optimizada para 60Hz */
@keyframes feedbackPop {
    0% { 
        transform: translate(-50%, -50%) scale(0.8); 
        opacity: 0; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

.feedback-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.feedback-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.feedback-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Hundo', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Pantallas de resultado */
#win-screen, #lose-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.result-content {
    text-align: center;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-title {
    font-family: 'Orbitron', 'Bungee', 'Meta Courage', 'Manor', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #2d3748;
    letter-spacing: 3px;
}

.result-subtitle {
    font-size: 1.3rem;
    color: #0066ff;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
}

/* Información del jugador en resultados */
.player-result-info {
    margin-bottom: 40px;
}

.player-name-result {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.player-name-result .label {
    color: #718096;
    font-weight: 500;
}

.player-name-result .value {
    color: #4a5568;
    font-weight: 700;
    margin-left: 10px;
}

/* Sección de ranking */
.ranking-section {
    margin-bottom: 40px;
}

.ranking-title {
    font-family: 'Press Start 2P', 'Meta Courage', 'Manor', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

.ranking-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.ranking-loading {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    padding: 20px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ranking-table thead {
    /* RGB SDR 8-bit optimizado para Full HD */
    background: linear-gradient(135deg, rgb(102, 126, 234), rgb(118, 75, 162));
    color: rgb(255, 255, 255);
}

.ranking-table th {
    padding: 15px 10px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.ranking-table th:first-child {
    width: 60px;
}

.ranking-table th:nth-child(2) {
    text-align: left;
    padding-left: 20px;
}

.ranking-table th:nth-child(3),
.ranking-table th:nth-child(4),
.ranking-table th:nth-child(5) {
    width: 100px;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 1rem;
    color: #4a5568;
}

.ranking-table td:nth-child(2) {
    text-align: left;
    padding-left: 20px;
    font-weight: 600;
}

.ranking-table td:first-child {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

/* Estilos específicos para la columna de vidas */
.ranking-table th:nth-child(5),
.ranking-table td:nth-child(5) {
    width: 80px;
    text-align: center;
}

.ranking-table td:nth-child(5) {
    font-weight: 600;
    color: #e53e3e;
    font-size: 1rem;
}

/* Posiciones especiales en el ranking */
.ranking-table tbody tr:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
}

.ranking-table tbody tr:nth-child(1) td:first-child {
    color: #ffd700;
    font-size: 1.3rem;
}

.ranking-table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.2));
}

.ranking-table tbody tr:nth-child(2) td:first-child {
    color: #c0c0c0;
    font-size: 1.2rem;
}

.ranking-table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.2));
}

.ranking-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-size: 1.2rem;
}


/* Efectos 3D flotantes en el aire */
.floating-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
    perspective: 1000px;
    perspective-origin: center center;
}

.floating-3d-element {
    position: absolute;
    transform-style: preserve-3d;
    animation: float-3d 8s ease-in-out infinite;
    will-change: transform;
}

/* Cubos 3D flotantes */
.floating-3d-element:nth-child(odd) {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: float-3d 6s ease-in-out infinite, rotate-3d-x 4s linear infinite;
}

.floating-3d-element:nth-child(3n) {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #4ecdc4, #7dd3d0);
    box-shadow: 
        0 0 25px rgba(78, 205, 196, 0.7),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
    animation: float-3d 7s ease-in-out infinite, rotate-3d-y 5s linear infinite;
}

.floating-3d-element:nth-child(4n) {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #45b7d1, #6bc5d8);
    box-shadow: 
        0 0 22px rgba(69, 183, 209, 0.8),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: float-3d 5s ease-in-out infinite, rotate-3d-z 3s linear infinite;
}

.floating-3d-element:nth-child(5n) {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #feca57, #fed766);
    box-shadow: 
        0 0 30px rgba(254, 202, 87, 0.9),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    animation: float-3d 9s ease-in-out infinite, rotate-3d-complex 6s linear infinite;
}

.floating-3d-element:nth-child(6n) {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ff9ff3, #ffb3f3);
    box-shadow: 
        0 0 24px rgba(255, 159, 243, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.4);
    animation: float-3d 6.5s ease-in-out infinite, rotate-3d-x 4.5s linear infinite;
}

.floating-3d-element:nth-child(7n) {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #54a0ff, #7bb3ff);
    box-shadow: 
        0 0 18px rgba(84, 160, 255, 0.7),
        inset 0 0 6px rgba(255, 255, 255, 0.3);
    animation: float-3d 5.5s ease-in-out infinite, rotate-3d-y 3.5s linear infinite;
}

.floating-3d-element:nth-child(8n) {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #5f27cd, #7f3cdb);
    box-shadow: 
        0 0 28px rgba(95, 39, 205, 0.9),
        inset 0 0 14px rgba(255, 255, 255, 0.5);
    animation: float-3d 8.5s ease-in-out infinite, rotate-3d-z 5.5s linear infinite;
}

/* Elementos 3D especiales con efectos brillantes */
.floating-3d-element:nth-child(9n) {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff3838, #ff6b6b);
    box-shadow: 
        0 0 30px rgba(255, 56, 56, 1),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
    animation: float-3d 7.5s ease-in-out infinite, rotate-3d-complex 4s linear infinite, glow-pulse 2s ease-in-out infinite;
}

.floating-3d-element:nth-child(10n) {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #00d2d3, #54a0ff);
    box-shadow: 
        0 0 32px rgba(0, 210, 211, 1),
        inset 0 0 13px rgba(255, 255, 255, 0.6);
    animation: float-3d 8s ease-in-out infinite, rotate-3d-complex 5s linear infinite, glow-pulse 2.5s ease-in-out infinite;
}

/* Elementos 3D por defecto */
.floating-3d-element {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation-duration: 8s;
}

@keyframes float-3d {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate3d(20px, -30px, 50px) rotateX(90deg) rotateY(180deg) rotateZ(45deg);
        opacity: 1;
    }
    50% {
        transform: translate3d(-15px, -60px, 30px) rotateX(180deg) rotateY(360deg) rotateZ(90deg);
        opacity: 0.9;
    }
    75% {
        transform: translate3d(25px, -40px, 70px) rotateX(270deg) rotateY(540deg) rotateZ(135deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) rotateX(360deg) rotateY(720deg) rotateZ(180deg);
        opacity: 0.8;
    }
}

@keyframes rotate-3d-x {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}

@keyframes rotate-3d-y {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes rotate-3d-z {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes rotate-3d-complex {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg) rotateZ(45deg); }
    50% { transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg); }
    75% { transform: rotateX(270deg) rotateY(270deg) rotateZ(135deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: brightness(1.2) saturate(1.5);
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        filter: brightness(1.8) saturate(2.2);
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

/* Media Queries específicas para Android TV Box */
@media (min-width: 720px) and (max-width: 1279px) {
    /* Resolución típica de TV Box: 1280x720 */
    .container {
        max-width: 900px;
        padding: 25px;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .question-text {
        font-size: 2.8rem;
        padding: 62px 35px 28px 35px;
        border-radius: 25px;
        border: 3px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner .heart {
        font-size: 1.8rem;
    }
    
    .timer-container-corner {
        font-size: 1.5rem;
    }
    
    .timer-container-corner .timer {
        font-size: 1.8rem;
    }
    
    .option {
        font-size: 1.3rem;
        padding: 22px;
        min-height: 70px;
    }
    
    .cta-button {
        font-size: 1.4rem;
        padding: 18px 45px;
        min-height: 55px;
    }
    
    .game-info {
        gap: 40px;
    }
    
    .info-item {
        font-size: 1.2rem;
    }
}

/* Optimización para tablets y dispositivos Android */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 20px;
    }
    
    .options-container {
        gap: 28px;
        max-width: 700px;
        padding-bottom: 25px;
    }
    
    .option {
        min-height: 75px;
        font-size: 1.35rem;
        padding: 25px 30px;
        line-height: 1.6;
    }
}

/* Media query para detectar dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .option:hover,
    .cta-button:hover {
        transform: none;
    }
    
    .option:active,
    .cta-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Aumentar área táctil */
    .option {
        min-height: 70px;
    }
    
    .cta-button {
        min-height: 55px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .question-text {
        font-size: 2rem;
        padding: 55px 28px 22px 28px;
        border-radius: 20px;
        border: 2px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner {
        top: 12px;
        left: 15px;
    }
    
    .lives-container-corner .heart {
        font-size: 1.4rem;
    }
    
    .timer-container-corner {
        top: 12px;
        right: 15px;
        font-size: 1.2rem;
        gap: 5px;
    }
    
    .timer-container-corner .timer {
        font-size: 1.4rem;
    }
    
    .options-container {
        gap: 28px;
        padding-bottom: 25px;
    }
    
    .option {
        font-size: 1.25rem;
        padding: 20px 30px;
        border-radius: 20px;
        min-height: 70px;
        line-height: 1.5;
    }
    
    .result-title {
        font-size: 2.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .ranking-title {
        font-size: 1rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .ranking-table th:nth-child(2),
    .ranking-table td:nth-child(2) {
        padding-left: 10px;
    }
    
    .ranking-table th:nth-child(5),
    .ranking-table td:nth-child(5) {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .question-text {
        font-size: 1.8rem;
        padding: 50px 25px 20px 25px;
        border-radius: 18px;
        border: 2px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner {
        top: 10px;
        left: 12px;
    }
    
    .lives-container-corner .heart {
        font-size: 1.2rem;
    }
    
    .timer-container-corner {
        top: 10px;
        right: 12px;
        font-size: 1rem;
        gap: 4px;
    }
    
    .timer-container-corner .timer {
        font-size: 1.2rem;
    }
    
    .options-container {
        gap: 25px;
        padding-bottom: 20px;
    }
    
    .option {
        font-size: 1.15rem;
        padding: 18px 25px;
        border-radius: 18px;
        min-height: 65px;
        line-height: 1.5;
    }
    
    .result-title {
        font-size: 1.8rem;
    }
    
    .feedback-icon {
        font-size: 3rem;
    }
    
    .feedback-text {
        font-size: 1.2rem;
        font-family: 'Hundo', 'Arial', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .ranking-title {
        font-size: 0.8rem;
    }
    
    .cup-icon {
        width: 55px;
        height: 55px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 6px 3px;
        font-size: 0.8rem;
    }
    
    .ranking-table th:nth-child(2),
    .ranking-table td:nth-child(2) {
        padding-left: 8px;
    }
    
    .ranking-table th:nth-child(5),
    .ranking-table td:nth-child(5) {
        width: 50px;
        font-size: 0.7rem;
    }
    
    .player-name-result {
        font-size: 1rem;
    }
}

/* Media query específica para móviles pequeños */
@media (max-width: 480px) and (orientation: portrait) {
    .feedback-icon {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .feedback-text {
        font-size: 1.1rem !important;
        line-height: 1.3;
        font-family: 'Hundo', 'Arial', sans-serif !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
}

/* Estilos específicos para navegación con control remoto (TV Box) */
.option:focus,
.cta-button:focus,
input:focus {
    outline: none;
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Mejoras para accesibilidad en TV Box */
.option:focus-visible,
.cta-button:focus-visible {
    outline: none;
    outline-offset: 0;
}

/* Optimización para Android TV - navegación con D-pad */
@media (min-width: 1280px) {
    .option:focus {
        /* Sin cambio de borde - se mantiene el color personalizado */
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    }
    
    .cta-button:focus {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4), 0 0 0 4px rgba(255, 107, 107, 0.3);
    }
}

/* Estilos para pantallas de alta densidad (TV Box 4K) */
@media (min-width: 3840px) {
    .container {
        max-width: 1600px;
        padding: 60px;
    }
    
    .title {
        font-size: 6rem;
    }
    
    .question-text {
        font-size: 4rem;
        padding: 75px 55px 40px 55px;
        border-radius: 35px;
        border: 4px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner {
        top: 20px;
        left: 30px;
    }
    
    .lives-container-corner .heart {
        font-size: 2.5rem;
    }
    
    .timer-container-corner {
        top: 20px;
        right: 30px;
        font-size: 2rem;
    }
    
    .timer-container-corner .timer {
        font-size: 2.5rem;
    }
    
    .option {
        font-size: 2rem;
        padding: 40px;
        min-height: 120px;
    }
    
    .cta-button {
        font-size: 2rem;
        padding: 30px 80px;
        min-height: 90px;
    }
    
    .game-info {
        gap: 80px;
    }
    
    .info-item {
        font-size: 1.8rem;
    }
    
    .cup-icon {
        width: 90px;
        height: 90px;
    }
}

/* Optimización para orientación landscape en tablets */
@media (orientation: landscape) and (max-height: 600px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .subtitle {
        margin-bottom: 20px;
    }
    
    .game-info {
        margin-bottom: 20px;
    }
    
    .question-text {
        font-size: 2.2rem;
        margin-bottom: 20px;
        padding: 56px 28px 22px 28px;
        border-radius: 20px;
        border: 2px solid rgba(0, 0, 0, 0.15);
        background: transparent;
        box-shadow: none;
    }
    
    .lives-container-corner {
        top: 12px;
        left: 15px;
    }
    
    .lives-container-corner .heart {
        font-size: 1.3rem;
    }
    
    .timer-container-corner {
        top: 12px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .timer-container-corner .timer {
        font-size: 1.3rem;
    }
    
    .option {
        padding: 15px;
        min-height: 50px;
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Estilos específicos para dispositivos detectados por JavaScript */
.android-tv {
    /* Optimizaciones específicas para TV Box Android */
    cursor: none; /* Ocultar cursor en TV Box */
}

.android-tv .option,
.android-tv .cta-button {
    /* Áreas de enfoque más grandes para control remoto */
    min-height: 80px;
    border-width: 4px;
}

.android-tv .option:focus,
.android-tv .cta-button:focus {
    /* Indicador de enfoque más visible para TV */
    outline: none;
    outline-offset: 0;
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.touch-device .option,
.touch-device .cta-button {
    /* Optimización para dispositivos táctiles */
    min-height: 60px;
    touch-action: manipulation;
}

.touch-device .option:active,
.touch-device .cta-button:active {
    /* Feedback táctil mejorado */
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.full-hd .container {
    /* Optimización para resolución 1920x1080 */
    max-width: 1200px;
    padding: 40px;
}

.full-hd .title {
    font-size: 5rem;
}

.full-hd .question-text {
    font-size: 3.6rem;
    padding: 70px 50px 35px 50px;
    border-radius: 30px;
    border: 4px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    box-shadow: none;
}

.full-hd .lives-container-corner .heart {
    font-size: 2.2rem;
}

.full-hd .timer-container-corner {
    font-size: 1.8rem;
    top: 18px;
    right: 25px;
}

.full-hd .timer-container-corner .timer {
    font-size: 2.2rem;
}

.full-hd .option {
    font-size: 1.6rem;
    padding: 30px;
    min-height: 90px;
}

.full-hd .cta-button {
    font-size: 1.7rem;
    padding: 25px 60px;
    min-height: 70px;
}

.hd-ready .container {
    /* Optimización para resolución 1280x720 */
    max-width: 1000px;
    padding: 30px;
}

.hd-ready .title {
    font-size: 4rem;
}

.hd-ready .question-text {
    font-size: 3rem;
    padding: 65px 40px 32px 40px;
    border-radius: 28px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    box-shadow: none;
}

.hd-ready .lives-container-corner .heart {
    font-size: 2rem;
}

.hd-ready .timer-container-corner {
    font-size: 1.7rem;
}

.hd-ready .timer-container-corner .timer {
    font-size: 2rem;
}

.hd-ready .option {
    font-size: 1.4rem;
    padding: 25px;
    min-height: 80px;
}

.hd-ready .cta-button {
    font-size: 1.5rem;
    padding: 20px 50px;
    min-height: 60px;
}

/* Mejoras de contraste para TV */
:root {
    --contrast-multiplier: 1;
}

body {
    filter: contrast(var(--contrast-multiplier));
}

/* Optimización para navegación con D-pad en TV Box */
.android-tv .options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 30px;
}

.android-tv .option {
    position: relative;
    transition: all 0.2s ease;
}

.android-tv .option:focus {
    background: rgba(255, 255, 255, 0.95);
    /* Sin cambio de borde - se mantiene el color personalizado */
    box-shadow: 
        0 0 0 6px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Indicador visual de navegación para TV Box */
.android-tv .option:focus::before {
    content: '▶';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Optimización para carga progresiva */
.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ranking-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ranking-content.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Prevenir scroll cuando el feedback está visible en móviles */
@media (max-width: 768px) {
    body.feedback-visible {
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Estilos para colores dinámicos */
.dynamic-background {
    transition: background 0.5s ease;
}

/* Mejoras para contraste con colores dinámicos */
.screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Asegurar que el texto sea legible con cualquier color de fondo */
.title, .subtitle, .question-text, .result-title, .result-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mejorar contraste de botones con fondos dinámicos */
.cta-button {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Asegurar que las opciones sean visibles con cualquier fondo */
.option {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mejorar visibilidad del ranking con fondos dinámicos */
.ranking-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para colores principales dinámicos */
.dynamic-primary-color {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Asegurar que los elementos principales tengan transiciones suaves */
.subtitle, .question-text, .result-subtitle, .stat-label, 
.player-name-result .label, .ranking-title, .info-item, 
.lives-label, .timer-label, .question-number, .stat-number, 
.player-name-result .value, .ranking-table td {
    transition: color 0.3s ease;
}

/* Transiciones para botones secundarios */
.cta-button.secondary {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Transiciones para elementos de navegación */
.lives-container, .timer-container {
    transition: border-color 0.3s ease;
}

/* Mejorar contraste para elementos con color principal dinámico */
.ranking-table th {
    background: linear-gradient(135deg, #002fff, #764ba2);
    color: white;
    transition: background 0.3s ease;
}

/* Asegurar que los elementos mantengan su legibilidad */
.ranking-table tbody tr:hover {
    background: rgba(0, 47, 255, 0.1);
    transform: scale(1.02);
    transition: all 0.3s ease;
}
  
  /* Confetti canvas overlay */
  .confetti-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 1100; /* above floating elements and feedback */
      background: transparent;
  }

/* Estilos para el mensaje especial de número 1 */
.number-one-message {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border: 3px solid #ffd700;
    animation: numberOneGlow 2s ease-in-out infinite alternate;
}

.number-one-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

.number-one-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
}

.number-one-subtitle {
    font-size: 1.2rem;
    color: #8b6914;
    font-weight: 600;
}

@keyframes numberOneGlow {
    0% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive para el mensaje especial */
@media (max-width: 768px) {
    .number-one-message {
        padding: 20px;
        margin: 15px 0;
    }
    
    .number-one-title {
        font-size: 2rem;
    }
    
    .number-one-icon {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .number-one-message {
        padding: 40px;
        margin: 30px 0;
    }
    
    .number-one-title {
        font-size: 3rem;
    }
    
    .number-one-icon {
        font-size: 5rem;
    }
}

/* Regla final para forzar centrado perfecto del feedback */
#feedback.feedback {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -moz-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 99999 !important;
}