/* ══════════════════════════════════════════════════════════════════════════
   arayuz.css — OYUN İÇİ ARAYÜZÜN ORTAK GÖRSEL DİLİ
   Referans: GTA V arayüzü — koyu, yarı saydam siyah paneller; beyaz yazı;
   seçili satır BEYAZ zemin + SİYAH yazı; sade başlıklar; tek
   ince vurgu rengi (CBH kırmızısı). Süs yok, gölge ve yuvarlaklık asgari.

   Bu dosya kultur.css'ten SONRA yüklenir; eski stilleri ezer. Modüllerin
   kendi <style> blokları da buradaki değişkenleri kullanır.
   Kontrol butonları (joystick, zıpla, eğil, E, ateş…) BİLEREK kapsam dışı.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Yüzeyler: GTA'nın saydam siyahları */
  --ui-panel: rgba(0, 0, 0, .72);
  --ui-panel-koyu: rgba(0, 0, 0, .86);
  --ui-panel-acik: rgba(0, 0, 0, .55);
  --ui-cizgi: rgba(255, 255, 255, .14);
  /* Yazı */
  --ui-yazi: #ffffff;
  --ui-yazi-2: rgba(255, 255, 255, .72);
  --ui-yazi-3: rgba(255, 255, 255, .5);
  /* Seçili satır: beyaz zemin, siyah yazı */
  --ui-secili: #f2f2f2;
  --ui-secili-yazi: #0c0c0c;
  /* Tek vurgu: CBH kırmızısı (ince çizgi, işaret, uyarı) */
  --ui-vurgu: #d4302f;
  --ui-vurgu-koyu: #a82322;
  --ui-altin: #e8b949;
  --ui-yesil: #6fcf73;
  --ui-mavi: #5fa8e6;
  /* Yazı tipleri */
  --ui-baslik: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ui-govde: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Ölçüler */
  --ui-kose: 2px;
  --ui-gecis: 140ms;
}

/* ── Ortak parçalar ─────────────────────────────────────────────────────── */
/* Tuş işareti: beyaz kutu, siyah harf (GTA "INPUT" simgesi) */
.ui-tus, kbd.ui-tus {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.55em; height: 1.55em; padding: 0 .38em; box-sizing: border-box;
  border-radius: 3px; background: #f2f2f2; color: #0c0c0c;
  font: 700 .82em/1 var(--ui-govde); letter-spacing: 0; vertical-align: .08em;
  border: 0; box-shadow: none; text-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   DURDURMA MENÜSÜ (#pauseBackdrop + #sidebar)
   Üst şerit: marka · oyuncu/saat — sekmeler — solda liste, sağda açıklama —
   altta tuş ipuçları. Seçili satır beyaz zemin + siyah yazı.
   ══════════════════════════════════════════════════════════════════════════ */
#pauseBackdrop {
  position: fixed; inset: 0; z-index: 8999;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.78) 100%),
    rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
#pauseBackdrop.active { opacity: 1; pointer-events: auto; }
/* Masaüstünde hafif bulanıklık + renk kısma (GTA'nın menü arkası). Telefonda
   tam ekran süzgeç her kare yeniden hesaplanıp ısıtır → yalnız karartma. */
@media (hover: hover) and (pointer: fine) {
  #pauseBackdrop { -webkit-backdrop-filter: blur(5px) saturate(.65); backdrop-filter: blur(5px) saturate(.65); }
}

#sidebar.game-pause-menu {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: auto !important; max-width: none !important; height: auto !important; max-height: none !important;
  transform: none !important;
  z-index: 9000;
  display: flex; align-items: stretch; justify-content: center;
  box-sizing: border-box;
  padding: clamp(22px, 6vh, 70px) clamp(18px, 6vw, 110px) clamp(18px, 4vh, 44px);
  overflow: hidden;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms;
  font-family: var(--ui-govde);
  color: var(--ui-yazi);
  -webkit-font-smoothing: antialiased;
}
#sidebar.game-pause-menu.active { visibility: visible; opacity: 1; pointer-events: auto; }

#sidebar .pause-menu-content {
  width: 100%; max-width: 1180px; min-height: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 0; margin: 0 auto; background: none; border: 0; box-shadow: none; overflow: visible;
}

/* Üst şerit */
#sidebar .pm-ust { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
#sidebar .pause-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
#sidebar .pm-logo {
  display: block; width: 52px; height: 52px; flex: 0 0 52px;
  object-fit: contain;
}
#sidebar .pause-brand-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#sidebar .pause-brand-name { font: 700 21px/1.1 var(--ui-baslik); letter-spacing: .01em; color: #fff; }
#sidebar .pause-kicker {
  font: 500 12px/1.2 var(--ui-baslik); letter-spacing: .04em; text-transform: none;
  color: var(--ui-yazi-2);
}
#sidebar .pm-oyuncu { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
#sidebar .pm-nick { font: 600 18px/1.2 var(--ui-baslik); letter-spacing: 0; text-transform: none; }
#sidebar .pm-saat { font: 500 13px/1.2 var(--ui-baslik); letter-spacing: .02em; text-transform: none; color: var(--ui-yazi-2); }

/* Sekmeler */
#sidebar .pm-sekmeler { display: flex; gap: 2px; margin-bottom: 6px; }
#sidebar .pm-sekme {
  flex: 1 1 0; min-width: 0; height: 40px; box-sizing: border-box;
  border: 0; border-top: 4px solid transparent; border-radius: 0;
  background: var(--ui-panel); color: var(--ui-yazi-2);
  font: 600 14px/1.2 var(--ui-baslik); letter-spacing: .02em; text-transform: none;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--ui-gecis), color var(--ui-gecis);
}
#sidebar .pm-sekme:hover { background: var(--ui-panel-koyu); color: #fff; }
#sidebar .pm-sekme.aktif { background: var(--ui-secili); color: var(--ui-secili-yazi); border-top-color: var(--ui-vurgu); }
#sidebar .pm-sekme:focus-visible { outline: 2px solid var(--ui-vurgu); outline-offset: -2px; }

/* Gövde: sol liste + sağ açıklama */
#sidebar .pm-govde {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 6px; align-items: start;
}
#sidebar .pm-sol { background: var(--ui-panel); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#sidebar .pause-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sidebar .pause-main-view[hidden], #sidebar .pause-settings-view[hidden], #sidebar .pm-topluluk-view[hidden] { display: none !important; }
#sidebar .pause-main-view, #sidebar .pause-settings-view, #sidebar .pm-topluluk-view {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; box-sizing: border-box;
}
#sidebar .pause-options, #sidebar .pause-socials {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0; width: 100%;
}

