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

body {
    background-color: #05020a;
    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, #1a0b2e 0%, #05020a 100%);
}

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

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

.back-btn {
    background: #150a21;
    border: 1px solid #3d246c;
    color: #a58fe9;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #2d1b4e;
    color: #fff;
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.btn-paytable {
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.3);
}

.btn-paytable:hover {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
}

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

.logo span {
    color: #ff007a;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
}

.balance-box {
    background: #150a21;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #00e5ff;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

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

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

/* Кибер-колонны */
.decor-pillar.cyber-pillar {
    width: 60px;
    height: 80%;
    max-height: 500px;
    background: linear-gradient(
        180deg,
        rgba(0, 229, 255, 0.05) 0%,
        rgba(255, 0, 122, 0.1) 50%,
        rgba(0, 229, 255, 0.05) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    box-shadow:
        0 0 25px rgba(255, 0, 122, 0.15),
        inset 0 0 10px rgba(0, 229, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.decor-pillar.cyber-pillar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(0, 229, 255, 0.1) 10px,
        rgba(0, 229, 255, 0.1) 20px
    );
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(50%);
    }
}

.decor-pillar.cyber-pillar::after {
    content: 'SYS_ON';
    color: rgba(255, 0, 122, 0.6);
    font-size: 24px;
    font-weight: 900;
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
    z-index: 2;
}

/* Рамка автомата */
.slot-machine-frame {
    background: linear-gradient(180deg, #10081c 0%, #080310 100%);
    border: 2px solid #3d246c;
    border-radius: 16px;
    padding: 25px;
    box-shadow:
        0 0 50px rgba(0, 229, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 820px;
}

/* Табло Джекпота */
.jackpot-banner {
    width: 100%;
    background: radial-gradient(ellipse at center, #2d0b2e 0%, #0a0212 100%);
    border: 2px solid #ff007a;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.3);
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    from {
        box-shadow: 0 0 20px rgba(255, 0, 122, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(255, 0, 122, 0.6);
        border-color: #ff3399;
    }
}

.jackpot-label {
    font-size: 12px;
    font-weight: 900;
    color: #00e5ff;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.jackpot-amount {
    font-size: 32px;
    font-weight: 900;
    color: #ff007a;
    text-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
}

.slot-banner {
    width: 100%;
    background: #05020a;
    border: 1px solid #3d246c;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

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

/* 5 Барабанов */
.reels-container {
    position: relative;
    display: flex;
    gap: 10px;
    background: #000;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #2d1b4e;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 1);
}

.reel-window {
    width: 110px;
    height: 330px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0514 0%, #030108 50%, #0a0514 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    position: relative;
}

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

.symbol-cell {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    user-select: none;
    transition: 0.2s;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.2));
}

.symbol-cell.winning {
    animation: cyberWin 0.5s infinite alternate;
    z-index: 10;
}

.symbol-cell.jackpot-win {
    animation: jackpotFlash 0.3s infinite alternate;
    z-index: 15;
}

@keyframes cyberWin {
    from {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px #00e5ff);
    }

    to {
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px #00e5ff) brightness(1.3);
    }
}

@keyframes jackpotFlash {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 10px #ff007a);
    }

    to {
        transform: scale(1.3);
        filter: drop-shadow(0 0 50px #ff007a) brightness(1.5);
    }
}

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

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

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

.stat-item.highlight strong {
    color: #00e5ff;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Управление */
.slot-controls {
    background: #0a0514;
    border-top: 1px solid #2d1b4e;
    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: #a58fe9;
    letter-spacing: 1px;
}

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

.custom-bet-input {
    background: #150a21;
    border: 1px solid #3d246c;
    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: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

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

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

.chip-btn:hover,
.chip-btn.active {
    background: rgba(0, 229, 255, 0.1);
    border-style: solid;
    border-color: #ff007a;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.4);
    color: #ff007a;
    transform: scale(1.08);
}

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

.auto-btn {
    background: #150a21;
    border: 1px solid #3d246c;
    color: #a58fe9;
    border-radius: 12px;
    padding: 0 20px;
    height: 54px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.auto-btn:hover,
.auto-btn.active {
    background: #2d1b4e;
    color: #00e5ff;
    border-color: #00e5ff;
}

.spin-btn {
    background: linear-gradient(135deg, #00e5ff, #0088cc);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    padding: 0 45px;
    height: 54px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.7);
}

.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(5, 2, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paytable-card {
    background: #10081c;
    border: 1px solid #00e5ff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2);
}

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

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

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

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

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

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

.symbol-card.jackpot-card {
    border-color: #ff007a;
    background: rgba(255, 0, 122, 0.05);
}

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

.symbol-ico {
    font-size: 32px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

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

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

.symbol-info .mult {
    color: #00e5ff;
    font-weight: 800;
    font-size: 13px;
}

.jackpot-card .mult {
    color: #ff007a;
}
