/* ================================================================
   LLM CASINO ARENA — TERMİNAL HUD
   Analitik istasyon dili: monospace, hizalı rakamlar, ince kurallar.
   İlke: 3D salonun rengi KISILMAZ — kontrast yalnız panel zeminlerinden gelir,
   sahne üzerine tam ekran perde/filtre uygulanmaz.
   ================================================================ */
:root{
  --t-bg:#05070a;
  --t-panel:rgba(6,10,14,.9);
  --t-panel-2:rgba(9,14,19,.96);
  --t-ink:#dfe7ea;
  --t-dim:#8ea3ab;
  --t-dim2:#63757d;
  --t-line:rgba(120,160,170,.24);
  --t-line-2:rgba(120,160,170,.1);
  --t-amber:#ffb020;
  --t-yesil:#37d67a;
  --t-kirmizi:#ff5c5c;
  --t-mavi:#4aa8ff;
  --sol-w:396px; --sag-w:292px;
  --t-mono:'IBM Plex Mono','Consolas','DejaVu Sans Mono',monospace;
  --t-sans:'IBM Plex Sans','Segoe UI',system-ui,sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--t-bg); }
body { font-family: var(--t-sans); color: var(--t-ink); }
#app, #app canvas { position: fixed; inset: 0; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-family: var(--t-mono); }
#hud button { pointer-events: auto; cursor: pointer; font-family: inherit; }
#hud input, #hud label, #hud .pnl, #hud canvas { pointer-events: auto; }
.num, #hud b, #hud .bank { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- Panel iskeleti ---- */
.pnl {
  background: var(--t-panel); border: 1px solid var(--t-line);
  display: flex; flex-direction: column; min-height: 0;
}
.pnl-bas {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-size: 9.5px; letter-spacing: .2em; color: var(--t-amber); text-transform: uppercase;
  padding: 5px 9px; border-bottom: 1px solid var(--t-line); white-space: nowrap;
}
.pnl-bas .kod { font-style: normal; color: var(--t-dim2); letter-spacing: .1em; }
.pnl-bas .pnl-sag { margin-left: auto; color: var(--t-dim); font-size: 9px; letter-spacing: .08em; text-transform: none; }

/* ---- Üst şerit ---- */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  display: flex; align-items: stretch;
  background: var(--t-panel-2); border-bottom: 1px solid var(--t-line);
  font-size: 11px;
}
#topbar .hucre {
  display: flex; align-items: center; gap: 6px; padding: 0 11px;
  border-right: 1px solid var(--t-line-2); white-space: nowrap;
}
#topbar .hucre span { color: var(--t-dim2); font-size: 9px; letter-spacing: .16em; }
#topbar .hucre small { color: var(--t-dim2); font-size: 9px; }
#topbar .hucre b { font-weight: 600; font-size: 12px; }
#topbar .marka { color: var(--t-amber); letter-spacing: .16em; font-weight: 600; }
#topbar .marka span { color: var(--t-dim2); }
#topbar .canli { color: var(--t-kirmizi); font-size: 9.5px; letter-spacing: .2em; }
#topbar .canli i { width: 6px; height: 6px; border-radius: 50%; background: var(--t-kirmizi); animation: tYanip 1.6s infinite; }
@keyframes tYanip { 50% { opacity: .18; } }
#llm-counter.hata { color: var(--t-kirmizi); }
#hucre-krupiye:has(b:empty) { display: none; } /* krupiye bilgisi yokken hucre kaybolur */
#shoe-bar { width: 46px; height: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
#shoe-bar i { display: block; height: 100%; background: var(--t-amber); transition: width .6s; }
#topbar .ctrls { margin-left: auto; display: flex; }
#topbar .ctrls button {
  width: 38px; background: none; border: none; border-left: 1px solid var(--t-line-2);
  color: var(--t-dim); display: grid; place-items: center; transition: background .15s, color .15s;
  position: relative;
}
#topbar .ctrls button svg { width: 15px; height: 15px; display: block; }
#topbar .ctrls button i { position: absolute; bottom: 1px; right: 3px; font-style: normal; font-size: 8px; color: var(--t-amber); }
#topbar .ctrls button:hover { background: rgba(255,176,32,.14); color: var(--t-amber); }
#topbar .ctrls button:focus-visible { outline: 1px solid var(--t-amber); outline-offset: -3px; }
#topbar .ctrls button.on { color: var(--t-amber); background: rgba(255,176,32,.1); }

/* ---- Sütunlar: çakışma matematiği yerine akış ---- */
#sol-kolon, #sag-kolon {
  position: absolute; top: 38px; bottom: 34px;
  display: flex; flex-direction: column; gap: 8px; min-height: 0;
}
#sol-kolon { left: 10px; width: var(--sol-w); justify-content: space-between; }
#sol-kolon > *, #sag-kolon > * { min-width: 0; max-width: 100%; }
#sag-kolon { right: 10px; width: var(--sag-w); }