/* Satır (liste öğesi) */
#sidebar .pause-btn, #sidebar .pause-social-link, #sidebar .settings-back-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 42px; box-sizing: border-box;
  padding: 0 18px; margin: 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0;
  background: transparent; box-shadow: none; text-shadow: none; transform: none;
  color: #fff; text-align: left; text-decoration: none;
  font: 500 16px/1.2 var(--ui-govde); letter-spacing: 0;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--ui-gecis), color var(--ui-gecis);
}
#sidebar .pause-btn:hover, #sidebar .pause-btn:focus-visible,
#sidebar .pause-social-link:hover, #sidebar .pause-social-link:focus-visible,
#sidebar .settings-back-btn:hover, #sidebar .settings-back-btn:focus-visible {
  background: var(--ui-secili); color: var(--ui-secili-yazi); outline: none; transform: none; text-shadow: none;
  border-color: rgba(0,0,0,.06);
}
#sidebar .pause-btn:active { background: #d8d8d8; }
#sidebar .pm-tehlike { color: #ff8b80; }
#sidebar .pm-tehlike:hover, #sidebar .pm-tehlike:focus-visible { color: var(--ui-vurgu-koyu); }
#sidebar .pm-yonetici { color: var(--ui-altin); }
#sidebar .pm-yonetici:hover, #sidebar .pm-yonetici:focus-visible { color: #6b4c00; }
#sidebar .pause-btn:disabled { opacity: .55; cursor: default; }
/* Joystick yalnız dokunmatikte anlamlı */
body:not(.touch-device) #sidebar #joystickToggle { display: none !important; }
#sidebar #joystickToggle .toggle-status {
  margin-left: auto; font: 600 14px/1 var(--ui-baslik); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-yazi-2);
}
#sidebar #joystickToggle:hover .toggle-status, #sidebar #joystickToggle:focus-visible .toggle-status { color: #444; }
#sidebar .pause-social-link svg { width: 18px; height: 18px; flex: 0 0 18px; }
#sidebar .pause-social-link span { font: inherit; }
#sidebar .pm-manzara-kaynak {
  display: block; padding: 12px 18px; color: var(--ui-yazi-2);
  font: 400 12px/1.45 var(--ui-govde); text-decoration: underline;
  text-underline-offset: 3px;
}
#sidebar .pm-manzara-kaynak:hover,
#sidebar .pm-manzara-kaynak:focus-visible { color: #fff; }

/* Sağ açıklama paneli */
#sidebar .pm-sag { background: var(--ui-panel); padding: 18px 22px 20px; min-height: 120px; box-sizing: border-box; }
#sidebar .pm-sag-baslik {
  font: 600 22px/1.25 var(--ui-baslik); letter-spacing: -.01em; text-transform: none;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--ui-cizgi);
}
#sidebar .pm-sag-metin { margin: 0; font: 400 15px/1.6 var(--ui-govde); color: var(--ui-yazi-2); }

/* Alt tuş ipuçları */
#sidebar .pm-alt {
  display: flex; justify-content: flex-end; gap: 20px; margin-top: 10px;
  font: 600 13px/1.2 var(--ui-baslik); letter-spacing: 0; text-transform: none;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
#sidebar .pm-alt span { display: inline-flex; align-items: center; gap: 4px; }

/* ── Ayarlar görünümü ── */
#sidebar .setting-group {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 18px 14px; margin: 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0;
  background: transparent; box-shadow: none; cursor: default;
  transition: background var(--ui-gecis);
}
#sidebar .setting-group:hover, #sidebar .setting-group:focus-within { background: rgba(255,255,255,.07); }
#sidebar .setting-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 22px; color: #fff; }
#sidebar .setting-label-row > span, #sidebar .setting-label-row > div { display: inline-flex; align-items: center; }
#sidebar .setting-icon { display: none; }
#sidebar .setting-label { font: 500 16px/1.2 var(--ui-govde); letter-spacing: 0; }
#sidebar .setting-value { font: 600 17px/1 var(--ui-baslik); letter-spacing: .06em; text-transform: uppercase; color: #fff; font-variant-numeric: tabular-nums; }
#sidebar .graphics-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
#sidebar .setting-choice {
  min-width: 0; min-height: 34px; padding: 4px 6px; margin: 0;
  border: 0; border-radius: 0; box-shadow: none;
  background: rgba(255,255,255,.09); color: var(--ui-yazi-2);
  font: 600 15px/1.1 var(--ui-baslik); letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; touch-action: manipulation; transform: none;
  transition: background var(--ui-gecis), color var(--ui-gecis);
}
#sidebar .setting-choice:hover, #sidebar .setting-choice:focus-visible { background: rgba(255,255,255,.2); color: #fff; outline: none; border: 0; }
#sidebar .setting-choice.is-active { background: var(--ui-secili); color: var(--ui-secili-yazi); box-shadow: none; }
body.touch-device #sidebar #graphicsVeryHigh { display: none; }
body.touch-device #sidebar .graphics-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#sidebar .mobile-graphics-note { display: none; margin: 8px 0 0; font: 400 13px/1.4 var(--ui-govde); color: var(--ui-yazi-3); }
body.touch-device #sidebar .mobile-graphics-note { display: block; }
/* Kaydırıcı: düz beyaz dolum çubuğu */
#sidebar .setting-range {
  --range-fill: 50%;
  display: block; width: 100%; height: 22px; margin: 8px 0 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; touch-action: pan-x;
}
#sidebar .setting-range:focus-visible { outline: 2px solid var(--ui-vurgu); outline-offset: 2px; }
#sidebar .setting-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 0;
  background: linear-gradient(90deg, #fff 0 var(--range-fill), rgba(255,255,255,.2) var(--range-fill) 100%);
}
#sidebar .setting-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 8px; height: 20px; margin-top: -7px; border: 0; border-radius: 1px;
  background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.55);
}
#sidebar .setting-range::-moz-range-track { height: 6px; border-radius: 0; background: rgba(255,255,255,.2); }
#sidebar .setting-range::-moz-range-progress { height: 6px; border-radius: 0; background: #fff; }
#sidebar .setting-range::-moz-range-thumb { width: 8px; height: 20px; border: 0; border-radius: 1px; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.55); }
#sidebar .settings-back-btn span { font-size: 20px; line-height: 0; margin: 0; }

