/*
 * Istaka 89 — Play89 Deluxe HD Tasarım Sistemi
 * Petrol mavisi stüdyo atmosferi, 3B metalik krom paneller, parlak küreler ve zümrüt çuha.
 */
:root {
  --petrol-950: #021017;
  --petrol-900: #051c26;
  --petrol-800: #092c3b;
  --petrol-700: #0f4257;
  --petrol-600: #175c77;
  --cyan-500: #22acc4;
  --cyan-400: #45cbe0;
  --felt-700: #166b29;
  --felt-500: #28a443;
  --lime: #51cf66;
  --amber: #ff922b;
  --gold: #f5b942;
  --ivory: #f4f7f8;
  --ivory-dim: #9ec0ce;
  --red: #ff6b6b;
  --display: "Barlow Semi Condensed", "Zilla Slab", sans-serif;
  --logo-font: "Orbitron", "Barlow Semi Condensed", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", Tahoma, sans-serif;
  --num: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html, body {
  height: 100%;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  background: radial-gradient(ellipse 95% 75% at 50% 25%, #0c445a 0%, #051e29 60%, #020e14 100%) fixed;
  color: var(--ivory);
  font: 400 15px/1.4 var(--body);
  -webkit-text-size-adjust: 100%;
}
.view {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.hidden { display: none !important; }
.num, .rt, .pos { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--ivory-dim); font-size: 13px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

/* ==================== PLAY89 PENCERE ÇERÇEVESİ & BAŞLIK ÇUBUĞU ==================== */
.p89-window {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  background: linear-gradient(180deg, #082836 0%, #041821 100%);
  border: 2px solid #2b677e;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.p89-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #1f6582 0%, #0f3f54 52%, #082836 100%);
  border-bottom: 1px solid #3ca1c2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.p89-titlebar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p89-win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #74f2ce, #129672);
  box-shadow: 0 0 6px #38d9a9;
}
.p89-win-sub { color: #b7e2f0; font-weight: 500; }
.p89-titlebar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }

.p89-chrome-btn {
  background: linear-gradient(180deg, #3c758c 0%, #194254 50%, #0d2834 100%);
  border: 1px solid #5bb0cc;
  color: #eef9fc;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.p89-chrome-btn:hover {
  background: linear-gradient(180deg, #4b8ca6 0%, #21556b 50%, #123646 100%);
  border-color: #82d1eb;
}

/* ==================== PLAY89 ÜST BANNER & 3B LOGO ==================== */
.p89-banner {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 275px;
  align-items: stretch;
  min-height: 106px;
  background:
    radial-gradient(ellipse 65% 90% at 35% 50%, rgba(56, 196, 86, 0.92), rgba(20, 108, 42, 0.96) 65%, #0b4019 100%);
  border-bottom: 2px solid #2b6d80;
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.auth-banner {
  grid-template-columns: auto 1fr;
  padding: 12px 24px;
  gap: 28px;
  align-items: center;
}
.p89-banner-left {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(8, 24, 14, 0.65) 0%, rgba(8, 24, 14, 0) 100%);
}
.p89-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.p89-logo-word {
  font-family: var(--logo-font);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f5e6c4 42%, #c99e4c 55%, #fff5d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #1b0e05) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.85));
}
.p89-logo-balls {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.p89-logo-ball {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
}
.p89-logo-ball + .p89-logo-ball {
  margin-left: -10px;
  margin-top: -6px;
}

.p89-banner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  gap: 5px;
  position: relative;
}
.p89-promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(6, 22, 16, 0.88) 0%, rgba(2, 10, 8, 0.94) 100%);
  border: 1.5px solid rgba(190, 235, 200, 0.45);
  border-radius: 10px;
  padding: 7px 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s, border-color 0.15s;
}
.p89-promo-card:hover {
  transform: translateY(-1px);
  border-color: #74f2ce;
}
.p89-promo-balls {
  display: flex;
  align-items: center;
}
.p89-promo-balls img {
  width: 30px;
  height: 30px;
  margin-right: -7px;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.7));
}
.p89-promo-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-left: 8px;
}
.p89-promo-text strong, .p89-promo-box strong {
  color: #74f2ce;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px #000;
}
.p89-promo-text span, .p89-promo-box span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}
.p89-promo-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p89-live-counter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: #ffffff;
  text-shadow: 0 1px 4px #000, 0 0 8px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
}

/* Sağ Üst: Saat + En İyi 10 Oyuncu (10 Sieger) */
.p89-banner-right {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(9, 48, 58, 0.92) 0%, rgba(7, 32, 40, 0.95) 100%);
  border-left: 2px solid #358399;
}
.p89-clock-bar {
  background: linear-gradient(180deg, #2ca4bf 0%, #146a80 100%);
  padding: 3px 10px;
  text-align: right;
  font-family: var(--num);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid #57c7e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.p89-top10-box {
  padding: 4px 10px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p89-top10-title {
  text-align: center;
  color: #69db7c;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px #000;
}
.p89-top10-list {
  max-height: 64px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.35;
}
.p89-top10-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 1px 2px;
}
.p89-top10-row .t-flag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #e3fafc;
  padding: 0 4px;
  border-radius: 2px;
  min-width: 22px;
  text-align: center;
}
.p89-top10-row .t-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}
.p89-top10-row .t-rt {
  color: #69db7c;
  font-family: var(--num);
  font-weight: 700;
}

