/* ==========================================================================
   KEYİFBİZDE.COM - 4K OKEY, 101 OKEY & SOHBET SİSTEMİ (v54 CORE CSS)
   ========================================================================== */
:root {
    --royal-bg: #073b2c;
    --royal-felt: radial-gradient(circle at 50% 42%, #199f68 0%, #0d7a4d 58%, #064e32 100%);
    --royal-pattern: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 18px),
                     repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 18px),
                     radial-gradient(circle at 50% 38%, #20b878 0%, #0e8755 56%, #074f32 100%);
    --gold-bright: #fef08a;
    --gold-main: #facc15;
    --gold-bronze: #ca8a04;
    --gold-dark: #713f12;
    --neon-turn: #22c55e;
}

.theme-emerald { background: var(--royal-pattern) !important; }
.theme-royal   { background: radial-gradient(circle at 50% 45%, #38bdf8 0%, #1d4ed8 58%, #0f2957 100%) !important; }
.theme-crimson { background: radial-gradient(circle at 50% 45%, #e11d48 0%, #9f1239 62%, #4c0519 100%) !important; }
.theme-obsidian{ background: radial-gradient(circle at 50% 45%, #475569 0%, #1e293b 65%, #0f172a 100%) !important; }

.rev-b {
    display: inline-block;
    transform: scaleX(-1);
    margin-left: -1px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: var(--royal-bg);
    color: #ffffff;
    position: fixed;
    inset: 0;
    -webkit-font-smoothing: antialiased;
}

input, select, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
}

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--gold-main); border-radius: 4px; }

.screen-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    overflow: hidden;
}
.screen-layer.active { display: flex; }

/* ==========================================================================
   EKRAN 1: 4K GİRİŞ EKRANI ANA YERLEŞİMİ
   ========================================================================== */
#screenLogin {
    background: var(--royal-pattern);
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    text-align: center;
    position: relative;
}

.login-top-strip {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.login-panel {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.94), rgba(4, 47, 36, 0.98));
    border: 2.5px solid var(--gold-main);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.85), 0 0 25px rgba(250, 204, 21, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    position: relative;
    z-index: 5;
}

