:root {
    --gold: #ffcc00;
    --gold-glow: rgba(255, 204, 0, 0.4);
    --grand-color: #ff3333;
    --major-color: #ff9900;
    --minor-color: #00ccff;
    --mini-color: #00ff66;
    --panel-bg: rgba(20, 20, 20, 0.95);
    --reel-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1005 0%, #000 100%);
    z-index: -1;
}

.game-wrapper {
    width: 95%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* JACKPOT STYLING */
.jackpot-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.jackpot-card {
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.jackpot-card.active-win {
    animation: flash 0.5s infinite alternate;
}

@keyframes flash {
    from {
        filter: brightness(1);
        transform: scale(1);
    }

    to {
        filter: brightness(2);
        transform: scale(1.05);
    }
}

.jp-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.jp-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
}

.grand {
    border-color: var(--grand-color);
    color: var(--grand-color);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.major {
    border-color: var(--major-color);
    color: var(--major-color);
}

.minor {
    border-color: var(--minor-color);
    color: var(--minor-color);
}

.mini {
    border-color: var(--mini-color);
    color: var(--mini-color);
}

/* REELS STYLING */
.slot-machine-container {
    background: var(--panel-bg);
    border: 3px solid #444;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.reels-frame {
    background: #000;
    border: 2px solid #222;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.reels-container {
    display: flex;
    gap: 8px;
    height: 300px;
    /* 3 symbols visible at ~100px each */
}

.reel {
    flex: 1;
    background: var(--reel-bg);
    border-radius: 6px;
    height: 100%;
    overflow: hidden;
}

.reel-strip {
    display: flex;
    flex-direction: column;
}

.symbol {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* LINK SYMBOL (The Coin) */
.symbol.coin {
    color: var(--gold);
    font-size: 4rem;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.win-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100px;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    background: rgba(255, 204, 0, 0.05);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.win-indicator.visible {
    opacity: 1;
}

/* CONTROLS */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 10px;
}

.info-box {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 180px;
    text-align: center;
}

.info-box .label {
    display: block;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-box .value {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 700;
}

.main-spin-btn {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffcc00 0%, #cc9900 100%);
    border: 6px solid #443300;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-spin-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.main-spin-btn:disabled {
    filter: grayscale(1) opacity(0.5);
    cursor: not-allowed;
}

.spin-text {
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
}

.status-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    height: 1.5rem;
}

/* Animations */
@keyframes coin-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

.symbol.coin.win-pulse {
    animation: coin-pulse 0.4s infinite alternate;
}