/* Kabuk: üst çubuk, yan şeritler, mobil sekme çubuğu. İşaretleme kabuk.mjs'te. Sınıf ön eki kb-.
   app.css, taslak.css, ortak.css ve (mobilde) mobil.css'ten sonra yüklenir. Mobil kurallar .mob altında.
   Ölçek: yazı 12 13 14 15 16 / başlık Unbounded 15 16 34; boşluk 4 8 12 16 24; yarıçap satır 12-14, kart 20, hap 999.
   Hareket: yalnız transform/opacity/renk; süre ve eğriler ortak.css'ten (--hk-*). */

.scr {
  --kb-zemin: #0e0c12;                    /* çubuk */
  --kb-kat: #18151e;                      /* açılır panel */
  --kb-c1: rgba(255, 255, 255, 0.07);     /* ince ayırıcı */
  --kb-c2: rgba(255, 255, 255, 0.12);     /* kutu kenarı */
  --kb-sis: rgba(255, 255, 255, 0.06);    /* üstüne gelme zemini */
  --kb-kenar: max(24px, calc((100% - 1880px) / 2 + 24px)); /* çubuk içeriği main.app ile aynı hizada başlar */
}

.kb-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kb-ic.k { width: 16px; height: 16px; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* avatar: baş harf. Kullanıcının kendisi mavi (oyuncu rengi), başkaları nötr. */
.kb-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2a2631; color: var(--fg-2); font: 700 13px/1 var(--text); }
.kb-av.ben { background: linear-gradient(160deg, #5b6bff, var(--me) 70%); color: #fff; }
.kb-av.b { width: 44px; height: 44px; font-size: 16px; }
.kb-av.kupa { background: rgba(242, 189, 74, 0.16); color: var(--t); }
.kb-av.para { background: rgba(75, 224, 138, 0.14); color: var(--ok); font: 800 15px/1 var(--display); }
.kb-av.t { background: none; border-radius: 0; }

/* ================= üst çubuk (masaüstü) =================
   25.11 ikinci tur: beş öğe, "Maç aç" yok. Sol: marka | ayraç | menü. Sağ: (maç çipi) bakiye | ayraç | mesaj, bildirim, ben.
   Her şey tek yükseklikte (36-40) ve tek yazı ağırlığında; renk yalnız seçili öğenin çizgisinde ve sayı rozetinde. */
header.kb-ust {
  position: relative; z-index: 5; display: flex; align-items: stretch;
  height: 72px; padding: 0 var(--kb-kenar);
  background: linear-gradient(180deg, #0d0c11, #0b0a0e); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* çubuğun alt kenarında ince ışık: marka kırmızısı soldan, oyuncu mavisi sağdan (alttaki .leak ile aynı iki renk) */
header.kb-ust::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(255, 59, 63, 0.55) 26%, rgba(255, 255, 255, 0.14) 50%, rgba(91, 107, 255, 0.5) 74%, transparent 96%);
}
.kb-marka {
  align-self: center; flex: none; width: 158px; height: 29px; margin: 0;
  background: url(logo-yatay.svg) 0 50% / contain no-repeat; font-size: 0; color: transparent; overflow: hidden;
  transition: opacity var(--hk-1), scale 160ms var(--hk-out);
}
.kb-marka:hover { opacity: 0.86; }
.kb-marka:active { scale: 0.98; }

/* gezinme (25.11 üçüncü tur): beş öğe tek bir kapsülün içinde, çubuğun tam ortasında.
   Seçili öğe beyaz dolu hap (sitedeki seçili çip diliyle aynı); üstüne gelince soluk zemin. Altı çizili düz yazı dili bırakıldı. */
.kb-nav {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.kb-nav a {
  position: relative; display: flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 10px;
  color: rgba(246, 244, 248, 0.66); font: 600 15px/1 var(--text); white-space: nowrap; text-decoration: none;
  transition: color var(--hk-2), background-color var(--hk-2), scale 160ms var(--hk-out);
}
.kb-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.kb-nav a:active { scale: 0.97; }
.kb-nav a[aria-current] { color: #0b0a0e; background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 20px -10px rgba(255, 255, 255, 0.45); }
.kb-nav .kb-secili { display: none; }
.kb-nav a { gap: 8px; }
.kb-n-say {
  min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--fg-2); font: 700 12px/1 var(--text); font-variant-numeric: tabular-nums;
  transition: background-color var(--hk-2), color var(--hk-2);
}
.kb-nav a[aria-current] .kb-n-say { background: #0b0a0e; color: #fff; }
.kb-n-canli { width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 3px rgba(255, 59, 63, 0.18); }
@media (prefers-reduced-motion: no-preference) {
  .kb-n-canli { animation: kb-nabiz 1.8s var(--hk-out) infinite; }
  @keyframes kb-nabiz { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 63, 0.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(255, 59, 63, 0); } }
}
.scr .kb-nav a:focus-visible { outline-offset: 2px; border-radius: 10px; }
.kb-sekme .kb-secili { background: var(--red-hi); }

/* sağ uç */
.kb-son { margin-left: auto; padding-left: 20px; flex: none; display: flex; align-items: center; gap: 4px; }
.kb-ayrac { width: 1px; height: 20px; margin: 0 10px; background: rgba(255, 255, 255, 0.12); }

/* bakiye: tutar cüzdana gider, yanındaki artı para yatırmaya */
.kb-para { display: flex; align-items: stretch; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.kb-para a { display: flex; align-items: center; color: #fff; text-decoration: none; transition: background-color var(--hk-1), color var(--hk-1); }
.kb-bakiye { gap: 8px; padding: 0 14px; border-radius: 10px 0 0 10px; }
.kb-bakiye .kb-ic { color: var(--fg-3); }
.kb-bakiye b { font: 700 15px/1 var(--text); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.kb-yatir { justify-content: center; gap: 4px; padding: 0 12px 0 9px; border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 10px 10px 0; color: var(--ok) !important; font: 600 14px/1 var(--text); }
.kb-yatir .kb-ic { width: 14px; height: 14px; stroke-width: 2.2; }
.kb-para a.kb-yatir:hover { background: rgba(75, 224, 138, 0.1); color: #8ff0b6 !important; }
.kb-para a:hover { background: var(--kb-sis); color: #fff !important; }
.kb-para a:active { background: rgba(255, 255, 255, 0.1); }
/* bakiyenin üstüne gelince (ya da klavyeyle odaklanınca) kilitli tutar: kullanılabilir bakiyeye dahil değildir */
.kb-para { position: relative; }
.kb-ipucu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--kb-c2); background: var(--kb-kat); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.8);
  font: 500 14px/1.2 var(--text); color: var(--fg-2); white-space: nowrap; pointer-events: none;
  opacity: 0; translate: 0 -4px; transition: opacity var(--hk-1), translate var(--hk-2) var(--hk-out);
}
.kb-ipucu .kb-ic { color: var(--fg-3); }
.kb-ipucu b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.kb-bakiye:hover ~ .kb-ipucu, .kb-bakiye:focus-visible ~ .kb-ipucu { opacity: 1; translate: 0 0; transition-delay: 120ms; }

/* misafir: "Steam ile gir" (sitenin birincil kırmızı düğmesi) */
.kb-ac {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; flex: none; border-radius: 12px;
  background: linear-gradient(180deg, #ec2531, #cf1a26); color: #fff; text-decoration: none; white-space: nowrap;
  font: 700 15px/1 var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: filter var(--hk-1), scale 160ms var(--hk-out);
}
.kb-ac:hover { filter: brightness(1.1); }
.kb-ac:active { scale: 0.97; }

/* maçtayken: bakiyenin solunda durum çipi */
.kb-durum {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; margin-right: 10px; padding: 0 14px; flex: none; border-radius: 10px;
  background: rgba(229, 32, 45, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 90, 96, 0.38); color: #fff; text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--text); transition: background-color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-durum small { font: 500 14px/1 var(--text); color: #ffc9cb; font-variant-numeric: tabular-nums; }
.kb-durum:hover { background: rgba(229, 32, 45, 0.24); }
.kb-durum:active { scale: 0.97; }

/* simge düğmesi (bildirim) ve profil düğmesi */
.kb-dugme {
  appearance: none; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0; flex: none;
  border: 0; border-radius: 12px; background: none; color: var(--fg-2); cursor: pointer; font: 600 15px/1 var(--text);
  transition: background-color var(--hk-1), color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-dugme:hover, .kb-dugme:has(+ .kb-pop:popover-open) { background: var(--kb-sis); color: #fff; }
.kb-dugme:has(+ .kb-pop:popover-open) { background: rgba(255, 255, 255, 0.1); }
.kb-dugme:active { scale: 0.96; }
.kb-zil { width: 40px; justify-content: center; color: var(--fg-2); anchor-name: --kb-zil; }
.kb-zil .kb-ic { width: 20px; height: 20px; }
.kb-msj { width: 40px; justify-content: center; color: var(--fg-2); text-decoration: none; }
.kb-msj .kb-ic { width: 20px; height: 20px; }
.kb-msj[aria-current] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.kb-sayi {
  position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-hi); box-shadow: 0 0 0 2px #0c0b10;
}
.kb-ben { margin-left: 6px; height: 44px; padding: 0 10px 0 5px; color: #fff; font-size: 14px; anchor-name: --kb-ben; }
.kb-ben .kb-isim { display: grid; gap: 3px; max-width: 14ch; text-align: left; }
.kb-ben .kb-isim b { font: 600 14px/1 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-ben .kb-isim small { font: 500 12px/1 var(--text); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.kb-ben .kb-av { width: 34px; height: 34px; }
.kb-ben .kb-ok { color: var(--fg-3); transition: rotate var(--hk-2) var(--hk-out); }
.kb-ben:has(+ .kb-pop:popover-open) .kb-ok { rotate: 180deg; }
.kb-yeni { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--text); color: var(--fg-2); }
.kb-yeni b { font-weight: 600; color: #fff; }

/* ---------- açılır paneller (yerel popover) ----------
   Tetikleyicinin köşesinden büyüyerek açılır; kapanışı daha kısa. Dışarı tıklayınca ve Esc ile tarayıcı kapatır. */
.kb-pop {
  position: fixed; inset: auto; margin: 0; padding: 8px; width: 384px; max-width: calc(100vw - 24px); max-height: calc(100vh - 96px); overflow: auto;
  top: 70px; right: 24px;
  border: 1px solid var(--kb-c2); border-radius: 20px; background: var(--kb-kat); color: var(--fg);
  box-shadow: 0 28px 60px -16px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  font: 400 15px/1.4 var(--text);
  transform-origin: calc(100% - 20px) 0;
  opacity: 0; transform: translateY(-6px) scale(0.96);
  transition: opacity 110ms ease-out, transform 110ms var(--hk-out), overlay 110ms allow-discrete, display 110ms allow-discrete;
}
.kb-pop::backdrop { background: none; }
.kb-pop:popover-open { opacity: 1; transform: none; transition-duration: var(--hk-2); }
@starting-style { .kb-pop:popover-open { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.kb-bil { position-anchor: --kb-zil; top: calc(anchor(bottom) + 10px); right: anchor(right); }
.kb-prf { position-anchor: --kb-ben; top: calc(anchor(bottom) + 10px); right: anchor(right); width: 300px; }

.kb-pb { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px 10px; }
.kb-pb h2 { margin: 0; font: 800 16px/1.2 var(--display); }
.kb-pb span { font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kb-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kb-bl a {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 8px; column-gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px;
  color: var(--fg-2); text-decoration: none; transition: background-color var(--hk-1);
}
.kb-bl a:hover { background: var(--kb-sis); }
.kb-bl a:active { background: rgba(255, 255, 255, 0.09); }
.kb-bl .kb-av { width: 36px; height: 36px; margin-top: 1px; }
.kb-bl .kb-bm { display: block; font-size: 14px; line-height: 20px; }
.kb-bl .kb-bm b { font-weight: 600; color: var(--fg-2); }
.kb-bl time { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; color: var(--fg-3); }
.kb-bl i { align-self: center; width: 8px; height: 8px; border-radius: 50%; }
.kb-bl .yeni .kb-bm { color: #fff; }
.kb-bl .yeni .kb-bm b { color: #fff; font-weight: 700; }
.kb-bl .yeni i { background: var(--red-hi); }
.kb-pa { display: flex; margin: 6px 4px 0; padding: 6px 0 0; border-top: 1px solid var(--kb-c1); }
.kb-pa a { display: flex; align-items: center; min-height: 40px; padding: 0 8px; border-radius: 10px; font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color var(--hk-1), background-color var(--hk-1); }
.kb-pa a:hover { color: #fff; background: var(--kb-sis); }

.kb-kim { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.kb-kim b { display: block; font: 800 16px/1.2 var(--display); }
.kb-kim span span { display: block; margin-top: 3px; font-size: 14px; line-height: 18px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kb-tk { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 15px; }
.kb-tk b { font-weight: 600; }
.kb-tk small { margin-left: auto; font-size: 14px; color: var(--fg-2); }
.kb-ml { display: grid; gap: 2px; }
.kb-ml a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--fg); font: 500 15px/1 var(--text); text-decoration: none; transition: background-color var(--hk-1), color var(--hk-1);
}
.kb-ml a .kb-ic { color: var(--fg-3); transition: color var(--hk-1); }
.kb-ml a:hover { background: var(--kb-sis); color: #fff; }
.kb-ml a:hover .kb-ic { color: #fff; }
.kb-ml a:active { background: rgba(255, 255, 255, 0.09); }
.kb-ml a small { margin-left: auto; font: 700 13px/1 var(--display); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kb-ml a .kb-iki { display: grid; gap: 5px; padding: 9px 0; }
.kb-ml a .kb-iki span { font: 500 13px/1 var(--text); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kb-ml a[aria-current] { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 600; }
.kb-ml hr { border: 0; border-top: 1px solid var(--kb-c1); margin: 6px 8px; }
.kb-ml a.cik { color: var(--fg-2); }
.scr .kb-pop a:focus-visible, .scr .kb-dugme:focus-visible, .scr .kb-para a:focus-visible { outline-offset: -2px; border-radius: 12px; }

/* ================= sol şerit ================= */
.kb-serit { gap: 24px; }
.kb-bh { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 10px; font: 800 16px/1.25 var(--display); }
.kb-bh a, .kb-bh small { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font: 500 14px/1 var(--text); color: var(--fg-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.kb-bh a { min-height: 28px; padding: 0 2px 0 8px; margin-right: -4px; border-radius: 8px; transition: color var(--hk-1), background-color var(--hk-1); }
.kb-bh a .kb-ic { transition: translate var(--hk-2) var(--hk-out); }
.kb-bh a:hover { color: #fff; }
.kb-bh a:hover .kb-ic { translate: 2px 0; }

/* odak: şeridin tepesinde kullanıcıya özel tek blok (25.11 ikinci tur).
   Degrade kutu yok: çok hafif bir yüzey + ince kenar. Başlık satırı küçük; asıl bilgi plaka, turnuva adı ve saat.
   Altında bu akşamın durakları: ince iz, geçen kısım dolu, şimdi beyaz nokta, duraklar küçük işaret. */
.kb-odak {
  position: relative; display: grid; gap: 14px; padding: 14px 16px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: var(--fg); text-decoration: none;
  transition: background-color var(--hk-2), box-shadow var(--hk-2), scale 160ms var(--hk-out);
}
.kb-odak:hover { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.kb-odak:active { scale: 0.985; }
.scr .kb-odak:focus-visible { border-radius: 16px; }
.kb-o-bas { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 13px/1 var(--text); color: var(--fg-2); }
.kb-o-bas b { font-weight: 600; color: var(--fg-2); }
.kb-o-bas small { margin-left: auto; font: 600 13px/1 var(--text); color: #fff; font-variant-numeric: tabular-nums; }
.kb-o-bas .kb-ic { color: var(--fg-3); transition: translate var(--hk-2) var(--hk-out), color var(--hk-2); }
.kb-odak:hover .kb-o-bas .kb-ic { translate: 2px 0; color: #fff; }
.kb-o-bas .hk-canli { margin-right: 2px; }
.kb-o-ana { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kb-o-plaka { --ab: 40px; font-size: 11px; }
.kb-o-kim { flex: 1; display: grid; gap: 5px; min-width: 0; }
.kb-o-kim b { font: 800 15px/1.15 var(--display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-o-kim small { font: 500 13px/1.2 var(--text); color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-o-saat { flex: none; font: 800 24px/1 var(--display); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.kb-o-saat i { font-style: normal; margin: 0 3px; color: var(--fg-3); }
.kb-o-ana.skor .kb-o-kim b { font: 600 15px/1.15 var(--text); }
.kb-o-ana.skor .kb-o-kim small { font-size: 14px; }
.kb-o-alt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); font: 500 13px/1 var(--text); color: var(--fg-2); }
.kb-o-alt b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* bu akşamın durakları */
.kb-o-yol { position: relative; list-style: none; margin: 2px 0 0; padding: 16px 0 0; height: 46px; }
.kb-o-yol::before, .kb-o-yol::after { content: ''; position: absolute; top: 4px; left: 0; height: 2px; border-radius: 2px; }
.kb-o-yol::before { right: 0; background: rgba(255, 255, 255, 0.1); }
.kb-o-yol::after { width: var(--simdi); background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), #fff); box-shadow: 4px 0 0 -1px #fff; }
.kb-o-yol li { position: absolute; top: 0; left: var(--x); translate: -50% 0; display: grid; justify-items: center; gap: 4px; padding-top: 16px; }
.kb-o-yol li::before { content: ''; position: absolute; top: 1px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #17151c; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32); }
.kb-o-yol li.son { translate: -100% 0; justify-items: end; }
.kb-o-yol li.son::before { left: auto; right: 0; margin: 0; background: var(--red-hi); box-shadow: 0 0 0 3px rgba(255, 59, 63, 0.2); }
.kb-o-yol b { font: 700 12px/1 var(--text); color: #fff; font-variant-numeric: tabular-nums; }
.kb-o-yol span { font: 500 12px/1 var(--text); color: var(--fg-3); white-space: nowrap; }

/* akıştaki takım plakası: küçük, üç harf okunur */
.kb-arma { --ab: 20px; height: 18px; border-radius: 5px; font: 800 7.5px/18px var(--text); letter-spacing: 0; }

/* akış: kutu yok, satırlar ince çizgiyle ayrılır. Satır = harita görseli + iki taraf (ad solda, skor sağda hizalı) + alt bilgi. */
.kb-akis { list-style: none; margin: 0; padding: 0; display: grid; }
.kb-m { position: relative; }
.kb-m + .kb-m::before { content: ''; position: absolute; left: 70px; right: 10px; top: 0; border-top: 1px solid var(--kb-c1); }
.kb-m > a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 9px 10px 10px; border-radius: 14px;
  color: var(--fg-2); text-decoration: none; transition: background-color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-m > a:hover { background: var(--kb-sis); }
.kb-m > a:active { scale: 0.985; background: rgba(255, 255, 255, 0.09); }
.scr .kb-m > a:focus-visible { outline-offset: -2px; border-radius: 14px; }
/* harita görseli: sitedeki harita karolarıyla aynı işlem (harita rengi + gri fotoğraf çarpılır) */
.kb-hr {
  grid-row: 1 / span 3; position: relative; isolation: isolate; overflow: hidden; width: 48px; height: 48px; border-radius: 11px;
  background-color: var(--c, #4a4655); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.kb-hr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--img, none) center / cover no-repeat; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0.85; }
.kb-tr { grid-column: 2; display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 15px/20px var(--text); }
.kb-tr > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-tr > b { flex: none; min-width: 26px; text-align: right; font: 800 14px/20px var(--display); font-variant-numeric: tabular-nums; }
.kb-tr.on { color: #fff; font-weight: 600; }
.kb-alt { grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 3px; font: 500 13px/16px var(--text); color: var(--fg-3); white-space: nowrap; }
.kb-alt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kb-alt > b { flex: none; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.kb-alt > b small { font: inherit; font-weight: 500; color: var(--fg-3); }
.kb-alt > b.art { color: var(--ok); font-weight: 700; }
/* turnuva satırı: turnuva adı ile tur ayrı satırda, harita ve zaman altında */
.kb-m.tur .kb-hr { grid-row: 1 / span 4; }
.kb-m.tur .kb-alt + .kb-alt { margin-top: 2px; }
/* biten maç: kaybeden ve görsel geri çekilir, kazanan ve kazanç öne çıkar */
.kb-m.bitti .kb-hr { filter: saturate(0.5) brightness(0.78); }
.kb-m.bitti .kb-tr:not(.on) { color: var(--fg-3); }

@media (prefers-reduced-motion: reduce) {
  .kb-pop { transform: none; }
  @starting-style { .kb-pop:popover-open { transform: none; } }
}

/* ---------- hesap ve yönetim menüsü ---------- */
.kb-sb { display: grid; gap: 4px; padding: 2px 12px 0; }
.kb-sb h2 { margin: 0; font: 800 20px/1.2 var(--display); }
.kb-sb p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kb-menu { display: grid; gap: 2px; margin-top: -8px; }
.kb-mg { margin: 14px 0 4px; padding: 0 12px; font: 500 13px/1 var(--text); color: var(--fg-3); }
.kb-menu a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--fg-2); font: 500 15px/1 var(--text); text-decoration: none;
  transition: background-color var(--hk-1), color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-menu a .kb-ic { color: var(--fg-3); transition: color var(--hk-1); }
.kb-menu a::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-hi); opacity: 0; transform: scaleY(0.3); transition: opacity var(--hk-2), transform var(--hk-2) var(--hk-out); }
.kb-menu a:hover { background: var(--kb-sis); color: #fff; }
.kb-menu a:hover .kb-ic { color: #fff; }
.kb-menu a:active { scale: 0.985; }
.kb-menu a[aria-current] { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 600; }
.kb-menu a[aria-current] .kb-ic { color: #fff; }
.kb-menu a[aria-current]::before { opacity: 1; transform: none; }
.scr .kb-menu a:focus-visible { outline-offset: -2px; border-radius: 12px; }
.kb-menu a small { margin-left: auto; font: 500 13px/1 var(--text); color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-menu a small.bekle { color: var(--t); }
.kb-menu a small.n { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: var(--fg); font-weight: 700; }
.kb-menu a small.n.acil { background: var(--red); color: #fff; }
.kb-not { display: grid; gap: 6px; margin: 0 2px; padding: 14px 16px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--kb-c1); }
.kb-not b { font: 600 15px/1.3 var(--text); }
.kb-not p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.kb-not a { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; width: fit-content; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.kb-not a .kb-ic { transition: translate var(--hk-2) var(--hk-out); }
.kb-not a:hover .kb-ic { translate: 3px 0; }

/* dar masaüstü (1280): marka küçülür, gezinme sıkışır, profil adı gizlenir. Yedi öğe yerinde kalır. */
@media (max-width: 1500px) {
  .scr:not(.mob) .kb-nav { position: relative; left: auto; top: auto; translate: none; align-self: center; margin-left: 28px; }
  .scr:not(.mob) .kb-nav a { padding: 0 16px; }
  .scr:not(.mob) .kb-son { padding-left: 12px; }
  .scr:not(.mob) .kb-ben .kb-isim { display: none; }
  .scr:not(.mob) .kb-durum small { display: none; }
}

/* dar şerit (ortak.css 1439px altında yan sütunu 264px yapar): odak sıkışır, akış satırında zaman gizlenir (sıra zaten zamana göre) */
@media (max-width: 1439px) {
  .scr:not(.mob) .kb-odak { padding: 12px 14px 14px; }
  .scr:not(.mob) .kb-o-ana { gap: 10px; }
  .scr:not(.mob) .kb-o-plaka { display: none; }
  .scr:not(.mob) .kb-o-saat { font-size: 20px; }
  .scr:not(.mob) .kb-zm { display: none; }
}

/* 1280'den dar pencere (tuvalde Play küçük pencerede açılırsa): gezinme sıkışır, sığmayan son öğeler kesilir, sağ kümeyle üst üste binmez */

@media (max-width: 1240px) {
  .scr:not(.mob) .kb-marka { width: 136px; height: 25px; }
  .scr:not(.mob) .kb-nav { margin-left: 14px; }
  .scr:not(.mob) .kb-nav a { padding: 0 11px; font-size: 14px; }
  .scr:not(.mob) .kb-son { padding-left: 8px; }
  .scr:not(.mob) .kb-ayrac { margin: 0 4px; }
}

/* ================= mobil (390) ================= */
/* Üstte marka + bakiye + bildirim + profil; altta beş sekme. Yatay kayan şerit yok. */
/* Kök overflow: hidden (taslak.css) içindeki her yapışkan öğeyi öldürür; clip taşanı yine keser ama kaydırma kutusu kurmaz. */
.scr.mob { display: flex; flex-direction: column; overflow: clip; }
.scr.mob > main.app { margin: 0; align-self: stretch; }
.mob header.kb-ust { height: 56px; padding: 0 6px 0 16px; align-items: center; flex: none; }
.mob .kb-marka { width: 132px; height: 44px; margin: 0; background-size: 132px 24px; background-position: 0 50%; }
.mob .kb-son { gap: 0; padding-left: 8px; }
.mob .kb-para { height: 44px; margin-right: 4px; background: none; box-shadow: none; }
.mob .kb-bakiye { padding: 0; border-radius: 999px; }
.mob .kb-bakiye b { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--kb-c1); font-size: 13px; }
.mob .kb-para a:hover { background: none; }
.mob .kb-dugme { height: 44px; }
.mob .kb-zil { width: 44px; }
.mob .kb-sayi { top: 11px; right: 11px; }
.mob .kb-ben { width: 44px; padding: 0; justify-content: center; }
.mob .kb-ac { height: 44px; padding: 0 14px; margin-right: 10px; font-size: 14px; }
.mob .kb-ayrac { display: none; }
.mob .kb-ben { margin-left: 0; }
.mob .kb-yeni { margin-right: 10px; }
.mob .kb-pop { left: 12px; right: 12px; width: auto; max-width: none; transform-origin: calc(100% - 28px) 0; }
.mob .kb-prf { width: auto; }
.mob .kb-pa a { min-height: 44px; }

.kb-sekme {
  order: 9; margin-top: auto; flex: none; position: relative; z-index: 6;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 64px; padding: 0 4px;
  background: var(--kb-zemin); border-top: 1px solid var(--kb-c1);
}
.kb-sekme > a, .kb-sekme > button {
  appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--fg-2); font: 600 12px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-sekme .kb-ic { width: 22px; height: 22px; }
.kb-sekme > a:active, .kb-sekme > button:active { scale: 0.94; }
.kb-sekme > [aria-current], .kb-sekme > button:has(+ .kb-pop:popover-open) { color: #fff; }
.kb-sekme .kb-secili { left: 50%; right: auto; top: -1px; bottom: auto; width: 32px; margin-left: -16px; border-radius: 0 0 3px 3px; }
.kb-daha { anchor-name: --kb-daha; }
.scr .kb-sekme > :focus-visible { outline-offset: -4px; border-radius: 12px; }
.mob .kb-dh { position-anchor: --kb-daha; top: auto; bottom: 72px; bottom: calc(anchor(top) + 8px); transform-origin: calc(100% - 36px) 100%; transform: translateY(8px) scale(0.96); }
.mob .kb-dh:popover-open { transform: none; }
@starting-style { .mob .kb-dh:popover-open { transform: translateY(8px) scale(0.96); } }
.kb-dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.kb-dg a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 84px; padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); color: #fff; font: 600 15px/1 var(--text); text-decoration: none; transition: background-color var(--hk-1), scale 160ms var(--hk-out);
}
.kb-dg a .kb-ic { width: 22px; height: 22px; color: var(--fg-2); }
.kb-dg a:active { scale: 0.97; background: rgba(255, 255, 255, 0.1); }
.kb-dg a[aria-current] { box-shadow: inset 0 0 0 1px rgba(255, 96, 102, 0.6); background: rgba(229, 32, 45, 0.14); }
.kb-dg a[aria-current] .kb-ic { color: #fff; }

/* mobil şerit: aside'ın çocukları main'in esnek öğeleridir (aside display: contents). Odak ve menü üstte, akış sayfa sonunda. */
.mob .app > aside.kb-serit > * { order: 3; }
.mob .app > aside.kb-serit > .kb-odak, .mob .app > aside.kb-serit > .kb-acilir { order: 0; }
.mob .kb-odak { gap: 10px; padding: 12px 14px; }
.mob .kb-o-plaka { --ab: 36px; font-size: 10px; }
.mob .kb-o-saat { font-size: 20px; }
.mob .kb-bh { min-height: 44px; margin-bottom: 0; padding: 0 2px; }
.mob .kb-bh a { min-height: 44px; }
.mob .kb-not { padding-bottom: 6px; }
.mob .kb-not a { min-height: 44px; }
.mob .kb-m > a { padding-left: 2px; padding-right: 2px; }
.mob .kb-m + .kb-m::before { left: 70px; right: 2px; }

/* mobil hesap ve yönetim menüsü: bulunduğun sayfayı gösteren tek satır; dokununca liste açılır */
.kb-acilir { border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--kb-c1); }
.kb-acilir > summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px 0 16px; border-radius: 16px; cursor: pointer; list-style: none;
  font: 600 15px/1 var(--text); color: #fff;
}
.kb-acilir > summary::-webkit-details-marker { display: none; }
.kb-acilir > summary > .kb-ic:first-child { color: var(--fg-2); }
.kb-acilir > summary small { margin-left: auto; font: 500 14px/1 var(--text); color: var(--fg-2); }
.kb-acilir > summary .kb-ok { color: var(--fg-2); transition: rotate var(--hk-2) var(--hk-out); }
.kb-acilir[open] > summary .kb-ok { rotate: 180deg; }
.kb-acilir > summary:active { background: var(--kb-sis); }
.scr .kb-acilir > summary:focus-visible { outline-offset: -2px; border-radius: 16px; }
.kb-acilir > .kb-menu { margin: 0; padding: 0 8px 8px; }
.kb-acilir > .kb-menu > .kb-mg:first-child { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .kb-acilir[open] > .kb-menu { animation: hk-in var(--hk-3) var(--hk-out); }
}
/* Sekme çubuğu dokunmatik telefonda ekranın altına yapışır. Koşulsuz yapılmadı: ekibin tam boy kareleri (cekm.sh, sur.mjs "tamboy")
   görüntü alanını büyütmeden çeker, yapışkan çubuk her karede 844. pikselde içeriğin üstüne düşer. Tuvalde ve karelerde sayfanın sonunda durur. */
@media (hover: none) and (pointer: coarse) {
  .kb-sekme { position: sticky; bottom: 0; }
}

/* ================= sayfa başı (.sb) =================
   25.11 üçüncü tur (Halit: "başlıklar hep aynı ve kötü, kaldıralım"): büyük sayfa başlığı YOK. Hangi sayfada olduğun üst menüden belli.
   h1 yalnız ekran okuyucu için durur. Sayfa, varsa kendi denetimleriyle (sekme, süzgeç, geçiş) başlar; sağda tek satır durum bilgisi.
   <header class="sb"><h1>Oyna</h1><nav class="sb-sekme">…</nav><p class="sb-sag">…</p></header>
   <header class="sb"><div><h1>Sıralama</h1><p>bilgi</p></div><div class="sb-sag">denetim</div></header>  (denetim solda, bilgi sağda)
   <header class="sb yok">…</header>: denetimi olmayan sayfa; başlık tamamen görünmez, içerik doğrudan başlar. */
.scr { --sb-kahraman: 56px; }
.sb h1, .sb.yok { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sb:not(.yok) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 48px; margin: 0; }
.sb > div:first-child { order: 2; min-width: 0; }
.sb > div:first-child p { margin: 0; font: 500 14px/1.4 var(--text); color: var(--fg-3); }
.sb p b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sb-sag { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; margin: 0; }
.sb-sekme ~ .sb-sag { order: 2; }
p.sb-sag { font: 500 14px/1 var(--text); color: var(--fg-2); }
p.sb-sag b { color: #fff; }

/* sayfa içi sekmeler (Oyna: Açık maçlar / Arkadaş lobisi). Üst menüdeki haptan ayrı dil: altı çizgili büyük sekme. */
.sb:has(> .sb-sekme) { align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sb:has(> .sb-sekme) > .sb-sag { align-self: center; }
.sb-sekme { order: 1; display: flex; gap: 32px; min-width: 0; }
.sb-sekme a {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0;
  color: rgba(246, 244, 248, 0.55); font: 700 18px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: color var(--hk-2);
}
.sb-sekme a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red-hi); opacity: 0; transform: scaleX(0.4); transition: transform var(--hk-3) var(--hk-out), opacity var(--hk-2); }
.sb-sekme a:hover { color: #fff; }
.sb-sekme a[aria-current] { color: #fff; }
.sb-sekme a[aria-current]::after { opacity: 1; transform: none; }
.sb-sekme small { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font: 700 12px/1 var(--text); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.sb-sekme a[aria-current] small { background: var(--red); color: #fff; }
.scr .sb-sekme a:focus-visible { outline-offset: 2px; border-radius: 6px; }
.mob .sb:not(.yok) { min-height: 0; gap: 10px 16px; }
.mob .sb-sekme { gap: 24px; }
.mob .sb-sekme a { height: 48px; font-size: 16px; }
.mob .sb-sekme ~ p.sb-sag { display: none; }
.mob .sb-sekme ~ div.sb-sag { order: 3; width: 100%; padding-bottom: 12px; }

/* ================= sol şerit, üçüncü tur: canlı sitenin dili =================
   Canlı maçlar küçük harita kartı (harita rengi + gri fotoğraf çarpımı, canlı sitedeki harita kartlarıyla aynı işlem).
   Biten maçlar sönük liste olarak kalır: canlı olan öne çıkar. "Sıradaki maçın" küçük kırmızı afiş. */
.kb-akis:has(> .kb-m.canli) { gap: 8px; }
.kb-m.canli + .kb-m.canli::before { display: none; }
.kb-m.canli > a {
  position: relative; isolation: isolate; overflow: hidden; grid-template-columns: minmax(0, 1fr); padding: 12px 14px 12px;
  border-radius: 16px; color: rgba(255, 255, 255, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 24px -18px rgba(0, 0, 0, 0.9);
  transition: transform var(--hk-2) var(--hk-out), box-shadow var(--hk-2);
}
.kb-m.canli > a:hover { background: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 28px -16px rgba(0, 0, 0, 0.9); }
.kb-m.canli > a:active { transform: none; scale: 0.985; }
.kb-m.canli .kb-hr { position: absolute; inset: 0; z-index: -1; width: auto; height: auto; border-radius: 0; grid-row: auto; box-shadow: none; }
.kb-m.canli .kb-hr::before { opacity: 0.9; }
.kb-m.canli .kb-hr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 9, 13, 0.55) 0%, rgba(10, 9, 13, 0.25) 55%, rgba(10, 9, 13, 0.55) 100%); }
.kb-m.canli .kb-tr, .kb-m.canli .kb-alt { grid-column: 1; }
.kb-m.canli .kb-tr { color: rgba(255, 255, 255, 0.78); }
.kb-m.canli .kb-tr.on { color: #fff; }
.kb-m.canli .kb-tr > b { font-size: 16px; color: #fff; }
.kb-m.canli .kb-alt { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }
.kb-m.canli .kb-alt > b, .kb-m.canli .kb-alt > b small { color: #fff; }
.kb-m.canli.tur .kb-alt + .kb-alt { border-top: 0; padding-top: 0; margin-top: 2px; }
.kb-m.canli .kb-arma { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }

.kb-odak {
  isolation: isolate; overflow: hidden; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 24px 44px -28px rgba(229, 32, 45, 0.9);
  background: radial-gradient(60% 90% at 100% 0%, rgba(255, 110, 80, 0.6), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(80, 0, 12, 0.6), transparent 70%), linear-gradient(135deg, #d81d29 0%, #b5101c 50%, #7e0914 100%);
}
.kb-odak:hover { background: radial-gradient(60% 90% at 100% 0%, rgba(255, 120, 90, 0.7), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(80, 0, 12, 0.6), transparent 70%), linear-gradient(135deg, #de2430 0%, #bb1420 50%, #7e0914 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 28px 48px -28px rgba(229, 32, 45, 1); }
.kb-odak::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url(gren.svg) repeat; background-size: 220px; mix-blend-mode: overlay; opacity: 0.35; pointer-events: none; }
.kb-o-bas, .kb-o-bas b { color: rgba(255, 255, 255, 0.9); }
.kb-o-bas .kb-ic { color: #fff; }
.kb-o-kim small { color: rgba(255, 255, 255, 0.82); }
.kb-o-plaka { background: #fff !important; color: #b5101c !important; box-shadow: none !important; }
.kb-o-yol::before { background: rgba(255, 255, 255, 0.28); }
.kb-o-yol li::before { background: #b5101c; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.kb-o-yol li.son::before { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.kb-o-yol span { color: rgba(255, 255, 255, 0.78); }
.kb-o-alt { border-top-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85); }
.mob .kb-m.canli > a { padding: 12px 14px; }
