        :root {
            --felt-color-1: #1a7a42;
            --felt-color-2: #052c15;
            --rim-color: #2a2a2a;
            --felt-texture: none;
            --rim-texture: none;
        }

        html {
            height: 100%;
            overflow: hidden;
            background: #000000;
        }
        body {
            overflow: hidden !important;
            width: 100%;
            height: 100%;
            height: 100dvh;
            margin: 0;
            padding: 0;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
            touch-action: none !important;
            overscroll-behavior: none !important;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: radial-gradient(circle at center, #1b2838 0%, #000000 100%);
            color: #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }

        #start-btn {
            padding: 10px 20px;
            font-size: 1.2rem;
            background-color: #ffaa00;
            color: #000;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-bottom: 20px;
            font-weight: bold;
            transition: background-color 0.2s;
        }

        #start-btn:hover {
            background-color: #ff8800;
        }

        #poker-table {
            position: relative;
            width: 75vw;
            max-width: 1100px;
            height: 40vw;
            max-height: 550px;
            border-radius: 9999px;
            background: var(--rim-color) !important;
            border: none;
            box-shadow:
                inset 0 4px 6px rgba(255, 255, 255, 0.3),
                inset 0 -8px 15px rgba(0, 0, 0, 0.35),
                0 20px 50px rgba(0, 0, 0, 0.7);
        }

        /* Texture overlay */
        #poker-table::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            border: 25px solid transparent;
            border-radius: inherit;
            background: var(--rim-texture) border-box;
            -webkit-mask:
                linear-gradient(#fff 0 0) padding-box,
                linear-gradient(#fff 0 0) border-box;
            mask:
                linear-gradient(#fff 0 0) padding-box,
                linear-gradient(#fff 0 0) border-box;
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: 10;
            opacity: 0.5;
        }

        /* The Green Felt carved out inside */
        #poker-table::before {
            content: "";
            position: absolute;
            top: 25px;
            bottom: 25px;
            left: 25px;
            right: 25px;
            border-radius: inherit;
            pointer-events: none;
            z-index: 0;
            background:
                var(--felt-texture),
                radial-gradient(ellipse at center,
                    var(--felt-color-1) 0%,
                    var(--felt-color-2) 100%) !important;
            background-blend-mode: soft-light, normal;
            box-shadow:
                inset 0 0 120px rgba(0, 0, 0, 0.85),
                inset 0 0 30px rgba(0, 0, 0, 0.6),
                0 0 0 2px rgba(255, 255, 255, 0.15),
                inset 0 8px 15px rgba(0, 0, 0, 0.6),
                inset 0 0 12px 2px rgba(0, 0, 0, 0.5);
        }

        /* Pot Area & Board Container */
        #center-area {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            z-index: 5;
        }

        #board-container {
            display: flex;
            gap: 10px;
            min-height: 65px;
        }

        .board-card {
            width: 70px;
            height: 100px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            background-color: transparent;
            border: none;
            box-shadow: none;
            filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
        }

        #pot-display {
            position: absolute !important;
            left: 50% !important;
            top: 30% !important;
            transform: translate(-50%, -50%) !important;
            z-index: 10;
            display: flex !important;
            align-items: center;
            justify-content: center;
            min-height: 80px;
            white-space: nowrap !important;
            width: fit-content;
            min-width: 80px;
        }

        #main-pot-stack {
            position: absolute !important;
            left: 50% !important;
            top: 68% !important;
            transform: translate(-50%, -50%) !important;
            z-index: 4;
            display: flex !important;
            flex-direction: row !important;
            justify-content: center !important;
            align-items: flex-end !important;
            gap: 15px !important;
        }

        #main-pot-stack .chip-stack {
            display: flex !important;
            flex-direction: column-reverse !important;
            align-items: center !important;
            position: relative;
        }

        /* Casino Chips */
        .chip-stack-container {
            display: flex;
            flex-direction: row;
            align-items: flex-end;
            justify-content: center;
            gap: 2px;
        }

        .bet-container {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 3px;
            position: absolute;
            transition: transform 0.6s ease-in-out, opacity 0.5s;
            z-index: 4 !important;
        }

        .chip-stack {
            display: flex;
            flex-direction: column-reverse;
        }

        .chip {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: Arial, sans-serif;
            font-weight: 900;
            font-size: 9px;
            color: #111;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.6),
                inset 0 3px 4px rgba(255, 255, 255, 0.7),
                inset 0 -3px 4px rgba(0, 0, 0, 0.6);
            margin-top: -22px;
            position: relative;
        }

        .chip-stack .chip:first-child {
            margin-top: 0;
        }

        /* Chip Drop Animation */
        @keyframes dropChip {
            0% {
                transform: translateY(-50px);
                opacity: 0;
            }

            100% {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .chip-animated {
            opacity: 0;
            animation: dropChip 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .chip-fly-to-pot {
            transition: transform 0.6s ease-in-out !important;
            z-index: 999 !important;
            position: relative;
        }

        .ghost-chip {
            position: fixed !important;
            z-index: 9999 !important;
            transition:
                left 0.6s ease-in-out,
                top 0.6s ease-in-out !important;
            pointer-events: none;
            margin: 0 !important;
        }

        .bet-value {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border-radius: 10px;
            padding: 2px 8px;
            font-size: 12px;
            margin-top: 5px;
            text-align: center;
        }

        /* Blue 1 */
        .chip-1 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#1565c0 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #0d47a1;
        }

        /* Red 5 */
        .chip-5 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#c62828 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #8e1d1d;
        }

        /* Green 25 */
        .chip-25 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#2e7d32 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #1b5e20;
        }

        /* Black 100 */
        .chip-100 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#212121 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #000;
        }

        /* Purple 500 */
        .chip-500 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#6a1b9a 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #4a148c;
        }

        /* Orange 1000 */
        .chip-1000 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#e65100 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #bf360c;
            font-size: 7px;
        }

        /* Gold 5000 */
        .chip-5000 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#f9a825 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #f57f17;
            font-size: 7px;
        }

        /* Pink 10000 */
        .chip-10000 {
            background:
                radial-gradient(circle at center, #fff 40%, transparent 41%),
                repeating-conic-gradient(#ad1457 0deg 20deg, #fff 20deg 40deg);
            border: 1px solid #880e4f;
            font-size: 6px;
        }

        /* Premium Pot Display */
        #pot-amount {
            background: rgba(10, 10, 10, 0.85);
            border: 1px solid #333;
            border-radius: 20px;
            padding: 8px 24px;
            color: #4ade80;
            font-family: "Courier New", Courier, monospace;
            font-weight: 900;
            font-size: 15px;
            box-shadow:
                0 8px 15px rgba(0, 0, 0, 0.5),
                inset 0 2px 2px rgba(255, 255, 255, 0.15);
            text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
            backdrop-filter: blur(4px);
            margin-top: 10px;
            text-align: center;
        }

        /* Styling for generated seats */
        .seat {
            isolation: isolate !important;
            position: absolute;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 50 !important;
        }

        .seat:hover {
            transform: translate(-50%, -50%) scale(1.05);
        }

        .seat.occupied {
            cursor: default;
        }

        /* Empty Seat Design */
        .seat.empty .empty-seat-content {
            background: rgba(10, 10, 10, 0.7);
            border: 1px dashed rgba(255, 255, 255, 0.4);
            border-radius: 20px;
            padding: 8px 16px;
            color: #aaa;
            font-size: 12px !important;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 90px !important;
            min-height: 55px !important;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
        }

        .seat.empty .empty-seat-content:hover {
            background: rgba(30, 30, 30, 0.9);
            border-color: rgba(255, 255, 255, 0.8);
            color: #fff;
        }

        /* Main Unified Container (The Plaque) */
        .player-plaque,
        .player-info,
        .seat-info {
            display: flex;
            align-items: stretch;
            background: linear-gradient(to bottom, #2a2a2a, #0a0a0a);
            border: 2px solid #444;
            border-radius: 8px;
            box-shadow:
                inset 0 1px 1px rgba(255, 255, 255, 0.3),
                0 6px 12px rgba(0, 0, 0, 0.8);
            overflow: hidden;
            position: relative !important;
            z-index: 9999 !important;
        }

        /* Visual order adjustment for right-side seats */
        .player-plaque.right-side {
            flex-direction: row-reverse;
        }

        /* Internal Sections - No individual borders or shadows */
        .plaque-avatar-section {
            width: 65px !important;
            height: 65px !important;
            background-color: #222;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-right: 1px solid rgba(0, 0, 0, 0.5);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Adjust internal borders based on side */
        .player-plaque.right-side .plaque-avatar-section {
            border-right: none;
            border-left: 1px solid rgba(0, 0, 0, 0.5);
        }

        .plaque-info-section {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 15px !important;
            min-width: 110px !important;
            text-align: center;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
        }

        .player-name {
            color: #fff;
            font-size: 13px !important;
            font-weight: bold;
            margin-bottom: 2px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            max-width: 100px !important;
        }

        .player-balance {
            color: #4ade80;
            font-size: 16px !important;
            font-weight: 900;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }

        /* Folded state styling */
        .seat.folded .player-plaque,
        .seat.folded .player-cards {
            opacity: 0.5;
            filter: grayscale(100%);
        }

        /* The Timebank Ring container */
        .timebank-ring {
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 12px;
            z-index: 9990 !important;
            --timer-pct: 100%;
            --timer-color: #00d2ff;
            background: conic-gradient(var(--timer-color) var(--timer-pct),
                    transparent 0);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* State Classes */
        .timebank-ring.active {
            opacity: 1;
        }

        .timebank-ring.warning {
            --timer-color: #ffa500;
        }

        .timebank-ring.danger {
            --timer-color: #ff3333;
            animation: timebank-pulse 0.5s infinite alternate;
        }

        @keyframes timebank-pulse {
            from {
                box-shadow: 0 0 5px #ff3333;
            }

            to {
                box-shadow: 0 0 20px #ff3333;
            }
        }

        /* Seat Alignment Overrides */
        /* Adjustment for visual symmetry between top seats */
        .visual-5 {
            bottom: auto !important;
            margin-top: 0 !important;
            top: 4% !important;
        }

        /* Desktop Positioning Layer (Large Viewports) */
        @media (min-width: 951px) {

            /* Right-side seat alignment (Vertical sync with Seat 4) */
            .visual-6 {
                bottom: auto !important;
                margin-top: 0 !important;
                margin-right: 0 !important;
                top: 25% !important;
                left: auto !important;
                right: calc(-0.5% - 5px) !important;
                transform: translateY(-50%) !important;
            }

            .visual-6>div {
                transform: none !important;
            }

            /* Lower right-side seat alignment (Vertical sync with Seat 3) */
            .visual-7 {
                bottom: auto !important;
                margin-top: 0 !important;
                left: auto !important;
                top: 58.682% !important;
                right: calc(-0.5% - 5px) !important;
                transform: translateY(-50%) !important;
            }

            .visual-7>div {
                transform: translate(0, 20px) !important;
            }

            /* Left-side lower seat adjustment */
            .visual-2 {
                right: auto !important;
                left: calc(6.698% - 85px) !important;
                transform: translateY(-50%) !important;
            }

            .visual-2>div {
                transform: translate(0, 20px) !important;
            }

            /* Seat 8: Chips move inward relative to the plaque */
            .visual-bet-7,
            .visual-7 .player-plaque-wrapper .pucks-container {
                margin-left: -120px !important;
                transform: translate(-50%, -50%) !important;
            }

            /* Seat 3: Symmetry mirror */
            .visual-bet-2,
            .visual-2 .player-plaque-wrapper .pucks-container {
                margin-left: 120px !important;
                transform: translate(-50%, -50%) !important;
            }

            /* Adjust chip positioning for Seats 6 and 7 */
            .visual-bet-5,
            .visual-bet-6 {
                margin-left: -35px !important;
            }

            #main-pot-stack,
            #main-pot-stack *,
            #main-pot-stack .puck,
            #main-pot-stack .chip {
                z-index: 9999 !important;
            }
        }

        /* Chips container */
        .pucks-container {
            position: absolute !important;
            display: flex !important;
            gap: 4px !important;
            z-index: 25 !important;
            pointer-events: none !important;
            margin: 0 !important;
        }

        /* Chip positioning by seat */

        /* Bottom seats */
        .visual-0 .player-plaque-wrapper .pucks-container,
        .visual-1 .player-plaque-wrapper .pucks-container,
        .visual-8 .player-plaque-wrapper .pucks-container {
            top: auto !important;
            bottom: calc(100% + 5px) !important;
            justify-content: flex-end !important;
        }

        .visual-0 .player-plaque-wrapper .pucks-container {
            left: calc(100% + 10px) !important;
            right: auto !important;
            bottom: auto !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
        }

        .visual-1 .player-plaque-wrapper .pucks-container {
            right: 0 !important;
            left: auto !important;
        }

        .visual-8 .player-plaque-wrapper .pucks-container {
            left: 0 !important;
            right: auto !important;
        }

        /* Top seats */
        .visual-3 .player-plaque-wrapper .pucks-container,
        .visual-4 .player-plaque-wrapper .pucks-container,
        .visual-5 .player-plaque-wrapper .pucks-container,
        .visual-6 .player-plaque-wrapper .pucks-container {
            top: calc(100% + 35px) !important;
            bottom: auto !important;
            justify-content: flex-end !important;
        }

        .visual-3 .player-plaque-wrapper .pucks-container,
        .visual-4 .player-plaque-wrapper .pucks-container {
            right: 0 !important;
            left: auto !important;
        }

        .visual-5 .player-plaque-wrapper .pucks-container {
            left: 40px !important;
            right: auto !important;
        }

        .visual-6 .player-plaque-wrapper .pucks-container {
            left: 0 !important;
            right: auto !important;
        }

        /* Middle seats chip positioning */
        .visual-2 .player-plaque-wrapper .pucks-container {
            top: 50% !important;
            transform: translateY(-50%) !important;
            right: -25px !important;
            left: auto !important;
        }

        .visual-7 .player-plaque-wrapper .pucks-container {
            top: 50% !important;
            transform: translateY(-50%) !important;
            left: -35px !important;
            right: auto !important;
        }

        /* Puck Assets Styling */
        .puck {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 900;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.6),
                inset 0 2px 3px rgba(255, 255, 255, 0.6),
                inset 0 -2px 3px rgba(0, 0, 0, 0.3);
            border: 1px solid #777;
        }

        .dealer-puck {
            background: #fff;
            color: #000;
            border-color: #ccc;
        }

        .sb-puck {
            background: #1976d2;
            color: #fff;
            border-color: #0d47a1;
        }

        .bb-puck {
            background: #d32f2f;
            color: #fff;
            border-color: #9a0007;
        }

        /* Current Bet UI */
        .current-bet {
            position: absolute;
            z-index: 5;
        }

        /* Player Card Layout (Opponents) */
        .seat .player-cards,
        .seat .cards-container {
            z-index: 1 !important;
            bottom: 35px;
            position: absolute !important;
            display: flex;
            justify-content: center;
            pointer-events: none;
        }

        /* Individual Card Stacking Priority */
        .seat .card,
        .player-cards .card,
        .cards-container .card {
            z-index: 1 !important;
        }

        /* Card components */
        .card {
            width: 60px;
            height: 85px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            background-color: transparent;
            border: none;
            box-shadow: none;
            filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
            transform: scale(1.35);
            transform-origin: bottom center;
        }

        .card:first-child {
            margin-left: 0;
            transform: rotate(-10deg) translateX(10px) translateY(5px);
        }

        .card:nth-child(2) {
            transform: rotate(10deg) translateX(-10px) translateY(5px);
        }

        /* Card back */
        .card-back {
            background-color: transparent !important;
            background-image: url('Cards/classic/back.png') !important;
            background-size: cover !important;
            background-position: center !important;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* Card animation */
        @keyframes dealCard {
            0% {
                opacity: 0;
                transform: translate(var(--startX, 0px), var(--startY, 0px)) scale(0) rotate(-180deg);
            }

            100% {
                opacity: 1;
                transform: translate(0, 0) scale(1) rotate(0deg);
            }
        }

        .card-animated {
            opacity: 0;
            animation: dealCard 0.5s ease-out forwards;
        }

        /* Gameplay Action Bar */
        #action-bar {
            position: fixed;
            bottom: 30px;
            display: none;
            flex-direction: row;
            align-items: center;
            gap: 15px;
            z-index: 100;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            border-radius: 15px;
            padding: 15px 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* Pre-Action Bar Interface */
        #pre-action-bar {
            display: none;
            position: fixed;
            bottom: 30px;
            flex-direction: row;
            align-items: center;
            gap: 15px;
            z-index: 100;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            border-radius: 15px;
            padding: 15px 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* Pre-Action Radio Customization */
        .pre-action-btn input[type="radio"] {
            display: none;
        }

        .pre-action-btn {
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
            border: 1px solid #444;
            border-radius: 8px;
            color: #aaa;
            background: linear-gradient(to bottom, #333, #111);
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
            text-align: center;
            user-select: none;
        }

        .pre-action-btn:hover {
            filter: brightness(1.2);
            color: #fff;
            transform: translateY(-2px);
        }

        /* Active Pre-Action States */
        .pre-action-btn.active-fold {
            background: linear-gradient(to bottom, #d32f2f, #9a0007);
            color: white;
            border-color: #ff5252;
            box-shadow: 0 0 15px rgba(211, 47, 47, 0.8);
        }

        .pre-action-btn.active-check {
            background: linear-gradient(to bottom, #388e3c, #1b5e20);
            color: white;
            border-color: #69f0ae;
            box-shadow: 0 0 15px rgba(56, 142, 60, 0.8);
        }

        .pre-action-btn.active-call {
            background: linear-gradient(to bottom, #1976d2, #0d47a1);
            color: white;
            border-color: #448aff;
            box-shadow: 0 0 15px rgba(25, 118, 210, 0.8);
        }

        /* Pre-Action Interface Reset */
        #clear-pre-action {
            background: linear-gradient(to bottom, #555, #333);
            border: 1px solid #777;
            color: #ddd;
        }

        /* Hero hand display */
        #hero-hand-display {
            position: fixed;
            bottom: 85px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            gap: -15px;
            z-index: 50;
            pointer-events: none;
        }

        #hero-hand-display .card {
            transform: scale(3) translateY(20px);
            transform-origin: bottom center;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
        }

        /* Card fan effect */
        #hero-hand-display .card:first-child {
            transform: scale(3) rotate(-6deg) translateY(20px);
        }

        #hero-hand-display .card:last-child {
            transform: scale(3) rotate(6deg) translateY(20px);
        }

        /* Standard Action Buttons */
        .action-btn {
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            transition:
                transform 0.2s,
                filter 0.2s,
                box-shadow 0.2s;
        }

        .action-btn:hover {
            filter: brightness(1.2);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }

        .action-btn:active {
            transform: scale(0.95) translateY(0);
        }

        /* Specific Button Color Schemes */
        #btn-fold {
            background: linear-gradient(to bottom, #d32f2f, #9a0007);
        }

        #btn-call {
            background: linear-gradient(to bottom, #388e3c, #1b5e20);
        }

        #btn-raise {
            background: linear-gradient(to bottom, #1976d2, #0d47a1);
        }

        #btn-all-in {
            background: linear-gradient(to bottom, #ffd54f, #ff8f00);
            color: #3e2723;
            text-shadow: none;
        }

        /* Bet Controls Interaction */
        #bet-amount {
            font-size: 1.2rem;
            padding: 10px;
            width: 80px;
            border-radius: 8px;
            border: none;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }

        #bet-slider {
            width: 150px;
            accent-color: #ffaa00;
        }

        /* Chat System Console */
        #chat-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 320px;
            height: 250px;
            background: rgba(15, 15, 15, 0.85);
            border: 2px solid #444;
            border-radius: 8px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            z-index: 100;
            font-family: Arial, sans-serif;
        }

        #chat-history {
            flex-grow: 1;
            overflow-y: auto;
            padding: 10px;
            font-size: 12px;
            line-height: 1.4;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        /* Chat Scrollbar Styling */
        #chat-history::-webkit-scrollbar {
            width: 6px;
        }

        #chat-history::-webkit-scrollbar-track {
            background: transparent;
        }

        #chat-history::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 3px;
        }

        /* Input Area and Form Elements */
        #chat-input-area {
            display: flex;
            padding: 8px;
            background: #111;
            border-top: 1px solid #333;
            border-radius: 0 0 8px 8px;
        }

        #chat-input {
            border-radius: 0 4px 4px 0 !important;
            flex-grow: 1;
            background: #222;
            color: #fff;
            border: 1px solid #444;
            padding: 6px;
            outline: none;
        }

        #chat-send {
            background: #1565c0;
            color: #fff;
            border: none;
            padding: 6px 12px;
            margin-left: 6px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        /* Message Components */
        .chat-timestamp {
            color: #777;
            font-size: 10px;
            font-family: monospace;
            margin-right: 5px;
        }

        #emoji-btn {
            background: #222;
            border: 1px solid #444;
            border-right: none;
            color: #fff;
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 4px 0 0 4px;
            font-size: 14px;
            transition: background 0.2s;
        }

        #emoji-btn:hover {
            background: #333;
        }

        /* Premium Emoji Picker */
        #emoji-picker {
            position: absolute;
            bottom: calc(100% + 12px);
            left: 0;
            background: rgba(20, 20, 20, 0.85) !important;
            backdrop-filter: blur(15px) !important;
            -webkit-backdrop-filter: blur(15px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 12px !important;
            padding: 15px !important;
            display: grid !important;
            grid-template-columns: repeat(6, 1fr) !important;
            gap: 12px !important;
            width: max-content !important;
            z-index: 101;
            box-shadow:
                0 10px 30px rgba(0, 0, 0, 0.8),
                inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
            transform-origin: bottom left;
        }

        #emoji-picker.hidden {
            display: none !important;
        }

        /* Picker Entrance Animation */
        #emoji-picker:not(.hidden) {
            animation: popUpPicker 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        @keyframes popUpPicker {
            0% {
                opacity: 0;
                transform: scale(0.5) translateY(20px);
            }

            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Emoji Individual Items */
        .emoji-item {
            cursor: pointer;
            font-size: 26px;
            text-align: center;
            user-select: none;
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: transparent;
            filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.8));
        }

        .emoji-item:hover {
            transform: scale(1.4) translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.4);
            filter: drop-shadow(0 8px 15px rgba(0, 210, 255, 0.9));
            z-index: 2;
        }

        /* Message Type Styling */
        .msg-chat {
            color: #fff;
        }

        .msg-chat .username {
            color: #64b5f6;
            font-weight: bold;
        }

        .msg-system {
            color: #888;
            font-style: italic;
        }

        .msg-action {
            color: #ffb300;
        }

        /* Winner and Showdown Visuals */
        .msg-winner {
            color: #4ade80;
            font-weight: bold;
        }

        .chat-showdown {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 5px;
            padding: 5px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 6px;
        }

        .chat-card-group {
            display: flex;
            gap: 3px;
        }

        .chat-mini-card {
            width: 18px;
            height: 26px;
            background: #fff;
            border-radius: 3px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 11px;
            font-weight: bold;
            border: 1px solid #777;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.2s;
        }

        .chat-divider {
            color: #888;
            font-size: 14px;
        }

        .chat-mini-card.winning-glow {
            box-shadow: 0 0 8px 2px #00d2ff !important;
            border: 1px solid #00d2ff !important;
            transform: scale(1.1);
            z-index: 2;
        }

        /* Dynamic Visual Positioning (Radial Offsets) */

        /* Top Seats: Offset Upwards */
        .visual-5>div,
        .visual-6>div {
            transform: translateY(-25px);
        }

        /* Bottom Seats: Offset Downwards */
        .visual-0>div,
        .visual-1>div,
        .visual-8>div {
            transform: translateY(25px);
        }

        /* Side Seat Individual Adjustments */
        .visual-3>div {
            transform: translateX(-40px);
        }

        .visual-4>div {
            transform: translate(-30px, -20px);
        }

        .visual-7>div {
            transform: translate(30px, -20px);
        }

        .visual-2>div {
            transform: translate(-30px, 20px);
        }

        .visual-9>div {
            transform: translate(30px, 20px);
        }

        /* Speech Bubble Interface */
        .speech-bubble {
            position: absolute;
            top: 100%;
            left: 0;
            transform: translateY(-10px);
            background: rgba(25, 25, 25, 0.95);
            color: #ffffff;
            border: 1px solid #444;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            white-space: normal;
            max-width: 220px;
            text-align: left;
            pointer-events: none;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 100;
            margin-top: 15px;
        }

        /* Upward pointing triangle (Default) */
        .speech-bubble::after {
            content: "";
            position: absolute;
            bottom: 100%;
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent rgba(25, 25, 25, 0.95) transparent;
            left: 32px;
            margin-left: -6px;
        }

        /* Visibility state */
        .speech-bubble.show {
            opacity: 1;
            transform: translateY(0px);
        }

        /* Bottom Seats Positioning (Inverted Bubbles) */
        .visual-0 .speech-bubble,
        .visual-1 .speech-bubble,
        .visual-8 .speech-bubble {
            top: auto !important;
            bottom: 100% !important;
            margin-top: 0 !important;
            margin-bottom: 15px !important;
            transform: translateY(10px) !important;
        }

        .visual-0 .speech-bubble.show,
        .visual-1 .speech-bubble.show,
        .visual-8 .speech-bubble.show {
            transform: translateY(0px) !important;
        }

        /* Downward pointing triangle for inverted bubbles */
        .visual-0 .speech-bubble::after,
        .visual-1 .speech-bubble::after,
        .visual-8 .speech-bubble::after {
            top: 100% !important;
            bottom: auto !important;
            border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent !important;
        }

        /* Right-Side Seats Alignment Overrides */
        .visual-5 .speech-bubble,
        .visual-6 .speech-bubble,
        .visual-7 .speech-bubble,
        .visual-8 .speech-bubble {
            left: auto;
            right: 0;
            text-align: right;
        }

        .visual-5 .speech-bubble::after,
        .visual-6 .speech-bubble::after,
        .visual-7 .speech-bubble::after,
        .visual-8 .speech-bubble::after {
            left: auto;
            right: 32px;
            margin-left: 0;
            margin-right: -6px;
        }

        /* Specific positional adjustments */
        .visual-7 .speech-bubble {
            margin-top: -30px !important;
        }

        /* Pot Win Animation */
        .pot-animating {
            transition:
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.8s ease-in !important;
            z-index: 200 !important;
            pointer-events: none;
        }

        /* Winner Popup Interface */
        #winner-pop-up {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 300;
        }

        #winner-pop-up.hidden {
            display: none !important;
        }

        .winner-popup-content {
            background: linear-gradient(135deg, #1a1a1a, #000);
            border: 2px solid #d4af37;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: #fff;
            box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
            min-width: 350px;
            max-width: 450px;
            word-wrap: break-word;
        }

        .winner-hand-name {
            font-size: 20px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 4px;
        }

        .winner-pots-detail {
            font-size: 13px;
            color: #d4af37;
            margin-bottom: 2px;
        }

        .winner-chips-total {
            font-size: 16px;
            font-weight: bold;
            color: #4caf50;
        }

        /* Winner Cards Display Layout */
        #winner-cards-container {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
            padding: 10px;
        }

        /* Individual Card Style in Popup */
        .popup-real-card {
            width: 50px;
            height: 70px;
            background-size: cover;
            background-position: center;
            border-radius: 4px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
        }

        .popup-real-card.winning-glow {
            box-shadow: 0 0 15px 4px #00d2ff !important;
            transform: scale(1.05);
            z-index: 10;
        }

        /* Winner Identity & Hand Info */
        .winner-header {
            font-size: 18px;
            font-weight: bold;
            color: #d4af37;
            margin-bottom: 15px;
            text-transform: uppercase;
        }

        .winner-player-info {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .winner-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid #d4af37;
            background-size: cover;
            background-position: center;
            background-color: #333;
            flex-shrink: 0;
        }

        .winner-name {
            font-size: 22px;
            font-weight: bold;
        }

        .winner-hand-desc {
            font-size: 16px;
            color: #ccc;
        }

        /* Avatar Picker Styles */
        .avatar-option {
            width: 100px !important;
            height: 100px !important;
            border-radius: 50%;
            cursor: pointer;
            background-size: cover;
            background-position: center;
            border: 3px solid transparent;
            transition: all 0.2s;
            background-color: #222;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        .avatar-option:hover {
            transform: scale(1.1);
            border-color: #00d2ff;
            box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
        }

        .avatar-option.selected {
            border-color: #4ade80;
            box-shadow: 0 0 20px #4ade80;
            transform: scale(1.05);
        }

        .hero-seat .plaque-avatar-section {
            cursor: pointer;
            transition: filter 0.2s;
        }

        .hero-seat .plaque-avatar-section:hover {
            filter: brightness(1.3);
        }

        /* Avatar Grid Scrollbar Adjustment */
        #avatar-grid::-webkit-scrollbar {
            width: 6px;
        }

        #avatar-grid::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 3px;
        }

        /* Start Game Interface Suppression */
        #btn-start-game,
        .start-game-btn,
        #start-btn {
            display: none !important;
        }

        /* Cinematic Countdown Display */
        #countdown-display {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 64px;
            font-weight: 900;
            color: #d4af37;
            text-shadow:
                0 10px 30px rgba(0, 0, 0, 0.9),
                0 0 15px rgba(212, 175, 55, 0.6);
            z-index: 50;
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.5s ease-out;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        #countdown-display.hidden {
            opacity: 0;
        }

        /* Table Watermark Logo */
        #table-watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: "Poppins", sans-serif;
            font-weight: 700;
            font-size: 85px;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.08);
            mix-blend-mode: overlay;
            text-shadow:
                0px -1px 2px rgba(0, 0, 0, 0.3),
                0px 1px 2px rgba(255, 255, 255, 0.1);
            z-index: 1;
            pointer-events: none;
            user-select: none;
        }

        /* Theme Sidebar UI Controls */
        #theme-toggle-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(20, 20, 20, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 24px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
        }

        #theme-toggle-btn:hover {
            transform: scale(1.1);
            background: rgba(40, 40, 40, 0.9);
        }

        /* Theme Sidebar Console */
        #theme-sidebar {
            position: fixed;
            top: 0;
            right: -320px;
            width: 300px;
            height: 100vh;
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(15px);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 999;
            transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            padding: 25px 20px 20px 20px !important;
            color: white;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
            font-family: "Poppins", sans-serif;
            overflow-y: auto;
        }

        /* Sidebar Control Visibility */
        .sidebar-close-btn,
        #sidebar-close-btn {
            display: none !important;
        }

        #theme-sidebar.open {
            right: 0;
        }

        /* Sidebar Section Typography */
        .theme-section-title {
            font-size: 14px;
            text-transform: uppercase;
            color: #888;
            letter-spacing: 1px;
            margin-bottom: 15px;
            border-bottom: 1px solid #333;
            padding-bottom: 5px;
        }

        /* Theme Options Grid Layout */
        .theme-options-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 30px;
        }

        /* Color Selection Buttons */
        .color-btn {
            height: 40px;
            border-radius: 8px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .color-btn:hover {
            transform: translateY(-3px);
        }

        .color-btn.active {
            border-color: #d4af37;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

        /* VIP Onyx Chip Theme Design */
        [data-chip-theme="onyx"] .chip {
            color: #d4af37;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.8),
                inset 0 3px 4px rgba(255, 255, 255, 0.15),
                inset 0 -3px 4px rgba(0, 0, 0, 0.9);
        }

        [data-chip-theme="onyx"] .chip-1 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #1565c0 20deg 40deg);
            border-color: #000;
        }

        [data-chip-theme="onyx"] .chip-5 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #c62828 20deg 40deg);
            border-color: #000;
        }

        [data-chip-theme="onyx"] .chip-25 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #2e7d32 20deg 40deg);
            border-color: #000;
        }

        [data-chip-theme="onyx"] .chip-100 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #d4af37 20deg 40deg);
            border-color: #000;
        }

        [data-chip-theme="onyx"] .chip-500 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #6a1b9a 20deg 40deg);
            border-color: #000;
        }

        [data-chip-theme="onyx"] .chip-1000 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #e65100 20deg 40deg);
            border-color: #000;
            font-size: 7px;
        }

        [data-chip-theme="onyx"] .chip-5000 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #f9a825 20deg 40deg);
            border-color: #000;
            font-size: 7px;
        }

        [data-chip-theme="onyx"] .chip-10000 {
            background:
                radial-gradient(circle at center,
                    #222 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#111 0deg 20deg, #ad1457 20deg 40deg);
            border-color: #000;
            font-size: 6px;
        }

        /* Monaco Platinum Chip Theme */
        [data-chip-theme="monaco"] .chip {
            color: #222;
            font-weight: 900;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.4),
                inset 0 3px 4px rgba(255, 255, 255, 0.9),
                inset 0 -3px 4px rgba(0, 0, 0, 0.1);
        }

        [data-chip-theme="monaco"] .chip-1 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #1565c0 20deg 40deg);
            border-color: #aaa;
        }

        [data-chip-theme="monaco"] .chip-5 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #c62828 20deg 40deg);
            border-color: #aaa;
        }

        [data-chip-theme="monaco"] .chip-25 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #2e7d32 20deg 40deg);
            border-color: #aaa;
        }

        [data-chip-theme="monaco"] .chip-100 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #212121 20deg 40deg);
            border-color: #aaa;
        }

        [data-chip-theme="monaco"] .chip-500 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #6a1b9a 20deg 40deg);
            border-color: #aaa;
        }

        [data-chip-theme="monaco"] .chip-1000 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #e65100 20deg 40deg);
            border-color: #aaa;
            font-size: 7px;
        }

        [data-chip-theme="monaco"] .chip-5000 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #f9a825 20deg 40deg);
            border-color: #aaa;
            font-size: 7px;
        }

        [data-chip-theme="monaco"] .chip-10000 {
            background:
                radial-gradient(circle at center,
                    #f5f5f5 38%,
                    #ccc 41%,
                    transparent 42%),
                repeating-conic-gradient(#fff 0deg 20deg, #ad1457 20deg 40deg);
            border-color: #aaa;
            font-size: 6px;
        }

        /* Cyber Neon Chip Theme */
        [data-chip-theme="cyber"] .chip {
            color: #0ff;
            text-shadow: 0 0 3px #0ff;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.8),
                inset 0 3px 4px rgba(255, 255, 255, 0.2),
                inset 0 -3px 4px rgba(0, 0, 0, 0.8);
        }

        [data-chip-theme="cyber"] .chip-1 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #00d2ff 20deg 40deg);
            border-color: #00d2ff;
        }

        [data-chip-theme="cyber"] .chip-5 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #ff003c 20deg 40deg);
            border-color: #ff003c;
        }

        [data-chip-theme="cyber"] .chip-25 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #00ff00 20deg 40deg);
            border-color: #00ff00;
        }

        /* Cyber Neon Chip Theme (Continued) */
        [data-chip-theme="cyber"] .chip-100 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #ffaa00 20deg 40deg);
            border-color: #ffaa00;
        }

        [data-chip-theme="cyber"] .chip-500 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #b026ff 20deg 40deg);
            border-color: #b026ff;
        }

        [data-chip-theme="cyber"] .chip-1000 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #e65100 20deg 40deg);
            border-color: #e65100;
            font-size: 7px;
        }

        [data-chip-theme="cyber"] .chip-5000 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #f9a825 20deg 40deg);
            border-color: #f9a825;
            font-size: 7px;
        }

        [data-chip-theme="cyber"] .chip-10000 {
            background:
                radial-gradient(circle at center,
                    #111 38%,
                    #000 41%,
                    transparent 42%),
                repeating-conic-gradient(#000 0deg 20deg, #ad1457 20deg 40deg);
            border-color: #ad1457;
            font-size: 6px;
        }

        /* Royal Emerald Chip Theme */
        [data-chip-theme="emerald"] .chip {
            color: #d4af37;
            font-weight: 900;
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.6),
                inset 0 3px 4px rgba(255, 255, 255, 0.2),
                inset 0 -3px 4px rgba(0, 0, 0, 0.8);
        }

        [data-chip-theme="emerald"] .chip-1 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #1565c0 20deg 40deg);
            border-color: #021c0b;
        }

        [data-chip-theme="emerald"] .chip-5 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #c62828 20deg 40deg);
            border-color: #021c0b;
        }

        [data-chip-theme="emerald"] .chip-25 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #2e7d32 20deg 40deg);
            border-color: #021c0b;
        }

        [data-chip-theme="emerald"] .chip-100 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #d4af37 20deg 40deg);
            border-color: #021c0b;
        }

        [data-chip-theme="emerald"] .chip-500 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #6a1b9a 20deg 40deg);
            border-color: #021c0b;
        }

        [data-chip-theme="emerald"] .chip-1000 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #e65100 20deg 40deg);
            border-color: #021c0b;
            font-size: 7px;
        }

        [data-chip-theme="emerald"] .chip-5000 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #f9a825 20deg 40deg);
            border-color: #021c0b;
            font-size: 7px;
        }

        [data-chip-theme="emerald"] .chip-10000 {
            background:
                radial-gradient(circle at center,
                    #0a3a1b 38%,
                    #0f5127 41%,
                    transparent 42%),
                repeating-conic-gradient(#0f5127 0deg 20deg, #ad1457 20deg 40deg);
            border-color: #021c0b;
            font-size: 6px;
        }

        /* Vintage Clay Chip Theme */
        [data-chip-theme="vintage"] .chip {
            color: #4e342e;
            font-weight: bold;
            box-shadow:
                0 3px 4px rgba(0, 0, 0, 0.4),
                inset 0 2px 3px rgba(255, 255, 255, 0.7),
                inset 0 -3px 4px rgba(0, 0, 0, 0.2);
        }

        [data-chip-theme="vintage"] .chip-1 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #90caf9 20deg 40deg);
            border-color: #a1887f;
        }

        /* Vintage Clay Chip Theme (Continued) */
        [data-chip-theme="vintage"] .chip-5 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #ef9a9a 20deg 40deg);
            border-color: #a1887f;
        }

        [data-chip-theme="vintage"] .chip-25 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #a5d6a7 20deg 40deg);
            border-color: #a1887f;
        }

        [data-chip-theme="vintage"] .chip-100 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #4e342e 20deg 40deg);
            border-color: #a1887f;
        }

        [data-chip-theme="vintage"] .chip-500 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #ce93d8 20deg 40deg);
            border-color: #a1887f;
        }

        [data-chip-theme="vintage"] .chip-1000 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #e65100 20deg 40deg);
            border-color: #a1887f;
            font-size: 7px;
        }

        [data-chip-theme="vintage"] .chip-5000 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #f9a825 20deg 40deg);
            border-color: #a1887f;
            font-size: 7px;
        }

        [data-chip-theme="vintage"] .chip-10000 {
            background:
                radial-gradient(circle at center,
                    #f4f1ea 38%,
                    #d7ccc8 41%,
                    transparent 42%),
                repeating-conic-gradient(#d7ccc8 0deg 20deg, #ad1457 20deg 40deg);
            border-color: #a1887f;
            font-size: 6px;
        }

        /* Sidebar & Sidebar Buttons Alignment */
        #theme-sidebar {
            right: auto !important;
            left: -320px;
            border-left: none !important;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8) !important;
            transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        }

        #theme-sidebar.open {
            right: auto !important;
            left: 0 !important;
        }

        /* Control Buttons Positioning (Middle-Left) */
        #mute-btn {
            right: auto !important;
            left: 20px !important;
            top: calc(50% - 55px) !important;
            position: fixed;
            z-index: 1000;
        }

        #theme-toggle-btn {
            right: auto !important;
            left: 20px !important;
            top: calc(50% + 5px) !important;
        }

        /* Smart Sliding Interaction */
        #theme-toggle-btn,
        #mute-btn {
            transition:
                left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.2s,
                background 0.2s !important;
        }

        /* Push buttons when sidebar is active */
        body:has(#theme-sidebar.open) #theme-toggle-btn,
        body:has(#theme-sidebar.open) #mute-btn {
            left: 320px !important;
        }

        /* Unified Button Symmetry */
        #mute-btn,
        #theme-toggle-btn {
            width: 50px !important;
            height: 50px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            font-size: 24px !important;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {

            /* Table scaling for small screens */
            #poker-table {
                width: 95vw !important;
                height: 55vw !important;
            }

            /* Scaled-down player plaques */
            .plaque-avatar-section {
                width: 45px !important;
                height: 45px !important;
            }

            .plaque-info-section {
                padding: 0 8px !important;
                min-width: 75px !important;
            }

            .player-name {
                font-size: 10px !important;
                max-width: 70px !important;
            }

            .player-balance {
                font-size: 12px !important;
            }

            /* Table elements and card scaling */
            #table-watermark {
                font-size: 40px !important;
            }

            .card {
                transform: scale(1.1);
            }

            /* Action dock */
            #action-bar,
            #pre-action-bar {
                width: 100vw !important;
                left: 0 !important;
                bottom: 0 !important;
                border-radius: 20px 20px 0 0 !important;
                padding: 15px 5px 20px 5px !important;
                gap: 5px !important;
                justify-content: space-around !important;
                border: none !important;
            }

            /* Buttons and controls */
            .action-btn,
            .pre-action-btn {
                padding: 12px 2px !important;
                font-size: 0.85rem !important;
                flex: 1 !important;
                margin: 0 2px !important;
            }

            /* Optimization for mobile screen space */
            #bet-slider {
                display: none !important;
            }

            #bet-amount {
                width: 55px !important;
                font-size: 0.9rem !important;
                padding: 5px !important;
            }

            /* Chat box */
            #chat-container {
                width: 220px !important;
                height: 160px !important;
                bottom: 90px !important;
                right: 10px !important;
            }

            /* Settings buttons */
            #mute-btn,
            #theme-toggle-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 18px !important;
                left: 10px !important;
            }

            /* Full-screen Sidebar for Touch Accessibility */
            #theme-sidebar {
                width: 100vw !important;
                left: -100vw !important;
            }

            /* Hide controls when sidebar is open on mobile */
            body:has(#theme-sidebar.open) #theme-toggle-btn,
            body:has(#theme-sidebar.open) #mute-btn {
                left: 100vw !important;
            }
        }

        /* Initial state for mobile chat toggle */
        #mobile-chat-btn {
            display: none;
        }

        /* Mobile landscape */
        @media (max-width: 950px) and (orientation: landscape) {

            /* Proportional Table Scaling */
            #poker-table {
                width: 64vw !important;
                height: 32vw !important;
                max-height: none !important;
                aspect-ratio: auto !important;
                position: absolute !important;
                top: 48% !important;
                left: 50% !important;
                margin: 0 !important;
                transform: translate(-50%, -50%) !important;
                box-shadow:
                    inset 0 2px 3px rgba(255, 255, 255, 0.3),
                    inset 0 -4px 8px rgba(0, 0, 0, 0.35),
                    0 10px 25px rgba(0, 0, 0, 0.7) !important;
            }

            /* Scaled Rim Thickness */
            #poker-table::after {
                border-width: 12px !important;
            }

            /* Optimized Felt & Inner Shadows (50% reduction for mobile) */
            #poker-table::before {
                top: 12px !important;
                bottom: 12px !important;
                left: 12px !important;
                right: 12px !important;
                box-shadow:
                    inset 0 0 60px rgba(0, 0, 0, 0.85),
                    inset 0 0 15px rgba(0, 0, 0, 0.6),
                    0 0 0 1px rgba(255, 255, 255, 0.15),
                    inset 0 4px 8px rgba(0, 0, 0, 0.6),
                    inset 0 0 6px 1px rgba(0, 0, 0, 0.5) !important;
            }

            /* HD Seat Typography and Scaling */
            .seat {
                transform: translate(-50%, -50%) !important;
            }

            .seat:hover {
                transform: translate(-50%, -50%) scale(1.05) !important;
            }

            .plaque-avatar-section {
                width: 50px !important;
                height: 50px !important;
            }

            .plaque-info-section {
                min-width: 90px !important;
                padding: 0 10px !important;
            }

            .player-name {
                font-size: 11px !important;
                max-width: 75px !important;
                margin-bottom: 2px !important;
            }

            .player-balance {
                font-size: 13px !important;
            }

            .seat.empty .empty-seat-content {
                min-width: 75px !important;
                min-height: 45px !important;
                font-size: 11px !important;
                border-radius: 15px !important;
            }

            /* Timebank Adjustment for Landscape */
            .timebank-ring {
                top: -3px !important;
                left: -3px !important;
                right: -3px !important;
                bottom: -3px !important;
                border-radius: 10px !important;
            }

            /* Speech bubble */

            /* Default: Bubbles appear below the plaque (Top & Left seats) */
            .player-plaque-wrapper .speech-bubble {
                top: 100% !important;
                margin: 5px 0 0 0 !important;
                left: 0 !important;
                right: auto !important;
                transform: translateY(-5px) !important;
                z-index: 9999 !important;
            }

            .player-plaque-wrapper .speech-bubble.show {
                transform: translateY(0px) !important;
            }

            /* Arrow alignment for 50px mobile avatars */
            .player-plaque-wrapper .speech-bubble::after {
                left: 25px !important;
                right: auto !important;
                margin-left: -6px !important;
            }

            /* Right-Side Seats: Align bubble and arrow to the right edge */
            .visual-5 .player-plaque-wrapper .speech-bubble,
            .visual-6 .player-plaque-wrapper .speech-bubble,
            .visual-7 .player-plaque-wrapper .speech-bubble {
                left: auto !important;
                right: 0 !important;
            }

            .visual-5 .player-plaque-wrapper .speech-bubble::after,
            .visual-6 .player-plaque-wrapper .speech-bubble::after,
            .visual-7 .player-plaque-wrapper .speech-bubble::after {
                left: auto !important;
                right: 25px !important;
                margin-right: -6px !important;
                margin-left: 0 !important;
            }

            /* Bottom Seats: Bubbles pop UPWARDS to clear the Action Bar */
            .visual-0 .player-plaque-wrapper .speech-bubble,
            .visual-1 .player-plaque-wrapper .speech-bubble,
            .visual-8 .player-plaque-wrapper .speech-bubble {
                top: auto !important;
                bottom: 100% !important;
                margin: 0 0 5px 0 !important;
                transform: translateY(5px) !important;
            }

            .visual-0 .player-plaque-wrapper .speech-bubble.show,
            .visual-1 .player-plaque-wrapper .speech-bubble.show,
            .visual-8 .player-plaque-wrapper .speech-bubble.show {
                transform: translateY(0px) !important;
            }

            /* Arrow inversion for bottom seats (Pointing DOWN) */
            .visual-0 .player-plaque-wrapper .speech-bubble::after,
            .visual-1 .player-plaque-wrapper .speech-bubble::after,
            .visual-8 .player-plaque-wrapper .speech-bubble::after {
                top: 100% !important;
                bottom: auto !important;
                border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent !important;
            }

            /* Right alignment specific to bottom-right seat */
            .visual-8 .player-plaque-wrapper .speech-bubble {
                left: auto !important;
                right: 0 !important;
            }

            .visual-8 .player-plaque-wrapper .speech-bubble::after {
                left: auto !important;
                right: 25px !important;
                margin-right: -6px !important;
                margin-left: 0 !important;
            }

            /* Board Layout & Center Area Adjustments */
            #center-area {
                top: 38% !important;
            }

            #board-container {
                display: flex !important;
                transform: none !important;
                gap: 6px !important;
            }

            /* Board Cards Scaling (+10% Native) */
            .board-card {
                width: 53px !important;
                height: 74px !important;
                transform: none !important;
                background-color: transparent !important;
                background-size: contain !important;
                background-position: center !important;
                background-repeat: no-repeat !important;
                filter: drop-shadow(1px 3px 4px rgba(0, 0, 0, 0.6)) !important;
                box-shadow: none !important;
                border-radius: 0 !important;
                image-rendering: auto !important;
            }

            /* Pot Indicator Adjustments */
            #pot-display {
                top: 12% !important;
                transform: translate(calc(-50% - 4px), -50%) !important;
            }

            #pot-amount {
                font-size: 12px !important;
                padding: 5px 15px !important;
            }

            /* Mobile pot stack styling */
            #main-pot-stack {
                top: 62% !important;
                transform: translate(-50%, -50%) !important;
                z-index: 15 !important;
            }

            .chip {
                width: 22px !important;
                height: 22px !important;
                font-size: 8px !important;
                margin-top: -18px !important;
            }

            .chip-stack .chip:first-child {
                margin-top: 0 !important;
            }

            /* Hero cards */

            /* Fixed Action Dock Positioning */
            #action-bar,
            #pre-action-bar {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100vw !important;
                background: transparent !important;
                backdrop-filter: none !important;
                border: none !important;
                box-shadow: none !important;
                pointer-events: none !important;
                padding: 10px 15px 20px 15px !important;
                align-items: center !important;
                z-index: 100 !important;
                /* Note: display flex handled by JS to manage visibility */
            }

            /* Re-enable interaction for interactive elements only */
            #action-bar>*,
            #pre-action-bar>* {
                pointer-events: auto !important;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8) !important;
            }

            /* Split-Dock Layout (Left/Right thumb focus) */
            #btn-call,
            #label-check {
                margin-right: auto !important;
            }

            /* Thumb-Optimized Button Styling */
            .action-btn,
            .pre-action-btn {
                flex: 0 0 auto !important;
                min-width: 75px !important;
                height: 45px !important;
                padding: 0 10px !important;
                margin: 0 4px !important;
                font-size: 13px !important;
                border-radius: 8px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            /* Bet slider */
            #bet-slider {
                display: block !important;
                position: absolute !important;
                bottom: 75px !important;
                right: 15px !important;
                width: 180px !important;
                height: 8px !important;
                accent-color: #ffaa00 !important;
                filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9)) !important;
                z-index: 105 !important;
            }

            /* Bet amount input */
            #bet-amount {
                position: absolute !important;
                bottom: 95px !important;
                right: 15px !important;
                width: 180px !important;
                height: 35px !important;
                font-size: 16px !important;
                margin: 0 !important;
                border-radius: 6px !important;
                text-align: center !important;
                border: 2px solid #555 !important;
                background: rgba(15, 15, 15, 0.95) !important;
                color: #4ade80 !important;
                font-weight: bold !important;
                z-index: 106 !important;
            }

            /* Plaque layering */
            .player-plaque-wrapper {
                position: relative !important;
                z-index: 50 !important;
            }

            /* Opponent cards display */
            .seat .player-cards {
                position: absolute !important;
                top: -32px !important;
                bottom: auto !important;
                left: 0 !important;
                right: 0 !important;
                margin: 0 auto !important;
                width: 70px !important;
                display: flex !important;
                justify-content: center !important;
                z-index: 1 !important;
                transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
            }

            /* Opponent card reveal */
            .seat .player-cards.opponent-reveal {
                width: 95px !important;
                top: -45px !important;
                z-index: 999 !important;
                filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) !important;
            }

            /* Reveal card sizing */
            .seat .player-cards.opponent-reveal .card {
                width: 55px !important;
                height: 77px !important;
                margin-right: -15px !important;
            }

            .seat .player-cards.opponent-reveal .card:last-child {
                margin-right: 0 !important;
            }

            /* Standard opponent card sizing */
            .seat .player-cards .card {
                width: 42px !important;
                height: 59px !important;
                transform: none !important;
            }

            /* Card fan effect */
            .seat .player-cards .card:first-child {
                transform: rotate(-10deg) translateY(5px) !important;
                margin-right: -16px !important;
            }

            .seat .player-cards .card:last-child {
                transform: rotate(10deg) translateY(5px) !important;
                margin-left: 0 !important;
            }

            /* Mobile landscape seat alignment */

            /* Seat 7 */
            .visual-6 {
                margin-top: 27px !important;
                margin-left: 35px !important;
            }

            /* Seat 9 */
            .visual-8 {
                margin-top: 0 !important;
                margin-left: 0 !important;
            }

            /* Seat 8 */
            .visual-7 {
                margin-top: 40px !important;
                margin-left: -30px !important;
            }

            /* Seat 3 */
            .visual-2 {
                margin-left: 30px !important;
            }

            /* Seat 4 */
            .visual-3 {
                margin-left: 10px !important;
            }

            /* Top seats spacing */

            /* Seat 6 */
            .visual-5 {
                margin-top: 25px !important;
                margin-left: 45px !important;
            }

            /* Seat 5 */
            .visual-4 {
                margin-top: 24px !important;
                margin-left: -15px !important;
            }

            /* Hero hand */
            #hero-hand-display {
                position: absolute !important;
                bottom: -35px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                z-index: 30 !important;
                gap: 0 !important;
                width: max-content !important;
            }

            /* Hero cards */
            #hero-hand-display .card {
                width: 82px !important;
                height: 115px !important;
                transform-origin: bottom center !important;
                box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.5) !important;
                transform: none !important;
            }

            /* Authentic Overlap Effect (Fan) */
            #hero-hand-display .card:first-child {
                transform: rotate(-5deg) translateY(5px) !important;
                margin-right: -45px !important;
            }

            #hero-hand-display .card:last-child {
                transform: rotate(5deg) translateY(5px) !important;
                margin-left: 0 !important;
            }

            /* Watermark Refinement for Mobile */
            #table-watermark {
                font-size: 35px !important;
                opacity: 0.6 !important;
            }

            /* Central Game Status & Messages */
            #game-status,
            #status-message,
            .status-overlay,
            #countdown-display,
            #game-message {
                position: absolute !important;
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
                width: auto !important;
                max-width: 80% !important;
                text-align: center !important;
                font-size: 28px !important;
                line-height: 1.2 !important;
                margin: 0 !important;
                padding: 0 !important;
                z-index: 50 !important;
            }

            /* Viewport Fixed Controls (Mobile Landscape) */
            #mute-btn {
                position: fixed !important;
                top: 10px !important;
                left: 10px !important;
                width: 40px !important;
                height: 40px !important;
                font-size: 16px !important;
                z-index: 1000 !important;
            }

            #theme-toggle-btn {
                position: fixed !important;
                top: 10px !important;
                left: 60px !important;
                width: 40px !important;
                height: 40px !important;
                font-size: 16px !important;
                z-index: 1000 !important;
            }

            /* Chat toggle */
            #mobile-chat-btn {
                position: fixed !important;
                right: 15px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                width: 48px !important;
                height: 48px !important;
                background: rgba(15, 15, 20, 0.75) !important;
                backdrop-filter: blur(5px) !important;
                border: 1px solid rgba(255, 255, 255, 0.15) !important;
                border-radius: 50% !important;
                box-shadow:
                    0 4px 15px rgba(0, 0, 0, 0.6),
                    inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                z-index: 1000 !important;
                cursor: pointer !important;
                color: #fff !important;
                transition:
                    transform 0.1s ease,
                    background 0.2s ease !important;
            }

            /* Interaction feedback */
            #mobile-chat-btn:active {
                transform: translateY(-50%) scale(0.9) !important;
                background: rgba(30, 30, 40, 0.9) !important;
            }

            /* SVG Icon Styling for Chat Toggle */
            #mobile-chat-btn svg {
                width: 22px !important;
                height: 22px !important;
                stroke: #fff !important;
                filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)) !important;
            }

            /* Full-Height Mobile Chat Sidebar */
            #chat-container {
                position: fixed !important;
                top: 0 !important;
                bottom: 0 !important;
                right: -320px !important;
                width: 300px !important;
                height: 100vh !important;
                background: rgba(15, 15, 15, 0.95) !important;
                border-radius: 0 !important;
                border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
                z-index: 1001 !important;
                transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
                display: flex !important;
                flex-direction: column !important;
            }

            #chat-container.open {
                right: 0 !important;
            }

            /* Chat scaling */
            #chat-container #chat-history {
                display: flex !important;
                flex: 1 !important;
                max-height: none !important;
                overflow-y: auto !important;
                padding-bottom: 10px !important;
            }

            #chat-input-area {
                padding: 10px !important;
                background: rgba(0, 0, 0, 0.5) !important;
            }

            /* Sidebar */

            /* Sidebar Ghost Drawer (Mobile) */
            #theme-sidebar {
                position: fixed !important;
                top: 0 !important;
                left: -300px !important;
                width: 250px !important;
                height: 100vh !important;
                padding: 20px 15px 15px 15px !important;
                overflow-y: auto !important;
                scrollbar-width: none !important;
                z-index: 10000 !important;
                transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
            }

            /* Active State */
            #theme-sidebar.open {
                left: 0 !important;
            }

            /* Close button */
            #sidebar-close-btn,
            .sidebar-close-btn {
                position: absolute !important;
                top: 15px !important;
                right: 15px !important;
                background: transparent !important;
                border: none !important;
                color: #fff !important;
                cursor: pointer !important;
                padding: 5px !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                transition: background-color 0.2s !important;
            }

            #sidebar-close-btn:hover,
            .sidebar-close-btn:hover {
                background-color: rgba(255, 255, 255, 0.1) !important;
            }

            #sidebar-close-btn svg,
            .sidebar-close-btn svg {
                width: 18px !important;
                height: 18px !important;
            }

            /* Tightened Sidebar Typography */
            #theme-sidebar h3 {
                font-size: 16px !important;
                margin-top: 0 !important;
                margin-bottom: 8px !important;
                padding-right: 35px !important;
            }

            /* Sidebar Compaction & Section Styling */
            .theme-section-title {
                font-size: 11px !important;
                margin-top: 12px !important;
                margin-bottom: 8px !important;
                padding-bottom: 3px !important;
            }

            .theme-options-grid {
                gap: 8px !important;
                margin-bottom: 12px !important;
            }

            .color-btn {
                height: 32px !important;
                border-radius: 6px !important;
            }

            .color-btn[data-type="chip"] {
                width: 32px !important;
                height: 32px !important;
            }

            /* UI Ghosting Effect when Sidebar is Open */
            body:has(#theme-sidebar.open) #mute-btn,
            body:has(#theme-sidebar.open) #theme-toggle-btn {
                opacity: 0 !important;
                pointer-events: none !important;
                transform: scale(0.8) !important;
            }

            /* Dealer Button (Puck) Mobile Scaling */
            .puck {
                width: 18px !important;
                height: 18px !important;
                font-size: 8px !important;
            }

            /* Community Cards Native Scaling */
            #board,
            .community-cards,
            .board,
            #board-container {
                transform: none !important;
                scale: 1 !important;
            }

            #board .card,
            .community-cards .card,
            .board .card,
            .board-card {
                transform: none !important;
                scale: 1 !important;
                width: 70px !important;
                height: 100px !important;
            }
        }

        /* Bet container styling */
        .seat .bet-container,
        .player-plaque-wrapper .bet-container,
        .player-cards .bet-container,
        .bet-container {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            z-index: 20 !important;
            position: absolute !important;
            pointer-events: none !important;
        }

        /* Chat Notification Badge */
        .chat-badge {
            position: absolute !important;
            top: -4px !important;
            left: -4px !important;
            background: #e53935 !important;
            color: #fff !important;
            font-size: 10px !important;
            font-weight: 900 !important;
            width: 18px !important;
            height: 18px !important;
            border-radius: 50% !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
            border: 1px solid #ffcdd2 !important;
            z-index: 10 !important;
            pointer-events: none !important;
            display: none !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .chat-badge.active {
            display: flex !important;
        }

        /* Hero Seat Cleanup (Hiding duplicates) */
        .seat.is-hero .player-cards,
        .seat.is-hero .card-container,
        .seat.is-hero .small-cards {
            display: none !important;
        }

        /* iPhone & small-height mobile - use CSS transform scale for perfect fit */
        @media (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
            /* Hide inline chat — only show via toggle button */
            #chat-container:not(.open) {
                display: none !important;
            }
        }

        /* Portrait Orientation Warning Interface */
        .portrait-warning {
            display: none;
        }

        @media (max-width: 950px) and (orientation: portrait) {
            .portrait-warning {
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background-color: #0a0a0c !important;
                z-index: 9999999 !important;
                color: #fff;
                text-align: center;
                padding: 20px;
            }

            .portrait-warning .rotate-icon {
                width: 80px !important;
                height: 80px !important;
                margin-bottom: 20px !important;
                color: #e53935 !important;
                animation: rotatePhone 2s infinite ease-in-out !important;
            }

            .portrait-warning h2 {
                font-size: 28px !important;
                margin-bottom: 10px !important;
                text-transform: uppercase !important;
                letter-spacing: 2px !important;
                color: #fbc02d !important;
                font-family: Arial, sans-serif !important;
            }

            .portrait-warning p {
                font-size: 15px !important;
                color: #aaa !important;
                max-width: 80% !important;
                line-height: 1.5 !important;
                font-family: Arial, sans-serif !important;
            }
        }

        /* Rotation Animation for Portrait Warning */
        @keyframes rotatePhone {
            0% {
                transform: rotate(0deg);
            }

            50% {
                transform: rotate(-90deg);
            }

            100% {
                transform: rotate(-90deg);
            }
        }

        /* Critical Visibility Management (Portrait Lock) */
        @media (max-width: 950px) and (orientation: portrait) {
            body>*:not(.portrait-warning) {
                display: none !important;
            }
        }
