/* =========================================================================
   KEYİFBİZDE.COM - PROFESYONEL DÜZ OKEY & 101 OKEY SALONU TASARIMI
   Gerçek 3D Ceviz Ahşap Istaka, Fildişi Taşlar, Lobi & Masa Sohbeti (Web/Mobil)
   ========================================================================= */

#kbOkeyModal:fullscreen, #kbOkeyModal:-webkit-full-screen { width: 100% !important; height: 100% !important; padding: 0 !important; }

#kbOkeyModal::backdrop { background: #060d1b; }

/* Okey açıkken arkadaki ağır sohbet bölümleri hesaplanmaz -> klavye aç/kapa anında siyah kare oluşmaz */
html.kb-okey-active .header, html.kb-okey-active .nickler, html.kb-okey-active .pencereler, html.kb-okey-active .msg, html.kb-okey-active .solbar, html.kb-okey-active .kullanicimenu { content-visibility: hidden; }

.kb-okey-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 100320; background: #060d1b; contain: layout style paint; display: flex; align-items: center; justify-content: center; padding: 8px; user-select: none; }

@media (max-width: 960px), (max-height: 600px) {
    .kb-okey-modal { padding: 0; }
}

.kb-okey-modal.kb-kb-open { right: auto; bottom: auto; width: var(--kb-okey-kb-w, 100%); height: var(--kb-okey-kb-h, 100%); align-items: flex-start; overflow: hidden; }

.kb-okey-window { position: relative; width: min(1180px, 100%); height: min(790px, 97vh); background: #0b1324; border-radius: 18px; border: 2px solid rgba(245, 158, 11, 0.42); box-shadow: 0 28px 85px rgba(0, 0, 0, 0.82); display: flex; flex-direction: column; overflow: hidden; color: #f8fafc; }

@media (max-width: 960px), (max-height: 600px) {
    .kb-okey-window { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; border: none; }
}

/* Mobil Dikey Tutuşta Otomatik Yan Ekran (Landscape) Zorlama Modu */
.kb-okey-modal.force-landscape .kb-okey-window { position: absolute; top: 50%; left: 50%; width: var(--kb-okey-lock-h, 100vh); height: var(--kb-okey-lock-w, 100vw); max-width: none; max-height: none; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center center; border-radius: 0; border: none; padding-left: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-bottom, 0px); }

/* Masa İçi Yüksek Görünürlüklü Canlı Bildirim Bandı (Modal Üstünde Kalır) */
.kb-okey-notice { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); z-index: 85; max-width: min(640px, 92%); padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.72); border: 1.5px solid #fde047; background: linear-gradient(135deg, #1e293b, #0f172a); pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; }

.kb-okey-notice.show { opacity: 1; }

