.game-area .game-area-content {
    display: block;
}

.game-history {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: stretch;
    align-items: stretch;
    min-height: 37px;
}

.game-history.scrollable {
    margin-bottom: -10px;
    padding-bottom: 10px
}

.game-history__wrap {
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    overflow: hidden
}

.game-history .item {
    margin-right: 10px;
    text-align: center;
    padding: 6px 12px;
    min-width: 85px;
    border-radius: 6px;
    background-color: #000;
    cursor: pointer;
}

.game-history .item.isAnimate {
    -webkit-animation: shiftFromLeft .3s linear;
    animation: shiftFromLeft .3s linear
}

.game-history .item:last-child {
    margin-right: 0
}

.game-history .item .item-bet {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -1px;
}

.game-history .item .item-result {
    font-size: 11px;
    color: #5e687e
}

.game-history .item .item-result i {
    font-size: 8px
}

.crash__connected {
    pointer-events: none;
    border-radius: 6px 6px;
    position: relative;
    font-size: 25px;
    z-index: 2;
}

.crash-info-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
    z-index: 10;
}

.crash-multiplier {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(25, 29, 36, 0.8);
    font-size: 48px;
    letter-spacing: -1px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.crash-multiplier.crashed {
    color: #ff4757;
    text-shadow: 2px 2px 8px rgba(255, 71, 87, 0.6);
    animation: crashPulse 0.5s ease;
}

.crash-multiplier.growing {
    color: #2ed573;
    text-shadow: 2px 2px 8px rgba(46, 213, 115, 0.6);
    animation: growPulse 1s ease-in-out infinite;
}

.crash-status {
    font-size: 18px;
    font-weight: 500;
    color: #a0a6c1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.crash-status.waiting {
    color: #4986f5;
    text-shadow: 0 0 10px rgba(73, 134, 245, 0.5);
}

.crash-status.crashed {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
    animation: statusFlash 0.8s ease;
}

.crash-bet-prompt {
    font-size: 22px;
    font-weight: bold;
    color: #4986f5;
    text-shadow: 0 0 15px rgba(73, 134, 245, 0.8);
    margin-bottom: 15px;
    letter-spacing: 2px;
    animation: betPromptPulse 1.5s ease-in-out infinite;
    background: rgba(73, 134, 245, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(73, 134, 245, 0.3);
    backdrop-filter: blur(3px);
}

.crash-timer {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: timerPulse 1s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.crash-last-round {
    font-size: 16px;
    font-weight: 500;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    margin-bottom: 10px;
    background: rgba(255, 107, 107, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(3px);
}

.crash-user-win {
    font-size: 28px;
    font-weight: bold;
    color: #2ed573;
    text-shadow: 0 0 20px rgba(46, 213, 115, 0.8);
    margin-top: 15px;
    animation: winCelebration 1s ease-in-out;
    background: rgba(46, 213, 115, 0.15);
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid rgba(46, 213, 115, 0.4);
    backdrop-filter: blur(5px);
}

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

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

@keyframes statusFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

@keyframes betPromptPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(73, 134, 245, 0.6);
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(73, 134, 245, 0.8);
    }
}

@keyframes timerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

@keyframes winCelebration {
    0% { 
        transform: scale(0.5);
        opacity: 0;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.game-transition {
    animation: gameTransition 0.8s ease;
}

@keyframes gameTransition {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Balance update highlight animation - also used globally */
.balance-update-highlight {
    animation: balanceFlash 2s ease-in-out !important;
    color: #2ed573 !important;
    font-weight: bold !important;
}

@keyframes balanceFlash {
    0%, 100% { 
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
    25% { 
        background-color: rgba(46, 213, 115, 0.2);
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(46, 213, 115, 0.6);
    }
    50% { 
        background-color: rgba(46, 213, 115, 0.1);
        transform: scale(1.02);
        box-shadow: 0 0 10px rgba(46, 213, 115, 0.4);
    }
    75% { 
        background-color: rgba(46, 213, 115, 0.05);
        transform: scale(1.01);
        box-shadow: 0 0 5px rgba(46, 213, 115, 0.2);
    }
}

/* Bet placement highlight */
.bet-placed-highlight {
    animation: betPlacedGlow 3s ease-in-out;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.6) !important;
}

@keyframes betPlacedGlow {
    0%, 100% { 
        box-shadow: 0 0 0 rgba(46, 213, 115, 0);
    }
    50% { 
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.8);
    }
}

/* Near cashout effect (simplified to prevent flickering) */
.btn-withdraw.near-cashout {
    background: linear-gradient(45deg, #2ed573, #00ff88) !important;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.6);
    transition: all 0.3s ease;
}

.crash-prefix .game-area {
    padding: 40px 20px 0 5px;
}

.crash-prefix .game-block {
    padding: 0
}

.crash-prefix .game-component.isMobile .game-block {
    border-radius: 6px
}

.hash {
    width: 100%;
    padding: 10px;
}

.bet-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bet-wrap span {
    margin-right: 2px;
}

.bet-wrap.wait {
    color: #facc2c;
}

.bet-wrap.win {
    color: #68d69d;
}

.bet-wrap.lose {
    color: #2563eb;
}

.bet-wrap.win {
    position: relative;
    display: inline-block;
}
.bet-wrap.win svg {
    position: absolute;
    top: calc(50% - 10px);
    left: -26px;
}

.bet-number .bet-wrap>span.win {
    color: #68d69d !important;
}

.bet-number .bet-wrap>span.lose {
    color: #496b96 !important;
}

.graph-svg__runner {
    position: absolute;
    left: calc(15% - 1.5% + 79.3% - 1.5rem);
    top: calc(17% + 74% - .4rem - 2.5rem);
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(../img/begun-v-1.gif);
    background-size: contain;
}