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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a0e0e 0%, #2d1b1b 50%, #1a0e0e 100%);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Luces de casino animadas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
    animation: casinoLights 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes casinoLights {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Luces de casino adicionales */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
        radial-gradient(2px 2px at 40px 70px, #dc143c, transparent),
        radial-gradient(1px 1px at 90px 40px, #ff8c00, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffd700, transparent),
        radial-gradient(2px 2px at 160px 30px, #dc143c, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Luces laterales parpadeantes */
.container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            rgba(255, 215, 0, 0.1) 0%, 
            transparent 5%, 
            transparent 95%, 
            rgba(220, 20, 60, 0.1) 100%);
    animation: sideGlow 2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes sideGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Pantalla de Registro */
.registration-card {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
    max-width: 500px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ff8c00, #ffd700);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.registration-card h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from { 
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #ffd700;
    }
    to { 
        text-shadow: 
            0 0 5px #ffd700,
            0 0 10px #ffd700,
            0 0 15px #ffd700,
            0 0 20px #ffd700;
    }
}

.registration-card p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

#registration-form {
    margin-bottom: 30px;
}

#player-name {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ffd700;
    border-radius: 10px;
    margin-bottom: 20px;
    outline: none;
    background: rgba(42, 24, 16, 0.8);
    color: #ffd700;
    transition: all 0.3s;
}

#player-name:focus {
    border-color: #dc143c;
    box-shadow: 
        0 0 10px rgba(220, 20, 60, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(42, 24, 16, 1);
}

#player-name::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

button {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.4),
        0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 25px rgba(220, 20, 60, 0.6),
        0 0 35px rgba(255, 215, 0, 0.4),
        0 10px 25px rgba(0,0,0,0.4);
    border-color: #dc143c;
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
}

#players-list {
    text-align: left;
    margin-top: 30px;
}

#players-list h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

#players-ul {
    list-style: none;
    background: rgba(42, 24, 16, 0.6);
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

#players-ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffd700;
}

#players-ul li:last-child {
    border-bottom: none;
}

.player-status {
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 15px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: #ffd700;
    border: 1px solid #ffd700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(220, 20, 60, 0.5); }
    50% { box-shadow: 0 0 15px rgba(220, 20, 60, 0.8), 0 0 25px rgba(255, 215, 0, 0.4); }
}

#start-game-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    font-size: 1.2em;
    padding: 18px 40px;
    animation: startButtonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes startButtonGlow {
    from { 
        box-shadow: 
            0 0 15px rgba(255, 140, 0, 0.4),
            0 5px 15px rgba(0,0,0,0.3);
    }
    to { 
        box-shadow: 
            0 0 25px rgba(255, 140, 0, 0.8),
            0 0 35px rgba(255, 69, 0, 0.6),
            0 10px 25px rgba(0,0,0,0.4);
    }
}

/* Pantalla de Juego */
.game-header {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        0 10px 25px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    animation: headerShine 3s linear infinite;
}

@keyframes headerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.game-header h1 {
    color: #ffd700;
    font-size: 2em;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #dc143c;
    animation: titleFlicker 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 1; }
    85% { opacity: 0.9; }
}

.game-controls {
    display: flex;
    gap: 15px;
}

#call-number-btn {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    font-size: 1.2em;
    padding: 15px 25px;
    animation: callButtonPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes callButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(220, 20, 60, 0.4),
            0 5px 15px rgba(0,0,0,0.3);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(220, 20, 60, 0.8),
            0 0 35px rgba(255, 215, 0, 0.4),
            0 10px 25px rgba(0,0,0,0.4);
    }
}

#reset-game-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: #ffd700;
    position: relative;
    z-index: 1;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Panel de Control */
.control-panel {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        0 10px 25px rgba(0,0,0,0.4);
    position: relative;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ff8c00, #ffd700);
    border-radius: 15px;
    z-index: -1;
    animation: panelBorderGlow 3s linear infinite;
}

@keyframes panelBorderGlow {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.current-number {
    text-align: center;
    margin-bottom: 30px;
}

.ball {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #ffd700, #dc143c 70%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    font-weight: bold;
    margin: 0 auto 10px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(220, 20, 60, 0.4),
        0 15px 30px rgba(0,0,0,0.4);
    animation: ballSpin 2s linear infinite, ballGlow 1.5s ease-in-out infinite alternate;
    border: 3px solid #ffd700;
    text-shadow: 
        0 0 10px #000,
        0 0 20px #ffd700;
    position: relative;
}

.ball::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: ballHighlight 2s ease-in-out infinite;
}

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

@keyframes ballGlow {
    from { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(220, 20, 60, 0.4),
            0 15px 30px rgba(0,0,0,0.4);
    }
    to { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 1),
            0 0 80px rgba(220, 20, 60, 0.8),
            0 0 100px rgba(255, 140, 0, 0.6),
            0 20px 40px rgba(0,0,0,0.5);
    }
}

@keyframes ballHighlight {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.called-numbers h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

#numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.number-cell {
    width: 100%;
    height: 40px;
    min-width: 35px;
    max-width: 50px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
    background: rgba(42, 24, 16, 0.6);
    color: #ffd700;
}

.number-cell.called {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffd700;
    border-color: #ffd700;
    transform: scale(1.1);
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.8),
        0 0 25px rgba(255, 215, 0, 0.4);
    animation: numberCalled 0.5s ease-in-out;
}

@keyframes numberCalled {
    0% { 
        transform: scale(1);
        background-color: rgba(42, 24, 16, 0.8);
    }
    50% { 
        transform: scale(1.15);
        background-color: rgba(220, 20, 60, 0.3);
    }
    100% { 
        transform: scale(1.1);
        background-color: rgba(220, 20, 60, 0.2);
    }
}

/* Cartones de Jugadores */
.players-boards {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        0 10px 25px rgba(0,0,0,0.4);
}

.players-boards h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

#boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.player-board {
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    background: rgba(42, 24, 16, 0.4);
    transition: all 0.3s;
    position: relative;
}

.player-board::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ff8c00, #ffd700);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-board:hover::before {
    opacity: 0.3;
}

.player-board.winner {
    border-color: #ffd700;
    background: rgba(220, 20, 60, 0.2);
    animation: winnerGlow 1s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    from { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(220, 20, 60, 0.6);
    }
    to { 
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 1),
            0 0 60px rgba(220, 20, 60, 0.8),
            0 0 80px rgba(255, 140, 0, 0.6);
    }
}

.player-name {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.bingo-button {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.4);
    animation: bingoButtonPulse 2s ease-in-out infinite;
}

@keyframes bingoButtonPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(220, 20, 60, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(220, 20, 60, 0.8),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
}

.bingo-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(220, 20, 60, 1),
        0 0 35px rgba(255, 215, 0, 0.6);
}

.bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.bingo-cell {
    width: 45px;
    height: 45px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(42, 24, 16, 0.8);
    color: #ffd700;
    position: relative;
}

.bingo-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.bingo-cell:hover::before {
    opacity: 1;
}

.bingo-cell.marked {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-color: #20c997;
    transform: scale(0.95);
    box-shadow: 
        0 0 15px rgba(40, 167, 69, 0.8),
        0 0 25px rgba(32, 201, 151, 0.4);
    animation: cellMarked 0.3s ease-in-out;
}

@keyframes cellMarked {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.95); }
}

.bingo-cell.free {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: #ffd700;
    font-weight: bold;
    border-color: #ffd700;
    box-shadow: 
        0 0 15px rgba(255, 140, 0, 0.6),
        0 0 25px rgba(255, 69, 0, 0.4);
    animation: freeCell 2s ease-in-out infinite alternate;
}

