footer {
    width: 100%;
    text-align: center;
    padding: 18px 0 10px 0;
    background: linear-gradient(90deg, #2c3e50 0%, #764ba2 100%);
    color: #f3f3f3;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-top: 40px;
}
footer p {
    margin: 0;
    opacity: 0.85;
}
.coinflip-container {
    position: fixed;
    bottom: 70px;
    right: 28px;
    z-index: 1001;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coinflip-btn {
    position: relative;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    overflow: hidden;
    text-align: center;
    padding: 0;
    font-size: 3em;
}
.coinflip-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 2002;
    min-width: 32px;
    text-align: center;
}
#coinflipEmoji {
    margin: 0 auto;
    display: block;
    text-align: center;
    line-height: 1;
}
.coinflip-btn[data-tooltip]:hover::after, .coinflip-btn[data-tooltip]:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
    background: #222b;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 2000;
}
.coinflip-btn {
    position: fixed;
    bottom: 70px;
    right: 28px;
    z-index: 1001;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    overflow: hidden;
    text-align: center;
    padding: 0;
}
.coinflip-btn span {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}
#coinflipEmoji {
    font-size: 2.2em;
    line-height: 1.1;
    margin-bottom: -2px;
    margin-top: 2px;
    display: block;
}
#coinflipTimer {
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
    margin-top: -2px;
    display: block;
}
.coinflip-btn:hover {
    background: linear-gradient(145deg, #2980b9, #1f5f8b);
    transform: scale(1.09);
}

.coinflip-panel .coinflip-result {
    margin-top: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    min-height: 32px;
    transition: all 0.3s;
}
.coinflip-panel .coinflip-result.animate-win {
    animation: coinflipWin 1.2s;
    color: #2ecc71;
    text-shadow: 0 0 8px #27ae60;
}
.coinflip-panel .coinflip-result.animate-lose {
    animation: coinflipLose 1.2s;
    color: #e74c3c;
    text-shadow: 0 0 8px #c0392b;
}
@keyframes coinflipWin {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1); }
}
@keyframes coinflipLose {
    0% { transform: scale(1); }
    30% { transform: scale(0.8) rotate(10deg); }
    60% { transform: scale(1.1) rotate(-10deg); }
    100% { transform: scale(1); }
}
/* Animación para el símbolo bonificado */
.bonus-symbol {
    background: linear-gradient(90deg, #ffe066 0%, #ffb347 100%);
    color: #b95c00;
    border-radius: 8px;
    box-shadow: 0 0 12px 2px #ffd700;
    animation: bonusPulse 1.2s infinite alternate;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Botón flotante para mostrar/ocultar estadísticas de sesión */
.toggle-session-stats-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: linear-gradient(145deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.toggle-session-stats-btn:hover {
    background: linear-gradient(145deg, #e67e22, #f39c12);
    transform: scale(1.07);
}

/* Botón flotante para mostrar/ocultar logros */
.toggle-achievements-btn {
    position: fixed;
    bottom: 24px;
    right: 100px;
    z-index: 1000;
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.toggle-achievements-btn:hover {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    transform: scale(1.07);
}

.coinflip-btn {
    position: fixed;
    bottom: 70px;
    right: 28px;
    z-index: 1001;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}
.coinflip-btn:hover {
    background: linear-gradient(145deg, #2980b9, #1f5f8b);
    transform: scale(1.09);
}

.coinflip-panel {
    position: fixed;
    bottom: 120px;
    right: 24px;
    z-index: 1002;
    background: #222b;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 16px 18px 12px 18px;
    min-width: 210px;
    display: none;
}
.coinflip-panel.show {
    display: block;
}
.coinflip-panel input[type="number"] {
    width: 70px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #3498db;
    font-size: 1em;
    margin-right: 8px;
}
.coinflip-panel .coinflip-choice-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 1em;
    font-weight: bold;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.coinflip-panel .coinflip-choice-btn:hover {
    background: #e67e22;
}
.coinflip-panel .coinflip-result {
    margin-top: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.session-stats {
    display: none !important;
}
.session-stats.show {
    display: block !important;
}

@keyframes bonusPulse {
    0% { box-shadow: 0 0 12px 2px #ffd700; transform: scale(1); }
    100% { box-shadow: 0 0 24px 6px #ffe066; transform: scale(1.12); }
}
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .game-container {
            display: flex;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            align-items: flex-start;
        }

        .slot-machine {
            background: linear-gradient(145deg, #2c3e50, #34495e);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.3),
                inset 0 2px 10px rgba(255,255,255,0.1);
            text-align: center;
            flex: 1;
            min-width: 400px;
        }

        .info-panel {
            background: linear-gradient(145deg, #2c3e50, #34495e);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.3),
                inset 0 2px 10px rgba(255,255,255,0.1);
            width: 350px;
            color: #ecf0f1;
        }

        .title {
            color: #f39c12;
            font-size: 2.2em;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            animation: glow 2s ease-in-out infinite alternate;
        }

        .title.dev-mode {
            color: #e74c3c;
            animation: devGlow 1s ease-in-out infinite alternate;
        }

        @keyframes devGlow {
            from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px #e74c3c; }
            to { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px #e74c3c, 0 0 30px #e74c3c; }
        }

        @keyframes glow {
            from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px #f39c12; }
            to { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px #f39c12, 0 0 30px #f39c12; }
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin: 20px 0;
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 15px;
        }

        .stat-item {
            text-align: center;
            color: #ecf0f1;
        }

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

        .stat-value {
            font-size: 1.3em;
            font-weight: bold;
            color: #f39c12;
        }

        .reels-container {
            display: flex;
            justify-content: space-between;
            margin: 25px 0;
            background: #1a1a1a;
            border-radius: 15px;
            padding: 20px;
            box-shadow: inset 0 5px 15px rgba(0,0,0,0.5);
        }

        .reel {
            width: 90px;
            height: 110px;
            background: #fff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5em;
            border: 3px solid #f39c12;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            overflow: hidden;
            position: relative;
        }

        .reel.spinning {
    animation: spinCasino 0.18s cubic-bezier(.5,1.8,.5,-0.8) infinite;
}

/* Efecto de rebote y brillo al detenerse */
.reel-stop {
    animation: reelStopBounce 0.7s cubic-bezier(.5,1.8,.5,-0.8);
    box-shadow: 0 0 30px 10px #f1c40f, 0 0 10px 2px #fff;
}

@keyframes spinCasino {
    0% { transform: translateY(0) scale(1); filter: brightness(1); }
    80% { transform: translateY(-30px) scale(1.08); filter: brightness(1.2); }
    100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@keyframes reelStopBounce {
    0% { transform: scale(1) translateY(0); filter: brightness(1.2); }
    60% { transform: scale(1.15) translateY(-10px); filter: brightness(1.5); }
    80% { transform: scale(0.95) translateY(5px); filter: brightness(1.1); }
    100% { transform: scale(1) translateY(0); filter: brightness(1); }
}

        .bet-controls {
            margin: 20px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .bet-input-container {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.1);
            padding: 10px 15px;
            border-radius: 10px;
            border: 2px solid #f39c12;
        }

        .bet-input {
            background: rgba(255,255,255,0.9);
            border: none;
            border-radius: 5px;
            padding: 8px 12px;
            font-size: 1.1em;
            font-weight: bold;
            color: #2c3e50;
            text-align: center;
            width: 100px;
            outline: none;
            transition: all 0.3s ease;
        }

        .bet-input:focus {
            background: white;
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
            transform: scale(1.05);
        }

        .bet-input::-webkit-inner-spin-button,
        .bet-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .bet-input[type=number] {
            -moz-appearance: textfield;
        }

        .bet-button {
            background: #3498db;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 1.1em;
        }

        .bet-button:hover:not(:disabled) {
            background: #2980b9;
            transform: translateY(-1px);
        }

        .bet-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
        }

        .bet-amount {
            color: #f39c12;
            font-size: 1.2em;
            font-weight: bold;
            min-width: 120px;
        }

        .spin-button {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            padding: 15px 35px;
            font-size: 1.4em;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 20px 0;
        }

        .spin-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.4);
            background: linear-gradient(145deg, #c0392b, #a93226);
        }

        .spin-button:active {
            transform: translateY(0);
            box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        }

        .spin-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        }

        .special-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .work-button {
            background: linear-gradient(145deg, #27ae60, #2ecc71);
            color: white;
            border: none;
            padding: 12px 20px;
            font-size: 1em;
            font-weight: bold;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .work-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
            background: linear-gradient(145deg, #2ecc71, #27ae60);
        }

        .work-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 3px 6px rgba(0,0,0,0.2);
        }

        .invest-button {
            background: linear-gradient(145deg, #9b59b6, #8e44ad);
            color: white;
            border: none;
            padding: 12px 20px;
            font-size: 1em;
            font-weight: bold;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .invest-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
            background: linear-gradient(145deg, #8e44ad, #7d3c98);
        }

        .invest-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 3px 6px rgba(0,0,0,0.2);
        }

        .win-button {
            background: linear-gradient(145deg, #9b59b6, #8e44ad);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 20px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            margin: 5px;
        }

        .events-button {
            background: linear-gradient(145deg, #e67e22, #d35400);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 20px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            margin: 5px;
        }

        .events-button:hover {
            background: linear-gradient(145deg, #d35400, #e67e22);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        .events-button:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .win-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
            background: linear-gradient(145deg, #f39c12, #e67e22);
        }

        .win-button:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 3px 6px rgba(0,0,0,0.2);
        }

        .raise-button {
            background: linear-gradient(145deg, #f1c40f, #f39c12) !important;
            color: white !important;
            border: none !important;
            padding: 12px 20px !important;
            font-size: 1em !important;
            font-weight: bold !important;
            border-radius: 25px !important;
            cursor: pointer !important;
            box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
            transition: all 0.3s ease !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            margin: 10px auto !important;
            display: block !important;
            width: 250px !important;
            animation: pulse 2s infinite !important;
        }

        .raise-button:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
            background: linear-gradient(145deg, #f39c12, #e67e22) !important;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        .work-cooldown {
            font-size: 0.9em;
            color: #ecf0f1;
            margin-top: 5px;
            opacity: 0.8;
        }

        .invest-countdown {
            font-size: 0.9em;
            color: #9b59b6;
            margin-top: 5px;
            opacity: 0.9;
            font-weight: bold;
        }

        .audio-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin: 15px 0;
            padding: 10px;
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
        }

        .audio-button {
            background: linear-gradient(145deg, #3498db, #2980b9);
            color: white;
            border: none;
            padding: 10px 15px;
            font-size: 1.2em;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .audio-button:hover {
            transform: scale(1.1);
            background: linear-gradient(145deg, #2980b9, #1f5f8b);
        }

        .audio-button.muted {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
        }

        .audio-button.muted:hover {
            background: linear-gradient(145deg, #c0392b, #a93226);
        }

        .audio-button.music-off {
            background: linear-gradient(145deg, #95a5a6, #7f8c8d);
        }

        .audio-button.music-off:hover {
            background: linear-gradient(145deg, #7f8c8d, #6c7b7d);
        }

        .volume-slider {
            flex: 1;
            max-width: 150px;
        }

        .volume-slider input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255,255,255,0.2);
            outline: none;
            -webkit-appearance: none;
        }

        .volume-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f39c12;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .volume-slider input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f39c12;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .message {
            margin: 20px 0;
            padding: 15px;
            border-radius: 10px;
            font-weight: bold;
            font-size: 1.1em;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.5s ease;
        }

        .message.win {
            background: linear-gradient(145deg, #27ae60, #2ecc71);
            color: white;
            animation: celebrate 0.5s ease-in-out;
        }

        .message.lose {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
            color: white;
        }

        .message.neutral {
            background: rgba(255,255,255,0.1);
            color: #ecf0f1;
        }

        .message.work {
            background: linear-gradient(145deg, #f39c12, #e67e22);
            color: white;
            animation: celebrate 0.5s ease-in-out;
        }

        .message.invest {
            background: linear-gradient(145deg, #9b59b6, #8e44ad);
            color: white;
            animation: celebrate 0.5s ease-in-out;
        }

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

        .combinations-table {
            margin-bottom: 20px;
        }

        .table-title {
            color: #f39c12;
            font-size: 1.3em;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }

        .combo-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            margin: 5px 0;
            background: rgba(255,255,255,0.05);
            border-radius: 8px;
            border-left: 3px solid #f39c12;
        }

        .combo-symbols {
            font-size: 1.2em;
            display: flex;
            gap: 5px;
        }

        .combo-multiplier {
            color: #2ecc71;
            font-weight: bold;
        }

        .session-stats {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255,255,255,0.05);
            border-radius: 10px;
        }

        .session-title {
            color: #f39c12;
            font-size: 1.2em;
            font-weight: bold;
            margin-bottom: 10px;
            text-align: center;
        }

        .session-item {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .session-item:last-child {
            border-bottom: none;
        }

        .session-label {
            opacity: 0.8;
        }

        .session-value {
            color: #f39c12;
            font-weight: bold;
        }

        .session-value.positive {
            color: #2ecc71;
        }

        .session-value.negative {
            color: #e74c3c;
        }

        @media (max-width: 900px) {
            .game-container {
                flex-direction: column;
                align-items: center;
            }
            
            .info-panel {
                width: 100%;
                max-width: 400px;
            }
            
            .slot-machine {
                min-width: auto;
                width: 100%;
                max-width: 400px;
                        max-height: 100vh;
                        overflow-y: auto;
                        padding: 15px;
            }
            
            .title {
                font-size: 1.5em;
            }
            
            .reel {
                width: 75px;
                height: 90px;
                font-size: 2.8em;
            }

                    .special-buttons {
                        flex-direction: row;
                        align-items: center;
                        justify-content: center;
                        gap: 5px;
                        margin: 8px 0;
                    }

                    .work-button, .invest-button, .win-button, .raise-button {
                        width: 90px !important;
                        padding: 7px 8px !important;
                        font-size: 0.85em !important;
                        border-radius: 16px !important;
                        margin: 0 !important;
                        min-width: unset !important;
                    }
            
                    .bet-controls-wrapper {
                        display: flex;
                        flex-direction: row;
                        gap: 8px;
                        width: 100%;
                        justify-content: center;
                        align-items: flex-start;
                    }
                    .bet-input-container {
                        flex-direction: row;
                        gap: 2px;
                        flex-wrap: wrap;
                        max-width: 65px;
                        width: auto;
                        box-sizing: border-box;
                        padding: 0 !important;
                        background: none !important;
                        border: none !important;
                        border-radius: 0 !important;
                    }
            }
            
            .bet-input {
                        width: 60px;
                        font-size: 0.9em;
                        min-width: 0;
            }

                    /* Optimizar bet-controls para móvil */
                    .bet-controls {
                        margin: 8px 0 !important;
                        gap: 6px !important;
                        padding: 4px !important;
                        font-size: 0.9em !important;
                        flex-wrap: wrap !important;
                        flex-direction: row !important;
                        align-items: center !important;
                    }
                    .bet-button {
                        padding: 7px 10px !important;
                        font-size: 0.9em !important;
                        border-radius: 12px !important;
                        min-width: 0 !important;
                    }
                    .bet-amount {
                        font-size: 1em !important;
                        min-width: 70px !important;
                    }

                    /* Optimizar stats-grid para móvil: horizontal y compacto */
                    .stats-grid {
                        display: flex !important;
                        flex-direction: row !important;
                        gap: 8px !important;
                        margin: 8px 0 !important;
                        padding: 8px !important;
                        justify-content: center !important;
                        align-items: center !important;
                        background: rgba(255,255,255,0.08) !important;
                        border-radius: 8px !important;
                    }
                    .stat-item {
                        min-width: 70px !important;
                        font-size: 0.85em !important;
                        padding: 0 !important;
                    }
                    .stat-label {
                        font-size: 0.8em !important;
                        margin-bottom: 2px !important;
                    }
                    .stat-value {
                        font-size: 1em !important;
                    }
                    .session-stats {
                        display: none !important;
                    }
                    .session-stats.show {
                        display: block !important;
                    }

                    /* Ajustar reels-container para que no exceda la pantalla */
                    .reels-container {
                        padding: 10px;
                        margin: 10px 0;
                    }

                    /* Reducir margen de botones para ahorrar espacio */
                    .spin-button {
                        margin: 6px 0;
                        padding: 8px 12px;
                        font-size: 0.95em;
                        border-radius: 22px;
                    }

                    /* Reducir margen de mensaje */
                    .message {
                        margin: 10px 0;
                        padding: 8px;
                        font-size: 0.95em;
                        min-height: 30px;
                    }
                    
                    /* Ajustar botones flotantes en móvil */
                    .toggle-session-stats-btn {
                        bottom: 24px;
                        right: 24px;
                        padding: 10px 18px;
                        font-size: 0.9em;
                    }
                    
                    .toggle-achievements-btn {
                        bottom: 24px;
                        right: 90px;
                        padding: 10px 18px;
                        font-size: 0.9em;
                    }
        

/* Estilos para eventos aleatorios y logros */
.fever-mode {
    animation: feverPulse 0.5s infinite alternate;
    color: #ff6b35 !important;
    text-shadow: 0 0 20px #ff6b35 !important;
}

@keyframes feverPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.achievement-unlocked {
    animation: achievementUnlock 3s ease-in-out;
}

@keyframes achievementUnlock {
    0% { transform: scale(1); }
    20% { transform: scale(1.2) rotate(-5deg); }
    40% { transform: scale(1.1) rotate(5deg); }
    60% { transform: scale(1.15) rotate(-3deg); }
    80% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1); }
}

/* Estilos para mensajes de eventos */
.message.jackpot {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #b8860b;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px #ffd700;
    animation: jackpotGlow 2s infinite alternate;
}

.message.fever {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px #ff6b35;
    animation: feverGlow 0.5s infinite alternate;
}

.message.bonus {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 8px #4ecdc4;
}

.message.achievement {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: #fff;
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: 0 0 12px #9b59b6;
    animation: achievementGlow 2s infinite alternate;
}

@keyframes jackpotGlow {
    0% { box-shadow: 0 0 20px #ffd700; }
    100% { box-shadow: 0 0 40px #ffd700, 0 0 60px #ffd700; }
}

@keyframes feverGlow {
    0% { box-shadow: 0 0 15px #ff6b35; }
    100% { box-shadow: 0 0 30px #ff6b35, 0 0 45px #ff6b35; }
}

@keyframes achievementGlow {
    0% { box-shadow: 0 0 20px #9b59b6; }
    100% { box-shadow: 0 0 40px #9b59b6, 0 0 60px #9b59b6; }
}

/* Panel de eventos activos */
.active-events-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
}

.active-events-panel.show {
    display: block;
    animation: slideInDown 0.5s ease-out;
}

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

/* Panel de logros */
.achievements-panel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
}

.achievements-panel.show {
    display: block;
    animation: slideInDown 0.5s ease-out;
}

/* Pestañas de logros */
.achievement-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.achievement-tab {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.achievement-tab:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.achievement-tab.active {
    background: rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Contenido de logros */
.achievement-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Navegación de logros */
.achievement-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.achievement-navigation button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.achievement-navigation button:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.achievement-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.achievement-navigation span {
    font-weight: bold;
    font-size: 1.1em;
}

.achievement {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.achievement.earned {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid #2ecc71;
}

.achievement.locked {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #95a5a6;
    opacity: 0.7;
}

.achievement-icon {
    font-size: 2em;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.achievement-description {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 4px;
}

.achievement-reward {
    font-size: 0.8em;
    color: #f1c40f;
    font-weight: bold;
}

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

/* Contador de streak */
.streak-counter {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: streakPulse 1s infinite alternate;
}

@keyframes streakPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Estadísticas adicionales */
.extra-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.extra-stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

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

.extra-stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #f1c40f;
}
        