/* Main Styles - Luxury Casino Room */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   CASINO ROOM CONTAINER - Vegas VIP High Stakes
   ============================================ */
#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    /* Vegas VIP Room Background - Deep Luxurious Atmosphere */
    background:
        /* Wall sconce lights - subtle gold glow on sides */
        radial-gradient(ellipse 20% 40% at 0% 40%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 20% 40% at 100% 40%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
        /* Floor ambient - darker at bottom */
        radial-gradient(ellipse 100% 30% at 50% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 60%),
        /* VIP room wall gradient - deep burgundy to black */
        linear-gradient(180deg,
            #1a0812 0%,
            #12060c 20%,
            #0a0408 50%,
            #050206 75%,
            #020103 100%);
}

/* Casino Room Atmosphere Overlay - VIP Wallpaper Pattern */
#game-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Elegant diamond pattern - VIP wallpaper texture */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 25px,
            rgba(212, 175, 55, 0.02) 25px,
            rgba(212, 175, 55, 0.02) 26px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 25px,
            rgba(212, 175, 55, 0.02) 25px,
            rgba(212, 175, 55, 0.02) 26px
        ),
        /* Vertical velvet curtain texture lines */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 80px,
            rgba(139, 0, 0, 0.015) 80px,
            rgba(139, 0, 0, 0.015) 82px
        ),
        /* Vignette for dramatic edge darkening */
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: var(--z-bg);
}

/* Grand Chandelier Light Effect - Vegas VIP */
#game-container::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background:
        /* Central bright light */
        radial-gradient(ellipse 30% 25% at 50% 50%, rgba(255, 245, 220, 0.25) 0%, transparent 50%),
        /* Mid glow - warm amber */
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 220, 150, 0.15) 0%, transparent 60%),
        /* Outer glow - soft gold */
        radial-gradient(ellipse at center, rgba(255, 200, 100, 0.08) 0%, rgba(255, 180, 80, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: var(--z-lights);
    animation: chandelierFlicker 6s ease-in-out infinite;
}

/* Chandelier crystal sparkle animation */
@keyframes chandelierFlicker {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        opacity: 0.95;
        filter: brightness(1.05);
    }
    50% {
        opacity: 0.88;
        filter: brightness(0.95);
    }
    75% {
        opacity: 0.92;
        filter: brightness(1.02);
    }
}

/* ============================================
   SCREENS
   ============================================ */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen.active {
    display: flex;
}

/* ============================================
   START SCREEN - Dynamic Landing Page
   ============================================ */
#start-screen {
    position: relative;
    overflow: hidden;
    z-index: 10000;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(128, 0, 128, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 30% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0510 0%, #150820 50%, #0a0510 100%);
}

/* Hide controls when start screen is active */
#start-screen.active ~ #game-screen #controls-panel {
    display: none !important;
}

/* Animated Background Layer */
.landing-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    width: 60px;
    height: 84px;
    border-radius: 8px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0.4;
}

.floating-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.floating-card::after {
    content: 'A';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
}

.card-1 {
    top: 10%;
    left: 8%;
    animation: floatCard1 20s ease-in-out infinite;
    transform: rotate(-15deg);
}

.card-2 {
    top: 20%;
    right: 10%;
    animation: floatCard2 25s ease-in-out infinite;
    transform: rotate(20deg);
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation: floatCard3 22s ease-in-out infinite;
    transform: rotate(-25deg);
}

@keyframes floatCard1 {
    0%, 100% { transform: rotate(-15deg) translateY(0) translateX(0); }
    25% { transform: rotate(-10deg) translateY(-30px) translateX(20px); }
    50% { transform: rotate(-20deg) translateY(-15px) translateX(-10px); }
    75% { transform: rotate(-12deg) translateY(-25px) translateX(15px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: rotate(20deg) translateY(0) translateX(0); }
    33% { transform: rotate(15deg) translateY(-40px) translateX(-25px); }
    66% { transform: rotate(25deg) translateY(-20px) translateX(15px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: rotate(-25deg) translateY(0) translateX(0); }
    50% { transform: rotate(-20deg) translateY(-35px) translateX(30px); }
}

/* Floating Chips */
.floating-chip {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.5;
}

.floating-chip::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.chip-1 {
    bottom: 20%;
    right: 12%;
    animation: floatChip1 18s ease-in-out infinite;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
}

.chip-2 {
    top: 35%;
    left: 5%;
    animation: floatChip2 22s ease-in-out infinite;
    width: 40px;
    height: 40px;
}

.chip-3 {
    bottom: 30%;
    right: 25%;
    animation: floatChip3 20s ease-in-out infinite;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #1a5a96 0%, #0a2647 100%);
}

@keyframes floatChip1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
}

@keyframes floatChip2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-30px) translateX(20px) rotate(120deg); }
    66% { transform: translateY(-15px) translateX(-15px) rotate(240deg); }
}

