/* ===== VARIABLES Y RESET ===== */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #ffc857;
    --accent: #7b2cbf;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f8f8;
    --success: #4ade80;
    --danger: #ef4444;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --card-width: min(280px, 80vw);
    --card-height: calc(var(--card-width) * 1.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, #16213e 100%);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--light);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PANTALLAS ===== */
.screen {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PANTALLA DE INICIO ===== */
#screen-start {
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
}

.start-container {
    text-align: center;
    z-index: 2;
}

.logo-container {
    position: relative;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Bangers', cursive;
    font-size: clamp(3rem, 15vw, 5rem);
    color: var(--secondary);
    text-shadow: 
        4px 4px 0 var(--primary),
        8px 8px 0 var(--accent),
        0 0 30px rgba(255, 200, 87, 0.5);
    letter-spacing: 4px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.logo-emoji {
    font-size: 4rem;
    animation: beerShake 2s ease-in-out infinite;
}

@keyframes beerShake {
    0%, 100% { transform: rotate(-5deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

/* Burbujas de fondo */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubbles span {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 200, 87, 0.2);
    border-radius: 50%;
    animation: bubble 8s infinite;
}

.bubbles span:nth-child(1) { left: 10%; animation-delay: 0s; width: 20px; height: 20px; }
.bubbles span:nth-child(2) { left: 30%; animation-delay: 1s; width: 30px; height: 30px; }
.bubbles span:nth-child(3) { left: 50%; animation-delay: 2s; }
.bubbles span:nth-child(4) { left: 70%; animation-delay: 3s; width: 25px; height: 25px; }
.bubbles span:nth-child(5) { left: 85%; animation-delay: 4s; width: 35px; height: 35px; }

@keyframes bubble {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ===== BOTONES ===== */
.btn-main {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    cursor: pointer;
    box-shadow: 
        0 8px 0 #b84a22,
        0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 0 #b84a22,
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-main:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 #b84a22,
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-main.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 0 #b84a22, 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 8px 0 #b84a22, 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(255, 107, 53, 0); }
}

.btn-secondary {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    background: var(--glass);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-icon {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 15px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===== PANTALLA DE REGISTRO ===== */
#screen-register {
    justify-content: center;
    align-items: center;
}

.register-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.register-container h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 var(--accent);
}

/* Foto del jugador */
.photo-upload {
    margin-bottom: 20px;
}

.photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--glass);
    border: 3px dashed var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-label:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.2);
}

.photo-label.has-photo {
    border-style: solid;
    border-color: var(--success);
}

.photo-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-icon {
    font-size: 2rem;
}

.photo-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    background: var(--glass);
    color: white;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.btn-add {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent) 0%, #5a1d91 100%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-add:hover {
    transform: scale(1.1) rotate(90deg);
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 50px;
}

.player-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 8px 8px;
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    animation: popIn 0.3s ease;
}

.player-tag .player-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.player-tag .player-avatar-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--secondary);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.player-tag span {
    font-weight: 700;
}

.player-tag button {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-tag button:hover {
    transform: scale(1.2);
}

.player-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== PANTALLA DE JUEGO ===== */
#screen-game {
    display: none;
    flex-direction: column;
    padding-bottom: 100px;
}

#screen-game.active {
    display: flex;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.round-counter {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--secondary);
}

.cards-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    perspective: 1000px;
}

.card-container {
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
}

.card-container.hidden {
    display: none;
}

/* ===== CARTAS ===== */
.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.6s ease;
    transition: transform 0.6s ease;
}

.card.flipped .card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-back {
    background: 
        repeating-linear-gradient(
            45deg,
            var(--accent) 0px,
            var(--accent) 10px,
            #5a1d91 10px,
            #5a1d91 20px
        );
    border: 4px solid var(--secondary);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-back::before {
    content: '🍺';
    font-size: 4rem;
    background: var(--dark);
    padding: 20px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
}

.card-front {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: var(--dark);
    border: 4px solid;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Tipos de carta */
.card-front.player {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
}

.card-front.quantity {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fffdf0 0%, #fff3c4 100%);
}

.card-front.special-cambio {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #f0fdff 0%, #cffafe 100%);
}

.card-front.special-doble {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}

.card-front.special-reto {
    border-color: #f43f5e;
    background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
}

.card-front.special-todos {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.card-icon.player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
}

.card-number {
    font-family: 'Bangers', cursive;
    font-size: 6rem;
    line-height: 1;
}

/* Animaciones de cartas */
.card.enter {
    animation: cardEnter 0.5s ease forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        margin-left: 100vw;
    }
    to {
        opacity: 1;
        margin-left: 0;
    }
}

.card.exit {
    animation: cardExit 0.4s ease forwards;
}

@keyframes cardExit {
    to {
        opacity: 0;
        margin-left: -100vw;
    }
}

/* Mensaje del juego */
.game-message {
    text-align: center;
    min-height: 80px;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    transition: opacity 0.3s ease;
}

#screen-game .btn-main {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
}

