.body {
    color: #f3f4f6 !important;
    user-select: none;
    touch-action: manipulation;
}

.font-serif-title {
    font-family: 'Cinzel', serif;
}

/* Casino Felt Surface with Radial Gradient and CSS Grid Felt Pattern */
.casino-table {
    background: 
        radial-gradient(circle at 50% 30%, rgba(20, 110, 55, 0.95) 0%, rgba(8, 55, 26, 0.98) 70%, rgba(3, 25, 11, 1) 100%),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 100% 100%, 12px 12px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.9);
}

/* Outer Armrest Border */
.table-armrest {
    border: 14px solid #1c0d02;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9), 0 10px 25px rgba(0,0,0,0.8);
}

/* Card CSS & Animations */
.playing-card {
    width: 82px;
    height: 120px;
    border-radius: 8px;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: -2px 4px 10px rgba(0,0,0,0.5);
    position: relative;
}

@media (min-width: 640px) {
    .playing-card {
        width: 100px;
        height: 146px;
        border-radius: 10px;
    }
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.playing-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid #d1d5db;
    color: #111827;
}

.card-back {
    background: radial-gradient(circle, #b91c1c 0%, #7f1d1d 100%);
    border: 2px solid #ffffff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-pattern {
    width: 86%;
    height: 88%;
    border: 1px solid rgba(255,255,255,0.4);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 4px, transparent 0, transparent 8px);
    border-radius: 4px;
}

/* Deal Slide-In Animation */
@keyframes dealSlide {
    0% {
        opacity: 0;
        transform: translateY(-120px) scale(0.6) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.animate-deal {
    animation: dealSlide 0.35s ease-out forwards;
}

/* Chip Styling */
.casino-chip {
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    position: relative;
}

.casino-chip:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 12px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.5);
}

.casino-chip:active:not(:disabled) {
    transform: translateY(0) scale(0.95);
}

.chip-10 { background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 100%); }
.chip-25 { background: radial-gradient(circle, #22c55e 0%, #15803d 100%); }
.chip-50 { background: radial-gradient(circle, #a855f7 0%, #7e22ce 100%); }
.chip-100 { background: radial-gradient(circle, #ef4444 0%, #b91c1c 100%); }
.chip-500 { background: radial-gradient(circle, #eab308 0%, #a16207 100%); color: #000; }

/* Custom Scrollbar for Hand Containers */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.4);
    border-radius: 10px;
}