/* ==================== ROULETTE GAME ==================== */

#screenRoulette {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 12px 80px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: #08090d;
    min-height: 100vh;
    min-height: 100dvh;
}

#screenRoulette.active { display: flex !important; }

.roulette-container {
    width: 100%;
    max-width: 426px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.roulette-scene {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.roulette-wheel-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
}

.roulette-wheel-outer {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(254,176,33,0.3));
}

.roulette-wheel-canvas {
    width: 100%;
    height: 100%;
}

.roulette-result-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0,0,0,0.85);
    border-radius: 16px;
    padding: 20px 30px;
    border: 2px solid #FEB021;
}

.roulette-result-num {
    font-size: 48px;
    font-weight: 800;
    text-shadow: 0 0 15px currentColor;
}

.roulette-result-color {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.roulette-result-text {
    color: #FEB021;
    font-size: 18px;
    font-weight: 800;
    margin-top: 8px;
    text-shadow: 0 0 10px rgba(254,176,33,0.5);
}

/* ==================== БЛОК СТАВОК ==================== */

.roulette-bet-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.roulette-bet-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.roulette-bet-type {
    padding: 12px 6px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.roulette-bet-type[data-type="red"] { background: rgba(192,57,43,0.4); }
.roulette-bet-type[data-type="black"] { background: rgba(26,26,26,0.6); }
.roulette-bet-type[data-type="green"] { background: rgba(10,110,10,0.4); }
.roulette-bet-type[data-type="number"] { background: rgba(255,255,255,0.05); }

.roulette-bet-type.active {
    background: linear-gradient(135deg, #f0883e, #f5c842) !important;
    color: #0a0f1a !important;
    border-color: #f5c842 !important;
    box-shadow: 0 0 15px rgba(245,200,66,0.3);
}

.roulette-spin-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border: 2px solid #e74c3c60;
    box-shadow: 0 0 25px rgba(231,76,60,0.4);
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.roulette-spin-btn:active { transform: scale(0.98); }
.roulette-spin-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.roulette-spinning-text {
    color: #FEB021;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding: 14px;
    animation: spin-text-pulse 0.8s ease-in-out infinite;
}

@keyframes spin-text-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== МОДАЛКА ЧИСЕЛ ==================== */

.roulette-number-modal {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(8,9,13,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.roulette-number-modal.show { display: flex; }

.roulette-number-modal-card {
    background: rgba(13,17,31,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    max-width: 340px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.roulette-number-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.roulette-numbers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.roulette-number-item {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.roulette-number-item.red { background: #c0392b; }
.roulette-number-item.black { background: #1a1a1a; }
.roulette-number-item.green { background: #0a6e0a; }
.roulette-number-item:active { transform: scale(0.93); }

.roulette-number-close {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #f0883e, #f5c842, #ffd700);
    color: #0a0f1a;
    border: 1px solid #f5c84260;
    box-shadow: 0 0 20px rgba(240,136,62,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.roulette-number-close:active { transform: scale(0.98); }