/* ── Dar ve telefon ekranları ── */
@media (max-width: 900px) {
  #sidebar .pm-govde { grid-template-columns: minmax(0, 1fr); }
  #sidebar .pm-sag { display: none; }
}
body.touch-device #sidebar.game-pause-menu {
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body.touch-device #sidebar .pm-alt { display: none; }
body.touch-device #sidebar .pm-sag { display: none; }
body.touch-device #sidebar .pm-govde { grid-template-columns: minmax(0, 1fr); }
/* Sağ üstteki ☰/✕ menü düğmesi bu köşede: oyuncu bilgisini ondan uzak tut. */
body.touch-device #sidebar .pm-ust { padding-right: 52px; margin-bottom: 8px; }
body.touch-device #sidebar .pm-logo { width: 40px; height: 40px; flex-basis: 40px; }
body.touch-device #sidebar .pause-brand-name { font-size: 17px; }
body.touch-device #sidebar .pause-kicker { font-size: 11px; letter-spacing: .02em; }
body.touch-device #sidebar .pm-nick { font-size: 17px; }
body.touch-device #sidebar .pm-saat { font-size: 12px; }
body.touch-device #sidebar .pm-sekme { height: 36px; font-size: 13px; }
body.touch-device #sidebar .pause-options,
body.touch-device #sidebar .pause-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.touch-device #sidebar .pause-btn,
body.touch-device #sidebar .pause-social-link { min-height: 40px; padding: 0 14px; font-size: 14px; }
body.touch-device #sidebar .pause-options > :nth-child(odd),
body.touch-device #sidebar .pause-socials > :nth-child(odd) { border-right: 1px solid rgba(255,255,255,.06); }
body.touch-device #sidebar .pause-btn:hover { background: transparent; color: #fff; }
body.touch-device #sidebar .pause-btn:active { background: var(--ui-secili); color: var(--ui-secili-yazi); }
body.touch-device #sidebar .pause-btn,
body.touch-device #sidebar .pause-social-link,
body.touch-device #sidebar .settings-back-btn { min-height: 40px; font-size: 14px; }
body.touch-device #sidebar .setting-group { padding: 7px 14px 8px; }
body.touch-device #sidebar .setting-label { font-size: 14px; }
body.touch-device #sidebar .setting-value { font-size: 15px; }
body.touch-device #sidebar .graphics-options { margin-top: 6px; }
body.touch-device #sidebar .setting-choice { min-height: 32px; font-size: 14px; }
body.touch-device #sidebar .mobile-graphics-note { margin-top: 5px; font-size: 11.5px; }
body.touch-device #sidebar .setting-range { height: 20px; margin-top: 4px; }
/* Ayarlar iki sütun: grafik solda tam genişlik, ses ve hassasiyet yan yana */
body.touch-device #sidebar .pause-settings-view:not([hidden]) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.touch-device #sidebar .pause-settings-view > .setting-group:first-child,
body.touch-device #sidebar .pause-settings-view > .settings-back-btn { grid-column: 1 / -1; }
body.touch-device #sidebar .pause-settings-view > label.setting-group:nth-of-type(1) { border-right: 1px solid rgba(255,255,255,.06); }
@media (max-height: 430px) {
  body.touch-device #sidebar .pm-logo { width: 34px; height: 34px; flex-basis: 34px; }
  body.touch-device #sidebar .pause-kicker { display: none; }
  body.touch-device #sidebar .pm-sekme { height: 34px; font-size: 12px; }
  body.touch-device #sidebar .pause-btn, body.touch-device #sidebar .pause-social-link { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #pauseBackdrop, #sidebar.game-pause-menu, #sidebar .pause-btn, #sidebar .pm-sekme { transition: none; }
}

/* Menü açıkken sağ üst köşedeki çanta düğmesi menünün üstünde yüzmesin. */
body.menu-acik #env-toggle-btn { visibility: hidden !important; pointer-events: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   YARDIM KUTULARI (GTA "help text"): siyah kutu, beyaz yazı, tuş simgesi
   ══════════════════════════════════════════════════════════════════════════ */
#etkilesimIpucu, #plockIpucu {
  position: fixed; left: 50%; transform: translateX(-50%);
  pointer-events: none; box-sizing: border-box;
  padding: 7px 12px; border: 0; border-radius: 0;
  background: rgba(0, 0, 0, .78); color: #fff; box-shadow: none; text-shadow: none;
  font: 500 15px/1.35 var(--ui-govde); white-space: nowrap;
}
#etkilesimIpucu { top: calc(50% + 20px); z-index: 999; }
#plockIpucu { top: 58%; z-index: 999985; padding: 10px 16px; font-size: 16px; border-left: 3px solid #fff; }
#plockIpucu b { font-weight: 700; }
body.touch-device #etkilesimIpucu { font-size: 12.5px; padding: 5px 9px; top: calc(50% + 16px); }

/* ══════════════════════════════════════════════════════════════════════════
   SOHBET (#kc-box, ek/chat.js) — GTA Online sohbeti: kutusuz satırlar,
   gölgeli beyaz yazı; giriş satırı siyah şerit.
   ══════════════════════════════════════════════════════════════════════════ */
#kc-box .kc-line {
  border-radius: 0; background: rgba(0,0,0,.42); padding: 3px 8px;
  font: 500 13.5px/1.38 var(--ui-govde); color: #fff; text-shadow: 0 1px 2px #000;
}
#kc-box .kc-line .kc-nick:not(.kc-admin) { color: var(--ui-altin); font-weight: 700; }
#kc-box .kc-line.kc-system { background: rgba(0,0,0,.5); font-weight: 500; color: rgba(255,255,255,.82); }
#kc-box .kc-line.kc-system-join { color: #b8ecbb; border-left: 2px solid var(--ui-yesil); }
#kc-box .kc-line.kc-system-leave { color: rgba(255,255,255,.65); border-left: 2px solid rgba(255,255,255,.4); }
#kc-box .kc-line.kc-system-kick, #kc-box .kc-line.kc-system-stylekick { color: #ffb0a8; border-left: 2px solid var(--ui-vurgu); background: rgba(40,0,0,.6); }
#kc-box .kc-line.kc-system-warn { color: #f5d98d; border-left: 2px solid var(--ui-altin); background: rgba(30,20,0,.6); }
#kc-box #kc-inputrow.open { gap: 0; background: rgba(0,0,0,.8); align-items: stretch; }
#kc-box #kc-inputrow.open::before {
  content: 'Sohbet'; display: flex; align-items: center; padding: 0 10px;
  font: 600 14px/1 var(--ui-baslik); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