@keyframes floatChip3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(-180deg); }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.8);
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 { top: 15%; left: 25%; animation-delay: 0s; }
.sparkle-2 { top: 25%; right: 20%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 25%; left: 30%; animation-delay: 1s; }
.sparkle-4 { top: 40%; right: 35%; animation-delay: 1.5s; }
.sparkle-5 { bottom: 35%; right: 15%; animation-delay: 2s; }

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

/* Landing Content */
.landing-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

/* Logo Container */
.logo-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 4s ease-in-out infinite;
}

.game-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.2)); }
    50% { filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.4)); }
}

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

/* Game Title - Single Line */
.game-title-landing {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 25%, #ffd700 50%, #ffaa00 75%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    animation: titleGradient 3s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    white-space: nowrap;
}

@keyframes titleGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Enter Form */
.enter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.enter-form input {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-gold);
    text-align: center;
    width: 280px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.enter-form input:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.enter-form input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Enter Game Button */
.btn-enter-game {
    position: relative;
    padding: 18px 60px;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #1a0a00;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 30%, #ffd700 50%, #ff8c00 70%, #ffd700 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(255, 170, 0, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: buttonGlow 2s ease-in-out infinite;
}

.btn-enter-game:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 50px rgba(255, 170, 0, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    background-position: 100% center;
}

.btn-enter-game:active {
    transform: translateY(-2px) scale(1);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 170, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(255, 170, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
}

@keyframes buttonShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Landing Footer */
.landing-footer {
    margin-top: var(--spacing-lg);
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.8;
}

/* Legacy styles for compatibility */
.title-container {
    text-align: center;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-xxl);
}

.game-title {
    font-size: 5rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    letter-spacing: 8px;
    text-transform: uppercase;
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    font-style: italic;
    letter-spacing: 4px;
}

.rank-name {
    color: var(--gold-light);
    font-weight: bold;
}

/* ============================================
   BUTTONS - Luxury Style
   ============================================ */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled::before {
    display: none;
}

