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

body {
    background-color: #0b0805;
    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, #3d2c14 0%, #0b0805 100%);
}

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

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

.back-btn {
    background: #1a130c;
    border: 1px solid #4a361a;
    color: #d4a373;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #3d2c14;
    color: #fff;
}

.btn-paytable {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-paytable:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

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

.logo span {
    color: #ffd700;
}

.balance-box {
    background: #1a130c;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #ffd700;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 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.egypt-pillar {
    width: 70px;
    height: 75%;
    max-height: 480px;
    background: linear-gradient(
        180deg,
        rgba(255, 215, 0, 0.02) 0%,
        rgba(255, 215, 0, 0.08) 50%,
        rgba(255, 215, 0, 0.02) 100%
    );
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.decor-pillar.egypt-pillar::after {
    content: '𓋹 𓍹 𓋹 𓍹';
    color: rgba(255, 215, 0, 0.3);
    font-size: 28px;
    font-weight: 900;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 15px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Рамка автомата */
.slot-machine-frame {
    background: linear-gradient(180deg, #1c150c 0%, #0d0a05 100%);
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 25px;
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    /* Слот шире, так как 5 барабанов */
}

.slot-banner {
    width: 100%;
    background: #000;
    border: 1px solid #4a361a;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.slot-banner-text {
    font-size: 15px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 2px;
}

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

.reel-window {
    width: 110px;
    height: 330px;
    /* 3 символа по 110px */
    overflow: hidden;
    background: linear-gradient(180deg, #120e09 0%, #080603 50%, #120e09 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 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: 60px;
    user-select: none;
    transition: 0.2s;
}

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

.symbol-cell.scatter-win {
    animation: scatterPulse 0.4s infinite alternate;
}

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

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

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

    to {
        transform: scale(1.2);
        filter: drop-shadow(0 0 30px #ff4d4d);
    }
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #d4a373;
    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: #120e09;
    border-top: 1px solid #4a361a;
    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: #d4a373;
    letter-spacing: 1px;
}

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

.custom-bet-input {
    background: #1a130c;
    border: 1px solid #4a361a;
    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: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

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

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

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

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

.auto-btn {
    background: #1a130c;
    border: 1px solid #4a361a;
    color: #d4a373;
    border-radius: 12px;
    padding: 0 20px;
    height: 54px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

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

.spin-btn {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    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(255, 215, 0, 0.4);
    text-transform: uppercase;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 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(8, 5, 2, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

.paytable-subtitle {
    color: #d4a373;
    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: #000;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #4a361a;
}

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

.symbol-card.scatter-card {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
}

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

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

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

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