#kc-box #kc-input { border: 0; border-radius: 0; background: transparent; font: 500 14px/1.2 var(--ui-govde); padding: 8px 8px; }
#kc-box #kc-input:focus { border: 0; box-shadow: inset 0 -2px 0 #fff; }
#kc-box #kc-send { border-radius: 0; background: #f2f2f2; color: #0c0c0c; font-weight: 700; padding: 0 14px; }
#kc-box #kc-send:hover { background: #fff; }
html body #kc-box.kc-mobile .kc-line { font-size: 11px; padding: 1px 6px; border-radius: 0; }
/* Mobilde kapalı sohbetin açıcısı artık kutunun kendi ::before'u (ek/chat.js:
   satırlar dokunuşu alttaki kontrollere geçirir, yalnız bu düğme dokunuş alır). */
html body #kc-box.kc-mobile:not(.kc-open)::before {
  content: 'Sohbet'; border: 0; border-radius: 0; background: rgba(0,0,0,.72); padding: 6px 10px;
  font: 600 13px/1 var(--ui-baslik); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
html body #kc-box.kc-mobile #kc-inputrow.open::before { font-size: 12px; padding: 0 8px; }
html body #kc-box.kc-mobile #kc-input { font-size: 12px; padding: 6px 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   ONAY KUTUSU (#confirmModal) — GTA uyarı kutusu: başlık şeridi, mesaj,
   Evet (beyaz) / Hayır (koyu). Oyun sürerken de açık kalabilir (mobil CP
   onayı) → bulanıklaştırma yok, opak zemin.
   ══════════════════════════════════════════════════════════════════════════ */
#confirmModal {
  width: min(380px, 88vw); max-width: none; padding: 0;
  border: 0; border-radius: 0; box-shadow: 0 12px 40px rgba(0,0,0,.55);
  background: var(--ui-panel-koyu); color: #fff;
  font-family: var(--ui-govde) !important; text-align: left;
  border-top: 3px solid var(--ui-vurgu);
}
#confirmModal .confirm-content::before {
  content: 'Onay'; display: block; padding: 12px 18px 0;
  font: 600 13px/1 var(--ui-baslik); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
#confirmModal .confirm-content p { margin: 0; padding: 8px 18px 16px; font: 500 14.5px/1.5 var(--ui-govde); color: rgba(255,255,255,.9); }
#confirmModal .confirm-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
#confirmModal .confirm-buttons button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; box-shadow: none; transform: none;
  font: 600 14px/1 var(--ui-baslik); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  transition: background var(--ui-gecis), color var(--ui-gecis);
}
#confirmModal #confirmYes { background: var(--ui-secili); color: var(--ui-secili-yazi); }
#confirmModal #confirmYes:hover, #confirmModal #confirmYes:focus-visible { background: #fff; transform: none; }
#confirmModal #confirmNo { background: transparent; color: #fff; border: 0; }
#confirmModal #confirmNo:hover, #confirmModal #confirmNo:focus-visible { background: rgba(255,255,255,.12); transform: none; }
#confirmModal .confirm-buttons button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
body.touch-device #confirmModal { width: min(300px, 46vw); padding: 0; border-radius: 0; }
body.touch-device #confirmModal .confirm-content::before { font-size: 11px; padding: 9px 12px 0; }
body.touch-device #confirmModal .confirm-content p { font-size: 12.5px; padding: 5px 12px 10px; margin: 0; }
body.touch-device #confirmModal .confirm-buttons button { min-height: 34px; padding: 0 10px; font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLO PENCERESİ (#imagePopup) — koyu perde; geniş ekranda görsel solda,
   açıklama sağda panelde. Tam ekran 32px bulanıklaştırma kaldırıldı (canlı
   WebGL üstünde pahalıydı ve metni okunaksız bırakıyordu).
   ══════════════════════════════════════════════════════════════════════════ */
#imagePopup {
  inset: 0; width: auto; height: auto; padding: 56px 48px 40px;
  border: 0; border-radius: 0; background: rgba(0,0,0,.86);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--ui-govde); transition: none;
}
#imagePopup .contentWrapper { gap: 0; max-width: 1400px; }
#imagePopup .tablogorseli, #imagePopup img.tablogorseli {
  max-width: 60vw; max-height: 62vh; margin: 0 auto; border-radius: 0;
  border: 1px solid rgba(255,255,255,.14); background: #000; box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
#imagePopup p {
  box-sizing: border-box; max-width: min(760px, 70vw); margin: 0; padding: 14px 18px 16px;
  background: rgba(0,0,0,.72); border-top: 3px solid var(--ui-vurgu);
  font: 400 16px/1.65 var(--ui-govde); letter-spacing: 0; color: rgba(255,255,255,.92);
  text-align: left; text-shadow: none;
}
#imagePopup p:empty { display: none; }
@media (min-width: 1000px) and (min-aspect-ratio: 4/3) {
  body:not(.touch-device) #imagePopup .contentWrapper { flex-direction: row; align-items: center; }
  body:not(.touch-device) #imagePopup .tablogorseli { max-width: 56vw; max-height: 78vh; margin: 0; }
  body:not(.touch-device) #imagePopup p { width: 400px; max-width: 32vw; max-height: 78vh; overflow-y: auto; align-self: center; }
}
#closeButton {
  top: 16px; right: 16px; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 0; background: rgba(0,0,0,.72); color: #fff;
  font: 400 26px/40px var(--ui-govde); text-align: center; transition: background var(--ui-gecis), color var(--ui-gecis);
}
#closeButton:hover, #closeButton:focus-visible { background: #f2f2f2; color: #0c0c0c; outline: none; }
body.touch-device #imagePopup { background: rgba(0,0,0,.9); }
body.touch-device #imagePopup .contentWrapper { gap: 0; width: 94%; max-height: 88%; align-items: center; }
body.touch-device #imagePopup .tablogorseli { max-width: 44vw; max-height: 74vh; border-radius: 0; box-shadow: none; }
body.touch-device #imagePopup p {
  max-width: 46vw; max-height: 74vh; overflow-y: auto; padding: 10px 12px 12px;
  font-size: 12px; line-height: 1.55; border-top-width: 2px;
}
body.touch-device #imagePopup p::before { font-size: 11px; margin-bottom: 4px; }
body.touch-device #closeButton { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 22px; line-height: 34px; border-radius: 0; }
body.touch-device #closeButton:focus { outline: none; }

