/* =========================================================================
   css/components.css
   Tekrar eden öğeler; butonlar, rozetler, geçiş anahtarları (toggle) vb.
   ========================================================================= */

/* --- Temel ve Menü Butonları --- */
.k-btn { width:42px; height:42px; flex-shrink:0; border-radius:50%; background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.8); display:flex; align-items:center; justify-content:center; color:var(--text-main); cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,.05); transition:all .3s; position:relative; box-sizing:border-box; }
.k-btn-with-icon svg { width: 20px; height: 20px; display: block; }
#settings-menu-btn svg.lucide-settings { stroke-width: 1.5px; stroke: currentColor; }

/* Profil / arkadaş kartı savaş özeti çubukları */
.prof-career-bar-track { height: 10px; border-radius: 999px; background: rgba(0,0,0,0.09); overflow: hidden; box-sizing: border-box; }
.prof-career-bar-fill { height: 100%; border-radius: 999px; width: 0%; min-width: 0; transition: width 0.38s ease; box-sizing: border-box; }
.prof-career-bar-total { background: linear-gradient(90deg, #007aff, #5ac8fa); }
.prof-career-bar-rate { background: linear-gradient(90deg, #34c759, #30d158); }
.prof-career-bar-wins { background: linear-gradient(90deg, #ffcc00, #ff9500); }
.prof-career-bar-losses { background: linear-gradient(90deg, #ff453a, #ff6961); }

.menu-btn { display:block; width:100%; padding:16px; margin:10px 0; cursor:pointer; border-radius:20px; border:1px solid rgba(0,0,0,.06); background:#e9e9ee; backdrop-filter:none; -webkit-backdrop-filter:none; color:var(--text-main); font-size:16px; font-weight:700; letter-spacing:.5px; transition:background .18s ease, transform .18s ease; box-sizing:border-box; box-shadow:0 4px 12px rgba(0,0,0,.04); white-space:normal; word-wrap:break-word; line-height:1.2; }
.menu-btn.primary { background:linear-gradient(135deg,var(--apple-blue),#005bb5); border:none; color:#fff; box-shadow:0 5px 14px rgba(0,122,255,.22); }
.menu-btn.outline { background:transparent; border:1px solid var(--apple-blue); color:var(--apple-blue); }
.menu-btn.disabled { opacity:.5; pointer-events:none; }

.action-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:15px; }
.action-btn { flex:1; padding:10px 4px; background:var(--card-bg); border-radius:16px; border:1px solid rgba(0,0,0,.06); font-size:11px; font-weight:700; color:var(--text-secondary); cursor:pointer; transition:background .18s ease, transform .18s ease; display:flex; flex-direction:column; align-items:center; gap:6px; box-shadow:0 3px 10px rgba(0,0,0,.025); white-space:normal; word-wrap:break-word; text-align:center; line-height:1.1; }
.action-btn > span:first-child { font-size:18px; }

.count-btn { width:54px; height:54px; border-radius:50%; border:2px solid var(--text-secondary); background:transparent; font-size:20px; font-weight:800; cursor:pointer; transition:all .2s cubic-bezier(.34,1.56,.64,1); color:var(--text-secondary); display:flex; align-items:center; justify-content:center; }
.count-btn.active { background:var(--text-main); color:var(--bg); border-color:var(--text-main); transform:scale(1.1); box-shadow:0 4px 15px rgba(0,0,0,.1); }

.btn-google { background: #fff; color: #000; border: none; padding: 14px; border-radius: 14px; width: 100%; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 6px 15px rgba(255,255,255,0.2); transition: transform 0.2s; }
.btn-google img { width: 20px; height: 20px; }

/* --- İkon & Özelleştirme Butonları --- */
.menu-icon-btn { background:#fff; border:1px solid #e5e5ea; border-radius:16px; width:48px; height:48px; cursor:pointer; transition:all .2s ease; color:var(--text-main); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,.06); }
.icon-grid-btn { font-size:24px; width:54px; height:54px; border-radius:18px; border:1px solid rgba(255,255,255,.6); background:rgba(255,255,255,.5); cursor:pointer; transition:all .3s cubic-bezier(.34,1.56,.64,1); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 15px rgba(0,0,0,.03); overflow: hidden; }
.icon-grid-btn.selected { background:#fff; border-color:var(--apple-blue); box-shadow:0 0 0 2px var(--apple-blue),0 8px 20px rgba(0,122,255,.2); }
.icon-grid-btn.disabled { opacity:.3; cursor:not-allowed; filter:grayscale(1); background:rgba(0,0,0,.05); }

/* --- Chat Butonları --- */
.chat-tab-btn { background: var(--apple-blue); color: #fff; border: none; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,122,255,0.3); transition: transform 0.2s; }
.inline-chat-btn { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02); white-space: nowrap; flex-shrink: 0; color: var(--text-main); }
.chat-balloon-panel .inline-chat-btn { width: 100% !important; height: 44px !important; font-size: 22px; margin: 0; }
.chat-balloon-panel .msg-list-container .inline-chat-btn { font-size: 13px !important; height: auto !important; padding: 12px !important; white-space: normal; text-align: left; justify-content: flex-start; }

/* Online masada hızlı sohbet: emoji ve mesajlar tahta genişliğine sığsın */
.game-chat-bottom-dock.chat-balloon-panel .game-chat-emoji-strip.emoji-grid-container .inline-chat-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
    font-size: 17px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 9px !important;
}
.game-chat-bottom-dock.chat-balloon-panel .game-chat-msg-strip.msg-list-container .inline-chat-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
    /* Kullanıcı isteği: mesajlar tek satıra sığsın. Sarma kapatıldı; taşan
       metin üç noktayla kısalır. Böylece her satır sabit yükseklikte kalır ve
       "en fazla 3 satır" tavanı her mesajda birebir tutar. */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;      /* ellipsis flex kutuda çalışmaz */
    text-align: left !important;
}

/* --- UI Araçları: Toggles, Badges & Dividers --- */
.toggle-switch { position:relative; width:44px; height:24px; -webkit-appearance:none; appearance:none; background:#e5e5ea; border-radius:12px; outline:0; cursor:pointer; transition:background .3s; margin:0; box-shadow:inset 0 2px 4px rgba(0,0,0,.05); }
.toggle-switch::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; background:#fff; border-radius:50%; box-shadow:0 2px 5px rgba(0,0,0,.2); transition:transform .3s cubic-bezier(.34,1.56,.64,1); }
.toggle-switch:checked { background: var(--apple-blue); }
.toggle-switch:checked::after { transform:translateX(20px); }

.id-badge { background:#e5e5ea; color:var(--text-secondary); padding:6px 16px; border-radius:20px; font-size:12px; font-weight:700; letter-spacing:.5px; margin-top:8px; border:1px solid #d1d1d6; font-family:monospace; }
.id-badge::after { content:'\2398'; margin-left:5px; font-size:13px; vertical-align:-1px; opacity:.6; }

.notification-badge { position:absolute; top:-2px; right:-2px; width:16px; height:16px; background:var(--red); color:#fff; border-radius:50%; border:2px solid #fff; font-size:9px; font-weight:bold; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 4px rgba(252,77,74,.4); animation:pulse-badge 2s infinite; }
@keyframes pulse-badge { 0% { transform:scale(1); box-shadow:0 0 0 0 rgba(252,77,74,.7); } 70% { transform:scale(1); box-shadow:0 0 0 6px rgba(252,77,74,0); } 100% { transform:scale(1); box-shadow:0 0 0 0 rgba(252,77,74,0); } }
@keyframes kzlPulseGreen { 0% { box-shadow:0 4px 14px rgba(16,185,129,.35); } 50% { box-shadow:0 4px 20px rgba(16,185,129,.55), 0 0 0 6px rgba(16,185,129,.15); } 100% { box-shadow:0 4px 14px rgba(16,185,129,.35); } }

.divider { height:1px; background:rgba(0,0,0,.05); margin:25px 0; position:relative; }
.divider::after { content:attr(data-label); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(255,255,255,.8); padding:0 10px; font-size:12px; color:var(--text-secondary); font-weight:600; border-radius:10px; }

/* --- Özel İçerik Kartları & Satın Alma --- */
.setup-card { border:2px solid; border-radius:20px; padding:12px 15px; display:flex; align-items:center; gap:12px; background:var(--card-bg); backdrop-filter:none; -webkit-backdrop-filter:none; transition:background .18s ease, transform .18s ease; position:relative; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.03); }
.setup-card::after { content:''; position:absolute; inset:0; background:currentColor; opacity:.05; z-index:0; pointer-events:none; }
.setup-card > * { position:relative; z-index:1; }
.setup-card.disabled { opacity:.4; filter:grayscale(1); pointer-events:none; border-color:var(--board-lines)!important; color:var(--text-secondary)!important; background:var(--bg); }
.setup-card.disabled::after { display:none; }

.price-tag { display:flex; align-items:center; justify-content:center; gap:4px; background:rgba(0,0,0,.72); color:#fff; padding:4px 8px; border-radius:12px; font-size:11px; font-weight:700; box-shadow:0 2px 6px rgba(0,0,0,.22); pointer-events:auto; cursor:pointer; transition:transform 0.16s, background 0.16s; position:absolute; top:4px; right:4px; z-index:10; backdrop-filter:none; -webkit-backdrop-filter:none; }
.price-tag:hover { transform:scale(1.1); background:var(--apple-blue); }
.price-tag svg { width:12px; height:12px; color:#48dbfb; }

.floating-coin { position:fixed; color:var(--apple-blue); font-weight:800; font-size:18px; display:flex; align-items:center; gap:4px; animation:floatUp 1.2s cubic-bezier(.34,1.56,.64,1) forwards; z-index:5000; text-shadow:0 2px 5px rgba(0,0,0,.2); pointer-events:none; will-change: transform, opacity; }
@keyframes floatUp { 0% { transform:translateY(0) scale(.5); opacity:0; } 20% { transform:translateY(-10px) scale(1.2); opacity:1; } 100% { transform:translateY(-50px) scale(1); opacity:0; } }

/* --- VIP Çerçeveler, Streak Ateşi & Özel Efektler --- */
.vip-border-gold { border: 4px solid #facb15 !important; box-shadow: 0 0 15px #facb15, inset 0 0 15px rgba(250,203,21,0.5) !important; }
.vip-border-diamond { border: 4px solid #48dbfb !important; box-shadow: 0 0 25px #48dbfb, inset 0 0 20px rgba(72,219,251,0.6) !important; animation: diamondShine 3s linear infinite; }
@keyframes diamondShine { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

.win-streak-fire { position: relative; box-shadow: 0 0 20px #ff3b30, 0 0 40px #ff9500, inset 0 0 15px #ff3b30 !important; border-color: #ff9500 !important; animation: firePulse 1s infinite alternate; }

.grandmaster-glow {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.grandmaster-glow::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: conic-gradient(from 0deg, #ff00cc, #333399, #00ffcc, #ff00cc);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: esotericSpin 4s linear infinite;
    filter: blur(6px);
    opacity: 0.9;
    /* Merkez şeffaf kalsın: dönen ışık fotoğrafın üstüne binmesin. */
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 74%);
    mask: radial-gradient(circle, transparent 58%, #000 74%);
}
@keyframes esotericSpin { 100% { transform: rotate(360deg); } }

/* --- Görev Kartları (Quests) --- */
.quest-card { background: var(--card-bg); border: 1px solid rgba(0,0,0,0.05); padding: 15px; border-radius: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.2s; }
.quest-card:hover { transform: scale(1.02); }
body.dark-theme .quest-card { border-color: rgba(255,255,255,0.05); }

.quest-progress-bar { width: 100%; height: 8px; background: rgba(0,0,0,0.1); border-radius: 4px; margin-top: 8px; overflow: hidden; position: relative; }
.quest-progress-fill { height: 100%; background: var(--apple-blue); border-radius: 4px; transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1); }

.quest-btn { background: var(--apple-blue); color: #fff; border: none; padding: 8px 16px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }
.quest-btn:disabled { background: var(--green); box-shadow: 0 4px 10px rgba(52,199,89,0.3); cursor: default; }

/* Görev Menüsü Sekme Yapısı */
.quest-tabs { display:flex; border-bottom:1px solid rgba(0,0,0,0.1); width:100%; margin-bottom:15px; }
body.dark-theme .quest-tabs { border-color: rgba(255,255,255,0.1); }
.quest-tab-btn { flex:1 0 auto; background:transparent; border:none; color:var(--text-muted); font-weight:bold; padding:15px 5px; font-size:12px; border-bottom:2px solid transparent; cursor:pointer; transition:all 0.3s; min-width:max-content; white-space:nowrap; }
.quest-tab-btn.active { color:var(--apple-blue); border-bottom-color:var(--apple-blue); }

/* --- Hover ve Active Efektleri (Masaüstü/Mobil) --- */
@media (hover: hover) {
    .k-btn:hover { transform:scale(1.1); background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.1); border-color:var(--apple-blue); color:var(--apple-blue) }
    .action-btn:hover { background:rgba(255,255,255,.9); color:var(--apple-blue); transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.08) }
    .menu-btn:hover { transform:translateY(-2px); box-shadow:0 10px 25px rgba(0,0,0,.1) }
    .menu-icon-btn:hover { background:#f2f2f7; transform:scale(.95); box-shadow:0 2px 6px rgba(0,0,0,.04) }
    .icon-grid-btn:hover:not(.disabled) { transform:scale(1.1); box-shadow:0 8px 20px rgba(0,0,0,.08); background:#fff }
    .btn-google:hover { transform: scale(1.02); }
    .chat-tab-btn:hover { transform: scale(1.05); }
    .inline-chat-btn:hover { transform: scale(1.05); background: #fff; border-color: var(--apple-blue); box-shadow: 0 4px 10px rgba(0, 122, 255, 0.15); }
    
    /* Özel Uyarı (Modal) Butonları Hover Efektleri */
    .custom-modal-btn.cancel:hover { background: rgba(0,0,0,.1); }
    .custom-modal-btn.confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,122,255,.4); }
}

/* Oyun İçi Hızlı Sohbet Butonu Tıklama (Basılı Tutma) Efekti */
.inline-chat-btn:active { transform: scale(0.95); }

/* MESAJ LİSTESİ: büyüme efekti YOK.
   İki sorun birden çıkarıyordu:
   1) `transform: scale(1.05)` tam genişlikteki bir satırı kapsayıcıdan taşırıyor
      ve listede yatay kaydırma çubuğu doğuruyordu (metinler kısa olmasına
      rağmen). Dönüşümler kaydırılabilir taşma alanına dahildir.
   2) Dokunmatik cihazda `:hover` dokunuştan sonra ÜSTTE KALIYOR; mavi kenarlık
      satırın altında kalıcı bir çizgi gibi görünüyordu.
   Emoji şeridindeki kareler küçük olduğu için orada efekt korunuyor. */
.game-chat-msg-strip.msg-list-container .inline-chat-btn:hover,
.game-chat-msg-strip.msg-list-container .inline-chat-btn:active,
.game-chat-msg-strip.msg-list-container .inline-chat-btn:focus,
.game-chat-msg-strip.msg-list-container .inline-chat-btn:focus-visible {
    transform: none !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    outline: none !important;
}
/* Geri bildirim tamamen kaybolmasın: basılıyken hafif zemin değişimi. */
.game-chat-msg-strip.msg-list-container .inline-chat-btn:active {
    background: rgba(0, 122, 255, 0.06) !important;
}

@media(max-width:480px){
    .menu-icon-btn { width:40px; height:40px; border-radius:12px; }
    .menu-icon-btn svg { width:20px; height:20px; }
    .menu-btn { padding:14px; font-size:15px; }
}

@media(max-width: 600px) {
    .chat-tab-btn { padding: 6px 8px; font-size: 11px; }
    .top-bar-controls .menu-icon-btn { width: 36px; height: 36px; min-height: 36px; border-radius: 10px; }
    .top-bar-controls .menu-icon-btn svg { width: 18px; height: 18px; }
}

@media(max-width: 360px) {
    .top-bar-controls .menu-icon-btn { width: 30px; height: 30px; min-height: 30px; border-radius: 8px; }
    .top-bar-controls .menu-icon-btn svg { width: 15px; height: 15px; }
}

/* --- Oyun Künyesi --- */
.credits { margin-top: 25px; font-size: 11px; color: #a1a1a6; line-height: 1.5; font-weight: 500; }

/* --- Modern Yükleme Efekti (Shimmer Skeleton) --- */
.shimmer-loader {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmerWave 1.5s infinite linear;
    border: 1px solid rgba(255,255,255,0.05);
}
@keyframes shimmerWave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.pulse-icon { animation: pulseScale 1s infinite alternate ease-in-out; }
@keyframes pulseScale {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}
/* --- Pine Cone Ludo Themed Discover Card --- */
.discover-card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; position: relative; overflow: hidden; border-radius: 16px; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.06); background: #e9e9ee; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; margin-bottom: 25px; gap: 12px; }
body.dark-theme .discover-card { background: rgba(44,44,46,0.7); border-color: #38383a; }
.discover-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); background: #f2f2f7; }
body.dark-theme .discover-card:hover { background: rgba(55,55,58,0.8); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.discover-head { display: none; }

.discover-body { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.discover-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; object-fit: cover; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
body.dark-theme .discover-icon { border-color: rgba(255,255,255,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.discover-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.discover-info h3 { margin: 0 0 2px; color: var(--text-main); font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.discover-info h3 .verified { color: var(--apple-blue); width: 14px; height: 14px; }
.discover-info p { margin: 0; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; max-width: 100%; }

.discover-cta { align-self: center; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--apple-blue), #005bb5); color: #fff; font-weight: 800; font-size: 0.7rem; letter-spacing: .3px; line-height: 1.2; white-space: nowrap; transition: all .2s ease; box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3); border: 1px solid rgba(255,255,255,0.1); }
.discover-card:hover .discover-cta { filter: brightness(1.06); transform: scale(1.03); box-shadow: 0 6px 14px rgba(0, 122, 255, 0.4); }

@media (max-width:600px) {
    .discover-card { padding: 8px 10px; gap: 8px; border-radius: 14px; margin-bottom: 0; }
    .discover-icon { width: 40px; height: 40px; border-radius: 10px; }
    .discover-info h3 { font-size: 0.95rem; }
    .discover-info h3 .verified { width: 14px; height: 14px; }
    .discover-info p { font-size: 0.68rem; }
    .discover-cta { padding: 5px 10px; font-size: 0.7rem; }
}

/* Keşfet kaydırmalı panel (carousel) */
.discover-carousel { margin-top: 20px; }
.discover-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}
.discover-track::-webkit-scrollbar { display: none; }
.discover-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 4px 2px 2px;
    box-sizing: border-box;
}
.discover-slide .discover-card { margin-bottom: 0; width: 100%; box-sizing: border-box; }

.discover-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}
.discover-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
body.dark-theme .discover-dot { background: rgba(255,255,255,0.22); }
.discover-dot.active {
    width: 20px;
    background: var(--apple-blue);
}

/* Sekmelerin (Daily/Weekly) Clan (Monthly) yüzünden daralmasını önle */
.profile-tabs-strip {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}
.profile-tabs-strip::-webkit-scrollbar { display: none; }
.profile-tabs-strip button {
    flex: 1 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
}
.profile-tabs-strip::after {
    content: '';
    flex: 0 0 4px;
}


/* =========================================================
   ÇEVRİMİÇİ (RASTGELE / MİNİ) — online/random_online.js runtime DOM'u
   ve menus/main_menu.js içindeki #mini-online-queue-menu için stiller.
   _ONLINE_DENETIM_LOBI.md §1.2'de "CSS yok" olarak işaretlenen sınıflar.
   ========================================================= */

/* Lobi bekleme metinlerinin kullandığı düz "pulse" (pulse-badge/pulseScale'den ayrı) */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .45; } 100% { opacity: 1; } }

/* --- Derece listesi (tier grid) --- */
.random-online-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    align-content: start;
}
.random-online-tier-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    text-align: left;
    font: inherit;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--line, rgba(0,0,0,0.08));
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.random-online-tier-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.10); border-color: rgba(0,122,255,0.35); }
.random-online-tier-cell:active { transform: scale(.98); }
.random-online-tier-cell--empty { opacity: .62; box-shadow: none; }
.random-online-tier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}
.random-online-tier-badge-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}
.random-online-tier-num { font-size: 20px; font-weight: 900; line-height: 1; color: var(--apple-blue); }
.random-online-tier-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
.random-online-tier-open-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(52,199,89,0.14);
    color: #1e9c4a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.random-online-tier-open-badge--zero { background: rgba(0,0,0,0.06); color: var(--text-secondary); }
.random-online-tier-open-num { display: block; }
.random-online-tier-open-loading { display: block; animation: pulse 1.4s ease-in-out infinite; }
.random-online-tier-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.random-online-tier-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.random-online-tier-masa-line { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.random-online-tier-foot { display: flex; align-items: center; justify-content: flex-start; }
.random-online-tier-bet {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,122,255,0.10);
    color: var(--apple-blue);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

/* --- Açık masa listesi (room grid) --- */
.random-online-room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}
.random-online-room-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 132px;
    padding: 12px;
    text-align: left;
    font: inherit;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--line, rgba(0,0,0,0.08));
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.random-online-room-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.10); }
.random-online-room-cell:active { transform: scale(.98); }
.random-online-room-grid-empty {
    grid-column: 1 / -1;
    padding: 18px 14px;
    border-radius: 14px;
    background: rgba(0,0,0,0.03);
    border: 1px dashed var(--line, rgba(0,0,0,0.10));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}
.random-online-room-grid-empty--error {
    background: rgba(252,77,74,0.07);
    border-color: rgba(252,77,74,0.30);
    color: var(--red);
}

/* --- Masa kartı iç düzeni --- */
.ro-room-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ro-room-host {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ro-room-mid { min-width: 0; }
.ro-room-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.ro-room-stats-grid > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ro-tag-players { background: rgba(0,0,0,0.05); color: var(--text-secondary); }
.ro-tag-bet { background: rgba(0,122,255,0.10); color: var(--apple-blue); }
.ro-tag-mode { background: rgba(175,82,222,0.12); color: #8e44d0; }
.ro-tag-blockade { background: rgba(255,159,10,0.14); color: #c47600; }
.ro-room-foot { display: flex; }
.ro-room-cta {
    flex: 1;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--apple-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0,122,255,0.25);
}

/* --- Lobi filtre çubuğu ve sayfa içi seçim butonları --- */
.ro-lobby-filter-bar { box-sizing: border-box; }
.ro-filter-btn,
.ro-seat-btn,
.ro-mode-btn {
    font: inherit;
    letter-spacing: -0.2px;
    white-space: nowrap;
    line-height: 1;
}
.ro-filter-btn:active,
.ro-seat-btn:active,
.ro-mode-btn:active { transform: scale(.96); }

/* --- Mini Online kuyruk ekranı --- */
.mini-online-stat-grid { gap: 8px; margin-bottom: 16px; }
.mini-online-stat-grid > div {
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
}
.mini-online-stat-grid > div > div:first-child { font-size: 8px; letter-spacing: .05em; }
.mini-online-stat-grid > div > div:last-child { font-size: 13px; font-weight: 900; }
.mini-online-queue-panel {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}
.mini-online-queue-panel > div:first-child { font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.mini-online-queue-panel #mini-online-queue-count { font-size: 26px; line-height: 1.1; margin: 4px 0 6px; }

/* --- Koyu tema uyumları --- */
body.dark-theme .random-online-tier-cell,
body.dark-theme .random-online-room-cell { border-color: rgba(255,255,255,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
body.dark-theme .random-online-tier-cell:hover,
body.dark-theme .random-online-room-cell:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.45); }
body.dark-theme .random-online-tier-open-badge--zero,
body.dark-theme .ro-tag-players { background: rgba(255,255,255,0.08); }
body.dark-theme .random-online-room-grid-empty { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

/* =========================================================================
   ORTAK KAPATMA DÜĞMESİ (.kzl-close-x)
   =========================================================================
   Oyundaki bütün sayfa / menü / açılır pencere kapatma düğmeleri BU tek
   sınıfı kullanır: "Kapat", "Bitti", "Tamam", "Anladım" gibi metin
   düğmelerinin yerini alır. Boyut, yuvarlaklık ve konum her sayfada aynıdır.

   • Saydamlık YALNIZ arka plan renginde (rgba) — düğmenin tamamına `opacity`
     verilmez; böylece X simgesi net kalır.
   • Görsel kutu 34px, dokunma alanı ::after ile 44px'e genişletilir
     (mobilde rahat dokunma; görsel büyümez, komşu içeriği itmez).
   ========================================================================= */
.kzl-close-x {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 122, 255, .5);   /* %50 saydam mavi — YALNIZ zemin */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: background .18s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
}

/* X simgesi: zemin saydam olsa da simge tam opak. */
.kzl-close-x svg {
    width: 17px;
    height: 17px;
    display: block;
    pointer-events: none;
}

/* Dokunma alanı 44×44 — görsel kutu büyümeden. */
.kzl-close-x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.kzl-close-x:active { transform: scale(.92); }

@media (hover: hover) {
    .kzl-close-x:hover { background: rgba(0, 122, 255, .78); }
}

/* Sağ üst köşeye mutlak konumlanan sürüm (başlık çubuğu olmayan kutular). */
.kzl-close-x.kzl-close-x--corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
}

/* Başlığın ORTALANDIĞI satırlarda: düğme sağ uçta, başlık ortada kalır. */
.kzl-close-x.kzl-close-x--inrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
}
.kzl-close-x.kzl-close-x--inrow:active { transform: translateY(-50%) scale(.92); }

/* O10 — geçmiş detayındaki sıralama açıklaması (2.-4. sıra nasıl hesaplandı) */
.v-hz-rank-note {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    opacity: .62;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

/* Madde 7 — oda kartında eşleştirme uyum rozeti */
.ro-tag-match {
    font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 5px; border-radius: 6px;
    background: rgba(0,122,255,.12); color: var(--apple-blue);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.ro-tag-match--best { background: rgba(52,199,89,.16); color: #248a3d; }