@keyframes freeCell {
    from { 
        box-shadow: 
            0 0 15px rgba(255, 140, 0, 0.6),
            0 0 25px rgba(255, 69, 0, 0.4);
    }
    to { 
        box-shadow: 
            0 0 25px rgba(255, 140, 0, 1),
            0 0 35px rgba(255, 69, 0, 0.8);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.6),
        0 0 100px rgba(220, 20, 60, 0.4),
        0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.5s ease-out, modalGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%),
        radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    animation: modalLights 4s linear infinite;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from { transform: translateY(-100px) scale(0.5); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes modalGlow {
    from { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 100px rgba(220, 20, 60, 0.4),
            0 30px 60px rgba(0,0,0,0.5);
    }
    to { 
        box-shadow: 
            0 0 80px rgba(255, 215, 0, 1),
            0 0 120px rgba(220, 20, 60, 0.8),
            0 0 160px rgba(255, 140, 0, 0.6),
            0 40px 80px rgba(0,0,0,0.6);
    }
}

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

.modal-content h2 {
    font-size: 3em;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 
        0 0 20px #ffd700,
        0 0 40px #dc143c,
        0 0 60px #ff8c00;
    animation: winnerText 1s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes winnerText {
    from { 
        text-shadow: 
            0 0 20px #ffd700,
            0 0 40px #dc143c,
            0 0 60px #ff8c00;
    }
    to { 
        text-shadow: 
            0 0 30px #ffd700,
            0 0 60px #dc143c,
            0 0 90px #ff8c00,
            0 0 120px #ffd700;
    }
}

.modal-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    position: relative;
    z-index: 1;
}

.modal-content button {
    margin: 0 10px;
}

/* Responsive Design */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .game-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .player-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .called-numbers-player {
        order: -1; /* Mover números cantados arriba en móvil */
    }
}

/* Código de Partida */
.game-code-display {
    background: linear-gradient(135deg, #2c5530 0%, #1e3a1e 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    animation: pulseGold 2s ease-in-out infinite alternate;
}

.code-box {
    background: #000;
    border: 3px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.code-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
    border-radius: 10px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

#game-code-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
    letter-spacing: 8px;
    display: block;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

#copy-code-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

#copy-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

#game-code-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

#game-code-input {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    margin-bottom: 8px;
}

#game-code-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #ffed4e;
}

#game-code-section small {
    color: #ffd700;
    font-size: 0.9em;
    display: block;
    text-align: center;
    margin-top: 5px;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; }
    100% { text-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700, 0 0 50px #ffd700; }
}

@keyframes pulseGold {
    0% { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5); }
}