/* ---- Olay akışı ---- */
#feed-panel { max-height: 42%; }
#feed { overflow: hidden; display: flex; flex-direction: column; }
.feed-line {
  display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 8px;
  padding: 4px 9px; font-size: 11.5px; line-height: 1.42;
  border-bottom: 1px solid var(--t-line-2); animation: tGir .22s ease-out;
}
.feed-line time { color: var(--t-dim2); }
.feed-line.talk > span { color: #ffe0a8; }
.feed-line.thought > span { color: var(--t-dim); font-style: italic; }
.feed-line.elim > span { color: var(--t-kirmizi); }
@keyframes tGir { from { opacity: 0; background: rgba(255,176,32,.14); } }

/* ---- Eller & ihtimaller ---- */
#hands-panel { flex: 0 1 auto; }
#hp-body { overflow: hidden; }
.hp-empty { font-size: 11px; color: var(--t-dim2); padding: 8px 10px; }
.hp-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 9px;
  border-bottom: 1px solid var(--t-line-2); border-left: 3px solid var(--c, transparent);
  min-height: 34px; transition: background .2s;
}
.hp-row.cur { background: rgba(255,176,32,.1); }
.hp-row.hp-dealer { border-left-color: var(--t-dim2); background: rgba(255,255,255,.02); }
.hp-name { font-size: 11px; width: 96px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .04em; }
.hp-name small { color: var(--t-dim2); }
.hp-cards { display: flex; gap: 3px; flex: 1; min-width: 0; }
.hp-bet { font-size: 10px; color: var(--t-dim2); }
.hp-total {
  min-width: 26px; text-align: center; font-size: 12px; font-weight: 600; flex: none;
  color: var(--t-amber); border: 1px solid rgba(255,176,32,.34); padding: 1px 4px;
}
.hp-odds { font-size: 10px; width: 104px; text-align: right; flex: none; color: var(--t-dim); letter-spacing: .02em; }
.hp-mark { color: var(--t-dim2); }
.good { color: var(--t-yesil); }
.bad { color: var(--t-kirmizi); }

/* ---- Kadro tablosu ---- */
#sb-rows { overflow: hidden; }
.sb-row {
  display: grid; grid-template-columns: 6px minmax(0,1fr) auto 44px; gap: 7px; align-items: center;
  padding: 5px 9px 5px 6px; border-bottom: 1px solid var(--t-line-2);
  cursor: pointer; transition: background .2s; position: relative;
}
.sb-row:hover { background: rgba(255,255,255,.04); }
.sb-row .dot { width: 6px; height: 6px; background: var(--c); }
.sb-row .who { min-width: 0; }
.sb-row .who b { font-size: 11.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row .who small { font-size: 9px; color: var(--t-dim2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row .nums { text-align: right; }
.sb-row .nums .bank { font-size: 13px; color: var(--t-ink); display: block; line-height: 1.1; }
.sb-row .nums .bet { font-size: 9px; color: var(--t-dim2); display: block; }
.sb-row .st { font-size: 9px; color: var(--t-dim); text-align: right; }
.sb-row .stam { grid-column: 2 / -1; display: flex; gap: 4px; margin-top: 3px; }
.sb-row .stam i { display: block; height: 3px; flex: 1 1 auto; }
.sb-row .stam .sh { background: var(--t-yesil); }
.sb-row .stam .sb { background: var(--t-kirmizi); }
.sb-row.turn { background: rgba(255,176,32,.12); box-shadow: inset 3px 0 0 var(--t-amber); }
.sb-row.dead { opacity: .4; }
.sb-row.exhausted .who b { color: #ff9b9b; }
@keyframes flashWin { 0% { background: rgba(55,214,122,.3); } 100% { background: transparent; } }
@keyframes flashLose { 0% { background: rgba(255,92,92,.28); } 100% { background: transparent; } }
.sb-row.flash-win { animation: flashWin 1.4s ease-out; }
.sb-row.flash-lose { animation: flashLose 1.4s ease-out; }

/* ---- Gecikme grafiği ---- */
#lat-panel { flex: none; }
#lat-cv { width: 100%; height: 60px; display: block; }

/* ---- Nöro-devre ---- */
#brain-panel { flex: none; }
#brain-cv { width: 100%; height: 172px; display: block; cursor: pointer; }
.bp-hint { font-size: 8.5px; color: var(--t-dim2); padding: 4px 8px 6px; line-height: 1.4; }

/* ---- Kamera barı ---- */
#cambar { margin-top: auto; display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
#cambar button, #cam-seats button {
  background: var(--t-panel); border: 1px solid var(--t-line); color: var(--t-dim);
  font-size: 9.5px; letter-spacing: .1em; padding: 5px 8px; transition: .15s;
}
#cam-seats { display: contents; }
#cam-seats button { border-color: var(--c); color: var(--c); }
#cambar button:hover, #cam-seats button:hover { background: rgba(255,176,32,.16); color: var(--t-amber); }
#cambar button.on { background: rgba(255,176,32,.2); border-color: var(--t-amber); color: var(--t-amber); }
#cambar button:focus-visible, #cam-seats button:focus-visible { outline: 1px solid var(--t-amber); outline-offset: 1px; }

/* ---- Adaptif alt bant: kamera baglamina gore el + dusunce ---- */
#band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px; overflow: hidden;
  background: var(--t-panel-2); border-top: 1px solid var(--t-line);
  display: flex; align-items: stretch; font-size: 11px;
}
#band .bd-mod {
  flex: none; display: flex; align-items: center; padding: 0 12px; letter-spacing: .16em; font-size: 9px;
  background: var(--c, var(--t-amber)); color: #05070a; font-weight: 600; white-space: nowrap;
}
#band .bd-icerik { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0 12px; overflow: hidden; }
#band .bd-bos { color: var(--t-dim2); }
#band .bd-oyuncu { display: flex; align-items: baseline; gap: 7px; flex: none; }
#band .bd-oyuncu i { width: 7px; height: 7px; background: var(--c); display: block; align-self: center; }
#band .bd-oyuncu b { font-size: 12.5px; font-weight: 600; }
#band .bd-oyuncu small { color: var(--t-dim2); font-size: 9.5px; }
#band .bd-kart { display: flex; gap: 2px; flex: none; }
#band .bd-kart .mc { width: 18px; height: 24px; font-size: 9.5px; border-radius: 2px; }
#band .bd-kart .mc i { font-size: 7px; }
#band .bd-toplam { flex: none; color: var(--t-amber); border: 1px solid rgba(255,176,32,.35); padding: 0 5px;
  font-size: 11px; font-weight: 600; line-height: 17px; }
