/* ==================== BANDIT GAME ==================== */

#screenBandit {
    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: #000;
    min-height: 100vh;
    min-height: 100dvh;
}

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

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

/* Убираем весь synthwave фон */
.bandit-stars,
.bandit-sun-wrap,
.bandit-horizon,
.bandit-mountains,
.bandit-grid-wrap,
.bandit-scanlines {
    display: none;
}

/* ==================== КОНТЕНТ ==================== */

.bandit-scene {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 0;
    flex: 1;
}

/* ==================== КОРПУС СЛОТА ==================== */

.bandit-machine {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(180deg, 
        rgba(186,121,10,0.92) 0%, 
        rgba(254,176,33,0.92) 15%, 
        rgba(255,215,0,0.9) 30%, 
        rgba(254,176,33,0.92) 50%, 
        rgba(255,215,0,0.9) 70%, 
        rgba(254,176,33,0.92) 85%, 
        rgba(186,121,10,0.92) 100%);
    border-radius: 24px;
    padding: 20px 16px 16px 16px;
    border: 3px solid #BA790A;
    box-shadow: 0 0 0 2px #FEB021, 0 0 0 5px #BA790A, 0 0 30px rgba(254,176,33,0.4), inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -4px 0 rgba(0,0,0,0.2);
    flex-shrink: 0;
    margin-top: auto;
}

.bandit-top-arch {
    background: linear-gradient(180deg, #FFD700, #FEB021);
    border-radius: 16px 16px 0 0;
    padding: 10px 16px;
    margin: -20px -16px 12px -16px;
    border: 2px solid #BA790A;
    border-bottom: 2px solid #F4701F;
    text-align: center;
}

.bandit-top-light {
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 6px;
    box-shadow: 0 0 16px #FFD700, 0 0 32px #FEB021;
}

.bandit-top-title {
    color: #1a0a00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.bandit-screen-frame {
    background: #1a0a00;
    border-radius: 12px;
    padding: 12px;
    border: 2px solid #BA790A;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 0 0 1px #FEB021, 0 0 12px rgba(254,176,33,0.3);
    position: relative;
    margin-bottom: 14px;
}

.bandit-reels-container { display: flex; gap: 8px; justify-content: center; }

.bandit-reel {
    flex: 1;
    max-width: 90px; height: 90px;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    border: 2px solid #BA790A;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
}

.bandit-reel-window { width: 100%; height: 100%; overflow: hidden; position: relative; }
.bandit-reel-strip { display: flex; flex-direction: column; }

.bandit-reel-symbol {
    width: 100%; height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bandit-reel-symbol img {
    width: 56px; height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.6));
}

.bandit-winline {
    position: absolute;
    top: 50%; left: 12px; right: 12px;
    height: 3px;
    background: #FFD700;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 10px #FFD700;
    border-radius: 2px;
}

.bandit-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 10;
}

.bandit-result-text {
    color: #FFD700;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #FFD700;
    text-align: center;
    padding: 0 8px;
}

.bandit-bottom-panel {
    background: linear-gradient(180deg, #FEB021, #BA790A);
    border-radius: 0 0 12px 12px;
    padding: 8px;
    margin: 0 -4px -4px -4px;
    border: 2px solid #BA790A;
    border-top: 2px solid #F4701F;
}

.bandit-lights { display: flex; justify-content: center; gap: 16px; margin-bottom: 4px; }
.bandit-light-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.3); }
.bandit-light-dot.active { background: #fff; box-shadow: 0 0 10px #FFD700; }

.bandit-spin-btn-wrapper { width: 100%; }

.bandit-spin-decor {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 3px solid rgba(255,215,0,0.3);
    background: linear-gradient(180deg, rgba(254,176,33,0.15), rgba(244,112,31,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(254,176,33,0.1);
}

.bandit-spin-decor-text {
    color: rgba(255,215,0,0.4);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,215,0,0.2);
}

.bandit-reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 25%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.3) 75%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 3;
    pointer-events: none;
    border-radius: 6px;
}

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

.bandit-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: auto;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bandit-spin-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    border: 3px solid #FFD700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #FEB021, #F4701F);
    color: #1a0a00;
    box-shadow: 0 0 20px rgba(254,176,33,0.5);
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.bandit-spin-btn:active { transform: scale(0.97); }
.bandit-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bandit-autospin-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid rgba(254,176,33,0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(254,176,33,0.1);
    color: #FEB021;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bandit-autospin-btn:active { background: rgba(254,176,33,0.2); }
.bandit-autospin-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Модалка автоспина */
.autospin-modal-overlay {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 450px; height: 100vh;
    background: rgba(8,9,13,0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.autospin-modal-card {
    background: #0d111f;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 280px;
    width: 90%;
    border: 1px solid #1e2a45;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.autospin-modal-title { color: #fff; font-size: 16px; font-weight: 700; }

.autospin-modal-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.autospin-total { color: #FEB021; font-size: 14px; font-weight: 600; }

.autospin-start-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FEB021, #F4701F);
    color: #1a0a00;
    border: 1px solid #FEB02160;
    box-shadow: 0 0 25px rgba(254,176,33,0.4);
    transition: all 0.25s;
}

.autospin-start-btn:active { transform: scale(0.98); }

.autospin-cancel-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #a0b4e0;
}