/* URL para compartir */
.share-url {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.share-url h4 {
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.url-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

#share-url-input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffd700;
    border-radius: 5px;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#copy-url-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#copy-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.share-url small {
    color: #ccc;
    font-size: 0.85em;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    /* Pantalla de registro móvil */
    .registration-card {
        margin: 20px auto;
        padding: 25px;
        max-width: 95%;
    }
    
    .registration-card h1 {
        font-size: 2em;
    }
    
    .role-selection {
        flex-direction: column;
        gap: 10px;
    }
    
    .role-selection label {
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Headers móvil */
    .game-header,
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .game-header h1,
    .player-header h1 {
        font-size: 1.5em;
    }
    
    .game-controls,
    .player-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .game-controls button,
    .player-controls button {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
    
    /* Botón de BINGO móvil */
    .bingo-claim-btn {
        font-size: 1.1em;
        padding: 12px 20px;
        width: 100%;
    }
    
    .current-number-display {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Panel de control móvil */
    .control-panel,
    .validation-panel,
    .players-boards,
    .my-card-container,
    .called-numbers-player {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Pelota de bingo móvil */
    .ball {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
    
    /* Grilla de números móvil */
    #numbers-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 3px;
        max-width: 100%;
    }
    
    #numbers-grid-player {
        grid-template-columns: repeat(6, 1fr);
        gap: 3px;
        max-width: 100%;
    }
    
    .number-cell {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    
    /* Cartón de BINGO móvil */
    .bingo-letters {
        gap: 5px;
        margin-bottom: 8px;
    }
    
    .bingo-letters span {
        padding: 8px;
        font-size: 1.2em;
    }
    
    .bingo-card {
        gap: 4px;
    }
    
    .bingo-cell {
        width: 45px;
        height: 45px;
        font-size: 0.9em;
        border-width: 2px;
    }
    
    .bingo-card.large .bingo-cell {
        width: 55px;
        height: 55px;
        font-size: 1em;
    }
    
    /* Lista de jugadores móvil */
    #players-ul {
        max-height: 150px;
        padding: 10px;
    }
    
    #players-ul li {
        padding: 6px 0;
        font-size: 0.9em;
    }
    
    .player-status {
        font-size: 0.8em;
        padding: 3px 6px;
    }
    
    /* Modales móvil */
    .modal-content {
        margin: 20px;
        padding: 25px;
        max-width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        font-size: 2em;
    }
    
    .validation-content {
        max-width: 95%;
    }
    
    .bingo-card.validation .bingo-cell {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
    
    .validation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .validation-buttons button {
        width: 100%;
        padding: 12px;
    }
    
    /* Mensajes móvil */
    .admin-message,
    .registration-closed-message {
        padding: 10px;
        margin: 10px 0;
        font-size: 0.9em;
    }
    
    /* Estado de jugadores móvil */
    .player-status-item {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .status-indicator {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    
    /* Reclamos de BINGO móvil */
    .bingo-claim-item {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .validate-btn {
        width: 100%;
        padding: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .registration-card {
        padding: 20px;
    }
    
    .registration-card h1 {
        font-size: 1.8em;
    }
    
    .game-header h1,
    .player-header h1 {
        font-size: 1.3em;
    }
    
    .ball {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .bingo-cell {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
    
    .bingo-card.large .bingo-cell {
        width: 45px;
        height: 45px;
        font-size: 0.9em;
    }
    
    .bingo-letters span {
        padding: 6px;
        font-size: 1em;
    }
    
    .number-cell {
        width: 25px;
        height: 25px;
        font-size: 0.7em;
    }
    
    #numbers-grid {
        grid-template-columns: repeat(10, 1fr);
        max-width: 500px;
    }
    
    #numbers-grid-player {
        grid-template-columns: repeat(8, 1fr);
        max-width: 400px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.8em;
    }
    
    .bingo-card.validation .bingo-cell {
        width: 30px;
        height: 30px;
        font-size: 0.7em;
    }
}

/* Orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .player-content {
        grid-template-columns: 1fr 250px;
    }
    
    .called-numbers-player {
        order: 0;
    }
    
    .game-header,
    .player-header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .game-controls,
    .player-controls {
        flex-direction: row;
        width: auto;
    }
    
    .bingo-claim-btn {
        width: auto;
    }
}

/* Estilos específicos para iPad y tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .bingo-card,
    .bingo-card.large {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        max-width: 450px;
        gap: 10px;
        margin: 20px auto;
        width: 100%;
    }
    
    .bingo-cell {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    /* Check mark eliminado - solo color de fondo verde */
    
    /* Prevenir destellos en iPad - animación más suave */
    .number-cell.called {
        animation: numberCalledTablet 0.3s ease-in-out;
    }
    
    .my-card-container {
        padding: 0 20px;
        margin: 25px auto;
    }
}

@keyframes numberCalledTablet {
    0% { 
        transform: scale(1);
        opacity: 1;
        background-color: rgba(42, 24, 16, 0.8);
    }
    50% { 
        transform: scale(1.08);
        opacity: 0.95;
        background-color: rgba(220, 20, 60, 0.25);
    }
    100% { 
        transform: scale(1.05);
        opacity: 1;
        background-color: rgba(220, 20, 60, 0.2);
    }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
    /* Dispositivos táctiles */
    .bingo-cell,
    .number-cell,
    button {
        min-height: 44px; /* Tamaño mínimo recomendado para táctil */
    }
    
    .bingo-cell {
        min-width: 44px;
    }
    
    .number-cell {
        min-width: 30px;
    }
    
    /* Eliminar efectos hover en táctiles */
    .bingo-cell:hover::before,
    .player-board:hover::before {
        opacity: 0;
    }
    
    /* Mejorar feedback táctil */
    .bingo-cell:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    button:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Luces decorativas de casino */
.casino-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: lightBlink 2s ease-in-out infinite;
}

.light-1 {
    top: 10%;
    left: 5%;
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation-delay: 0s;
}

.light-2 {
    top: 20%;
    right: 8%;
    background: #dc143c;
    box-shadow: 0 0 20px #dc143c;
    animation-delay: 0.3s;
}

.light-3 {
    top: 40%;
    left: 3%;
    background: #ff8c00;
    box-shadow: 0 0 20px #ff8c00;
    animation-delay: 0.6s;
}

.light-4 {
    top: 60%;
    right: 5%;
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation-delay: 0.9s;
}

.light-5 {
    top: 80%;
    left: 7%;
    background: #dc143c;
    box-shadow: 0 0 20px #dc143c;
    animation-delay: 1.2s;
}

.light-6 {
    top: 15%;
    left: 50%;
    background: #ff8c00;
    box-shadow: 0 0 20px #ff8c00;
    animation-delay: 1.5s;
}

.light-7 {
    top: 70%;
    right: 45%;
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation-delay: 1.8s;
}

.light-8 {
    top: 35%;
    right: 15%;
    background: #dc143c;
    box-shadow: 0 0 20px #dc143c;
    animation-delay: 2.1s;
}

@keyframes lightBlink {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Efecto de marquesina en el título principal */
.registration-card h1,
.game-header h1 {
    position: relative;
    overflow: hidden;
}

.registration-card h1::after,
.game-header h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: marqueeShine 3s ease-in-out infinite;
}

@keyframes marqueeShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Efecto de neón parpadeante para números cantados */
.number-cell.called {
    animation: neonFlicker 0.5s ease-in-out, numberCalled 0.5s ease-in-out;
}

@keyframes neonFlicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px #ffd700,
            0 0 10px #ffd700,
            0 0 15px #dc143c;
    }
    50% { 
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #dc143c,
            0 0 40px #ff8c00;
    }
}

/* Luces de borde para cartones ganadores */
.player-board.winner::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #ffd700;
    border-radius: 15px;
    animation: winnerBorder 1s linear infinite;
    pointer-events: none;
}

@keyframes winnerBorder {
    0% { 
        border-color: #ffd700;
        box-shadow: 0 0 20px #ffd700;
    }
    25% { 
        border-color: #dc143c;
        box-shadow: 0 0 20px #dc143c;
    }
    50% { 
        border-color: #ff8c00;
        box-shadow: 0 0 20px #ff8c00;
    }
    75% { 
        border-color: #dc143c;
        box-shadow: 0 0 20px #dc143c;
    }
    100% { 
        border-color: #ffd700;
        box-shadow: 0 0 20px #ffd700;
    }
}

/* Efecto de confeti para el modal de ganador */
.modal.show::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 10% 20%, #ffd700, transparent),
        radial-gradient(3px 3px at 30% 80%, #dc143c, transparent),
        radial-gradient(2px 2px at 50% 50%, #ff8c00, transparent),
        radial-gradient(3px 3px at 70% 30%, #ffd700, transparent),
        radial-gradient(2px 2px at 90% 70%, #dc143c, transparent);
    background-size: 100px 100px;
    animation: confetti 3s linear infinite;
    pointer-events: none;
}

@keyframes confetti {
    0% { 
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
/* Estilos para selección de rol */
.role-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.role-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(42, 24, 16, 0.6);
    color: #ffd700;
    transition: all 0.3s;
}

.role-selection label:hover {
    background: rgba(42, 24, 16, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.role-selection input[type="radio"] {
    accent-color: #ffd700;
}

.role-selection input[type="radio"]:checked + span {
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* Vista del Jugador */
.player-header {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        0 10px 25px rgba(0,0,0,0.4);
}

.player-header h1 {
    color: #ffd700;
    font-size: 1.8em;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bingo-claim-btn {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffd700;
    border: 3px solid #ffd700;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    animation: bingoClaimPulse 2s ease-in-out infinite;
    transition: all 0.3s;
}

@keyframes bingoClaimPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(220, 20, 60, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(220, 20, 60, 1),
            0 0 60px rgba(255, 215, 0, 0.8);
    }
}

.bingo-claim-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 40px rgba(220, 20, 60, 1),
        0 0 80px rgba(255, 215, 0, 1);
}

.current-number-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 1.2em;
}

.number-display {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffd700;
    padding: 10px 15px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    font-weight: bold;
    font-size: 1.5em;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
}

.player-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* Controles de Audio para Jugadores */
.audio-controls {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.2),
        0 5px 15px rgba(0,0,0,0.3);
}

.audio-toggle {
    display: flex;
    align-items: center;
}

.audio-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.audio-btn.inactive {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.audio-btn.inactive:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.volume-label {
    font-size: 1.1rem;
    color: #ffd700;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.volume-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 35px;
}

.test-audio-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.test-audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.test-audio-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

/* Controles de audio del admin */
.admin-audio {
    margin-top: 15px;
    border-color: #dc143c;
    background: linear-gradient(145deg, #2a1015 0%, #1a0a0f 100%);
}

/* Controles de audio globales (siempre visibles) */
.global-audio {
    margin-top: 20px;
    border-color: #4caf50;
    background: linear-gradient(145deg, #1a2a15 0%, #0f1a0a 100%);
}

.global-audio h4 {
    color: #4caf50;
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.global-audio .audio-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.global-audio .audio-btn:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.global-audio .audio-btn.inactive {
    background: linear-gradient(135deg, #666, #444);
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

.admin-audio .audio-btn {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.admin-audio .audio-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.admin-audio .audio-btn.inactive {
    background: linear-gradient(135deg, #666, #444);
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

/* Responsive para controles de audio */
@media (max-width: 768px) {
    .audio-controls {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .volume-control {
        width: 100%;
        min-width: auto;
    }
    
    .audio-btn, .test-audio-btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-audio {
        margin-top: 10px;
    }
}

/* Mi Cartón */
.my-card-container {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        0 10px 25px rgba(0,0,0,0.4);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-header h2 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.bingo-letters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.bingo-letters span {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: #ffd700;
    padding: 15px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.bingo-card.large {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
}

.bingo-card.large .bingo-cell {
    width: 60px;
    height: 60px;
    font-size: 1.2em;
    border-width: 3px;
}

/* Números cantados para jugador */
.called-numbers-player {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        0 10px 25px rgba(0,0,0,0.4);
}

.called-numbers-player h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    text-align: center;
}

#numbers-grid-player {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Panel de Validación */
.validation-panel {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        0 10px 25px rgba(0,0,0,0.4);
}

.validation-panel h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    text-align: center;
    font-size: 1.5em;
}

#bingo-claims {
    min-height: 100px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(255, 215, 0, 0.6);
}

.bingo-claim-item {
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid #dc143c;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: claimAlert 1s ease-in-out infinite alternate;
}

@keyframes claimAlert {
    from { box-shadow: 0 0 10px rgba(220, 20, 60, 0.4); }
    to { box-shadow: 0 0 20px rgba(220, 20, 60, 0.8); }
}

.claim-info {
    color: #ffd700;
    font-weight: bold;
}

.claim-time {
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.9em;
}

.validate-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.players-status h4 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

#players-status-list {
    display: grid;
    gap: 10px;
}

.player-status-item {
    background: rgba(42, 24, 16, 0.6);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffd700;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-playing {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.status-claimed {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: #ffd700;
    animation: statusBlink 1s ease-in-out infinite alternate;
}

@keyframes statusBlink {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Modal de Validación */
.validation-content {
    max-width: 600px;
    width: 90vw;
}

.validation-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

#validation-player-name {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #ffd700;
    text-align: center;
}

.bingo-card.validation {
    margin: 20px auto;
    max-width: 400px;
}

.bingo-card.validation .bingo-cell {
    width: 50px;
    height: 50px;
    font-size: 1em;
}

.validation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.approve-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #4caf50;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
}

.reject-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: 2px solid #f44336;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
}

/* Responsive para vista de jugador */
@media (max-width: 768px) {
    .player-content {
        grid-template-columns: 1fr;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .bingo-card.large .bingo-cell {
        width: 50px;
        height: 50px;
        font-size: 1em;
    }
    
    #numbers-grid-player {
        grid-template-columns: repeat(8, 1fr);
    }
}
/* Mensajes informativos */
.admin-message {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    color: #4caf50;
    font-weight: bold;
    animation: messageGlow 2s ease-in-out infinite alternate;
}

@keyframes messageGlow {
    from { box-shadow: 0 0 10px rgba(76, 175, 80, 0.3); }
    to { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
}

.registration-closed-message {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    color: #f44336;
    font-weight: bold;
    animation: closedMessageBlink 1.5s ease-in-out infinite;
}

@keyframes closedMessageBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Estilos para opciones deshabilitadas */
.role-selection label:disabled,
.role-selection label[style*="pointer-events: none"] {
    cursor: not-allowed;
}

.role-selection input:disabled {
    cursor: not-allowed;
}

/* Botón de inicio mejorado para admin */
#start-game-btn {
    position: relative;
    overflow: hidden;
}

#start-game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

#start-game-btn:hover::before {
    left: 100%;
}

/* Indicador de estado del juego */
.game-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(42, 24, 16, 0.9);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px 15px;
    color: #ffd700;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.status-waiting {
    border-color: #ff8c00;
    color: #ff8c00;
}

.status-playing {
    border-color: #4caf50;
    color: #4caf50;
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 25px rgba(76, 175, 80, 0.8); }
}

.status-closed {
    border-color: #f44336;
    color: #f44336;
}
/* Estilos mejorados para roles */
.player-status.admin-role {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: #ffd700;
    border: 1px solid #ffd700;
    font-weight: bold;
}

.player-status.player-role {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: 1px solid #4caf50;
}

/* Resumen de jugadores */
.players-summary {
    border-top: 2px solid rgba(255, 215, 0, 0.3) !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border-radius: 5px;
    font-weight: bold;
}

.summary-details {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Botón de inicio mejorado */
#start-game-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: 2px solid #4caf50;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 20px rgba(76, 175, 80, 0.6),
        0 5px 15px rgba(0,0,0,0.3);
}

#start-game-btn:hover {
    box-shadow: 
        0 0 30px rgba(76, 175, 80, 1),
        0 0 50px rgba(76, 175, 80, 0.6),
        0 10px 25px rgba(0,0,0,0.4);
    border-color: #45a049;
}

/* Formulario deshabilitado */
form input:disabled,
form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3) !important;
    color: rgba(255, 215, 0, 0.5) !important;
}

form input:disabled::placeholder {
    color: rgba(255, 215, 0, 0.3) !important;
}
/* Optimizaciones específicas para móviles */

/* Prevenir zoom accidental */
input, select, textarea {
    font-size: 16px; /* Previene zoom en iOS */
}

/* Mejorar scrolling en móviles */
.modal-content,
#players-ul,
#numbers-grid,
#numbers-grid-player,
#boards-container {
    -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbars en móviles pero mantener funcionalidad */
@media (max-width: 768px) {
    .modal-content::-webkit-scrollbar,
    #players-ul::-webkit-scrollbar,
    #numbers-grid::-webkit-scrollbar,
    #numbers-grid-player::-webkit-scrollbar {
        display: none;
    }
    
    .modal-content,
    #players-ul,
    #numbers-grid,
    #numbers-grid-player {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Indicador de scroll para móviles */
.scroll-indicator {
    position: relative;
}

.scroll-indicator::after {
    content: '↕️ Desliza para ver más';
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.7em;
    color: rgba(255, 215, 0, 0.6);
    pointer-events: none;
}

@media (min-width: 769px) {
    .scroll-indicator::after {
        display: none;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 320px) {
    .registration-card {
        padding: 15px;
    }
    
    .registration-card h1 {
        font-size: 1.5em;
    }
    
    .bingo-card.large .bingo-cell {
        width: 40px;
        height: 40px;
        font-size: 0.8em;
    }
    
    .bingo-letters span {
        padding: 4px;
        font-size: 0.9em;
    }
    
    .ball {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
    
    .number-cell {
        width: 22px;
        height: 22px;
        font-size: 0.6em;
    }
    
    #numbers-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }
    
    #numbers-grid-player {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
    }
}

/* Orientación específica para tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .game-content {
        grid-template-columns: 300px 1fr;
    }
    
    .player-content {
        grid-template-columns: 1fr 280px;
    }
}

/* Mejoras para dispositivos con notch (iPhone X+) */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .game-header,
    .player-header {
        padding-top: max(20px, env(safe-area-inset-top));
    }
}

/* Estados de carga y feedback visual mejorado */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffd700;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mejoras de contraste para mejor legibilidad */
@media (prefers-contrast: high) {
    .bingo-cell,
    .number-cell {
        border-width: 3px;
    }
    
    .bingo-cell.marked {
        background: #28a745 !important;
        color: #ffffff !important;
        border-color: #20c997 !important;
    }
    
    .number-cell.called {
        background: #dc143c !important;
        color: #ffffff !important;
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    /* Los estilos ya están optimizados para modo oscuro */
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ball {
        animation: none !important;
    }
    
    .casino-lights .light {
        animation: none !important;
        opacity: 0.5 !important;
    }
}

/* Mejoras para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bingo-cell,
    .number-cell {
        border-width: 0.5px;
    }
    
    .registration-card,
    .game-header,
    .player-header {
        border-width: 1.5px;
    }
}
/* Estilos específicos para dispositivos móviles detectados por JavaScript */
.mobile-device {
    /* Mejorar el tap highlighting */
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
}

.mobile-device .bingo-cell,
.mobile-device .number-cell,
.mobile-device button {
    /* Mejorar área táctil */
    position: relative;
}

.mobile-device .bingo-cell::before,
.mobile-device .number-cell::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    /* Área táctil expandida invisible */
}

/* Feedback visual para interacciones táctiles */
.mobile-device .bingo-cell:active {
    background-color: rgba(255, 215, 0, 0.2) !important;
    transform: scale(0.95);
}

.mobile-device button:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Mejorar legibilidad en pantallas pequeñas */
.mobile-device .modal-content p,
.mobile-device .claim-info,
.mobile-device .player-name {
    line-height: 1.4;
}

/* Espaciado mejorado para dedos */
.mobile-device .validation-buttons {
    gap: 15px;
}

.mobile-device .game-controls,
.mobile-device .player-controls {
    gap: 12px;
}

/* Indicadores de estado más visibles en móvil */
.mobile-device .status-indicator {
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Mejorar contraste en pantallas móviles */
.mobile-device .bingo-cell.marked {
    border-width: 3px;
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.8),
        0 0 25px rgba(255, 215, 0, 0.4),
        inset 0 0 10px rgba(220, 20, 60, 0.3);
}

.mobile-device .number-cell.called {
    border-width: 3px;
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.8),
        0 0 25px rgba(255, 215, 0, 0.4);
}

/* Optimizaciones de rendimiento para móviles */
.mobile-device .casino-lights {
    opacity: 0.5; /* Reducir intensidad de luces para mejor rendimiento */
}

.mobile-device .ball {
    /* Simplificar animaciones en móvil */
    animation: ballGlow 2s ease-in-out infinite alternate;
}

/* Mejorar usabilidad de scroll en móviles */
.mobile-device #players-ul,
.mobile-device #numbers-grid,
.mobile-device #numbers-grid-player {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Feedback visual para elementos deshabilitados */
.mobile-device input:disabled,
.mobile-device button:disabled {
    opacity: 0.4;
    filter: grayscale(50%);
}

/* Mejorar visibilidad de texto en móviles */
.mobile-device .registration-card h1,
.mobile-device .game-header h1,
.mobile-device .player-header h1 {
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        2px 2px 4px rgba(0,0,0,0.8);
}

/* Espaciado mejorado para listas en móvil */
.mobile-device #players-ul li {
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

/* Mejorar visibilidad de modales en móviles */
.mobile-device .modal {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mobile-device .modal-content {
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.8),
        0 0 100px rgba(220, 20, 60, 0.6),
        0 30px 60px rgba(0,0,0,0.7);
}

/* Nuevas animaciones para funcionalidad completa */
@keyframes numberPop {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mejoras para el cartón de BINGO existente */
.bingo-cell {
    color: #ffd700 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: linear-gradient(135deg, #2d1b1b, #1a0e0e) !important;
    border: 2px solid #8b4513 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.bingo-cell:hover {
    background: linear-gradient(135deg, #3d2b2b, #2a1e1e) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.bingo-cell.marked {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white !important;
    border-color: #20c997 !important;
    box-shadow: 
        0 0 10px rgba(40, 167, 69, 0.6),
        0 0 20px rgba(40, 167, 69, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.2) !important;
    animation: cellMarked 0.3s ease !important;
}

/* Eliminado el check mark - ahora usamos solo color de fondo */

.bingo-cell.free-space {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #8b4513 !important;
    font-weight: bold !important;
    cursor: default !important;
}

.bingo-cell.bingo-line {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    color: white;
    animation: bingoLineGlow 1s ease infinite alternate;
}

@keyframes bingoLineGlow {
    0% { 
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    }
    100% { 
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.4);
    }
}

.bingo-claim-btn.bingo-ready {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    animation: bingoReadyPulse 1s ease infinite;
}

@keyframes bingoReadyPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
    }
}

/* SOLUCIÓN RESPONSIVA UNIVERSAL - Se autoajusta a cualquier pantalla */
.bingo-card,
.bingo-card.large {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: min(1vw, 8px);
    width: 100%;
    max-width: min(90vw, 400px);
    margin: 15px auto;
    padding: 0;
    box-sizing: border-box;
}

.bingo-cell {
    width: 100%;
    height: min(18vw, 60px);
    min-height: 35px;
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 700;
    border-width: 2px;
    box-sizing: border-box;
    aspect-ratio: 1;
}

.bingo-cell.marked::after {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
}

.my-card-container {
    padding: 15px 5px !important;
    margin: 15px auto !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bingo-letters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: min(1vw, 8px);
    width: 100%;
    max-width: min(90vw, 400px);
    margin: 0 auto 10px auto;
    box-sizing: border-box;
}

.bingo-letters span {
    width: 100%;
    height: min(12vw, 35px);
    min-height: 25px;
    font-size: clamp(0.9rem, 3.5vw, 1.3rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* Animación para números no cantados */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mejorar alineación de letras y cartón */
.my-card-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.bingo-letters,
.bingo-card {
    max-width: 400px;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.bingo-letters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

/* Asegurar que las columnas estén perfectamente alineadas */
.bingo-letters span,
.bingo-cell {
    min-width: 60px;
    max-width: 80px;
}

/* Responsive mejorado para alineación */
@media (max-width: 768px) {
    .bingo-letters span {
        width: 55px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .bingo-letters {
        gap: 6px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .bingo-letters span {
        width: 50px;
        height: 28px;
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .bingo-letters {
        gap: 4px;
        margin-bottom: 12px;
    }
}
/* Mejoras para el tablero de números cantados */
.called-numbers,
.called-numbers-player {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.called-numbers h3,
.called-numbers-player h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Asegurar que el grid se vea completo */
#numbers-grid,
#numbers-grid-player {
    justify-items: center;
    align-items: center;
}

/* Responsive mejorado para tablero */
@media (max-width: 1024px) {
    .called-numbers,
    .called-numbers-player {
        max-width: 550px;
        padding: 15px;
    }
    
    #numbers-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 3px;
    }
}

@media (max-width: 768px) {
    .called-numbers,
    .called-numbers-player {
        max-width: 100%;
        padding: 10px;
    }
    
    #numbers-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
    }
    
    .number-cell {
        height: 35px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    #numbers-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
    }
    
    .number-cell {
        height: 30px;
        font-size: 0.7em;
        min-width: 30px;
    }
}

/* Eliminar cualquier scroll horizontal */
.control-panel,
.player-content {
    overflow-x: hidden;
}
/* Fix definitivo para eliminar scroll del tablero de números */
.called-numbers,
.called-numbers-player {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.called-numbers::-webkit-scrollbar,
.called-numbers-player::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#numbers-grid,
#numbers-grid-player {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    -webkit-overflow-scrolling: initial !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#numbers-grid::-webkit-scrollbar,
#numbers-grid-player::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Asegurar que el contenedor principal no tenga restricciones */
.control-panel,
.player-content,
.game-content {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.control-panel::-webkit-scrollbar,
.player-content::-webkit-scrollbar,
.game-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Eliminar cualquier scroll de contenedores padre */
.screen.active {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Mejorar el layout para evitar scroll interno */
.admin-screen .game-content,
.player-screen .player-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.called-numbers,
.called-numbers-player {
    flex-shrink: 0;
    width: 100%;
    max-width: 700px;
}
/* Estilos para validación de BINGO */
.validation-cell {
    font-size: 0.9rem !important;
    width: 40px !important;
    height: 40px !important;
    margin: 2px;
}

.winner-announcement {
    text-align: center;
    padding: 20px;
}

.winner-announcement h2 {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    animation: winnerGlow 1s ease-in-out infinite alternate;
}

.winner-announcement h3 {
    font-size: 2rem;
    color: #ff6b6b;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.winner-announcement p {
    font-size: 1.3rem;
    color: #4ECDC4;
    font-weight: bold;
}

/* Botón BINGO en estado de espera */
.bingo-claim-btn:disabled {
    background: linear-gradient(135deg, #ff8c00, #ff4500) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    animation: waitingPulse 2s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);
    }
}

/* Mejorar el modal de validación */
.validation-content {
    max-width: 500px;
    padding: 30px;
}

.validation-content h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.validation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.approve-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.approve-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.reject-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reject-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* Responsive para validación */
@media (max-width: 768px) {
    .validation-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .validation-cell {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    .validation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .approve-btn, .reject-btn {
        width: 100%;
        padding: 15px;
    }
}
/* Panel de reclamaciones de BINGO para el administrador */
.bingo-claim-item {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    animation: claimPulse 2s ease-in-out infinite;
}

.claim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.claim-header h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.claim-time {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 6px;
}

.claim-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.validate-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.validate-btn.approve {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.validate-btn.approve:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
}

.validate-btn.reject {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.validate-btn.reject:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.5);
}

@keyframes claimPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
        transform: scale(1.02);
    }
}

/* Mejorar el contenedor de reclamaciones */
#bingo-claims {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(42, 24, 16, 0.3);
    border-radius: 10px;
    border: 1px solid #8b4513;
}

#bingo-claims:empty::before {
    content: "No hay reclamaciones de BINGO pendientes";
    display: block;
    text-align: center;
    color: #ffd700;
    font-style: italic;
    padding: 20px;
    opacity: 0.7;
}

/* Responsive para panel de reclamaciones */
@media (max-width: 768px) {
    .claim-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .validate-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .claim-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .claim-header h4 {
        font-size: 1.1rem;
    }
}

/* Scroll suave para el panel */
#bingo-claims {
    scroll-behavior: smooth;
}

#bingo-claims::-webkit-scrollbar {
    width: 8px;
}

#bingo-claims::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.3);
    border-radius: 4px;
}

#bingo-claims::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 4px;
}

#bingo-claims::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

/* ELIMINACIÓN COMPLETA DE SCROLL BARS - SOLUCIÓN DEFINITIVA */

/* Eliminar scroll bars de todos los elementos del tablero de números */
.called-numbers *,
.called-numbers-player *,
#numbers-grid *,
#numbers-grid-player * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.called-numbers *::-webkit-scrollbar,
.called-numbers-player *::-webkit-scrollbar,
#numbers-grid *::-webkit-scrollbar,
#numbers-grid-player *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Asegurar que el grid de números se muestre completamente */
#numbers-grid {
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
}

#numbers-grid-player {
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
}

/* Mejorar la visualización de las celdas de números */
.number-cell {
    width: 100% !important;
    height: 40px !important;
    min-width: 35px !important;
    max-width: 50px !important;
    aspect-ratio: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Responsive para tablero de números sin scroll */
@media (max-width: 768px) {
    #numbers-grid,
    #numbers-grid-player {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 3px !important;
        max-width: 100% !important;
        padding: 8px !important;
    }
    
    .number-cell {
        height: 35px !important;
        min-width: 30px !important;
        max-width: 45px !important;
        font-size: 0.8em !important;
    }
}

@media (max-width: 480px) {
    #numbers-grid,
    #numbers-grid-player {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 2px !important;
        padding: 6px !important;
    }
    
    .number-cell {
        height: 30px !important;
        min-width: 25px !important;
        max-width: 40px !important;
        font-size: 0.7em !important;
    }
}

/* Contenedores padre sin restricciones de altura */
.called-numbers h3,
.called-numbers-player h3 {
    margin-bottom: 15px !important;
    flex-shrink: 0 !important;
}

/* Asegurar que los contenedores se adapten al contenido */
.called-numbers,
.called-numbers-player {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
}

/* Eliminar cualquier restricción de altura en pantallas */
.admin-screen,
.player-screen {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Mejorar el layout general para evitar scroll interno */
.game-content {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.player-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

@media (max-width: 1024px) {
    .game-content,
    .player-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}
/* Mensaje cuando no hay reclamaciones de BINGO */
.no-claims-message {
    text-align: center;
    padding: 30px 20px;
    background: rgba(42, 24, 16, 0.3);
    border-radius: 10px;
    border: 2px dashed #8b4513;
    color: #ffd700;
}

.no-claims-message p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.no-claims-message small {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

/* Mejorar visibilidad del panel de validación */
.validation-panel {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        0 10px 25px rgba(0,0,0,0.4);
    min-height: 300px;
}

.validation-panel h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Asegurar que el panel de reclamaciones sea visible */
#bingo-claims {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(42, 24, 16, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.5);
    margin-bottom: 20px;
}

/* Estado de jugadores mejorado */
.players-status h4 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.player-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(42, 24, 16, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.player-status-item .player-name {
    color: #ffd700;
    font-weight: 600;
}

.player-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.player-status.playing {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.player-status.waiting {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: white;
}
/* Estados de pausa del juego */
.game-status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.pause-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    border: 2px solid #ffd700;
}

.pause-message p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Notificaciones del administrador */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    border: 2px solid #ffd700;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    max-width: 300px;
}

.admin-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.notification-text {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(-2px);
    }
}

/* Botón de cantar número pausado */
#call-number-btn:disabled {
    background: linear-gradient(135deg, #ff8c00, #ff4500) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

/* Mejorar visibilidad del panel de reclamaciones */
.validation-panel {
    position: relative;
}

.validation-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ff8c00, #ffd700);
    border-radius: 17px;
    z-index: -1;
    animation: validationGlow 2s linear infinite;
    opacity: 0;
}

.validation-panel.has-claims::before {
    opacity: 1;
}

@keyframes validationGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .admin-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .admin-notification.show {
        transform: translateY(0);
    }
    
    .game-status-message {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .pause-message {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
/* Reclamación urgente de BINGO */
.bingo-claim-item.urgent {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.bingo-claim-item.urgent::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ffd700);
    border-radius: 12px;
    z-index: -1;
    animation: urgentBorder 1.5s linear infinite;
}

@keyframes urgentBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes urgentPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(220, 20, 60, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(220, 20, 60, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6);
    }
}

/* Mejorar botones de validación */
.validate-btn {
    position: relative;
    overflow: hidden;
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
}

.validate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.validate-btn:hover::before {
    left: 100%;
}

.validate-btn.approve {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    border: 2px solid #2e7d32 !important;
}

.validate-btn.approve:hover {
    background: linear-gradient(135deg, #45a049, #388e3c) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5) !important;
}

.validate-btn.reject {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    border: 2px solid #c62828 !important;
}

.validate-btn.reject:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.5) !important;
}

/* Título del panel más visible */
.validation-panel h3 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    color: #ffd700 !important;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #dc143c !important;
    animation: titleGlow 2s ease-in-out infinite alternate !important;
}

@keyframes titleGlow {
    from { 
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #dc143c;
    }
    to { 
        text-shadow: 
            0 0 15px #ffd700,
            0 0 30px #ffd700,
            0 0 45px #dc143c,
            0 0 60px #ff8c00;
    }
}
/* Modal de confirmación para nuevo juego */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
}

.confirmation-content {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ff6b6b;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 0 50px rgba(255, 107, 107, 0.6),
        0 0 100px rgba(220, 20, 60, 0.4),
        0 30px 60px rgba(0,0,0,0.5);
    animation: confirmationSlideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.confirmation-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #dc143c, #ff8c00, #ff6b6b);
    border-radius: 20px;
    z-index: -1;
    animation: warningBorder 2s linear infinite;
}

@keyframes confirmationSlideIn {
    from { 
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    to { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes warningBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.warning-header {
    text-align: center;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.warning-header h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.warning-message {
    margin-bottom: 25px;
}

.warning-message p {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.game-info {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.game-info p {
    margin: 5px 0;
    font-size: 1rem;
    text-align: left;
    color: #fff;
}

.warning-text {
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid #dc143c;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.warning-text p {
    margin: 8px 0;
    font-size: 1rem;
    color: #ff6b6b;
    font-weight: bold;
    text-align: left;
}

.confirmation-steps {
    text-align: center;
}

.confirmation-steps p {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

#confirmation-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    border: 3px solid #f44336;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#confirmation-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

#confirmation-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cancel-btn {
    background: linear-gradient(135deg, #666, #444);
    color: white;
    border: 2px solid #888;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #777, #555);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

.confirm-btn {
    background: linear-gradient(135deg, #999, #666);
    color: #ccc;
    border: 2px solid #666;
    cursor: not-allowed;
}

.confirm-btn.enabled {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 2px solid #c62828;
    cursor: pointer;
}

.confirm-btn.enabled:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

/* Responsive para modal de confirmación */
@media (max-width: 768px) {
    .confirmation-content {
        margin: 20px;
        padding: 25px;
        max-width: none;
        width: auto;
    }
    
    .warning-header h2 {
        font-size: 1.5rem;
    }
    
    .warning-icon {
        font-size: 2.5rem;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn, .confirm-btn {
        width: 100%;
    }
    
    .game-info p,
    .warning-text p {
        font-size: 0.9rem;
    }
}

/* Mejorar el botón de reset para que sea más visible */
#reset-game-btn {
    position: relative;
    overflow: hidden;
}

#reset-game-btn::before {
    content: '⚠️';
    margin-right: 8px;
}

#reset-game-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #dc143c) !important;
    border-color: #ff6b6b !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6) !important;
}

/* Animación de advertencia para el botón cuando hay juego activo */
.reset-btn-warning {
    animation: resetWarning 2s ease-in-out infinite !important;
}

@keyframes resetWarning {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.8);
    }
}

/* Estilos para panel de validación profesional con DynamoDB */
.validation-panel.has-claims {
    border: 3px solid #ffd700;
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(220, 20, 60, 0.4);
    animation: panelAlert 2s ease-in-out infinite alternate;
}

@keyframes panelAlert {
    from { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(220, 20, 60, 0.4);
    }
    to { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 1),
            0 0 80px rgba(220, 20, 60, 0.8);
    }
}

.validation-panel h3 {
    position: relative;
    overflow: hidden;
}

.validation-panel.has-claims h3 {
    color: #ffd700;
    text-shadow: 
        0 0 15px #ffd700,
        0 0 30px #dc143c;
    animation: titleUrgent 1.5s ease-in-out infinite alternate;
}

@keyframes titleUrgent {
    from { 
        text-shadow: 
            0 0 15px #ffd700,
            0 0 30px #dc143c;
    }
    to { 
        text-shadow: 
            0 0 25px #ffd700,
            0 0 50px #dc143c,
            0 0 75px #ff8c00;
    }
}

.bingo-claim-item.urgent {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.3));
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    animation: urgentClaim 1s ease-in-out infinite alternate;
}

@keyframes urgentClaim {
    from { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(220, 20, 60, 0.4);
        transform: scale(1);
    }
    to { 
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 1),
            0 0 60px rgba(220, 20, 60, 0.8);
        transform: scale(1.02);
    }
}

.bingo-claim-item.urgent::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #dc143c, #ff8c00, #ffd700);
    border-radius: 15px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

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

.claim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.claim-header h4 {
    color: #ffd700;
    font-size: 1.3em;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.claim-time {
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 5px;
}

.claim-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.validate-btn {
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.validate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.validate-btn:hover::before {
    left: 100%;
}

.validate-btn.approve {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: #4caf50;
    color: white;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.validate-btn.approve:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(76, 175, 80, 1),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.validate-btn.reject {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: #f44336;
    color: white;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.6);
}

.validate-btn.reject:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(244, 67, 54, 1),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.no-claims-message {
    text-align: center;
    padding: 30px;
    color: rgba(255, 215, 0, 0.6);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(42, 24, 16, 0.3);
}

.no-claims-message p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.no-claims-message small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Notificaciones del administrador */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    color: #ffd700;
    font-weight: bold;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 350px;
}

.admin-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.5em;
    animation: notificationBell 1s ease-in-out infinite;
}

@keyframes notificationBell {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.notification-text {
    flex: 1;
    line-height: 1.3;
}

/* Mensaje de estado del juego pausado */
.game-status-message {
    position: relative;
    z-index: 100;
}

.pause-message {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: #ffd700;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(255, 140, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pauseMessagePulse 2s ease-in-out infinite alternate;
}

@keyframes pauseMessagePulse {
    from { 
        box-shadow: 
            0 0 20px rgba(255, 140, 0, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    to { 
        box-shadow: 
            0 0 40px rgba(255, 140, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

.pause-message p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Animación de aparición urgente para reclamaciones */
@keyframes urgentPulse {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.3));
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, rgba(220, 20, 60, 0.5), rgba(139, 0, 0, 0.5));
        transform: scale(1.02);
    }
}

/* Modal de confirmación para nuevo juego */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
}

.confirmation-content {
    background: linear-gradient(145deg, #2a1810 0%, #1a0f0a 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

.warning-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 3em;
    animation: warningBlink 1s ease-in-out infinite alternate;
}

@keyframes warningBlink {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.warning-header h2 {
    color: #ff4500;
    font-size: 2em;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
}

.warning-message {
    margin-bottom: 25px;
}

.warning-message p {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.game-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-info p {
    margin: 5px 0;
    font-size: 1em;
}

.warning-text {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.warning-text p {
    color: #f44336;
    font-weight: bold;
    margin: 5px 0;
}

.confirmation-steps p {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 15px;
}

#confirmation-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    margin-bottom: 20px;
}

#confirmation-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cancel-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: 2px solid #6c757d;
}

.confirm-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 2px solid #f44336;
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-btn.enabled {
    opacity: 1;
    cursor: pointer;
    animation: confirmReady 1s ease-in-out infinite alternate;
}

@keyframes confirmReady {
    from { 
        box-shadow: 0 0 15px rgba(244, 67, 54, 0.6);
    }
    to { 
        box-shadow: 0 0 25px rgba(244, 67, 54, 1);
    }
}

/* Botón de reset con advertencia */
.reset-btn-warning {
    background: linear-gradient(135deg, #ff8c00, #ff4500) !important;
    border-color: #ff4500 !important;
    animation: resetWarning 2s ease-in-out infinite alternate !important;
}

@keyframes resetWarning {
    from { 
        box-shadow: 
            0 0 15px rgba(255, 140, 0, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    to { 
        box-shadow: 
            0 0 25px rgba(255, 140, 0, 1),
            0 0 35px rgba(255, 69, 0, 0.6),
            0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Responsive para nuevos elementos */
@media (max-width: 768px) {
    .admin-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .admin-notification.show {
        transform: translateY(0);
    }
    
    .confirmation-content {
        padding: 20px;
        margin: 20px;
    }
    
    .warning-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .warning-header h2 {
        font-size: 1.5em;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .confirmation-buttons button {
        width: 100%;
        padding: 12px;
    }
    
    .claim-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .validate-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bingo-claim-item.urgent {
        padding: 15px;
    }
    
    .claim-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .claim-header h4 {
        font-size: 1.1em;
    }
    
    .validation-panel.has-claims {
        border-width: 2px;
    }
}

/* ========================================
   🎄 EFECTOS NAVIDEÑOS SUTILES 🎄
   Complementan el tema de casino existente
   ======================================== */

/* Contenedor principal para efectos navideños */
.christmas-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    display: none; /* Oculto por defecto */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Mostrar efectos solo cuando está activo el modo navideño */
.christmas-mode .christmas-effects {
    display: block !important;
    opacity: 1 !important;
}



/* ❄️ Efecto de nieve suave */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 0.5s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 15s; animation-delay: 2.5s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 7s; animation-delay: 4.5s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 16s; animation-delay: 1.5s; }

@keyframes snowfall {
    0% { 
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 🎄 Árboles navideños flotantes */
.christmas-trees {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-tree {
    position: absolute;
    font-size: 2em;
    opacity: 0.6;
    animation: treeFloat 20s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(34, 139, 34, 0.8);
}

.floating-tree:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-tree:nth-child(2) {
    top: 60%;
    right: 8%;
    animation-delay: 5s;
}

.floating-tree:nth-child(3) {
    top: 80%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes treeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-10px) rotate(-1deg);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-20px) rotate(1deg);
        opacity: 0.8;
    }
}

/* 🎁 Regalos y bolas navideñas */
.christmas-ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ornament {
    position: absolute;
    font-size: 1.5em;
    animation: ornamentSpin 15s linear infinite;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ornament:nth-child(1) {
    top: 25%;
    left: 12%;
    animation-delay: 0s;
}

.ornament:nth-child(2) {
    top: 45%;
    right: 15%;
    animation-delay: 3s;
}

.ornament:nth-child(3) {
    top: 70%;
    left: 25%;
    animation-delay: 6s;
}

.ornament:nth-child(4) {
    top: 35%;
    right: 30%;
    animation-delay: 9s;
}

@keyframes ornamentSpin {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg) scale(1);
        opacity: 0.6;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

/* ⛄ Muñecos de nieve ocasionales */
.snowman {
    position: absolute;
    font-size: 2.5em;
    opacity: 0;
    animation: snowmanAppear 30s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.snowman:nth-child(1) {
    bottom: 10%;
    left: 8%;
    animation-delay: 0s;
}

.snowman:nth-child(2) {
    bottom: 15%;
    right: 12%;
    animation-delay: 15s;
}

@keyframes snowmanAppear {
    0%, 85% { 
        opacity: 0;
        transform: scale(0.8);
    }
    10%, 75% { 
        opacity: 0.7;
        transform: scale(1);
    }
    15%, 70% { 
        opacity: 0.9;
        transform: scale(1.1);
    }
    20%, 65% { 
        opacity: 0.8;
        transform: scale(1);
    }
}



/* ✨ Luces navideñas que complementan las de casino */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.christmas-light {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: christmasLightBlink 3s ease-in-out infinite;
}

.christmas-light:nth-child(1) {
    top: 8%;
    left: 25%;
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
    animation-delay: 0s;
}

.christmas-light:nth-child(2) {
    top: 12%;
    left: 35%;
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
    animation-delay: 0.5s;
}

.christmas-light:nth-child(3) {
    top: 18%;
    left: 45%;
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
    animation-delay: 1s;
}

.christmas-light:nth-child(4) {
    top: 22%;
    left: 55%;
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
    animation-delay: 1.5s;
}

.christmas-light:nth-child(5) {
    top: 28%;
    left: 65%;
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
    animation-delay: 2s;
}

.christmas-light:nth-child(6) {
    top: 32%;
    left: 75%;
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
    animation-delay: 2.5s;
}

@keyframes christmasLightBlink {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
    }
}

/* 🏔️ Paisaje navideño sutil en el fondo */
.christmas-landscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(135, 206, 235, 0.03) 30%,
        transparent 100%
    );
    opacity: 0.6;
}

.christmas-landscape::before {
    content: '🏔️⛄🎄🏠🎄⛄🏔️';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.5em;
    text-align: center;
    opacity: 0.4;
    animation: landscapeGlow 8s ease-in-out infinite alternate;
}

@keyframes landscapeGlow {
    0% { 
        opacity: 0.3;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% { 
        opacity: 0.6;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

/* 🎵 Efectos especiales para números cantados en Navidad */
.number-cell.called.christmas-special {
    animation: christmasNumberCall 0.8s ease-in-out;
}

@keyframes christmasNumberCall {
    0% { 
        transform: scale(1);
        background-color: rgba(42, 24, 16, 0.8);
        box-shadow: 0 0 5px rgba(220, 20, 60, 0.4);
    }
    25% { 
        transform: scale(1.2);
        background-color: rgba(255, 0, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    50% { 
        transform: scale(1.15);
        background-color: rgba(0, 255, 0, 0.3);
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    }
    75% { 
        transform: scale(1.1);
        background-color: rgba(220, 20, 60, 0.3);
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    }
    100% { 
        transform: scale(1.05);
        background-color: rgba(220, 20, 60, 0.2);
        box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
    }
}

/* 🎊 Confeti navideño para BINGO ganador */
.christmas-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.christmas-confetti-piece {
    position: absolute;
    font-size: 1.2em;
    animation: christmasConfettiFall 3s linear infinite;
}

.christmas-confetti-piece:nth-child(1) { left: 10%; animation-delay: 0s; }
.christmas-confetti-piece:nth-child(2) { left: 20%; animation-delay: 0.2s; }
.christmas-confetti-piece:nth-child(3) { left: 30%; animation-delay: 0.4s; }
.christmas-confetti-piece:nth-child(4) { left: 40%; animation-delay: 0.6s; }
.christmas-confetti-piece:nth-child(5) { left: 50%; animation-delay: 0.8s; }
.christmas-confetti-piece:nth-child(6) { left: 60%; animation-delay: 1s; }
.christmas-confetti-piece:nth-child(7) { left: 70%; animation-delay: 1.2s; }
.christmas-confetti-piece:nth-child(8) { left: 80%; animation-delay: 1.4s; }
.christmas-confetti-piece:nth-child(9) { left: 90%; animation-delay: 1.6s; }

@keyframes christmasConfettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 🎄 Responsive para móviles - Efectos más sutiles */
@media (max-width: 768px) {

    
    .floating-tree {
        font-size: 1.5em;
        opacity: 0.4;
    }
    
    .ornament {
        font-size: 1.2em;
    }
    
    .snowman {
        font-size: 2em;
    }
    

    
    .christmas-light {
        width: 4px;
        height: 4px;
    }
    
    .christmas-landscape::before {
        font-size: 1.2em;
    }
    
    /* Reducir cantidad de copos de nieve en móvil */
    .snowflake:nth-child(n+6) {
        display: none;
    }
}

/* 🎮 Modo de rendimiento reducido para dispositivos lentos */
@media (prefers-reduced-motion: reduce) {

    .snowflake,
    .floating-tree,
    .ornament,
    .snowman,
    .christmas-light {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    .christmas-landscape::before {
        animation: none !important;
        opacity: 0.2 !important;
    }
}

/* 🌟 Efectos especiales para fechas navideñas */
.christmas-mode .registration-card h1::after,
.christmas-mode .game-header h1::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 0, 0.4), 
        rgba(0, 255, 0, 0.4),
        rgba(255, 215, 0, 0.4),
        transparent);
}

.christmas-mode .ball {
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 0, 0.3),
        0 0 90px rgba(255, 215, 0, 0.6),
        0 15px 30px rgba(0,0,0,0.4);
}

/* 🎁 Efectos de hover navideños */
.christmas-mode .bingo-cell:hover {
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.3),
        0 4px 25px rgba(0, 255, 0, 0.2),
        0 4px 35px rgba(255, 215, 0, 0.4);
}

.christmas-mode button:hover {
    box-shadow: 
        0 0 25px rgba(255, 0, 0, 0.4),
        0 0 35px rgba(0, 255, 0, 0.3),
        0 0 45px rgba(255, 215, 0, 0.6),
        0 10px 25px rgba(0,0,0,0.4);
}
/* 🎄 Animaciones adicionales para efectos navideños en JavaScript */

@keyframes christmasNumberPop {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    40% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
        opacity: 1;
    }
    60% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(2deg);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        opacity: 0;
    }
}

@keyframes christmasSparkle {
    0% { 
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    30% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    70% { 
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
    100% { 
        transform: scale(0) rotate(540deg);
        opacity: 0;
    }
}

@keyframes christmasSpecialMessage {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    15% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    85% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

/* 🎊 Efectos especiales para modal de celebración navideña */
.christmas-celebration .modal-content {
    background: linear-gradient(145deg, 
        rgba(139, 0, 0, 0.9) 0%, 
        rgba(0, 100, 0, 0.8) 50%, 
        rgba(139, 0, 0, 0.9) 100%) !important;
    border: 3px solid #FFD700 !important;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 0.8),
        0 0 100px rgba(0, 255, 0, 0.6),
        0 0 150px rgba(255, 215, 0, 0.8),
        0 30px 60px rgba(0,0,0,0.7) !important;
    animation: christmasModalGlow 1s ease-in-out infinite alternate !important;
}

@keyframes christmasModalGlow {
    from { 
        box-shadow: 
            0 0 50px rgba(255, 0, 0, 0.8),
            0 0 100px rgba(0, 255, 0, 0.6),
            0 0 150px rgba(255, 215, 0, 0.8),
            0 30px 60px rgba(0,0,0,0.7);
    }
    to { 
        box-shadow: 
            0 0 80px rgba(255, 0, 0, 1),
            0 0 120px rgba(0, 255, 0, 0.9),
            0 0 180px rgba(255, 215, 0, 1),
            0 40px 80px rgba(0,0,0,0.8);
    }
}

/* 🎄 Efectos especiales para números cantados en Navidad */
.christmas-mode .number-cell.called {
    animation: christmasNumberCall 0.8s ease-in-out, neonFlicker 0.5s ease-in-out !important;
    border-color: #FF0000 !important;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(0, 255, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4) !important;
}

/* 🎅 Efectos hover navideños mejorados */
.christmas-mode .bingo-cell:hover {
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.4),
        0 4px 25px rgba(0, 255, 0, 0.3),
        0 4px 35px rgba(255, 215, 0, 0.5) !important;
    border-color: #FF0000 !important;
}

.christmas-mode button:hover {
    box-shadow: 
        0 0 25px rgba(255, 0, 0, 0.5),
        0 0 35px rgba(0, 255, 0, 0.4),
        0 0 45px rgba(255, 215, 0, 0.7),
        0 10px 25px rgba(0,0,0,0.4) !important;
    border-color: #FF0000 !important;
}

/* ⭐ Efectos especiales para la pelota de bingo en Navidad */
.christmas-mode .ball {
    background: 
        radial-gradient(circle at 30% 30%, #FF0000, #00FF00 40%, #FFD700 70%) !important;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(0, 255, 0, 0.4),
        0 0 90px rgba(255, 215, 0, 0.8),
        0 15px 30px rgba(0,0,0,0.4) !important;
    animation: ballSpin 2s linear infinite, christmasBallGlow 1.5s ease-in-out infinite alternate !important;
}

@keyframes christmasBallGlow {
    from { 
        box-shadow: 
            0 0 30px rgba(255, 0, 0, 0.6),
            0 0 60px rgba(0, 255, 0, 0.4),
            0 0 90px rgba(255, 215, 0, 0.8),
            0 15px 30px rgba(0,0,0,0.4);
    }
    to { 
        box-shadow: 
            0 0 50px rgba(255, 0, 0, 1),
            0 0 80px rgba(0, 255, 0, 0.8),
            0 0 120px rgba(255, 215, 0, 1),
            0 20px 40px rgba(0,0,0,0.5);
    }
}

/* 🎁 Títulos navideños mejorados */
.christmas-mode .registration-card h1,
.christmas-mode .game-header h1,
.christmas-mode .player-header h1 {
    text-shadow: 
        0 0 10px #FF0000,
        0 0 20px #00FF00,
        0 0 30px #FFD700,
        0 0 40px #FF0000 !important;
    animation: christmasNeonPulse 2s ease-in-out infinite alternate !important;
}

@keyframes christmasNeonPulse {
    from { 
        text-shadow: 
            0 0 10px #FF0000,
            0 0 20px #00FF00,
            0 0 30px #FFD700,
            0 0 40px #FF0000;
    }
    to { 
        text-shadow: 
            0 0 15px #FF0000,
            0 0 30px #00FF00,
            0 0 45px #FFD700,
            0 0 60px #FF0000,
            0 0 75px #00FF00;
    }
}

/* 🔔 Efectos para dispositivos móviles en Navidad */
@media (max-width: 768px) {

    
    .christmas-mode .floating-tree {
        font-size: 1.2em;
        opacity: 0.5;
    }
    
    .christmas-mode .ornament {
        font-size: 1em;
    }
    
    .christmas-mode .snowman {
        font-size: 1.8em;
    }
    

    
    /* Reducir efectos en móvil para mejor rendimiento */
    .christmas-mode .christmas-light {
        width: 3px;
        height: 3px;
        animation-duration: 1s;
    }
    
    .christmas-mode .snowflake:nth-child(n+4) {
        display: none;
    }
}

/* 🎄 Modo de alto contraste navideño */
@media (prefers-contrast: high) {
    .christmas-mode .bingo-cell.marked {
        background: #FF0000 !important;
        color: #FFFFFF !important;
        border-color: #00FF00 !important;
        border-width: 4px !important;
    }
    
    .christmas-mode .number-cell.called {
        background: #00FF00 !important;
        color: #000000 !important;
        border-color: #FF0000 !important;
        border-width: 4px !important;
    }
}

/* ❄️ Efectos de nieve intensificados durante celebración */
.christmas-celebration .snowflake {
    animation-duration: 2s !important;
    opacity: 1 !important;
    font-size: 1.5em !important;
}

.christmas-celebration .floating-tree {
    animation-duration: 5s !important;
    opacity: 0.9 !important;
}

.christmas-celebration .ornament {
    animation-duration: 3s !important;
    opacity: 1 !important;
}



.christmas-celebration .magic-particles .particle {
    animation-duration: 1s !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 1) !important;
}



/* ✨ Luces navideñas más brillantes durante celebración */
.christmas-celebration .christmas-light {
    animation-duration: 0.3s !important;
    box-shadow: 0 0 25px currentColor !important;
}

/* 🏔️ Paisaje navideño más visible durante celebración */
.christmas-celebration .christmas-landscape::before {
    opacity: 0.8 !important;
    animation-duration: 3s !important;
}