#band .bd-oran { flex: none; font-size: 10px; letter-spacing: .04em; }
#band .bd-bahis { flex: none; font-size: 10px; color: var(--t-dim2); }
#band .bd-dus {
  flex: 1 1 auto; min-width: 0; color: #ffe0a8; font-style: italic; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 7px;
}
#band .bd-dus i { width: 6px; height: 6px; background: var(--c, var(--t-amber)); display: block; flex: none; }
#band .bd-kutu {
  display: flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px 3px 6px;
  border-left: 2px solid var(--c); background: rgba(255,255,255,.03); transition: background .3s;
}
#band .bd-kutu.taze { background: rgba(255,176,32,.14); }
#band .bd-kutu i { width: 6px; height: 6px; background: var(--c); display: block; }
#band .bd-kutu b { font-size: 11px; font-weight: 600; }
#band .bd-kutu em { font-style: normal; font-size: 10px; }
#band .bd-kutu .bd-toplam { line-height: 15px; font-size: 10px; }

/* ---- Masa/pot okuması ---- */
#pot-pill {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 4px 13px;
  background: var(--t-panel-2); border: 1px solid rgba(255,176,32,.4);
}
#pot-pill.hidden { display: none; }
#pot-pill .pp-lab { font-size: 9px; letter-spacing: .24em; color: var(--t-amber); }
#pot-pill .pp-val { font-size: 15px; font-weight: 600; }

/* ---- Karar bandı (alt orta) ---- */
#lower-third {
  position: absolute; bottom: 40px;
  left: calc(var(--sol-w) + 20px); right: calc(var(--sag-w) + 20px);
  width: fit-content; max-width: 100%; margin-inline: auto;
  display: flex; min-width: 0;
  background: var(--t-panel-2); border: 1px solid var(--t-line);
  animation: tBant .28s ease-out;
}
#lower-third.hidden { display: none; }
@keyframes tBant { from { opacity: 0; transform: translateY(10px); } }
.lt-bar { width: 4px; background: var(--c, var(--t-amber)); flex: none; }
.lt-body { padding: 7px 14px 8px 11px; min-width: 0; }
.lt-name { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lt-name small { font-weight: 400; color: var(--t-dim2); font-size: 10px; margin-left: 8px; letter-spacing: 0; }
.lt-info { font-size: 11px; color: var(--t-amber); margin-top: 2px; }
.lt-cards { display: flex; gap: 4px; align-items: center; margin-top: 5px; }
.lt-total {
  margin-left: 4px; min-width: 26px; height: 24px; line-height: 22px; text-align: center; padding: 0 5px;
  border: 1px solid rgba(255,176,32,.4); color: var(--t-amber); font-size: 12px; font-weight: 600;
}

/* ---- Mini kartlar ---- */
.mc {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 24px; height: 32px; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #eef0f2);
  color: #10161c; font-weight: 700; font-size: 12px; line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.6); flex: none;
}
.mc i { font-style: normal; font-size: 9px; margin-top: 1px; }
.mc.red { color: #c0392b; }
.mc.back { background: repeating-linear-gradient(45deg, #5e1a24 0 4px, #47121c 4px 8px); border: 1px solid rgba(239,233,222,.5); }
.mc.big { width: 28px; height: 38px; font-size: 13px; }
.mc.big i { font-size: 11px; }

/* ---- POV ---- */
#pov-hud {
  position: absolute; left: 10px; bottom: 34px; width: 300px; z-index: 26;
  background: var(--t-panel-2); border: 1px solid var(--pc, var(--t-line)); padding: 9px 11px;
}
#pov-hud.hidden { display: none; }
#pov-hud .ph-kim { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
#pov-hud .ph-kim small { color: var(--t-dim2); font-weight: 400; margin-left: 6px; }
#pov-hud .ph-ic { font-style: italic; font-size: 11px; color: #ffe0a8; margin: 6px 0;
  border-left: 2px solid var(--pc, var(--t-amber)); padding-left: 7px; line-height: 1.42; min-height: 28px; }
#pov-hud .ph-row { display: grid; grid-template-columns: 56px 1fr 30px; gap: 7px; align-items: center;
  font-size: 9.5px; color: var(--t-dim); margin: 3px 0; }
#pov-hud .ph-t { height: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
#pov-hud .ph-t i { display: block; height: 100%; }
#pov-hud .ph-mat { font-size: 10px; color: var(--t-mavi); margin-top: 5px; }
#pov-hud .ph-sup { font-size: 9.5px; color: #ffb0a0; margin-top: 3px; }
body.pov-acik #sol-kolon, body.pov-acik #lower-third { display: none; } /* POV'da sol sütun kapanır — pov paneli yerini alır */

/* ---- Sahne Ayarı ---- */
#tune-panel {
  position: absolute; right: 10px; top: 38px; width: 288px; z-index: 30;
  background: var(--t-panel-2); border: 1px solid var(--t-line); padding: 9px 11px;
}
#tune-panel.hidden { display: none; }
.tp-head, .dh-head { display: flex; justify-content: space-between; align-items: center;
  font-size: 9.5px; letter-spacing: .2em; color: var(--t-amber); margin-bottom: 8px; text-transform: uppercase; }
.tp-head button, .dh-head button { background: none; border: none; color: var(--t-dim); font-size: 12px; cursor: pointer; }
.tp-head button:hover, .dh-head button:hover { color: var(--t-ink); }
.tp-row { display: grid; grid-template-columns: 104px 1fr 34px; gap: 7px; align-items: center;
  font-size: 10.5px; margin-bottom: 6px; color: var(--t-dim); }
.tp-row b { font-size: 10px; color: var(--t-amber); text-align: right; }
.tp-row input[type=range] { width: 100%; accent-color: var(--t-amber); height: 3px; }
.tp-hint { font-size: 9px; color: var(--t-dim2); line-height: 1.4; margin-top: 4px; }

