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

body {
    background-color: #0b0f19;
    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, #1e1b4b 0%, #0b0f19 100%);
    position: relative;
}

/* Звездный фон (декор) */
.slot-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.3;
}

/* Навигация */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid #3730a3;
    z-index: 10;
}

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

.back-btn {
    background: #111827;
    border: 1px solid #3730a3;
    color: #a5b4fc;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #3730a3;
    color: #fff;
    border-color: #818cf8;
}

.btn-paytable {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.btn-paytable:hover {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: #facc15;
}

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

.logo span {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.balance-box {
    background: #111827;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #818cf8;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.2);
}

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

/* Игровой автомат */
.slot-viewport {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 2;
}

/* Рамка автомата */
.slot-machine-frame {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid #4f46e5;
    border-radius: 16px;
    padding: 25px;
    box-shadow:
        0 0 60px rgba(79, 70, 229, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

/* Табло */
.slot-banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border: 1px solid #3730a3;
    border-radius: 8px;
    padding: 10px 20px;
}

.slot-banner-text {
    font-size: 14px;
    font-weight: 800;
    color: #818cf8;
    letter-spacing: 2px;
}

.combo-multiplier {
    font-size: 22px;
    font-weight: 900;
    color: #facc15;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.8);
    transition: 0.3s transform;
}

.combo-multiplier.pop {
    transform: scale(1.4);
    color: #fff;
    text-shadow: 0 0 20px #fff;
}

/* 7 Барабанов (7x5) */
.reels-container {
    position: relative;
    display: flex;
    gap: 8px;
    background: #030712;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #3730a3;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 1);
}

/* Размер ячеек уменьшен, чтобы влезла матрица 7x5 */
.reel-window {
    width: 75px;
    height: 375px;
    /* 5 символов по 75px */
    overflow: hidden;
    background: linear-gradient(180deg, #0b0f19 0%, #030712 50%, #0b0f19 100%);
    border-radius: 6px;
    border: 1px solid rgba(129, 140, 248, 0.1);
    position: relative;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.symbol-cell {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    user-select: none;
    transition:
        transform 0.2s,
        opacity 0.3s,
        filter 0.3s;
}

/* Анимации каскада и выигрыша */
.symbol-cell.winning {
    animation: astralWin 0.6s infinite alternate;
    z-index: 10;
}

.symbol-cell.explode {
    transform: scale(0);
    opacity: 0;
    filter: brightness(2);
}

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

    to {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #facc15) brightness(1.3);
    }
}

/* Статистика */
.slot-stats-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #030712;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #3730a3;
}

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

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

.stat-item.highlight strong {
    color: #facc15;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Управление */
.slot-controls {
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid #3730a3;
    padding: 20px;
    z-index: 10;
}

.controls-container {
    max-width: 1000px;
    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: #a5b4fc;
    letter-spacing: 1px;
}

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

.custom-bet-input {
    background: #111827;
    border: 1px solid #3730a3;
    border-radius: 8px;
    color: #fff;
    height: 48px;
    padding: 0 15px;
    width: 110px;
    font-weight: 700;
    outline: none;
    transition: 0.2s;
}

.custom-bet-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

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

.chip-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111827;
    border: 2px dashed #818cf8;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.chip-btn:hover,
.chip-btn.active {
    background: #4f46e5;
    border-style: solid;
    border-color: #facc15;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
    transform: scale(1.08);
}

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

.auto-btn {
    background: #111827;
    border: 1px solid #3730a3;
    color: #a5b4fc;
    border-radius: 8px;
    padding: 0 20px;
    height: 54px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.auto-btn:hover,
.auto-btn.active {
    background: #3730a3;
    color: #fff;
    border-color: #facc15;
}

.spin-btn {
    background: linear-gradient(135deg, #facc15, #ca8a04);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    padding: 0 45px;
    height: 54px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(1);
}

/* Модалка выплат */
.paytable-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paytable-card {
    background: #0f172a;
    border: 1px solid #4f46e5;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
}

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

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

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

.paytable-subtitle {
    color: #a5b4fc;
    font-size: 13px;
    text-align: center;
    margin-bottom: 25px;
}

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

.symbol-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #030712;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #3730a3;
}

.symbol-card.hot {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.05);
}

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

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

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

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

.symbol-cell.rocket-active {
    animation: rocketCharge 0.6s ease-in-out;
    z-index: 10;
    color: #ef4444;
    /* Неоново-красный */
    text-shadow:
        0 0 20px #ef4444,
        0 0 40px #ef4444;
}

@keyframes rocketCharge {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.5) rotate(10deg);
    }

    50% {
        transform: scale(1.3) rotate(-10deg);
    }

    70% {
        transform: scale(1.6) rotate(5deg);
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        filter: brightness(2);
    }
}
