* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: #0b1422;
  color: #e8eef7;
  font-size: 15px;
  line-height: 1.45;
}
main { display: none; height: 100%; }
body.giris #girisEkrani { display: flex; align-items: center; justify-content: center; padding: 20px; }
body.oturum #oturumEkrani { display: flex; flex-direction: column; }

/* Giriş */
form { width: 100%; max-width: 360px; background: #13213a; border: 1px solid #243a5a; border-radius: 14px; padding: 28px 26px; }
.marka { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.marka span { color: #2dd4bf; }
.alt { color: #8fa3bf; font-size: 13px; margin: 2px 0 22px; }
label { display: block; color: #8fa3bf; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
#kod {
  width: 100%; font: 700 26px Consolas, "Cascadia Mono", Menlo, monospace; letter-spacing: 2px; text-align: center;
  padding: 12px; border-radius: 10px; border: 1px solid #2e4a72; background: #0b1422; color: #2dd4bf;
}
#kod:focus { outline: 2px solid #2dd4bf; outline-offset: 1px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 8px; cursor: pointer; }
button:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }
#baglan { width: 100%; margin-top: 14px; padding: 13px; background: #14b8a6; color: #04201d; font-size: 16px; }
#baglan:hover { background: #2dd4bf; }
#baglan:disabled { opacity: 0.55; cursor: default; }
.mesaj { min-height: 22px; margin: 14px 0 0; color: #fbbf24; }
.mesaj.iyi { color: #2dd4bf; }
.ipucu { margin: 10px 0 0; color: #6f84a3; font-size: 12.5px; }

/* Oturum */
#aracCubugu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 10px; background: #13213a; border-bottom: 1px solid #243a5a; flex: none; }
#aracCubugu button { padding: 6px 12px; background: #243a5a; color: #e8eef7; font-size: 13px; white-space: nowrap; }
#aracCubugu button:hover { background: #2e4a72; }
#aracCubugu button.tehlike { background: #ef4444; color: #fff; }
#aracCubugu button.tehlike:hover { background: #f87171; }
.durum { display: flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.nokta { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; }
body.bagli .nokta { background: #22c55e; }
.olcum { color: #8fa3bf; font-size: 12px; font-family: Consolas, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bosluk { flex: 1; min-width: 0; }
#uyari { flex: none; background: #4a3500; color: #ffd27a; border-bottom: 1px solid #7a5a00; padding: 7px 12px; font-size: 13px; }
#uyari[hidden] { display: none; }
html, body { overflow: hidden; }
@media (max-width: 620px) { .olcum { order: 9; flex-basis: 100%; } .bosluk { display: none; } #aracCubugu button { padding: 6px 9px; } .durum { margin-right: auto; } }
.yalnizDokunmatik { display: none; }
@media (pointer: coarse) { .yalnizDokunmatik { display: inline-block; } #winDugme, #tamEkranDugme, #kaliteDugme { display: none; } }

#sahne { flex: 1; min-height: 0; position: relative; background: #000; outline: none; touch-action: none; overflow: hidden; cursor: default; }
#goruntu { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
#dokunmatikKlavye { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; font-size: 16px; }

/* Sunucu sürümü: teknisyen girişi */
.alan { margin-bottom: 14px; }
.alan input { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid #2e4a72; background: #0b1422; color: #e8eef7; }
.alan input:focus { outline: 2px solid #2dd4bf; outline-offset: 1px; }
.ustBilgi { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; color: #8fa3bf; font-size: 12.5px; }
.baglantiDugme { background: none; color: #8fa3bf; padding: 4px 0; text-decoration: underline; font-weight: 400; font-size: 12.5px; }
.baglantiDugme:hover { color: #e8eef7; }