/* ══════════════════════════════════════════════════════════════════════════
   BİLGİ PENCERESİ (#infoModal)
   ══════════════════════════════════════════════════════════════════════════ */
#infoModal {
  width: min(620px, 90vw); min-width: 0; max-height: 80vh; overflow-y: auto; box-sizing: border-box;
  padding: 0 0 18px; border: 0; border-top: 3px solid var(--ui-vurgu); border-radius: 0;
  background: var(--ui-panel-koyu); color: rgba(255,255,255,.9); box-shadow: 0 12px 40px rgba(0,0,0,.55);
  font: 400 15px/1.65 var(--ui-govde) !important; letter-spacing: 0; text-align: left;
}
#infoModal::before {
  content: 'Hakkında'; display: block; padding: 14px 56px 10px 20px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font: 600 17px/1 var(--ui-baslik); letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
#infoModal .info-content { padding: 0 20px; }
#infoModal .info-close { top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 0; background: transparent; color: #fff; font-size: 24px; }
#infoModal .info-close:hover { background: #f2f2f2; color: #0c0c0c; }
body.touch-device #infoModal { width: min(560px, 72vw); padding: 0 0 12px; border-radius: 0; font-size: 12.5px !important; }
body.touch-device #infoModal::before { font-size: 13px; padding: 10px 48px 8px 14px; margin-bottom: 8px; }
body.touch-device #infoModal .info-content { padding: 0 14px; }
body.touch-device #infoModal .info-close { top: 5px; right: 5px; width: 32px; height: 32px; }

/* ══════════════════════════════════════════════════════════════════════════
   KOLTUK MENÜLERİ (heli.js, gemi.js, pickup.js) — GTA etkileşim menüsü.
   Menüler satır içi stille kuruluyor → burada !important ile ezilir.
   Yapı: ilk <div> başlık, ardından <button> satırları, sonuncusu "Vazgeç".
   ══════════════════════════════════════════════════════════════════════════ */
#heli-seat-menu, #gemi-seat-menu, #pickup-seat-menu {
  width: min(340px, 90vw) !important; min-width: 0 !important; box-sizing: border-box !important;
  padding: 0 0 4px !important; border: 0 !important; border-radius: 0 !important;
  background: rgba(0,0,0,.84) !important; color: #fff !important; text-align: left !important;
  font: 500 15px/1.3 var(--ui-govde) !important; box-shadow: 0 18px 50px rgba(0,0,0,.5) !important;
}
#heli-seat-menu > div:first-child, #gemi-seat-menu > div:first-child, #pickup-seat-menu > div:first-child {
  margin: 0 0 4px !important; padding: 14px 18px 10px !important; text-align: left !important;
  background: #0b0b0b !important; border-top: 2px solid var(--ui-vurgu) !important;
  font: 600 15px/1.2 var(--ui-baslik) !important; letter-spacing: .1em !important; text-transform: uppercase !important;
}
#heli-seat-menu > button, #gemi-seat-menu > button, #pickup-seat-menu > button {
  display: flex !important; align-items: center !important; width: 100% !important; min-height: 42px !important;
  margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: #fff !important; text-align: left !important; cursor: pointer !important;
  font: 500 14px/1.2 var(--ui-govde) !important; transition: background var(--ui-gecis), color var(--ui-gecis);
}
#heli-seat-menu > button:hover:not(:disabled), #gemi-seat-menu > button:hover, #pickup-seat-menu > button:hover,
#heli-seat-menu > button:focus-visible, #gemi-seat-menu > button:focus-visible, #pickup-seat-menu > button:focus-visible {
  background: var(--ui-secili) !important; color: var(--ui-secili-yazi) !important; outline: none;
}
#heli-seat-menu > button:disabled { color: rgba(255,255,255,.35) !important; cursor: not-allowed !important; }
#heli-seat-menu > button:last-child, #gemi-seat-menu > button:last-child, #pickup-seat-menu > button:last-child {
  margin-top: 4px !important; border-top: 1px solid rgba(255,255,255,.1) !important; color: rgba(255,255,255,.7) !important;
}
body.touch-device #heli-seat-menu, body.touch-device #gemi-seat-menu, body.touch-device #pickup-seat-menu { width: min(300px, 46vw) !important; }
body.touch-device #heli-seat-menu > div:first-child, body.touch-device #gemi-seat-menu > div:first-child,
body.touch-device #pickup-seat-menu > div:first-child { padding: 8px 12px 6px !important; font-size: 12.5px !important; }
body.touch-device #heli-seat-menu > button, body.touch-device #gemi-seat-menu > button,
body.touch-device #pickup-seat-menu > button { min-height: 32px !important; padding: 0 12px !important; font-size: 12px !important; }

/* ══════════════════════════════════════════════════════════════════════════
   EKRAN ÜSTÜ PARÇALAR (HUD) — bağlantı rozeti, geçiş yazısı, çıkış sayacı,
   ön yükleme rozeti, tam ekran etiketi. Satır içi / sonradan eklenen stiller
   nedeniyle gerektiğinde !important ya da "html body #id" özgüllüğü.
   ══════════════════════════════════════════════════════════════════════════ */
#online-durum-rozeti {
  top: 56px !important; padding: 8px 14px !important; border: 0 !important; border-left: 3px solid var(--ui-vurgu) !important;
  border-radius: 0 !important; background: rgba(0,0,0,.82) !important; color: #fff !important;
  font: 500 13.5px/1.4 var(--ui-govde) !important; box-shadow: none !important;
}
body.touch-device #online-durum-rozeti { top: calc(6px + env(safe-area-inset-top)) !important; padding: 5px 10px !important; font-size: 11.5px !important; }

#fadeOverlay.transition-message::after {
  font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--ui-baslik); letter-spacing: .22em;
  color: #fff; text-shadow: none; white-space: normal; width: max-content; max-width: 90vw; text-align: center;
}
body.touch-device #fadeOverlay.transition-message::after { font-size: 15px; }

