/* jokerlive.css — extracted from jokerlive.html */

/* ── Block 1 ─────────────────────────────────── */
.joker-popup {
            background-color: #020b26;
            border-radius: 15px;
            display: flex;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.6);
            overflow: hidden;
        }
        .joker-popup::before {
            content: "";
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0; 
            height: 0; 
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid #0b1d45;
        }
        .popup-side {
            padding: 20px 25px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .popup-side:first-child {
            border-right: 2px solid rgba(255, 255, 255, 0.05);
            background-color: rgba(255, 255, 255, 0.02);
        }
        .side-title {
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 0 2px 2px rgba(0,0,0,0.8);
        }
        .suits-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .suit-btn {
            width: 55px;
            height: 55px;
            background-color: #fff;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            box-shadow: 0 3px 0 rgba(0,0,0,0.2);
            transition: transform 0.1s, background-color 0.2s;
        }
        .suit-btn:hover {
            background-color: #f2f2f2;
            transform: translateY(-2px);
        }
        .suit-btn:active {
            transform: translateY(2px);
            box-shadow: none;
        }
        .suit-btn.red { color: #d00000; }
        .suit-btn.black { color: #000; }

        /* ===== KISS OR BEER POPUP STYLES ===== */
        .kiss-beer-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        .kiss-beer-overlay.show { display: flex; animation: kbFadeIn 0.3s ease; }
        @keyframes kbFadeIn { from { opacity: 0; } to { opacity: 1; } }
        .kiss-beer-popup {
            background: linear-gradient(145deg, #1a1a2e, #16213e);
            border: 2px solid #e94560;
            border-radius: 20px;
            padding: 25px 30px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);
            animation: kbPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            max-width: 320px;
            position: relative;
        }
        @keyframes kbPopIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
        .kiss-beer-target { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; flex-direction: column; }
        .kiss-beer-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #e94560; object-fit: cover; box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4); }
        .kiss-beer-name { color: #fff; font-size: 18px; font-weight: bold; }
        .kiss-beer-buttons { display: flex; justify-content: center; gap: 25px; margin-top: 20px; }
        .kiss-beer-btn { width: 85px; height: 85px; border-radius: 50%; border: none; cursor: pointer; font-size: 40px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
        .kiss-beer-btn:hover { transform: scale(1.15); }
        .kiss-beer-btn:active { transform: scale(0.95); }
        .kiss-btn { background: linear-gradient(135deg, #ff6b6b, #e94560); }
        .kiss-btn:hover { box-shadow: 0 0 30px rgba(233, 69, 96, 0.6); }
        .beer-btn { background: linear-gradient(135deg, #f9ca24, #f0932b); }
        .beer-btn:hover { box-shadow: 0 0 30px rgba(249, 202, 36, 0.6); }
        .kiss-beer-close { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #888; font-size: 28px; cursor: pointer; line-height: 1; }
        .kiss-beer-close:hover { color: #fff; }
        .flying-emoji { position: fixed; font-size: 80px; z-index: 10001; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
        .kiss-beer-received { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98)); border: 2px solid #e94560; border-radius: 20px; padding: 30px 40px; text-align: center; z-index: 10002; animation: kbBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        @keyframes kbBounceIn { 0% { transform: translate(-50%, -50%) scale(0); } 50% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(1); } }
        .kiss-beer-received .emoji { font-size: 80px; animation: kbPulse 0.5s infinite alternate; }
        @keyframes kbPulse { from { transform: scale(1); } to { transform: scale(1.2); } }
        .kiss-beer-received .from-name { color: #fff; font-size: 16px; margin-top: 15px; }
        @keyframes kbFadeOut { from { opacity: 1; } to { opacity: 0; } }
        
        /* === შეტენვა / წაგლეჯვა Alert ანიმაცია === */
        @keyframes pulseAlert {
            0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
            50% { transform: translate(-50%, -50%) scale(1.1); }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }
        @keyframes shakeAlert {
            0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
            25% { transform: translate(-50%, -50%) rotate(-3deg); }
            75% { transform: translate(-50%, -50%) rotate(3deg); }
        }
        
        /* Gift badges on profiles */
        .gift-badge { position: absolute; top: -8px; font-size: 20px; background: rgba(0,0,0,0.7); border-radius: 15px; padding: 2px 6px; display: none; z-index: 100; }
        .gift-badge.show { display: flex; align-items: center; }
        .gift-badge-kiss { right: -10px; }
        .gift-badge-beer { left: -10px; }
        .gift-count { font-size: 12px; color: #fff; margin-left: 2px; font-weight: bold; }
        @keyframes giftPop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

        /* Small in-table gift burst (near avatar) */
        .gift-burst {
            position: absolute;
            left: 50%;
            top: 35%;
            transform: translate(-50%, -50%);
            font-size: 34px;
            z-index: 80;
            pointer-events: none;
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
            opacity: 0;
        }
        @keyframes giftBurstAnim {
            0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
            20% { transform: translate(-50%, -55%) scale(1.1); opacity: 1; }
            100% { transform: translate(-50%, -85%) scale(0.9); opacity: 0; }
        }

        /* Beer pour animation (empty glass -> filled) */
        .beer-pour {
            position: absolute;
            left: 50%;
            top: 35%;
            transform: translate(-50%, -50%);
            z-index: 80;
            pointer-events: none;
            opacity: 0;
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
        }
        .beer-pour.active { opacity: 1; }

        .beer-fly-wrap {
            position: relative;
            width: 44px;
            height: 48px;
        }
        .beer-fly-emoji {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 34px;
            line-height: 1;
            opacity: 0.95;
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
        }
        .beer-fly-wrap .beer-stream {
            left: 50%;
            top: -20px;
        }
        .beer-fly-wrap .beer-glass {
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 26px;
            height: 34px;
            opacity: 0.95;
        }

        .beer-glass {
            width: 30px;
            height: 40px;
            border-radius: 7px;
            border: 2px solid rgba(255,255,255,0.85);
            position: relative;
            overflow: hidden;
            background: rgba(0,0,0,0.08);
        }
        .beer-glass::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.0) 55%);
            pointer-events: none;
        }
        .beer-fill {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 0%;
            background: linear-gradient(180deg, #f9ca24 0%, #f0932b 100%);
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
        }
        .beer-fill::before {
            content: "";
            position: absolute;
            left: -20%;
            right: -20%;
            top: -6px;
            height: 12px;
            background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.25), rgba(255,255,255,0.0) 60%);
            opacity: 0.55;
            filter: blur(0.6px);
            animation: beerWave 900ms ease-in-out infinite alternate;
            pointer-events: none;
        }

        .beer-bubbles {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            opacity: 0;
            background-image:
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.55) 0 2px, rgba(255,255,255,0) 3px),
                radial-gradient(circle at 60% 70%, rgba(255,255,255,0.45) 0 1.8px, rgba(255,255,255,0) 3px),
                radial-gradient(circle at 40% 90%, rgba(255,255,255,0.35) 0 1.6px, rgba(255,255,255,0) 3px);
            background-repeat: repeat;
            background-size: 28px 40px;
            will-change: background-position, opacity;
            pointer-events: none;
        }
        .beer-foam {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 0px;
            background: rgba(255,255,255,0.92);
            opacity: 0;
        }
        .beer-stream {
            position: absolute;
            left: 50%;
            top: -18px;
            width: 6px;
            height: 0px;
            transform: translateX(-50%);
            background: linear-gradient(180deg, rgba(249,202,36,0.0) 0%, rgba(249,202,36,0.85) 40%, rgba(240,147,43,0.9) 100%);
            border-radius: 4px;
            opacity: 0;
        }

        @keyframes beerFillAnim {
            0% { height: 0%; }
            12% { height: 5%; }
            55% { height: 55%; }
            100% { height: 100%; }
        }
        @keyframes beerWave {
            0% { transform: translateX(-6%); }
            100% { transform: translateX(6%); }
        }
        @keyframes beerBubblesAnim {
            0% { opacity: 0.0; background-position: 0 20px, 0 10px, 0 28px; }
            20% { opacity: 0.55; }
            100% { opacity: 0.0; background-position: 0 -120px, 0 -90px, 0 -140px; }
        }
        @keyframes beerFoamAnim {
            0% { opacity: 0; height: 0px; }
            60% { opacity: 0.0; height: 0px; }
            85% { opacity: 1; height: 8px; }
            100% { opacity: 0.9; height: 6px; }
        }
        @keyframes beerStreamAnim {
            0% { opacity: 0; height: 0px; }
            10% { opacity: 1; height: 22px; }
            80% { opacity: 1; height: 26px; }
            100% { opacity: 0; height: 0px; }
        }
        
        /* Balance display in popup */
        .kiss-beer-balance { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; padding: 10px; background: rgba(0,0,0,0.3); border-radius: 10px; }
        .balance-item { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 14px; }
        .balance-item .emoji { font-size: 18px; }
        
        /* Buy gifts popup */
        .buy-gifts-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 10003; }
        .buy-gifts-content { background: linear-gradient(145deg, #1a1a2e, #16213e); border: 2px solid #e94560; border-radius: 20px; padding: 30px; text-align: center; max-width: 350px; position: relative; }
        .buy-close { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #888; font-size: 28px; cursor: pointer; }
        .buy-close:hover { color: #fff; }
        .buy-emoji { font-size: 60px; margin-bottom: 10px; }
        .buy-gifts-content h3 { color: #e94560; margin: 10px 0; font-size: 20px; }
        .buy-gifts-content p { color: #aaa; margin-bottom: 20px; }
        .buy-options { display: flex; flex-direction: column; gap: 10px; }
        .buy-option { background: linear-gradient(135deg, #2d2d5a, #1a1a3e); border: 1px solid #444; border-radius: 12px; padding: 15px; cursor: pointer; transition: all 0.3s; position: relative; }
        .buy-option:hover { border-color: #e94560; transform: scale(1.02); }
        .buy-option.popular { border-color: #f9ca24; }
        .popular-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #f9ca24; color: #000; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
        .buy-amount { display: block; color: #fff; font-size: 18px; font-weight: bold; }
        .buy-price { display: block; color: #4ade80; font-size: 14px; margin-top: 5px; }
        .buy-vip { width: 100%; margin-top: 15px; background: linear-gradient(135deg, #f9ca24, #f0932b); border: none; border-radius: 12px; padding: 15px; color: #000; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s; }
        .buy-vip:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(249, 202, 36, 0.5); }
        
        /* Mobile adjustments for kiss-beer */
        @media (max-height: 500px) {
            .kiss-beer-popup { padding: 15px 20px; }
            .kiss-beer-avatar { width: 50px; height: 50px; }
            .kiss-beer-name { font-size: 14px; }
            .kiss-beer-btn { width: 60px; height: 60px; font-size: 28px; }
            .kiss-beer-received { padding: 20px 30px; }
            .kiss-beer-received .emoji { font-size: 50px; }
            .gift-badge { font-size: 16px; padding: 1px 4px; }
            .gift-count { font-size: 10px; }
        }
        /* ===== END KISS OR BEER STYLES ===== */
        
        /* Premium Bidding Panel - Compact */
        .premium-panel {
            position: relative;
            width: 200px;
            max-width: 90vw;
            padding: 12px 10px;
            border-radius: 12px;
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
            text-align: center;
        }
        .panel-header {
            margin-bottom: 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0;
        }
        .info-text {
            font-size: 11px;
            color: #94a3b8 !important;
            font-weight: 500;
            margin-right: 5px;
            text-shadow: none !important;
        }
        /* წითელი ნეონი (აკრძალვა - ბოლო მოთამაშისთვის) */
        .neon-red {
            font-size: 15px;
            font-weight: 800;
            color: #ff4757;
            text-shadow: 0 0 10px rgba(255, 71, 87, 0.7);
            display: inline-flex;
            align-items: center;
            gap: 3px;
            line-height: 1;
        }
        .neon-red i { font-size: 10px; opacity: 0.9; }
        /* მწვანე ნეონი (ინფორმაცია - სხვა მოთამაშეებისთვის) */
        .neon-green {
            font-size: 15px;
            font-weight: 800;
            color: #2ed573;
            text-shadow: 0 0 10px rgba(46, 213, 115, 0.6);
            display: inline-flex;
            align-items: center;
            gap: 3px;
            line-height: 1;
        }
        .neon-green i { font-size: 10px; opacity: 0.9; }
        /* ღილაკების ბადე */
        .btn-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 6px;
        }
        .game-btn {
            background: #fff;
            border: none;
            border-radius: 6px;
            height: 32px;
            font-size: 14px;
            font-weight: 800;
            color: #0f172a;
            cursor: pointer;
            transition: 0.15s;
            box-shadow: 0 2px 0 #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .game-btn.pass { 
            background: #3b82f6; 
            color: #fff; 
            box-shadow: 0 2px 0 #2563eb; 
        }
        .game-btn:not(:disabled):hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 0 #cbd5e1;
        }
        .game-btn:not(:disabled):active { 
            transform: translateY(2px); 
            box-shadow: none; 
        }
        .game-btn:disabled {
            background: #1e293b; 
            color: #475569; 
            box-shadow: none;
            cursor: not-allowed; 
            border: 1px dashed #475569; 
            opacity: 0.6;
        }
        
        /* Mobile Bidding Panel - Portrait Only */
        @media (max-width: 768px) and (orientation: portrait) {
            .premium-panel {
                width: 180px;
                padding: 10px 8px;
            }
            .neon-red, .neon-green {
                font-size: 18px;
            }
            .game-btn {
                height: 28px;
                font-size: 12px;
            }
            .btn-grid {
                gap: 5px;
            }
        }
        
        /* Mobile Joker Popup - Portrait Only */
        @media (max-width: 768px) and (orientation: portrait) {
            .joker-popup {
                transform: scale(0.75);
            }
            .popup-side {
                padding: 12px 15px;
            }
            .side-title {
                font-size: 12px;
                margin-bottom: 10px;
            }
            .suit-btn {
                width: 45px;
                height: 45px;
                font-size: 26px;
            }
            .suits-grid {
                gap: 8px;
            }
            .bidding-modal {
                width: 340px;
                padding: 20px;
            }
            .bidding-title {
                font-size: 16px;
            }
            .buttons-grid {
                gap: 8px;
            }
            .buttons-grid .bid-btn {
                font-size: 24px;
                min-width: 45px;
                min-height: 45px;
            }
        }

/* ── Block 2 ─────────────────────────────────── */
/* --- კომპაქტური კონტეინერი (ეკრანზე რომ ჩანს) --- */
        .scoreboard-container {
            position: fixed;
            top: 60px; left: 20px;
            background: rgba(2, 11, 38, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            width: 400px;
            z-index: 100;
            overflow: visible !important;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            transition: height 0.3s;
            padding-top: 45px;
        }
        
        .scoreboard-container .mini-table-wrapper {
            overflow-y: auto;
            max-height: 70vh;
            overflow-x: hidden;
        }
        
        /* Scoreboard zoom controls - above last column header */
        .scoreboard-zoom-controls {
            position: absolute;
            top: 8px;
            right: 10px;
            display: flex;
            flex-direction: row;
            gap: 8px;
            z-index: 999999;
            pointer-events: auto !important;
        }
        
        .scoreboard-zoom-btn {
            width: 40px;
            height: 40px;
            background: rgba(2, 11, 38, 0.98);
            border: 3px solid #4CAF50;
            border-radius: 8px;
            color: #4CAF50;
            font-size: 26px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.5);
            pointer-events: auto !important;
            user-select: none;
        }
        
        .scoreboard-zoom-btn:hover {
            background: #4CAF50;
            color: #000;
            border-color: #4CAF50;
            transform: scale(1.1);
        }
        
        .scoreboard-zoom-btn:active {
            transform: scale(0.95);
            background: #388E3C;
        }

        /* ჰედერი (სულ) */
        .scoreboard-header {
            background: #0b2241;
            padding: 10px;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #a8c5e0;
        }

        /* ცხრილის სტილი */
        .game-table { width: 100%; border-collapse: collapse; color: #fff; font-size: 20px; font-weight: 700; }
        .game-table th, .game-table td { padding: 4px 3px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
        .game-table thead { background: #1a3b61; }
        .total-row { background: #14a037; font-weight: bold; color: #fff; font-size: 22px; }

        /* ფერები ქულებისთვის */
        .score-positive { color: #2ecc71; }
        .score-negative { color: #e74c3c; }



        /* --- მობილური ვერსია --- */
        @media (max-width: 600px) {
            .scoreboard-container {
                width: 50% !important; /* === ორჯერ პატარა === */
                left: 0 !important; top: 48px !important; /* Header height */
                border-radius: 0 0 10px 10px;
                transform: scale(0.5) !important; /* === ორჯერ პატარა === */
                transform-origin: left top !important;
            }
            
            .game-table th, .game-table td { font-size: 10px !important; padding: 3px 2px !important; }
            
            /* მობილურზე მხოლოდ სულ ჯამი ჩანს თავიდან */
            .mini-table-wrapper { display: block !important; } 
            .scoreboard-container.expanded .mini-table-wrapper { display: block !important; }
            
            /* === მობილურზე მარჯვენა პანელი 50%-ით შემცირებული === */
            .right-panels-container {
                width: 60px !important;   /* 120 * 0.5 */
                gap: 5px !important;
                bottom: auto !important;  /* არა ქვემოთ */
                top: 50% !important;      /* შუაში ვერტიკალურად */
                transform: translateY(-50%) !important;
                right: 0 !important;
            }
            
            .right-panels-container.collapsed {
                transform: translateX(calc(100% + 5px)) translateY(-50%) !important;
            }
            
            .right-box {
                padding: 3px !important;
            }
            
            .rb-header {
                font-size: 5px !important;
                margin-bottom: 4px !important;
            }
            
            .real-cards-stack {
                height: 22px !important;  /* 45 * 0.5 */
            }
            
            .rc {
                width: 15px !important;   /* 30 * 0.5 */
                height: 22px !important;  /* 45 * 0.5 */
                border-radius: 2px !important;
                font-size: 9px !important;
            }
            
            .rc-1 { left: 2px !important; }
            .rc-2 { left: 12px !important; }
            .rc-3 { left: 22px !important; }
            .rc-4 { left: 32px !important; }
        }
        
        /* --- კომპიუტერის ვერსია --- */
        @media (min-width: 601px) {
            .scoreboard-container {
                /* === სქორბორდის ზომა === JavaScript აკონტროლებს +/- ღილაკებით */
                /* transform: scale(0.64); -- ახლა JavaScript აკონტროლებს */
                transform-origin: left top !important;
                width: 450px !important;
            }
            
            /* === სქორბორდის შრიფტის ზომა === */
            .game-table { font-size: 18px !important; font-weight: 700 !important; }
            .game-table th, .game-table td { padding: 6px 4px !important; }
            
            /* === hover-ზე სრულად აჩვენე, scroll არ გამოჩნდეს === */
            .scoreboard-container:hover .mini-table-wrapper {
                max-height: none !important;
                overflow-y: visible !important;
            }
            
            /* === მარჯვენა პანელი (ბოლო კარტები) - გაორმაგებული === */
            .right-panels-container {
                width: 240px !important;  /* 120 * 2 */
                gap: 20px !important;     /* 10 * 2 */
            }
            
            .right-box {
                padding: 12px !important; /* 6 * 2 */
            }
            
            .rb-header {
                font-size: 14px !important; /* 9 * ~1.5 */
                margin-bottom: 16px !important; /* 8 * 2 */
            }
            
            .real-cards-stack {
                height: 90px !important;  /* 45 * 2 */
            }
            
            .rc {
                width: 60px !important;   /* 30 * 2 */
                height: 90px !important;  /* 45 * 2 */
                border-radius: 6px !important; /* 3 * 2 */
                font-size: 36px !important; /* 18 * 2 */
            }
            
            .rc-1 { left: 10px !important; }  /* 5 * 2 */
            .rc-2 { left: 50px !important; }  /* 25 * 2 */
            .rc-3 { left: 90px !important; }  /* 45 * 2 */
            .rc-4 { left: 130px !important; } /* 65 * 2 */
        }

/* ── Block 3 ─────────────────────────────────── */
.game-modal-overlay {
                display: none;
                position: fixed;
                top: 0; left: 0;
                width: 100%; height: 100%;
                background: rgba(0,0,0,0.8);
                z-index: 9999;
                justify-content: center;
                align-items: center;
            }
            
            .modal-content {
                background: linear-gradient(160deg, #0b2241 0%, #051033 100%);
                padding: 30px;
                border-radius: 16px;
                text-align: center;
                border: 1px solid rgba(255,255,255,0.1);
                box-shadow: 0 0 30px rgba(0,0,0,0.7);
                animation: scaleIn 0.3s ease;
            }
            
            .joker-action-btn {
                padding: 15px 30px;
                color: white;
                border: none;
                border-radius: 8px;
                font-weight: bold;
                cursor: pointer;
                font-family: 'Noto Sans Georgian', sans-serif;
                transition: transform 0.2s;
                font-size: 16px;
            }
            
            .btn-cut { background: #e74c3c; box-shadow: 0 4px 0 #c0392b; }
            .btn-cut:hover { transform: translateY(-2px); }
            .btn-cut:active { transform: translateY(0); }
            
            .btn-fold { background: #2ecc71; box-shadow: 0 4px 0 #27ae60; }
            .btn-fold:hover { transform: translateY(-2px); }
            .btn-fold:active { transform: translateY(0); }

            /* Flipped Joker Animation */
            .center-card {
                transition: transform 0.6s;
                transform-style: preserve-3d;
            }
            
            .center-card.flipped-joker {
                transform: rotateY(180deg) !important;
                background: repeating-linear-gradient(
                    45deg,
                    #1a3a5a,
                    #1a3a5a 10px,
                    #2c4a69 10px,
                    #2c4a69 20px
                );
                border: 2px solid #fff;
            }
            
            /* Hide content when flipped */
            .center-card.flipped-joker > * {
                opacity: 0;
            }
            
            /* Add back design via pseudo-element if needed, or just use background above */
            .center-card.flipped-joker::after {
                content: '';
                position: absolute;
                top: 0; left: 0; width: 100%; height: 100%;
                background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMHY0MHptNDAgMEwwIDQwaDQwdjB6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjwvZz48L3N2Zz4=');
                opacity: 0.5;
            }

        /* --- 1. GENERAL SETTINGS --- */
        * { box-sizing: border-box; }
        html, body {
            margin: 0; padding: 0;
            background-color: #010a14;
            font-family: "Segoe UI", sans-serif; color: white;
            height: 100%; width: 100%;
            overflow: hidden; 
            user-select: none;
            touch-action: none;
            -webkit-overflow-scrolling: auto;
            overscroll-behavior: none;
        }
        body {
            background-image: radial-gradient(circle at 50% 40%, #0b2d52 0%, #010a14 80%);
        }
        
        /* iOS Pseudo-Fullscreen Mode */
        body.ios-fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            overflow: hidden !important;
        }
        body.ios-fullscreen .header {
            display: none !important;
        }
        body.ios-fullscreen .game-container {
            height: 100vh !important;
            width: 100vw !important;
        }

        /* --- NEW YEAR SNOW (non-interactive) --- DISABLED ---
        .snowflake {
            position: fixed;
            top: -12px;
            color: rgba(255,255,255,0.85);
            font-size: 10px;
            line-height: 1;
            pointer-events: none;
            z-index: 9998;
            will-change: transform;
            animation-name: snowFall;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            text-shadow: 0 1px 2px rgba(0,0,0,0.35);
        }
        @keyframes snowFall {
            from { transform: translate3d(var(--x, 0px), -12px, 0); opacity: 0.0; }
            10% { opacity: 0.9; }
            to { transform: translate3d(var(--x, 0px), calc(100vh + 12px), 0); opacity: 0.0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .snowflake { display: none !important; }
        }
        --- END DISABLED */

        /* --- Santa flyby (non-interactive) --- DISABLED ---
        .santa-flyby {
            position: fixed;
            top: 14vh;
            left: -40vw;
            font-size: 18px;
            line-height: 1;
            pointer-events: none;
            z-index: 9997;
            opacity: 0.95;
            will-change: transform;
            text-shadow: 0 2px 6px rgba(0,0,0,0.55);
            transform: translate3d(0, 0, 0);
        }
        @keyframes santaFly {
            from { transform: translate3d(-40vw, 0, 0); opacity: 0.0; }
            10% { opacity: 0.95; }
            to { transform: translate3d(140vw, 0, 0); opacity: 0.0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .santa-flyby { display: none !important; }
        }
        --- END SANTA DISABLED */
        }
        body::before { /* Noise Texture */
            content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
            pointer-events: none; z-index: 0;
        }

        /* --- 2. HEADER --- */
        .header { height: 48px; background: linear-gradient(to bottom, #152b42, #06121f); border-bottom: 1px solid #2c4a69; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; position: relative; z-index: 100; overflow: hidden; transition: height 0.25s ease, padding 0.25s ease; }
        .header-logo { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
        .coin-display { background: linear-gradient(to bottom, #204566, #122a40); border: 1px solid #3a6ba6; border-radius: 15px; padding: 3px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; }
        .coin-icon { width: 18px; height: 18px; background: #ffaf00; border-radius: 50%; color: #8f5c00; text-align: center; line-height: 18px; font-weight: 900; font-size: 11px; }
        .xp-display { width: 180px; height: 22px; background: #2e1216; border: 1px solid #5c232a; border-radius: 4px; position: relative; }
        .xp-progress { width: 70%; height: 100%; background: repeating-linear-gradient(-45deg, #cf3e4d, #cf3e4d 10px, #b0303d 10px, #b0303d 20px); }
        .xp-val { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: bold; }

        /* --- 3. GAME CONTAINER --- */
        .game-container { position: relative; width: 100%; height: calc(100vh - 48px); display: flex; justify-content: center; align-items: center; z-index: 1; overflow: hidden; touch-action: none; }

        /* In-game header collapse */
        .header-collapse-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.15);
            background: rgba(0,0,0,0.25);
            color: rgba(255,255,255,0.9);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
        }

        .header.is-collapsed {
            height: 0;
            padding: 0;
            border-bottom: none;
        }
        .header.is-collapsed .header-left,
        .header.is-collapsed .header-right {
            opacity: 0;
            pointer-events: none;
        }
        .header.is-collapsed + .game-container {
            height: 100vh;
        }
        .header.is-collapsed + .game-container .scoreboard-container {
            top: 12px;
        }
        @media (max-width: 600px) {
            .header.is-collapsed + .game-container .scoreboard-container {
                top: 8px;
            }
        }
        /* მობილურზე ჰედერი რომ დაიმალება - game-container სრულ ეკრანს იკავებს */
        @media (max-width: 768px) {
            .header.is-collapsed + .game-container {
                height: 100vh !important;
            }
        }
        /* Landscape მობილურზეც - ჰედერის დამალვისას სრული ეკრანი */
        @media (max-width: 1024px) and (orientation: landscape) {
            .header.is-collapsed + .game-container {
                height: 100vh !important;
            }
        }

        /* --- 4. TABLE --- */
        .table-wrapper {
            width: 900px; height: 450px; border-radius: 230px; padding: 35px;
            position: relative; border: 1px solid #2b1b15;
            touch-action: none;
            background-color: #634032; /* Rail */
            background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(0,0,0,0.5));
            box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.8);
            z-index: 5;
            transition: transform 0.3s ease;
        }
        .table-wrapper::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 230px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; }

        .table-felt {
            width: 100%; height: 100%; border-radius: 200px;
            position: relative; border: 1px solid rgba(0,0,0,0.5); z-index: 1;
            background-color: #005c8a; /* Felt */
            background-image: radial-gradient(ellipse at center, #007fb5 0%, #00557d 50%, #002a40 100%);
            box-shadow: inset 0 0 60px rgba(0,0,0,0.9);
            overflow: hidden; /* Clips content at the rail edge */
        }
        .table-felt::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 200px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E"); pointer-events: none; }

        /* Table Elements */
        .card-slot-outline { position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 160px; border: 2px solid rgba(255,255,255,0.1); border-radius: 20px; pointer-events: none; }
        .logo-watermark { position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); width: 160px; opacity: 0.2; pointer-events: none; filter: grayscale(100%) brightness(200%); }

        /* --- 5. COMMON PLAYER STYLES --- */
        .profile-group { display: flex; flex-direction: column; align-items: center; width: 130px; position: relative; z-index: 50; }
        
        .p-avatar-round {
            width: 86px; height: 88px; border-radius: 12px; border: none;
            object-fit: cover; background: #ccc;
            position: relative; z-index: 60;
            margin-bottom: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.6);
        }
        
        /* Timer Ring */
        .avatar-wrapper {
            position: relative;
            display: inline-block;
            overflow: visible;
        }

        /* Social network mini-icons — right of avatar */
        .p-social-icons {
            position: absolute;
            top: 4px;
            right: -22px;
            display: flex;
            flex-direction: column;
            gap: 3px;
            z-index: 70;
            pointer-events: auto;
        }
        .p-social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 17px;
            height: 17px;
            border-radius: 4px;
            text-decoration: none;
            box-shadow: 0 1px 3px rgba(0,0,0,0.55);
            transition: transform 0.15s, opacity 0.15s;
            flex-shrink: 0;
        }
        .p-social-icon:hover { transform: scale(1.2); opacity: 0.9; }
        .p-social-icon.soc-fb { background: #1877f2; }
        .p-social-icon.soc-ig { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
        .p-social-icon.soc-tt { background: #111; border: 1px solid #444; }
        .p-social-icon svg { width: 9px; height: 9px; fill: #fff; pointer-events: none; }

        /* Name inside photo */
        .avatar-wrapper .p-name {
            position: absolute;
            left: 6px;
            right: 6px;
            bottom: 6px;
            padding: 2px 6px;
            background: rgba(0,0,0,0.5);
            color: rgba(255,255,255,0.95);
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            text-align: center;
            line-height: 1.2;
            text-shadow: 0 1px 2px rgba(0,0,0,0.7);
            pointer-events: none;
            z-index: 63;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .timer-ring {
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            width: auto;
            height: auto;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
            z-index: 61;
            overflow: visible;
        }

        .timer-ring rect {
            fill: none;
            stroke: #ff0000;
            stroke-width: 4;
            stroke-linecap: round;
            stroke-dasharray: 100;
            stroke-dashoffset: 100;
        }

        .timer-ring.active { opacity: 1; }
        .timer-ring.active rect {
            animation: timer-perimeter var(--timer-duration, 10s) linear forwards;
        }

        @keyframes timer-perimeter {
            from { stroke-dashoffset: 100; }
            to { stroke-dashoffset: 0; }
        }
        
        .timer-countdown {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff0000;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.5);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 62;
        }
        
        .timer-countdown.active {
            opacity: 1;
        }
        .p-box {
            width: 86px;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            position: relative;
            z-index: 50;
            margin-top: 2px;
            padding-top: 0;
        }
        .p-score {
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
            padding: 0;
            margin-top: 0;
            font-family: monospace;
            font-size: 13px;
            color: #fff;
            text-shadow: 0 1px 2px rgba(0,0,0,0.7);
        }
        .p-val {
            flex: 0 0 auto;
            text-align: center;
            padding: 0;
            min-width: 0;
            font-weight: 900;
            letter-spacing: 0.2px;
        }
        .p-sep {
            opacity: 0.75;
            font-weight: 900;
            transform: translateY(-0.5px);
        }
        .dealer-btn { position: absolute; width: 20px; height: 20px; background: #b01e1e; border: 1px solid #ff7070; border-radius: 3px; color: white; font-weight: bold; font-size: 12px; display: flex; justify-content: center; align-items: center; z-index: 70; }

        /* Card Styles */
        .c-back { background-color: #10283d; border: 2px solid #ccc; border-radius: 4px; box-shadow: 2px 2px 6px rgba(0,0,0,0.6); background-image: url('https://mygame.ge/images/iaganicom/logo-x40.png'); background-position: center; background-repeat: no-repeat; background-size: 70%; }
        
        .card-face { background: white; border-radius: 4px; box-shadow: 2px 2px 6px rgba(0,0,0,0.6); display: flex; flex-direction: column; justify-content: space-between; padding: 3px; font-weight: bold; position: relative; cursor: pointer; transition: transform 0.2s; }
        .card-face .rank { font-size: 14px; line-height: 1; }
        .card-face .suit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 32px; }
        .red-card { color: #cc0000; } .black-card { color: #000; }
        
        /* --- 6. POSITIONS --- */
        .pos-top { position: absolute; top: -55px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 30; }
        .pos-top .dealer-btn { top: 40px; right: -20px; }
        .hand-top { display: flex; margin-top: 10px; margin-left: -11px; position: relative; z-index: 40; }
        .c-back-v { width: 60.27px; height: 88.2px; margin-left: -45px; }
        .c-back-v:first-child { margin-left: 0; }

        .pos-left { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-left { display: flex; flex-direction: column; margin-left: 20px; z-index: 40; }
        .c-back-h { width: 96px; height: 65.6px; margin-top: -55px; }
        .c-back-h:first-child { margin-top: 0; }

        .pos-right { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-right { display: flex; flex-direction: column; margin-right: 20px; z-index: 40; }

        /* HERO PROFILE */
        .hero-profile-fixed {
            position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
            z-index: 720; display: flex; flex-direction: column; align-items: center; width: 130px;
        }
        .hero-border { border: none; box-shadow: none; }

        /* HERO CARDS */
        .hero-cards-container {
            position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
            z-index: 650; display: flex; align-items: flex-end;
        }
        .h-card { width: 69.3px; height: 103.95px; margin-right: -45px; position: relative; cursor: pointer; transition: transform 0.2s; }
        .h-card:last-child { margin-right: 0; }
        .h-card:hover { transform: translateY(-30.8px); z-index: 150; }

        /* Center Played Cards */
        .center-cards { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; width: 200px; height: 200px; }
        .center-card { width: 70px; height: 105px; position: absolute; transition: all 0.3s; }
        
        /* Position cards based on seat */
        .center-card[data-seat="0"] { top: 0; left: 50%; transform: translateX(-50%); } /* Top player */
        .center-card[data-seat="1"] { right: 0; top: 50%; transform: translateY(-50%); } /* Right player */
        .center-card[data-seat="2"] { bottom: 0; left: 50%; transform: translateX(-50%); } /* Bottom player (hero) */
        .center-card[data-seat="3"] { left: 0; top: 50%; transform: translateY(-50%); } /* Left player */

        /* --- PANELS --- */
        .panel-stats { position: absolute; top: 20px; left: 20px; background: rgba(6,18,30,0.9); border: 1px solid #1d3c59; padding: 16px; border-radius: 5px; z-index: 100; max-width: 600px; }
        .stats-tbl { font-size: 28px !important; color: #abc; border-collapse: collapse; }
        .stats-tbl th { background: #0a1e33; padding: 12px 24px !important; text-align: center; border: 1px solid #1d3c59; font-size: 28px !important; }
        .stats-tbl td { padding: 12px 24px !important; text-align: center; border: 1px solid #1d3c59; font-size: 28px !important; }
        .tot-row td { color: orange; font-weight: bold; }

        /* ===== BEAUTIFUL CHAT PANEL ===== */
        .panel-chat { 
            position: fixed; 
            bottom: 10px; 
            left: 10px; 
            width: 320px; 
            height: 310px;
            background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
            backdrop-filter: blur(10px);
            border: 1px solid rgba(100, 116, 139, 0.3);
            border-radius: 16px; 
            display: flex; 
            flex-direction: column; 
            z-index: 100; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        }
        /* ჩაკეცილი მდგომარეობა - პატარა ზომა, მხოლოდ ტექსტის სიგანე */
        .panel-chat.minimized { 
            height: 40px; 
            width: auto;
            min-width: 100px;
            border-radius: 20px; 
        }
        .panel-chat.minimized .chat-area { display: none; }
        .panel-chat.minimized .chat-input-wrap { display: none; }
        .panel-chat.minimized .chat-header { 
            border-radius: 20px;
            border-bottom: none;
            padding: 10px 16px;
        }
        /* შეტყობინებების რაოდენობა */
        .chat-msg-count {
            background: #ef4444;
            color: white;
            font-size: 10px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
            min-width: 18px;
            text-align: center;
        }
        .chat-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 12px 16px; 
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
            border-bottom: 1px solid rgba(100, 116, 139, 0.2); 
            cursor: pointer; 
            user-select: none;
            border-radius: 16px 16px 0 0;
        }
        .chat-header:hover { background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25)); }
        .chat-title { font-size: 13px; font-weight: 600; color: #e2e8f0; display: flex; align-items: center; gap: 8px; }
        .chat-toggle { color: #94a3b8; font-size: 12px; transition: transform 0.3s; }
        .panel-chat.minimized .chat-toggle { transform: rotate(180deg); }
        .chat-area { flex: 1; padding: 12px; font-size: 12px; color: #cbd5e1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
        .chat-area::-webkit-scrollbar { width: 4px; }
        .chat-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 2px; }
        .chat-area::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.5); border-radius: 2px; }
        .chat-area::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.7); }
        .chat-msg { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; animation: msgSlideIn 0.3s ease; }
        @keyframes msgSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .chat-msg-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(59, 130, 246, 0.5); flex-shrink: 0; }
        .chat-msg-content { flex: 1; min-width: 0; }
        .chat-msg-name { font-size: 10px; font-weight: 600; color: #60a5fa; margin-bottom: 2px; }
        .chat-msg-text { font-size: 11px; color: #e2e8f0; word-wrap: break-word; line-height: 1.4; }
        .chat-msg-time { font-size: 8px; color: #64748b; margin-top: 2px; }
        .chat-msg.own-msg { background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2)); border: 1px solid rgba(59, 130, 246, 0.2); }
        .chat-msg.own-msg .chat-msg-name { color: #a78bfa; }
        /* Chat Delete Button */
        .chat-msg-wrapper { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; position: relative; }
        .chat-msg-wrapper:hover .chat-delete-btn { opacity: 1; }
        .chat-msg-body { flex: 1; }
        .chat-delete-btn {
            opacity: 0;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.8);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
            transition: all 0.2s;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .chat-delete-btn:hover { background: #ef4444; transform: scale(1.1); }
        /* Voice Message Player - ლამაზი დიზაინი */
        .chat-msg-voice { 
            display: inline-flex; 
            align-items: center; 
            gap: 8px; 
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2)); 
            padding: 8px 12px; 
            border-radius: 20px; 
            margin-left: 5px; 
            vertical-align: middle;
            border: 1px solid rgba(59, 130, 246, 0.3);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .chat-msg-voice audio { display: none; } /* დავმალოთ ორიგინალი */
        .voice-play-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
            flex-shrink: 0;
        }
        .voice-play-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6); }
        .voice-play-btn:active { transform: scale(0.95); }
        .voice-play-btn.playing { background: linear-gradient(135deg, #ef4444, #dc2626); }
        .voice-progress-wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 80px;
        }
        .voice-progress-bar {
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            overflow: hidden;
            cursor: pointer;
        }
        .voice-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            width: 0%;
            border-radius: 2px;
            transition: width 0.1s linear;
        }
        .voice-time {
            font-size: 9px;
            color: rgba(255,255,255,0.6);
            display: flex;
            justify-content: space-between;
        }
        .voice-waveform {
            display: flex;
            align-items: center;
            gap: 2px;
            height: 20px;
        }
        .voice-waveform span {
            width: 3px;
            background: linear-gradient(to top, #3b82f6, #8b5cf6);
            border-radius: 2px;
            animation: none;
        }
        .voice-waveform.playing span {
            animation: waveAnim 0.5s ease-in-out infinite alternate;
        }
        .voice-waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
        .voice-waveform span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
        .voice-waveform span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
        .voice-waveform span:nth-child(4) { height: 16px; animation-delay: 0.15s; }
        .voice-waveform span:nth-child(5) { height: 12px; animation-delay: 0.05s; }
        @keyframes waveAnim {
            0% { transform: scaleY(0.5); }
            100% { transform: scaleY(1.2); }
        }
        .chat-input-wrap { display: flex; align-items: center; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(100, 116, 139, 0.2); padding: 8px 10px; gap: 6px; border-radius: 0 0 16px 16px; }
        .chat-inp { flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(100, 116, 139, 0.3); border-radius: 20px; color: white; outline: none; padding: 8px 14px; font-size: 11px; transition: all 0.2s; }
        .chat-inp:focus { background: rgba(255, 255, 255, 0.12); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
        .chat-inp::placeholder { color: #64748b; }
        .voice-btn { color: #94a3b8; cursor: pointer; padding: 6px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(100, 116, 139, 0.2); font-size: 12px; } /* დაპატარავებული */
        .voice-btn:hover { color: #fff; background: rgba(59, 130, 246, 0.3); border-color: rgba(59, 130, 246, 0.5); transform: scale(1.05); }
        .voice-btn.recording { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); border-color: #ef4444; animation: pulse 1s infinite; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
        @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
        .voice-status { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95)); color: white; padding: 12px 24px; border-radius: 20px; font-size: 11px; display: none; z-index: 200; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); font-weight: 500; }
        .voice-status.show { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
        /* ===== END CHAT PANEL ===== */
        /* TRUMP CARD DISPLAY & DECK */
        .deck-pile {
            position: absolute;
            bottom: -45px;
            left: 60px;
            width: 70px;
            height: 105px;
            background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
            border-radius: 5px;
            border: 2px solid #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.5);
            z-index: 10;
            display: none; /* Hidden as requested */
            justify-content: center;
            align-items: center;
        }
        .deck-pile::after { /* Stack effect */
            content: ""; position: absolute; top: -3px; left: 2px; width: 100%; height: 100%;
            background: inherit; border-radius: 5px; border: 1px solid rgba(255,255,255,0.3); z-index: -1;
        }

        .trump-card-display { 
            position: absolute; 
            bottom: -45px; /* Hide slightly more */
            left: 60px;   /* Corner */
            z-index: 10; /* On top of felt */
            width: 140px; height: 140px; 
            pointer-events: none;
            display: flex; align-items: center;
        }
        .trump-label {
            position: absolute;
            top: -5px;
            left: 90px; /* Center of the card (35px left + 35px half-width) */
            transform: translateX(-50%) rotate(15deg); /* Rotate like the card */
            color: #ccc;
            font-size: 12px;
            font-weight: bold;
            text-shadow: 1px 1px 2px black;
            z-index: 20;
            pointer-events: none;
        }
        .trump-card { 
            width: 70px; height: 105px; 
            background: white; border-radius: 5px; box-shadow: 0 3px 8px rgba(0,0,0,0.6); 
            display: flex; flex-direction: column; justify-content: space-between; padding: 6px; 
            
            /* Rotation and Positioning Logic */
            position: absolute;
            top: 17px; /* Center vertically relative to container */
            left: 35px; /* Shift right to peek out */
            transform: rotate(15deg); /* Tilted right */
            transform-origin: center;
        }
        .trump-card.no-trump { 
            background: linear-gradient(135deg, #2c3e50, #34495e); color: white; 
            display: flex; align-items: center; justify-content: center; 
            font-weight: bold; font-size: 12px; 
            transform: none; left: 0; top: 17px; /* Reset */
        }
        .trump-rank { font-size: 18px; font-weight: bold; line-height: 1; }
        .trump-suit-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; opacity: 0.3; }
        .trump-round-info { 
            position: absolute; bottom: -25px; left: 0; width: 70px; 
            text-align: center; font-size: 10px; color: #667788; 
        }
        
        .bid-situation { 
            position: absolute;
            top: 25%; 
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            margin-top: 0; 
            padding: 4px 8px; /* Reduced padding */
            border-radius: 4px; 
            font-size: 10px; /* Reduced font size */
            font-weight: bold; 
            text-align: center; 
            display: none; 
        }
        .bid-situation.active { display: block; }
        .bid-situation.steal { background: linear-gradient(to bottom, #ff4444, #cc0000); color: #fff; box-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
        .bid-situation.force { background: linear-gradient(to bottom, #ff9500, #ff6b00); color: #fff; box-shadow: 0 0 8px rgba(255, 149, 0, 0.6); }
        .bid-situation.balance { background: linear-gradient(to bottom, #00cc66, #009944); color: #fff; box-shadow: 0 0 8px rgba(0, 204, 102, 0.6); }
        
        .right-panels-container { position: absolute; bottom: 70px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: 120px; z-index: 100; }
        .right-panels-container.collapsed { transform: translateX(calc(100% + 20px)); }
        .right-panels-container { transition: transform 0.25s ease; will-change: transform; }

        .collapse-tab-right {
            position: absolute;
            left: -16px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 44px;
            background: #ffaa00;
            border: 1px solid #fff;
            border-right: none;
            border-radius: 8px 0 0 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #000;
            font-weight: 900;
            font-size: 14px;
            cursor: pointer;
            box-shadow: -2px 0 5px rgba(0,0,0,0.5);
            z-index: 3001;
            pointer-events: auto;
            user-select: none;
        }
        .right-panels-container.collapsed { pointer-events: none; }
        .right-panels-container.collapsed .right-box { opacity: 0; pointer-events: none; }
        .right-panels-container.collapsed .collapse-tab-right { left: -18px; top: calc(50% + 18px); pointer-events: auto; }
        .right-box { background: linear-gradient(to bottom, rgba(15, 30, 45, 0.9), rgba(5, 15, 25, 0.95)); border: 1px solid #1d3c59; border-radius: 4px; padding: 6px; box-shadow: 0 0 15px rgba(0,0,0,0.5); transition: opacity 0.15s ease; }
        .rb-header { font-size: 9px; color: #8899aa; text-align: center; margin-bottom: 8px; text-transform: uppercase; }
        
        .real-cards-stack { display: flex; justify-content: center; height: 45px; width: 100%; position: relative; }
        .rc { width: 30px; height: 45px; background: white; border-radius: 3px; border: 1px solid #aaa; box-shadow: -2px 0 5px rgba(0,0,0,0.5); position: absolute; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; }
        .rc-1 { left: 5px; z-index: 1; opacity: 0.6; } 
        .rc-2 { left: 25px; z-index: 2; opacity: 0.8; } 
        .rc-3 { left: 45px; z-index: 3; opacity: 0.9; } 
        .rc-4 { left: 65px; z-index: 4; opacity: 1; box-shadow: 0 0 5px rgba(0,0,0,0.8); }
        .auto-play-btn { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(to bottom, #2d5a3c, #1a3a24); border: 1px solid #3d7a4c; color: #a8e6b8; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; text-align: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.5); z-index: 3500; }
        .auto-play-btn:hover { background: linear-gradient(to bottom, #3d7a4c, #2d5a3c); box-shadow: 0 0 12px rgba(168, 230, 184, 0.6); transform: translateY(-2px); }
        .auto-play-btn:active { transform: scale(0.98) translateY(0); }
        .auto-play-btn.active { background: linear-gradient(to bottom, #c74a3a, #8f2a1a); border-color: #e65a4a; color: #fff; animation: pulseGlow 2s infinite; }
        @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); } 50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); } }
        
        .table-info-grid { display: flex; justify-content: space-between; text-align: center; }
        .ti-item { width: 48%; } 
        .ti-val { font-size: 14px; font-weight: bold; color: #e0e0e0; text-shadow: 0 2px 4px black; } 
        .ti-lbl { font-size: 8px; color: #667788; text-transform: uppercase; margin-top: 2px; }
        
        .panel-ctrls { position: absolute; top: 20px; right: 20px; display: flex; gap: 5px; z-index: 100; align-items: center; }
        .c-btn-stack { display: flex; flex-direction: column; gap: 5px; }
        .c-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
        .c-btn:hover { background: #1a3a5a; }
        .c-btn.fullscreen-active { background: #1a3a5a; border-color: #4a7da0; }
        
        /* Zoom Controls - Desktop in top right */
        .zoom-controls { position: absolute; top: 20px; right: 200px; display: flex; gap: 5px; z-index: 100; background: rgba(14, 37, 59, 0.8); border: 1px solid #2a4d70; border-radius: 20px; padding: 5px; }
        .zoom-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; transition: all 0.2s; color: #fff; font-size: 14px; font-weight: bold; }
        .zoom-btn:hover { background: #1a3a5a; transform: scale(1.05); }
        .zoom-btn:active { transform: scale(0.95); }
        .zoom-level { color: #aaa; font-size: 11px; padding: 0 8px; display: flex; align-items: center; min-width: 45px; justify-content: center; font-weight: bold; }

        /* Bid Display */
        .bid-display { display: none !important; /* Hidden - using profile p-score instead */ }

        /* Bidding Modal */
        .bid-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 500; justify-content: center; align-items: center; }
        .bid-content { background: linear-gradient(to bottom, #1a3a5e, #0d1f3a); border: 2px solid #3a6ba6; border-radius: 10px; padding: 20px; text-align: center; min-width: 300px; }
        .bid-content h3 { margin: 0 0 15px 0; color: #00ccff; }
        .bid-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .bid-btn { background: #204566; color: white; border: 1px solid #3a6ba6; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
        .bid-btn:hover { background: #305577; }
        
        /* Mobile Portrait - Normal Mode */
        @media (max-width: 768px) and (orientation: portrait) {
            .header {
                height: 40px;
                padding: 0 10px;
            }
            
            .header-logo {
                height: 24px;
            }
            
            .coin-display, .xp-display {
                font-size: 10px;
                padding: 2px 8px;
            }
            
            .game-container {
                height: calc(100vh - 40px);
                touch-action: none;
            }
            
            .table-wrapper {
                width: 125vw; /* Reduced by ~20% from 156vw */
                height: 45vh; /* Reduced height to zoom out */
                max-width: 860px; /* Reduced max-width */
                max-height: 340px; flex-shrink: 0;
                touch-action: none;
            }
            
            .right-panels-container {
                position: fixed !important;
                width: 70px;
                right: 0;
                bottom: 50px;
                font-size: 8px; 
                z-index: 3000 !important;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                overflow: visible !important;
                transform: translateX(0);
            }
            
            .right-panels-container.collapsed {
                transform: translateX(100%) !important;
            }
            
            .collapse-tab-right {
                position: absolute !important;
                left: -28px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                right: auto !important;
                bottom: auto !important;
                width: 24px;
                height: 50px;
                padding: 3px;
                font-size: 10px;
                writing-mode: vertical-rl;
                text-orientation: mixed;
                border-radius: 6px 0 0 6px;
                background: #ffaa00;
                border: 1px solid #fff;
                border-right: none;
                z-index: 3001 !important;
                pointer-events: auto;
            }

            .right-box {
                padding: 3px;
            }
            
            .rb-header {
                font-size: 4px;
                margin-bottom: 2px;
            }
            
            .rc {
                width: 12px;
                height: 18px;
                font-size: 5px;
            }
            
            .rc-1 { left: 7px; } 
            .rc-2 { left: 14px; } 
            .rc-3 { left: 21px; } 
            .rc-4 { left: 65px; }
            
            .real-cards-stack {
                height: 25px;
            }
            
            .table-info-grid {
                gap: 1px;
            }
            
            .ti-val {
                font-size: 7px;
            }
            
            .ti-lbl {
                font-size: 4px;
            }
            
            .auto-play-btn {
                padding: 6px 8px;
                font-size: 11px;
            }
            
            .panel-stats {
                width: 130px;
                left: 5px;
                top: 45px;
                max-height: 180px;
                overflow-y: auto;
                font-size: 11px;
                padding: 6px; z-index: 2000;
            }
            
            .stats-tbl th, .stats-tbl td {
                padding: 4px 6px;
                font-size: 11px;
            }

            .panel-chat {
                position: fixed !important;
                width: 280px !important;
                height: 250px !important; /* გაზრდილი 40%-ით */
                bottom: 10px;
                left: 10px;
                transform: none;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                overflow: visible !important;
                z-index: 3000 !important;
                border-radius: 16px !important;
            }
            
            /* ჩაკეცილი - პატარა ზომა, ტექსტის სიგანე */
            .panel-chat.minimized {
                height: 36px !important;
                width: auto !important;
                min-width: 90px !important;
                border-radius: 18px !important;
            }
            .panel-chat.minimized .chat-area {
                display: none !important;
            }
            .panel-chat.minimized .chat-input-wrap {
                display: none !important;
            }
            .panel-chat.minimized .chat-header {
                border-radius: 18px !important;
                border-bottom: none !important;
                padding: 8px 14px !important;
            }
            
            .collapse-tab-left {
                display: none !important;
            }
            
            .panel-chat:not(.minimized) {
                height: 250px !important; /* გაზრდილი */
                width: 280px !important;
            }
            
            .trump-info-box {
                display: block; top: 160px; right: 5px; transform: scale(0.7); transform-origin: top right; z-index: 2000;
            }
            
            
            
            
            
            
            
            
            
            
            
            
            
            .bid-situation {
                font-size: 5px;
                padding: 1px 3px;
                margin-top: 2px;
            }
            
            .panel-ctrls {
                right: 5px;
                top: 120px; z-index: 2000;
                flex-direction: column;
            }
            
            .c-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            
            /* Mobile - zoom controls below fullscreen button */
            .zoom-controls {
                top: 80px;
                right: 5px;
                left: auto;
                transform: none;
                padding: 2px;
                gap: 2px;
                flex-direction: row;
            }
            
            .zoom-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            
            .zoom-level {
                font-size: 8px;
                min-width: 32px;
                padding: 2px;
                height: 26px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .hero-cards-container {
                bottom: 165px;
            }
            
            .h-card {
                width: 32.5px;
                height: 47.5px;
                margin-right: -22px;
            }
            
            .h-card:hover {
                transform: translateY(-20px);
            }
            
            .profile-group {
                width: 104px;
            }
            
            .p-avatar-round {
                width: 74px;
                height: 77px;
            }
            
            .p-name {
                font-size: 10px;
            }
            
            .p-info {
                font-size: 11px;
                padding: 3px 6px;
            }
            
            .p-box {
                width: 74px;
                margin-top: 2px;
                padding: 0;
            }
            
            .p-score {
                gap: 4px;
            }
            
            .p-val {
                font-size: 22px; /* Doubled from 11px */
                width: auto; /* Allow expansion */
                height: 24px;
                line-height: 24px;
                font-weight: 900;
            }
            
            .timer-ring { right: -4px; bottom: -4px; width: auto; height: auto; }
            
            .center-card {
                width: 30px;
                height: 45px;
            }
            
            .center-cards {
                gap: 8px;
            }
            
            .card-slot-outline {
                width: 220px;
                height: 120px;
            }
            
            .logo-watermark {
                width: 120px;
            }
            
            /* Bot player cards */
            .c-back-v {
                width: 30px;
                height: 45px;
            }
            
            .c-back-h {
                width: 45px;
                height: 30px;
            }
            
            .hand-top .c-back-v {
                margin-left: -22px;
            }
            
            .hand-left .c-back-h,
            .hand-right .c-back-h {
                margin-top: -24px;
            }
            
            .bid-display {
                font-size: 10px;
                padding: 3px 8px;
            }
        }
        
        /* LANDSCAPE (ჰორიზონტალური) მობილური რეჟიმი */
        @media (max-width: 1024px) and (orientation: landscape) {
            /* Mobile Landscape - keep table centered; scaling is handled by JS */
            .game-container {
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                width: 100vw !important;
                height: calc(100vh - 48px) !important;
                overflow: hidden !important;
                position: relative !important;
                padding-top: 0 !important;
            }

            .table-wrapper {
                transform-origin: center center !important;
                margin-top: 0 !important;
            }

            /* Collapsible Right Panels for Landscape */
            .right-panels-container {
                position: fixed !important;
                width: 70px;
                right: 0;
                bottom: 50px;
                font-size: 8px;
                z-index: 3000 !important;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                overflow: visible !important;
                transform: translateX(0);
                display: flex;
                flex-direction: column;
                gap: 2px;
                background: rgba(0,0,0,0.85);
                padding: 3px;
                border-radius: 6px 0 0 6px;
            }
            
            .right-panels-container.collapsed {
                transform: translateX(100%) !important;
            }
            
            /* Toggle button - attached to panel */
            .collapse-tab-right {
                position: absolute !important;
                left: -28px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                right: auto !important;
                bottom: auto !important;
                width: 24px;
                height: 50px;
                padding: 3px;
                background: #ffaa00;
                border: 1px solid #fff;
                border-right: none;
                border-radius: 6px 0 0 6px;
                display: flex;
                align-items: center;
                justify-content: center;
                writing-mode: vertical-rl;
                text-orientation: mixed;
                color: #000;
                font-weight: bold;
                font-size: 10px;
                cursor: pointer;
                box-shadow: -2px 0 4px rgba(0,0,0,0.5);
                z-index: 3001 !important;
                pointer-events: auto;
            }
                pointer-events: auto;
                white-space: nowrap;
            }

            /* Auto-play button for landscape - მარჯვენა ქვედა კუთხე */
            .auto-play-btn {
                position: fixed !important;
                bottom: 5px !important;
                right: 10px !important;
                z-index: 3500 !important;
                width: auto !important;
                padding: 6px 10px !important;
                font-size: 10px !important;
            }

            /* Collapsible Chat for Landscape - Bottom Sheet Style */
            .panel-chat {
                position: fixed !important;
                width: 260px !important;
                height: 180px !important;
                bottom: 50px !important;
                left: 10px !important;
                transform: none !important;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
                overflow: visible !important;
                z-index: 3000 !important;
                border-radius: 16px !important;
            }
            
            /* ჩაკეცილი - პატარა ზომა, ტექსტის სიგანე */
            .panel-chat.minimized {
                height: 34px !important;
                width: auto !important;
                min-width: 80px !important;
                border-radius: 17px !important;
                bottom: 10px !important;
            }
            .panel-chat.minimized .chat-area {
                display: none !important;
            }
            .panel-chat.minimized .chat-input-wrap {
                display: none !important;
            }
            .panel-chat.minimized .chat-header {
                border-radius: 17px !important;
                border-bottom: none !important;
                padding: 7px 12px !important;
            }
            .panel-chat.minimized .chat-title {
                font-size: 11px !important;
            }
            
            .panel-chat:not(.minimized) {
                width: 260px !important;
            }
            
            .collapse-tab-left {
                display: none !important;
            }

            /* Adjust content inside panels for small height */
            .panel-stats {
                max-height: 120px;
                font-size: 13px !important;
            }
            .panel-stats .stats-tbl td,
            .panel-stats .stats-tbl th {
                font-size: 13px !important;
                padding: 5px 8px !important;
            }
            .real-cards-stack {
                height: 18px;
            }
            /* Stats/Table info box - compact margins */
            .right-box {
                padding: 1px;
                margin: 0;
                border-radius: 3px;
            }
            .right-box .rb-header {
                font-size: 6px;
                padding: 1px 2px;
                margin-bottom: 1px;
            }
            .right-box .table-info-grid {
                gap: 1px;
            }
            .right-box .ti-item {
                padding: 1px;
            }
            .right-box .ti-val {
                font-size: 8px;
            }
            .right-box .ti-lbl {
                font-size: 5px;
            }

            .header {
                height: 35px;
                padding: 0 8px;
            }
            
            .header-logo {
                height: 22px;
            }
            
            .coin-display, .xp-display {
                font-size: 10px;
                padding: 2px 8px;
            }
            
            /* Trump card - smaller but visible */
            .trump-card-display {
                left: 20px;
                bottom: 20px;
                top: auto;
                transform: none;
                padding: 4px;
                max-width: 80px;
            }
            
            .trump-card {
                width: 40px;
                height: 60px;
                padding: 3px;
            }
            
            .trump-label {
                font-size: 7px;
                margin-bottom: 2px;
            }
            
            .trump-rank {
                font-size: 11px;
            }
            
            .trump-suit-big {
                font-size: 24px;
            }
            
            .trump-round-info {
                font-size: 7px;
                margin-top: 2px;
            }
            
            .bid-situation {
                font-size: 7px;
                padding: 2px 4px;
                margin-top: 2px;
            }
            
            /* Right panels - compact */
            .right-panels-container {
                width: 90px;
                right: 5px;
                bottom: 5px;
                gap: 4px;
            }

            .right-panels-container.collapsed {
                transform: translateX(calc(100% + 5px)) !important;
            }
            
            .right-box {
                padding: 4px;
            }
            
            .rb-header {
                font-size: 7px;
                margin-bottom: 3px;
            }
            
            .rc {
                width: 22px;
                height: 33px;
                font-size: 11px;
            }
            
            .rc-1 { left: 12px; }
            .rc-2 { left: 24px; }
            .rc-3 { left: 36px; }
            .rc-4 { left: 48px; }
            
            .real-cards-stack {
                height: 38px;
            }
            
            .ti-val {
                font-size: 10px;
            }
            
            .ti-lbl {
                font-size: 7px;
            }
            
            /* Stats table - smaller */
            .panel-stats {
                width: 160px;
                left: 5px;
                top: 40px;
                max-height: 140px;
                padding: 5px;
                font-size: 8px;
            }
            
            .stats-tbl th, .stats-tbl td {
                padding: 2px 4px;
                font-size: 8px;
            }
            
            /* Chat - minimized by default */
            .panel-chat {
                width: 85%;
                max-width: 320px;
                height: 30px;
                bottom: 5px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .panel-chat:not(.minimized) {
                height: 120px;
            }
            
            /* Zoom controls - below fullscreen on right */
            .zoom-controls {
                top: 75px;
                right: 5px;
                left: auto;
                transform: none;
                padding: 2px;
                gap: 2px;
                flex-direction: row;
            }
            
            .zoom-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            
            .zoom-level {
                font-size: 8px;
                min-width: 32px;
                height: 26px;
                padding: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            /* Hero cards - smaller */
            .hero-cards-container {
                bottom: -3px;
            }
            
            .h-card {
                width: 55px;
                height: 82px;
                margin-right: -20px;
            }
            
            .h-card:hover {
                transform: translateY(-22px);
            }
            
            /* Profile - compact */
            .profile-group {
                width: 96px;
            }
            
            .p-avatar-round {
                width: 67px;
                height: 71px;
            }
            
            .p-name {
                font-size: 11px;
            }
            
            .p-box {
                width: 67px;
                margin-top: 2px;
                padding: 0;
            }
            
            .p-val {
                font-size: 10px;
                width: 20px;
                height: 20px;
                line-height: 20px;
            }
            
            /* Center cards */
            .center-card {
                width: 50px;
                height: 75px;
            }
            
            .center-cards {
                width: 160px;
                height: 160px;
            }
            
            /* Bot cards - compact */
            .c-back-v {
                width: 48px;
                height: 70px;
                margin-left: -28px;
            }
            
            .c-back-h {
                width: 76px;
                height: 52px;
                margin-top: -36px;
            }
            
            .hand-top {
                margin-top: 6px;
            }
            
            .hand-left {
                margin-left: 15px;
            }
            
            .hand-right {
                margin-right: 15px;
            }
        }
        
        /* Fullscreen mode adjustments */
        body:fullscreen, html:fullscreen {
            overflow: hidden;
        }
        
        body:-webkit-full-screen, html:-webkit-full-screen {
            overflow: hidden;
        }
        
        body:-moz-full-screen, html:-moz-full-screen {
            overflow: hidden;
        }
        
        /* Zoom controls always visible in fullscreen on mobile */
        @media (max-width: 768px) and (orientation: portrait) {
            body:fullscreen .zoom-controls,
            body:-webkit-full-screen .zoom-controls,
            body:-moz-full-screen .zoom-controls {
                display: flex;
                position: fixed;
                top: 10px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1000;
            }
            
            /* Ensure fullscreen button is visible on mobile */
            .panel-ctrls {
                z-index: 1001;
            }
        }
        
        /* Disconnected Modal */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-card {
            background: rgba(20, 20, 20, 0.9);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
            position: relative;
            z-index: 1010;
        }
        
        .signal-container {
            position: relative;
            width: 60px;
            height: 60px;
            margin: 0 auto 15px auto;
        }
        
        .pulse-ring {
            position: absolute;
            border-radius: 50%;
            border: 4px solid transparent;
            animation: pulse-animation 1.5s infinite;
        }
        
        .pulse-ring:nth-child(1) {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-color: rgba(255, 255, 255, 0.3);
            animation-delay: 0s;
        }
        
        .pulse-ring:nth-child(2) {
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border-color: rgba(255, 255, 255, 0.2);
            animation-delay: 0.3s;
        }
        
        @keyframes pulse-animation {
            0% {
                transform: scale(0.9);
                opacity: 1;
            }
            50% {
                transform: scale(1);
                opacity: 0.7;
            }
            100% {
                transform: scale(0.9);
                opacity: 1;
            }
        }
        
        .wifi-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        h2 {
            font-size: 18px;
            margin: 0 0 10px 0;
            color: #ffd700;
        }
        
        p {
            font-size: 14px;
            margin: 0 0 15px 0;
            color: #ccc;
        }
        
        .reconnect-btn {
            background: linear-gradient(to right, #28a745, #218838);
            border: none;
            border-radius: 4px;
            color: white;
            padding: 12px 24px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s, transform 0.3s;
            position: relative;
            z-index: 1020;
        }
        
        .reconnect-btn:hover {
            background: linear-gradient(to right, #218838, #28a745);
            transform: translateY(-2px);
        }
        
        .reconnect-btn:active {
            transform: translateY(0);
        }
        
        .reconnect-btn svg {
            width: 16px;
            height: 16px;
            margin-right: 8px;
            fill: white;
        }
        
        /* --- 6. POSITIONS --- */
        .pos-top { position: absolute; top: -55px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 30; }
        .pos-top .dealer-btn { top: 40px; right: -20px; }
        .hand-top { display: flex; margin-top: 10px; margin-left: -11px; position: relative; z-index: 40; }
        .c-back-v { width: 60.27px; height: 88.2px; margin-left: -45px; }
        .c-back-v:first-child { margin-left: 0; }

        .pos-left { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-left { display: flex; flex-direction: column; margin-left: 20px; z-index: 40; }
        .c-back-h { width: 96px; height: 65.6px; margin-top: -55px; }
        .c-back-h:first-child { margin-top: 0; }

        .pos-right { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-right { display: flex; flex-direction: column; margin-right: 20px; z-index: 40; }

        /* HERO PROFILE */
        .hero-profile-fixed {
            position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
            z-index: 720; display: flex; flex-direction: column; align-items: center; width: 130px;
        }
        .hero-border { border: none; box-shadow: none; }

        /* HERO CARDS */
        .hero-cards-container {
            position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
            z-index: 650; display: flex; align-items: flex-end;
        }
        .h-card { width: 69.3px; height: 103.95px; margin-right: -45px; position: relative; cursor: pointer; transition: transform 0.2s; }
        .h-card:last-child { margin-right: 0; }
        .h-card:hover { transform: translateY(-30.8px); z-index: 150; }

        /* Center Played Cards */
        .center-cards { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; width: 200px; height: 200px; }
        .center-card { width: 70px; height: 105px; position: absolute; transition: all 0.3s; }
        
        /* Position cards based on seat */
        .center-card[data-seat="0"] { top: 0; left: 50%; transform: translateX(-50%); } /* Top player */
        .center-card[data-seat="1"] { right: 0; top: 50%; transform: translateY(-50%); } /* Right player */
        .center-card[data-seat="2"] { bottom: 0; left: 50%; transform: translateX(-50%); } /* Bottom player (hero) */
        .center-card[data-seat="3"] { left: 0; top: 50%; transform: translateY(-50%); } /* Left player */

        /* --- PANELS --- */
        .panel-stats { position: absolute; top: 20px; left: 20px; background: rgba(6,18,30,0.9); border: 1px solid #1d3c59; padding: 12px; border-radius: 5px; z-index: 100; max-width: 500px; }
        .stats-tbl { font-size: 28px !important; color: #abc; border-collapse: collapse; }
        .stats-tbl th { background: #0a1e33; padding: 12px 24px !important; font-size: 28px !important; text-align: center; border: 1px solid #1d3c59; }
        .stats-tbl td { padding: 12px 24px !important; font-size: 28px !important; text-align: center; border: 1px solid #1d3c59; }
        .tot-row td { color: orange; font-weight: bold; }

        .panel-chat { position: fixed; bottom: 10px; left: 10px; width: 300px; height: 180px; background: rgba(0,0,0,0.6); border: 1px solid #2a4d70; border-radius: 6px; display: flex; flex-direction: column; z-index: 100; transition: all 0.3s; }
        .panel-chat.minimized { height: 35px; }
        .panel-chat.minimized .chat-area { display: none; }
        .panel-chat.minimized .chat-input-wrap { display: none; }
        .chat-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.05); border-bottom: 1px solid #2a4d70; cursor: pointer; user-select: none; }
        .chat-header:hover { background: rgba(255,255,255,0.08); }
        .chat-title { font-size: 12px; font-weight: bold; color: #aaa; }
        .chat-toggle { color: #aaa; font-size: 14px; transition: transform 0.3s; }
        .panel-chat.minimized .chat-toggle { transform: rotate(180deg); }
        .chat-area { flex: 1; padding: 10px; font-size: 11px; color: #ccc; overflow-y: auto; }
        .chat-input-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-top: 1px solid #2a4d70; padding: 5px; }
        .chat-inp { flex: 1; background: transparent; border: none; color: white; outline: none; padding: 5px; font-size: 12px; }
        .voice-btn { color: #aaa; cursor: pointer; padding: 5px 10px; border-left: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
        .voice-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
        .voice-btn.recording { color: #e74c3c; animation: pulse 1s infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        .voice-status { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.9); color: white; padding: 12px 24px; border-radius: 20px; font-size: 12px; display: none; z-index: 200; }
        .voice-status.show { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
        
        /* TRUMP CARD DISPLAY & DECK */
        .deck-pile {
            position: absolute;
            bottom: -45px;
            left: 60px;
            width: 70px;
            height: 105px;
            background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
            border-radius: 5px;
            border: 2px solid #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.5);
            z-index: 10;
            display: none; /* Hidden as requested */
            justify-content: center;
            align-items: center;
        }
        .deck-pile::after { /* Stack effect */
            content: ""; position: absolute; top: -3px; left: 2px; width: 100%; height: 100%;
            background: inherit; border-radius: 5px; border: 1px solid rgba(255,255,255,0.3); z-index: -1;
        }

        .trump-card-display { 
            position: absolute; 
            bottom: -45px; /* Hide slightly more */
            left: 60px;   /* Corner */
            z-index: 10; /* On top of felt */
            width: 140px; height: 140px; 
            pointer-events: none;
            display: flex; align-items: center;
        }
        .trump-label {
            position: absolute;
            top: -5px;
            left: 90px; /* Center of the card (35px left + 35px half-width) */
            transform: translateX(-50%) rotate(15deg); /* Rotate like the card */
            color: #ccc;
            font-size: 12px;
            font-weight: bold;
            text-shadow: 1px 1px 2px black;
            z-index: 20;
            pointer-events: none;
        }
        .trump-card { 
            width: 70px; height: 105px; 
            background: white; border-radius: 5px; box-shadow: 0 3px 8px rgba(0,0,0,0.6); 
            display: flex; flex-direction: column; justify-content: space-between; padding: 6px; 
            
            /* Rotation and Positioning Logic */
            position: absolute;
            top: 17px; /* Center vertically relative to container */
            left: 35px; /* Shift right to peek out */
            transform: rotate(15deg); /* Tilted right */
            transform-origin: center;
        }
        .trump-card.no-trump { 
            background: linear-gradient(135deg, #2c3e50, #34495e); color: white; 
            display: flex; align-items: center; justify-content: center; 
            font-weight: bold; font-size: 12px; 
            transform: none; left: 0; top: 17px; /* Reset */
        }
        .trump-rank { font-size: 18px; font-weight: bold; line-height: 1; }
        .trump-suit-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; opacity: 0.3; }
        .trump-round-info { 
            position: absolute; bottom: -25px; left: 0; width: 70px; 
            text-align: center; font-size: 10px; color: #667788; 
        }
        
        .bid-situation { 
            position: absolute;
            top: 25%; 
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            margin-top: 0; 
            padding: 4px 8px; /* Reduced padding */
            border-radius: 4px; 
            font-size: 10px; /* Reduced font size */
            font-weight: bold; 
            text-align: center; 
            display: none; 
        }
        .bid-situation.active { display: block; }
        .bid-situation.steal { background: linear-gradient(to bottom, #ff4444, #cc0000); color: #fff; box-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
        .bid-situation.force { background: linear-gradient(to bottom, #ff9500, #ff6b00); color: #fff; box-shadow: 0 0 8px rgba(255, 149, 0, 0.6); }
        .bid-situation.balance { background: linear-gradient(to bottom, #00cc66, #009944); color: #fff; box-shadow: 0 0 8px rgba(0, 204, 102, 0.6); }
        
        .right-panels-container { position: absolute; bottom: 70px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: 120px; z-index: 100; }
        .right-box { background: linear-gradient(to bottom, rgba(15, 30, 45, 0.9), rgba(5, 15, 25, 0.95)); border: 1px solid #1d3c59; border-radius: 4px; padding: 6px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
        .rb-header { font-size: 9px; color: #8899aa; text-align: center; margin-bottom: 8px; text-transform: uppercase; }
        
        .real-cards-stack { display: flex; justify-content: center; height: 45px; width: 100%; position: relative; }
        .rc { width: 30px; height: 45px; background: white; border-radius: 3px; border: 1px solid #aaa; box-shadow: -2px 0 5px rgba(0,0,0,0.5); position: absolute; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; }
        .rc-1 { left: 5px; z-index: 1; opacity: 0.6; } 
        .rc-2 { left: 25px; z-index: 2; opacity: 0.8; } 
        .rc-3 { left: 45px; z-index: 3; opacity: 0.9; } 
        .rc-4 { left: 65px; z-index: 4; opacity: 1; box-shadow: 0 0 5px rgba(0,0,0,0.8); }
        .auto-play-btn { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(to bottom, #2d5a3c, #1a3a24); border: 1px solid #3d7a4c; color: #a8e6b8; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; text-align: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.5); z-index: 3500; }
        .auto-play-btn:hover { background: linear-gradient(to bottom, #3d7a4c, #2d5a3c); box-shadow: 0 0 12px rgba(168, 230, 184, 0.6); transform: translateY(-2px); }
        .auto-play-btn:active { transform: scale(0.98) translateY(0); }
        .auto-play-btn.active { background: linear-gradient(to bottom, #c74a3a, #8f2a1a); border-color: #e65a4a; color: #fff; animation: pulseGlow 2s infinite; }
        @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); } 50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); } }
        
        .table-info-grid { display: flex; justify-content: space-between; text-align: center; }
        .ti-item { width: 48%; } 
        .ti-val { font-size: 14px; font-weight: bold; color: #e0e0e0; text-shadow: 0 2px 4px black; } 
        .ti-lbl { font-size: 8px; color: #667788; text-transform: uppercase; margin-top: 2px; }
        
        .panel-ctrls { position: absolute; top: 20px; right: 20px; display: flex; gap: 5px; z-index: 100; align-items: center; }
        .c-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
        .c-btn:hover { background: #1a3a5a; }
        .c-btn.fullscreen-active { background: #1a3a5a; border-color: #4a7da0; }
        
        /* Zoom Controls - Desktop in top right */
        .zoom-controls { position: absolute; top: 20px; right: 200px; display: flex; gap: 5px; z-index: 100; background: rgba(14, 37, 59, 0.8); border: 1px solid #2a4d70; border-radius: 20px; padding: 5px; }
        .zoom-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; transition: all 0.2s; color: #fff; font-size: 14px; font-weight: bold; }
        .zoom-btn:hover { background: #1a3a5a; transform: scale(1.05); }
        .zoom-btn:active { transform: scale(0.95); }
        .zoom-level { color: #aaa; font-size: 11px; padding: 0 8px; display: flex; align-items: center; min-width: 45px; justify-content: center; font-weight: bold; }

        /* Bid Display */
        .bid-display { display: none !important; /* Hidden - using profile p-score instead */ }

        /* Bidding Modal */
        .bid-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 500; justify-content: center; align-items: center; }
        .bid-content { background: linear-gradient(to bottom, #1a3a5e, #0d1f3a); border: 2px solid #3a6ba6; border-radius: 10px; padding: 20px; text-align: center; min-width: 300px; }
        .bid-content h3 { margin: 0 0 15px 0; color: #00ccff; }
        .bid-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .bid-btn { background: #204566; color: white; border: 1px solid #3a6ba6; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
        .bid-btn:hover { background: #305577; }
        
        /* Mobile Portrait - Normal Mode */
        @media (max-width: 768px) and (orientation: portrait) {
            .header {
                height: 40px;
                padding: 0 10px;
            }
            
            .header-logo {
                height: 24px;
            }
            
            .coin-display, .xp-display {
                font-size: 10px;
                padding: 2px 8px;
            }
            
            .game-container {
                height: calc(100vh - 40px);
            }
            
            .table-wrapper {
                width: 156vw;
                height: 56vh;
                max-width: 1080px;
                max-height: 420px; flex-shrink: 0;
            }
            
            .right-panels-container {
                width: 65px;
                right: 5px;
                bottom: 5px;
                font-size: 10px; z-index: 2000;
            }
            
            .right-box {
                padding: 4px;
            }
            
            .rb-header {
                font-size: 5px;
                margin-bottom: 3px;
            }
            
            .rc {
                width: 17.5px;
                height: 26px;
                font-size: 7px;
            }
            
            .rc-1 { left: 10px; } 
            .rc-2 { left: 20px; } 
            .rc-3 { left: 30px; } 
            .rc-4 { left: 40px; }
            
            .real-cards-stack {
                height: 35px;
            }
            
            .table-info-grid {
                gap: 2px;
            }
            
            .ti-val {
                font-size: 11px;
                color: #e0e0e0;
            }
            
            .ti-lbl {
                font-size: 5px;
            }
            
            .auto-play-btn {
                padding: 8px 10px;
                font-size: 11px;
            }
            
            .panel-stats {
                width: 130px;
                left: 5px;
                top: 45px;
                max-height: 180px;
                overflow-y: auto;
                font-size: 11px;
                padding: 6px; z-index: 2000;
            }
            
            .stats-tbl th, .stats-tbl td {
                padding: 4px 6px;
                font-size: 11px;
            }
            
            .panel-chat {
                width: 90%;
                max-width: 280px;
                height: 35px;
                bottom: 5px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .panel-chat:not(.minimized) {
                height: 150px;
            }
            
            .trump-info-box {
                display: block; top: 160px; right: 5px; transform: scale(0.7); transform-origin: top right; z-index: 2000;
            }
            
            
            
            
            
            
            
            
            
            
            
            
            
            .bid-situation {
                font-size: 5px;
                padding: 1px 3px;
                margin-top: 2px;
            }
            
            .panel-ctrls {
                right: 5px;
                top: 120px; z-index: 2000;
                flex-direction: column;
            }
            
            .c-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            
            /* Mobile - zoom controls below fullscreen button */
            .zoom-controls {
                top: 80px;
                right: 5px;
                left: auto;
                transform: none;
                padding: 2px;
                gap: 2px;
                flex-direction: row;
            }
            
            .zoom-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            
            .zoom-level {
                font-size: 8px;
                min-width: 32px;
                height: 26px;
                padding: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .hero-cards-container {
                bottom: 165px;
            }
            
            .h-card {
                width: 65px;
                height: 95px;
                margin-right: -22px;
            }
            
            .h-card:hover {
                transform: translateY(-20px);
            }
            
            .profile-group {
                width: 120px;
            }
            
            .p-avatar-round {
                width: 74px;
                height: 77px;
            }
            
            .p-name {
                font-size: 10px;
            }
            
            .p-info {
                font-size: 11px;
                padding: 3px 6px;
            }
            
            .p-box {
                width: 74px;
                margin-top: 2px;
                padding: 0;
            }
            
            .p-score {
                gap: 4px;
            }
            
            .p-val {
                font-size: 11px;
                width: 22px;
                height: 22px;
                line-height: 22px;
            }
            
            .timer-ring { right: -4px; bottom: -4px; width: auto; height: auto; }
            
            .center-card {
                width: 30px;
                height: 45px;
            }
            
            .center-cards {
                gap: 8px;
            }
            
            .card-slot-outline {
                width: 220px;
                height: 120px;
            }
            
            .logo-watermark {
                width: 120px;
            }
            
            /* Bot player cards */
            .c-back-v {
                width: 30px;
                height: 45px;
            }
            
            .c-back-h {
                width: 45px;
                height: 30px;
            }
            
            .hand-top .c-back-v {
                margin-left: -22px;
            }
            
            .hand-left .c-back-h,
            .hand-right .c-back-h {
                margin-top: -24px;
            }
            
            .bid-display {
                font-size: 10px;
                padding: 3px 8px;
            }
        }
        
        /* LANDSCAPE (ჰორიზონტალური) მობილური რეჟიმი */
        @media (max-width: 1px) and (orientation: landscape) {
            .header {
                height: 35px;
                padding: 0 8px;
            }
            
            .header-logo {
                height: 22px;
            }
            
            .coin-display, .xp-display {
                font-size: 10px;
                padding: 2px 8px;
            }
            
            /* Trump card - smaller but visible */
            .trump-card-display {
                left: 20px;
                bottom: 20px;
                top: auto;
                transform: none;
                padding: 4px;
                max-width: 80px;
            }
            
            .trump-card {
                width: 40px;
                height: 60px;
                padding: 3px;
            }
            
            .trump-label {
                font-size: 7px;
                margin-bottom: 2px;
            }
            
            .trump-rank {
                font-size: 11px;
            }
            
            .trump-suit-big {
                font-size: 24px;
            }
            
            .trump-round-info {
                font-size: 7px;
                margin-top: 2px;
            }
            
            .bid-situation {
                font-size: 7px;
                padding: 2px 4px;
                margin-top: 2px;
            }
            
            /* Right panels - compact */
            .right-panels-container {
                width: 90px;
                right: 5px;
                bottom: 5px;
                gap: 4px;
            }
            
            .right-box {
                padding: 4px;
            }
            
            .rb-header {
                font-size: 7px;
                margin-bottom: 3px;
            }
            
            .rc {
                width: 22px;
                height: 33px;
                font-size: 11px;
            }
            
            .rc-1 { left: 12px; }
            .rc-2 { left: 24px; }
            .rc-3 { left: 36px; }
            .rc-4 { left: 48px; }
            
            .real-cards-stack {
                height: 38px;
            }
            
            .ti-val {
                font-size: 10px;
            }
            
            .ti-lbl {
                font-size: 7px;
            }
            
            /* Stats table - smaller */
            .panel-stats {
                width: 160px;
                left: 5px;
                top: 40px;
                max-height: 140px;
                padding: 5px;
                font-size: 8px;
            }
            
            .stats-tbl th, .stats-tbl td {
                padding: 2px 4px;
                font-size: 8px;
            }
            
            /* Chat - minimized by default */
            .panel-chat {
                width: 85%;
                max-width: 320px;
                height: 30px;
                bottom: 5px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .panel-chat:not(.minimized) {
                height: 120px;
            }
            
            /* Zoom controls - below fullscreen on right */
            .zoom-controls {
                top: 75px;
                right: 5px;
                left: auto;
                transform: none;
                padding: 2px;
                gap: 2px;
                flex-direction: row;
            }
            
            .zoom-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            
            .zoom-level {
                font-size: 8px;
                min-width: 32px;
                height: 26px;
                padding: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            /* Hero cards - smaller */
            .hero-cards-container {
                bottom: -3px;
            }
            
            .h-card {
                width: 55px;
                height: 82px;
                margin-right: -20px;
            }
            
            .h-card:hover {
                transform: translateY(-22px);
            }
            
            /* Profile - compact */
            .profile-group {
                width: 96px;
            }
            
            .p-avatar-round {
                width: 67px;
                height: 71px;
            }
            
            .p-name {
                font-size: 11px;
            }
            
            .p-box {
                width: 67px;
                margin-top: 2px;
                padding: 0;
            }
            
            .p-val {
                font-size: 10px;
                width: 20px;
                height: 20px;
                line-height: 20px;
            }
            
            /* Center cards */
            .center-card {
                width: 50px;
                height: 75px;
            }
            
            .center-cards {
                width: 160px;
                height: 160px;
            }
            
            /* Bot cards - compact */
            .c-back-v {
                width: 48px;
                height: 70px;
                margin-left: -28px;
            }
            
            .c-back-h {
                width: 76px;
                height: 52px;
                margin-top: -36px;
            }
            
            .hand-top {
                margin-top: 6px;
            }
            
            .hand-left {
                margin-left: 15px;
            }
            
            .hand-right {
                margin-right: 15px;
            }
        }
        
        /* Fullscreen mode adjustments */
        body:fullscreen, html:fullscreen {
            overflow: hidden;
        }
        
        body:-webkit-full-screen, html:-webkit-full-screen {
            overflow: hidden;
        }
        
        body:-moz-full-screen, html:-moz-full-screen {
            overflow: hidden;
        }
        
        /* Zoom controls always visible in fullscreen on mobile */
        @media (max-width: 768px) and (orientation: portrait) {
            body:fullscreen .zoom-controls,
            body:-webkit-full-screen .zoom-controls,
            body:-moz-full-screen .zoom-controls {
                display: flex;
                position: fixed;
                top: 10px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1000;
            }
            
            /* Ensure fullscreen button is visible on mobile */
            .panel-ctrls {
                z-index: 1001;
            }
        }
        
        /* Disconnected Modal */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-card {
            background: rgba(20, 20, 20, 0.9);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
            position: relative;
            z-index: 1010;
        }
        
        .signal-container {
            position: relative;
            width: 60px;
            height: 60px;
            margin: 0 auto 15px auto;
        }
        
        .pulse-ring {
            position: absolute;
            border-radius: 50%;
            border: 4px solid transparent;
            animation: pulse-animation 1.5s infinite;
        }
        
        .pulse-ring:nth-child(1) {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-color: rgba(255, 255, 255, 0.3);
            animation-delay: 0s;
        }
        
        .pulse-ring:nth-child(2) {
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border-color: rgba(255, 255, 255, 0.2);
            animation-delay: 0.3s;
        }
        
        @keyframes pulse-animation {
            0% {
                transform: scale(0.9);
                opacity: 1;
            }
            50% {
                transform: scale(1);
                opacity: 0.7;
            }
            100% {
                transform: scale(0.9);
                opacity: 1;
            }
        }
        
        .wifi-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        h2 {
            font-size: 18px;
            margin: 0 0 10px 0;
            color: #ffd700;
        }
        
        p {
            font-size: 14px;
            margin: 0 0 15px 0;
            color: #ccc;
        }
        
        .reconnect-btn {
            background: linear-gradient(to right, #28a745, #218838);
            border: none;
            border-radius: 4px;
            color: white;
            padding: 12px 24px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s, transform 0.3s;
            position: relative;
            z-index: 1020;
        }
        
        .reconnect-btn:hover {
            background: linear-gradient(to right, #218838, #28a745);
            transform: translateY(-2px);
        }
        
        .reconnect-btn:active {
            transform: translateY(0);
        }
        
        .reconnect-btn svg {
            width: 16px;
            height: 16px;
            margin-right: 8px;
            fill: white;
        }
        
        /* --- 6. POSITIONS --- */
        .pos-top { position: absolute; top: -55px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 30; }
        .pos-top .dealer-btn { top: 40px; right: -20px; }
        .hand-top { display: flex; margin-top: 10px; margin-left: -11px; position: relative; z-index: 40; }
        .c-back-v { width: 60.27px; height: 88.2px; margin-left: -45px; }
        .c-back-v:first-child { margin-left: 0; }

        .pos-left { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-left { display: flex; flex-direction: column; margin-left: 20px; z-index: 40; }
        .c-back-h { width: 96px; height: 65.6px; margin-top: -55px; }
        .c-back-h:first-child { margin-top: 0; }

        .pos-right { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row; align-items: center; z-index: 30; }
        .hand-right { display: flex; flex-direction: column; margin-right: 20px; z-index: 40; }

        /* HERO PROFILE */
        .hero-profile-fixed {
            position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
            z-index: 720; display: flex; flex-direction: column; align-items: center; width: 130px;
        }
        .hero-border { border: none; box-shadow: none; }

        /* HERO CARDS */
        .hero-cards-container {
            position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
            z-index: 650; display: flex; align-items: flex-end;
        }
        .h-card { width: 69.3px; height: 103.95px; margin-right: -45px; position: relative; cursor: pointer; transition: transform 0.2s; }
        .h-card:last-child { margin-right: 0; }
        .h-card:hover { transform: translateY(-30.8px); z-index: 150; }

        /* Center Played Cards */
        .center-cards { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; width: 200px; height: 200px; }
        .center-card { width: 70px; height: 105px; position: absolute; transition: all 0.3s; }
        
        /* Position cards based on seat */
        .center-card[data-seat="0"] { top: 0; left: 50%; transform: translateX(-50%); } /* Top player */
        .center-card[data-seat="1"] { right: 0; top: 50%; transform: translateY(-50%); } /* Right player */
        .center-card[data-seat="2"] { bottom: 0; left: 50%; transform: translateX(-50%); } /* Bottom player (hero) */
        .center-card[data-seat="3"] { left: 0; top: 50%; transform: translateY(-50%); } /* Left player */

        /* --- PANELS --- */
        .panel-stats { position: absolute; top: 20px; left: 20px; background: rgba(6,18,30,0.9); border: 1px solid #1d3c59; padding: 12px; border-radius: 5px; z-index: 100; max-width: 500px; }
        .stats-tbl { font-size: 28px !important; color: #abc; border-collapse: collapse; }
        .stats-tbl th { background: #0a1e33; padding: 12px 24px !important; font-size: 28px !important; text-align: center; border: 1px solid #1d3c59; }
        .stats-tbl td { padding: 12px 24px !important; font-size: 28px !important; text-align: center; border: 1px solid #1d3c59; }
        .tot-row td { color: orange; font-weight: bold; }

        .panel-chat { position: fixed; bottom: 10px; left: 10px; width: 300px; height: 180px; background: rgba(0,0,0,0.6); border: 1px solid #2a4d70; border-radius: 6px; display: flex; flex-direction: column; z-index: 100; transition: all 0.3s; }
        .panel-chat.minimized { height: 35px; }
        .panel-chat.minimized .chat-area { display: none; }
        .panel-chat.minimized .chat-input-wrap { display: none; }
        .chat-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.05); border-bottom: 1px solid #2a4d70; cursor: pointer; user-select: none; }
        .chat-header:hover { background: rgba(255,255,255,0.08); }
        .chat-title { font-size: 12px; font-weight: bold; color: #aaa; }
        .chat-toggle { color: #aaa; font-size: 14px; transition: transform 0.3s; }
        .panel-chat.minimized .chat-toggle { transform: rotate(180deg); }
        .chat-area { flex: 1; padding: 10px; font-size: 11px; color: #ccc; overflow-y: auto; }
        .chat-input-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-top: 1px solid #2a4d70; padding: 5px; }
        .chat-inp { flex: 1; background: transparent; border: none; color: white; outline: none; padding: 5px; font-size: 12px; }
        .voice-btn { color: #aaa; cursor: pointer; padding: 5px 10px; border-left: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
        .voice-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
        .voice-btn.recording { color: #e74c3c; animation: pulse 1s infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        .voice-status { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.9); color: white; padding: 12px 24px; border-radius: 20px; font-size: 12px; display: none; z-index: 200; }
        .voice-status.show { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
        
        /* TRUMP CARD DISPLAY & DECK */
        .deck-pile {
            position: absolute;
            bottom: -45px;
            left: 60px;
            width: 70px;
            height: 105px;
            background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
            border-radius: 5px;
            border: 2px solid #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.5);
            z-index: 10;
            display: none; /* Hidden as requested */
            justify-content: center;
            align-items: center;
        }
        .deck-pile::after { /* Stack effect */
            content: ""; position: absolute; top: -3px; left: 2px; width: 100%; height: 100%;
            background: inherit; border-radius: 5px; border: 1px solid rgba(255,255,255,0.3); z-index: -1;
        }

        .trump-card-display { 
            position: absolute; 
            bottom: -45px; /* Hide slightly more */
            left: 60px;   /* Corner */
            z-index: 10; /* On top of felt */
            width: 140px; height: 140px; 
            pointer-events: none;
            display: flex; align-items: center;
        }
        .trump-label {
            position: absolute;
            top: -5px;
            left: 90px; /* Center of the card (35px left + 35px half-width) */
            transform: translateX(-50%) rotate(15deg); /* Rotate like the card */
            color: #ccc;
            font-size: 12px;
            font-weight: bold;
            text-shadow: 1px 1px 2px black;
            z-index: 20;
            pointer-events: none;
        }
        .trump-card { 
            width: 70px; height: 105px; 
            background: white; border-radius: 5px; box-shadow: 0 3px 8px rgba(0,0,0,0.6); 
            display: flex; flex-direction: column; justify-content: space-between; padding: 6px; 
            
            /* Rotation and Positioning Logic */
            position: absolute;
            top: 17px; /* Center vertically relative to container */
            left: 35px; /* Shift right to peek out */
            transform: rotate(15deg); /* Tilted right */
            transform-origin: center;
        }
        .trump-card.no-trump { 
            background: linear-gradient(135deg, #2c3e50, #34495e); color: white; 
            display: flex; align-items: center; justify-content: center; 
            font-weight: bold; font-size: 12px; 
            transform: none; left: 0; top: 17px; /* Reset */
        }
        .trump-rank { font-size: 18px; font-weight: bold; line-height: 1; }
        .trump-suit-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; opacity: 0.3; }
        .trump-round-info { 
            position: absolute; bottom: -25px; left: 0; width: 70px; 
            text-align: center; font-size: 10px; color: #667788; 
        }
        
        .bid-situation { 
            position: absolute;
            top: 25%; 
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            margin-top: 0; 
            padding: 4px 8px; /* Reduced padding */
            border-radius: 4px; 
            font-size: 10px; /* Reduced font size */
            font-weight: bold; 
            text-align: center; 
            display: none; 
        }
        .bid-situation.active { display: block; }
        .bid-situation.steal { background: linear-gradient(to bottom, #ff4444, #cc0000); color: #fff; box-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
        .bid-situation.force { background: linear-gradient(to bottom, #ff9500, #ff6b00); color: #fff; box-shadow: 0 0 8px rgba(255, 149, 0, 0.6); }
        .bid-situation.balance { background: linear-gradient(to bottom, #00cc66, #009944); color: #fff; box-shadow: 0 0 8px rgba(0, 204, 102, 0.6); }
        
        .right-panels-container { position: absolute; bottom: 70px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: 120px; z-index: 100; }
        .right-box { background: linear-gradient(to bottom, rgba(15, 30, 45, 0.9), rgba(5, 15, 25, 0.95)); border: 1px solid #1d3c59; border-radius: 4px; padding: 6px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
        .rb-header { font-size: 9px; color: #8899aa; text-align: center; margin-bottom: 8px; text-transform: uppercase; }
        
        .real-cards-stack { display: flex; justify-content: center; height: 45px; width: 100%; position: relative; }
        .rc { width: 30px; height: 45px; background: white; border-radius: 3px; border: 1px solid #aaa; box-shadow: -2px 0 5px rgba(0,0,0,0.5); position: absolute; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; }
        .rc-1 { left: 5px; z-index: 1; opacity: 0.6; } 
        .rc-2 { left: 25px; z-index: 2; opacity: 0.8; } 
        .rc-3 { left: 45px; z-index: 3; opacity: 0.9; } 
        .rc-4 { left: 65px; z-index: 4; opacity: 1; box-shadow: 0 0 5px rgba(0,0,0,0.8); }
        .auto-play-btn { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(to bottom, #2d5a3c, #1a3a24); border: 1px solid #3d7a4c; color: #a8e6b8; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; text-align: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.5); z-index: 3500; }
        .auto-play-btn:hover { background: linear-gradient(to bottom, #3d7a4c, #2d5a3c); box-shadow: 0 0 12px rgba(168, 230, 184, 0.6); transform: translateY(-2px); }
        .auto-play-btn:active { transform: scale(0.98) translateY(0); }
        .auto-play-btn.active { background: linear-gradient(to bottom, #c74a3a, #8f2a1a); border-color: #e65a4a; color: #fff; animation: pulseGlow 2s infinite; }
        @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); } 50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); } }
        
        .table-info-grid { display: flex; justify-content: space-between; text-align: center; }
        .ti-item { width: 48%; } 
        .ti-val { font-size: 14px; font-weight: bold; color: #e0e0e0; text-shadow: 0 2px 4px black; } 
        .ti-lbl { font-size: 8px; color: #667788; text-transform: uppercase; margin-top: 2px; }
        
        .panel-ctrls { position: absolute; top: 20px; right: 20px; display: flex; gap: 5px; z-index: 100; align-items: center; }
        .c-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
        .c-btn:hover { background: #1a3a5a; }
        .c-btn.fullscreen-active { background: #1a3a5a; border-color: #4a7da0; }
        
        /* Zoom Controls - Desktop in top right */
        .zoom-controls { position: absolute; top: 20px; right: 200px; display: flex; gap: 5px; z-index: 100; background: rgba(14, 37, 59, 0.8); border: 1px solid #2a4d70; border-radius: 20px; padding: 5px; }
        .zoom-btn { background: #0e253b; border: 1px solid #2a4d70; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; transition: all 0.2s; color: #fff; font-size: 14px; font-weight: bold; }
        .zoom-btn:hover { background: #1a3a5a; transform: scale(1.05); }
        .zoom-btn:active { transform: scale(0.95); }
        .zoom-level { color: #aaa; font-size: 11px; padding: 0 8px; display: flex; align-items: center; min-width: 45px; justify-content: center; font-weight: bold; }

        /* Bid Display */
        .bid-display { display: none !important; /* Hidden - using profile p-score instead */ }

        /* Bidding Modal */
        .bid-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 500; justify-content: center; align-items: center; }
        .bid-content { background: linear-gradient(to bottom, #1a3a5e, #0d1f3a); border: 2px solid #3a6ba6; border-radius: 10px; padding: 20px; text-align: center; min-width: 300px; }
        .bid-content h3 { margin: 0 0 15px 0; color: #00ccff; }
        .bid-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .bid-btn { background: #204566; color: white; border: 1px solid #3a6ba6; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
        .bid-btn:hover { background: #305577; }
        
        /* Mobile Portrait - Normal Mode */
        @media (max-width: 768px) and (orientation: portrait) {
            .header {
                height: 40px;
                padding: 0 10px;
            }
            
            .header-logo {
                height: 24px;
            }
            
            .coin-display, .xp-display {
                font-size: 10px;
                padding: 2px 8px;
            }
            
            .game-container {
                height: calc(100vh - 40px);
            }
            
            .table-wrapper {
                width: 156vw;
                height: 56vh;
                max-width: 1080px;
                max-height: 420px; flex-shrink: 0;
            }
            
            .right-panels-container {
                width: 65px;
                right: 5px;
                bottom: 5px;
                font-size: 10px; z-index: 2000;
            }
            
            .right-box {
                padding: 4px;
            }
            
            .rb-header {
                font-size: 5px;
                margin-bottom: 3px;
            }
            
            .rc {
                width: 17.5px;
                height: 26px;
                font-size: 7px;
            }
            
            .rc-1 { left: 10px; } 
            .rc-2 { left: 20px; } 
            .rc-3 { left: 30px; } 
            .rc-4 { left: 40px; }
            
            .real-cards-stack {
                height: 35px;
            }
            
            .table-info-grid {
                gap: 2px;
            }
            
            .ti-val {
                font-size: 11px;
                color: #e0e0e0;
            }
            
            .ti-lbl {
                font-size: 5px;
            }
            
            .auto-play-btn {
                padding: 8px 10px;
                font-size: 11px;
            }
            
            .panel-stats {
                width: 130px;
                left: 5px;
                top: 45px;
                max-height: 180px;
                overflow-y: auto;
                font-size: 11px;
                padding: 6px; z-index: 2000;
            }
            
            .stats-tbl th, .stats-tbl td {
                padding: 4px 6px;
                font-size: 11px;
            }
            
            .panel-chat {
                width: 90%;
                max-width: 280px;
                height: 35px;
                bottom: 5px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .panel-chat:not(.minimized) {
                height: 150px;
            }
            
            .trump-info-box {
                display: block; top: 160px; right: 5px; transform: scale(0.7); transform-origin: top right; z-index: 2000;
            }
            
            
            
            
            
            
            
            
            
            
            
            
            
            .bid-situation {
                font-size: 5px;
                padding: 1px 3px;
                margin-top: 2px;
            }
            
            .panel-ctrls {
                right: 5px;
                top: 120px; z-index: 2000;
                flex-direction: column;
            }
            
            .c-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            
            /* Mobile - zoom controls below fullscreen button */
            .zoom-controls {
                top: 80px;
                right: 5px;
                left: auto;
                transform: none;
                padding: 2px;
                gap: 2px;
                flex-direction: row;
            }
            
            .zoom-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            
            .zoom-level {
                font-size: 8px;
                min-width: 32px;
                height: 26px;
                padding: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            /* Hero cards - smaller */
            .hero-cards-container {
                bottom: -3px;
            }
            
            .h-card {
                width: 55px;
                height: 82px;
                margin-right: -20px;
            }
            
            .h-card:hover {
                transform: translateY(-22px);
            }
            
            /* Profile - compact */
            .profile-group {
                width: 110px;
            }
            
            .p-avatar-round {
                width: 84px;
                height: 85px;
            }
            
            .p-name {
                font-size: 11px;
            }
            
            .p-box {
                width: 84px;
                margin-top: 2px;
                padding: 0;
            }
            
            .p-val {
                font-size: 10px;
                width: 20px;
                height: 20px;
                line-height: 20px;
            }
            
            /* Center cards */
            .center-card {
                width: 50px;
                height: 75px;
            }
            
            .center-cards {
                width: 160px;
                height: 160px;
            }
            
            /* Bot cards - compact */
            .c-back-v {
                width: 48px;
                height: 70px;
                margin-left: -28px;
            }
            
            .c-back-h {
                width: 76px;
                height: 52px;
                margin-top: -36px;
            }
            
            .hand-top {
                margin-top: 6px;
            }
            
            .hand-left {
                margin-left: 15px;
            }
            
            .hand-right {
                margin-right: 15px;
            }
        }
        
        /* Fullscreen mode adjustments */
        body:fullscreen, html:fullscreen {
            overflow: hidden;
        }
        
        body:-webkit-full-screen, html:-webkit-full-screen {
            overflow: hidden;
        }
        
        body:-moz-full-screen, html:-moz-full-screen {
            overflow: hidden;
        }
        
        /* Zoom controls always visible in fullscreen on mobile */
        @media (max-width: 768px) and (orientation: portrait) {
            body:fullscreen .zoom-controls,
            body:-webkit-full-screen .zoom-controls,
            body:-moz-full-screen .zoom-controls {
                display: flex;
                position: fixed;
                top: 10px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1000;
            }
            
            /* Ensure fullscreen button is visible on mobile */
            .panel-ctrls {
                z-index: 1001;
            }
        }
        
        /* Disconnected Modal */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-card {
            background: rgba(20, 20, 20, 0.9);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
            position: relative;
            z-index: 1010;
        }
        
        .signal-container {
            position: relative;
            width: 60px;
            height: 60px;
            margin: 0 auto 15px auto;
        }
        
        .pulse-ring {
            position: absolute;
            border-radius: 50%;
            border: 4px solid transparent;
            animation: pulse-animation 1.5s infinite;
        }
        
        .pulse-ring:nth-child(1) {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-color: rgba(255, 255, 255, 0.3);
            animation-delay: 0s;
        }
        
        .pulse-ring:nth-child(2) {
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border-color: rgba(255, 255, 255, 0.2);
            animation-delay: 0.3s;
        }
        
        @keyframes pulse-animation {
            0% {
                transform: scale(0.9);
                opacity: 1;
            }
            50% {
                transform: scale(1);
                opacity: 0.7;
            }
            100% {
                transform: scale(0.9);
                opacity: 1;
            }
        }
        
        .wifi-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        h2 {
            font-size: 18px;
            margin: 0 0 10px 0;
            color: #ffd700;
        }
        
        p {
            font-size: 14px;
            margin: 0 0 15px 0;
            color: #ccc;
        }
        
        .reconnect-btn {
            background: linear-gradient(to right, #28a745, #218838);
            border: none;
            border-radius: 4px;
            color: white;
            padding: 12px 24px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s, transform 0.3s;
            position: relative;
            z-index: 1020;
        }
        
        .reconnect-btn:hover {
            background: linear-gradient(to right, #218838, #28a745);
            transform: translateY(-2px);
        }
        
        .reconnect-btn:active {
            transform: translateY(0);
        }
        
        .reconnect-btn svg {
            width: 16px;
            height: 16px;
            margin-right: 8px;
            fill: white;
        }

        /* Bid situation ("წაგლეჯვა" / "შეტენვა") - === მაგიდის ზედა მარჯვენა კუთხე === */
        .table-felt .bid-situation {
            top: 10% !important;
            right: 150px !important;
            left: auto !important;
            transform: none !important;
            z-index: 50 !important;
        }

        /* Chat voice: keep controls tappable + consistent */
                        .chat-msg-voice { pointer-events: auto; display: inline-flex !important; vertical-align: middle; }
                        .chat-msg-voice audio { display: none !important; }
                        .voice-play-btn, .voice-progress-bar { pointer-events: auto !important; }

        /* Auto-play align with right panels */
        @media (max-width: 768px) and (orientation: portrait) {
            .auto-play-btn { right: 5px !important; }
        }
        @media (max-width: 1024px) and (orientation: landscape) {
            .auto-play-btn { right: 5px !important; }
        }

        /* Fullscreen - არ ჩანდეს ლურჯი ფუტერი */
        :fullscreen, ::backdrop {
            background: #010a14 !important;
        }
        :fullscreen .game-container,
        :-webkit-full-screen .game-container,
        :-moz-full-screen .game-container {
            min-height: 100vh !important;
            height: 100vh !important;
            width: 100vw !important;
            background: #010a14 !important;
        }

        /* Unplayable cards: white blur (75%) */
        .h-card.card-not-allowed {
            position: relative;
            cursor: not-allowed !important;
            pointer-events: none !important;
            filter: blur(0.8px) saturate(0.85);
        }
        .h-card.card-not-allowed::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.75);
            border-radius: 8px;
            pointer-events: none;
        }

        /* Final override: fully hide right panel visuals when collapsed (tab only) */
        .right-panels-container.collapsed {
            background: transparent !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
        }
        .right-panels-container.collapsed > :not(.collapse-tab-right) {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .right-panels-container.collapsed .right-box {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .right-panels-container.collapsed .collapse-tab-right {
            pointer-events: auto !important;
        }

/* ── Block 4 ─────────────────────────────────── */
/* Mobile Specific Adjustments */
        @media (max-width: 1px) {
            /* 3x smaller right panels (Auto Play, Last Cards, Table Stats) */
            .right-panels-container {
                transform: scale(0.33);
                transform-origin: bottom right;
                bottom: 5px;
                right: 5px;
            }
            
            /* 3x smaller trump card */
            
            
            /* Fix deck pile position on mobile */
            

            /* Chat fix - ensure visibility */
            .panel-chat {
                z-index: 2000 !important;
                bottom: 10px !important;
            }
            
            /* Ensure scoreboard controls are clickable */
            .scoreboard-header {
                z-index: 1002;
            }
        }

/* ── Block 5 ─────────────────────────────────── */
/* Rotate Overlay Styles */
        #rotate-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            background: #051f3e;
            background: linear-gradient(135deg, #051f3e 0%, #0a2e5a 100%);
            display: flex; /* Default to flex, hide only if landscape */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 2147483647;
            color: #ffffff;
            text-align: center;
        }

        .overlay-logo {
            width: 150px;
            margin-bottom: 40px;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
        }

        .phone-icon-container {
            width: 100px;
            height: 160px;
            border: 4px solid #ffffff;
            border-radius: 12px;
            position: relative;
            animation: rotatePhone 2s infinite ease-in-out;
            margin-bottom: 30px;
        }

        .phone-screen {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            height: 70%;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .rotate-arrow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 40px;
            color: #ffc107;
            opacity: 0;
            animation: showArrow 2s infinite ease-in-out;
        }

        .rotate-text h2 {
            font-size: 24px;
            margin: 0;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .rotate-text p {
            font-size: 16px;
            margin-top: 10px;
            color: #b0c4de;
        }

        @keyframes rotatePhone {
            0%, 10% { transform: rotate(0deg); }
            40%, 60% { transform: rotate(90deg); }
            90%, 100% { transform: rotate(0deg); }
        }

        @keyframes showArrow {
            0%, 20% { opacity: 0; }
            40%, 60% { opacity: 1; transform: translate(-50%, -50%) rotate(90deg); }
            80%, 100% { opacity: 0; }
        }

        @media screen and (orientation: portrait) {
            #rotate-overlay { display: none !important; }
        }
        
        @media screen and (orientation: landscape) {
            #rotate-overlay { display: none !important; }
        }

/* ── Block 6 ─────────────────────────────────── */
/* --- მოდალის ფონი --- */
                .game-over-overlay {
                    position: fixed;
                    top: 0; left: 0;
                    width: 100%; height: 100%;
                    background: rgba(0, 0, 0, 0.85);
                    backdrop-filter: blur(8px);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    z-index: 9999;
                    font-family: 'Noto Sans Georgian', sans-serif;
                }

                /* --- მთავარი ყუთი --- */
                .game-over-modal {
                    background: linear-gradient(160deg, #020b26 0%, #051033 100%);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    border-radius: 20px;
                    padding: 40px 50px;
                    text-align: center;
                    width: 700px;
                    max-width: 95%;
                    box-sizing: border-box;
                    padding-bottom: calc(24px + env(safe-area-inset-bottom));
                    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
                    position: relative;
                    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                }

                .title {
                    color: #fff;
                    font-size: 24px;
                    font-weight: 800;
                    margin-bottom: 50px;
                    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
                }

                /* --- პოდიუმის კონტეინერი --- */
                .podium-container {
                    display: flex;
                    justify-content: center;
                    align-items: flex-end; /* რომ სვეტები ქვემოდან გაიზარდოს */
                    gap: 20px;
                    margin-bottom: 50px;
                    height: 300px; /* ფიქსირებული სიმაღლე განლაგებისთვის */
                }

                /* თითოეული მოთამაშის სვეტი */
                .player-col {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: flex-end;
                    width: 100px;
                    position: relative;
                }

                /* რანგი (I, II, III, IV) */
                .rank-num {
                    color: #fff;
                    font-size: 14px;
                    font-weight: bold;
                    margin-bottom: 5px;
                    opacity: 0.8;
                }

                /* ავატარი */
                .avatar-box {
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                    border: 3px solid transparent; /* ფერი კლასების მიხედვით */
                    background-size: cover;
                    background-position: center;
                    background-color: #1a2639;
                    margin-bottom: 5px;
                    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
                    position: relative;
                    z-index: 2;
                }

                /* სახელის იარლიყი */
                .player-name {
                    background: rgba(0, 0, 0, 0.6);
                    color: #fff;
                    font-size: 12px;
                    padding: 3px 10px;
                    border-radius: 10px;
                    margin-bottom: 10px;
                    white-space: nowrap;
                    max-width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                /* ქულების სვეტი (ბარი) */
                .score-bar {
                    width: 60px;
                    border-radius: 8px;
                    display: flex;
                    align-items: center; /* ტექსტი ვერტიკალურად ცენტრში */
                    justify-content: center;
                    color: #fff;
                    font-weight: 800;
                    font-size: 18px;
                    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
                    transition: height 1s ease; /* ანიმაციისთვის */
                }

                /* --- ინდივიდუალური სტილები ადგილების მიხედვით --- */
                
                /* 1 ადგილი (მარცხნივ) */
                .place-1 .avatar-box { border-color: #f1c40f; width: 90px; height: 90px; } /* ოქრო */
                .place-1 .score-bar { 
                    background: linear-gradient(to bottom, #2ecc71, #27ae60); /* მწვანე */
                    height: 160px; 
                    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
                }

                /* 2 ადგილი */
                .place-2 .avatar-box { border-color: #bdc3c7; } /* ვერცხლი */
                .place-2 .score-bar { 
                    background: linear-gradient(to bottom, #f1c40f, #f39c12); /* ყვითელი */
                    height: 100px;
                }

                /* 3 ადგილი */
                .place-3 .avatar-box { border-color: #cd7f32; } /* ბრინჯაო */
                .place-3 .score-bar { 
                    background: linear-gradient(to bottom, #e67e22, #d35400); /* ნარინჯისფერი */
                    height: 80px;
                }

                /* 4 ადგილი */
                .place-4 .avatar-box { border-color: #e74c3c; } /* წითელი */
                .place-4 .score-bar { 
                    background: linear-gradient(to bottom, #e74c3c, #c0392b); /* წითელი */
                    height: 60px;
                }


                /* --- ღილაკები --- */
                .footer-buttons {
                    display: flex;
                    justify-content: center;
                    gap: 20px;
                    margin-top: 30px;
                    flex-wrap: wrap;
                    width: 100%;
                }

                .action-btn {
                    padding: 15px 40px;
                    border-radius: 12px;
                    border: none;
                    font-size: 16px;
                    font-weight: 800;
                    cursor: pointer;
                    font-family: 'Noto Sans Georgian', sans-serif;
                    transition: transform 0.2s, box-shadow 0.2s;
                    min-height: 44px;
                }

                /* გაზიარება (Facebook ლურჯი) */
                .btn-share {
                    background: linear-gradient(135deg, #1877f2, #0d5fcf);
                    color: #fff;
                    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    flex-wrap: wrap;
                    position: relative;
                }
                .btn-share:hover { background: linear-gradient(135deg, #166fe5, #0c54b8); transform: translateY(-3px); }
                .btn-share .fb-icon { font-size: 18px; }
                .btn-share .reward-badge {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    background: linear-gradient(135deg, #ffd700, #ffb800);
                    color: #000;
                    padding: 2px 8px;
                    border-radius: 12px;
                    font-size: 12px;
                    font-weight: 800;
                    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
                }
                .btn-share .reward-badge .coin-icon { font-size: 14px; }

                /* გასვლა (თეთრი) */
                .btn-exit {
                    background: #fff;
                    color: #020b26;
                    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
                }
                .btn-exit:hover { background: #f0f0f0; transform: translateY(-3px); }


                @keyframes scaleIn {
                    0% { transform: scale(0.8); opacity: 0; }
                    100% { transform: scale(1); opacity: 1; }
                }

                /* მობილური */
                @media (max-width: 768px) and (orientation: portrait) {
                    .game-over-modal {
                        padding: 20px 10px;
                        width: 95%;
                        max-height: 95vh;
                        overflow-y: auto;
                    }
                    .mygame-logo img {
                        height: 35px !important;
                    }
                    .title {
                        font-size: 18px;
                        margin-bottom: 20px;
                    }
                    .podium-container { 
                        gap: 4px; 
                        height: 200px;
                        margin-bottom: 20px;
                    }
                    .player-col {
                        width: 65px;
                    }
                    .avatar-box { 
                        width: 40px; 
                        height: 40px; 
                        margin-bottom: 2px;
                    }
                    .place-1 .avatar-box { 
                        width: 50px; 
                        height: 50px; 
                    }
                    .player-name {
                        font-size: 11px;
                        padding: 2px 4px;
                        margin-bottom: 4px;
                        border-radius: 6px;
                    }
                    .score-bar { 
                        width: 30px; 
                        font-size: 11px; 
                    }
                    /* Scale down bars */
                    .place-1 .score-bar { height: 100px; }
                    .place-2 .score-bar { height: 70px; }
                    .place-3 .score-bar { height: 50px; }
                    .place-4 .score-bar { height: 30px; }
                    
                    .footer-buttons {
                        flex-direction: column;
                        gap: 10px;
                        margin-top: 15px;
                        width: 100%;
                    }
                    .action-btn { 
                        padding: 10px 15px; 
                        font-size: 12px; 
                        width: 100%;
                    }
                }

                /* LANDSCAPE მობილური */
                @media (max-height: 500px) and (orientation: landscape) {
                    .mygame-logo {
                        margin-bottom: 2px !important;
                    }
                    .mygame-logo img {
                        height: 20px !important;
                    }
                    .game-over-modal {
                        padding: 6px 10px;
                        width: 96%;
                        max-width: 520px;
                        max-height: 96vh;
                        overflow-y: auto;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        gap: 3px;
                    }
                    .title {
                        font-size: 12px;
                        margin-bottom: 2px;
                    }
                    .podium-container { 
                        gap: 6px; 
                        height: auto;
                        margin-bottom: 3px;
                        flex-direction: row;
                        align-items: flex-end;
                    }
                    .player-col {
                        width: 56px;
                    }
                    .rank-num {
                        font-size: 9px;
                        margin-bottom: 1px;
                    }
                    .avatar-box { 
                        width: 32px; 
                        height: 32px; 
                        margin-bottom: 2px;
                    }
                    .place-1 .avatar-box { 
                        width: 38px; 
                        height: 38px; 
                    }
                    .player-name {
                        font-size: 9px;
                        padding: 1px 4px;
                        margin-bottom: 2px;
                        border-radius: 3px;
                    }
                    .score-bar { 
                        width: 30px; 
                        font-size: 10px; 
                    }
                    /* Scale down bars for landscape */
                    .place-1 .score-bar { height: 42px; }
                    .place-2 .score-bar { height: 34px; }
                    .place-3 .score-bar { height: 26px; }
                    .place-4 .score-bar { height: 18px; }
                    
                    /* App download icons */
                    .app-icons-row {
                        display: flex;
                        gap: 6px;
                        margin: 2px 0;
                    }
                    .app-icons-row img {
                        height: 22px !important;
                    }
                    
                    .footer-buttons {
                        flex-direction: row;
                        gap: 6px;
                        margin-top: 2px;
                        width: 100%;
                    }
                    .action-btn { 
                        padding: 5px 6px; 
                        font-size: 10px; 
                        flex: 1;
                        min-height: 32px;
                    }
                    .btn-share .reward-badge { white-space: nowrap; font-size: 9px; }
                }

/* ── Block 7 ─────────────────────────────────── */
@keyframes levelUpPop {
                        0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
                        100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
                    }
                    @keyframes starBurst {
                        0% { transform: scale(1); }
                        50% { transform: scale(1.2); }
                        100% { transform: scale(1); }
                    }

