* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/casino_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif;
    padding: 20px;
}

.casino-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 45px;
    padding: 25px 35px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

/* Заголовок как в WPF */
.header h1 {
    text-align: center;
    color: #ffd700;
    font-size: 38px;
    text-shadow: 4px 4px 0 #8b0000;
    margin-bottom: 25px;
    letter-spacing: 4px;
    word-break: keep-all;
}

/* Верхняя панель */
.top-panel {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.balance-box, .bet-box, .win-box {
    background: linear-gradient(145deg, #1e1e2f, #14141f);
    padding: 8px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #ffd700;
    box-shadow: 0 6px 0 #0a0a12;
    min-width: 140px;
}



/* Подсветка выигрышной строки */
.slot-row-highlight {
    animation: winGlow 0.5s ease-in-out 3;
    box-shadow: 0 0 20px 5px gold !important;
    border: 3px solid gold !important;
    transform: scale(1.02);
    transition: all 0.1s ease;
}

@keyframes winGlow {
    0% { box-shadow: 0 0 0 0 gold; background: #fffef7; }
    50% { box-shadow: 0 0 30px 15px gold; background: #fff8c4; }
    100% { box-shadow: 0 0 0 0 gold; background: #fffef7; }
}
.label {
    font-size: 12px;
    color: #ffd700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.value {
    font-size: 34px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.win-value {
    color: #00ffaa !important;
    text-shadow: 0 0 5px #00ffaa;
}

.currency {
    font-size: 16px;
    color: #ffd700;
    margin-left: 6px;
    display: inline-block;
}

/* Блок управления ставкой */
.bet-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.bet-btn {
    background: linear-gradient(145deg, #ff7b2c, #d95c00);
    border: none;
    color: white;
    font-size: 22px;
    font-weight: bold;
    width: 80px;
    padding: 8px 0;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.07s linear;
    box-shadow: 0 5px 0 #853300;
    font-family: inherit;
}

.bet-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #853300;
}

.bet-label {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Рамка вокруг барабанов */
.reels-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 28px;
    padding: 20px;
    border: 3px solid #ffd700;
    margin-bottom: 25px;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    aspect-ratio: 1 / 1;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.slot-cell {
    background: white;
    border-radius: 18px;
    border: 2px solid #2c2c3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.08s linear;
    box-shadow: 0 8px 0 #aaa;
    background: #fffef7;
}

.slot-cell img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.slot-cell.win-highlight {
    border: 3px solid #ffd700;
    box-shadow: 0 0 0 3px #ffd700, 0 0 25px #ffd700;
    background: #fff4cc;
    transform: scale(1.01);
}

/* Кнопки */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.spin-btn, .bonus-btn {
    font-size: 26px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.07s linear;
    font-family: inherit;
}

.spin-btn {
    background: linear-gradient(145deg, #f5b81b, #e09d00);
    color: #2a2a0a;
    box-shadow: 0 7px 0 #b46f00;
    width: 240px;
}

.bonus-btn {
    background: linear-gradient(145deg, #9f4dff, #7c2be0);
    color: white;
    box-shadow: 0 7px 0 #4c1a99;
    font-size: 20px;
    width: 200px;
}

.spin-btn:active, .bonus-btn:active {
    transform: translateY(4px);
    box-shadow: 0 3px 0;
}

/* Панель множителей (как в WPF справа) */
.multipliers-panel {
    position: absolute;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 20px;
    border: 2px solid #ffd700;
    width: 180px;
    text-align: center;
}

.mult-title {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #ffd700;
    display: inline-block;
    padding-bottom: 5px;
}

.mult-list div {
    color: white;
    font-size: 14px;
    margin: 8px 0;
    font-family: monospace;
    font-weight: bold;
}

.mult-list div:last-child {
    color: #ffaa44;
}

/* Всплывающий выигрыш */
.floating-win {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, gold, #ffaa00);
    color: #2a2a0a;
    font-size: 56px;
    font-weight: 900;
    padding: 22px 48px;
    border-radius: 80px;
    white-space: nowrap;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 80px gold;
    font-family: 'Arial Black', sans-serif;
    border: 3px solid white;
    letter-spacing: 3px;
}

/* Бонусный оверлей как в WPF */
.bonus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.bonus-content {
    background: linear-gradient(145deg, #f06000, #c03a00);
    padding: 40px 60px;
    border-radius: 60px;
    text-align: center;
    border: 4px solid #ffd700;
    animation: pulse 0.8s infinite;
}

.bonus-title {
    font-size: 52px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 20px;
}

.bonus-spins, .bonus-winnings {
    font-size: 32px;
    color: white;
    margin: 15px 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 #ffd700; }
    70% { box-shadow: 0 0 0 25px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@media (max-width: 1000px) {
    .multipliers-panel {
        display: none;
    }
    .casino-container {
        margin: 10px;
        padding: 20px;
    }
}