#exitCounter {
  padding: 9px 16px; background: rgba(0,0,0,.78); border-left: 3px solid var(--ui-vurgu);
  font: 600 15px/1.2 var(--ui-baslik) !important; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
body.touch-device #exitCounter { font-size: 12px !important; padding: 5px 10px; }

html body #onyukleme-rozet {
  border: 0; border-left: 3px solid var(--ui-altin); border-radius: 0; background: rgba(0,0,0,.8);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  font: 600 13.5px/1.35 var(--ui-govde); letter-spacing: 0;
}
html body #onyukleme-rozet .halka { border-top-color: var(--ui-altin); }
html body.touch-device #onyukleme-rozet { font-size: 11.5px; padding: 5px 10px; }
html body.touch-device #onyukleme-rozet .alt { font-size: 10.5px; }

#fullscreenWarning {
  border: 0; border-radius: 0; background: rgba(0,0,0,.78); box-shadow: none; text-shadow: none;
  font: 600 14px/1.2 var(--ui-baslik); letter-spacing: .08em; text-transform: uppercase;
}
#fullscreenWarning:hover { background: #f2f2f2; color: #0c0c0c; }
body.touch-device #fullscreenWarning { font-size: 12px; padding: 5px 10px; border-radius: 0; }

/* Görev yazıları (gorev.js, rehine-gorev.js, kandil-gorev.js): tek yazı dili.
   Altyazılar gövde yazısı, büyük başlıklar yoğun başlık yazısı. */
html body #gorev-altyazi, html body #kandil-altyazi { font-family: var(--ui-govde); font-weight: 600; letter-spacing: 0; }
html body #rehine-gorev-altyazi {
  font-family: var(--ui-govde); font-weight: 600; letter-spacing: 0; border-radius: 0; background: rgba(0,0,0,.72); box-shadow: none;
}
html body #gorev-eylem { font-family: var(--ui-baslik); font-weight: 700; letter-spacing: .12em; }
html body #kandil-kaldirma {
  border: 0; border-left: 3px solid #fff; border-radius: 0; background: rgba(0,0,0,.72);
  font-family: var(--ui-baslik); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
html body #gorev-buyuk { font-family: var(--ui-baslik); font-weight: 600; letter-spacing: .14em; }
html body #kandil-giris .kg-kart, html body #kandil-bitis .kb-metin, html body #rehine-gorev-sonuc { font-family: var(--ui-baslik); }
html body.touch-device #gorev-altyazi, html body.touch-device #kandil-altyazi, html body.touch-device #rehine-gorev-altyazi { font-size: 12.5px; }
html body.touch-device #gorev-eylem, html body.touch-device #kandil-kaldirma { font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════════
   OYUN ÖNCESİ: ONAY → GİRİŞ (ek/hesap-ui.js) → YÜKLEME
   Üç ekranda sade panel, okunaklı sistem yazısı ve aynı koyu kırmızı geçiş
   kullanılır.
   Hesap ekranı stili çalışma anında eklendiği için özgüllük korunur.
   ══════════════════════════════════════════════════════════════════════════ */
#consentScreen, #loadingScreen, html body #cbh-auth {
  background: #101317;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#consentScreen::before, .loading-bg, html body #cbh-auth::before {
  background-image: none;
  background-color: #101317;
  filter: none;
  animation: none;
}
#consentScreen::after, .loading-bg::after, html body #cbh-auth::after { background: none; }
.consent-card, .loading-card, html body #cbh-auth .cardwrap {
  border: 1px solid #343b43 !important;
  border-radius: 4px !important;
  background: #1a1f25 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  scrollbar-color: #4d5863 transparent;
  scrollbar-width: thin;
}
.consent-logo, html body #cbh-auth .brand .logo { display: none; }
.consent-word, html body #cbh-auth .brand .name {
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .08em;
  color: #c5cbd2;
}
.consent-brand, html body #cbh-auth .brand { justify-content: flex-start; }
.consent-title, .loading-title, html body #cbh-auth .h {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 600 !important; text-transform: none !important;
  letter-spacing: -.015em !important; font-size: clamp(22px, 2.5vw, 27px) !important;
  line-height: 1.25 !important; text-align: left !important;
}
.consent-body p, html body #cbh-auth .lead, .loading-desc {
  color: #bdc5cd !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.consent-body a { text-decoration-color: #939da7; }
.consent-body a:hover { text-decoration-color: #fff; }
.loading-desc { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
html body #cbh-auth .lead { margin-left: 0; margin-right: 0; text-align: left; }
.consent-btn, #loadingStartButton, html body #cbh-auth .primary {
  border: 1px solid #d9dfe5 !important; border-radius: 4px !important; box-shadow: none !important;
  background: #e7ebef !important; color: #182028 !important;
  font: 600 14px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
.consent-btn::before, #loadingStartButton::before, html body #cbh-auth .primary::before { display: none; }
.consent-btn:hover, #loadingStartButton:hover, html body #cbh-auth .primary:hover:not(:disabled) {
  background: #fff !important; transform: none !important; box-shadow: none !important;
}
#loadingStartButton svg { color: currentColor; stroke: currentColor; }
.consent-btn:focus-visible, html body #cbh-auth .primary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#nickInput, html body #cbh-auth input:not([type="checkbox"]) { border-radius: 4px !important; }
.loading-status-container, html body #cbh-auth .note, html body #cbh-auth .msg:not(:empty) { border-radius: 4px !important; }
.sys-check, .sys-check__warn { border-radius: 4px !important; }

html body #cbh-auth .tabs { gap: 2px; padding: 0; background: transparent; border: 0; border-radius: 0; }
html body #cbh-auth .tab {
  min-height: 40px; border: 1px solid #343b43; border-radius: 4px; background: #20262d;
  color: #bdc5cd; font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0; text-transform: none;
}
html body #cbh-auth .tab:hover:not(.on):not(:disabled) { background: #2a3139; color: #fff; }
html body #cbh-auth .tab.on { background: #e7ebef; color: #182028; border-color: #d9dfe5; }
html body #cbh-auth .step { border-radius: 2px; }
html body #cbh-auth .step.on { background: #d9dfe5; }
html body #cbh-auth .check.ok::before { border-color: #64727e; background-color: #64727e; }
html body #cbh-auth .anon-gir {
  border-radius: 4px !important; border: 1px solid #48525c !important; background: #252c33 !important; color: #f4f6f8 !important;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: 0; text-transform: none; min-height: 40px;
}
html body #cbh-auth .anon-gir:hover { background: #343d47 !important; }
html body #cbh-auth .anon-info { border-radius: 4px !important; border: 1px solid #48525c !important; background: #252c33 !important; width: 42px !important; height: 42px !important; }
html body #cbh-auth .anon-note { border-radius: 4px !important; border: 1px solid #48525c !important; background: #20262d !important; }
@media (orientation: landscape) and (max-height: 560px) {
  html body #cbh-auth .brand .name { font-size: 14px; }
  html body #cbh-auth .tab { min-height: 30px; font-size: 12px; }
  html body #cbh-auth .h { font-size: 16px !important; }
  html body #cbh-auth .primary { font-size: 13px !important; }
  html body #cbh-auth .anon-gir { font-size: 12px !important; min-height: 32px; }
  html body #cbh-auth .anon-info { width: 34px !important; height: 34px !important; }
}
@media (max-height: 520px) {
  .consent-title { font-size: 17px !important; }
  .consent-btn { font-size: 13px !important; }
}
html body #yuklemeCubuk .yray { height: 6px; border-radius: 0; background: rgba(255,255,255,.1); box-shadow: none; }
html body #yuklemeCubuk .ydolu { border-radius: 0; background: var(--ui-secili); box-shadow: none; }
html body #yuklemeCubuk.bitti .ydolu { background: var(--ui-yesil); box-shadow: none; }
html body #yuklemeCubuk .yetiket { font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.sys-toggle { border-radius: 4px; }

