/* ==========================================================================
   okey101vip — Responsive katman (en son yüklenir)
   Neden: arena.css'teki ≤1400px kuralı, kendinden önceki ≤760px/≤1100px
   kurallarını eziyordu; ayrıca .landing 100vh'ye kilitliydi. Bu dosya
   tablet/mobilde düzeni tek yerden yönetir. Masaüstü (>1100px) etkilenmez.
   ========================================================================== */
:root{
  --ok101-gold:#d8b25a; --ok101-gold-soft:rgba(216,178,90,.35);
  --ok101-ink:#0b0b0d; --ok101-surface:#141317; --ok101-radius:14px;
  --ok101-dock-h:96px; --ok101-gap:12px;
}

/* Bot oyuncular açıkça etiketlenir (sahte çevrimiçi izlenimi verilmez) */
.bot-tag{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid var(--ok101-gold-soft);border-radius:999px;font:700 9px/1.4 Inter,system-ui,sans-serif;letter-spacing:.08em;color:var(--ok101-gold);font-style:normal;vertical-align:middle}

@media (max-width:1100px){
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board){height:auto !important;min-height:100%;overflow-x:hidden !important;overflow-y:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .app-shell{height:auto !important;min-height:100vh;overflow:visible !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .landing{display:block !important;height:auto !important;overflow:visible !important;padding:0 !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .lobby-v12{display:flex !important;flex-direction:column !important;width:100% !important;max-width:none !important;height:auto !important;min-height:0 !important;overflow:visible !important;margin:0 !important;padding:10px 10px calc(var(--ok101-dock-h) + 24px) !important;box-sizing:border-box !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard{display:grid !important;grid-template-columns:minmax(0,1fr) !important;grid-auto-rows:auto !important;gap:var(--ok101-gap) !important;height:auto !important;overflow:visible !important;flex:none !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > *{grid-column:1 / -1 !important;grid-row:auto !important;min-width:0 !important;height:auto !important;max-height:none !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .main-game-cards{order:-1}
  /* Tablet: küçük kartlar yan yana */
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-events,
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-stack{display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;gap:var(--ok101-gap) !important;height:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-events > *,
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-stack > *{flex:1 1 220px !important;width:auto !important;min-width:0 !important;height:auto !important;max-height:none !important;overflow:visible !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .ref-events .league-list{height:auto !important;max-height:240px !important;overflow:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard > .v12-online-panel{max-height:560px !important;overflow:auto !important}
  /* Hesabım/Çıkış: 0 yükseklikli üst barda ekran dışına taşıyordu */
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .topbar{height:auto !important;min-height:0 !important;display:flex !important;justify-content:flex-end !important;align-items:center !important;padding:10px 12px 0 !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .topbar .top-actions{position:static !important;transform:none !important;margin:0 !important;display:flex !important;gap:8px !important}
  /* Üst bar: taşmasın, satıra kırılsın */
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-header{display:flex !important;flex-wrap:wrap !important;align-items:center !important;justify-content:space-between !important;gap:8px !important;height:auto !important;min-height:0 !important;padding:8px 4px 12px !important;position:relative !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-header > *{position:static !important;transform:none !important;margin:0 !important;max-width:100% !important;inset:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-header .league-dock{order:3;flex:1 1 100% !important;width:100% !important;overflow-x:auto !important;scrollbar-width:none}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-header .v12-status-strip{flex-wrap:wrap !important;gap:6px !important;width:auto !important}
}

@media (max-width:760px){
  :root{--ok101-gap:10px}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard{grid-template-columns:minmax(0,1fr) !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-events{flex-direction:column !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-events > *{flex:none !important;width:100% !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .main-game-cards{grid-template-columns:minmax(0,1fr) !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-stack{flex-direction:column !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) .v12-dashboard.game-main > .ref-stack > *{flex:none !important;width:100% !important}
  /* Eşleşme kartı: bahis seçici ile EŞLEŞ butonu alt alta */
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa{height:auto !important;min-height:0 !important;padding-bottom:18px !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .seat-ring{position:relative !important;inset:auto !important;width:calc(100% - 28px) !important;margin:6px auto 4px !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-dock{grid-template-columns:minmax(0,1fr) !important;gap:10px !important;width:calc(100% - 28px) !important;margin:0 auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-side,
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-pad{width:100% !important;min-width:0 !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-pad{flex-direction:column !important;align-items:stretch !important;gap:8px !important;height:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-stakes{grid-template-columns:repeat(6,minmax(0,1fr)) !important;width:100% !important;height:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-stakes > *{min-width:0 !important;width:auto !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-modes,
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-links{width:100% !important;height:auto !important;justify-content:center !important;gap:12px !important;flex-wrap:wrap !important}
  html body:has(.lobby-v12:not(.hidden)):has(.ref-board) #createRoomBtn.ref-masa .match-hero{width:100% !important;max-width:320px !important;margin:0 auto !important}
  /* Sabit alt bar: yalnız profil + radyo, sıkışmadan */
  #ok101-issues{top:auto !important;bottom:calc(var(--ok101-dock-h) + 14px) !important;left:10px !important}
}