/* ===== PANELES ===== */
.panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.panel.hidden {
    display: none;
}

.panel-content {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    width: calc(100% - 40px);
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.panel-content h2 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Marcador */
.scores-list {
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--glass);
    border-radius: 10px;
    margin-bottom: 8px;
}

.score-item .name {
    font-weight: 700;
}

.score-item .score {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--primary);
}

.score-item.leader {
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.3) 0%, rgba(255, 107, 53, 0.3) 100%);
    border: 1px solid var(--secondary);
}

/* Menú opciones */
.btn-menu-option {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    background: var(--glass);
    color: white;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-menu-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Reglas */
.rules-content {
    text-align: left;
}

.rules-text p {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--glass);
    border-radius: 10px;
}

/* ===== MODAL DE RETO ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #f43f5e;
    border-radius: 25px;
    padding: 30px;
    width: calc(100% - 40px);
    max-width: 350px;
    text-align: center;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    to { transform: scale(1); opacity: 1; }
}

.challenge-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.challenge-content h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #f43f5e;
    margin-bottom: 20px;
}

.challenge-text {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding: 20px;
    background: rgba(244, 63, 94, 0.2);
    border-radius: 15px;
}

.challenge-warning {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.challenge-content .btn-main {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 10px;
}

.btn-fail {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--danger);
    border-radius: 50px;
    background: transparent;
    color: var(--danger);
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-fail:hover {
    background: var(--danger);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .btn-main {
        padding: 15px 30px;
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-number {
        font-size: 4rem;
    }
}

/* Efectos de confeti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== NUKE CHUFFI ÉPICO ===== */
.card-front.special-nuke {
    border-color: #39ff14;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d0d 50%, #1a1a1a 100%);
    color: #39ff14;
    animation: nukeGlow 0.5s ease-in-out infinite alternate;
}

.card-front.special-nuke .card-icon {
    animation: nukeRadiate 1s ease-in-out infinite;
}

.card-front.special-nuke .card-title {
    color: #39ff14;
    text-shadow: 0 0 20px #39ff14, 0 0 40px #ffff00;
}

.roulette-item.special-nuke {
    border-color: #39ff14 !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d0d 100%) !important;
    color: #39ff14 !important;
    animation: nukeGlow 0.3s ease-in-out infinite alternate;
}

.roulette-item.nuke-quantity {
    border-color: #39ff14 !important;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a2d0d 100%) !important;
    color: #39ff14 !important;
}

.nuke-number {
    color: #39ff14 !important;
    text-shadow: 0 0 20px #39ff14, 0 0 40px #ffff00;
}

@keyframes nukeGlow {
    from { box-shadow: 0 0 20px rgba(57, 255, 20, 0.5), inset 0 0 20px rgba(57, 255, 20, 0.1); }
    to { box-shadow: 0 0 40px rgba(57, 255, 20, 0.8), 0 0 60px rgba(255, 255, 0, 0.4), inset 0 0 30px rgba(57, 255, 20, 0.2); }
}

@keyframes nukeRadiate {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.2); filter: brightness(1.5); }
}

/* Overlay de explosión nuclear */
.nuke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nuke-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: nukeFlash 0.5s ease-out forwards;
}

@keyframes nukeFlash {
    0% { opacity: 1; }
    100% { opacity: 0; background: rgba(57, 255, 20, 0.3); }
}