/* Onay ekranı: hareketli görsel yerine çok koyu kırmızı, sabit bir geçiş. */
#consentScreen {
  background-color: #100b0d;
  background-image: linear-gradient(135deg, #0b0a0c 0%, #210d12 48%, #100a0d 100%);
}
#consentScreen::before, #consentScreen::after { content: none; }
.consent-card {
  background: linear-gradient(145deg, #241519 0%, #1b1215 54%, #151114 100%) !important;
  border-color: #55383d !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.3) !important;
  scrollbar-color: #765359 transparent;
}
.consent-word { color: #e6d9db; }
.consent-body p { color: #d4c5c8 !important; }
.consent-body a { color: #fff; text-decoration-color: #b88991; }
.consent-body a:hover { text-decoration-color: #fff; }
.consent-actions { display: flex; flex-direction: column; min-width: 0; }
.consent-btn {
  background: #f0e7e5 !important;
  border-color: #f0e7e5 !important;
  color: #241417 !important;
}
.consent-btn:hover { background: #fff !important; }
.consent-foot { color: #bba9ad; }

/* Yatay telefon: bilgi kendi alanında kayar; eylem ve açıklaması sabit kalır. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 440px) {
  #consentScreen, body.touch-device #consentScreen {
    align-items: center;
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
             max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  .consent-card, body.touch-device .consent-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(145px, 27vw, 220px);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: clamp(18px, 3vw, 34px);
    row-gap: 12px;
    width: min(860px, 100%);
    /* dvh'yi tanımayan tarayıcı (Chrome/WebView < 108, iOS 15.0-15.3) bir alttaki
       satırı atar; vh satırı yedek olarak kalır, kart yine ekrana sığar. */
    height: min(440px, calc(100vh - 16px));
    height: min(440px, calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    max-height: none;
    padding: clamp(16px, 3vh, 24px) clamp(18px, 3vw, 30px);
    overflow: hidden;
    animation: none;
  }
  .consent-brand, body.touch-device .consent-brand {
    display: flex; grid-column: 2; grid-row: 1;
    justify-content: flex-start; align-items: center; margin: 0;
  }
  .consent-title, body.touch-device .consent-title {
    grid-column: 1; grid-row: 1; margin: 0;
    font-size: clamp(18px, 2.4vw, 22px) !important;
    line-height: 1.2 !important;
  }
  .consent-body, body.touch-device .consent-body {
    grid-column: 1; grid-row: 2;
    min-height: 0; overflow-y: auto; padding-right: 12px;
    scrollbar-width: thin; scrollbar-color: #765359 transparent;
    overscroll-behavior: contain;
    -webkit-mask-image: none; mask-image: none;
  }
  .consent-body p, body.touch-device .consent-body p {
    font-size: clamp(12px, 1.6vw, 14px); line-height: 1.55; margin-bottom: 11px;
  }
  .consent-actions {
    grid-column: 2; grid-row: 2; align-self: stretch;
    justify-content: center; gap: 12px;
    padding-left: clamp(12px, 2.5vw, 26px);
    border-left: 1px solid #55383d;
  }
  .consent-btn, body.touch-device .consent-btn {
    width: 100%; min-height: 48px; margin: 0; padding: 10px 12px;
    font-size: 13px !important; line-height: 1.3 !important; white-space: normal;
  }
  .consent-foot, body.touch-device .consent-foot {
    display: block; margin: 0; text-align: left;
    font-size: 11px; line-height: 1.4;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 439px) {
  .consent-card, body.touch-device .consent-card { max-height: calc(100dvh - 16px); }
  .consent-actions { flex: none; }
}

/* Hesap ekranı ("Tekrar hoş geldin", kayıt, yetkili): onay ekranıyla aynı tema. */
html body #cbh-auth {
  background-color: #100b0d;
  background-image: linear-gradient(135deg, #0b0a0c 0%, #210d12 48%, #100a0d 100%);
}
html body #cbh-auth::before, html body #cbh-auth::after { content: none; }
html body #cbh-auth .cardwrap {
  width: min(440px, 100%);
  padding: 28px 32px;
  background: linear-gradient(145deg, #241519 0%, #1b1215 54%, #151114 100%) !important;
  border-color: #55383d !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.3) !important;
  scrollbar-color: #765359 transparent;
}
html body #cbh-auth .brand { margin-bottom: 15px; }
html body #cbh-auth .brand .name { color: #e6d9db; }
html body #cbh-auth .tabs { margin-bottom: 18px; }
html body #cbh-auth .tab { background: #2a1a1e; border-color: #55383d; color: #d4c5c8; }
html body #cbh-auth .tab:hover:not(.on):not(:disabled) { background: #3a2328; }
html body #cbh-auth .tab.on { background: #f0e7e5; border-color: #f0e7e5; color: #241417; }
html body #cbh-auth .lead, html body #cbh-auth label,
html body #cbh-auth label.hatirla { color: #d4c5c8 !important; }
html body #cbh-auth label { margin-top: 15px; margin-bottom: 7px; }
html body #cbh-auth label.hatirla input { accent-color: #a76872; }
html body #cbh-auth input:not([type="checkbox"]) {
  background: #130d10; border-color: #55383d; box-shadow: none;
}
html body #cbh-auth input:not([type="checkbox"]):hover:not(:focus) { background: #180e12; border-color: #765359; }
html body #cbh-auth input:not([type="checkbox"]):focus {
  background: #180e12; border-color: #b88991;
  box-shadow: 0 0 0 3px rgba(184,137,145,.16);
}
html body #cbh-auth input::placeholder { color: #947f84; }
html body #cbh-auth .primary {
  margin-top: 18px; background: #f0e7e5 !important;
  border-color: #f0e7e5 !important; color: #241417 !important;
}
html body #cbh-auth .primary:hover:not(:disabled) { background: #fff !important; }
html body #cbh-auth .anon-gir, html body #cbh-auth .anon-info {
  background: #2a1a1e !important; border-color: #765359 !important;
}
html body #cbh-auth .anon-gir:hover { background: #3a2328 !important; }
html body #cbh-auth .note, html body #cbh-auth .anon-note {
  color: #c9b6ba; background: #211619 !important; border-color: #55383d !important;
}
html body #cbh-auth .link, html body #cbh-auth .back { color: #c9b6ba; }
html body #cbh-auth .link:hover, html body #cbh-auth .back:hover { color: #fff; }
html body #cbh-auth .step.on { background: #b88991; }
html body #cbh-auth .check.ok::before { border-color: #9c606a; background-color: #9c606a; }

@media (max-width: 540px) {
  html body #cbh-auth .cardwrap { width: min(350px, 100%); padding: 22px 20px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  html body #cbh-auth .cardwrap {
    width: min(720px, 100%); max-height: calc(100dvh - 16px);
    padding: 12px 16px; animation: none;
  }
  html body #cbh-auth .brand { margin: 0; }
  html body #cbh-auth .tabs { margin: 0; }
  html body #cbh-auth .view { scrollbar-width: thin; scrollbar-color: #765359 transparent; }
  html body #cbh-auth .primary { margin-top: 10px; }
}
@media (orientation: landscape) and (max-height: 320px) {
  html body #cbh-auth .cardwrap { padding: 8px 12px; }
  html body #cbh-auth .brand .name { font-size: 12px; }
  html body #cbh-auth .tab { min-height: 27px; font-size: 11px; }
  html body #cbh-auth .h { font-size: 15px !important; }
  html body #cbh-auth .lead { font-size: 10.5px; line-height: 1.3; }
  html body #cbh-auth label { margin: 5px 0 3px; font-size: 10.5px; }
  html body #cbh-auth input:not([type="checkbox"]) { padding: 6px 9px; font-size: 13px; }
  html body #cbh-auth label.hatirla { margin-top: 7px; font-size: 11px; }
  html body #cbh-auth label.hatirla span { font-size: 9px; }
  html body #cbh-auth .primary {
    min-height: 34px; margin-top: 8px; padding: 7px 10px;
    font-size: 12px !important;
  }
  html body #cbh-auth .linkrow { margin-top: 5px; }
}