/* ==================== 3B PARLAK PUAN KÜRELERİ (RATING ORBS) ==================== */
.orb {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), inset 0 -2px 3px rgba(0, 0, 0, 0.5);
}
.orb-red    { background: radial-gradient(circle at 35% 30%, #ff9999, #e01e1e 60%, #6e0808); }
.orb-orange { background: radial-gradient(circle at 35% 30%, #ffd8a8, #f76707 60%, #7c2d04); }
.orb-purple { background: radial-gradient(circle at 35% 30%, #eebefa, #9c36b5 60%, #491257); }
.orb-blue   { background: radial-gradient(circle at 35% 30%, #a5d8ff, #1c7ed6 60%, #0b335c); }
.orb-green  { background: radial-gradient(circle at 35% 30%, #b2f2bb, #2f9e44 60%, #11421b); }
.orb-grey   { background: radial-gradient(circle at 35% 30%, #ffffff, #adb5bd 60%, #495057); }

/* ==================== GENEL DÜĞMELER & FORMLAR ==================== */
.btn {
  border: 1px solid rgba(130, 210, 235, 0.4);
  background: linear-gradient(180deg, #27586b 0%, #133340 55%, #0b2029 100%);
  padding: 9px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #eef9fc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 5px rgba(0, 0, 0, 0.35);
}
.btn:hover {
  background: linear-gradient(180deg, #326e85 0%, #194252 55%, #0f2b36 100%);
  border-color: #74d2ed;
}
.btn.primary {
  background: linear-gradient(180deg, #2cb8cf 0%, #12788a 52%, #0a4d59 100%);
  border-color: #7cebf7;
  color: #ffffff;
}
.btn.primary:hover {
  background: linear-gradient(180deg, #3bcce3 0%, #168ca1 52%, #0e5d6b 100%);
}
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link {
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  color: var(--ivory-dim); text-decoration: underline; font-size: 14px;
}
.link:hover { color: var(--ivory); }
input[type=text], input[type=password], select {
  width: 100%; padding: 9px 12px; border-radius: 6px;
  background: #04151d; border: 1px solid #2d6b82; color: #fff;
}
select option { background: #07222e; color: var(--ivory); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(130, 210, 235, 0.25); }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 7px 12px; cursor: pointer; color: var(--ivory-dim); font-weight: 600; margin-bottom: -1px;
}
.tab.on { color: #ffffff; border-bottom-color: var(--cyan-400); }

/* ==================== GİRİŞ EKRANI ==================== */
.auth-window { margin-top: 18px; margin-bottom: 32px; max-width: 1140px; }
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 28px;
  padding: 24px;
  align-items: start;
  max-width: 100%;
}
.auth-hero, .auth-side-col {
  min-width: 0;
  max-width: 100%;
}
.hero-frame {
  background: radial-gradient(ellipse at 50% 50%, #0d4b63 0%, #041b24 100%);
  border: 2px solid #2b677e;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  overflow: hidden;
}
.auth-hero canvas {
  display: block;
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65));
}
.lead {
  font-family: var(--display); font-weight: 600; font-size: 20px;
  color: #cbeaf5; margin: 14px 0 0;
}
.auth-form {
  background: linear-gradient(180deg, #0b3142 0%, #061d28 100%);
  border: 1.5px solid #2b6d85;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}
.auth-form label { display: block; font-size: 13.5px; color: var(--ivory-dim); margin: 12px 0 4px; font-weight: 500; }
.auth-form .rule { font-size: 12.5px; color: var(--ivory-dim); margin: 8px 0 0; }
.auth-form .err { color: var(--red); font-size: 13.5px; min-height: 20px; margin: 8px 0 6px; font-weight: 500; }
.auth-form .alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.auth-form .muted { margin: 12px 0 0; }

/* ==================== PLAY89 SALON (LOBİ) DÜZENİ ==================== */
.lobby-window { margin-top: 8px; margin-bottom: 16px; }
.p89-lobby-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 8px;
  padding: 8px 8px 6px;
  background: linear-gradient(180deg, #082b3a 0%, #051b24 100%);
  max-width: 100%;
}
.p89-hall {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: #06212c;
  border: 2px solid #2d6f85;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 1. Katman Sekmeler (Online-Tabellen Regulär | Sit and Go | Turniere) */
.p89-tier1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px 6px 0;
  background: linear-gradient(180deg, #1b5266 0%, #0b2a36 100%);
}
.p89-t1-tab {
  background: linear-gradient(180deg, #265161 0%, #102a36 52%, #071921 100%);
  border: 1px solid #458299;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  padding: 7px 10px;
  color: #b8dce8;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.p89-t1-tab:hover { color: #fff; border-color: #6bc4e0; }
.p89-t1-tab.on {
  background: linear-gradient(180deg, #279db3 0%, #115e70 50%, #0a3c49 100%);
  border-color: #7ee7fa;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 10px rgba(34, 184, 207, 0.35);
}

/* 2. Katman Filtre Çubuğu (Alle | Acht-Ball | Neun-Ball + Üben) */
.p89-tier2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #125466 0%, #0b3745 100%);
  border-top: 1px solid #4cc3de;
  border-bottom: 1px solid #06212b;
}
.p89-filter-group, .p89-tier2-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.p89-t2-tab, .p89-t2-btn {
  background: linear-gradient(180deg, #216375 0%, #0e3845 55%, #08252e 100%);
  border: 1px solid #4ba3bd;
  border-radius: 5px;
  padding: 4px 14px;
  color: #d8f3fa;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
}
.p89-t2-tab:hover, .p89-t2-btn:hover {
  border-color: #8ce6fc;
  color: #fff;
}
.p89-t2-tab.on {
  background: linear-gradient(180deg, #38c2d9 0%, #167a8f 55%, #0d4f5e 100%);
  border-color: #a5f3ff;
  color: #fff;
}
.p89-t2-btn.practice-pill {
  background: linear-gradient(180deg, #2f9e5b 0%, #156634 55%, #0c4220 100%);
  border-color: #74f29c;
  color: #fff;
}

/* 3. Katman Salon Sekmeleri (Raum 1 .. Raum 5) */
.p89-tier3 {
  display: flex;
  align-items: stretch;
  background: #07222c;
  padding: 4px 6px 0;
  gap: 3px;
  border-bottom: 2px solid #359bb5;
}
.p89-room-nav {
  background: linear-gradient(180deg, #2c5563 0%, #132b33 100%);
  border: 1px solid #4c8699;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: #dff6fc;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
}
.p89-room-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.p89-room-tab {
  background: linear-gradient(180deg, #23748a 0%, #124959 100%);
  border: 1px solid #4ba8c2;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  padding: 4px 8px;
  color: #d0f0f7;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.p89-room-tab.on {
  background: linear-gradient(180deg, #4ad4eb 0%, #1b8ca3 100%);
  border-color: #b0f6ff;
  color: #03222b;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ==================== PLAY89 YÜKSEK KONTRASTLI MASA LİSTESİ (DATA GRID) ==================== */
.p89-grid-wrap {
  background: #e9eff2;
  color: #0d222b;
  display: flex;
  flex-direction: column;
  height: 365px;
  border-bottom: 2px solid #245b6e;
}
.p89-grid-head {
  display: grid;
  grid-template-columns: 76px minmax(120px, 1.25fr) minmax(120px, 1.25fr) 58px minmax(92px, 0.95fr) 52px 72px 68px;
  align-items: center;
  background: linear-gradient(180deg, #eef4f6 0%, #c1d1d8 50%, #9ab0ba 100%);
  border-bottom: 1px solid #6b8591;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  color: #0c232e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.p89-grid-head > span {
  padding: 5px 7px;
  border-right: 1px solid rgba(15, 45, 60, 0.22);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p89-grid-head > span:last-child { border-right: 0; }
.p89-grid-body {
  flex: 1;
  overflow-y: auto;
  background: #eef3f5;
}
.p89-grid-row {
  display: grid;
  grid-template-columns: 76px minmax(120px, 1.25fr) minmax(120px, 1.25fr) 58px minmax(92px, 0.95fr) 52px 72px 68px;
  align-items: center;
  min-height: 29px;
  padding: 2px 0;
  border-bottom: 1px solid #d5e0e6;
  font-size: 14px;
  color: #0f2530;
  background: #f5f8fa;
}
.p89-grid-row:nth-child(even) { background: #e6eff2; }
.p89-grid-row:hover { background: #d4e9f2; }
.p89-grid-row > div {
  padding: 2px 6px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.p89-grid-row .c-act,
.p89-grid-row .c-ico,
.p89-grid-row .c-stk,
.p89-grid-row .c-len,
.p89-grid-row .c-spd,
.p89-grid-row .c-scr {
  justify-content: center;
  text-align: center;
}
.p89-grid-row .c-p1, .p89-grid-row .c-p2 {
  gap: 6px;
  font-weight: 600;
}
.p89-grid-row .c-p2.join-cell { justify-content: center; }
.p89-grid-row .p-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0a202b;
  cursor: pointer;
}
.p89-grid-row .p-name:hover { text-decoration: underline; color: #0b5d7a; }
.p89-grid-row .c-ico { gap: 3px; }
.p89-grid-row .c-ico img { width: 18px; height: 18px; display: block; }
.p89-smiley-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3bf, #fcc419 70%, #d9820f);
  color: #2b1700;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Play89 Yeşil "Zusehen / Watch / İzle" ve "Mitspielen / Join / Katıl" Düğmeleri */
.p89-row-btn {
  background: linear-gradient(180deg, #2f9e66 0%, #196b41 55%, #0e4729 100%);
  border: 1px solid #0d4226;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 2px 10px;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.p89-row-btn:hover {
  background: linear-gradient(180deg, #3bb879 0%, #208551 55%, #135c36 100%);
}
.p89-row-btn.join {
  background: linear-gradient(180deg, #228be6 0%, #155ca1 55%, #0d3c6e 100%);
  border-color: #0b335c;
}
.p89-row-btn.join:hover {
  background: linear-gradient(180deg, #339af0 0%, #1971c2 55%, #114c8a 100%);
}
.p89-row-btn.bot-play {
  background: linear-gradient(180deg, #40916c 0%, #2d6a4f 100%);
}
.p89-empty-note {
  margin: 0;
  padding: 8px 14px;
  background: #dce8ed;
  color: #2a4b59;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #b8cdd6;
}

/* Görsel Mini-Masa Kart Görünümü */
.tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
  padding: 14px;
  height: 365px;
  overflow-y: auto;
  background: #06212c;
}
.mt { background: linear-gradient(#6e2f14, #3d1707); border-radius: 14px; padding: 8px 8px 0; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.mt-felt {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  min-height: 108px; padding: 10px 14px; border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, #0a0a0a 0 8px, transparent 9px),
    radial-gradient(circle at 100% 0, #0a0a0a 0 8px, transparent 9px),
    radial-gradient(circle at 0 100%, #0a0a0a 0 8px, transparent 9px),
    radial-gradient(circle at 100% 100%, #0a0a0a 0 8px, transparent 9px),
    radial-gradient(circle at 50% 0, #0a0a0a 0 6px, transparent 7px),
    radial-gradient(circle at 50% 100%, #0a0a0a 0 6px, transparent 7px),
    radial-gradient(ellipse at 50% 50%, #2fb34a, #176e29);
  box-shadow: inset 0 0 0 5px #196128;
}
.mt-seat { display: flex; flex-direction: column; min-width: 0; }
.mt-seat:last-child { align-items: flex-end; text-align: right; }
.mt-seat strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mt-seat span { font-family: var(--num); font-size: 13px; color: #d5ead9; }
.mt-mid img { display: block; filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.5)); }
.mt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 7px; font-size: 12.5px; color: #f3e3c4; }

/* Salon Sohbet Çekmecesi */
.p89-lobby-chat {
  background: linear-gradient(180deg, #0b3342 0%, #061d26 100%);
  padding: 8px 10px;
  border-top: 1px solid #358399;
}
.p89-lchat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.p89-lchat-head h3 { font-size: 15px; color: #7ee7fa; }
.p89-lobby-chat .chatlog { height: 112px; }

/* ==================== PLAY89 SAĞ SÜTUN (EK BİLGİLER & PUAN REHBERİ) ==================== */
.p89-side {
  display: flex;
  flex-direction: column;
  background: #072633;
  border: 2px solid #2d6f85;
  border-radius: 8px;
  overflow: hidden;
}
.p89-side-header {
  background: linear-gradient(180deg, #2ca4bf 0%, #146a80 100%);
  padding: 5px 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  border-bottom: 1px solid #63d2eb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.p89-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(180deg, #eef4f6 0%, #b7c8cf 100%);
  border-bottom: 1px solid #5c7d8a;
}
.p89-side-tabs .tab {
  color: #0d2530;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.p89-side-tabs .tab.on {
  background: #ffffff;
  color: #07475c;
  border-bottom-color: #15859e;
}

/* Play89 Sağ Üst Liste: Arka planda yeşil masa köşesi ve 3B beyaz top illüstrasyonu */
.p89-side-list-wrap {
  position: relative;
  height: 220px;
  background:
    radial-gradient(circle at 76% 42%, #ffffff 0%, #e9ecef 8%, #adb5bd 18%, rgba(30, 50, 40, 0.45) 22%, transparent 24%),
    linear-gradient(118deg, #216e39 0%, #2a8546 58%, #592510 59%, #3b1608 66%, #07202b 67%);
  border-bottom: 2px solid #2b6d80;
}
.p89-side-list {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  margin: 0;
  padding: 4px 8px;
  background: rgba(5, 28, 36, 0.42);
}
.row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
.row .stt { color: #b8dce8; font-size: 12px; }
.row .rt { color: #69db7c; font-weight: 700; min-width: 40px; text-align: right; }
.row .pos { color: #7ee7fa; width: 20px; font-weight: 700; }

/* Sıralama Rehberi (Rating Legend) */
.p89-legend {
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(12, 48, 60, 0.9) 0%, rgba(5, 24, 32, 0.95) 100%);
  border-bottom: 1px solid #286275;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p89-leg-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #e3f4fa;
  font-family: var(--num);
}

.p89-user-summary {
  padding: 8px 12px;
  background: #041720;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.p89-user-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p89-user-line strong { color: #ffffff; }
.p89-user-line .num { color: #69db7c; font-weight: 700; }

/* ==================== PLAY89 LOBİ ALT KONSOLU (KASSE | NEUES MATCH | ABMELDEN) ==================== */
.p89-lobby-footer {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 275px;
  gap: 10px;
  align-items: stretch;
  padding: 8px;
  background: linear-gradient(180deg, #0c3545 0%, #051821 100%);
  border-top: 2px solid #2b6d80;
}
.p89-cashier-box {
  background: linear-gradient(180deg, #1b4f5e 0%, #09222b 100%);
  border: 2px solid #458ea3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.p89-cashier-head {
  background: linear-gradient(180deg, #2d7a8f 0%, #144554 100%);
  padding: 4px 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: #f3d47c;
  text-shadow: 0 1px 3px #000;
  border-bottom: 1px solid #5ab4cc;
}
.p89-cashier-val {
  padding: 6px;
  font-family: var(--num);
  font-weight: 700;
  font-size: 18px;
  color: #69db7c;
  background: #04131a;
}
.p89-cashier-foot {
  padding: 3px 8px;
  font-size: 12px;
  color: #d0ebff;
  background: linear-gradient(180deg, #214654 0%, #0f2630 100%);
  border-top: 1px solid #3b768c;
}

.p89-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p89-main-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.p89-big-create-btn {
  min-width: 265px;
  padding: 10px 28px;
  border-radius: 10px;
  border: 2px solid #85ebfc;
  background: linear-gradient(180deg, #35b8cf 0%, #126375 50%, #083742 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  transition: transform 0.12s, box-shadow 0.12s;
}
.p89-big-create-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #48cbe3 0%, #17798f 50%, #0c4754 100%);
  box-shadow: 0 8px 22px rgba(34, 184, 207, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.65);
}
.p89-community-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #1d5769 0%, #0c2b36 100%);
  border: 1px solid #52a8c2;
  border-radius: 8px;
  padding: 8px 14px;
  color: #e3f8fc;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.p89-community-btn:hover { border-color: #8ce6fc; color: #fff; }
.comm-ico { font-size: 18px; }

.p89-sub-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.p89-pill-btn {
  background: linear-gradient(180deg, #2d8a63 0%, #135237 55%, #0a3321 100%);
  border: 1px solid #63d4a3;
  border-radius: 14px;
  padding: 4px 16px;
  color: #efffed;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.p89-pill-btn:hover {
  background: linear-gradient(180deg, #3aa87a 0%, #196947 55%, #0f452d 100%);
}

.p89-footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  background: #061d26;
  border: 1px solid #2b677e;
  border-radius: 8px;
  padding: 6px 10px;
}
.p89-fun-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #cbeaf5;
}
.p89-gold-banner-btn {
  background: linear-gradient(180deg, #ffd43b 0%, #f08c00 60%, #b85d00 100%);
  border: 1px solid #fff3bf;
  border-radius: 6px;
  padding: 5px 10px;
  color: #1f1100;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.p89-gold-banner-btn:hover {
  background: linear-gradient(180deg, #ffe066 0%, #f59f00 60%, #cc6900 100%);
}
.p89-logout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.p89-powered { font-size: 10px; color: #6fa0b3; letter-spacing: 0.05em; }
.p89-logout-btn {
  background: linear-gradient(180deg, #2b677e 0%, #103240 100%);
  border: 1px solid #5bb0cc;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 12px;
  color: #e6f7fc;
  cursor: pointer;
}
.p89-logout-btn:hover { border-color: #ff8787; color: #ffc9c9; }

/* ==================== PLAY89 OYUN EKRANI (play89_1.jpg KOKPİTİ) ==================== */
.game-window {
  margin-top: 6px;
  margin-bottom: 10px;
  background: radial-gradient(ellipse 85% 70% at 50% 38%, #0f5c78 0%, #073345 55%, #031720 100%);
}
.p89-game-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #1b5c75 0%, #0b3140 55%, #051a24 100%);
  border-bottom: 2px solid #2b7a96;
}
.p89-game-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}
.p89-mid-balls { margin-left: 8px; }
.p89-game-top-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.p89-cerrar-btn {
  min-width: 125px;
  padding: 5px 16px;
  border-radius: 6px;
  border: 1.5px solid #7cebf7;
  background: linear-gradient(180deg, #328da6 0%, #134a59 52%, #092630 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.p89-cerrar-btn:hover {
  background: linear-gradient(180deg, #42a6c2 0%, #195e70 52%, #0d3340 100%);
}

.p89-game-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.p89-table-cockpit {
  display: grid;
  grid-template-columns: 92px minmax(0, auto) 82px;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  padding: 12px 12px 8px;
  max-width: 100%;
}
.table-wrap {
  position: relative;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
#table {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  touch-action: none;
  cursor: crosshair;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.72));
}

/* Sol Sütun: 0-50-100 Ölçekli Güç Çubuğu + Sol Alt 3B Falso Topu */
.p89-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.p89-power-meter {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 1;
  max-height: 330px;
  min-height: 200px;
}
.p89-scale {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: 34px;
  padding: 4px 6px 4px 0;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}
.p89-scale .sc-lbl {
  position: relative;
  padding-right: 6px;
  line-height: 1;
}
.p89-scale .sc-lbl::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #ffffff;
}
.p89-scale .sc-t {
  display: block;
  width: 6px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  margin-right: -6px;
}
.power {
  --p: 0;
  position: relative;
  width: 30px;
  height: 100%;
  border-radius: 15px;
  touch-action: none;
  cursor: grab;
  background: rgba(2, 14, 20, 0.72);
  border: 1.5px solid rgba(145, 220, 242, 0.45);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}
.power i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--p) * 100%);
  background: linear-gradient(180deg, #38d9a9 0%, #fcc419 55%, #ff4d4f 100%);
}
.power b {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 18px;
  top: calc(3px + var(--p) * (100% - 24px));
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Sol Alt Büyük 3B Falso Topu (Play89 Efecto Inglés) */
.p89-spin-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spin {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  touch-action: none;
  cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #f5efe0 45%, #c7bca2 78%, #7d735d 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.45);
}
.spin span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 3px;
  background: #1971c2;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Sağ Sütun: Dikey Top Sütunu + Sağ Alt Hedef Top Kutusu */
.p89-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.p89-vertical-rack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
}
.p89-rack-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 2px;
  transition: transform 0.15s, opacity 0.15s;
}
.p89-rack-ball.dim { opacity: 0.22; filter: grayscale(0.4); }
.p89-rack-ball.target-ring {
  outline: 2.5px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transform: scale(1.08);
}

.p89-target-box {
  width: 66px;
  height: 66px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, #2fb34a 0%, #156626 100%);
  border: 2px solid #59a869;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p89-target-box img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
}

/* Play89 Masa Üstü Cam Bilgi / Falso Penceresi (play89_1.jpg'deki Aceptar kutusu) */
.p89-glass-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 88%);
  background: linear-gradient(180deg, rgba(16, 48, 62, 0.94) 0%, rgba(5, 22, 30, 0.97) 100%);
  border: 2px solid #8ce6fc;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 15;
  overflow: hidden;
  line-height: 1.45;
}
.p89-glass-top {
  height: 22px;
  background: linear-gradient(180deg, #cde8f2 0%, #86b2c4 100%);
  border-bottom: 1px solid #ffffff;
}
.p89-glass-body {
  position: relative;
  padding: 20px 24px 18px;
  text-align: center;
  color: #ffffff;
  font-size: 14.5px;
}
.p89-glass-watermark {
  position: absolute;
  right: 16px;
  top: 6px;
  font-family: var(--logo-font);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.p89-aceptar-btn {
  margin-top: 12px;
  min-width: 130px;
  padding: 6px 24px;
  border-radius: 16px;
  border: 1.5px solid #74f2ce;
  background: linear-gradient(180deg, #2b8a78 0%, #0d3d35 55%, #06211c 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.p89-aceptar-btn:hover {
  background: linear-gradient(180deg, #38ad96 0%, #13574b 55%, #093029 100%);
}

/* ==================== PLAY89 OYUN ALT KONSOLU (SOL SKORBORD | SAĞ SOHBET) ==================== */
.p89-bottom-console {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 8px;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, #0b2d3b 0%, #04141c 100%);
  border-top: 2px solid #358399;
}
.p89-console-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #103747 0%, #061b24 100%);
  border: 1.5px solid #35798f;
  border-radius: 7px;
  padding: 6px 8px;
}
.p89-console-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(130, 210, 235, 0.22);
}
.p89-smiley-btn {
  width: 30px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ffd43b;
  background: linear-gradient(180deg, #3b6978, #142f38);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.p89-metal-btn {
  flex: 1;
  min-width: 110px;
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid #6bc4e0;
  background: linear-gradient(180deg, #3a758c 0%, #163d4d 52%, #0a212b 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.p89-metal-btn:hover {
  background: linear-gradient(180deg, #4b8fa8 0%, #1d4f63 52%, #0f2d3b 100%);
}
.p89-metal-btn.sm { flex: 0; min-width: 34px; padding: 4px 8px; }
.p89-metal-btn.shoot-cta {
  border-color: #74f2ce;
  background: linear-gradient(180deg, #2ca389 0%, #115949 52%, #083329 100%);
}
.p89-metal-btn.shoot-cta:hover {
  background: linear-gradient(180deg, #38bf9f 0%, #16705c 52%, #0c4235 100%);
}
.p89-nudges { display: flex; gap: 4px; margin: 0; }

/* İki Oyuncu Skorbordu + Ortada Saat ve Üçgen Rack */
.p89-players-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.p89-pl-card {
  position: relative;
  padding: 7px 52px 7px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #0b2630 0%, #05131a 100%);
  border: 2px solid #285a6b;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}
.p89-pl-card.active {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(255, 146, 43, 0.45), inset 0 0 12px rgba(255, 146, 43, 0.12);
}
.p89-pl-card.empty { opacity: 0.5; }
.pl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pl-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--lime);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-sub { color: #ffd43b; font-size: 12.5px; white-space: nowrap; }
.pl-pts-line {
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
  margin-top: 1px;
}
.pl-balls { display: flex; gap: 3px; min-height: 20px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.pl-open { font-size: 12.5px; color: #9ec0ce; }
.bi { width: 18px; height: 18px; display: block; }
.bi.dim { opacity: 0.22; }
.bi.ring { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 50%; }

.pl-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--lime);
}
.pl-clock-val { font-weight: 700; color: #69db7c; }
.pl-timer { height: 4px; margin-top: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.pl-timer i { display: block; height: 100%; background: var(--cyan-400); transform-origin: left center; transform: scaleX(0); }
.pl-timer i.low { background: var(--red); }

.pl-corner-ball {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7));
}

/* Orta Sütun: Saat + Seri Skoru + Üçgen Bilardo Rack Amblemi */
.p89-board-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  background: rgba(3, 14, 20, 0.65);
  border: 1px solid #245363;
  border-radius: 6px;
}
.p89-global-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lime);
}
.clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d9a9;
  box-shadow: 0 0 6px #38d9a9;
}
.p89-series-score {
  font-size: 13px;
  font-weight: 700;
  color: #ffd43b;
}
.p89-rack-triangle {
  width: 36px;
  height: 32px;
  position: relative;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid #d97706;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}
.p89-rack-triangle::after {
  content: "🎱";
  position: absolute;
  left: -9px;
  top: 8px;
  font-size: 14px;
}

.p89-hint {
  margin: 2px 4px 0;
  font-size: 13px;
  color: #b7e2f0;
  text-align: center;
  min-height: 19px;
}

/* Sağ Alt Masa Sohbeti (Play89 Beyaz/Gümüş Sohbet Kutusu) */
.p89-console-chat {
  margin: 0;
  padding: 6px 8px;
  background: linear-gradient(180deg, #103747 0%, #061b24 100%);
  border: 1.5px solid #35798f;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
}
.p89-chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.p89-mute-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #d8f3fa;
  cursor: pointer;
}
.p89-chat-tabs { border-bottom: 0; }
.p89-chat-tabs .tab { padding: 2px 8px; font-size: 12.5px; }

.chatlog {
  height: 112px;
  overflow-y: auto;
  background: #061821;
  border: 1px solid #2b657a;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 13.5px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.p89-chatlog {
  background: #eef3f5;
  color: #10242e;
  border: 1px solid #7c9aa6;
  height: 110px;
}
.p89-chatlog .cl time { color: #52717d; }
.p89-chatlog .cl.sys span { color: #0c5970; font-style: italic; font-weight: 600; }
.p89-chatlog .who { color: #0b5d8a; }
.p89-chatlog .who.self { color: #b45309; }

.p89-people-list {
  height: 110px;
  background: #061821;
  border: 1px solid #2b657a;
  border-radius: 5px;
  padding: 4px 8px;
  margin: 0;
}

.cl { margin-bottom: 3px; }
.cl time { font-family: var(--num); font-size: 11.5px; color: #7399a8; margin-right: 6px; }
.cl.sys span { color: var(--gold); }
.cl.pm { background: rgba(69, 203, 224, 0.15); border-radius: 4px; padding: 1px 4px; }
.cl.pm em { font-style: normal; font-size: 11px; color: #032029; background: var(--cyan-400); border-radius: 3px; padding: 0 5px; margin-right: 5px; }
.who { background: none; border: 0; padding: 0; cursor: pointer; color: var(--cyan-400); font-weight: 700; text-align: left; }
.who:hover { text-decoration: underline; }
.who.self { color: var(--gold); }
.row .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; font-weight: 500; }
.row .who.self { color: var(--gold); }

.chatbox { position: relative; }
.chatrow { display: flex; gap: 5px; margin-top: 6px; align-items: center; }
.chatrow input {
  flex: 1; min-width: 0; padding: 5px 9px;
  background: #ffffff; color: #0b2029;
  border: 1px solid #6c909e; border-radius: 4px;
}
.pmchip {
  background: var(--cyan-400); color: #032029; border: 0; border-radius: 4px;
  padding: 4px 7px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis;
}
.picker {
  position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px;
  background: #082b3a; border: 1.5px solid #4cc3de; border-radius: 8px;
  padding: 8px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7); z-index: 25;
}
.quick { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.emojis { display: flex; flex-wrap: wrap; gap: 2px; }
.emo { background: none; border: 0; font-size: 20px; padding: 3px 5px; cursor: pointer; border-radius: 5px; line-height: 1; }
.emo:hover { background: rgba(255, 255, 255, 0.14); }

/* ==================== BİLDİRİMLER, OVERLAY & DİYALOGLAR ==================== */
.notice {
  position: absolute; left: 50%; top: 12%; transform: translateX(-50%); max-width: 82%;
  line-height: 1.35; text-align: center;
  background: rgba(5, 24, 33, 0.94); color: #ffffff;
  border: 1.5px solid #7ee7fa; border-radius: 8px; padding: 8px 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
}
.notice.show { opacity: 1; }
.overlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(390px, 86%); line-height: 1.45; text-align: center;
  background: linear-gradient(180deg, rgba(13, 55, 71, 0.96) 0%, rgba(5, 24, 33, 0.98) 100%);
  border: 2px solid #7ee7fa; border-radius: 10px; padding: 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
}
.overlay h3 { font-size: 26px; margin-bottom: 6px; color: #74f2ce; }
.overlay p { margin: 4px 0; }
.overlay .delta { color: var(--gold); font-family: var(--num); font-size: 18px; font-weight: 700; }
.ov-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

.umenu {
  position: fixed; z-index: 40; min-width: 190px; display: flex; flex-direction: column;
  background: #07222e; border: 1.5px solid #5bb0cc; border-radius: 8px; padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}
.umenu strong { padding: 4px 8px 6px; font-family: var(--display); color: #7ee7fa; }
.umenu button { background: none; border: 0; text-align: left; padding: 7px 8px; border-radius: 5px; cursor: pointer; }
.umenu button:hover { background: rgba(255, 255, 255, 0.12); }

.invite {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 35; width: min(320px, calc(100vw - 32px));
  background: #07222e; border: 2px solid var(--gold); border-radius: 10px; padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
}
.invite p { margin: 0; }
.invite .ov-btns { justify-content: flex-start; margin-top: 10px; }

.dlg {
  position: fixed; inset: 0; background: rgba(0, 8, 14, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30;
}
.p89-dlg {
  background: linear-gradient(180deg, #0d3a4b 0%, #051b24 100%);
  border: 2px solid #6bc4e0;
  border-radius: 10px;
  padding: 22px;
  width: min(400px, 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.p89-dlg h3 { color: #7ee7fa; font-size: 22px; margin-bottom: 8px; }
.opts {
  display: flex; flex-direction: column; gap: 7px; margin: 12px 0;
  padding-bottom: 12px; border-bottom: 1px solid rgba(130, 210, 235, 0.2);
}
.opt-lbl { color: #ffd43b; font-size: 13.5px; margin-bottom: 2px; }
.opts label { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.opts input { accent-color: var(--cyan-400); }

.toast, .conn {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 45; max-width: 92vw;
  background: #06212e; border: 1.5px solid var(--gold); border-radius: 8px; padding: 9px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}
.toast { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.toast.show { opacity: 1; }
.conn { top: calc(10px + env(safe-area-inset-top, 0px)); font-size: 14px; }

/* ==================== PLAYBILARDO.COM AMBLEM & PORTAL ANASAYFA STİLLERİ ==================== */
.pb-mini-brand {
  font-family: var(--logo-font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #ffd43b;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.pb-mini-brand b { color: #ffffff; }
.pb-mini-brand i {
  font-style: normal;
  font-size: 11px;
  color: #74f2ce;
  margin-left: 1px;
}
.pb-live-pill, .pb-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 36, 28, 0.85);
  border: 1px solid #38d9a9;
  color: #c3fae8;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
.pb-rank-pill {
  background: rgba(24, 18, 4, 0.85);
  border-color: #fcc419;
  color: #fff3bf;
}
.pb-game-badge {
  background: rgba(56, 217, 169, 0.18);
  border: 1px solid #63e6be;
  color: #e6fcf5;
  padding: 1px 9px;
  border-radius: 10px;
  font-size: 13.5px;
}
.pb-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
  flex-shrink: 0;
}
.pb-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.pb-word-row {
  display: flex;
  align-items: baseline;
  font-family: var(--logo-font);
  font-weight: 900;
  font-size: 29px;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 3px 0 #140b04) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.85));
}
.pb-wordmark.sm .pb-word-row { font-size: 21px; }
.pb-logo-play {
  background: linear-gradient(180deg, #fff9db 0%, #fcc419 50%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pb-logo-main {
  background: linear-gradient(180deg, #ffffff 0%, #e3fafc 55%, #99e9f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pb-logo-com {
  font-size: 0.52em;
  color: #74f2ce;
  margin-left: 2px;
  font-weight: 800;
}
.pb-logo-sub {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b2f2bb;
  margin-top: 2px;
  text-shadow: 0 1px 2px #000;
}
.pb-wordmark.sm .pb-logo-sub { font-size: 9px; letter-spacing: 0.1em; }
.pb-hero-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(90deg, rgba(252, 196, 25, 0.25), rgba(252, 196, 25, 0.06));
  border: 1px solid rgba(255, 224, 102, 0.65);
  color: #fff3bf;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 3px;
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.hero-sim-badge {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: #74f2ce;
  letter-spacing: 0.04em;
}
.hero-domain-tag {
  font-family: var(--logo-font);
  font-size: 11px;
  color: #ffd43b;
  letter-spacing: 0.06em;
}

.pb-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.pb-feat-card {
  background: linear-gradient(180deg, rgba(14, 58, 77, 0.72) 0%, rgba(5, 25, 34, 0.88) 100%);
  border: 1px solid rgba(99, 210, 235, 0.35);
  border-radius: 9px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.pb-feat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: #ffd43b;
  margin-bottom: 3px;
}
.pb-feat-card p {
  margin: 0;
  font-size: 12.8px;
  color: #cbeaf5;
  line-height: 1.35;
}

.auth-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-card-head {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.pb-card-pill {
  background: linear-gradient(90deg, #156634, #1b8ca3);
  border: 1px solid #74f2ce;
  color: #ffffff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 12px;
}
.pb-submit-btn {
  font-family: var(--display);
  font-size: 16.5px;
  letter-spacing: 0.03em;
  padding: 11px 16px;
}
.pb-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  color: #8bb8c9;
  font-size: 12px;
}
.pb-divider::before, .pb-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(130, 210, 235, 0.25);
}
.auth-form .alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}
.pb-guest-btn {
  background: linear-gradient(180deg, #2fb34a 0%, #166b29 55%, #0c4218 100%);
  border-color: #8ce99a;
  color: #ffffff;
  font-family: var(--display);
  font-size: 15.5px;
}
.pb-guest-btn:hover {
  background: linear-gradient(180deg, #3cc959 0%, #1d8234 55%, #115420 100%);
  border-color: #b2f2bb;
}
.pb-bot-btn {
  background: linear-gradient(180deg, #3b6978 0%, #193742 100%);
  border-color: #74c0fc;
  font-family: var(--display);
  font-size: 14.5px;
}

.pb-auth-leaders {
  background: linear-gradient(180deg, #092c3b 0%, #051821 100%);
  border: 1.5px solid #2b6d85;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.pb-auth-leaders-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  color: #ffd43b;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(130, 210, 235, 0.2);
  padding-bottom: 4px;
}
.pb-portal-footer {
  padding: 10px 18px;
  background: #031219;
  border-top: 1px solid #1e5266;
  text-align: center;
  font-size: 12.5px;
  color: #8bb8c9;
}

/* Mobil Lobi Sekme Çubuğu (Masaüstünde Gizli, Tablet ve Mobilde Aktif) */
.pb-mob-nav {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px 8px;
  background: #041821;
  border-bottom: 2px solid #2b6d80;
}
.pb-mob-tab {
  background: linear-gradient(180deg, #1b4b5c 0%, #0b2630 100%);
  border: 1px solid #3d89a3;
  border-radius: 6px;
  padding: 8px 6px;
  color: #cbeaf5;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-align: center;
}
.pb-mob-tab.on {
  background: linear-gradient(180deg, #2cb8cf 0%, #116475 100%);
  border-color: #99e9f2;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(44, 184, 207, 0.4);
}

/* ==================== MOBİL VE TABLET TAM UYUMLULUK SİSTEMİ ==================== */
@media (max-width: 1040px) {
  .p89-window {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100%;
  }
  .p89-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p89-banner-right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #358399; }
  .pb-mob-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p89-lobby-main { grid-template-columns: minmax(0, 1fr); }
  .p89-side { min-width: 0; max-width: 100%; }

  /* Tablet/Mobil Sekme Yönlendirmesi: Masalar | Sohbet | Oyuncular */
  #lobbyMainGrid[data-mob-pane="tables"] #lobbySideCol,
  #lobbyMainGrid[data-mob-pane="tables"] #lobbyChatSection {
    display: none;
  }
  #lobbyMainGrid[data-mob-pane="chat"] .p89-tier1,
  #lobbyMainGrid[data-mob-pane="chat"] .p89-tier2,
  #lobbyMainGrid[data-mob-pane="chat"] .p89-tier3,
  #lobbyMainGrid[data-mob-pane="chat"] #tablesGridWrap,
  #lobbyMainGrid[data-mob-pane="chat"] #tables,
  #lobbyMainGrid[data-mob-pane="chat"] #lobbySideCol {
    display: none;
  }
  #lobbyMainGrid[data-mob-pane="chat"] #lobbyChatSection .chatlog {
    height: 52vh;
    min-height: 240px;
  }
  #lobbyMainGrid[data-mob-pane="players"] .p89-hall {
    display: none;
  }
  #lobbyMainGrid[data-mob-pane="players"] .p89-side-list-wrap {
    height: 46vh;
    min-height: 240px;
  }

  .p89-lobby-footer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .p89-bottom-console { grid-template-columns: minmax(0, 1fr); }
  .p89-console-left, .p89-console-chat { min-width: 0; max-width: 100%; }
}

@media (max-width: 920px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; gap: 16px; }
  /* Mobilde/Tablette Giriş Kartını Üste Al */
  .auth-side-col { order: -1; }
  .hide-sm { display: none !important; }

  /* Oyun Ekranı Tablet & Mobil Ergonomisi: Masa Üstte, Kontroller Tam Genişlikte Altta */
  .p89-table-cockpit {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 6px 4px;
    gap: 6px;
  }
  .table-wrap { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .p89-left-col {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 5px 10px;
    gap: 10px;
    background: rgba(5, 24, 33, 0.78);
    border: 1px solid #2b677e;
    border-radius: 8px;
  }
  .p89-right-col {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 4px 10px;
    gap: 8px;
    background: rgba(5, 24, 33, 0.78);
    border: 1px solid #2b677e;
    border-radius: 8px;
  }
  .p89-power-meter { width: auto; min-width: 0; min-height: 36px; max-height: 38px; flex: 1; }
  .p89-scale { display: none; }
  .power { width: 100%; height: 36px; }
  .power i {
    top: 0; bottom: 0; right: auto; height: auto;
    width: calc(var(--p) * 100%);
    background: linear-gradient(90deg, #38d9a9 0%, #fcc419 55%, #ff4d4f 100%);
  }
  .power b {
    top: 3px; bottom: 3px; height: auto; right: auto;
    width: 20px;
    left: calc(3px + var(--p) * (100% - 26px));
  }
  .p89-spin-wrap { margin-top: 0; flex-shrink: 0; }
  .spin { width: 46px; height: 46px; }
  .p89-vertical-rack { flex-direction: row; flex-wrap: wrap; gap: 3px; padding: 2px; flex: 1; min-width: 0; }
  .p89-rack-ball { width: 22px; height: 22px; }
  .p89-target-box { width: 44px; height: 44px; flex-shrink: 0; }
  .p89-target-box img { width: 32px; height: 32px; }
}

@media (max-width: 640px) {
  .hide-xs { display: none !important; }
  .p89-titlebar { padding: 5px 8px; gap: 5px; }
  .p89-titlebar-left, .p89-titlebar-right { gap: 4px; }
  .p89-chrome-btn { padding: 4px 7px; font-size: 11.5px; }
  .pb-mini-brand { font-size: 13px; }
  .pb-live-pill, .pb-rank-pill { padding: 2px 7px; font-size: 11px; }

  .p89-banner, .auth-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 10px;
    gap: 8px;
    min-height: auto;
  }
  .p89-banner-left { padding: 2px 4px; justify-content: center; max-width: 100%; }
  .p89-banner-center { padding: 4px 4px; max-width: 100%; }
  .p89-banner-right { display: none; }
  .p89-brand {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 6px;
  }
  .pb-crest svg { width: 38px; height: 38px; }
  .pb-word-row { font-size: 21px; }
  .pb-wordmark.sm .pb-word-row { font-size: 18px; }
  .pb-logo-sub { font-size: 9px; letter-spacing: 0.08em; }
  .p89-logo-ball { width: 32px; height: 32px; }
  .p89-promo-card { padding: 6px 10px; gap: 8px; max-width: 100%; }
  .p89-promo-balls img { width: 24px; height: 24px; }
  .hero-frame { padding: 8px; }
  .hero-frame-bar { flex-wrap: wrap; gap: 4px; }
  .auth-form { padding: 14px 12px; }
  .pb-features-grid { grid-template-columns: minmax(0, 1fr); }

  .p89-tier1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p89-t1-tab { font-size: 12.5px; padding: 6px 4px; }
  .p89-room-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .p89-room-tab { font-size: 11px; padding: 4px 2px; }

  /* Mobil Masa Listesi: 320px-430px Ekranlarda Sıfır Taşma */
  .p89-grid-wrap { height: 380px; max-width: 100%; overflow-x: hidden; }
  .p89-grid-head {
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) 36px 58px;
    font-size: 11.5px;
  }
  .p89-grid-row {
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) 36px 58px;
    min-height: 40px;
    font-size: 12px;
  }
  .p89-grid-head > span, .p89-grid-row > span { padding: 4px 3px; }
  .p89-grid-head .c-len, .p89-grid-head .c-spd, .p89-grid-head .c-scr,
  .p89-grid-row .c-len, .p89-grid-row .c-spd, .p89-grid-row .c-scr {
    display: none;
  }
  .p89-row-btn { padding: 4px 6px; font-size: 11px; }
  .p89-big-create-btn { width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; }

  /* Mobil Oyun İçi Skorbord: İki Oyuncu Yan Yana Kompakt */
  .p89-game-header { padding: 5px 8px; gap: 6px; }
  .p89-game-title { font-size: 13.5px; gap: 5px; }
  .p89-game-top-btns { gap: 4px; width: 100%; justify-content: space-between; }
  .p89-cerrar-btn { min-width: 0; padding: 4px 10px; font-size: 12px; }
  .p89-bottom-console { padding: 6px 6px 8px; gap: 6px; }
  .p89-players-board {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 4px;
  }
  .p89-pl-card { padding: 5px 6px; min-width: 0; }
  .pl-corner-ball { display: none; }
  .pl-name { font-size: 13px; }
  .pl-sub { font-size: 10.5px; }
  .pl-pts-line { font-size: 11px; }
  .pl-bottom-row { font-size: 11px; gap: 3px; }
  .bi { width: 14px; height: 14px; }
  .p89-shot-clock { font-size: 15px; padding: 3px 4px; }
  .p89-action-row { flex-wrap: wrap; gap: 5px; }
  .p89-metal-btn { min-width: 0; flex: 1; font-size: 12.5px; padding: 6px 8px; }
}

/* Yatay (Landscape) Telefon Modu: Masa Maksimum Boyutta */
@media (max-height: 520px) and (orientation: landscape) {
  .p89-game-header { padding: 2px 8px; }
  .p89-table-cockpit { padding: 2px 4px; gap: 4px; }
  .p89-bottom-console { padding: 4px 6px; gap: 4px; }
  .p89-pl-card { padding: 4px 8px; }
  .pl-pts-line, .p89-hint { display: none; }
}
/* ==================== ÜLKE BAYRAKLARI, ŞİKAYET & YÖNETİCİ PANELİ ==================== */
.flag-ico {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.flag-ico.lg { width: 27px; height: 18px; }
.country-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p89-flag-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(4, 22, 30, 0.65);
  border: 1px solid #4ba8c2;
  border-radius: 5px;
  padding: 2px 5px;
  max-width: 110px;
}
.p89-country-mini {
  width: 58px !important;
  max-width: 64px !important;
  padding: 2px 2px !important;
  font-size: 11.5px;
  background: transparent !important;
  border: 0 !important;
  color: #e3f8fc;
  cursor: pointer;
  text-overflow: ellipsis;
}
.admin-btn {
  border-color: #ffd43b !important;
  color: #fff3bf !important;
  position: relative;
}
.adm-badge {
  display: inline-block;
  background: #e03131;
  color: #fff;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 11px;
  margin-left: 4px;
}
.adm-crown {
  color: #ffd43b;
  font-size: 12px;
  margin-right: 3px;
}
.rep-btn, .del-msg-btn {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 11.5px;
  cursor: pointer;
  opacity: 0.45;
  margin-left: 4px;
  color: #e03131;
}
.rep-btn:hover, .del-msg-btn:hover { opacity: 1; transform: scale(1.12); }

.urgent-clock {
  color: #ff6b6b !important;
  animation: pulseUrgent 0.55s infinite alternate;
}
@keyframes pulseUrgent {
  from { opacity: 1; text-shadow: 0 0 8px rgba(255, 77, 79, 0.9); }
  to { opacity: 0.45; text-shadow: none; }
}

.admin-dlg {
  width: min(680px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.adm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.adm-head h3 { margin: 0; }
.adm-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.adm-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 62vh;
}
.adm-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
}
.adm-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(3, 18, 25, 0.7);
  border: 1px solid #2d6f85;
  border-radius: 7px;
  font-weight: 600;
}
.adm-announce-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.adm-announce-box input { flex: 1; }
.adm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.adm-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(3, 18, 25, 0.72);
  border: 1px solid #285d70;
  border-radius: 6px;
  font-size: 13px;
}
.adm-item.resolved { opacity: 0.48; }
.adm-item-info { flex: 1; min-width: 190px; }
.adm-item-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-words-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(3, 18, 25, 0.72);
  border: 1px solid #285d70;
  border-radius: 6px;
}
.adm-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #133e4f;
  border: 1px solid #458ea3;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12.5px;
  cursor: pointer;
}
.adm-word-chip:hover { border-color: #ff6b6b; color: #ffc9c9; }

@media (prefers-reduced-motion: reduce) {
  .notice, .toast, .urgent-clock { transition: none; animation: none; }
}
