:root {
    --purple-deep: #2a004e;
    --purple-neon: #b000ff;
    --gold: #ffd700;
    --gold-glow: #ffea70;
    --red-neon: #ff0055;
    --text-color: #fff;
    --reel-bg: #f0f0f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: #110022;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.casino-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--purple-deep), #000);
    z-index: -2;
}

.lights-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--purple-neon);
    box-shadow: 0 0 20px var(--purple-neon);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.glow-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(176, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(176, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 0, 255, 0); }
}

h1 {
    font-family: 'Bungee Inline', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 3px 3px var(--purple-neon);
}

.highlight {
    color: var(--gold);
    text-shadow: 3px 3px #cf9d00;
}

.wallet-display {
    background: linear-gradient(135deg, #333, #111);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--gold);
    font-size: 1.2rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.amount {
    color: var(--gold);
    font-weight: bold;
}

/* Main Casino Area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slot-machine-container {
    background: #222;
    padding: 30px;
    border-radius: 30px;
    border: 5px solid var(--purple-neon);
    box-shadow: 0 0 50px var(--purple-neon), inset 0 0 30px #000;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.slot-topper {
    text-align: center;
    margin-bottom: 20px;
}

.jackpot-display {
    background: #000;
    color: var(--red-neon);
    font-family: 'Bungee Inline', cursive;
    font-size: 1.5rem;
    padding: 10px;
    border: 2px solid var(--red-neon);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--red-neon);
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    from { text-shadow: 0 0 5px var(--red-neon); }
    to { text-shadow: 0 0 20px var(--red-neon); }
}

.slot-frame {
    background: linear-gradient(to bottom, #444, #222);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    border: 5px solid var(--gold);
    overflow: hidden;
}

.reels-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    background: #000;
    padding: 5px;
}

.reel {
    width: 100px;
    height: 120px;
    background: var(--reel-bg);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.reel.spinning .symbol {
    animation: blurSpin 0.1s infinite linear;
}

@keyframes blurSpin {
    0% { transform: translateY(-50px); filter: blur(5px); }
    100% { transform: translateY(50px); filter: blur(5px); }
}

.payline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 0, 0.7);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 5px red;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.control-btn {
    background: #444;
    color: #fff;
    border: 2px solid #666;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
}

.control-btn:active { transform: scale(0.9); }

.control-btn.max {
    width: auto;
    border-radius: 10px;
    padding: 0 15px;
    background: var(--purple-deep);
    border-color: var(--purple-neon);
}

.bet-display {
    text-align: center;
    background: #000;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid #444;
}

.bet-display span:first-child { font-size: 0.7rem; color: #888; display: block; }
.bet-display span:last-child { color: var(--gold); font-weight: bold; }

.spin-btn {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    border: none;
    padding: 15px 40px;
    font-family: 'Bungee Inline', cursive;
    font-size: 1.5rem;
    color: #000;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #cc7a00, 0 0 20px var(--gold);
    transition: all 0.1s;
    flex: 1;
}

.spin-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #cc7a00, 0 0 10px var(--gold);
}

.spin-btn:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

.message-display {
    margin-top: 20px;
    background: #000;
    color: var(--purple-neon);
    text-align: center;
    padding: 10px;
    border: 1px dashed var(--purple-neon);
    font-weight: bold;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paytable */
.info-panel {
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #444;
    text-align: center;
}

.info-panel h3 { color: #888; margin-bottom: 10px; font-size: 0.9rem; }

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    font-size: 0.8rem;
}

.pay-row {
    display: flex;
    flex-direction: column;
}

.pay-row span:last-child { color: var(--gold); }

/* Win Overlay */
.win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hidden { display: none !important; }

.win-content {
    text-align: center;
}

.win-content h2 {
    font-family: 'Bungee Inline', cursive;
    font-size: 4rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold);
    margin-bottom: 20px;
    animation: shake 0.5s infinite;
}

.win-amount {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 30px;
}

.win-content button {
    background: var(--purple-neon);
    border: none;
    padding: 15px 40px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: 'Bungee Inline', cursive;
}

@keyframes shake {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

@keyframes zoomIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
}