/* Yükleme ekranı: onay ve hesap ekranlarıyla aynı sabit renk sistemi. */
#loadingScreen {
  background-color: #100b0d;
  background-image: linear-gradient(135deg, #0b0a0c 0%, #210d12 48%, #100a0d 100%);
}
#loadingScreen .loading-bg { display: none; }
#loadingScreen .loading-card {
  background: linear-gradient(145deg, #241519 0%, #1b1215 54%, #151114 100%) !important;
  border-color: #55383d !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.3) !important;
  scrollbar-color: #765359 transparent;
}
#loadingScreen .loading-desc { color: #d4c5c8 !important; }
#loadingScreen .loading-status-container,
#loadingScreen .loading-status-container.loaded {
  background: #211619 !important;
  border-color: #55383d !important;
}
#loadingScreen .loading-spinner { border-color: #50343a !important; border-top-color: #d3aab0 !important; }
#loadingScreen #loadingStatusText,
#loadingScreen .loading-status-container.loaded #loadingStatusText { color: #e6d9db !important; }
#loadingScreen #nickInput {
  background: #130d10; border-color: #55383d;
  color: #fff; box-shadow: none;
}
#loadingScreen #nickInput::placeholder { color: #947f84; }
#loadingScreen #nickInput:hover { background: #180e12; border-color: #765359; }
#loadingScreen #nickInput:focus {
  background: #180e12; border-color: #b88991;
  box-shadow: 0 0 0 3px rgba(184,137,145,.16);
}
#loadingScreen #nickInput.gecersiz,
#loadingScreen #nickInput[aria-invalid="true"] {
  border-color: #e28a92;
  box-shadow: 0 0 0 3px rgba(226,138,146,.14);
}
#loadingScreen .nick-help { color: #c9b6ba; }
#loadingScreen .nick-help.hata { color: #f3a1a8; }
#loadingScreen .loading-hint { color: #bba9ad; }
#loadingScreen #loadingStartButton {
  background: #f0e7e5 !important; border-color: #f0e7e5 !important;
  color: #241417 !important;
}
#loadingScreen #loadingStartButton:hover { background: #fff !important; }
#loadingScreen .sys-toggle,
#loadingScreen .sys-check { background: #211619; border-color: #55383d; color: #c9b6ba; }
#loadingScreen .sys-toggle:hover { background: #2a1a1e; border-color: #765359; color: #fff; }
#loadingScreen .sys-toggle.has-warn { color: #f5c17a; border-color: #9b7145; background: #2a1d17; }
#loadingScreen .sys-toggle.has-bad { color: #ff9ca4; border-color: #b55d68; background: #32171d; }
html body #loadingScreen #yuklemeCubuk .yray { background: #3b282d; }
html body #loadingScreen #yuklemeCubuk .ydolu { background: #c18b93; box-shadow: none; }
html body #loadingScreen #yuklemeCubuk .yparilti { display: none; }
html body #loadingScreen #yuklemeCubuk.bitti .ydolu { background: #78ad8b; box-shadow: none; }
html body #loadingScreen #yuklemeCubuk .yetiket { color: #d4c5c8; }

@media (orientation: landscape) and (max-height: 560px) {
  #loadingScreen .loading-card { animation: none; }
}
