/* RECLA SAHNE KABI · kab.css — bütün iç sahneler tek geometride.
   Telefon (<992): bant tam genişlik, alt bloğun (şerit + tuş = 92 px) 12 px üstünde biter (alt kenar her sayfada aynı); boy clamp(330, %48 ekran, 420).
   Üst kenar başlık bloğunun 12 px altı (kab.js yerlesim; metin–bant binmesi 0); bant üstten ve alttan solar (Beyin bandı gibi).
   Masaüstü (≥992): bant sağda, Beyin'in masaüstü yeri (sol %46'dan sağa), üst 96 · alt 88; sahne oran verirse kab.js bandı bu kutunun içinde o orana indirir.
   HUD + zaman şeridi bandın sol altında, aria-hidden kabın DIŞINDA (body). Yazı ≥12 px. */
:root { --kab-alt: 120px; --kab-h: clamp(330px, 48vh, 420px); --kab-hud: 70px; }
@supports (height: 1svh) { :root { --kab-h: clamp(330px, 48svh, 420px); } }

/* ilk ekran özeti 3 → 2 satır (metin aynı, devamı katmanda) */
:root:root:root:root:root:root:root:root:root .kzg-ozet, :root:root:root:root:root:root:root:root:root .kz-ozet { -webkit-line-clamp: 2; }
/* telefon · binme 0 (kab.js yerlesim): bant < 280 olursa özet 1 satır; yine < 280 ise özet ve başlık bloğunun h1/etiket dışı ek satırları (.kab-ek) görünmez düğüm (ekran okuyucu ve klavye erişir), başlık bloğu katmanı açar. Etiket ve h1 kırpılmaz. */
@media (max-width: 991px) {
  :root:root:root:root:root:root:root:root:root.kab-oz1 :is(.kzg-ozet, .kz-ozet) { -webkit-line-clamp: 1; }
  :root:root:root:root:root:root:root:root:root.kab-oz0 :is(.kzg-ozet-d, .kz-ozet-d, .kzg-ust > p.kzg-ozet, .kz-ust > p.kz-ozet, .kab-ek) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
  html.kab-oz0 :is(.kzg-ust, .kz-ust) { pointer-events: auto; cursor: pointer; }
}
/* banda binen başlık okunur kalsın: metnin arkasında zemin rengi gölge (yeni renk yok) */
html.kab-var :is(.kzg-ust, .kz-ust) :is(p, span, time, small, .kzg-ozet, .kz-ozet) { text-shadow: 0 0 10px #04060c, 0 0 3px #04060c; }

/* ---- bant ---- */
.kab-bant { position: fixed; left: 0; right: 0; height: var(--kab-h); bottom: calc(var(--kab-alt) + env(safe-area-inset-bottom)); z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 92%, transparent); }
.kab-kap { background: #04060c; }
.kab-bant > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kab-toz-isik { transition: opacity .6s ease; }
.kab-nabiz .kab-toz-isik { animation: kab-nabiz 3.2s ease-in-out infinite; }
@keyframes kab-nabiz { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
/* liste bandı (kayan listede sahne, ör. /robots huni şeritleri): aynı boy, akışta */
.kab-bant.kab-liste { position: relative; left: auto; right: auto; bottom: auto; height: var(--kab-h); -webkit-mask-image: none; mask-image: none; pointer-events: auto; }

/* ---- arayüz: HUD + zaman şeridi + dokunma ipucu (bantla aynı dikdörtgen) ---- */
.kab-arayuz { position: fixed; left: 0; right: 0; height: var(--kab-h); bottom: calc(var(--kab-alt) + env(safe-area-inset-bottom)); z-index: 3; pointer-events: none; }
.kab-arayuz.kab-liste { position: relative; left: auto; right: auto; bottom: auto; height: 0; }
.kab-liste-alt { position: absolute; left: 0; right: 0; bottom: 0; height: var(--kab-hud); }
.kab-hud { position: absolute; left: 16px; right: 16px; bottom: 30px; display: grid; gap: 1px; font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: rgba(226,232,244,.66); letter-spacing: .01em; text-shadow: 0 0 8px #04060c; }
.kab-hud > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
.kab-hud b { color: #f2f4f8; font-weight: 600; }
/* sayı sözlüğü: "bu sayfanın kapsamı: …" (yalnız sahne alt küme gösteriyorsa; kab.js alanı 17 px kısaltır) */
.kab-hud > .kab-kapsam { font-size: 12px; min-height: 16px; color: rgba(226,232,244,.56); }
.kab-hud > .kab-kapsam[hidden] { display: none; }
.kab-zaman { position: absolute; left: 16px; right: 16px; bottom: 2px; height: 28px; display: block; pointer-events: auto; }
:root:root:root:root:root:root:root:root:root .kab-zaman input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; color: inherit; cursor: pointer; touch-action: none; }
.kab-zaman input::-webkit-slider-container { background: none; }
.kab-zaman input:focus-visible { outline: 2px solid #5c9eff; outline-offset: 2px; border-radius: 6px; }
.kab-zaman input::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(242,244,248,.78) var(--p, 0%), rgba(150,170,210,.22) var(--p, 0%)); }
.kab-zaman input::-moz-range-track { height: 2px; background: rgba(150,170,210,.22); }
.kab-zaman input::-moz-range-progress { height: 2px; background: rgba(242,244,248,.78); }
.kab-zaman input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: #f2f4f8; border: 0; box-shadow: 0 0 10px rgba(92,158,255,.6); }
.kab-zaman input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #f2f4f8; border: 0; box-shadow: 0 0 10px rgba(92,158,255,.6); }
/* dokunma ipucu: halka (ışık) + kısa söz; ilk dokunuşta kalkar */
.kab-ipucu { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.kab-ipucu.acik { opacity: 1; }
.kab-ipucu i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(242,244,248,.85); box-shadow: 0 0 14px rgba(92,158,255,.55); animation: kab-halka 2.4s ease-out infinite; }
.kab-ipucu i + i { animation-delay: 1.2s; }
.kab-ipucu span { position: absolute; left: 22px; top: -9px; white-space: nowrap; font: 600 12px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #f2f4f8; padding: 0 8px; border-radius: 9px; background: rgba(10,14,26,.72); border: 1px solid rgba(150,170,210,.22); }
.kab-ipucu.sola span { left: auto; right: 22px; }
@keyframes kab-halka { 0% { transform: scale(.55); opacity: .95; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
html.kz-acik .kab-arayuz:not(.kab-liste), html.kzg-acik .kab-arayuz:not(.kab-liste), html.kz-acik .kab-bant:not(.kab-liste), html.kzg-acik .kab-bant:not(.kab-liste) { visibility: hidden; }

@media (min-width: 992px) {
  :root { --kab-hud: 76px; }
  .kab-bant, .kab-arayuz { left: 46%; right: 24px; top: 96px; bottom: 88px; height: auto; }
  .kab-bant { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%); mask-image: linear-gradient(to right, transparent, #000 10%); }   /* /robots masaüstü sahnesiyle aynı kenar */
  .kab-bant.kab-liste { top: auto; height: 380px; }
  .kab-arayuz.kab-liste { top: auto; height: 0; }
  .kab-hud { left: 24px; right: 24px; bottom: 32px; }
  .kab-zaman { left: 24px; right: auto; width: min(420px, calc(100% - 48px)); bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .kab-nabiz .kab-toz-isik, .kab-ipucu i { animation: none; } .kab-ipucu i + i { display: none; } }
