        /* Root Variables */
        :root {
        /* Primary Colors (Green Theme) */
        --primary-50: #e8f5e9;
        --primary-100: #c8e6c9;
        --primary-200: #a5d6a7;
        --primary-300: #81c784;
        --primary-400: #66bb6a;
        --primary-500: #4caf50;
        --primary-600: #43a047;
        --primary-700: #388e3c;
        --primary-800: #2e7d32;
        --primary-900: #1b5e20;
        
        /* Secondary Colors (Yellow Theme) */
        --secondary-50: #fff8e1;
        --secondary-100: #ffecb3;
        --secondary-200: #ffe082;
        --secondary-300: #ffd54f;
        --secondary-400: #ffca28;
        --secondary-500: #ffc107;
        --secondary-600: #ffb300;
        --secondary-700: #ffa000;
        --secondary-800: #ff8f00;
        --secondary-900: #ff6f00;
        
        /* Base Colors */
        --white: #ffffff;
        --black: #000000;
        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-300: #d1d5db;
        --gray-400: #9ca3af;
        --gray-500: #6b7280;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --gray-900: #111827;
        
        /* Status Colors */
        --success: #4caf50;
        --warning: #ff9800;
        --error: #f44336;
        --info: #2196f3;
        
        /* Theme Variables - Default (Dark) */
        --bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
        --bg-secondary: rgba(255, 255, 255, 0.08);
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --border-color: rgba(255, 255, 255, 0.1);
        --card-bg: linear-gradient(135deg, #2b3158 0%, #3a3f6d 100%);
        --selected-card-bg: linear-gradient(135deg, #1e5b3e 0%, #2a7d5a 100%);
        --opponent-card-bg: linear-gradient(135deg, #5b1e1e 0%, #7d2a2a 100%);
        --accent-color: var(--primary-500);
        --highlight-color: var(--secondary-500);

            /* Overlay (Dark Theme) */
        --overlay-bg: rgba(0, 0, 0, 0.9);

        /* Countdown timer colors */
        --countdown-calm: #00e6a8;
        --countdown-urgent: #ff4444;
        }

        /* Light Theme */
        /* Light Theme - Modern Bright */
            [data-theme="light"] {
                --bg-primary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
                --bg-secondary: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
                --text-primary: #1a202c;
                --text-secondary: #4a5568;
                --border-color: rgba(0, 0, 0, 0.06);
                --card-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
                --selected-card-bg: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
                --opponent-card-bg: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
                --accent-color: #4caf50; /* Green accent */
                --highlight-color: #ffc107; /* Golden highlight */
                --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
                --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
                /* Overlay (Light Theme) */
                --overlay-bg: rgba(15, 14, 14, 0.8);
            }

        /* Base Styles */
        * {
            box-sizing: border-box;
            font-family: "Poppins", Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        html[data-theme="dark"],
        html:not([data-theme]) {
            background-color: #0f0c29;
        }

        html[data-theme="light"] {
            background-color: #f1f5f9;
        }

        html:not(.theme-ready),
        html:not(.theme-ready) body {
            transition: none !important;
        }

        html.theme-ready body {
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--bg-primary);
            background-attachment: fixed;
            background-size: cover;
            color: var(--text-primary);
            height: 100vh;
            height: 100dvh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: background 0.3s ease;
        }

        /* Keep everything within a mobile-width frame */
        .the-whole-content {
            width: 100%;
            max-width: 480px;
            height: 100vh;
            height: 100dvh;
            margin: 0 auto;
            background: var(--bg-primary);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 0 20px rgba(0,0,0,0.4);
            }

        /* ======================================================== */
            /* Top chrome: wallet · connection · stake · settings */
            .top-chrome-bar {
                position: relative;
                flex-shrink: 0;
                width: 100%;
                display: flex;
                align-items: center;
                gap: 4px;
                padding-top: max(2px, env(safe-area-inset-top, 0px));
                padding-right: max(4px, env(safe-area-inset-right, 0px));
                padding-bottom: 2px;
                padding-left: max(4px, env(safe-area-inset-left, 0px));
                z-index: 10000;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            }

            .top-chrome-actions {
                display: flex;
                align-items: center;
                gap: 2px;
                min-width: 0;
            }

            .top-chrome-actions .top-stat {
                flex: 0 1 auto;
            }

            .top-chrome-actions--center {
                flex: 1.2 1 0;
                justify-content: center;
            }

            .top-chrome-actions--end {
                flex: 1 1 0;
                justify-content: flex-end;
            }

            .top-chrome-icon-btn,
            .top-chrome-settings .app-menu-trigger {
                display: flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 26px;
                width: 26px;
                height: 26px;
                padding: 0;
                margin: 0;
                border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
                border-radius: 6px;
                background: var(--bg-primary, #0f172a);
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
                cursor: pointer;
            }

            .top-chrome-icon-btn .icon {
                width: 14px;
                height: 14px;
            }

            .top-chrome-settings {
                flex: 0 0 26px;
            }

            .top-chrome-settings .app-menu-trigger {
                font-size: 14px;
                line-height: 1;
            }

            .top-stat--wallet {
                align-self: center;
            }

            .top-stat {
                flex: 1 1 0;
                min-width: 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 0;
                line-height: 1.15;
                padding: 1px 2px;
            }

            .top-stat-label {
                font-size: 9px;
                font-weight: 600;
                text-transform: capitalize;
                color: var(--text-secondary);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .top-stat-value {
                font-size: 11px;
                font-weight: 700;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .top-stat--wallet {
                align-items: flex-start;
                text-align: left;
            }

            .top-stat--wallet .top-stat-value {
                color: var(--primary-400);
            }

            .top-stat--connection {
                flex: 0 1 auto;
                align-items: center;
                text-align: center;
            }

            .top-stat--stake {
                align-items: flex-end;
                text-align: right;
            }

            .top-stat--stake .top-stat-value {
                color: var(--secondary-500);
            }

            .top-stat-value--connection {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 4px;
            }

            .top-stat-value--connection .status-indicator {
                width: 7px;
                height: 7px;
                flex-shrink: 0;
            }

            .top-stat-connection-text {
                font-size: 10px;
                font-weight: 600;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 6rem;
            }

            .ethio-nav-bar-mobile {
                top: 0;
                width: 100%;
                position: relative;
                overflow: visible;
                flex-shrink: 0;
                padding-top: 0;
                color: var(--text-primary);
                z-index: 1999;
                font-size: 12px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
                gap: 0;
            }

            .ethio-nav-bar-mobile .nav-bar-row {
                overflow: visible;
            }

            .ethio-nav-bar-mobile .nav-right {
                gap: 6px;
                overflow: visible;
            }

            
            /* 🔰 Each row inside the navbar */
            .nav-bar-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 2px 8px;
            }

            .ethio-nav-bar-mobile > .nav-bar-row + .nav-bar-row {
                padding-top: 0;
                padding-bottom: 2px;
            }

            /* 🔰 Nav Left & Right Containers */
            .nav-left,
            .nav-right {
                display: flex;
                align-items: center;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 3px;
            }

            /* 🔰 Each Item Inside Left/Right */
            .nav-item {
                display: flex;
                align-items: center;
                gap: 2px;
                background-color: var(--bg-primary);
                padding: 0 3px;
                border-radius: 4px;
                white-space: nowrap;
                transition: background-color 0.2s ease;
            }

            .nav-item:hover {
                background-color: var(--bg-secondary);
                cursor: pointer;
            }

            /* 🎨 Item Components */
            .nav-label {
                color: var(--bg-primary);
                font-size: 13px;
            }

            .nav-currency {
                color: var(--warning);
                font-weight: bold;
                font-size: 12px;
            }

            .nav-amount {
                color: var(--primary-400); /* tailwind green-400 */
                font-weight: bold;
                font-size: 12px;
            }

            /* Optional: Custom scrollbar for overflowed nav items */
            .nav-left::-webkit-scrollbar,
            .nav-right::-webkit-scrollbar {
                height: 4px;
            }

            .nav-left::-webkit-scrollbar-thumb,
            .nav-right::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.2);
                border-radius: 2px;
            }



        /* ======================================================== */
        /* for connection statuse update */
        .connection-status {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            font-weight: 500;
            gap: 0.3rem;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .status-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        transition: all 0.3s ease;
        flex-shrink: 0;
        }

        .connected {
        background-color: var(--success);
        box-shadow: 0 0 8px var(--success);
        animation: pulse 2s infinite;
        }

        .disconnected {
        background-color: var(--error);
        box-shadow: 0 0 8px var(--error);
        }

        .selected-count {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--highlight-color);
        text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
        flex-shrink: 0;
        margin-left: 0.5rem;
        }

        .balance-amount, .stake-amount, .gameid-value {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        }

        .balance-amount {
        color: var(--primary-400);
        text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
        }

        .stake-amount {
        color: var(--secondary-500);
        text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
        }

        .gameid-value {
        color: var(--info);
        }

        .balance-icon, .stake-icon, .gameid-icon {
        width: 1rem;
        height: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.6rem;
        flex-shrink: 0;
        }

        .balance-icon {
        background: rgba(76, 175, 80, 0.2);
        color: var(--primary-500);
        }

        .stake-icon {
        background: rgba(255, 193, 7, 0.2);
        color: var(--secondary-500);
        }

        .gameid-icon {
        background: rgba(33, 150, 243, 0.2);
        color: var(--info);
        }

        /* Game Info - Enhanced */
        .game-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            background-color: var(--bg-primary);
            border-radius: 4px;
            border: 1px solid var(--border-color);
            padding: 2px 8px;
            min-height: 0;
        }

        .game-info:hover {
            background: var(--bg-secondary);
        }

        /* 🔹 Countdown section */
        .countdown-container {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .countdown-label {
            font-weight: 500;
            font-size: 11px;
            opacity: 0.8;
        }

        .countdown-timer {
            font-weight: 700;
            font-size: 13px;
            font-variant-numeric: tabular-nums;
            color: var(--countdown-calm);
            transition: color 0.25s ease, transform 0.2s ease;
        }

        /* Normal: plenty of time left (>10s) */
        .countdown-timer--calm {
            color: var(--countdown-calm);
        }

        /* Urgent: last 10 seconds — red + blink */
        .countdown-timer--urgent {
            color: var(--countdown-urgent);
            text-shadow: 0 0 8px rgba(255, 68, 68, 0.45);
        }

        .countdown-timer--urgent.blink,
        .countdown-timer.blink {
            animation: countdown-urgent-blink 0.9s ease-in-out infinite,
                countdown-urgent-scale 0.9s ease-in-out infinite;
        }

        @keyframes countdown-urgent-blink {
            50% {
                opacity: 0.55;
            }
        }

        @keyframes countdown-urgent-scale {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.12);
            }
        }

        /* Live game — manual watch (ALLOW_LIVE_SPECTATE) */
        .live-game-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            padding: 4px 8px;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.12));
            border: 1px solid rgba(34, 197, 94, 0.35);
        }

        .live-game-bar[hidden] {
            display: none !important;
        }

        .live-game-bar__pulse {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
            animation: live-pulse 1.4s ease-out infinite;
            flex-shrink: 0;
        }

        @keyframes live-pulse {
            70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }

        .live-game-bar__text {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            min-width: 0;
        }

        .live-game-bar__btn {
            font-size: 11px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 6px;
            border: none;
            background: #16a34a;
            color: #fff;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, transform 0.1s;
        }

        .live-game-bar__btn:hover {
            background: #15803d;
        }

        .live-game-bar__btn:active {
            transform: scale(0.97);
        }



        /* 🔹 Players info section */
        .players-container {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .players-count {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 500;
        }

        .derash-display #derash-amount {
            font-weight: 700;
            color: var(--accent-gold, #f5c542);
        }

        .players-count.updated {
            transform: scale(1.2);
            transition: transform 0.2s ease;
        }

        .players-icon {
            font-size: 14px;
        }

        .game-id-badge {
            flex-shrink: 0;
            padding: 0.1rem 0.35rem;
            border-radius: 0.3rem;
            font-size: 0.65rem;
            font-weight: 700;
            line-height: 1.2;
            white-space: nowrap;
            color: var(--text-primary);
            background: var(--card-bg);
            border: 1px solid var(--border-color);
        }

        



        /* =============================================== */
           /* Main Container */
        .main-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            width: 100%;
            min-height: 0;
            padding: 0.15rem 0.2rem 0;
            overflow: hidden;
            margin-top: 0;
            padding-top: 0;
        }
        /* Content Container */
        .content-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        }

        /* Games Section - Enhanced */
        .games-wrapper {
        flex: 1 1 auto;
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        margin-top: 0;
        margin-bottom: 0.25rem;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
        }

        .games-wrapper::-webkit-scrollbar {
        width: 3px;
        }

        .games-wrapper::-webkit-scrollbar-track {
        background: transparent;
        }

        .games-wrapper::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 3px;
        }

        .games-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.45);
        }

        [data-theme="light"] .games-wrapper {
        scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
        }

        [data-theme="light"] .games-wrapper::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.22);
        }

        [data-theme="light"] .games-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.35);
        }

        .games {
        display: grid;
        grid-template-columns: repeat(10, var(--card-size, 2.25rem));
        gap: 0.15rem;
        padding: 0.25rem;
        align-content: start;
        justify-content: center;
        background: var(--bg-secondary);
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        width: 100%;
        height: auto;
        overflow: visible;
        }

        .card {
        position: relative;
        width: var(--card-size, 2.25rem);
        height: var(--card-size, 2.25rem);
        flex-shrink: 0;
        border-radius: 0.3rem;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--card-bg);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        border: 1px solid transparent;
        overflow: hidden;
        }

        .card:hover {
        transform: scale(1.03);
        z-index: 1;
        }

        .card:active {
        transform: scale(0.98);
        }

        .card.selected, .card.own-selected {
        border: 1px solid var(--primary-400);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
        background: var(--selected-card-bg);
        z-index: 2;
        }

        .card.selected-by-others {
        border: 1px solid var(--error);
        box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
        background: var(--opponent-card-bg);
        z-index: 2;
        }

        .card.selected::after, .card.own-selected::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0) 70%);
        z-index: 1;
        pointer-events: none;
        }

        .card.selected-by-others::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0) 70%);
        z-index: 1;
        pointer-events: none;
        }

        .card-number {
        font-size: var(--card-font-size, 0.6rem);
        font-weight: 700;
        color: var(--text-primary);
        z-index: 2;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* Bingo Tables - Enhanced */
        .bingo-container {
        flex-shrink: 0;
        height: min(12rem, 26dvh);
        min-height: 7rem;
        margin-top: 0.1rem;
        margin-bottom: 0.15rem;
        }

        .bingo-tables {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
        height: 100%;
        }

        .bingo-table {
        background: var(--bg-secondary);
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0.3rem;
        opacity: 0.4;
        transition: opacity 0.3s ease, transform 0.3s ease;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        }

        .bingo-table.active {
        opacity: 1;
        transform: scale(1.02);
        }

        .bingo-table:hover {
        opacity: 0.9;
        }

        .bingo-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.2rem;
        padding-bottom: 0.2rem;
        border-bottom: 1px solid var(--border-color);
        }

        .bingo-title {
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--text-primary);
        }

        .bingo-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.15rem;
        }

        .bingo-letter {
        color: var(--white);
        font-weight: 700;
        font-size: 0.6rem;
        height: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.2rem;
        border: 1px solid var(--border-color);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        }

        .bingo-letter:nth-child(3) { /* N */
        background: linear-gradient(135deg, #00E676, #00B248);
        }
        .bingo-letter:nth-child(2) { /* I */
        background: linear-gradient(135deg, #FFCC33, #FF9900);
        }
        .bingo-letter:nth-child(1) { /* B */
        background: linear-gradient(135deg, #FF416C, #FF4B2B);
        }
        .bingo-letter:nth-child(4) { /* G */
        background: linear-gradient(135deg, #2196F3, #0D47A1);
        }

        .bingo-letter:nth-child(5) { /* O */
        background: linear-gradient(135deg, #9C27B0, #6A1B9A);
        }

        .bingo-number {
        background: rgba(255, 255, 255, 0.1);
        height: 1.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.2rem;
        font-size: 0.6rem;
        font-weight: 500;
        color: var(--text-primary);
        transition: all 0.2s ease;
        }

        .bingo-number.free {
        background: rgba(76, 175, 80, 0.2);
        color: var(--primary-400);
        font-weight: 600;
        }

        .bingo-number.called {
        background: var(--primary-500);
        color: var(--white);
        font-weight: 700;
        animation: pulse 1.5s infinite;
        }

        /* ======================================= */
        /* Theme Toggle Button */
        .theme-toggle {
        position: fixed;
        bottom: 0.1rem;
        right: 0.1rem;
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        font-size: 1.1rem;
        transition: all 0.3s ease;
        }

        .theme-toggle:hover {
        transform: scale(1.1) rotate(30deg);
        }

       
        /* Tooltip - Enhanced */
        .tooltip {
        position: absolute;
        background: rgba(0, 0, 0, 0.85);
        color: var(--white);
        padding: 0.4rem 0.8rem;
        border-radius: 0.4rem;
        font-size: 0.7rem;
        z-index: 100;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
        white-space: nowrap;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        max-width: 12rem;
        text-overflow: ellipsis;
        overflow: hidden;
        }

        /* Animations */
        @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
        }
        }

        @keyframes countdown-pulse {
        0% {
            transform: scale(1);
            text-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
        }
        100% {
            transform: scale(1.05);
            text-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
        }
        }

        @keyframes glow {
        0% {
            text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
        }
        100% {
            text-shadow: 0 0 10px rgba(76, 175, 80, 0.9), 0 0 15px rgba(76, 175, 80, 0.5);
        }
        }

        @keyframes bounce {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-3px);
        }
        }

        @keyframes button-pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        }
        100% {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6);
        }
        }

        @keyframes modal-appear {
        from {
            opacity: 0;
            transform: translate(-50%, -45%);
        }
        to {
            opacity: 0.95;
            transform: translate(-50%, -50%);
        }
        }

        /* Responsive Adjustments */
        @media (max-width: 480px) {
        .games {
            grid-template-columns: repeat(10, var(--card-size, 2.25rem));
            gap: 0.1rem;
        }
        
        
        .gameid {
            min-width: 100%;
            justify-content: center;
            margin-top: 0.2rem;
        }
        .theme-toggle {
            bottom: 4rem;
            right: 0.5rem;
        }
        }

        @media (max-width: 360px) {
        .games {
            grid-template-columns: repeat(10, 1fr);
        }
        
        .status-bar, .game-info {
            padding: 2px 6px;
        }
        
        .connection-status > div {
            font-size: 0.65rem;
        }
        
        .countdown, .players-count {
            font-size: 0.75rem;
        }
        }