.nuke-symbol {
    font-size: 8rem;
    animation: nukeSymbolAnim 2s ease-out forwards;
    z-index: 10;
    filter: drop-shadow(0 0 30px #39ff14) drop-shadow(0 0 60px #ffff00);
}

@keyframes nukeSymbolAnim {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    30% { transform: scale(3) rotate(180deg); opacity: 1; }
    60% { transform: scale(2) rotate(360deg); opacity: 1; }
    100% { transform: scale(1.5) rotate(720deg); opacity: 0; }
}

.nuke-text {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #39ff14;
    text-shadow: 0 0 20px #39ff14, 0 0 40px #ffff00, 0 0 60px #ff6600;
    animation: nukeTextAnim 2s ease-out forwards;
    letter-spacing: 5px;
    z-index: 10;
}

@keyframes nukeTextAnim {
    0% { transform: scale(0); opacity: 0; }
    20% { transform: scale(1.5); opacity: 1; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.nuke-shockwave {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid #39ff14;
    border-radius: 50%;
    animation: shockwave 1.5s ease-out forwards;
}

@keyframes shockwave {
    0% { transform: scale(0); opacity: 1; border-width: 4px; }
    100% { transform: scale(30); opacity: 0; border-width: 1px; }
}

.nuke-confetti {
    border-radius: 2px;
    animation: nukeConfettiFall 3s ease-out forwards !important;
}

@keyframes nukeConfettiFall {
    0% { transform: translateY(-100vh) rotate(0deg) scale(1); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(1080deg) scale(0.5); opacity: 0; }
}

.nuke-card {
    border-color: #39ff14 !important;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a2d0d 100%) !important;
    animation: nukeGlow 0.3s ease-in-out infinite alternate;
}

.nuke-card .card-title,
.nuke-card .card-number {
    color: #39ff14 !important;
    text-shadow: 0 0 20px #39ff14;
}

/* ===== BOMBAS CAYENDO ===== */
.bomb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
}

.bomb-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: #39ff14;
    text-shadow: 0 0 30px #39ff14, 0 0 60px #ffff00;
    z-index: 10;
    transition: transform 0.2s ease;
}

.bomb-counter.counter-pulse {
    transform: translate(-50%, -50%) scale(1.3);
}

.counter-num {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.falling-bomb {
    position: absolute;
    top: -80px;
    font-size: 4rem;
    animation: bombFall 0.8s ease-in forwards;
    filter: drop-shadow(0 0 20px #ff6600);
    z-index: 5;
}

@keyframes bombFall {
    0% {
        top: -80px;
        transform: rotate(0deg);
    }
    100% {
        top: calc(100vh - 100px);
        transform: rotate(360deg);
    }
}

.bomb-explosion {
    position: absolute;
    bottom: 20px;
    font-size: 6rem;
    transform: translateX(-50%);
    animation: explode 0.5s ease-out forwards;
    z-index: 6;
}

@keyframes explode {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(2);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(3);
        opacity: 0;
    }
}

/* Salvado del NUKE */
.nuke-saved {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 50, 0, 0.9);
    animation: savedFadeIn 0.3s ease;
}

@keyframes savedFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.saved-shield {
    font-size: 8rem;
    animation: shieldPulse 0.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px #4ade80);
}

@keyframes shieldPulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

.saved-text {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #4ade80;
    text-shadow: 0 0 30px #4ade80;
    margin-top: 20px;
    animation: savedTextBounce 0.5s ease;
}

@keyframes savedTextBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.saved-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* Carta del que da los NUKE chuffis */
.nuke-giver-card {
    border-color: #39ff14 !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d2d0d 50%, #1a1a1a 100%) !important;
    animation: nukeGlow 0.5s ease-in-out infinite alternate;
}

.nuke-giver-card .card-title {
    color: #39ff14 !important;
    text-shadow: 0 0 20px #39ff14, 0 0 40px #ffff00;
}

.nuke-giver-card .card-subtitle {
    color: #39ff14 !important;
}

.nuke-giver-card .card-icon {
    filter: drop-shadow(0 0 20px #39ff14);
}

/* ===== TOGGLE SWITCH ===== */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-radius: 15px;
    border: 2px solid var(--secondary);
}

.mode-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--light);
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 36px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 36px;
    transition: 0.4s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(34px);
}

/* ===== RULETA ===== */
.roulette-container {
    width: 100%;
    max-width: 350px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
}

.roulette-container.hidden {
    display: none;
}

.roulette-pointer {
    font-size: 2.5rem;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(255, 200, 87, 0.8);
    -webkit-animation: pointerPulse 1s ease-in-out infinite;
    animation: pointerPulse 1s ease-in-out infinite;
    z-index: 10;
}

@-webkit-keyframes pointerPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.2); transform: scale(1.2); }
}

@keyframes pointerPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.2); transform: scale(1.2); }
}

.roulette-window {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    border: 4px solid var(--secondary);
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.roulette-window::before,
.roulette-window::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.roulette-window::before {
    left: 0;
    background: linear-gradient(to right, var(--darker), transparent);
}

.roulette-window::after {
    right: 0;
    background: linear-gradient(to left, var(--darker), transparent);
}

.roulette-strip {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    height: 100%;
    -webkit-transition: -webkit-transform 0.1s linear;
    transition: transform 0.1s linear;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    will-change: transform;
}

.roulette-strip.spinning {
    -webkit-transition: -webkit-transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-item {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 140px;
    height: 120px;
    margin: 0 10px;
    border-radius: 15px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: -webkit-linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 3px solid var(--secondary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--dark);
    font-family: 'Bangers', cursive;
}

.roulette-item.player {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
}

.roulette-item.quantity {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fffdf0 0%, #fff3c4 100%);
}

.roulette-item.special-cambio {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #f0fdff 0%, #cffafe 100%);
}

.roulette-item.special-doble {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}

.roulette-item.special-reto {
    border-color: #f43f5e;
    background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
}

.roulette-item.special-todos {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

.roulette-item .item-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.roulette-item .item-icon.photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.roulette-item .item-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 5px;
}

.roulette-item .item-number {
    font-size: 2.5rem;
    line-height: 1;
}

.roulette-item.winner {
    animation: winnerGlow 0.5s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    from { box-shadow: 0 0 20px rgba(255, 200, 87, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 200, 87, 1), 0 0 60px rgba(255, 107, 53, 0.5); }
}

