* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0f16;
    font-family: 'Inter', sans-serif;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.slot-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle at top center, #2a1b13 0%, #0d0f16 100%);
}

/* === НАВИГАЦИЯ === */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(18, 20, 32, 0.95);
    border-bottom: 1px solid #2a2c47;
    z-index: 10;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: #1a1c2a;
    border: 1px solid #2d2f4a;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #2d2f4a;
    color: #fff;
}

.btn-paytable {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.btn-paytable:hover {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: #f97316;
}

.balance-box {
    background: #1a1c2a;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #f97316;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.balance-box span:first-child {
    color: #52be80;
}

/* === ИГРОВОЙ АППАРАТ === */
.slot-viewport {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slot-machine-frame {
    background: linear-gradient(180deg, #1f1b2e 0%, #12101d 100%);
    border: 2px solid #f97316;
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 0 50px rgba(249, 115, 22, 0.25),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 520px;
}

.slot-banner {
    width: 100%;
    background: #0b0c10;
    border: 1px solid #2d2f4a;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.slot-banner-text {
    font-size: 14px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 3 Барабана */
.reels-container {
    position: relative;
    display: flex;
    gap: 12px;
    background: #000;
    padding: 12px;
    border-radius: 14px;
    border: 2px solid #2d2f4a;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.reel-window {
    width: 120px;
    height: 360px;
    /* Показывает 3 символа высотой по 120px */
    overflow: hidden;
    background: linear-gradient(180deg, #181926 0%, #0d0e17 50%, #181926 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.symbol-cell {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    user-select: none;
    transition: transform 0.2s;
}

.symbol-cell.winning {
    animation: winPulse 0.6s infinite alternate;
}

@keyframes winPulse {
    from {
        transform: scale(0.9);
        filter: drop-shadow(0 0 5px #ffd700);
    }

    to {
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px #ffd700);
    }
}

/* Сетка линий */
.payline-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Нижная стат-панель автомата */
.slot-stats-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #0b0c10;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #2d2f4a;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.stat-item strong {
    font-size: 16px;
    color: #fff;
    margin-top: 2px;
}

.stat-item.highlight strong {
    color: #52be80;
    font-size: 18px;
}

/* === КНОПКИ УПРАВЛЕНИЯ === */
.slot-controls {
    background: #121420;
    border-top: 1px solid #2d2f4a;
    padding: 20px;
    z-index: 10;
}

.controls-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bet-selector-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.chips-row {
    display: flex;
    gap: 8px;
}

.chip-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1c2a;
    border: 2px dashed #f97316;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover,
.chip-btn.active {
    background: #f97316;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
    border-style: solid;
}

.action-btns-group {
    display: flex;
    gap: 12px;
}

.auto-btn {
    background: #1a1c2a;
    border: 1px solid #2d2f4a;
    color: #94a3b8;
    border-radius: 12px;
    padding: 0 20px;
    height: 54px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.auto-btn:hover,
.auto-btn.active {
    background: #2d2f4a;
    color: #ffd700;
    border-color: #ffd700;
}

.spin-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    padding: 0 45px;
    height: 54px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.6);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === МОДАЛКА ВЫПЛАТ === */
.paytable-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 22, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paytable-card {
    background: #1a1c2a;
    border: 1px solid #f97316;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.close-paytable-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.close-paytable-btn:hover {
    color: #ff4d4d;
}

.paytable-title {
    color: #f97316;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.paytable-subtitle {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.symbol-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #121420;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2d2f4a;
}

.symbol-card.hot {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.symbol-ico {
    font-size: 32px;
}

.symbol-info {
    display: flex;
    flex-direction: column;
}

.symbol-info strong {
    font-size: 12px;
    color: #fff;
}

.symbol-info .mult {
    color: #ffd700;
    font-weight: 800;
    font-size: 14px;
}

.lines-info h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 8px;
}

.lines-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
}

/* === ДЕКОР ПО БОКАМ (КОЛОННЫ) === */
.slot-viewport {
    gap: 50px;
    /* Отступ между автоматом и колоннами */
}

.decor-pillar {
    width: 60px;
    height: 60%;
    max-height: 400px;
    background: linear-gradient(
        180deg,
        rgba(249, 115, 22, 0.02) 0%,
        rgba(249, 115, 22, 0.1) 50%,
        rgba(249, 115, 22, 0.02) 100%
    );
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.decor-pillar::after {
    content: '777';
    color: rgba(249, 115, 22, 0.2);
    font-size: 32px;
    font-weight: 900;
    transform: rotate(-90deg);
    letter-spacing: 10px;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

/* === ПОЛЕ ВВОДА СТАВКИ === */
.custom-bet-input {
    background: #1a1c2a;
    border: 1px solid #373a5e;
    border-radius: 8px;
    color: #fff;
    height: 48px;
    padding: 0 15px;
    width: 100px;
    font-weight: 700;
    outline: none;
    transition: 0.2s;
}

.custom-bet-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.custom-bet-input::-webkit-inner-spin-button {
    display: none;
}
