:root {
    /* Casino Color Palette */
    --casino-green: oklch(25% 0.1 160);       /* Deep Forest Green (Felt) */
    --casino-dark: oklch(15% 0.05 160);
    --royal-gold: oklch(75% 0.15 85);        /* Shiny Gold */
    --neon-red: oklch(65% 0.25 25);
    --text-gold: oklch(85% 0.1 85);
    --text-white: oklch(98% 0.01 160);
    
    /* Ball Colors (Casino Chip style) */
    --ball-1: oklch(70% 0.18 50);  /* Gold/Orange */
    --ball-2: oklch(60% 0.18 240); /* Blue */
    --ball-3: oklch(55% 0.2 25);   /* Red */
    --ball-4: oklch(40% 0.02 0);   /* Black/Deep Grey */
    --ball-5: oklch(70% 0.2 140);  /* Green */

    --gold-glow: 0 0 20px oklch(75% 0.15 85 / 0.4);
    --red-glow: 0 0 20px oklch(65% 0.25 25 / 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cinzel', 'Georgia', serif; /* Classic Casino Feel */
}

body {
    background-color: var(--casino-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Casino Felt Texture */
.casino-felt-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--casino-green);
    background-image: 
        radial-gradient(circle at 50% 50%, oklch(30% 0.1 160 / 0.5), transparent),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='felt'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23felt)' opacity='0.4'/%3E%3C/svg%3E");
    z-index: -1;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 10;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.casino-badge {
    display: inline-block;
    background: var(--royal-gold);
    color: var(--casino-dark);
    font-weight: 900;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    box-shadow: var(--gold-glow);
}

header h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--royal-gold);
    text-shadow: 2px 2px 0px black, 4px 4px 15px oklch(75% 0.15 85 / 0.5);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-gold);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

.casino-table {
    background: oklch(10% 0.05 160 / 0.8);
    backdrop-filter: blur(10px);
    border-radius: 2.5rem;
    padding: 3rem;
    border: 3px solid var(--royal-gold);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 50px rgba(0,0,0,0.4);
    position: relative;
    margin-bottom: 2rem;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 200px;
    justify-content: center;
}

.game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 1.5rem;
    border-left: 5px solid var(--royal-gold);
    animation: slideRight 0.5s ease-out forwards;
}

.game-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--royal-gold);
    width: 80px;
}

.ball-row {
    display: flex;
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
}

.table-placeholder {
    text-align: center;
    color: var(--text-gold);
    font-style: italic;
    opacity: 0.5;
    font-size: 1.5rem;
}

.controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.spin-btn {
    background: linear-gradient(145deg, var(--neon-red), oklch(50% 0.25 25));
    color: white;
    border: 3px solid var(--royal-gold);
    padding: 1.2rem 4rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--red-glow);
}

.spin-btn:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 40px oklch(65% 0.25 25 / 0.6);
}

.spin-btn:active {
    transform: scale(0.95);
}

.util-btn {
    background: var(--casino-dark);
    border: 2px solid var(--royal-gold);
    color: var(--royal-gold);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.util-btn:hover:not(:disabled) {
    background: var(--royal-gold);
    color: var(--casino-dark);
    box-shadow: var(--gold-glow);
}

.util-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* History */
.history-section {
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--royal-gold);
}

.history-section h2 {
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--royal-gold);
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 1rem;
    font-size: 0.8rem;
}

.mini-numbers {
    display: flex;
    gap: 0.4rem;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 600px) {
    header h1 { font-size: 2.5rem; }
    .casino-table { padding: 1.5rem; }
    .game-row { flex-direction: column; gap: 1rem; }
    .ball-row { flex-wrap: wrap; }
    .spin-btn { padding: 1rem 2.5rem; font-size: 1.4rem; }
}