.btn-gold {
    background: linear-gradient(135deg,
        #b8860b 0%,
        #daa520 20%,
        #ffd700 40%,
        #ffe44d 50%,
        #ffd700 60%,
        #daa520 80%,
        #b8860b 100%);
    color: var(--text-dark);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.2);
    border: 2px solid #b8860b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
    box-shadow:
        0 10px 35px rgba(212, 175, 55, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    border: 1px solid #1b5e20;
}

.btn-danger {
    background: linear-gradient(135deg, #c62828 0%, #8b0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    border: 1px solid #8b0000;
}

.btn-action {
    padding: var(--spacing-sm) var(--spacing-lg);
    min-width: 110px;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(60, 40, 50, 0.9) 0%, rgba(30, 20, 25, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--text-light);
}

.btn-icon:hover {
    background: linear-gradient(135deg, rgba(80, 50, 60, 0.9) 0%, rgba(50, 30, 40, 0.9) 100%);
    border-color: var(--gold-primary);
}

.btn-icon.muted {
    opacity: 0.5;
}

/* Settings Button - Rectangular Style */
.btn-settings {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg,
        rgba(80, 80, 100, 0.95) 0%,
        rgba(50, 50, 70, 0.95) 100%);
    border: 1px solid rgba(150, 150, 200, 0.4);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.btn-settings:hover {
    background: linear-gradient(180deg,
        rgba(100, 100, 130, 0.95) 0%,
        rgba(70, 70, 100, 0.95) 100%);
    border-color: rgba(200, 200, 255, 0.6);
    box-shadow: 0 0 10px rgba(150, 150, 255, 0.3);
}

.settings-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.5s ease;
}

.btn-settings:hover .settings-icon {
    transform: rotate(90deg);
}

.settings-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Instructions Button - Rectangular Style */
.btn-instructions {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg,
        rgba(60, 100, 140, 0.95) 0%,
        rgba(40, 70, 100, 0.95) 100%);
    border: 1px solid rgba(100, 150, 220, 0.4);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.btn-instructions:hover {
    background: linear-gradient(180deg,
        rgba(80, 130, 180, 0.95) 0%,
        rgba(60, 100, 140, 0.95) 100%);
    border-color: rgba(150, 200, 255, 0.6);
    box-shadow: 0 0 10px rgba(100, 150, 220, 0.3);
}

.instructions-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-instructions:hover .instructions-icon {
    transform: scale(1.1);
}

.instructions-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card Color Toggle Button */
.btn-card-color {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-card-color .card-color-icon {
    width: 18px;
    height: 24px;
    border-radius: 3px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.btn-card-color .card-color-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.btn-card-color .card-color-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Red card color variant */
.btn-card-color.red {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border: 1px solid #ff4444;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-card-color.red .card-color-icon {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
}

.btn-card-color.red:hover {
    background: linear-gradient(135deg, #d4324d 0%, #a00000 100%);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Blue card color variant */
.btn-card-color.blue {
    background: linear-gradient(135deg, #1a5a96 0%, #0a2647 100%);
    border: 1px solid #4488cc;
    box-shadow: 0 2px 8px rgba(10, 38, 71, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-card-color.blue .card-color-icon {
    background: linear-gradient(135deg, #1a5a96 0%, #0a2647 100%);
}

.btn-card-color.blue:hover {
    background: linear-gradient(135deg, #2a6aa6 0%, #1a3657 100%);
    box-shadow: 0 4px 12px rgba(10, 38, 71, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-card-color .card-color-label {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   GAME SCREEN
   ============================================ */
#game-screen {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: 2px;
    justify-content: space-between;
}

/* ============================================
   TOP BAR - Vegas VIP Info Panel
   ============================================ */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 750px;
    padding: 6px var(--spacing-md);
    background: linear-gradient(180deg,
        rgba(40, 18, 25, 0.97) 0%,
        rgba(25, 10, 15, 0.97) 50%,
        rgba(15, 6, 10, 0.97) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(15px);
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: var(--spacing-sm);
}

/* Pot Display Wrapper - Centered above table */
.pot-display-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    z-index: 10;
}

.pot-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg,
        #b8860b 0%,
        #daa520 15%,
        #ffd700 35%,
        #ffe44d 50%,
        #ffd700 65%,
        #daa520 85%,
        #b8860b 100%);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 215, 0, 0.3);
    border: 2px solid #b8860b;
    position: relative;
    overflow: hidden;
}

.pot-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: potShimmer 4s ease-in-out infinite;
}

@keyframes potShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.pot-label {
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.pot-value {
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.round-info, .stake-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.round-info span, .stake-info span {
    color: var(--gold-light);
    font-weight: bold;
}

/* ============================================
   CONTROLS PANEL - Vegas VIP Style
   ============================================ */
#controls-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px var(--spacing-md);
    margin-top: 50px;
    background: linear-gradient(180deg,
        rgba(35, 15, 22, 0.97) 0%,
        rgba(22, 10, 15, 0.97) 50%,
        rgba(12, 5, 8, 0.97) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(10px);
}

#action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

#bet-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#bet-slider-container.hidden {
    display: none;
}

/* Chip Preset Buttons */
.chip-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip-preset {
    position: relative;
    min-width: 52px;
    height: 44px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(180deg,
        rgba(60, 50, 80, 0.95) 0%,
        rgba(40, 35, 60, 0.95) 100%);
    border: 2px solid rgba(150, 130, 200, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 4px 0 rgba(30, 25, 50, 0.9),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

.chip-preset:hover {
    background: linear-gradient(180deg,
        rgba(80, 70, 120, 0.95) 0%,
        rgba(60, 50, 90, 0.95) 100%);
    border-color: rgba(200, 180, 255, 0.6);
    box-shadow:
        0 4px 0 rgba(30, 25, 50, 0.9),
        0 8px 20px rgba(100, 80, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.chip-preset:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 rgba(30, 25, 50, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.05s ease;
}

.chip-preset.selected {
    background: linear-gradient(180deg,
        rgba(180, 150, 80, 0.95) 0%,
        rgba(140, 110, 50, 0.95) 100%);
    border-color: var(--gold-light);
    color: #1a1a1a;
    box-shadow:
        0 4px 0 rgba(100, 80, 30, 0.9),
        0 6px 16px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chip-preset[data-amount="min"],
.chip-preset[data-amount="max"] {
    background: linear-gradient(180deg,
        rgba(50, 70, 60, 0.95) 0%,
        rgba(30, 50, 40, 0.95) 100%);
    border-color: rgba(100, 180, 130, 0.4);
}

.chip-preset[data-amount="min"]:hover,
.chip-preset[data-amount="max"]:hover {
    background: linear-gradient(180deg,
        rgba(70, 100, 80, 0.95) 0%,
        rgba(50, 80, 60, 0.95) 100%);
    border-color: rgba(130, 220, 160, 0.6);
}

/* Bet Display */
.bet-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bet-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bet-amount-display {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--gold-light);
    text-shadow: var(--text-glow);
}

.bet-actions {
    display: flex;
    gap: var(--spacing-sm);
}

#bet-slider {
    width: 180px;
    accent-color: var(--gold-primary);
    cursor: pointer;
    display: none; /* Hidden, using chip presets instead */
}

/* ============================================
   FOLD CONFIRMATION
   ============================================ */
.fold-confirm {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: linear-gradient(135deg,
        rgba(180, 40, 60, 0.95) 0%,
        rgba(120, 20, 40, 0.95) 100%);
    border: 2px solid rgba(255, 100, 120, 0.6);
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
        0 4px 20px rgba(180, 40, 60, 0.5),
        0 0 30px rgba(255, 60, 80, 0.3);
    animation: foldConfirmPulse 0.8s ease-in-out infinite;
    z-index: var(--z-controls);
}

.fold-confirm.hidden {
    display: none;
}

.fold-confirm-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fold-confirm-text::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

@keyframes foldConfirmPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow:
            0 4px 20px rgba(180, 40, 60, 0.5),
            0 0 30px rgba(255, 60, 80, 0.3);
    }
    50% {
        transform: translateX(-50%) scale(1.02);
        box-shadow:
            0 6px 25px rgba(180, 40, 60, 0.6),
            0 0 40px rgba(255, 60, 80, 0.4);
    }
}

/* ============================================
   ACTION BUTTONS - Tactile Press Effect
   ============================================ */
.btn-action {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-lg);
    min-width: 110px;
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn-action:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-action.btn-primary {
    box-shadow:
        0 4px 0 #0d3d0f,
        0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-action.btn-primary:active:not(:disabled) {
    box-shadow:
        0 1px 0 #0d3d0f,
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-action.btn-danger {
    box-shadow:
        0 4px 0 #5c0000,
        0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-action.btn-danger:active:not(:disabled) {
    box-shadow:
        0 1px 0 #5c0000,
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-action.btn-gold {
    box-shadow:
        0 4px 0 #8b6914,
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.2);
}

.btn-action.btn-gold:active:not(:disabled) {
    box-shadow:
        0 1px 0 #8b6914,
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Fold button pending confirmation state */
.btn-action.btn-danger.pending-confirm {
    animation: pendingFoldPulse 0.5s ease-in-out infinite;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

@keyframes pendingFoldPulse {
    0%, 100% {
        box-shadow:
            0 4px 0 #5c0000,
            0 6px 12px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(255, 60, 60, 0.4);
    }
    50% {
        box-shadow:
            0 4px 0 #5c0000,
            0 6px 16px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(255, 60, 60, 0.6);
    }
}

/* ============================================
   MESSAGE DISPLAY
   ============================================ */
#message-display {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-controls);
}

.message {
    background: linear-gradient(135deg, rgba(30, 15, 20, 0.95) 0%, rgba(15, 8, 10, 0.95) 100%);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    animation: fadeInOut 3s ease forwards;
    border-left: 3px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.message.error {
    border-left-color: var(--casino-red-light);
}

.message.success {
    border-left-color: #4caf50;
}

/* ============================================
   MODALS - Vegas VIP Exclusive Style
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 8, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(8px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg,
        rgba(50, 22, 35, 0.98) 0%,
        rgba(35, 15, 25, 0.98) 30%,
        rgba(25, 10, 18, 0.98) 70%,
        rgba(15, 6, 10, 0.98) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-top: 2px solid rgba(255, 215, 0, 0.6);
    text-align: center;
    max-width: 520px;
    width: 90%;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(212, 175, 55, 0.15),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.5) 50%, transparent 100%);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    color: var(--gold-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
    text-shadow: var(--text-glow);
}

.modal-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

/* Result Modal */
#result-hands {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.result-hand {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-hand.winner {
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.result-hand .player-name {
    font-weight: bold;
    color: var(--gold-light);
}

.result-hand .hand-cards {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin: var(--spacing-sm) 0;
}

.result-hand .hand-type {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-hand.folded {
    opacity: 0.5;
}

.winning-hand-type {
    font-size: 1.4rem;
    color: var(--gold-light);
    font-weight: bold;
    text-shadow: var(--text-glow);
}

.pot-won {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Side pot awards breakdown */
.awards-breakdown {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.award-player {
    font-weight: 600;
    color: var(--text-light);
}

.award-pot {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 10px;
}

.award-amount {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Player won indicator in result hands */
.player-won {
    margin-top: 4px;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1rem;
}

.result-hand.all-in .player-name {
    color: var(--accent-gold);
}

/* ============================================
   INSTRUCTIONS MODAL
   ============================================ */
.instructions-content {
    max-width: 580px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    position: relative;
}

.instructions-content::-webkit-scrollbar {
    width: 8px;
}

.instructions-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.instructions-content::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

.instructions-content h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.btn-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold-light);
    transform: rotate(90deg);
}

.instructions-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-primary);
}

.instructions-section h3 {
    color: var(--gold-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.instructions-section p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.instructions-section ul {
    list-style: none;
    padding-left: 0;
}

.instructions-section li {
    padding: var(--spacing-xs) 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hand-rankings li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hand-rankings li:last-child {
    border-bottom: none;
}

.rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 110px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-badge.trail {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}
.rank-badge.pure-seq {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: #fff;
}
.rank-badge.sequence {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    color: #fff;
}
.rank-badge.color {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: #fff;
}
.rank-badge.pair {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #000;
}
.rank-badge.high {
    background: linear-gradient(135deg, #607d8b, #78909c);
    color: #fff;
}

.modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

#btn-got-it {
    display: block;
    width: 100%;
    margin-top: var(--spacing-lg);
}

/* ============================================
   SIDESHOW BUTTON
   ============================================ */
.btn-sideshow {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
    border: 2px solid #7b1fa2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-sideshow:hover:not(:disabled) {
    background: linear-gradient(135deg, #ab47bc 0%, #7b1fa2 100%);
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.btn-sideshow:disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #333 100%);
    border-color: #444;
    opacity: 0.5;
}

/* ============================================
   SIDESHOW MODAL
   ============================================ */
.sideshow-content {
    max-width: 400px;
    text-align: center;
}

.sideshow-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
}

.sideshow-challenger,
.sideshow-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.challenger-label,
.target-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenger-name,
.target-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-light);
}

.sideshow-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--casino-red-light);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.sideshow-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.sideshow-cost {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
}

.cost-amount {
    font-weight: bold;
    color: var(--gold-light);
}

.sideshow-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* Sideshow Result Modal */
.sideshow-result-content {
    max-width: 450px;
    text-align: center;
}

.sideshow-hands {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.sideshow-hand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    min-width: 140px;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.sideshow-hand.winner {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.sideshow-hand.loser {
    opacity: 0.6;
    border-color: var(--casino-red-dark);
}

.sideshow-hand .player-name {
    font-weight: bold;
    color: var(--text-light);
}

.sideshow-hand .hand-cards {
    display: flex;
    gap: 4px;
}

.sideshow-hand .hand-type {
    font-size: 0.85rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sideshow-result-msg {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.sideshow-result-msg .winner-name {
    color: var(--gold-light);
    font-weight: bold;
}

/* ============================================
   SETTINGS MODAL - Premium Design
   ============================================ */
.settings-content {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    position: relative;
    padding: 0;
    background: linear-gradient(180deg,
        rgba(30, 25, 40, 0.98) 0%,
        rgba(20, 18, 30, 0.98) 100%);
    border: 1px solid rgba(150, 130, 200, 0.2);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(100, 80, 180, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Settings Header */
.settings-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(180deg,
        rgba(80, 60, 120, 0.3) 0%,
        transparent 100%);
    border-bottom: 1px solid rgba(150, 130, 200, 0.15);
}

.settings-header-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    animation: settingsGearSpin 10s linear infinite;
    display: inline-block;
}

@keyframes settingsGearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.settings-content h2 {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    font-size: 1.6rem;
    background: linear-gradient(135deg, #fff 0%, #c8b8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Settings Sections */
.settings-section {
    margin: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg,
        rgba(60, 50, 90, 0.4) 0%,
        rgba(40, 35, 60, 0.4) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(150, 130, 200, 0.15);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(150, 130, 200, 0.2);
}

.section-icon {
    font-size: 1.3rem;
}

.settings-section h3 {
    color: #c8b8ff;
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Setting Items */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-xs);
    margin: var(--spacing-xs) 0;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 120px;
    font-weight: 500;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    justify-content: flex-end;
}

/* Settings Footer */
.settings-footer {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    text-align: center;
    border-top: 1px solid rgba(150, 130, 200, 0.1);
    background: linear-gradient(0deg,
        rgba(80, 60, 120, 0.2) 0%,
        transparent 100%);
}

.btn-save {
    padding: 12px 32px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-icon {
    font-size: 1.1rem;
}

/* Toggle Label */
.toggle-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 55px;
}

/* Volume Slider - Purple Theme */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(150, 130, 200, 0.4) 0%,
        rgba(100, 80, 150, 0.2) 100%);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4b8ff 0%, #9b7ed9 100%);
    cursor: pointer;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(155, 126, 217, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(155, 126, 217, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4b8ff 0%, #9b7ed9 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.volume-value {
    min-width: 38px;
    text-align: right;
    font-size: 0.8rem;
    color: #c8b8ff;
    font-weight: 600;
    font-family: monospace;
}

/* Mute Button - Improved */
.btn-mute {
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(100, 80, 150, 0.3);
    border: 1px solid rgba(150, 130, 200, 0.3);
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-mute:hover {
    background: rgba(150, 130, 200, 0.4);
    border-color: rgba(200, 180, 255, 0.5);
    color: var(--text-light);
}

.btn-mute.muted {
    background: rgba(220, 60, 80, 0.4);
    border-color: rgba(255, 100, 120, 0.5);
    color: #ff8a9a;
}

/* Card Color Options - Enhanced */
.card-color-options {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-card-option {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-option .color-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-card-option.red {
    background: linear-gradient(135deg, rgba(180, 40, 60, 0.8) 0%, rgba(120, 20, 40, 0.8) 100%);
    border: 2px solid transparent;
}

.btn-card-option.red .color-preview {
    background: linear-gradient(135deg, #ff4d6a 0%, #c41e3a 100%);
}

.btn-card-option.blue {
    background: linear-gradient(135deg, rgba(40, 100, 160, 0.8) 0%, rgba(20, 60, 100, 0.8) 100%);
    border: 2px solid transparent;
}

.btn-card-option.blue .color-preview {
    background: linear-gradient(135deg, #4d9eff 0%, #1a5a96 100%);
}

.btn-card-option.active {
    border-color: #c8b8ff;
    box-shadow:
        0 0 15px rgba(200, 184, 255, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-card-option:hover:not(.active) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Toggle Switch - Purple Theme */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 80, 150, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(150, 130, 200, 0.3);
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #e0d0ff 0%, #b8a0e0 100%);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #7b5fc7 0%, #5a40a0 100%);
    border-color: rgba(200, 180, 255, 0.5);
    box-shadow: 0 0 10px rgba(120, 100, 200, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #fff 0%, #e8e0ff 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.text-gold {
    color: var(--gold-primary);
}

.text-red {
    color: var(--casino-red-light);
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE - TABLET (768px and below)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Landing Page - Tablet */
    .logo-container {
        width: 180px;
        height: 180px;
    }

    .game-title-landing {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .btn-enter-game {
        padding: 16px 50px;
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .enter-form input {
        width: 260px;
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    /* Floating elements - slightly smaller */
    .floating-card {
        width: 50px;
        height: 70px;
        opacity: 0.3;
    }

    .floating-card::after {
        font-size: 20px;
    }

    .floating-chip {
        width: 40px;
        height: 40px;
    }

    .chip-2 {
        width: 32px;
        height: 32px;
    }

    .chip-3 {
        width: 28px;
        height: 28px;
    }

    /* Top Bar */
    #top-bar {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .pot-display {
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .pot-display-wrapper {
        margin: 0;
    }

    .pot-value {
        font-size: 1.3rem;
    }

    /* Game Table - Tablet */
    #game-table {
        max-width: 650px;
        margin: 5px 0;
    }

    .table-felt {
        border-width: 18px;
    }

    .table-felt::before {
        inset: -18px;
    }

    /* Player Seats - Tablet */
    .player-seat {
        min-width: 110px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .player-seat[data-position="bottom"] {
        bottom: -80px;
    }

    .player-seat[data-position="top"] {
        top: -60px;
    }

    .player-seat[data-position="left"] {
        left: -80px;
    }

    .player-seat[data-position="right"] {
        right: -80px;
    }

    .player-name {
        font-size: 0.85rem;
    }

    .player-chips {
        font-size: 0.8rem;
    }

    .player-status {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    /* Cards - Tablet */
    .card {
        width: 50px;
        height: 70px;
    }

    .player-cards {
        min-height: 45px;
        gap: 4px;
    }

    .card-rank {
        font-size: 0.9rem;
    }

    .card-suit {
        font-size: 0.7rem;
    }

    .card-center {
        font-size: 1.4rem;
    }

    /* Dealer Button - Tablet */
    #dealer-button {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Controls - Tablet */
    #controls-panel {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-top: 45px;
    }

    .btn-action {
        padding: var(--spacing-xs) var(--spacing-md);
        min-width: 90px;
        font-size: 0.9rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }

    .instructions-content,
    .settings-content {
        max-width: 95%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (480px and below)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Fix iOS Safari viewport height issue */
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Game Container - Mobile - Allow overflow for fixed elements */
    #game-container {
        overflow: visible !important;
        height: auto;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Screens - Mobile */
    .screen {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .screen.active {
        overflow: visible;
    }

    /* Landing Page - Mobile */
    .landing-content {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .logo-container {
        width: 150px;
        height: 150px;
    }

    .logo-glow {
        inset: -15px;
    }

    .game-title-landing {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .btn-enter-game {
        padding: 14px 40px;
        font-size: 1rem;
        letter-spacing: 2px;
        border-radius: 40px;
    }

    .enter-form {
        gap: var(--spacing-md);
    }

    .enter-form input {
        width: 240px;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.95rem;
    }

    .tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .landing-footer {
        margin-top: var(--spacing-md);
    }

    /* Hide some floating elements on small screens */
    .floating-card {
        width: 40px;
        height: 56px;
        opacity: 0.25;
    }

    .floating-card::after {
        font-size: 16px;
    }

    .card-3 {
        display: none;
    }

    .floating-chip {
        width: 30px;
        height: 30px;
        opacity: 0.35;
    }

    .chip-3 {
        display: none;
    }

    .sparkle {
        width: 3px;
        height: 3px;
    }

    .sparkle-4,
    .sparkle-5 {
        display: none;
    }

    /* Game Screen - Mobile */
    #game-screen {
        padding: 2px;
        gap: 2px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }

    /* Top Bar - Mobile */
    #top-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px;
        padding: 2px;
        max-width: 100%;
        flex-shrink: 0;
    }

    #top-bar .btn-small {
        padding: 2px 4px;
        font-size: 0.5rem;
    }

    .round-info, .stake-info {
        display: none;
    }

    .top-bar-left {
        order: 1;
        gap: 4px;
    }

    .top-bar-right {
        order: 2;
        gap: 4px;
    }

    .pot-display {
        flex-direction: row;
        gap: 4px;
        padding: 3px 8px;
    }

    .pot-display-wrapper {
        margin: 0;
        flex-shrink: 0;
    }

    .pot-label {
        font-size: 0.5rem;
    }

    .pot-value {
        font-size: 0.9rem;
    }

    .round-info,
    .stake-info {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .btn-small {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Game Table - Mobile */
    #game-table {
        width: 100% !important;
        flex: 1 !important;
        max-height: 35vh !important;
        margin: 0 !important;
        perspective: 500px;
        transform: scale(0.55) !important;
        transform-origin: center center !important;
    }

    .table-felt {
        width: 85% !important;
        height: 65% !important;
        border-width: 10px;
        transform: rotateX(8deg);
    }

    .table-felt::before {
        inset: -10px;
    }

    .table-felt::after {
        border-width: 2px;
        inset: -3px;
    }

    /* Table center */
    .table-center::before {
        width: 60px;
        height: 40px;
    }

    /* Pot chips - Mobile */
    #pot-chips .chip {
        width: 22px;
        height: 22px;
    }

    /* Player Seats - Mobile (repositioned for vertical layout) */
    .player-seat {
        min-width: 55px !important;
        padding: 2px 4px !important;
        border-radius: 4px !important;
    }

    .player-seat[data-position="bottom"] {
        bottom: -50px;
    }

    .player-seat[data-position="top"] {
        top: -40px;
    }

    .player-seat[data-position="left"] {
        left: -30px;
        top: 45%;
    }

    .player-seat[data-position="right"] {
        right: -30px;
        top: 45%;
    }

    .player-info {
        gap: 1px;
    }

    .player-name {
        font-size: 0.5rem !important;
    }

    .player-chips {
        font-size: 0.45rem !important;
        gap: 1px !important;
    }

    .chip-icon {
        width: 8px !important;
        height: 8px !important;
    }

    .player-status {
        font-size: 0.4rem !important;
        padding: 1px 3px !important;
        letter-spacing: 0 !important;
    }

    /* Cards - Mobile */
    .card {
        width: 20px !important;
        height: 28px !important;
    }

    .player-cards {
        min-height: 18px !important;
        gap: 0 !important;
    }

    .card-back {
        border-width: 2px;
    }

    .card-face {
        border-radius: 4px;
    }

    .card-rank {
        font-size: 0.7rem;
    }

    .card-suit {
        font-size: 0.55rem;
    }

    .card-center {
        font-size: 1rem;
    }

    .card-bottom {
        display: none;
    }

    /* Dealer Button - Mobile */
    #dealer-button {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
        border-width: 1px;
    }

    /* Controls Panel - Mobile */
    #controls-panel {
        width: 100%;
        padding: 4px 2px;
        margin: 0;
        gap: 3px;
        flex-shrink: 0;
    }

    #action-buttons {
        display: flex;
        gap: 3px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-action {
        padding: 6px 4px;
        min-width: 45px;
        flex: 1 1 calc(33% - 3px);
        max-width: calc(33% - 3px);
        font-size: 0.55rem;
    }

    .btn-action.hidden {
        display: none;
    }

    /* Bet slider - Mobile */
    #bet-slider-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }

    #bet-slider {
        width: 140px;
    }

    #bet-amount-display {
        font-size: 1rem;
        min-width: 45px;
    }

    /* Chip Presets - Mobile */
    .chip-presets {
        gap: 4px;
    }

    .chip-preset {
        min-width: 42px;
        height: 36px;
        padding: 4px 8px;
        font-size: 0.65rem;
        border-radius: 6px;
        box-shadow:
            0 3px 0 rgba(30, 25, 50, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .bet-display {
        padding: 6px 14px;
    }

    .bet-label {
        font-size: 0.75rem;
    }

    /* Fold Confirmation - Mobile */
    .fold-confirm {
        bottom: 120px;
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* Message Display - Mobile */
    #message-display {
        bottom: 75px;
    }

    .message {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
    }

    /* Modals - Mobile */
    .modal-content {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    /* Result Modal - Mobile */
    #result-hands {
        gap: var(--spacing-xs);
    }

    .result-hand {
        min-width: 100px;
        padding: var(--spacing-xs);
    }

    .result-hand .player-name {
        font-size: 0.8rem;
    }

    .mini-card {
        font-size: 0.75rem;
        padding: 2px 4px;
    }

    .winning-hand-type {
        font-size: 1.1rem;
    }

    .pot-won {
        font-size: 0.95rem;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .setting-control {
        width: 100%;
        justify-content: flex-start;
    }

    .volume-slider {
        flex: 1;
        max-width: 150px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (360px and below)
   ============================================ */
@media screen and (max-width: 360px) {
    /* Landing Page - Small Mobile */
    .logo-container {
        width: 120px;
        height: 120px;
    }

    .game-title-landing {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .btn-enter-game {
        padding: 12px 30px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .enter-form input {
        width: 200px;
        font-size: 0.9rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    /* Hide more floating elements */
    .card-2,
    .chip-2 {
        display: none;
    }

    .floating-card {
        width: 35px;
        height: 49px;
    }

    .floating-chip {
        width: 25px;
        height: 25px;
    }

    /* Game Screen - Small Mobile */
    #top-bar {
        padding: 4px;
        gap: 3px;
    }

    .pot-display {
        padding: 4px 8px;
    }

    .pot-value {
        font-size: 1rem;
    }

    .round-info,
    .stake-info {
        font-size: 0.65rem;
    }

    .btn-small {
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    /* Game Table - Small Mobile */
    #game-table {
        max-height: calc(100vh - 180px);
    }

    .table-felt {
        width: 95%;
        height: 70%;
        border-width: 8px;
    }

    .table-felt::before {
        inset: -8px;
    }

    /* Player Seats - Small Mobile */
    .player-seat {
        min-width: 70px;
        padding: 3px 6px;
    }

    .player-seat[data-position="bottom"] {
        bottom: -55px;
    }

    .player-seat[data-position="top"] {
        top: -45px;
    }

    .player-seat[data-position="left"] {
        left: -35px;
    }

    .player-seat[data-position="right"] {
        right: -35px;
    }

    .player-name {
        font-size: 0.65rem;
    }

    .player-chips {
        font-size: 0.6rem;
    }

    .chip-icon {
        width: 10px;
        height: 10px;
    }

    .player-status {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    /* Cards - Small Mobile */
    .card {
        width: 32px;
        height: 45px;
    }

    .player-cards {
        min-height: 28px;
        gap: 1px;
    }

    .card-back {
        border-width: 1.5px;
    }

    .card-rank {
        font-size: 0.6rem;
    }

    .card-suit {
        font-size: 0.5rem;
    }

    .card-center {
        font-size: 0.85rem;
    }

    /* Dealer Button - Small Mobile */
    #dealer-button {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
    }

    /* Controls - Small Mobile */
    #controls-panel {
        padding: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    }

    #action-buttons {
        gap: 5px 3px;
        padding: 0 2px;
    }

    .btn-action {
        padding: 7px 8px;
        min-width: auto;
        flex: 0 1 calc(33.33% - 4px);
        max-width: calc(33.33% - 4px);
        font-size: 0.65rem;
    }

    /* Pot Chips - Small Mobile */
    #pot-chips .chip {
        width: 22px;
        height: 22px;
    }

    /* Message Display */
    #message-display {
        bottom: 65px;
    }

    .message {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ============================================
   RESPONSIVE - LANDSCAPE MOBILE
   ============================================ */
@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Landing Page - Landscape */
    .landing-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-lg);
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }

    .game-title-landing {
        font-size: 1.5rem;
    }

    .enter-form {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .enter-form input {
        width: 180px;
    }

    .btn-enter-game {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .landing-footer {
        display: none;
    }

    /* Hide all floating elements in landscape */
    .floating-card,
    .floating-chip,
    .sparkle {
        display: none;
    }

    /* Game Screen - Landscape */
    #game-screen {
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }

    /* Top Bar - Landscape */
    #top-bar {
        width: 100%;
        padding: 4px var(--spacing-sm);
        order: 0;
    }

    .pot-display {
        flex-direction: row;
        gap: var(--spacing-sm);
        padding: 4px 12px;
    }

    .pot-display-wrapper {
        margin: 0;
    }

    .pot-value {
        font-size: 1.1rem;
    }

    /* Game Table - Landscape */
    #game-table {
        max-width: 55%;
        aspect-ratio: 16 / 10;
        order: 1;
        margin: 0;
    }

    .table-felt {
        width: 90%;
        height: 85%;
        border-width: 10px;
        transform: rotateX(8deg);
    }

    .table-felt::before {
        inset: -10px;
    }

    /* Player Seats - Landscape */
    .player-seat {
        min-width: 80px;
        padding: 4px 6px;
    }

    .player-seat[data-position="bottom"] {
        bottom: -50px;
    }

    .player-seat[data-position="top"] {
        top: -40px;
    }

    .player-seat[data-position="left"] {
        left: -50px;
    }

    .player-seat[data-position="right"] {
        right: -50px;
    }

    .player-name {
        font-size: 0.7rem;
    }

    .player-chips {
        font-size: 0.65rem;
    }

    .player-status {
        font-size: 0.5rem;
        padding: 1px 5px;
    }

    /* Cards - Landscape */
    .card {
        width: 35px;
        height: 49px;
    }

    .player-cards {
        min-height: 32px;
        gap: 2px;
    }

    .card-rank {
        font-size: 0.65rem;
    }

    .card-suit {
        font-size: 0.5rem;
    }

    .card-center {
        font-size: 0.9rem;
    }

    .card-bottom {
        display: none;
    }

    /* Dealer Button - Landscape */
    #dealer-button {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }

    /* Controls Panel - Landscape (side panel) */
    #controls-panel {
        order: 2;
        flex: 1;
        max-width: 42%;
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }

    #action-buttons {
        flex-wrap: wrap;
        gap: 4px 3px;
        justify-content: center;
    }

    .btn-action {
        padding: 5px 8px;
        min-width: auto;
        flex: 0 1 calc(33.33% - 4px);
        max-width: calc(33.33% - 4px);
        font-size: 0.6rem;
    }

    /* Bet Slider - Landscape */
    #bet-slider-container {
        padding: var(--spacing-xs);
    }

    #bet-slider {
        width: 100px;
    }

    #bet-amount-display {
        font-size: 0.9rem;
    }

    /* Message Display - Landscape */
    #message-display {
        bottom: 60px;
        left: 50%;
    }

    .message {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Pot Chips - Landscape */
    #pot-chips .chip {
        width: 24px;
        height: 24px;
    }
}
