/* Game Container */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Game Switcher */
.game-switcher {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 8px;
}

.game-switcher-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Onest', sans-serif;
}

.game-switcher-item:hover {
    color: var(--text-primary);
}

.game-switcher-item.active {
    background-color: #10141e;
    color: #0558ff;
}

.game-switcher-item.active .game-switcher-icon {
    color: #0558ff;
}

.game-switcher-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    color: var(--text-secondary);
}

.game-switcher-item.active .game-switcher-icon svg {
    stroke: #0558ff;
}

.game-switcher-item:not(.active) .game-switcher-icon svg {
    stroke: var(--text-secondary);
}

.game-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-header h1 svg {
    width: 32px;
    height: 32px;
    color: var(--accent-yellow);
    flex-shrink: 0;
}

/* Иконка mines использует fill, а не stroke */
.game-header h1 svg[fill="currentColor"] path {
    fill: var(--accent-yellow) !important;
    stroke: none !important;
}

/* Неактивный режим игры */
.game-container-inactive {
    opacity: 0.5;
}

.game-inactive-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.game-inactive-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.game-balance {
    font-size: 18px;
    color: var(--text-secondary);
}

.game-balance strong {
    color: var(--accent-yellow);
}

/* Dice Game */
.dice-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dice-controls {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dice-control-box {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.dice-control-box .dice-prediction-buttons {
    margin-top: 15px;
}

.dice-hash-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #131823;
    border: 1px solid #191f2c;
    border-radius: 8px;
    margin-top: 10px;
}

.dice-hash-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.dice-hash-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.dice-hash-value {
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
    word-break: break-all;
    flex: 1;
}

.dice-hash-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background-color: transparent;
    border: 1px solid #161b27;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.dice-hash-copy-btn:hover {
    background-color: #181e2a;
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.dice-box-label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.dice-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dice-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Onest', sans-serif;
    transition: border-color 0.2s;
}

.dice-input::-webkit-outer-spin-button,
.dice-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dice-input[type=number] {
    -moz-appearance: textfield;
}

.dice-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.dice-modifier-buttons {
    display: flex;
    gap: 8px;
}

.dice-mod-btn {
    padding: 10px 16px;
    background-color: #181e2a;
    border: 1px solid #202734;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Onest', sans-serif;
}

.dice-mod-btn:hover {
    background-color: #181e2a;
    color: #0558ff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dice-result-area {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dice-result-display {
    width: 100%;
    aspect-ratio: 1;
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s;
    overflow: hidden;
}

.dice-result-display::before {
    content: 'winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny winny';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    transform: rotate(-25deg);
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: rgba(16, 20, 30, 0.05);
    white-space: pre;
    word-spacing: 50px;
    letter-spacing: 35px;
    line-height: 100px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
    text-align: left;
    overflow: hidden;
}

.dice-result-display::after {
    content: 'WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY WINNY';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    transform: rotate(20deg);
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgba(16, 20, 30, 0.05);
    white-space: pre;
    word-spacing: 40px;
    letter-spacing: 25px;
    line-height: 80px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
    text-align: left;
    margin-top: 60px;
    overflow: hidden;
}

.dice-result-display.win {
    background-color: rgba(40, 167, 69, 0.2);
}

.dice-result-display.lose {
    background-color: rgba(220, 53, 69, 0.2);
}

.dice-result-icon {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s;
    pointer-events: none;
}

.dice-result-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.dice-result-icon.win {
    opacity: 1;
    color: var(--accent-green);
}

.dice-result-icon.lose {
    opacity: 1;
    color: #dc3545;
}

.dice-result-number {
    font-size: 72px;
    font-weight: 700;
    color: #0558ff;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.dice-result-number.win {
    color: var(--accent-green);
    animation: pulse 0.5s;
}

.dice-result-number.lose {
    color: #dc3545;
    animation: pulse 0.5s;
}

.dice-ranges {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
    color: var(--text-secondary);
}

.dice-range-left {
    flex: 1;
    text-align: left;
}

.dice-range-right {
    flex: 1;
    text-align: right;
}

.dice-prediction-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.dice-pred-btn {
    flex: 1;
    padding: 15px 20px;
    background-color: #181e2a;
    border: 1px solid #202734;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Onest', sans-serif;
}

.dice-pred-btn:hover {
    background-color: #181e2a;
    color: #0558ff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dice-pred-btn.active {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
}

.dice-pred-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dice-mod-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-label {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game History */
.game-history {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
}

.game-history h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #131823;
    border: 1px solid #191f2c;
    border-radius: 8px;
    font-size: 16px;
}

.history-result {
    font-weight: 600;
}

.history-result.win {
    color: var(--accent-green);
}

.history-result.lose {
    color: #dc3545;
}