.kb-okey-notice.k-warn { background: linear-gradient(135deg, #b45309, #dc2626); border-color: #fef08a; }

.kb-okey-notice.k-ok { background: linear-gradient(135deg, #047857, #059669); border-color: #a7f3d0; }

.kb-okey-notice.k-info { background: linear-gradient(135deg, #1d4ed8, #0f172a); border-color: #93c5fd; }

/* Ufak Köşe Bildirimi (El Açan Oyuncular İçin Masayı Kapatmayan Köşe Etiketi) */
.kb-okey-corner-toast { position: absolute; top: 40px; right: 12px; z-index: 84; max-width: 250px; padding: 5px 11px; border-radius: 9px; font-size: 11px; font-weight: 800; color: #fef08a; background: rgba(9, 18, 36, 0.92); border: 1px solid rgba(251, 191, 36, 0.55); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55); pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }

.kb-okey-corner-toast.show { opacity: 1; transform: translateY(0); }

/* Küçültülmüş Yüzen Rozet */
.kb-okey-mini-dock { position: fixed; right: 16px; bottom: 72px; z-index: 100310; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, #065f46, #047857); border: 2px solid #fbbf24; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }

.kb-okey-mini-dock.my-turn { background: linear-gradient(135deg, #d97706, #dc2626); animation: kbOkeyPulse 1.1s infinite alternate; }

@keyframes kbOkeyPulse {
    from { transform: scale(1); }

    to { transform: scale(1.05); }
}

/* Üst Başlık Çubuğu & Açılır Masa Menüsü */
.kb-okey-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; min-height: 38px; background: linear-gradient(90deg, #1e1b4b, #0f172a 52%, #064e3b); border-bottom: 1px solid rgba(251, 191, 36, 0.22); flex-shrink: 0; z-index: 40; }

.kb-okey-brand { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 900; color: #fef08a; min-width: 0; max-width: 36%; z-index: 4; }

.kb-okey-brand span#kbOkeyHeadTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kb-okey-brand #kbOkeyRadioHost { display: inline-flex; align-items: center; flex-shrink: 0; }

.kb-okey-top-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; max-width: 36%; justify-content: flex-end; z-index: 45; }

.kb-ok-menu-wrap { position: relative; display: inline-flex; align-items: center; }

.kb-ok-menu-trigger.active { background: #4f46e5; border-color: #fde047; }

.kb-ok-top-dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 225px; z-index: 120; background: rgba(9, 16, 32, 0.98); border: 1.5px solid #fbbf24; border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85); padding: 6px; display: flex; flex-direction: column; gap: 4px; }

.kb-ok-dd-item { width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(30, 41, 59, 0.85); color: #f8fafc; font-size: 11.5px; font-weight: 800; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.12s; }

.kb-ok-dd-item:hover { background: #3b82f6; border-color: #fde047; color: #fff; }

.kb-ok-dd-item.danger { background: rgba(127, 29, 29, 0.65); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }

.kb-ok-dd-item.danger:hover { background: #dc2626; color: #fff; }

@media (max-width: 560px) {
    .kb-okey-modal:not(.force-landscape) .kb-okey-brand span#kbOkeyHeadTitle { max-width: 68px; font-size: 11px; }
}

.kb-ok-tbtn { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(30, 41, 59, 0.88); color: #f8fafc; font-size: 11.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; position: relative; }

.kb-ok-tbtn:hover { background: #4f46e5; }

.kb-ok-tbtn.danger:hover { background: #dc2626; }

.kb-ok-tbtn.radio-on { background: linear-gradient(135deg, #059669, #7c3aed); border-color: #fde047; color: #fff; }

.kb-ok-radio-wrap { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px 2px 2px; border-radius: 9px; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); }

.kb-ok-radio-wrap .kb-ok-tbtn { height: 26px; border: none; }

.kb-ok-radio-vol { width: 54px; height: 4px; accent-color: #34d399; cursor: pointer; }

@media (max-width: 640px) {
    .kb-ok-radio-vol { display: none; }
}

.kb-ok-tbtn .unread-dot { background: #ef4444; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 999px; font-weight: 900; }

/* --- 1. AŞAMA: RESİMLİ VIP SALON SEÇİM VİTRİNİ (DÜZ OKEY vs 101 OKEY) --- */
.kb-okey-gate { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.22) 0%, transparent 45%), radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.20) 0%, transparent 45%), linear-gradient(165deg, #061421 0%, #0b162a 55%, #060f1c 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }

.kb-gate-header { text-align: center; }

.kb-gate-header h2 { margin: 0 0 4px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 900; color: #fef08a; letter-spacing: -0.2px; }

.kb-gate-header p { margin: 0; font-size: 12px; color: #94a3b8; font-weight: 600; }

.kb-gate-grid { width: min(940px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 680px) {
    .kb-okey-modal:not(.force-landscape) .kb-gate-grid { grid-template-columns: 1fr; gap: 12px; }
}

.kb-gate-card { position: relative; padding: 0; border-radius: 20px; overflow: hidden; cursor: pointer; text-align: left; background: linear-gradient(170deg, #111e36 0%, #091224 100%); border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; color: #f8fafc; font-family: inherit; }

.kb-gate-card.gate-duz:hover { transform: translateY(-4px); border-color: #34d399; box-shadow: 0 22px 48px rgba(16, 185, 129, 0.32); }

.kb-gate-card.gate-101:hover { transform: translateY(-4px); border-color: #38bdf8; box-shadow: 0 22px 48px rgba(56, 189, 248, 0.32); }

.kb-gate-media { position: relative; width: 100%; aspect-ratio: 16 / 8.8; overflow: hidden; background: radial-gradient(ellipse at center, #0f766e 0%, #064e3b 70%, #022c22 100%); }

.kb-gate-card.gate-101 .kb-gate-media { background: radial-gradient(ellipse at center, #1d4ed8 0%, #1e3a8a 70%, #0f172a 100%); }

.kb-gate-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.32s ease; }

.kb-gate-card:hover .kb-gate-media img { transform: scale(1.05); }

.kb-gate-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 28, 0.08) 0%, rgba(9, 18, 36, 0.85) 100%); pointer-events: none; }

.kb-gate-live-pill { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; background: rgba(6, 18, 34, 0.84); backdrop-filter: blur(6px); border: 1px solid rgba(52, 211, 153, 0.55); color: #a7f3d0; }

.kb-gate-card.gate-101 .kb-gate-live-pill { border-color: rgba(56, 189, 248, 0.55); color: #bae6fd; }

.kb-gate-body { padding: 12px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kb-gate-info h3 { margin: 0 0 3px; font-size: clamp(15px, 1.8vw, 19px); font-weight: 900; color: #ffffff; }

.kb-gate-info span { font-size: 11.5px; color: #94a3b8; font-weight: 700; display: block; }

.kb-gate-go { height: 36px; padding: 0 15px; border-radius: 999px; font-size: 12.5px; font-weight: 900; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; background: linear-gradient(135deg, #059669, #10b981); color: #ffffff; box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); }

.kb-gate-card.gate-101 .kb-gate-go { background: linear-gradient(135deg, #0284c7, #2563eb); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35); }

@media (max-height: 540px) {
    .kb-okey-gate { padding: 8px 14px; gap: 6px; }

    .kb-gate-header h2 { font-size: 15px; margin: 0; }

    .kb-gate-header p { display: none; }

    .kb-gate-media { aspect-ratio: 16 / 6.8; }

    .kb-gate-body { padding: 8px 12px 10px; }

    .kb-gate-go { height: 30px; padding: 0 12px; font-size: 11px; }
}

.kb-okey-modal.force-landscape .kb-okey-gate { padding: 8px 14px; gap: 6px; }

.kb-okey-modal.force-landscape .kb-gate-header h2 { font-size: 15px; margin: 0; }

.kb-okey-modal.force-landscape .kb-gate-header p { display: none; }

.kb-okey-modal.force-landscape .kb-gate-media { aspect-ratio: 16 / 6.8; }

.kb-okey-modal.force-landscape .kb-gate-body { padding: 8px 12px 10px; }

.kb-okey-modal.force-landscape .kb-gate-go { height: 30px; padding: 0 12px; font-size: 11px; }

/* --- 2. AŞAMA: SEÇİLEN SALONUN SADE & ESTETİK LOBİ EKRANI --- */
.kb-okey-lobby { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.16) 0%, transparent 45%), radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 42%), linear-gradient(160deg, #071925 0%, #0b1528 55%, #07111e 100%); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }

@media (max-width: 900px) {
    .kb-okey-lobby { grid-template-columns: 1fr; padding: 10px; }
}

.kb-okey-modal.force-landscape .kb-okey-lobby { grid-template-columns: minmax(0, 1fr) 240px; padding: 8px 10px; gap: 8px; }
.kb-okey-modal.force-landscape .kb-salon-bar { padding: 7px 10px; gap: 6px; }
.kb-okey-modal.force-landscape .kb-okey-cta { height: 30px; padding: 0 11px; font-size: 11px; }

.kb-okey-lobby-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Salon Üst Aksiyon Şeridi (Tek Satır Ferah Kontrol Barı) */
.kb-salon-bar { padding: 10px 12px; border-radius: 14px; background: linear-gradient(145deg, rgba(15, 23, 42, 0.90), rgba(9, 18, 34, 0.94)); border: 1px solid rgba(251, 191, 36, 0.24); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34); display: flex; flex-direction: column; gap: 9px; }

.kb-salon-bar-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.kb-salon-bar-left, .kb-salon-bar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.kb-101-pill-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(6, 12, 24, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); gap: 3px; }

.kb-okey-101-opt, .kb-okey-101-yrd { height: 28px; padding: 0 11px; border-radius: 999px; border: none; background: transparent; color: #94a3b8; font-size: 11.5px; font-weight: 800; cursor: pointer; transition: all 0.14s ease; }

.kb-okey-101-opt.active, .kb-okey-101-yrd.active { background: linear-gradient(135deg, #b45309, #dc2626); color: #fff; }

.kb-okey-101-opt.active.opt-norm { background: linear-gradient(135deg, #0284c7, #2563eb); color: #fff; }

.kb-okey-101-yrd.active.opt-norm { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }

.kb-okey-cta { height: 34px; padding: 0 14px; border-radius: 10px; border: none; font-size: 12px; font-weight: 900; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform 0.12s, filter 0.12s; white-space: nowrap; }

.kb-okey-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.kb-okey-cta.emerald { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28); }

.kb-okey-cta.gold { background: linear-gradient(135deg, #d97706, #ea580c); box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28); }

/* Açılır Masa Kurma Satırı */
.kb-create-drawer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 10px; border-radius: 11px; background: rgba(6, 12, 24, 0.72); border: 1px dashed rgba(251, 191, 36, 0.42); }

.kb-create-drawer input { flex: 1; min-width: 150px; height: 34px; border-radius: 8px; border: 1px solid #475569; background: #0f172a; color: #fff; padding: 0 10px; font-size: 12.5px; }

.kb-create-drawer select { height: 34px; border-radius: 8px; border: 1px solid #475569; background: #0f172a; color: #fff; padding: 0 9px; font-size: 12px; font-weight: 700; }

.kb-lobby-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

.kb-lobby-fbtn { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(30, 41, 59, 0.75); color: #cbd5e1; font-size: 11px; font-weight: 800; cursor: pointer; transition: all 0.14s; }

.kb-lobby-fbtn:hover { color: #fff; border-color: rgba(251, 191, 36, 0.5); }

.kb-lobby-fbtn.active { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #0f172a; border-color: #fef08a; font-weight: 900; }

/* Kuşbakışı Açık Masa Kartları Izgarası */
.kb-okey-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 12px; }

.kb-okey-tcard { padding: 11px; border-radius: 16px; background: linear-gradient(165deg, rgba(20, 31, 53, 0.94), rgba(10, 17, 32, 0.96)); border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: 9px; transition: border-color 0.16s, transform 0.16s; }

.kb-okey-tcard:hover { border-color: rgba(251, 191, 36, 0.5); transform: translateY(-2px); }

.kb-okey-tcard.has-open { border-color: rgba(52, 211, 153, 0.32); }

.kb-tcard-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }

.kb-tcard-title { display: flex; align-items: center; gap: 6px; min-width: 0; }

.kb-tcard-title b { font-size: 12.5px; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kb-tcard-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.2px; flex-shrink: 0; }

.kb-okey-tile-svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.kb-tcard-badge.m-duz { background: rgba(5, 150, 105, 0.28); border: 1px solid #34d399; color: #a7f3d0; }

.kb-tcard-badge.m-101 { background: rgba(2, 132, 199, 0.3); border: 1px solid #38bdf8; color: #bae6fd; }

.kb-tcard-badge.m-kat { background: rgba(220, 38, 38, 0.3); border: 1px solid #f87171; color: #fef08a; }

/* Kuşbakışı 4 Koltuklu Mini Okey Masası Sahnesi */
.kb-mini-table-stage { display: grid; grid-template-columns: 78px minmax(92px, 1fr) 78px; grid-template-rows: auto 74px auto; align-items: center; justify-items: center; gap: 5px; padding: 6px 4px; border-radius: 12px; background: radial-gradient(circle at center, rgba(30, 41, 59, 0.55), rgba(8, 14, 28, 0.72)); }

.kb-mini-seat-wrap.pos-top { grid-column: 2; grid-row: 1; }

.kb-mini-seat-wrap.pos-left { grid-column: 1; grid-row: 2; justify-self: stretch; }

.kb-mini-seat-wrap.pos-right { grid-column: 3; grid-row: 2; justify-self: stretch; }

.kb-mini-seat-wrap.pos-bottom { grid-column: 2; grid-row: 3; }

/* Mini Ahşap Çerçeveli Çuha Masa Yüzeyi */
.kb-mini-felt { grid-column: 2; grid-row: 2; width: 100%; height: 100%; border-radius: 14px; border: 4px solid #854d0e; box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5); background: radial-gradient(ellipse at center, #0f766e 0%, #065f46 65%, #022c22 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; overflow: hidden; text-align: center; }

.kb-mini-felt.felt-101 { background: linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px), radial-gradient(ellipse at center, #1d4ed8 0%, #1e3a8a 68%, #0f172a 100%); background-size: 10px 10px, 10px 10px, 100% 100%; }

.kb-mini-felt-center { font-size: 11px; font-weight: 900; color: rgba(254, 240, 138, 0.92); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); line-height: 1.1; }

.kb-mini-felt-sub { font-size: 9px; font-weight: 800; color: rgba(226, 232, 240, 0.8); }

/* Masanın Üst/Alt/Sağ/Sol Koltuk Kutucukları */
.kb-mini-seat { width: 100%; min-width: 76px; max-width: 116px; padding: 4px 6px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-family: inherit; text-align: center; transition: all 0.15s ease; }

.kb-mini-seat .ms-dir { font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.72; line-height: 1; }

.kb-mini-seat .ms-main { font-size: 10.5px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }

.kb-mini-seat .ms-act { font-size: 9px; font-weight: 900; line-height: 1.1; }

/* 1) Boş Koltuk -> Tıklayıp Oturulabilir */
button.kb-mini-seat.is-empty { cursor: pointer; background: rgba(6, 95, 70, 0.28); border: 1.5px dashed #34d399; color: #a7f3d0; }

button.kb-mini-seat.is-empty .ms-main { color: #6ee7b7; }

button.kb-mini-seat.is-empty:hover { background: linear-gradient(135deg, #059669, #10b981); border-style: solid; border-color: #fef08a; color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45); }

button.kb-mini-seat.is-empty:hover .ms-main { color: #fff; }

/* 2) Bot Koltuğu -> Tıklayıp Botun Yerine Oturulabilir */
button.kb-mini-seat.is-bot { cursor: pointer; background: rgba(30, 58, 138, 0.38); border: 1.5px dashed rgba(251, 191, 36, 0.65); color: #e2e8f0; }

button.kb-mini-seat.is-bot .ms-act { color: #fde047; }

button.kb-mini-seat.is-bot:hover { background: linear-gradient(135deg, #d97706, #059669); border-style: solid; border-color: #fff; color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45); }

button.kb-mini-seat.is-bot:hover .ms-act { color: #fff; }

/* 3) Gerçek Oyuncu Koltuğu -> Dolu */
div.kb-mini-seat.is-human { background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95)); border: 1.5px solid rgba(251, 191, 36, 0.45); color: #f8fafc; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }

div.kb-mini-seat.is-human.is-me { border-color: #34d399; background: rgba(6, 95, 70, 0.65); }

div.kb-mini-seat.is-human .ms-act { color: #94a3b8; font-size: 8.5px; }

.kb-tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }

.kb-tcard-meta { font-size: 10.5px; color: #94a3b8; font-weight: 700; }

.kb-tcard-quick { height: 28px; padding: 0 11px; border-radius: 8px; border: none; cursor: pointer; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 11px; font-weight: 900; }

.kb-tcard-quick:hover { filter: brightness(1.1); }

.kb-tcard-quick.is-full { background: rgba(51, 65, 85, 0.6); color: #94a3b8; cursor: default; }

/* Lobi Canlı Sohbet Paneli */
.kb-okey-lchat { background: linear-gradient(180deg, rgba(12, 21, 38, 0.92), rgba(8, 14, 28, 0.95)); border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 16px; display: flex; flex-direction: column; min-height: 320px; max-height: 100%; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38); }

.kb-okey-lchat-head { padding: 10px 12px; background: rgba(30, 41, 59, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; font-weight: 900; color: #fde047; display: flex; align-items: center; justify-content: space-between; }

.kb-okey-lchat-quick { display: flex; gap: 4px; padding: 6px 8px; background: rgba(15, 23, 42, 0.7); border-bottom: 1px solid rgba(255, 255, 255, 0.06); overflow-x: auto; }

.kb-okey-lchat-chip { flex-shrink: 0; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(6, 95, 70, 0.35); color: #a7f3d0; font-size: 10px; font-weight: 800; cursor: pointer; }

.kb-okey-lchat-chip:hover { background: #059669; color: #fff; }

.kb-okey-chat-feed { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }

.kb-okey-chat-line { padding: 6px 9px; border-radius: 9px; background: rgba(30, 41, 59, 0.65); line-height: 1.38; word-break: break-word; }

.kb-okey-chat-line.sys { background: rgba(6, 95, 70, 0.42); border-left: 3px solid #34d399; color: #d1fae5; }

.kb-okey-chat-line b { color: #fbbf24; margin-right: 4px; }

.kb-okey-chat-form { display: flex; gap: 6px; padding: 8px; background: rgba(15, 23, 42, 0.92); border-top: 1px solid rgba(255, 255, 255, 0.08); }

.kb-okey-chat-form input { flex: 1; height: 34px; border-radius: 8px; border: 1px solid #475569; background: #0b1324; color: #fff; padding: 0 10px; font-size: 12px; }

.kb-okey-chat-form button { height: 34px; padding: 0 12px; border-radius: 8px; border: none; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-weight: 900; font-size: 12px; cursor: pointer; }

/* --- OYUN MASASI (DÜZ OKEY: ZÜMRÜT ÇUHA | 101 OKEY: 101 PLUS MAVİ DESENLİ ÇUHA) --- */
.kb-okey-felt { position: relative; flex: 1; min-height: 0; background: radial-gradient(ellipse at center, #0f766e 0%, #065f46 56%, #022c22 100%); box-shadow: inset 0 0 65px rgba(0, 0, 0, 0.68); display: flex; flex-direction: column; justify-content: space-between; padding: 5px 8px 6px; overflow: hidden; gap: 4px; }

.kb-okey-felt.felt-101 { background: radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.08) 0%, transparent 45%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 18px), radial-gradient(ellipse at center, #1b5293 0%, #113868 58%, #091f3c 100%); }

/* Masa İçi Açılır Sohbet Çekmecesi */
.kb-okey-tchat-drawer { position: absolute; top: 6px; right: 6px; bottom: 6px; width: min(305px, 88vw); z-index: 28; background: rgba(9, 16, 32, 0.96); border: 1.5px solid #fbbf24; border-radius: 14px; box-shadow: -12px 0 36px rgba(0, 0, 0, 0.75); display: flex; flex-direction: column; overflow: hidden; }

/* Üst Bar Tam Ortası Karşı Oyuncu Yeri (Her Zaman Tam Merkezde) */
.kb-okey-top-seat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; min-width: 0; z-index: 5; }

/* Oyuncu Koltuk Kartları (Üst Yatay + Sol/Sağ Dikey Kompakt + Alt Yeşil Oyuncu Kartı) */
.kb-okey-seat { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 10px; background: rgba(7, 15, 30, 0.86); border: 1.5px solid rgba(255, 255, 255, 0.18); max-width: 220px; }

.kb-okey-seat.seat-side { flex-direction: column; text-align: center; padding: 6px 4px; width: 54px; max-width: 54px; gap: 3px; background: linear-gradient(180deg, rgba(8, 17, 34, 0.92), rgba(15, 23, 42, 0.92)); }

.kb-okey-seat.seat-me { background: linear-gradient(90deg, rgba(6, 95, 70, 0.95), rgba(5, 150, 105, 0.85) 55%, rgba(9, 18, 34, 0.92)); border-color: #34d399; padding: 2px 10px; }

.kb-okey-seat.active-turn { border-color: #fbbf24; box-shadow: 0 0 15px rgba(251, 191, 36, 0.65); background: linear-gradient(135deg, rgba(146, 64, 14, 0.92), rgba(180, 83, 9, 0.88)); }

.kb-okey-seat.can-switch { cursor: pointer; border-style: dashed; border-color: #34d399; background: rgba(6, 95, 70, 0.45); }

.kb-okey-seat.can-switch:hover { background: #059669; border-style: solid; border-color: #fef08a; }

.kb-okey-seat-av { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); border: 1px solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; color: #fff; flex-shrink: 0; }

.kb-okey-seat-info { min-width: 0; }

.kb-okey-seat-info b { display: block; font-size: 11px; color: #fff; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kb-okey-seat.seat-side .kb-okey-seat-info b { max-width: 46px; font-size: 9.5px; }

.kb-okey-seat-info small { display: block; font-size: 9.5px; color: #fde047; font-weight: 800; line-height: 1.15; }

.kb-okey-seat.seat-side .kb-okey-seat-info small { font-size: 8.5px; }

/* Oyuncu Koltuğu Canlı Konuşma Balonu */
.kb-okey-seat-bubble { position: absolute; top: calc(100% + 4px); left: 0; z-index: 25; min-width: 110px; max-width: 220px; padding: 4px 9px; border-radius: 10px; background: linear-gradient(135deg, #fefce8, #fef08a); border: 1.5px solid #eab308; color: #0f172a; font-size: 11px; font-weight: 800; line-height: 1.28; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55); word-break: break-word; pointer-events: none; animation: kbOkBubbleIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.15); }

.kb-okey-seat-bubble.b-top { left: 50%; transform: translateX(-50%); }

.kb-okey-seat-bubble.b-left { top: 50%; left: calc(100% + 6px); transform: translateY(-50%); }

.kb-okey-seat-bubble.b-right { top: 50%; left: auto; right: calc(100% + 6px); transform: translateY(-50%); }

.kb-okey-seat-bubble.b-me { top: auto; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); }

@keyframes kbOkBubbleIn {
    from { opacity: 0; scale: 0.9; }

    to { opacity: 1; scale: 1; }
}

/* --- ORTA OYUN SAHNESİ (SOL KENAR + ORTA KARELİ 101 PLUS TABLASI + SAĞ KENAR) --- */
.kb-okey-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 6px; align-items: stretch; z-index: 6; }

.kb-okey-flank { display: grid; grid-template-rows: 1fr auto 1fr; align-items: center; justify-items: center; padding: 2px 0; }

.kb-okey-flank .kb-okey-corner-box:first-child { align-self: start; }

.kb-okey-flank .kb-okey-corner-box:last-child { align-self: end; }

.kb-okey-corner-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.kb-okey-corner-arr { width: 22px; height: 16px; border-radius: 4px; background: rgba(15, 35, 66, 0.85); border: 1px solid rgba(147, 197, 253, 0.3); color: #cbd5e1; font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center; line-height: 1; }

.kb-okey-discard-slot { position: relative; width: 46px; height: 60px; border-radius: 7px; border: 1.5px dashed rgba(255, 255, 255, 0.28); background: rgba(5, 16, 34, 0.38); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }

.kb-okey-discard-slot.sm { width: 38px; height: 50px; cursor: default; opacity: 0.92; }

.kb-okey-discard-slot.sm .kb-okey-tile { width: 34px; height: 46px; }

.kb-okey-discard-slot.sm .kb-okey-tile .t-num { font-size: 14px; }

.kb-okey-discard-slot.can-draw { border-color: #fbbf24; border-width: 2px; border-style: solid; box-shadow: 0 0 16px rgba(251, 191, 36, 0.85); transform: scale(1.06); z-index: 12; }

.kb-okey-discard-slot.drop-hover { border-color: #fbbf24; border-style: solid; background: rgba(251, 191, 36, 0.28); transform: scale(1.08); }

.kb-okey-yandan-pill { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 5px; border-radius: 4px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #0f172a; font-size: 7.5px; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); z-index: 15; pointer-events: none; letter-spacing: -0.2px; }

.kb-okey-yandan-pill.throw-pill { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #ffffff; }

/* --- 101 PLUS ORTA KARELİ (GRID) PER & DESTE TABLASI --- */
.kb-101-board { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 74px 92px; gap: 5px; }

.kb-101-grid-surface { background-color: #07162c; background-image: linear-gradient(rgba(125, 211, 252, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.09) 1px, transparent 1px); background-size: 20px 26px; border: 1.5px solid rgba(56, 189, 248, 0.28); border-radius: 8px; box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.65); }

.kb-101-series-area { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; overflow-y: auto; }

.kb-101-series-col { position: relative; padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }

.kb-101-series-col:first-child { border-right: 1.5px solid rgba(148, 163, 184, 0.32); }

.kb-101-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 19px; font-weight: 900; letter-spacing: 1px; color: rgba(148, 197, 255, 0.07); text-align: center; line-height: 1.05; pointer-events: none; white-space: nowrap; }

.kb-101-mid-col { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2px 0; gap: 3px; }

.kb-101-tags { width: 100%; display: flex; flex-direction: column; gap: 2px; }

.kb-101-tag { display: block; width: 100%; padding: 2px 3px; border-radius: 4px; text-align: center; font-size: 9.5px; font-weight: 800; color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.16); line-height: 1.2; }

.kb-101-tag.t-dark { background: rgba(8, 23, 48, 0.9); color: #cbd5e1; }

.kb-101-tag.t-green { background: linear-gradient(180deg, #16a34a, #15803d); color: #fff; }

.kb-101-tag.t-red { background: linear-gradient(180deg, #dc2626, #991b1b); color: #fff; }

.kb-101-tag.t-blue { background: linear-gradient(180deg, #0284c7, #0369a1); color: #fff; }

.kb-101-pairs-area { position: relative; padding: 5px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; background-image: linear-gradient(rgba(125, 211, 252, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.18) 1px, transparent 1px); background-size: 28px 26px; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }

.kb-101-pairs-area.is-pairs-open { border-color: rgba(251, 191, 36, 0.55); }

.kb-101-pairs-area.drop-hover { border-color: #fbbf24; box-shadow: inset 0 0 18px rgba(251, 191, 36, 0.35), 0 0 12px rgba(251, 191, 36, 0.45); }

/* Izgara Üstündeki Açık Per Satırları (101 Plus Tarzı İsimsiz, Saf Taş Dizisi) */
.kb-okey-meld-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; padding: 1px; border-radius: 4px; background: transparent; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease; }

.kb-okey-meld-chip:hover, .kb-okey-meld-chip.drop-hover { border-color: #fbbf24; background: rgba(245, 158, 11, 0.22); transform: scale(1.03); }

.kb-okey-meld-chip .m-tiles { display: flex; gap: 1.5px; }

/* Düz Okey Orta Merkez Kutusu */
.kb-duz-arena { margin: auto; display: flex; align-items: center; justify-content: center; }

.kb-okey-center-hub { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(4, 30, 24, 0.84); border: 1.5px solid rgba(251, 191, 36, 0.36); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }

.kb-okey-deck-pile { width: 42px; height: 56px; border-radius: 6px; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 72%, #cbd5e1 100%); border: 1.5px solid #94a3b8; box-shadow: 0 4px 0 #64748b, 0 6px 10px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 5px 2px 6px; color: #0f172a; font-weight: 900; cursor: pointer; }

.kb-okey-deck-pile.can-draw { border-color: #fbbf24; box-shadow: 0 4px 0 #b45309, 0 0 16px rgba(251, 191, 36, 0.75); }

.kb-okey-deck-pile b { font-size: 14px; line-height: 1; color: #0f172a; }

.kb-okey-deck-pile .deck-pit { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e2e8f0, #94a3b8); box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.35); }

.kb-okey-finish-drop { width: 42px; height: 34px; border-radius: 6px; border: 1.5px dashed rgba(251, 191, 36, 0.65); background: rgba(245, 158, 11, 0.16); display: flex; align-items: center; justify-content: center; color: #fef08a; font-size: 8.5px; font-weight: 900; text-align: center; cursor: pointer; line-height: 1.1; }

.kb-okey-finish-drop.drop-hover, .kb-okey-finish-drop.ready-win { background: rgba(16, 185, 129, 0.4); border-color: #6ee7b7; border-style: solid; box-shadow: 0 0 14px rgba(16, 185, 129, 0.7); }

/* --- GERÇEKÇİ 101 PLUS STİLİ 3B TAŞLAR (ÜSTTE RAKAM, ALTTA SEDEF OYUK ÇUKUR) --- */
.kb-okey-tile { width: 100%; max-width: 44px; height: 58px; border-radius: 6px; background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 68%, #ebe6d8 100%); border: 1px solid #cbd5e1; border-top-color: #ffffff; box-shadow: 0 4px 0 #94a3b8, 0 5px 8px rgba(0, 0, 0, 0.42), inset 0 1px 0 #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 5px 1px 6px; cursor: grab; position: relative; transition: transform 0.12s ease, box-shadow 0.12s ease; touch-action: none; }

.kb-okey-discard-slot .kb-okey-tile, .kb-101-mid-col .kb-okey-tile, .kb-okey-center-hub .kb-okey-tile { width: 42px; height: 56px; }

.kb-okey-tile.mini { width: 22px; max-width: 22px; height: 30px; padding: 2px 1px 2px; border-radius: 3.5px; box-shadow: 0 2px 0 #94a3b8, 0 2px 4px rgba(0, 0, 0, 0.4); cursor: pointer; }

.kb-okey-tile.mini .t-num { font-size: 11.5px; }

.kb-okey-tile.mini .t-dot { width: 5px; height: 5px; }

.kb-okey-tile.mini .t-badge { font-size: 5.5px; top: 0; right: 1px; }

.kb-okey-tile:active { cursor: grabbing; }

.kb-okey-tile.selected { transform: translateY(-8px); border-color: #f59e0b; box-shadow: 0 6px 0 #b45309, 0 9px 16px rgba(0, 0, 0, 0.55), 0 0 14px rgba(251, 191, 36, 0.9); z-index: 4; }

.kb-okey-tile.win-hint { border-color: #10b981; box-shadow: 0 4px 0 #059669, 0 0 16px rgba(16, 185, 129, 0.85); }

.kb-okey-tile.is-wild { box-shadow: 0 4px 0 #d97706, inset 0 0 0 1.5px rgba(245, 158, 11, 0.7); }

.kb-okey-tile .t-num { font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-size: clamp(15px, 2.2vw, 21px); font-weight: 900; line-height: 1; letter-spacing: -0.5px; }

/* 101 Plus Taş Altı Yuvarlak Sedef Oyuk (Çukur) */
.kb-okey-tile .t-dot { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 60% 65%, #f8fafc 0%, #cbd5e1 70%, #94a3b8 100%); box-shadow: inset 0 1.5px 2.5px rgba(15, 23, 42, 0.35), 0 1px 0 #fff; }

.kb-okey-tile.c-kirmizi .t-num { color: #b91c1c; }

.kb-okey-tile.c-sari .t-num { color: #ca8a04; }

.kb-okey-tile.c-mavi .t-num { color: #0284c7; }

.kb-okey-tile.c-siyah .t-num { color: #0f172a; }

.kb-okey-tile.c-sahte .t-num { color: #7c3aed; }

.kb-okey-tile .t-badge { position: absolute; top: 1px; right: 2px; font-size: 7px; font-weight: 900; color: #b45309; }

.kb-okey-tile.is-layoffable .t-badge { right: auto; left: 2px; }

.kb-okey-tile .t-layoff-dot { position: absolute; top: 3px; right: 3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: #ef4444; border: 1.5px solid #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); pointer-events: none; }

.kb-okey-discard-slot.sm .kb-okey-tile .t-layoff-dot { width: 6.5px; height: 6.5px; top: 2px; right: 2px; }

/* --- ISTAKA ÜSTÜ İNCE OYUNCU (TAM MERKEZDE) + AKSİYON + MASA SOHBET ŞERİDİ --- */
.kb-okey-bottom-area { display: flex; flex-direction: column; gap: 3px; z-index: 8; }

.kb-okey-my-bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; min-height: 28px; }

.kb-okey-my-center { justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; z-index: 5; }

.kb-okey-live-pts-pill { padding: 2px 8px; border-radius: 999px; background: rgba(30, 41, 59, 0.92); border: 1.5px solid #64748b; color: #e2e8f0; font-size: 11px; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); line-height: 1.2; }

.kb-okey-live-pts-pill.ready { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #7dd3fc; color: #ffffff; box-shadow: 0 0 10px rgba(56, 189, 248, 0.65); }

.kb-okey-btn-group { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }

.kb-okey-act-btn { height: 25px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(15, 23, 42, 0.9); color: #fff; font-size: 10.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }

.kb-okey-act-btn:hover { background: #334155; }

.kb-okey-act-btn.primary { background: linear-gradient(135deg, #059669, #10b981); border-color: #6ee7b7; }

.kb-okey-act-btn.warn { background: linear-gradient(135deg, #d97706, #ea580c); border-color: #fde047; }

.kb-okey-act-btn.gold { background: linear-gradient(135deg, #b45309, #eab308); border-color: #fef08a; color: #0f172a; }

/* Sağ Kompakt Masa Sohbet Şeridi (Sabit Boyutlu - Yazarken Asla Kaymaz) */
#kbOkeyInlineChatHost { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }

.kb-okey-inline-chat { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; min-width: 0; width: 100%; }

.kb-okey-inline-last { flex: 1; min-width: 45px; max-width: 165px; height: 24px; display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: #e2e8f0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; padding: 0 6px; border-radius: 6px; background: rgba(9, 18, 34, 0.85); border: 1px solid rgba(251, 191, 36, 0.28); }

.kb-okey-inline-last b { color: #fde047; flex-shrink: 0; }

.kb-okey-inline-last span { overflow: hidden; text-overflow: ellipsis; }

.kb-okey-qchip { height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(15, 23, 42, 0.9); color: #fef08a; font-size: 10.5px; font-weight: 800; cursor: pointer; flex-shrink: 0; }

.kb-okey-inline-form { display: flex; align-items: center; flex-wrap: nowrap; gap: 3px; flex-shrink: 0; margin: 0; }

.kb-okey-inline-form input { width: 118px; height: 24px; border-radius: 6px; border: 1px solid #475569; background: #060d1b; color: #fff; padding: 0 7px; font-size: 11px; flex-shrink: 0; }

.kb-okey-inline-form input:focus { outline: none; border-color: #fbbf24; }

.kb-okey-inline-form button { height: 24px; padding: 0 8px; border-radius: 6px; border: none; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 10.5px; font-weight: 900; cursor: pointer; flex-shrink: 0; }

/* --- SOL [SERİ DİZ / ÇİFT DİZ] + ORTADA AÇIK CEVİZ İŞLEMELİ ISTAKA + SAĞ [PER İNDİR / ÇİFT AÇ] DOCK --- */
.kb-okey-rack-dock { width: 100%; max-width: 816px; margin: 0 auto; display: grid; grid-template-columns: 60px minmax(0, 1fr) 72px; gap: 6px; align-items: stretch; }

.kb-okey-rack-dock.dock-101 { max-width: 862px; }

.kb-okey-rack-side { display: flex; flex-direction: column; gap: 4px; justify-content: stretch; min-width: 0; }

.kb-okey-side-sort { flex: 1; min-height: 0; border-radius: 9px; border: 1.5px solid rgba(147, 197, 253, 0.42); background: linear-gradient(180deg, #163e73 0%, #0d284e 60%, #081a35 100%); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); color: #fde047; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px 2px; cursor: pointer; touch-action: manipulation; transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease; }

.kb-okey-side-sort:hover { filter: brightness(1.14); border-color: #fde047; }

.kb-okey-side-sort:active { transform: scale(0.96); }

.kb-okey-side-sort .sort-cards { display: flex; align-items: center; justify-content: center; }

.kb-okey-side-sort .sc-mini { width: 13px; height: 17px; border-radius: 3px; background: #fff; border: 1px solid #94a3b8; font-size: 8.5px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45); margin: 0 -2px; }

.kb-okey-side-sort span.sort-lbl { font-size: 9.5px; font-weight: 900; line-height: 1.05; text-align: center; letter-spacing: 0.2px; color: #f8fafc; }

.kb-okey-side-sort span.side-sub { font-size: 8.5px; font-weight: 900; line-height: 1; color: #fde047; }

.kb-okey-side-sort.act-seri.is-ready { background: linear-gradient(180deg, #16a34a 0%, #15803d 65%, #14532d 100%); border-color: #86efac; box-shadow: 0 0 14px rgba(34, 197, 94, 0.6); }

.kb-okey-side-sort.act-cift.is-ready { background: linear-gradient(180deg, #d97706 0%, #b45309 65%, #78350f 100%); border-color: #fde047; box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }

.kb-okey-side-sort.act-layoff.is-ready { background: linear-gradient(180deg, #0284c7 0%, #0369a1 65%, #0c4a6e 100%); border-color: #7dd3fc; }

.kb-okey-side-sort.act-throw.is-ready { background: linear-gradient(180deg, #e11d48 0%, #be123c 65%, #881337 100%); border-color: #fda4af; }

/* 101 Plus Açık Ceviz / Bal Rengi Sıcak Ahşap Istaka Gövdesi */
.kb-okey-rack { position: relative; width: 100%; background: repeating-linear-gradient(90deg, rgba(82, 42, 12, 0.08) 0px, rgba(82, 42, 12, 0.08) 4px, transparent 4px, transparent 12px), linear-gradient(180deg, #c8945c 0%, #a56c37 42%, #875122 80%, #633812 100%); border-radius: 10px 10px 8px 8px; border-top: 3px solid #e7be8a; border-left: 10px solid #d4a36a; border-right: 10px solid #d4a36a; border-bottom: 5px solid #4a270a; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.72), inset 0 2px 3px rgba(255, 245, 225, 0.45); padding: 6px 5px 7px; display: flex; flex-direction: column; gap: 6px; overflow: visible; }

.kb-okey-rack-row { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 1px; width: 100%; min-width: 0; padding: 2px 3px 3px; border-radius: 5px; background: linear-gradient(180deg, rgba(62, 31, 9, 0.45) 0%, rgba(92, 49, 17, 0.25) 82%, #b67d46 100%); border-top: 1.5px solid rgba(52, 25, 6, 0.55); border-bottom: 4px solid #d8a66e; box-shadow: inset 0 4px 7px rgba(0, 0, 0, 0.42); }

.kb-okey-rack.rack-101 .kb-okey-rack-row { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 1px; }

.kb-okey-rack .kb-okey-tile { width: 100%; max-width: none; height: 58px; }

.kb-okey-rack.rack-101 .kb-okey-tile { width: 100%; max-width: none; height: 56px; }

.kb-okey-rack-slot { position: relative; height: 59px; min-width: 0; border-radius: 3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1px; }

.kb-okey-rack.rack-101 .kb-okey-rack-slot { height: 57px; }

.kb-okey-rack-slot.slot-hover { background: rgba(251, 191, 36, 0.35); outline: 2px dashed #fde047; }

/* Istakadaki Geçerli Perlerin Altındaki Yeşil/Mavi Şerit ve Per Sayı Rozeti */
.kb-rack-meld-bar { position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; z-index: 6; pointer-events: none; background: #10b981; box-shadow: 0 1px 4px rgba(16, 185, 129, 0.85); }

.kb-rack-meld-bar.is-pair { background: #38bdf8; box-shadow: 0 1px 4px rgba(56, 189, 248, 0.85); }

.kb-rack-meld-bar.is-start { border-top-left-radius: 4px; border-bottom-left-radius: 4px; left: 1px; }

.kb-rack-meld-bar.is-end { border-top-right-radius: 4px; border-bottom-right-radius: 4px; right: 1px; }

.kb-rack-meld-badge { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); z-index: 10; pointer-events: none; padding: 0 5px; height: 13px; border-radius: 999px; background: linear-gradient(180deg, #059669, #047857); border: 1px solid #a7f3d0; color: #ffffff; font-size: 8.5px; font-weight: 900; line-height: 1; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); }

.kb-rack-meld-badge.is-pair { background: linear-gradient(180deg, #0284c7, #0369a1); border-color: #bae6fd; font-size: 7.5px; }

/* El Sonu Zafer & 101 Ceza Tablosu Katmanı */
.kb-okey-round-overlay { position: absolute; inset: 0; z-index: 30; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 12px; }

.kb-okey-round-card { width: min(680px, 100%); max-height: 94%; overflow-y: auto; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #0f172a, #1e1b4b); border: 2px solid #fbbf24; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85); }

.kb-okey-score-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 12px; text-align: left; }

.kb-okey-score-table th, .kb-okey-score-table td { padding: 6px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.kb-okey-score-table th { color: #fde047; font-size: 11px; }

/* Mobil Yatay (Landscape) ve Zorlanmış Yan Ekran İçin Özel Kompakt Düzen */
@media (max-height: 540px) {
    .kb-okey-topbar { padding: 2px 8px; }

    .kb-ok-tbtn { height: 23px; padding: 0 6px; font-size: 10px; }

    .kb-okey-felt { padding: 3px 6px 4px; gap: 2px; }

    .kb-okey-stage { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 4px; }

    .kb-okey-seat.seat-side { width: 45px; max-width: 45px; padding: 4px 2px; }

    .kb-okey-seat-av { width: 20px; height: 20px; font-size: 10px; }

    .kb-okey-discard-slot { width: 35px; height: 46px; }

    .kb-okey-discard-slot.sm { width: 30px; height: 40px; }

    .kb-okey-discard-slot.sm .kb-okey-tile { width: 28px; height: 37px; }

    .kb-okey-discard-slot .kb-okey-tile, .kb-101-mid-col .kb-okey-tile, .kb-okey-center-hub .kb-okey-tile, .kb-okey-deck-pile { width: 33px; height: 44px; padding: 3px 1px; }

    .kb-okey-center-hub .kb-okey-finish-drop { height: 44px !important; }

    .kb-101-board { grid-template-columns: minmax(0, 1fr) 62px 74px; gap: 4px; }

    .kb-101-tag { font-size: 8.5px; padding: 1px 2px; }

    .kb-okey-tile.mini { width: 19px; max-width: 19px; height: 26px; }

    .kb-okey-tile.mini .t-num { font-size: 10px; }

    .kb-okey-act-btn { height: 22px; padding: 0 6px; font-size: 9.5px; }

    .kb-okey-inline-form input { width: 105px; height: 21px; font-size: 10px; }

    .kb-okey-inline-form button, .kb-okey-qchip { height: 21px; font-size: 9.5px; padding: 0 6px; }

    .kb-okey-rack-dock { max-width: 650px; grid-template-columns: 50px minmax(0, 1fr) 58px; gap: 4px; }

    .kb-okey-rack-dock.dock-101 { max-width: 688px; }

    .kb-okey-rack-side { gap: 3px; }

    .kb-okey-side-sort .sc-mini { width: 11px; height: 14px; font-size: 7.5px; }

    .kb-okey-side-sort span.sort-lbl { font-size: 8.5px; }

    .kb-okey-side-sort span.side-sub { font-size: 7.5px; }

    .kb-okey-rack { padding: 5px 4px 3px; gap: 3px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 3px; }

    .kb-okey-rack-row { padding: 2px 2px 1px; border-bottom-width: 3px; }

    .kb-okey-rack .kb-okey-rack-slot, .kb-okey-rack.rack-101 .kb-okey-rack-slot { height: 42px; }

    .kb-okey-rack .kb-okey-tile, .kb-okey-rack.rack-101 .kb-okey-tile { height: 40px; padding: 2px 1px 3px; }

    .kb-okey-rack .kb-okey-tile .t-num { font-size: 14.5px; }

    .kb-okey-rack .kb-okey-tile .t-dot { width: 7px; height: 7px; }

    .kb-okey-rack .kb-okey-tile.selected { transform: translateY(-5px); }
}

.kb-okey-modal.force-landscape .kb-okey-topbar { padding: 2px 8px; }

.kb-okey-modal.force-landscape .kb-ok-tbtn { height: 23px; padding: 0 6px; font-size: 10px; }

.kb-okey-modal.force-landscape .kb-okey-felt { padding: 3px 6px 4px; gap: 2px; }

.kb-okey-modal.force-landscape .kb-okey-stage { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 4px; }

.kb-okey-modal.force-landscape .kb-okey-seat.seat-side { width: 45px; max-width: 45px; padding: 4px 2px; }

.kb-okey-modal.force-landscape .kb-okey-seat-av { width: 20px; height: 20px; font-size: 10px; }

.kb-okey-modal.force-landscape .kb-okey-discard-slot { width: 35px; height: 46px; }

.kb-okey-modal.force-landscape .kb-okey-discard-slot.sm { width: 30px; height: 40px; }

.kb-okey-modal.force-landscape .kb-okey-discard-slot.sm .kb-okey-tile { width: 28px; height: 37px; }

.kb-okey-modal.force-landscape .kb-okey-discard-slot .kb-okey-tile, .kb-okey-modal.force-landscape .kb-101-mid-col .kb-okey-tile, .kb-okey-modal.force-landscape .kb-okey-center-hub .kb-okey-tile, .kb-okey-modal.force-landscape .kb-okey-deck-pile { width: 33px; height: 44px; padding: 3px 1px; }

.kb-okey-modal.force-landscape .kb-okey-center-hub .kb-okey-finish-drop { height: 44px !important; }

.kb-okey-modal.force-landscape .kb-101-board { grid-template-columns: minmax(0, 1fr) 62px 74px; gap: 4px; }

.kb-okey-modal.force-landscape .kb-101-tag { font-size: 8.5px; padding: 1px 2px; }

.kb-okey-modal.force-landscape .kb-okey-tile.mini { width: 19px; max-width: 19px; height: 26px; }

.kb-okey-modal.force-landscape .kb-okey-tile.mini .t-num { font-size: 10px; }

.kb-okey-modal.force-landscape .kb-okey-act-btn { height: 22px; padding: 0 6px; font-size: 9.5px; }

.kb-okey-modal.force-landscape .kb-okey-inline-form input { width: 105px; height: 21px; font-size: 10px; }

.kb-okey-modal.force-landscape .kb-okey-inline-form button, .kb-okey-modal.force-landscape .kb-okey-qchip { height: 21px; font-size: 9.5px; padding: 0 6px; }

.kb-okey-modal.force-landscape .kb-okey-rack-dock { max-width: 650px; grid-template-columns: 50px minmax(0, 1fr) 58px; gap: 4px; }

.kb-okey-modal.force-landscape .kb-okey-rack-dock.dock-101 { max-width: 688px; }

.kb-okey-modal.force-landscape .kb-okey-rack-side { gap: 3px; }

.kb-okey-modal.force-landscape .kb-okey-side-sort .sc-mini { width: 11px; height: 14px; font-size: 7.5px; }

.kb-okey-modal.force-landscape .kb-okey-side-sort span.sort-lbl { font-size: 8.5px; }

.kb-okey-modal.force-landscape .kb-okey-side-sort span.side-sub { font-size: 7.5px; }

.kb-okey-modal.force-landscape .kb-okey-rack { padding: 5px 4px 3px; gap: 3px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 3px; }

.kb-okey-modal.force-landscape .kb-okey-rack-row { padding: 2px 2px 1px; border-bottom-width: 3px; }

.kb-okey-modal.force-landscape .kb-okey-rack .kb-okey-rack-slot, .kb-okey-modal.force-landscape .kb-okey-rack.rack-101 .kb-okey-rack-slot { height: 42px; }

.kb-okey-modal.force-landscape .kb-okey-rack .kb-okey-tile, .kb-okey-modal.force-landscape .kb-okey-rack.rack-101 .kb-okey-tile { height: 40px; padding: 2px 1px 3px; }

.kb-okey-modal.force-landscape .kb-okey-rack .kb-okey-tile .t-num { font-size: 15px; }

.kb-okey-modal.force-landscape .kb-okey-rack .kb-okey-tile .t-dot { width: 7px; height: 7px; }

.kb-okey-modal.force-landscape .kb-okey-rack .kb-okey-tile.selected { transform: translateY(-5px); }

/* Dar Dik Ekranlarda (Yan Ekran Kapalıyken) Sığma Garantisi */
@media (max-width: 680px) {
    .kb-okey-modal:not(.force-landscape) .kb-okey-my-bar { grid-template-columns: 1fr; gap: 3px; }

    .kb-okey-modal:not(.force-landscape) .kb-101-board { grid-template-columns: minmax(0, 1fr) 58px; }

    .kb-okey-modal:not(.force-landscape) .kb-101-pairs-area { display: none; }

    .kb-okey-modal:not(.force-landscape) .kb-okey-rack-dock { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 3px; }

    .kb-okey-modal:not(.force-landscape) .kb-okey-rack { border-left-width: 4px; border-right-width: 4px; padding: 4px 3px 3px; }

    .kb-okey-modal:not(.force-landscape) .kb-okey-rack .kb-okey-rack-slot, .kb-okey-modal:not(.force-landscape) .kb-okey-rack.rack-101 .kb-okey-rack-slot { height: 44px; }

    .kb-okey-modal:not(.force-landscape) .kb-okey-rack .kb-okey-tile, .kb-okey-modal:not(.force-landscape) .kb-okey-rack.rack-101 .kb-okey-tile { height: 42px; padding: 2px 0 3px; }

    .kb-okey-modal:not(.force-landscape) .kb-okey-rack .kb-okey-tile .t-num { font-size: 13px; }
}