/* ---- Kontrol Paneli (yan çekmece) ---- */
#dash {
  position: absolute; right: 0; top: 0; bottom: 0; width: 430px; z-index: 40;
  background: rgba(5,8,11,.97); border-left: 1px solid var(--t-line);
  display: flex; flex-direction: column;
}
#dash.hidden { display: none; }
.dh-head { padding: 9px 13px; border-bottom: 1px solid var(--t-line); margin: 0; }
.dh-head span { flex: 1; letter-spacing: 0; color: var(--t-dim); font-size: 10px; text-transform: none; }
.dh-head span b { color: var(--t-ink); }
#dash-body { flex: 1; overflow-y: auto; padding: 8px 10px; }
.dh-card { border: 1px solid var(--t-line-2); border-left: 3px solid var(--c, var(--t-dim2));
  padding: 7px 9px; margin-bottom: 7px; background: rgba(255,255,255,.02); }
.dh-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.dh-top b { cursor: pointer; }
.dh-top b:hover { color: var(--t-amber); }
.dh-top small { color: var(--t-dim2); font-size: 9.5px; }
.dh-where { margin-left: auto; font-size: 9.5px; color: var(--t-dim); }
.dh-r { display: grid; grid-template-columns: 78px 1fr auto; gap: 7px; align-items: center;
  font-size: 10px; color: var(--t-dim); margin-top: 4px; }
.dh-r > b { color: var(--t-ink); }
.dtrack { height: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.dbar { display: block; height: 100%; }
.dbar.h { background: var(--t-yesil); } .dbar.b { background: var(--t-kirmizi); } .dbar.n { background: var(--t-mavi); }
.dh-r input[type=range] { width: 100%; accent-color: var(--t-amber); height: 3px; }
.dh-r [data-tempv] { color: var(--t-amber); font-size: 10px; }
.dh-llm { font-size: 9px; color: var(--t-dim2); }
.dh-demo { font-size: 10px; color: var(--t-dim2); }
.dh-think { font-size: 10px; color: #ffe0a8; font-style: italic; line-height: 1.45; margin-top: 4px; }
.dh-rel { font-size: 9.5px; color: var(--t-dim); margin-top: 4px; }
.dh-pardon { background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4); color: var(--t-amber);
  font-size: 10px; padding: 4px 9px; cursor: pointer; }
.dh-ops { font-size: 10px; color: var(--t-dim); line-height: 1.5; }
.dh-report { font-size: 10px; color: var(--t-ink); line-height: 1.5; }
.dh-report b { color: var(--t-amber); }
.dh-bulgu { font-size: 10px; color: var(--t-dim); line-height: 1.5; }
.dh-flags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px; }
.dh-flags label { display: flex; align-items: center; gap: 5px; color: var(--t-dim); }
.dh-flags input { accent-color: var(--t-amber); }
.dh-syslog { font-size: 9.5px; color: var(--t-dim2); line-height: 1.45; }
.dh-syslog.error { color: var(--t-kirmizi); }
.dh-na canvas, #na-main { width: 100%; display: block; }
.na-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.na-row { font-size: 9.5px; color: var(--t-dim); }
.na-row:hover span { color: var(--t-ink); }
.na-row span { display: block; }
.na-row canvas { width: 100%; display: block; }
.na-ev { font-size: 9px; color: var(--t-dim2); }
.dh-lab select, .dh-lab button { background: rgba(255,255,255,.06); border: 1px solid var(--t-line);
  color: var(--t-ink); font-size: 10px; padding: 4px 8px; font-family: inherit; }
.dh-lab button:disabled { opacity: .45; cursor: not-allowed; }
.dh-ag { border: 1px solid var(--t-line-2); padding: 6px 8px; margin-bottom: 5px; }
.dh-ag b { font-size: 10.5px; }
.dh-tur { font-size: 9px; color: var(--t-amber); letter-spacing: .1em; }
.dh-ag .dh-meta { font-size: 9.5px; color: var(--t-dim2); }
.dh-chg summary { cursor: pointer; color: var(--t-amber); font-size: 10px; }
.dh-chg div { padding: 2px 0 0 8px; color: var(--t-dim); font-size: 9.5px; }

/* ---- Anahtar & Model Sağlık Testi ---- */
#btn-health { background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4); color: var(--t-amber);
  padding: 7px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
#health-out { margin: 10px 0; border: 1px solid var(--t-line); padding: 9px 11px; font-size: 11.5px; font-family: var(--t-mono); }
#health-out.hidden { display: none; }
#health-out > b { color: var(--t-amber); font-size: 10px; letter-spacing: .16em; display: block; margin-bottom: 6px; }
.ho-wait { color: var(--t-dim); }
.ho-row { display: grid; grid-template-columns: 116px 16px 1fr; gap: 8px; align-items: baseline;
  padding: 3px 0; border-bottom: 1px solid var(--t-line-2); }
.ho-row span { color: var(--t-dim); }
.ho-row i { font-style: normal; }
.ho-row b { color: var(--t-ink); font-size: 11px; }
.ho-row.ok b, .ho-row.ok { color: var(--t-yesil); }
.ho-row.ok span, .ho-row.ok i { color: var(--t-yesil); }
.ho-row.bad b, .ho-row.bad { color: var(--t-kirmizi); }
.ho-row.mut { color: var(--t-dim2); }