/* Mines Game */
.mines-game {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.mines-controls {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
    transition: opacity 0.3s ease, filter 0.3s ease;
    position: relative;
}

.mines-controls.game-active {
    pointer-events: none;
}

.mines-controls.game-active > *:not(#cashoutBtn) {
    opacity: 0.65;
    filter: brightness(0.8);
    pointer-events: none;
}

.mines-controls.game-active #cashoutBtn {
    opacity: 1 !important;
    filter: brightness(1) !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    background-color: var(--accent-yellow) !important;
    color: var(--bg-primary) !important;
    transform: none !important;
    visibility: visible !important;
}

.mines-controls .control-group {
    margin-bottom: 10px;
}

.mines-controls .control-group:last-of-type {
    margin-bottom: 0;
}

.mines-controls .control-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.mines-controls .btn-roll {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    display: block;
}

.mines-grid {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    aspect-ratio: 1;
}

.mine-tile {
    aspect-ratio: 1;
    background-color: #10141e;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    font-weight: 700;
}

.mines-grid:not(.game-active) .mine-tile:hover {
    /* Отключаем hover, если игра не активна */
    background-color: #10141e;
    border-color: var(--border-color);
    cursor: default;
}

.mines-grid.game-active .mine-tile:hover:not(.opened):not(.mine) {
    background-color: #10141e;
    border-color: var(--accent-yellow);
}

.mine-tile.opened {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    cursor: default;
}

.mine-tile.mine {
    background-color: #dc3545;
    border-color: #dc3545;
    cursor: default;
}

.mine-tile.mine svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
}

.mine-tile.mine svg line {
    stroke: #ffffff !important;
}

/* Coinflip Game */
.coinflip-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.coinflip-controls {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 30px;
    transition: opacity 0.3s ease, filter 0.3s ease;
    position: relative;
}

.coinflip-controls.game-active {
    pointer-events: none;
}

.coinflip-controls.game-active > *:not(#flipBtn) {
    opacity: 0.65;
    filter: brightness(0.8);
    pointer-events: none;
}

.coinflip-controls.game-active #flipBtn {
    opacity: 1 !important;
    filter: brightness(1) !important;
    pointer-events: auto !important;
}

.coinflip-controls .control-group {
    margin-bottom: 20px;
}

.coinflip-controls .control-group:last-of-type {
    margin-bottom: 0;
}

.coinflip-controls .control-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.coinflip-controls .control-group.coinflip-side-select {
    margin-top: 30px;
}

.coinflip-result {
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-display {
    text-align: center;
    width: 100%;
}

.coin-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    height: 200px;
    perspective: 1000px;
}