@keyframes btnLiveGlowGold {
    0%, 100% { box-shadow: 0 4px 0 #713f12, 0 0 14px rgba(250, 204, 21, 0.6); }
    50%      { box-shadow: 0 4px 0 #713f12, 0 0 24px rgba(254, 240, 138, 0.95); }
}

@keyframes btnLiveGlowBlue {
    0%, 100% { box-shadow: 0 4px 0 #065f46, 0 0 14px rgba(16, 185, 129, 0.6); }
    50%      { box-shadow: 0 4px 0 #065f46, 0 0 24px rgba(52, 211, 153, 0.95); }
}

.btn-glossy {
    width: 100%;
    height: 46px;
    border-radius: 24px;
    border: 2px solid #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.btn-glossy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-25deg);
    animation: shimmerSweep 2.4s infinite;
    pointer-events: none;
}
@keyframes shimmerSweep {
    0% { left: -120%; }
    45%, 100% { left: 140%; }
}
.btn-glossy:active { transform: translateY(2px); }
.btn-glossy.gold {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #ca8a04 100%);
    color: #091124;
    animation: btnLiveGlowGold 1.8s infinite ease-in-out;
}
.btn-glossy.blue {
    background: linear-gradient(180deg, #34d399 0%, #10b981 48%, #047857 100%);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    animation: btnLiveGlowBlue 1.8s infinite ease-in-out;
}
.btn-glossy.crimson {
    background: linear-gradient(180deg, #f43f5e 0%, #be123c 55%, #881337 100%);
    color: #ffffff;
    box-shadow: 0 4px 0 #4c0519;
}

/* ==========================================================================
   EKRAN 2: 2 KATMANLI LÜKS LOBİ ÜST BARI & HAREKETLİ ODA BUTONLARI
   ========================================================================== */
#screenLobby {
    background: var(--royal-pattern);
    padding: 5px;
    max-width: 840px;
    margin: 0 auto;
    gap: 5px;
}

.lobby-luxury-navbar {
    width: 100%;
    background: linear-gradient(180deg, #0d6e49 0%, #053b26 100%);
    border: 1.5px solid var(--gold-main);
    border-radius: 14px;
    padding: 5px 7px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.lln-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.lln-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex-shrink: 1;
}

.lln-emblem {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%);
    border: 1.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #451a03;
    font-size: 12px;
    flex-shrink: 0;
}

.lln-brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.lln-title-main {
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    color: var(--gold-bright);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.lln-title-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 800;
    color: #bbf7d0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lln-right-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

@keyframes neonVipBlink {
    0%, 100% { box-shadow: 0 0 6px #f43f5e, 0 0 12px rgba(217, 70, 239, 0.6); border-color: #fbcfe8; }
    50% { box-shadow: 0 0 12px #fde047, 0 0 18px #ec4899; border-color: #fef08a; }
}

@keyframes neonGoldBlink {
    0%, 100% { box-shadow: 0 0 6px #facc15, 0 0 12px rgba(250, 204, 21, 0.6); border-color: #ffffff; }
    50% { box-shadow: 0 0 12px #4ade80, 0 0 18px #fde047; border-color: #fef08a; }
}

.lux-nav-pill {
    height: 27px;
    padding: 0 7px;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.lux-nav-pill.radio-pill {
    width: 28px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #0f766e 0%, #064e3b 100%);
    border: 1.5px solid var(--gold-bright);
    color: var(--gold-bright);
    font-size: 11px;
}
.lux-nav-pill.radio-pill.active-mode {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 12px #22c55e;
}

.lux-nav-pill.admin-btn {
    background: linear-gradient(135deg, #7e22ce 0%, #4c1d95 100%);
    border: 1.5px solid #e9d5ff;
    color: #ffffff;
}

.lux-nav-pill.vip-gem {
    background: linear-gradient(135deg, #f43f5e 0%, #d946ef 50%, #9333ea 100%);
    border: 1.5px solid #fbcfe8;
    color: #ffffff;
    animation: neonVipBlink 1.8s infinite ease-in-out;
}

.lux-nav-pill.go-table {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #ca8a04 100%);
    border: 1.5px solid #ffffff;
    color: #091124;
    animation: neonGoldBlink 1.8s infinite ease-in-out;
}

.lux-nav-pill.exit-icon {
    width: 27px;
    height: 27px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
    border: 1.5px solid #fca5a5;
    color: #ffffff;
}

/* Lobi Alt Katman: Belirgin, Şık ve Hareketli Oda Seçim Butonları */
.lln-filter-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(254, 240, 138, 0.25);
}

.filter-tab-btn {
    height: 28px;
    border-radius: 10px;
    border: 1.5px solid rgba(254, 240, 138, 0.45);
    background: linear-gradient(180deg, #0b5e3e 0%, #042f24 100%);
    color: #ecfdf5;
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.filter-tab-btn i {
    color: var(--gold-bright);
    font-size: 9.5px;
}
.filter-tab-btn.active {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
    color: #091124;
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.8);
    transform: translateY(-1px);
}
.filter-tab-btn.active i {
    color: #713f12;
}

.lobby-main-split {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 126px;
    gap: 5px;
    min-height: 0;
    overflow: hidden;
}

.lobby-left-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    overflow: hidden;
}

.lobby-rooms-panel {
    height: 58%;
    background: rgba(6, 68, 45, 0.92);
    border: 1.5px solid var(--gold-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.panel-subhead {
    height: 28px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.25), rgba(16, 185, 129, 0.35));
    border-bottom: 1px solid rgba(254, 240, 138, 0.35);
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--gold-bright);
    flex-shrink: 0;
}

.lobby-rooms-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* SOL LOBİ 4K GERÇEKÇİ OKEY & 101 MASASI KARTI */
.l-visual-table-card {
    background: linear-gradient(180deg, #0b5e3e 0%, #053b26 100%);
    border: 1.5px solid var(--gold-main);
    border-radius: 14px;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.55);
}
.l-visual-table-card.card-101-mode {
    background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    border-color: #38bdf8;
}

.lvt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.lvt-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--gold-bright);
}

.lvt-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lvt-spec-badge {
    background: rgba(4, 38, 25, 0.85);
    border: 1px solid rgba(254, 240, 138, 0.4);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 8px;
    font-weight: 800;
    color: #d1fae5;
}
.lvt-spec-badge.gold {
    background: rgba(250, 204, 21, 0.22);
    color: var(--gold-bright);
    border-color: var(--gold-main);
}
.lvt-spec-badge.badge-101 {
    background: linear-gradient(90deg, #dc2626, #991b1b);
    color: #ffffff;
    border-color: #fca5a5;
}

.lvt-4k-table-stage {
    width: 100%;
    padding: 3px 2px;
}

.lvt-4k-wood-rim {
    width: 100%;
    height: 114px;
    background: linear-gradient(135deg, #d99b4e 0%, #8f5314 50%, #542d05 100%);
    border: 2px solid var(--gold-bright);
    border-radius: 26px;
    padding: 6px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.45),
        0 6px 14px rgba(0,0,0,0.75);
    position: relative;
}

.lvt-4k-emerald-felt {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #22c55e 0%, #15803d 62%, #065f46 100%);
    border: 1.5px solid rgba(254, 240, 138, 0.55);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 18px rgba(0,0,0,0.65);
    overflow: hidden;
}
.lvt-4k-emerald-felt.felt-101 {
    background: radial-gradient(ellipse at center, #2563eb 0%, #1d4ed8 60%, #1e3a8a 100%);
}

.lvt-4k-mini-rack {
    position: absolute;
    background: linear-gradient(180deg, #f5dba6, #9c6821);
    border: 1px solid #542d05;
    border-radius: 3px;
    opacity: 0.85;
}
.lvt-4k-mini-rack.rack-top    { top: 24px; left: 50%; transform: translateX(-50%); width: 54px; height: 5px; }
.lvt-4k-mini-rack.rack-bottom { bottom: 24px; left: 50%; transform: translateX(-50%); width: 54px; height: 5px; }
.lvt-4k-mini-rack.rack-left   { left: 72px; top: 50%; transform: translateY(-50%); width: 5px; height: 34px; }
.lvt-4k-mini-rack.rack-right  { right: 72px; top: 50%; transform: translateY(-50%); width: 5px; height: 34px; }

.lvt-4k-center-art {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.lvt-mini-tiles {
    display: flex;
    gap: 3px;
}

.m-tile {
    width: 17px;
    height: 21px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    font-size: 7.5px;
    font-weight: 900;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.6);
}
.m-tile.kb {
    background: linear-gradient(180deg, #fef08a, #ca8a04);
    color: #713f12;
}

.lvt-center-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 13px;
    color: var(--gold-bright);
    text-shadow: 0 1px 3px #000;
    white-space: nowrap;
}

.lvt-4k-chair {
    position: absolute;
    height: 22px;
    padding: 2px 7px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 5;
    max-width: 108px;
}
.lvt-4k-chair.seat-pos-top    { top: 2px; left: 50%; transform: translateX(-50%); }
.lvt-4k-chair.seat-pos-bottom { bottom: 2px; left: 50%; transform: translateX(-50%); }
.lvt-4k-chair.seat-pos-left   { left: 4px; top: 50%; transform: translateY(-50%); }
.lvt-4k-chair.seat-pos-right  { right: 4px; top: 50%; transform: translateY(-50%); }

.lvt-4k-chair.occupied {
    background: linear-gradient(90deg, #064e3b, #022c22);
    border: 1.5px solid var(--gold-bright);
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.lvt-4k-chair.empty {
    background: rgba(4, 47, 36, 0.72);
    border: 1.5px dashed #86efac;
    color: #bbf7d0;
}
.lvt-4k-chair.empty:hover {
    background: #16a34a;
    color: #fff;
}

.lvt-plus-icon {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.lvt-seat-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #4ade80;
    flex-shrink: 0;
}

.lvt-seat-nick {
    font-size: 8px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lvt-mini-cup { font-size: 9px; }

.lobby-chat-panel {
    flex: 1;
    background: rgba(6, 68, 45, 0.92);
    border: 1.5px solid var(--gold-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.lobby-chat-tabs-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 26px;
    background: #042f24;
    border-bottom: 1px solid rgba(254, 240, 138, 0.3);
    flex-shrink: 0;
}

.lct-btn {
    border: none;
    background: transparent;
    color: #a7f3d0;
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    cursor: pointer;
}
.lct-btn.active {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.28), rgba(16, 185, 129, 0.35));
    color: var(--gold-bright);
    border-bottom: 2px solid var(--gold-main);
}

.lobby-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
}

.l-chat-msg {
    background: rgba(255,255,255,0.08);
    padding: 4px 7px;
    border-radius: 6px;
    line-height: 1.3;
}

.lobby-chat-input-bar {
    height: 35px;
    border-top: 1.5px solid rgba(254, 240, 138, 0.35);
    display: flex;
    align-items: center;
    padding: 3px 5px;
    gap: 4px;
    background: #042f24;
    flex-shrink: 0;
}

/* Sağ Sütun: Sadece İkonlu Oyuncu Listesi */
.lobby-users-sidebar {
    background: linear-gradient(180deg, rgba(11, 94, 62, 0.95) 0%, rgba(5, 59, 38, 0.98) 100%);
    border: 1.5px solid var(--gold-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

@keyframes watermarkGlowBlink {
    0%, 100% {
        color: rgba(254, 240, 138, 0.16);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    }
    50% {
        color: rgba(254, 240, 138, 0.38);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 16px rgba(250, 204, 21, 0.55);
    }
}

.lobby-users-sidebar::before {
    content: 'Keyifbizde Okey';
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2.5px;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    animation: watermarkGlowBlink 2.8s infinite ease-in-out;
}

.lobby-users-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.l-user-item {
    background: rgba(4, 47, 36, 0.82);
    border: 1px solid rgba(254, 240, 138, 0.28);
    border-radius: 7px;
    padding: 5px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
}

.u-pure-icon {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(254, 240, 138, 0.14);
    border: 1px solid rgba(254, 240, 138, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.u-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
    flex-shrink: 0;
}

/* ==========================================================================
   EKRAN 3: TAŞMA YAPMAYAN ÜST BAR & MASA DÜZENİ
   ========================================================================== */
#screenGame {
    background: var(--royal-felt);
    padding: 2px 3px 3px 3px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.top-hud-bar {
    width: 100%;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5px;
    padding: 0 2px;
    flex-shrink: 0;
    z-index: 40;
    overflow: hidden;
}

.crown-score-box {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #065f46, #022c22);
    border: 1.5px solid var(--gold-main);
    border-radius: 16px;
    padding: 1px 5px 1px 2px;
    gap: 3px;
    flex-shrink: 0;
    cursor: pointer;
}
.csb-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fde047, #ca8a04);
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #713f12;
    font-size: 8.5px;
}
.csb-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

/* Şekilli Kısa Oyun Rozeti: ✦ Okey veya 🔥 101 */
.game-mode-pill {
    background: linear-gradient(180deg, #fef08a 0%, #ca8a04 100%);
    border: 1.5px solid #ffffff;
    color: #091124;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.game-mode-pill.mode-101-active {
    background: linear-gradient(180deg, #38bdf8 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: var(--gold-bright);
}

.turn-timer-pill {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border: 1.5px solid var(--gold-bright);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.opacity-control-pill {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(6, 78, 59, 0.92);
    border: 1px solid var(--gold-main);
    padding: 2px 5px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 700;
    color: var(--gold-bright);
    flex: 1;
    max-width: 112px;
    min-width: 0;
    justify-content: center;
}

.opacity-slider {
    width: 32px;
    height: 4px;
    accent-color: var(--gold-main);
    cursor: pointer;
}

.btn-pattern-toggle {
    background: rgba(234, 179, 8, 0.25);
    border: 1px solid var(--gold-main);
    color: var(--gold-bright);
    border-radius: 5px;
    padding: 1px 4px;
    font-size: 7.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.btn-pattern-toggle.only-felt {
    background: var(--gold-main);
    color: #091124;
}

.top-right-btns {
    display: flex;
    align-items: center;
    gap: 2.5px;
    flex-shrink: 0;
}

.circle-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0d7a4d, #064e32);
    border: 1.5px solid var(--gold-main);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.circle-btn.treat-btn-glow {
    background: linear-gradient(180deg, #d97706, #78350f);
    color: #fef08a;
}
.circle-btn.active-mode {
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 10px #22c55e;
}
.circle-btn.exit-lobby {
    background: linear-gradient(180deg, #ef4444, #991b1b);
    border-color: var(--gold-bright);
    color: #fff;
    width: auto;
    height: 25px;
    border-radius: 12px;
    padding: 0 6px;
    font-size: 8px;
    font-weight: 800;
    gap: 2px;
    white-space: nowrap;
}

.master-table-frame {
    flex: 1;
    width: 100%;
    background: var(--royal-pattern);
    border: 3.5px solid var(--gold-main);
    outline: 1.5px solid var(--gold-dark);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px;
    min-height: 0;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.45);
}

.royal-felt-crest {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.crest-crown-emblem i {
    font-size: 26px;
    color: rgba(254, 240, 138, 0.35);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.crest-luxury-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(254, 240, 138, 0.36);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}
.crest-room-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2px;
}

#fullTableChatSurface {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 172px;
    z-index: 4;
    overflow: hidden;
    border-radius: 10px 10px 6px 6px;
    border-bottom: 1px solid rgba(234, 179, 8, 0.35);
}

#fullTableWebFrame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.45;
}

.table-top-station-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.opp-top-horiz {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 78, 59, 0.95);
    border: 1.5px solid var(--gold-main);
    border-radius: 20px;
    padding: 2px 8px 2px 3px;
    gap: 6px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.opp-top-horiz.turn-active {
    background: linear-gradient(180deg, #16a34a 0%, #065f46 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px #22c55e;
}

.opp-top-horiz.seat-empty-invite {
    border: 1.5px dashed #fde047;
    background: rgba(6, 78, 59, 0.88);
}

.seat-lady-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold-bright);
    flex-shrink: 0;
}

.oth-rack {
    background: linear-gradient(180deg, #c88a3b 0%, #8f5716 52%, #593206 100%);
    border: 1px solid #eab308;
    border-radius: 5px;
    padding: 2px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

.opp-station-vertical {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 28px;
    height: 148px;
    background: linear-gradient(90deg, #c88a3b 0%, #8f5716 52%, #593206 100%);
    border: 1.5px solid #eab308;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 1px;
    cursor: pointer;
    z-index: 25;
}

.opp-station-vertical.left-wall  { left: 2px; }
.opp-station-vertical.right-wall { right: 2px; }

.opp-station-vertical.turn-active {
    background: linear-gradient(90deg, #16a34a 0%, #065f46 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px #22c55e;
}

.opp-station-vertical.seat-empty-invite {
    border: 1.5px dashed #fde047;
    background: linear-gradient(90deg, #065f46 0%, #022c22 100%);
}

.osv-vert-texts {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    flex: 1;
}

.osv-left-rotate { transform: rotate(180deg); }
.osv-name { font-size: 8px; font-weight: 800; color: #ffffff; white-space: nowrap; }
.osv-brand { font-family: 'Cinzel', serif; font-size: 6px; font-weight: 900; color: var(--gold-bright); white-space: nowrap; }

.table-middle-floating-layer {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-el { pointer-events: auto; }

#tableStartOverlay {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.96), rgba(2, 44, 34, 0.99));
    border: 2px solid var(--gold-main);
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 35;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.88);
    text-align: center;
    width: 88%;
    max-width: 320px;
}

.tso-seats-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}

.tso-seat-chip {
    font-size: 8.5px;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tso-seat-chip.filled {
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid #4ade80;
    color: #ffffff;
}
.tso-seat-chip.empty {
    background: rgba(250, 204, 21, 0.12);
    border: 1px dashed var(--gold-bright);
    color: var(--gold-bright);
    cursor: pointer;
}

.btn-start-match-glow {
    width: 100%;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 50%, #15803d 100%);
    border: 2px solid var(--gold-bright);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    animation: neonGoldBlink 1.5s infinite;
}
.btn-start-match-glow.disabled-wait {
    background: linear-gradient(180deg, #ca8a04 0%, #854d0e 100%);
    animation: none;
}

/* YUKARI ÇEKİLMİŞ ORTA GÖSTERGE VE Kᙠ OKEY MÜHÜRLÜ DESTE */
.floating-center-pair {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 25;
    padding: 5px 11px;
    border-radius: 12px;
    background: rgba(4, 47, 36, 0.62);
    border: 1.5px solid rgba(254, 240, 138, 0.5);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

#indicatorMount {
    position: relative;
    border-radius: 6px;
    cursor: pointer;
}

#indicatorMount.finish-drop-ready {
    box-shadow: 0 0 18px #f59e0b, 0 0 28px #22c55e;
}

#btnShowIndicatorBonus {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fde047, #ca8a04);
    border: 1.5px solid #fff;
    color: #091124;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 0 14px #fde047;
    display: none;
    z-index: 30;
}

.white-deck-stack {
    width: 36px;
    height: 46px;
    background: linear-gradient(165deg, #ffffff 0%, #f1e9d6 68%, #d8cbb0 100%);
    border: 1.5px solid #c7b99e;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #b0a184, 4px 4px 0 #7d6f55, 0 6px 14px rgba(0,0,0,0.85);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-kb-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.deck-kb-logo .kb-letters {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 900;
    color: #991b1b;
    letter-spacing: -0.5px;
}
.deck-kb-logo .kb-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 6.5px;
    font-weight: 900;
    color: #78350f;
    margin-top: 1px;
}

.deck-num-badge {
    position: absolute;
    top: -8px;
    right: -9px;
    background: #065f46;
    border: 1.5px solid var(--gold-main);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

.corner-discard-spot {
    position: absolute;
    width: 36px;
    height: 44px;
    border-radius: 6px;
    border: 1.5px dashed rgba(254, 240, 138, 0.6);
    background: rgba(4, 47, 36, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 22;
}

.cds-top-left     { top: 2px; left: 4px; }
.cds-top-right    { top: 2px; right: 4px; }
.cds-bottom-left  { bottom: 10px; left: 4px; }
.cds-bottom-right { bottom: 10px; right: 4px; }

.corner-discard-spot.can-take-glow {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 14px #38bdf8;
}

.corner-discard-spot.my-target-glow {
    border: 2px solid var(--gold-bright);
    background: rgba(234, 179, 8, 0.25);
    box-shadow: 0 0 16px var(--gold-bright);
}

/* ==========================================================================
   ALT ISTAKA VE ŞIK KONTROL BUTONLARI
   ========================================================================== */
.in-table-rack-zone {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 30;
    background: rgba(4, 47, 36, 0.95);
    padding-top: 3px;
    border-radius: 8px;
}

.oval-buttons-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 100%;
    align-items: center;
}

.btn-oval-royal {
    height: 29px;
    border-radius: 14px;
    background: linear-gradient(180deg, #10b981 0%, #065f46 55%, #022c22 100%);
    border: 1.5px solid var(--gold-bright);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 7.5px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    box-shadow: 0 3px 6px rgba(0,0,0,0.55);
}
.btn-oval-royal:active { transform: translateY(1px); }
.btn-oval-royal small { font-size: 6.5px; color: var(--gold-bright); }

.btn-oval-royal.undo-btn {
    opacity: 0.4;
    pointer-events: none;
}
.btn-oval-royal.undo-btn.enabled {
    opacity: 1;
    pointer-events: auto;
    background: linear-gradient(180deg, #f59e0b, #78350f);
    border-color: #ffffff;
}

.honey-oak-rack {
    width: 100%;
    background: linear-gradient(180deg, #f5dba6 0%, #dfb266 48%, #9c6821 100%);
    border: 2px solid #8c5615;
    border-top: 2px solid #fbe8be;
    border-bottom: 4px solid #3d2103;
    border-radius: 9px;
    padding: 3px 3px 4px 3px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.honey-oak-rack.my-turn-glow {
    border-color: #4ade80;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.9), inset 0 0 10px rgba(254, 240, 138, 0.5);
}

.oak-shelf-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5px;
    width: 100%;
    height: 40px;
    background: rgba(65, 35, 5, 0.25);
    border-bottom: 3.5px solid #6e3e0b;
    border-radius: 4px;
    align-items: end;
    padding: 0 2px 1px 2px;
    position: relative;
}

.oak-shelf-row::before {
    content: '👑 KEYİFBİZDE OKEY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(74, 39, 5, 0.32);
    pointer-events: none;
    white-space: nowrap;
}

.oak-slot {
    width: 100%;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.r-tile {
    width: 100%;
    max-width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f0e0 76%, #ded2b8 100%);
    border: 1px solid #cbbda2;
    border-radius: 5px;
    box-shadow: 0 2px 0 #9c8d70, 0 3px 5px rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2px 1px 3px 1px;
    cursor: grab;
    position: relative;
    touch-action: none;
}

.rack-mode-101 .r-tile {
    max-width: 30px;
    height: 35px;
}
.rack-mode-101 .rt-num {
    font-size: 12.5px;
}

.corner-discard-spot .r-tile,
#indicatorMount .r-tile {
    width: 32px;
    height: 40px;
    box-shadow: 0 2px 0 #9c8d70, 0 5px 12px rgba(0,0,0,0.85);
}

.r-tile.selected {
    transform: translate3d(0, -6px, 0);
    border: 2px solid #eab308;
    z-index: 10;
}

.r-tile.flipped-okey {
    background: radial-gradient(circle at 50% 45%, #fffdf7 0%, #f3e5c8 65%, #d4be94 100%);
    border: 1.5px solid var(--gold-main);
    justify-content: center;
    gap: 1px;
    box-shadow: 0 2px 0 #8a7346, 0 0 8px rgba(234, 179, 8, 0.55);
}

.flipped-kb-emblem {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    color: #991b1b;
    line-height: 1;
    letter-spacing: -0.5px;
}

.flipped-okey-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 6px;
    font-weight: 900;
    color: #78350f;
}

.rt-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.rt-sym { font-size: 8.5px; line-height: 1; }

.clr-yellow .rt-num, .clr-yellow .rt-sym { color: #e07a00; }
.clr-red .rt-num, .clr-red .rt-sym       { color: #d61f26; }
.clr-blue .rt-num, .clr-blue .rt-sym     { color: #1976d2; }
.clr-black .rt-num, .clr-black .rt-sym   { color: #1e242b; }

#dragGhost {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

#openedMeldsZone {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    z-index: 22;
    width: 78%;
    pointer-events: none;
}

.meld-box {
    display: flex;
    gap: 2px;
    background: rgba(4, 47, 36, 0.9);
    border: 1px solid var(--gold-main);
    padding: 2px 4px;
    border-radius: 5px;
    transform: scale(0.75);
    pointer-events: auto;
    cursor: pointer;
}

/* ==========================================================================
   MODALLAR
   ========================================================================== */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(2, 24, 18, 0.86);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.modal-bg.open { display: flex; }

.modal-card {
    width: 100%;
    max-width: 420px;
    max-height: 86dvh;
    background: #064e3b;
    border: 2px solid var(--gold-main);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}

.mc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(254, 240, 138, 0.28);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-bright);
}

.mc-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-item {
    background: rgba(4, 47, 36, 0.88);
    border: 1px solid rgba(254, 240, 138, 0.25);
    border-radius: 9px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
}

.vip-package-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.24), rgba(6, 78, 59, 0.95));
    border: 1.5px solid var(--gold-main);
    border-radius: 11px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.vip-package-card.selected-pkg {
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.score-table-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 11px;
}
.score-table-grid th, .score-table-grid td {
    border: 1px solid rgba(254, 240, 138, 0.25);
    padding: 6px 8px;
    text-align: center;
}
.score-table-grid th {
    background: rgba(234, 179, 8, 0.22);
    color: var(--gold-bright);
    font-weight: 800;
}

.btn-gold-sm {
    background: linear-gradient(180deg, #fde68a, #ca8a04);
    color: #091124;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.inp-box {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--gold-main);
    background: #042f24;
    color: #fff;
    font-size: 12px;
    outline: none;
}

#toastArea {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9500;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.toast-msg {
    background: #065f46;
    border: 1.5px solid var(--gold-bright);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.65);
}