/* ---- Kaplamalar ---- */
#overlay, #podium, #settings {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(3,4,8,.72); backdrop-filter: blur(6px); pointer-events: auto; z-index: 20;
}
.hidden { display: none !important; }
.ov-card {
  background: linear-gradient(160deg, rgba(18,22,38,.96), rgba(10,12,22,.96));
  border: 1px solid rgba(240,214,140,.25); border-radius: 20px;
  padding: 34px 42px; max-width: 660px; width: calc(100vw - 40px);
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center;
}
.ov-card.wide { max-width: 720px; text-align: left; }
.ov-card h1 { font-size: 30px; letter-spacing: 3px; color: #f0d68c; text-shadow: 0 0 24px rgba(240,214,140,.4); }
.ov-card h1 span { color: #fff; }
.ov-card h2 { color: #f0d68c; margin-bottom: 16px; }
.ov-card .sub { margin: 12px 0 20px; opacity: .85; font-size: 14px; line-height: 1.55; }
.roster { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.rp {
  border: 1px solid var(--c); border-radius: 12px; padding: 9px 12px; min-width: 112px;
  background: rgba(255,255,255,.04);
}
.rp b { display: block; font-size: 13px; color: var(--c); }
.rp span { display: block; font-size: 10px; opacity: .75; margin-top: 3px; }
.rp .lab { opacity: .5; }
.ov-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.ov-btns button {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px; padding: 12px 22px; font-size: 14.5px; font-weight: 600; transition: all .15s;
}
.ov-btns button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.ov-btns button.primary {
  background: linear-gradient(135deg, #c99b3f, #f0d68c); color: #1a1406; border: none;
  box-shadow: 0 6px 22px rgba(240,214,140,.3);
}
.hint { font-size: 11.5px; opacity: .55; margin-top: 16px; line-height: 1.5; }

/* ---- Ayarlar ---- */
#settings .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#settings label { font-size: 13px; min-width: 160px; opacity: .85; }
#settings input[type=text], #settings input[type=password], #settings input[type=number] {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; min-width: 0;
}
#settings input:focus { outline: none; border-color: rgba(240,214,140,.6); }
.seats-cfg { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; }
.seat-cfg {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  background: rgba(255,255,255,.04); border-radius: 10px; border-left: 3px solid var(--c);
}
.seat-cfg b { font-size: 13px; min-width: 110px; }
.seat-cfg .sw { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: .85; }
.seat-cfg input[type=text] { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 7px; padding: 6px 8px; font-size: 12px; min-width: 0; }
.seat-cfg select {
  background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px; padding: 5px 6px; font-size: 11.5px; font-family: inherit; cursor: pointer;
}
.seat-cfg select option { background: #171a26; color: #fff; }
#settings .row button, #btn-fetch-models {
  background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px; padding: 8px 14px; font-size: 12.5px;
}
#models-info { font-size: 11.5px; opacity: .65; }

/* ---- Podyum ---- */
#podium-rows { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.pd-row {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255,255,255,.05); border-left: 4px solid var(--c);
  border-radius: 12px; padding: 11px 16px;
}
.pd-row.champ { background: rgba(240,214,140,.12); box-shadow: 0 0 24px rgba(240,214,140,.15); }
.pd-m { font-size: 22px; width: 36px; }
.pd-row b { flex: 1; }
.pd-row small { opacity: .6; font-size: 11px; }
.pd-bank { color: #f0d68c; font-weight: 700; }

/* ---- Lobi ---- */
.ov-card.lobby { max-width: 760px; }
.lb-sec { font-size: 11px; letter-spacing: 2.5px; opacity: .6; margin: 14px 0 8px; text-align: left; }
.lb-sec small { opacity: .8; letter-spacing: 0; margin-left: 6px; }
#game-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.game-card {
  background: rgba(255,255,255,.045); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 12px 8px; cursor: pointer; transition: all .15s; text-align: center;
}
.game-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.game-card.sel { border-color: #f0d68c; background: rgba(240,214,140,.12); box-shadow: 0 0 18px rgba(240,214,140,.15); }
.gc-emoji { font-size: 26px; margin-bottom: 4px; }
.game-card b { display: block; font-size: 14px; }
.game-card small { display: block; font-size: 9.5px; opacity: .6; margin-top: 3px; line-height: 1.35; }
#lineup-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lu-chip {
  border: 1.5px solid rgba(255,255,255,.14); border-radius: 11px; padding: 7px 6px;
  cursor: pointer; transition: all .12s; text-align: center; opacity: .65;
}
.lu-chip:hover { opacity: .9; }
.lu-chip.sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); opacity: 1; }
.lu-chip b { display: block; font-size: 12px; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-chip small { display: block; font-size: 8.5px; opacity: .6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#btn-start-demo:disabled, #btn-start-llm:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---- Oyun panelleri ekstraları ---- */
.hp-hist { display: flex; gap: 4px; flex-wrap: wrap; padding: 2px 4px 8px; }
.bead {
  width: 22px; height: 22px; border-radius: 50%; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none;
}
.bead.r { background: #b3312a; }
.bead.k { background: #23262e; border: 1px solid rgba(255,255,255,.25); }
.bead.g { background: #1f8a4c; }
.bead.p { background: #2477b8; }
.rb {
  display: inline-block; background: rgba(255,255,255,.07); border-radius: 7px;
  padding: 2px 7px; font-size: 10.5px; margin: 1px 0;
}
.rb.w { background: rgba(93,255,154,.2); color: #5dff9a; }
.rb.l { opacity: .45; text-decoration: line-through; }
.hp-row.pk-fold { opacity: .42; }
.pk-hand { color: #f0d68c; font-size: 9.5px; }
.eq { position: relative; width: 74px; height: 14px; background: rgba(255,255,255,.08); border-radius: 7px; overflow: hidden; flex: none; }
.eq i { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, #1f8a4c, #5dff9a); border-radius: 7px; transition: width .4s; }
.eq b { position: absolute; inset: 0; font-size: 9.5px; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 2px #000; }

/* ---- Toast ---- */
#toast {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(20,24,40,.95); border: 1px solid rgba(240,214,140,.4);
  padding: 10px 20px; border-radius: 12px; font-size: 13.5px; z-index: 40;
  animation: feedIn .25s ease-out;
}

@media (max-width: 900px) {
  #scoreboard { width: 190px; }
  #feed { width: 300px; }
}


/* ================= MOBİL UYUM (iPhone / Android) ================= */
@media (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
  #hud button, .ov-btns button, #cambar button, #cam-seats button { min-height: 40px; touch-action: manipulation; }
  #topbar .ctrls button { min-width: 44px; }
  #app canvas { touch-action: none; }
  .tp-row input[type=range], .dh-r input[type=range] { height: 22px; }
}

@media (max-width: 900px) {
  :root { --sol-w: 320px; --sag-w: 252px; }
}

@media (max-width: 700px) {
  #topbar { height: 28px; padding-top: env(safe-area-inset-top); }
  #topbar .hucre { padding: 0 7px; gap: 4px; }
  #topbar .marka span { display: none; }
  #hucre-krupiye, #topbar .hucre:nth-child(7), #topbar .hucre:nth-child(8) { display: none; }
  #topbar .ctrls button { width: 34px; }
  #topbar .ctrls button svg { width: 14px; height: 14px; }

  #sol-kolon, #sag-kolon { top: 32px; bottom: calc(30px + env(safe-area-inset-bottom)); }
  :root { --sol-w: min(52vw, 234px); --sag-w: min(42vw, 190px); }
  #sol-kolon { left: 4px; }
  #sag-kolon { right: 4px; }
  #lat-panel, #brain-panel { display: none; }      /* telefonda derin telemetri: analiz merkezinde */
  #feed-panel { max-height: 38%; }
  .feed-line { grid-template-columns: 46px minmax(0,1fr); font-size: 10px; gap: 5px; padding: 3px 6px; }
  .hp-name { width: 62px; font-size: 10px; }
  .hp-odds { width: 74px; font-size: 9px; }
  .hp-row { min-height: 30px; padding: 3px 6px; gap: 5px; }
  .mc { width: 20px; height: 27px; font-size: 10px; }
  .mc i { font-size: 8px; }
  .sb-row { grid-template-columns: 5px minmax(0,1fr) auto; padding: 4px 6px; }
  .sb-row .st { display: none; }
  .sb-row .who b { font-size: 10.5px; }
  #cambar { gap: 2px; }
  #cambar button, #cam-seats button { font-size: 8.5px; padding: 4px 6px; }
  #lower-third { left: 4px; right: 4px; bottom: calc(26px + env(safe-area-inset-bottom)); }
  #sol-kolon, #sag-kolon { bottom: calc(120px + env(safe-area-inset-bottom)); }
  #pov-hud { width: min(300px, calc(100vw - 8px)); left: 4px; bottom: calc(30px + env(safe-area-inset-bottom)); }
  #band { height: 30px; padding-bottom: env(safe-area-inset-bottom); font-size: 10px; }
  #band .bd-icerik { gap: 8px; padding: 0 7px; }
  #band .bd-kutu:nth-child(n+4) { display: none; }
  #dash { width: 100vw; border-left: none; }
  #tune-panel { width: min(288px, calc(100vw - 8px)); right: 4px; top: 32px; }
  #overlay, #podium, #settings { align-items: flex-start; padding: 10px 0; overflow-y: auto; }
  .ov-card { padding: 20px 14px; width: calc(100vw - 12px); max-height: none; }
  .ov-card h1 { font-size: 20px; }
  #settings label { min-width: 100px; font-size: 12px; }
  .seat-cfg { flex-wrap: wrap; }
}

/* Sanal joystick — dokunmatikte serbest kamerada görünür */
#mjoy {
  position: fixed; left: 14px; bottom: calc(34px + env(safe-area-inset-bottom));
  width: 104px; height: 104px; border-radius: 50%; z-index: 45; touch-action: none;
  background: rgba(255,176,32,.06); border: 1px solid rgba(255,176,32,.42);
}
#mjoy i {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; border-radius: 50%;
  transform: translate(-50%,-50%); background: rgba(255,176,32,.28); border: 1px solid rgba(255,176,32,.7);
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- YÖNETİCİ ÖZETİ: teknik telemetrinin okunabilir yüzü ---- */
#yonetici {
  position: absolute; left: 50%; top: 42px; transform: translateX(-50%);
  width: min(1080px, calc(100vw - 24px)); max-height: calc(100vh - 96px); overflow-y: auto;
  z-index: 44; background: rgba(5,8,11,.975); border: 1px solid var(--t-line);
  padding: 0 0 14px; pointer-events: auto;
}
#yonetici.hidden { display: none; }
.yn-bas {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--t-line); position: sticky; top: 0; background: rgba(5,8,11,.99);
}
.yn-bas .yn-kod { font-size: 9px; letter-spacing: .2em; color: #05070a; background: var(--t-amber); padding: 3px 7px; }
.yn-bas b { font-size: 12px; letter-spacing: .2em; color: var(--t-amber); }
.yn-bas .yn-alt { margin-left: auto; font-size: 10px; color: var(--t-dim); letter-spacing: .06em; }
.yn-bas button { background: none; border: none; color: var(--t-dim); font-size: 13px; cursor: pointer; padding: 0 2px; }
.yn-bas button:hover { color: var(--t-ink); }

.yn-manset {
  font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--t-ink);
  padding: 16px 16px 6px; line-height: 1.3; font-family: var(--t-sans);
}
.yn-hikaye {
  font-size: 13.5px; line-height: 1.62; color: #ffe0a8; padding: 0 16px 14px;
  font-family: var(--t-sans); max-width: 96ch; border-bottom: 1px solid var(--t-line-2);
}
.yn-izgara {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 8px; padding: 12px 14px;
}
.yn-kart {
  border: 1px solid var(--t-line-2); border-left: 3px solid var(--c, var(--t-dim2));
  padding: 9px 11px; background: rgba(255,255,255,.025); min-width: 0;
}
.yn-k-bas { font-size: 8.5px; letter-spacing: .18em; color: var(--t-dim2); }
.yn-k-ad { font-size: 13.5px; font-weight: 600; color: var(--c); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yn-k-deger { font-size: 21px; font-weight: 600; margin-top: 2px; line-height: 1.1; }
.yn-k-alt { font-size: 10.5px; color: var(--t-dim); margin-top: 4px; line-height: 1.45; font-family: var(--t-sans); }
.yn-bos { color: var(--t-dim2); font-size: 12px; padding: 10px 4px; }
.yn-ozet {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 10px 16px 0; margin: 0 14px; border-top: 1px solid var(--t-line-2);
  font-size: 11.5px; color: var(--t-dim);
}
.yn-ozet b { color: var(--t-amber); font-size: 9px; letter-spacing: .18em; }
.yn-ozet .yn-nokta { color: var(--t-dim2); }
@media (max-width: 700px) {
  #yonetici { top: 32px; width: calc(100vw - 8px); max-height: calc(100vh - 70px); }
  .yn-manset { font-size: 16px; padding: 12px 12px 4px; }
  .yn-hikaye { font-size: 12.5px; padding: 0 12px 12px; }
  .yn-izgara { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
  .yn-k-deger { font-size: 17px; }
}

/* ---- Bölüm yapısı + hikâye yayları ---- */
.yn-bolum { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.yn-bolum .bl { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: baseline; }
.yn-bolum .bl-b { font-size: 8.5px; letter-spacing: .18em; color: var(--t-amber); }
.yn-bolum .bl-i { font-size: 12.5px; line-height: 1.55; color: var(--t-ink); font-family: var(--t-sans); }
.yn-bolum .bl-i i { color: var(--t-dim2); font-size: 11px; }
.yn-hikayeler { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 4px; }
.hik { border: 1px solid var(--t-line-2); border-left: 3px solid var(--c); padding: 8px 11px; background: rgba(255,255,255,.025); }
.hik-ust { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.hik-et { font-size: 8.5px; letter-spacing: .16em; color: #05070a; background: var(--c); padding: 2px 6px; }
.hik-ust b { font-size: 13px; font-weight: 600; }
.hik-ger { font-size: 10px; color: var(--t-dim); margin-left: auto; }
.hik-dur { font-size: 9px; letter-spacing: .12em; color: var(--c); }
.hik-ozet { font-size: 12px; color: var(--t-dim); margin-top: 5px; line-height: 1.5; font-family: var(--t-sans); }
.hik-beat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hik-beat span { font-size: 9.5px; color: var(--t-dim2); border: 1px solid var(--t-line-2); padding: 1px 6px; }
.hik-beat i { color: var(--t-amber); font-style: normal; }

/* ---- HIGHLIGHT + REPLAY ---- */
.yn-anlar { padding: 6px 14px 4px; }
.an-bas { font-size: 8.5px; letter-spacing: .18em; color: var(--t-amber); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 10px; }
.an-bas span { color: var(--t-dim2); letter-spacing: .06em; }
.an { border: 1px solid var(--t-line-2); border-left: 3px solid var(--c); padding: 7px 10px;
  margin-bottom: 6px; background: rgba(255,255,255,.025); }
.an-ust { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.an-skor { font-size: 17px; font-weight: 600; color: var(--c); }
.an-skor small { font-size: 9px; color: var(--t-dim2); }
.an-sev { font-size: 8.5px; letter-spacing: .16em; color: #05070a; background: var(--c); padding: 2px 6px; }
.an-ust b { font-size: 12.5px; }
.an-tip { font-size: 11px; color: var(--t-dim); }
.an-cek { margin-left: auto; font-size: 9.5px; color: var(--t-dim2); }
.an-zincir { font-size: 11.5px; color: #ffe0a8; margin-top: 5px; font-family: var(--t-sans); line-height: 1.45; }
.an-dugme { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.an-dugme button { background: rgba(255,176,32,.13); border: 1px solid rgba(255,176,32,.42);
  color: var(--t-amber); font: inherit; font-size: 9.5px; letter-spacing: .06em; padding: 3px 9px; cursor: pointer; }
.an-dugme button:hover:not(:disabled) { background: rgba(255,176,32,.3); }
.an-dugme button:disabled { opacity: .28; cursor: not-allowed; }
.an-dugme .an-yok { font-size: 8.5px; letter-spacing: .12em; color: rgba(255,255,255,.32); margin-right: 4px; }
#replay-rozet { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, 76vw);
  background: rgba(18,10,10,.92); border: 1px solid rgba(255,70,70,.55); border-left: 3px solid #ff3c3c;
  color: #fff; font-size: 10.5px; letter-spacing: .1em; padding: 5px 13px 5px 11px; font-weight: 600;
  box-shadow: 0 6px 26px rgba(0,0,0,.55); }
#replay-rozet.hidden { display: none; }
#replay-rozet .rp-nokta { width: 7px; height: 7px; border-radius: 50%; background: #ff3c3c;
  box-shadow: 0 0 8px #ff3c3c; animation: rp-yan 1.05s steps(1,end) infinite; flex: none; }
@keyframes rp-yan { 0%,50% { opacity: 1 } 51%,100% { opacity: .18 } }
#replay-rozet .rp-ad { color: #ff6b6b; letter-spacing: .2em; flex: none; }
#replay-rozet .rp-baslik { color: rgba(255,255,255,.82); font-weight: 500; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#replay-rozet .rp-sure { color: var(--t-amber); font-variant-numeric: tabular-nums; flex: none; }
#replay-rozet .rp-an { flex: none; background: #ff3c3c; color: #fff; padding: 1px 7px;
  letter-spacing: .16em; animation: rp-carp .5s ease-out; }
@keyframes rp-carp { from { transform: scale(1.35); filter: brightness(2) } to { transform: scale(1) } }
#replay-rozet .rp-cubuk { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: rgba(255,255,255,.12); }
#replay-rozet .rp-cubuk i { display: block; height: 100%; background: #ff3c3c; transition: width .22s linear; }
#replay-rozet.an-geldi { border-color: #ff3c3c; box-shadow: 0 6px 30px rgba(255,60,60,.45); }
body.replay-acik #sol-kolon, body.replay-acik #sag-kolon, body.replay-acik #band { opacity: .25; transition: opacity .3s; }

/* ===== SUNUM MODU — ajans/patron gösterimi ===============================
   Geliştirici yüzeyleri gider; sinematik kamera, karakter etiketleri,
   gece kimliği ve gelişen hikâye kalır. */
#sunum-serit { position: absolute; left: 0; right: 0; top: 0; z-index: 40; display: none;
  align-items: center; gap: 18px; padding: 11px 22px;
  background: linear-gradient(180deg, rgba(8,10,16,.92), rgba(8,10,16,0));
  font: 600 12px/1 var(--t-font, "IBM Plex Mono", monospace); letter-spacing: .12em; }
body.sunum #sunum-serit { display: flex; }
#sunum-serit .sn-sol { display: flex; align-items: center; gap: 9px; color: #fff; flex: none; }
#sunum-serit .sn-sol i { width: 8px; height: 8px; border-radius: 50%; background: #ff3c3c;
  box-shadow: 0 0 9px #ff3c3c; animation: rp-yan 1.1s steps(1,end) infinite; }
#sunum-serit .sn-sol span { color: var(--t-amber); letter-spacing: .18em; }
#sunum-serit .sn-orta { flex: 1 1 46%; min-width: 150px; color: rgba(255,255,255,.9); font-weight: 500;
  letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sunum-serit .sn-orta .et { display: inline-block; margin-right: 9px; padding: 2px 8px;
  border: 1px solid var(--c, #888); color: var(--c, #888); font-size: 9px; letter-spacing: .16em;
  white-space: nowrap; }
/* Sağ blok da daralabilir: hikâye başlığı öncelikli, durum satırı geri çekilir */
#sunum-serit .sn-sag { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0;
  overflow: hidden; color: rgba(255,255,255,.62); font-weight: 500; font-size: 11px; letter-spacing: .06em; }
#sunum-serit .sn-sag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  #sunum-serit { gap: 11px; padding: 9px 14px; }
  #sunum-serit .sn-sag span { display: none; }     /* dar ekranda yalnız salon ruhu kalır */
  #sunum-serit .sn-sol span { display: none; }
}
#sunum-serit .sn-sag .ruh { letter-spacing: .2em; }
#sunum-serit .sn-sag .ruh.calm { color: #5dff9a; }
#sunum-serit .sn-sag .ruh.social { color: #7bd3ff; }
#sunum-serit .sn-sag .ruh.tense { color: var(--t-amber); }
#sunum-serit .sn-sag .ruh.volatile { color: #ff9e5e; }
#sunum-serit .sn-sag .ruh.chaotic { color: #ff6b6b; }
#sunum-cikis { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 41; display: none; padding: 7px 18px; background: rgba(8,10,16,.85);
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75);
  font: 11px/1 var(--t-font, monospace); letter-spacing: .1em; opacity: 0; transition: opacity .4s; }
#sunum-cikis b { color: var(--t-amber); }
body.sunum #sunum-cikis { display: block; }
body.sunum #sunum-cikis.gorunur { opacity: 1; }
/* Geliştirici yüzeylerini gizle */
body.sunum #topbar, body.sunum #sol-kolon, body.sunum #sag-kolon, body.sunum #band,
body.sunum #yonetici, body.sunum #dash, body.sunum #tune-panel, body.sunum #pot-pill,
body.sunum #health-out, body.sunum #pov-hud, body.sunum #mjoy, body.sunum #cctv-katman { display: none !important; }
/* Alt üçlü (lower-third) sunumda kalır — yayın dili */
body.sunum #lower-third { bottom: 64px; }

/* ---- KASA paneli (ekonomi) ---- */
#kasa-panel { max-height: 46%; }
#kasa-govde { overflow: auto; padding: 6px 9px 8px; font-size: 10.5px; line-height: 1.45; }
.kasa-bos { color: var(--t-dim2); padding: 6px 0; }
.kasa-etiket { font-size: 9px; letter-spacing: .18em; color: var(--t-dim2); margin: 6px 0 3px; text-transform: uppercase; }
.kasa-blok { margin-bottom: 4px; }
.kasa-satir { display: grid; grid-template-columns: 52px 1fr 54px; align-items: center; gap: 6px; margin: 2px 0; }
.kasa-satir span { color: var(--t-dim); }
.kasa-satir b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.kasa-bar { display: block; height: 6px; background: var(--t-line-2); position: relative; border-radius: 1px; overflow: hidden; }
.kasa-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--t-yesil); }
.kasa-bar.gider::after { background: var(--t-kirmizi); opacity: .85; }
.kasa-ozet { color: var(--t-dim); margin: 4px 0 2px; font-size: 10px; }
.kasa-ozet b { color: var(--t-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.kasa-cuzdanlar { display: flex; flex-direction: column; gap: 2px; }
.kasa-cuzdan { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-left: 2px solid var(--c, var(--t-amber)); background: var(--t-line-2); font-variant-numeric: tabular-nums; }
.kasa-cuzdan .ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kasa-cuzdan .nakit { color: var(--t-ink); } .kasa-cuzdan .fis { color: var(--t-amber); } .kasa-cuzdan .borc { color: var(--t-kirmizi); }
.kasa-cuzdan .durum { font-size: 8.5px; letter-spacing: .12em; color: var(--t-kirmizi); border: 1px solid currentColor; padding: 0 4px; }
.kasa-cuzdan .durum.masada { color: var(--t-yesil); }
.kasa-cuzdan.iflas { opacity: .8; border-left-color: var(--t-kirmizi); }
.kasa-hareketler { color: var(--t-dim); font-size: 10px; }
.kasa-hareketler i { font-style: normal; color: var(--t-dim2); margin-right: 4px; }
#hucre-kasa b { font-variant-numeric: tabular-nums; }
/* Seyir modunda KASA paneli: sağ üstte serbest kutu (sağ kolon gizli olsa da görünür) */
#kasa-panel.kasa-serbest { position: fixed; top: 56px; right: 12px; width: 300px; max-height: 42vh; z-index: 35; pointer-events: auto; background: #171C20f5; border-color: #555b60; }
#kasa-panel.kasa-serbest .pnl-bas { color: #B99B62; }
@media (max-width: 980px) { #kasa-panel.kasa-serbest { display: none !important; } }
