@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

* {
    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: 'Russo One', 'Arial Black', sans-serif;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.casino-container {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(12, 35, 18, 0.95), rgba(5, 15, 8, 0.98));
    border-radius: 45px;
    padding: 28px 38px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 3px #2e7d32, 0 0 0 6px #0a1a10, 0 0 70px rgba(46, 125, 50, 0.5), inset 0 0 40px rgba(0, 255, 100, 0.1);
}

.casino-container::before, .casino-container::after {
    content: '🌿';
    position: absolute;
    color: #4caf50;
    font-size: 26px;
    text-shadow: 0 0 15px #4caf50;
    animation: twinkle 2s infinite;
}
.casino-container::before { top: 12px; left: 22px; }
.casino-container::after  { top: 12px; right: 22px; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    text-align: center;
    font-family: 'Russo One', sans-serif;
    font-size: 36px;
    letter-spacing: 6px;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #a8ff78 0%, #78ffd6 40%, #2e7d32 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(120, 255, 214, 0.7));
}

.top-panel { display: flex; justify-content: center; gap: 25px; margin-bottom: 22px; flex-wrap: wrap; }

.balance-box, .bet-box, .win-box {
    background: linear-gradient(145deg, #0a1a10, #051008);
    padding: 10px 25px;
    border-radius: 18px;
    text-align: center;
    border: 2px solid #2e7d32;
    box-shadow: 0 6px 0 #020503, inset 0 0 15px rgba(76, 175, 80, 0.2);
    min-width: 140px;
}

.label { font-size: 12px; color: #ffd700; letter-spacing: 3px; margin-bottom: 4px; }
.value { font-size: 30px; font-weight: bold; color: white; line-height: 1; }
.win-value { color: #00ffaa !important; }

.bet-controls { display: flex; justify-content: center; align-items: center; gap: 25px; margin-bottom: 25px; }
.bet-btn { background: linear-gradient(145deg, #4caf50, #2e7d32); border: 2px solid #ffd700; color: white; font-size: 20px; font-weight: bold; width: 80px; padding: 10px 0; border-radius: 40px; cursor: pointer; box-shadow: 0 5px 0 #1b5e20; }
.bet-label { color: #ffd700; font-size: 18px; letter-spacing: 3px; }

.reels-wrapper {
    background: radial-gradient(circle at 50% 50%, rgba(20, 70, 40, 0.6), rgba(0, 0, 0, 0.9)), linear-gradient(145deg, #0a1a10, #1b5e20);
    border-radius: 28px;
    padding: 18px;
    border: 3px solid #2e7d32;
    box-shadow: 0 0 45px rgba(46, 125, 50, 0.45);
    margin-bottom: 25px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.reels-grid { display: grid; gap: 8px; width: 100%; }

.slot-cell {
    background: radial-gradient(circle at 50% 30%, rgba(40, 100, 60, 0.5), rgba(5, 15, 8, 0.96) 70%), linear-gradient(145deg, #0a1a10, #051008);
    border-radius: 50%;
    border: 2px solid rgba(46, 125, 50, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.slot-cell img { width: 100%; height: 100%; object-fit: cover; }
.slot-row-highlight { border: 2px solid #ffd700 !important; box-shadow: 0 0 20px 4px #ffd700, 0 0 35px 8px rgba(76, 175, 80, 0.8) !important; transform: scale(1.05); z-index: 10; }

.action-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 15px; flex-wrap: wrap; }

.spin-btn { background: linear-gradient(145deg, #ff9800, #e65100); color: white; border: 2px solid #ffd700; border-radius: 60px; padding: 14px 30px; font-size: 22px; cursor: pointer; width: 180px; }
.bonus-btn { background: linear-gradient(145deg, #ffd700, #b8860b); color: #2a1a00; border: 2px solid #ffd700; border-radius: 60px; padding: 14px 30px; font-size: 16px; cursor: pointer; width: 200px; }

@media (max-width: 800px) {
    .casino-container { padding: 15px; border-radius: 30px; }
    h1 { font-size: 24px; }
    .reels-wrapper { padding: 10px; }
    .reels-grid { gap: 4px; }
    .top-panel { gap: 10px; }
    .balance-box, .bet-box, .win-box { padding: 6px 10px; min-width: 30%; }
    .value { font-size: 18px; }
    .spin-btn, .bonus-btn { width: 100%; font-size: 16px; }
}