.coin {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    transform: translateY(0) rotateY(0deg);
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.coin-tails {
    transform: rotateY(180deg);
}

/* Анимация подбрасывания и падения монетки (1 секунда) */
.coin.flipping.flipping-heads {
    animation: coinFlipHeads 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin.flipping.flipping-tails {
    animation: coinFlipTails 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes coinFlipHeads {
    0% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    15% {
        transform: translateY(-120px) rotateY(270deg) scale(1.1);
    }
    30% {
        transform: translateY(-150px) rotateY(540deg) scale(1.15);
    }
    50% {
        transform: translateY(-160px) rotateY(900deg) scale(1.2);
    }
    70% {
        transform: translateY(-100px) rotateY(1260deg) scale(1.1);
    }
    85% {
        transform: translateY(-30px) rotateY(1530deg) scale(1.05);
    }
    100% {
        transform: translateY(0) rotateY(1800deg) scale(1);
    }
}

@keyframes coinFlipTails {
    0% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    15% {
        transform: translateY(-120px) rotateY(270deg) scale(1.1);
    }
    30% {
        transform: translateY(-150px) rotateY(540deg) scale(1.15);
    }
    50% {
        transform: translateY(-160px) rotateY(900deg) scale(1.2);
    }
    70% {
        transform: translateY(-100px) rotateY(1260deg) scale(1.1);
    }
    85% {
        transform: translateY(-30px) rotateY(1530deg) scale(1.05);
    }
    100% {
        transform: translateY(0) rotateY(1980deg) scale(1);
    }
}

/* Результат - показываем нужную сторону */
.coin.heads-result {
    transform: translateY(0) rotateY(0deg);
}

.coin.tails-result {
    transform: translateY(0) rotateY(180deg);
}

.side-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.side-btn {
    flex: 1;
    padding: 24px 20px;
    background: linear-gradient(135deg, #10141e 0%, #10141e 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Onest', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}


.side-btn:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.side-btn.active {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #0448e6 100%);
    color: var(--bg-primary);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.side-letter {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

.side-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    color: inherit;
}

.coinflip-flip-btn {
    width: 100%;
    margin-top: 20px;
}

.result-label {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Анимация мигания для начального текста */
.result-label {
    opacity: 0.6;
    animation: slowBlink 3s ease-in-out infinite;
}

/* Отключаем мигание когда результат активен */
.result-label.result-active {
    opacity: 1;
    animation: none;
}

@keyframes slowBlink {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Quick Bet Buttons */
.quick-bet {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.quick-bet-btn {
    flex: 1;
    padding: 10px 16px;
    background-color: #181e2a;
    border: 1px solid #202734;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Onest', sans-serif;
}

.quick-bet-btn:hover {
    background-color: #181e2a;
    color: #0558ff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Mines Count Selector */
.mines-count-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mines-count-btn {
    padding: 8px 12px;
    background-color: #181e2a;
    border: 1px solid #202734;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Onest', sans-serif;
    min-width: 40px;
}

.mines-count-btn:hover {
    background-color: #181e2a;
    color: var(--text-primary);
    border-color: #202734;
}

.mines-count-btn.active {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
    border-color: var(--accent-yellow);
}

/* Responsive */
@media (max-width: 1024px) {
    .dice-game,
    .mines-game,
    .coinflip-game {
        grid-template-columns: 1fr;
    }
    
    .mines-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .game-container {
        padding: 0;
    }
    
    .game-switcher {
        padding: 6px;
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .game-switcher-item {
        padding: 10px 12px;
        font-size: 16px;
        gap: 6px;
    }
    
    .game-switcher-icon {
        width: 18px;
        height: 18px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .game-header h1 {
        font-size: 24px;
    }
    
    .game-header h1 svg {
        width: 24px;
        height: 24px;
    }
    
    .game-balance {
        font-size: 16px;
    }
    
    .dice-game,
    .mines-game,
    .coinflip-game {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .dice-controls,
    .mines-controls,
    .coinflip-controls {
        padding: 15px;
    }
    
    .dice-input-group {
        flex-wrap: wrap;
    }
    
    .dice-modifier-buttons {
        flex-wrap: wrap;
    }
    
    .dice-mod-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .dice-result-area,
    .mines-grid-container,
    .coinflip-result-area {
        padding: 20px;
    }
    
    .mines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .mines-tile {
        aspect-ratio: 1;
        font-size: 20px;
    }
    
    .dice-number {
        font-size: 48px;
    }
    
    .coin {
        font-size: 80px;
    }
    
    .dice-prediction-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .dice-pred-btn {
        width: 100%;
        padding: 12px;
    }
    
    .coinflip-sides {
        flex-direction: column;
        gap: 15px;
    }
    
    .side-btn {
        width: 100%;
        padding: 20px;
    }
    
    .game-history {
        font-size: 16px;
    }
    
    .history-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .game-switcher {
        padding: 4px;
        gap: 4px;
    }
    
    .game-switcher-item {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .game-switcher-icon {
        width: 16px;
        height: 16px;
    }
    
    .game-header h1 {
        font-size: 20px;
    }
    
    .game-header h1 svg {
        width: 20px;
        height: 20px;
    }
    
    .game-balance {
        font-size: 16px;
    }
    
    .dice-controls,
    .mines-controls,
    .coinflip-controls {
        padding: 12px;
    }
    
    .dice-input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .dice-mod-btn {
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .dice-hash-block {
        padding: 10px 12px;
    }
    
    .dice-hash-label {
        font-size: 14px;
    }
    
    .dice-hash-value {
        font-size: 12px;
    }
    
    .dice-hash-copy-btn {
        width: 28px;
        height: 28px;
    }
    
    .dice-result-area,
    .mines-grid-container,
    .coinflip-result-area {
        padding: 15px;
    }
    
    .mines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .mines-tile {
        font-size: 18px;
    }
    
    .dice-number {
        font-size: 40px;
    }
    
    .coin {
        font-size: 60px;
    }
    
    .side-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .game-history {
        font-size: 16px;
    }
    
    .history-item {
        padding: 8px;
    }
    
    .multiplier-info {
        padding: 10px 12px;
        font-size: 16px;
    }
}

/* Иконка валюты в играх */
.multiplier-info strong svg,
.history-result svg,
.game-balance svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Multiplier and Win Amount Animations */
.multiplier-value,
.win-amount-value {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 18px;
}

.multiplier-value {
    color: var(--accent-yellow);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.win-amount-value {
    color: var(--text-primary);
    font-weight: 700;
    min-width: 100px;
    text-align: right;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.multiplier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 8px;
    margin-bottom: 10px;
}

.multiplier-info span {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Плавная анимация появления следующего множителя */
#nextMultiplierInfo {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    justify-content: center;
}

#nextMultiplierInfo.show {
    opacity: 1;
    transform: translateY(0);
}

#nextMultiplierInfo span {
    color: var(--text-secondary);
    font-size: 16px;
}

#nextMultiplierInfo span strong {
    color: var(--accent-yellow);
    font-weight: 700;
}

.mines-controls .multiplier-info:last-child {
    margin-bottom: 0;
}


/* Custom Select for Mines Count */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'Onest', sans-serif;
}

.custom-select-trigger:hover {
    background-color: #10141e;
    border-color: #161b27;
}

.custom-select-trigger svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--accent-yellow);
    background-color: #10141e;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #10141e;
    border: 1px solid #161b27;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Onest', sans-serif;
    border-bottom: 1px solid #161b27;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #10141e;
    color: var(--accent-yellow);
}

.custom-select-option.selected {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Стилизация скроллбара для выпадающего меню */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #10141e;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #161b27;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #1f2329;
}
