/* Köz — giriş, kayıt ve karakter ekranları (js/giris.js, js/secim-sahnesi.js). Renk / yazı değişkenleri tema.css :root'tan gelir.
   Yerleşim:
   - giriş / kayıt / misafir: ortada tek levha (#gPano)
   - karakter seçme: solda boydan boya liste şeridi (#gPano), sahnedeki karakterin ayağının dibinde ad + "Dünyaya gir" (#gSecili),
     sağ üstte haberler (#gHaber)
   - karakter yaratma: solda sınıf / cinsiyet / ad (#gPano), sağda sınıf tanıtımı (#gSinifBilgi)
   Başarım: bulanıklık (backdrop-filter) yok, sürekli çalışan animasyon yok (yalnız bekleme çarkı); okunurluk düz renk geçişli
   perdelerle sağlanır. Sahne sağa kaydırılır (giris.js SAHNE_KAYMA) ki karakter şeridin altında kalmasın. */

#giris { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; color: var(--k-kemik);
  background: radial-gradient(ellipse at 58% 74%, #3a1d0c 0, #150d08 44%, #070504 100%); }
#gSahne { position: absolute; inset: 0; z-index: 0; overflow: hidden; touch-action: none; }
#giris[data-ekran="karakterler"] #gSahne, #giris[data-ekran="olustur"] #gSahne { cursor: grab; }
#giris #gSahne.tutuluyor { cursor: grabbing; }
#giris.duzArka #gSahne, #giris #gSahne.duz { cursor: default; }
/* okunurluk perdesi: giriş ekranında ortası koyu; karakter ekranlarında yalnız alt kenar (ad ve düğme için). Tıklamayı engellemez. */
#giris::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, #07050499 0, #070504e0 100%); }
#giris[data-ekran="karakterler"]::after, #giris[data-ekran="olustur"]::after { background: linear-gradient(0deg, #070504eb 0, #07050499 16%, transparent 40%); }
#gPano, #gSecili, #gSinifBilgi, #gHaber, #gSahneYuk, #gDonIpucu { z-index: 2; }

/* ---------- ortak parçalar ---------- */
.gBas { text-align: center; }
.gBas h1 { margin: 0; padding-top: 46px; font: 600 54px/1 var(--y-baslik); letter-spacing: 1px; color: var(--k-kemik); text-shadow: 0 2px 0 #000;
  background: var(--k-damga) center top / 38px 38px no-repeat; }
.gBas .alt { margin: 8px 0 0; font: 600 13px/1.3 var(--y-sayi); letter-spacing: 2px; color: var(--k-tunc); }
.alt { color: var(--k-soluk); margin: 0; font-size: 12px; min-height: 1em; }
#giris h2, #giris h3 { margin: 0; font: 600 19px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-tuncAcik); }
#girisDurum { text-align: center; font: 500 12px/1.4 var(--y-sayi); letter-spacing: 0.3px; }
.gEtiket, .gForm label { display: block; margin-top: 8px; font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-soluk); }
.gForm label i { font-style: normal; opacity: 0.7; }
.gBildirim { padding: 8px 10px; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); background: var(--k-levha2); font-size: 13px; text-align: center; }
.gBildirim.uyari { box-shadow: inset 0 0 0 1px #8a3024; background: #2a120d; color: #ffcdb8; }

.gForm { display: grid; gap: 6px; }
.gForm input:not([type="checkbox"]) { width: 100%; font: inherit; padding: 9px 10px; color: var(--k-kemik); background: var(--k-is); border: 1px solid #000; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--k-cizgi); outline: none; user-select: text; }
.gForm input:not([type="checkbox"]):focus { box-shadow: inset 0 0 0 1px var(--k-kor); }
.gForm input.hatali { box-shadow: inset 0 0 0 1px #c2452f; }
.gForm input.uygun { box-shadow: inset 0 0 0 1px #5f8a4a; }
.gParola { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.gGoz { min-width: 64px; padding: 6px 8px; font-size: 12px; }
.gOnay { display: flex !important; align-items: center; gap: 7px; color: var(--k-kemik) !important; font: 13px/1.4 var(--y-govde) !important; letter-spacing: 0 !important; cursor: pointer; }
.gOnay input { accent-color: var(--k-kor); width: 15px; height: 15px; margin: 0; }
.gIpucu { color: var(--k-soluk); font-size: 11.5px; min-height: 1.3em; }
.gIpucu.hatali { color: var(--k-kotu); }
.gIpucu.uygun { color: var(--k-iyi); }
.gHata { margin: 0; min-height: 1.2em; color: var(--k-kotu); font-size: 12.5px; }
.gHata:empty { min-height: 0; }
.gForm > .gAna { margin-top: 6px; }
/* ana eylem: kor dolgulu (oyun içindeki .t-ana ile aynı) */
#giris .gAna { padding: 10px 16px; font: 700 14.5px/1.3 var(--y-govde); color: #1c0d04; background: linear-gradient(#f07a35, #cf5320); border: 1px solid #000; border-radius: var(--r);
  box-shadow: inset 0 1px 0 #ffd0a066, inset 0 0 0 1px #8f3413; }
#giris .gAna:hover:not(:disabled) { background: linear-gradient(#ff8d48, #dd5f28); color: #1c0d04; }
#giris .gAna:disabled { background: var(--k-levha2); color: var(--k-soluk); box-shadow: inset 0 0 0 1px var(--k-cizgi); opacity: 0.7; }
#giris .gTehlike { background: #4a1a14; color: #ffc9bd; box-shadow: inset 0 0 0 1px #8a3024; }
#giris .gTehlike:hover:not(:disabled) { background: #5e2018; }
#giris .gYazi { padding: 4px 6px; background: none; border: 0; box-shadow: none; color: var(--k-soluk); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
#giris .gYazi:hover:not(:disabled) { background: none; box-shadow: none; color: var(--k-kemik); }
#giris button.bekliyor { cursor: progress; }
.gForm input:not([type="checkbox"]):focus-visible, #giris button:focus-visible, .gYuva:focus-visible { outline: 2px solid var(--k-korAcik); outline-offset: 1px; }

/* parola gücü */
.gGuc { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; }
.gGuc i { height: 3px; background: var(--k-cizgi); }
.gGuc span { font-size: 11.5px; color: var(--k-soluk); min-width: 96px; text-align: right; }
.gGuc[data-guc="1"] i:nth-child(-n+1) { background: #c8553f; }
.gGuc[data-guc="2"] i:nth-child(-n+2) { background: #d9822b; }
.gGuc[data-guc="3"] i:nth-child(-n+3) { background: #c9b24a; }
.gGuc[data-guc="4"] i:nth-child(-n+4) { background: #7fb85a; }

/* krallık rozeti: küçük flama + ad (Gökyele = mavi, Kızılkor = kırmızı) */
.gKr { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: 600 13px/1.3 var(--y-sayi); letter-spacing: 0.6px; color: var(--kr, var(--k-soluk)); }
.gKr[hidden] { display: none; }
.gKr::before { content: ""; width: 12px; height: 14px; background: var(--kr, var(--k-soluk)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.gKr[data-kr="mavi"] { --kr: #6aa8ff; }
.gKr[data-kr="kirmizi"] { --kr: #f0686c; }

/* ---------- giriş / kayıt / misafir: ortada levha ---------- */
#gPano { position: relative; width: min(390px, 94vw); max-height: 96vh; overflow-y: auto; display: grid; gap: 12px; padding: 30px 28px 18px;
  background: #14110ef2; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi), inset 0 1px 0 #ffffff17, 0 16px 40px #000c; }
.gSekmeler { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--k-cizgi); margin-bottom: 2px; }
#giris .gSekmeler button { padding: 9px 0 8px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; color: var(--k-soluk); font: 600 14px/1.3 var(--y-sayi); letter-spacing: 0.5px; }
#giris .gSekmeler button:hover { background: #ffffff0a; color: var(--k-kemik); }
#giris .gSekmeler button[aria-selected="true"] { color: var(--k-kemik); border-bottom-color: var(--k-kor); }

/* ---------- karakter seçme / yaratma: solda boydan boya şerit ---------- */
#giris[data-ekran="karakterler"] #gPano, #giris[data-ekran="olustur"] #gPano {
  position: absolute; left: 0; top: 0; bottom: 0; width: clamp(292px, 25vw, 372px); max-height: none; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 14px clamp(18px, 2.2vw, 34px); background: linear-gradient(90deg, #070504f5 0, #070504e6 62%, #07050400 100%); border: 0; border-radius: 0; box-shadow: none; }
#giris[data-ekran="karakterler"] .gBas, #giris[data-ekran="olustur"] .gBas { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; text-align: left; }
#giris[data-ekran="karakterler"] .gBas h1, #giris[data-ekran="olustur"] .gBas h1 { padding: 0 0 0 30px; font-size: 26px; background-position: left center; background-size: 22px 22px; }
#giris[data-ekran="karakterler"] .gBas .alt, #giris[data-ekran="olustur"] .gBas .alt { margin: 0; font-size: 11.5px; letter-spacing: 1.4px; }
#giris[data-ekran="karakterler"] .gEkran, #giris[data-ekran="olustur"] .gEkran { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
#giris .gEkran[hidden] { display: none; }
#giris[data-ekran="olustur"] .gForm { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.gUst { display: flex; align-items: baseline; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--k-cizgi); }
.gUst h2 { margin-right: auto; }
.gSayac { flex: none; font: 600 13px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); font-variant-numeric: tabular-nums; }

/* karakter satırları: sınıf simgesi | ad + sınıf | seviye */
.gYuvalar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
#giris .gYuva { position: relative; width: 100%; min-height: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "p y s" "a a a"; align-items: center; gap: 2px 12px;
  padding: 9px 12px 9px 10px; text-align: left; font: inherit; color: var(--k-kemik); cursor: pointer; background: #1b171399; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #2a231c; }
#giris .gYuva:hover { background: #282119cc; box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); }
#giris .gYuva[aria-selected="true"] { background: #2a1a10e6; box-shadow: inset 0 0 0 1px #8f3413, inset 3px 0 0 var(--k-kor); }
#giris .gYuva .gPortre { grid-area: p; width: 40px; height: 40px; padding: 8px; color: var(--k-soluk); background: var(--k-is); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--k-cizgi); }
#giris .gYuva[aria-selected="true"] .gPortre { color: var(--k-korAcik); box-shadow: inset 0 0 0 1px #8f3413; }
.gPortre svg { display: block; }
.gYuvaYazi { grid-area: y; display: grid; gap: 1px; min-width: 0; }
#giris .gYuva .ad { font: 600 17px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#giris .gYuva .sinif { font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#giris .gYuva .sv { grid-area: s; display: grid; justify-items: end; font: 700 22px/1 var(--y-sayi); color: var(--k-tuncAcik); font-variant-numeric: tabular-nums; }
#giris .gYuva .sv small { font: 600 10.5px/1.3 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-soluk); }
.gYuvaAlt { grid-area: a; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid #ffffff10; }
#giris .gYuva .durum { color: var(--k-kotu); font-size: 11.5px; line-height: 1.3; }
#giris .gYuva .geriAl { flex: none; padding: 2px 10px; font-size: 12px; color: var(--k-kemik); background: var(--k-levha2); border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi); cursor: pointer; }
#giris .gYuva .geriAl:hover { box-shadow: inset 0 0 0 1px var(--k-tunc); }
#giris .gYuva.silinen { opacity: 0.8; }
#giris .gYuva.silinen .ad { text-decoration: line-through; text-decoration-color: #c8553f; }
/* boş yuva: "Yeni karakter" satırı ve kalan soluk yuvalar */
#giris .gYuva.bos { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "p y"; background: none; border: 1px dashed var(--k-cizgiAcik); box-shadow: none; }
#giris .gYuva.bos:hover { background: #ffffff0a; border-color: var(--k-tunc); }
#giris .gYuva.bos .arti { grid-area: p; width: 40px; height: 40px; display: grid; place-items: center; font: 300 28px/1 var(--y-govde); color: var(--k-korAcik); }
#giris .gYuva.bos .ad { font-size: 15.5px; }
.gYuvaBos { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 5px 12px 5px 10px; border: 1px dashed #2a231c; border-radius: var(--r); color: var(--k-sonuk); font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; }
.gYuvaBos .arti { text-align: center; }
.gHesapSerit { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--k-cizgi); }
.gHesap { margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--k-soluk); font-size: 12.5px; }
.gHesap b { color: var(--k-kemik); font-weight: 600; }

/* seçili karakter: sahnedeki karakterin ayağının dibinde ad, sınıf · seviye, krallık ve "Dünyaya gir" */
#gSecili { position: absolute; left: 60%; bottom: clamp(14px, 4vh, 40px); transform: translateX(-50%); width: min(440px, 46vw); display: grid; gap: 6px; justify-items: center; text-align: center; }
#giris:not([data-ekran="karakterler"]) #gSecili, #giris:not([data-ekran="olustur"]) #gSinifBilgi { display: none; }
.gSeciliAd { display: grid; gap: 3px; justify-items: center; min-width: 0; max-width: 100%; }
.gSeciliAd b { max-width: 100%; font: 600 38px/1.1 var(--y-baslik); letter-spacing: 0.3px; color: var(--k-kemik); text-shadow: 0 2px 0 #000, 0 0 18px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gSeciliAlt { font: 600 14px/1.3 var(--y-sayi); letter-spacing: 1px; color: var(--k-tuncAcik); text-shadow: 0 1px 0 #000; }
.gSeciliNot { margin: 0; font-size: 12px; line-height: 1.4; color: var(--k-soluk); text-shadow: 0 1px 0 #000; }
#giris .gBuyuk { width: min(300px, 100%); margin-top: 8px; padding: 13px 16px; font: 700 18px/1.2 var(--y-govde); letter-spacing: 0.3px; }
#giris .gSilYazi { color: #c98d80; font-size: 12px; }
#giris .gSilYazi:hover:not(:disabled) { color: #ffb8a6; }
#giris .gSilYazi:disabled { opacity: 0.4; text-decoration: none; }

/* ---------- karakter yaratma ---------- */
/* sınıf satırları: simge | ad + rol */
.gSiniflar { display: grid; gap: 4px; }
#giris .gSinif { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "i b" "i e"; align-items: center; column-gap: 12px; padding: 8px 12px 8px 10px; text-align: left;
  background: #1b171399; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px #2a231c; }
#giris .gSinif:hover { background: #282119cc; box-shadow: inset 0 0 0 1px var(--k-cizgiAcik); }
#giris .gSinif[aria-checked="true"] { background: #2a1a10e6; box-shadow: inset 0 0 0 1px #8f3413, inset 3px 0 0 var(--k-kor); }
#giris .gSinif i { grid-area: i; width: 30px; height: 30px; color: var(--k-soluk); }
#giris .gSinif i svg { display: block; }
#giris .gSinif[aria-checked="true"] i { color: var(--k-korAcik); }
#giris .gSinif b { grid-area: b; font: 600 16.5px/1.25 var(--y-baslik); letter-spacing: 0.2px; color: var(--k-kemik); }
#giris .gSinif em { grid-area: e; font: 600 11.5px/1.3 var(--y-sayi); font-style: normal; letter-spacing: 0.5px; color: var(--k-soluk); }
/* cinsiyet: ikili düğme */
.gGorunus { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; align-items: center; } /* etiket solda, seçenek sağda: sekiz satır panele sığsın */
.gGorunus .gEtiket { margin: 0; }
.gGorunus:empty { display: none; }
/* numaralı görünüş seçenekleri (saç, kaş, burun, sakal): ‹ 3 / 12 › */
.gAdim { display: grid; grid-template-columns: 34px 1fr 34px; gap: 4px; align-items: center; }
#giris .gAdim button { padding: 5px 0; font: 700 17px/1.2 var(--y-govde); background: #1b171399; box-shadow: inset 0 0 0 1px #2a231c; }
#giris .gAdim button:hover { background: #282119cc; }
.gAdim output { text-align: center; font: 600 13.5px/1.3 var(--y-govde); color: #e9dcc6; }
.gSecenekler { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
#giris .gSecenekler button { padding: 7px 9px; font: 600 13.5px/1.3 var(--y-govde); background: #1b171399; box-shadow: inset 0 0 0 1px #2a231c; }
#giris .gSecenekler button:hover { background: #282119cc; }
#giris .gSecenekler button[aria-checked="true"] { background: #2a1a10e6; color: #fff3e2; box-shadow: inset 0 0 0 1px #8f3413, inset 0 -3px 0 -1px var(--k-kor); }
.gAlt { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
#giris[data-ekran="olustur"] .gAlt { margin-top: auto; padding-top: 10px; }
#giris[data-ekran="olustur"] .gAlt .gAna { flex: 1; }

/* sınıf tanıtımı (sağda) */
#gSinifBilgi { position: absolute; right: clamp(12px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); width: clamp(264px, 23vw, 340px); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; gap: 8px;
  padding: 18px 20px 16px; background: #14110ef0; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi), inset 0 3px 0 -1px var(--k-kor), 0 12px 30px #000a; }
#gSinifBilgi h3 { font-size: 28px; color: var(--k-kemik); }
#gSinifBilgi p { margin: 0; }
.gRol { font: 600 12.5px/1.3 var(--y-sayi); letter-spacing: 0.8px; color: var(--k-korAcik); }
.gTanim { font: 14px/1.55 var(--y-baslik); color: #dccdb2; }
#gSinifBilgi dl { margin: 0; display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid var(--k-cizgi); border-bottom: 1px solid var(--k-cizgi); }
#gSinifBilgi dl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 13px; }
#gSinifBilgi dt { font: 600 12px/1.5 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); }
#gSinifBilgi dd { margin: 0; color: var(--k-kemik); font-weight: 600; }
.gNitler { display: grid; gap: 4px; }
.gNit { display: grid; grid-template-columns: 86px minmax(0, 1fr) 22px; align-items: center; gap: 8px; }
.gNit span { font: 600 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: var(--k-soluk); }
.gNit i { display: block; height: 6px; background: var(--k-is); border: 1px solid #000; overflow: hidden; }
.gNit i b { display: block; height: 100%; background: var(--k-tunc); }
.gNit em { font: 700 13px/1 var(--y-sayi); font-style: normal; text-align: right; color: var(--k-kemik); font-variant-numeric: tabular-nums; }

/* ---------- haberler (sağ üst) ---------- */
#gHaber { position: absolute; right: clamp(12px, 2.4vw, 40px); top: clamp(12px, 3vh, 32px); width: clamp(230px, 20vw, 310px); max-height: 30vh; overflow-y: auto; padding: 11px 15px 11px;
  background: #14110ee6; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi); }
#giris:not([data-ekran="karakterler"]) #gHaber { display: none; }
#gHaber h3 { font-size: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--k-cizgi); }
#gHaberListe { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 7px; }
#gHaberListe li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; }
#gHaberListe b { font: 600 14px/1.3 var(--y-baslik); color: var(--k-kemik); }
#gHaberListe span { grid-column: 1; font-size: 11.5px; color: var(--k-soluk); }
#gHaberListe em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 11.5px/1.3 var(--y-sayi); font-style: normal; letter-spacing: 0.3px; color: var(--k-tunc); white-space: nowrap; }
#gHaberListe em.simdi { color: var(--k-iyi); }

/* ---------- yükleme göstergesi ve döndürme ipucu ---------- */
#gSahneYuk { position: absolute; left: 60%; top: 46%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; pointer-events: none;
  font: 600 13px/1.3 var(--y-sayi); letter-spacing: 0.6px; color: var(--k-tuncAcik); text-shadow: 0 1px 0 #000, 0 0 10px #000; }
#giris[data-ekran="oturum"] #gSahneYuk, #giris[data-ekran="misafir"] #gSahneYuk { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); grid-auto-flow: column; align-items: center; }
#gDonIpucu { position: absolute; left: 60%; top: 14px; transform: translateX(-50%); margin: 0; pointer-events: none; white-space: nowrap; font: 500 12px/1.3 var(--y-sayi); letter-spacing: 0.5px; color: #e6d6b680; text-shadow: 0 1px 0 #000; }
#giris:not([data-ekran="karakterler"]):not([data-ekran="olustur"]) #gDonIpucu, #giris.duzArka #gDonIpucu { display: none; }
.gDonen { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ffffff1f; border-top-color: var(--k-kor); animation: gDon 0.9s linear infinite; margin: 4px 0; }
@keyframes gDon { to { transform: rotate(360deg); } }

/* ---------- örtüler: silme onayı, parola, bağlantı koptu ---------- */
.gOrtu { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: #070504d9; }
.gOrtu > .pano { width: min(400px, 92vw); padding: 20px 22px; background: #1b1713; border: 1px solid #000; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--k-cizgi), inset 0 1px 0 #ffffff17, 0 16px 40px #000c; }
.gOrtu p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.gKopukIc { text-align: center; display: grid; gap: 6px; justify-items: center; }

/* ---------- oyun içi menü (karakter seçimine dön, çıkış): giris.js ekler; menu.js gizler ---------- */
#oyunMenu { position: relative; z-index: 8; display: flex; }
#oyunMenu[hidden] { display: none; }
#oyunMenuListe { position: absolute; right: 0; bottom: calc(100% + 6px); display: grid; gap: 4px; padding: 8px; min-width: 190px; }
#oyunMenuListe[hidden] { display: none; }
#oyunMenuListe button { text-align: left; }
#oyunMenuListe small { color: var(--k-soluk); font-size: 11.5px; padding: 0 2px 2px; }

/* ---------- dar / basık ekranlar ---------- */
@media (max-width: 1180px) {
  #gSecili, #gSahneYuk, #gDonIpucu { left: 62%; }
  .gSeciliAd b { font-size: 31px; }
}
@media (max-width: 900px) {
  /* sınıf tanıtımı sığmaz: gizlenir (rol sınıf satırında yazıyor); haberler de */
  #giris #gSinifBilgi, #gHaber, #gDonIpucu { display: none; }
  #giris[data-ekran="karakterler"] #gPano, #giris[data-ekran="olustur"] #gPano { width: min(300px, 46vw); padding-right: 16px; }
  #gSecili { left: calc(50% + min(150px, 23vw)); width: min(300px, 46vw); }
  .gSeciliAd b { font-size: 24px; }
  .gSeciliNot { display: none; }
}
@media (max-height: 660px) {
  #giris[data-ekran="karakterler"] .gBas, #giris[data-ekran="olustur"] .gBas { margin-bottom: 2px; }
  #giris[data-ekran="karakterler"] #gPano, #giris[data-ekran="olustur"] #gPano { padding-top: 12px; gap: 6px; }
  #giris .gYuva { padding-top: 6px; padding-bottom: 6px; }
  #giris .gSinif { padding-top: 5px; padding-bottom: 5px; }
  .gSeciliAd b { font-size: 28px; }
  #giris .gBuyuk { margin-top: 2px; padding: 9px 14px; font-size: 16px; }
  #gSinifBilgi { padding: 12px 16px; gap: 5px; }
  #gSinifBilgi h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .gDonen { animation-duration: 2.4s; } }
/* renk kutuları: renk düğmenin içindeki <i>'dedir (düğmenin kendi zemini temanın çerçevesidir) */
#giris .gSecenekler button.renk { padding: 4px; }
.gSecenekler button.renk i { display: block; height: 15px; border-radius: 2px; box-shadow: inset 0 0 0 1px #0009; }
.gSecenekler button.renk[aria-checked="true"] i { box-shadow: 0 0 0 2px #f07a35, inset 0 0 0 1px #0009; }

/* ================= GÖSTERİŞ (29 Kasım 2026): boyama arka plan, logo, altın çerçeve =================
   Resimler istemci/resim/arayuz (kaynak: kaynak-modeller/chatgpt/arayuz). Bu bölüm yukarıdaki yerleşimi bozmaz, görünüşü değiştirir:
   - giriş / kayıt / misafir: tam ekran boyama (#gArka), levha solda; 3B sahne altta bekler (secim-sahnesi.js beklet)
   - karakter ekranları: 3B sahne; armalı kartlar, altın çerçeveli kutular, büyük "Dünyaya gir"
   Başarım: bulanıklık ve sürekli canlandırma yine yok; resimler tek katman. */
#giris { --g-altin: #c9a05a; --g-altinAcik: #f3d9a0; --g-cerceve: inset 0 0 0 1px #8a6a34, inset 0 0 0 3px #120c07, inset 0 0 0 4px #4a3719; }
#gArka { position: absolute; inset: 0; z-index: 0; background: #090605 url(/resim/arayuz/giris-arka.jpg) 60% 38% / cover no-repeat; }
#giris[data-ekran="karakterler"]:not(.duzArka) #gArka, #giris[data-ekran="olustur"]:not(.duzArka) #gArka { display: none; }
#giris::after { background: linear-gradient(90deg, #070504f0 0, #070504c7 26%, #07050433 52%, #07050400 70%), linear-gradient(0deg, #070504cc 0, #07050400 30%); box-shadow: inset 0 0 240px 30px #000; }
#giris[data-ekran="karakterler"]::after, #giris[data-ekran="olustur"]::after { box-shadow: inset 0 0 200px 20px #000a; }
/* ekran çerçevesi: dört köşe süsü + ince altın çizgi */
#gCerceve { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#gCerceve::before { content: ""; position: absolute; inset: 18px; border: 1px solid #c9a05a4d; box-shadow: inset 0 0 0 3px #00000059, inset 0 0 0 4px #c9a05a21; }
#gCerceve i { position: absolute; width: clamp(80px, 8vw, 150px); aspect-ratio: 1; background: url(/resim/arayuz/sus-kose.webp) left top / contain no-repeat; }
#gCerceve .k1 { left: 12px; top: 12px; }
#gCerceve .k2 { right: 12px; top: 12px; transform: scaleX(-1); }
#gCerceve .k3 { left: 12px; bottom: 12px; transform: scaleY(-1); }
#gCerceve .k4 { right: 12px; bottom: 12px; transform: scale(-1); }

/* logo */
.gBas h1 { padding: 0; background: none; font-size: 0; line-height: 0; }
.gBas h1 img { display: block; width: min(300px, 82%); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 14px #000); }
.gBas .alt { margin: 2px 0 0; padding-bottom: 26px; font: 600 12.5px/1.3 var(--y-baslik); letter-spacing: 0.42em; margin-right: -0.42em; text-transform: uppercase; color: var(--g-altinAcik);
  background: url(/resim/arayuz/sus-ayrac.webp) center bottom / 260px auto no-repeat; }
#giris[data-ekran="karakterler"] .gBas, #giris[data-ekran="olustur"] .gBas { display: block; margin-bottom: 8px; text-align: center; }
#giris[data-ekran="karakterler"] .gBas h1, #giris[data-ekran="olustur"] .gBas h1 { padding: 0; }
#giris[data-ekran="karakterler"] .gBas h1 img, #giris[data-ekran="olustur"] .gBas h1 img { width: min(190px, 70%); }
#giris[data-ekran="karakterler"] .gBas .alt, #giris[data-ekran="olustur"] .gBas .alt { padding-bottom: 20px; font-size: 10.5px; letter-spacing: 0.36em; background-size: 200px auto; }

/* giriş levhası: solda, çift altın çerçeve */
#gPano { background: linear-gradient(#1c130cf5, #100b07f7); border-radius: 3px; box-shadow: var(--g-cerceve), 0 22px 60px #000d, 0 0 0 1px #000; padding: 26px 30px 20px; }
#giris[data-ekran="oturum"] #gPano, #giris[data-ekran="misafir"] #gPano { justify-self: start; margin-left: clamp(34px, 9vw, 190px); width: min(410px, 92vw); }
#giris[data-ekran="karakterler"] #gPano, #giris[data-ekran="olustur"] #gPano { background: linear-gradient(90deg, #070504f7 0, #070504eb 66%, #07050400 100%); box-shadow: none; padding-top: 30px; }
#giris .gSekmeler { border-bottom: 1px solid #4a3719; }
#giris .gSekmeler button { padding: 10px 0 9px; font: 600 14px/1.3 var(--y-baslik); letter-spacing: 1.6px; text-transform: uppercase; }
#giris .gSekmeler button[aria-selected="true"] { color: var(--g-altinAcik); border-bottom-color: var(--k-kor); background: linear-gradient(0deg, #e8642a26, transparent 70%); text-shadow: 0 0 14px #e8642a99; }
.gEtiket, .gForm label { letter-spacing: 1px; text-transform: uppercase; font-size: 11.5px; color: #b8a47e; }
.gForm label.gOnay { text-transform: none; }
.gForm input:not([type="checkbox"]) { padding: 10px 12px; background: #0a0705; border-radius: 3px; box-shadow: inset 0 0 0 1px #4a3719, inset 0 2px 6px #000; }
.gForm input:not([type="checkbox"]):focus { box-shadow: inset 0 0 0 1px var(--k-kor), inset 0 2px 6px #000, 0 0 12px #e8642a40; }
#giris .gAna { padding: 12px 16px; font: 700 16px/1.3 var(--y-baslik); letter-spacing: 2.2px; text-transform: uppercase; color: #2a0f02; border-radius: 3px;
  background: linear-gradient(#ffb056, #ef7a2c 46%, #c2491a); box-shadow: inset 0 1px 0 #ffe3b8, inset 0 0 0 1px #8f3413, 0 0 0 1px #000, 0 0 18px #e8642a59; text-shadow: 0 1px 0 #ffd29a80; }
#giris .gAna:hover:not(:disabled) { background: linear-gradient(#ffc473, #ff8d3a 46%, #d85a22); box-shadow: inset 0 1px 0 #fff0d2, inset 0 0 0 1px #8f3413, 0 0 0 1px #000, 0 0 26px #ff8a3a99; }
#giris .gAna:disabled { background: #241b13; color: var(--k-soluk); box-shadow: inset 0 0 0 1px #3a3026; text-shadow: none; }
#giris .gYazi { color: #c9a05a; }

/* karakter kartları */
.gUst { border-bottom: 1px solid #4a3719; }
#giris .gUst h2 { font: 700 15px/1.25 var(--y-baslik); letter-spacing: 2.4px; text-transform: uppercase; color: var(--g-altinAcik); }
#giris .gYuva { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 8px 12px 8px 8px; border-radius: 3px; background: linear-gradient(90deg, #241a11eb, #17110cd9); box-shadow: inset 0 0 0 1px #3d2e1b; }
#giris .gYuva:hover { background: linear-gradient(90deg, #302316, #1c140e); box-shadow: inset 0 0 0 1px var(--g-altin); }
#giris .gYuva[aria-selected="true"] { background: linear-gradient(90deg, #7a3413e6, #2a1a10eb 78%); box-shadow: inset 0 0 0 1px #d9894a, inset 3px 0 0 var(--k-kor), 0 0 18px #e8642a40; }
#giris .gYuva .gPortre { width: 52px; height: 52px; padding: 0; border-radius: 50%; overflow: hidden; background: #0a0705; border: 1px solid #000; box-shadow: 0 0 0 1px #6b5330; }
#giris .gYuva[aria-selected="true"] .gPortre { box-shadow: 0 0 0 1px var(--g-altinAcik), 0 0 12px #ffb05680; }
.gPortre img, #giris .gSinif i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gPortre svg { margin: 11px; width: 30px; height: 30px; }
#giris .gYuva .ad { font-size: 18px; }
#giris .gYuva .sv { color: var(--g-altinAcik); text-shadow: 0 0 10px #e8a84a66; }
#giris .gYuva.bos { grid-template-columns: 52px minmax(0, 1fr); border: 1px dashed #6b5330; background: #0a070566; }
#giris .gYuva.bos .arti { width: 52px; height: 52px; }
.gYuvaBos { grid-template-columns: 52px minmax(0, 1fr); border-color: #33271a; }

/* seçili karakter levhası */
.gSeciliAd b { padding-bottom: 22px; font: 700 42px/1.1 var(--y-baslik); letter-spacing: 2px; color: #fff3dc; text-shadow: 0 2px 0 #000, 0 0 26px #e8642a8c, 0 0 18px #000;
  background: url(/resim/arayuz/sus-ayrac.webp) center bottom / 280px auto no-repeat; overflow: visible; }
#gSeciliAlt { letter-spacing: 2.4px; text-transform: uppercase; color: var(--g-altinAcik); }
#giris .gBuyuk { width: min(340px, 100%); padding: 15px 16px; font: 700 19px/1.2 var(--y-baslik); letter-spacing: 4px; box-shadow: inset 0 1px 0 #ffe3b8, inset 0 0 0 1px #8f3413, 0 0 0 1px #000, 0 0 0 2px #c9a05a, 0 0 0 3px #000, 0 0 30px #e8642a73; }
#giris .gBuyuk:hover:not(:disabled) { box-shadow: inset 0 1px 0 #fff0d2, inset 0 0 0 1px #8f3413, 0 0 0 1px #000, 0 0 0 2px #f3d9a0, 0 0 0 3px #000, 0 0 40px #ff8a3ab3; }
#giris .gBuyuk:disabled { box-shadow: inset 0 0 0 1px #3a3026, 0 0 0 1px #000, 0 0 0 2px #4a3719, 0 0 0 3px #000; }

/* sınıf seçimi ve tanıtımı */
#giris .gSinif { grid-template-columns: 44px minmax(0, 1fr); padding: 6px 12px 6px 6px; border-radius: 3px; background: linear-gradient(90deg, #241a11eb, #17110cd9); box-shadow: inset 0 0 0 1px #3d2e1b; }
#giris .gSinif:hover { box-shadow: inset 0 0 0 1px var(--g-altin); }
#giris .gSinif[aria-checked="true"] { background: linear-gradient(90deg, #7a3413e6, #2a1a10eb 78%); box-shadow: inset 0 0 0 1px #d9894a, inset 3px 0 0 var(--k-kor), 0 0 16px #e8642a40; }
#giris .gSinif i { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid #000; box-shadow: 0 0 0 1px #6b5330; }
#giris .gSinif[aria-checked="true"] i { box-shadow: 0 0 0 1px var(--g-altinAcik), 0 0 10px #ffb05680; }
#gSinifBilgi, #gHaber { background: linear-gradient(#1c130cf2, #100b07f5); border-radius: 3px; box-shadow: var(--g-cerceve), 0 14px 40px #000c; }
#gSinifBilgi { padding: 22px 22px 18px; text-align: center; }
#gSinifBilgi .gArmaBuyuk { justify-self: center; width: 104px; height: 104px; border-radius: 50%; border: 1px solid #000; box-shadow: 0 0 0 1px var(--g-altin), 0 0 22px #e8642a59; object-fit: cover; }
#gSinifBilgi h3 { font: 700 28px/1.1 var(--y-baslik); letter-spacing: 3px; text-transform: uppercase; color: var(--g-altinAcik); text-shadow: 0 2px 0 #000; }
#gSinifBilgi .gRol { letter-spacing: 1.6px; text-transform: uppercase; }
#gSinifBilgi dl, .gNitler, #gSinifBilgi .gTanim { text-align: left; }
#gSinifBilgi dl { border-color: #4a3719; }
.gNit i { height: 7px; border-radius: 4px; box-shadow: inset 0 1px 3px #000; }
.gNit i b { background: linear-gradient(90deg, #b3421a, #f08a35 70%, #ffd690); border-radius: 3px; }
#gHaber h3 { font: 700 13px/1.3 var(--y-baslik); letter-spacing: 2px; text-transform: uppercase; color: var(--g-altinAcik); border-bottom-color: #4a3719; }
.gOrtu > .pano { background: linear-gradient(#1c130c, #100b07); border-radius: 3px; box-shadow: var(--g-cerceve), 0 16px 40px #000c; padding: 22px 24px; }

@media (max-width: 900px) {
  #giris[data-ekran="oturum"] #gPano, #giris[data-ekran="misafir"] #gPano { justify-self: center; margin-left: 0; }
  #gCerceve i { display: none; }
}
@media (max-height: 700px) {
  .gBas h1 img { width: min(210px, 60%); }
  .gBas .alt { padding-bottom: 18px; }
  #gPano { padding-top: 16px; gap: 8px; }
  .gSeciliAd b { font-size: 30px; padding-bottom: 16px; }
}
/* karakter ekranlarında ekran çerçevesi yok (şerit ve kutuların üstüne biner); yaratma ekranında logo küçülür ki form sığsın */
#giris[data-ekran="karakterler"] #gCerceve, #giris[data-ekran="olustur"] #gCerceve { display: none; }
#giris[data-ekran="olustur"] .gBas { margin-bottom: 0; }
#giris[data-ekran="olustur"] .gBas h1 img { width: min(150px, 56%); }
#giris[data-ekran="olustur"] .gBas .alt { display: none; }
#giris[data-ekran="olustur"] #gPano { padding-top: 16px; gap: 6px; }
#giris #gOlusturDugme { letter-spacing: 1px; font-size: 14px; padding: 10px 8px; }
@media (max-height: 920px) {
  #giris[data-ekran="olustur"] .gBas h1 img { width: min(104px, 40%); }
  #giris[data-ekran="olustur"] .gSinif { grid-template-columns: 34px minmax(0, 1fr); padding: 3px 12px 3px 6px; }
  #giris[data-ekran="olustur"] .gSinif i { width: 34px; height: 34px; }
  #giris[data-ekran="olustur"] .gSinif b { font-size: 15px; }
  #giris[data-ekran="olustur"] #gPano { padding-top: 10px; gap: 4px; }
}

/* karakter ekranlarının boyanmış arka planı (secim-sahnesi.js BOYAMA: çizici saydam, yalnız karakteri çizer). Resimdeki boş sahanlık
   karakterin ayağına denk gelir: karakter ekran genişliğinin %64'ünde (giris.js SAHNE_KAYMA 0.14), ayağı yüksekliğin ~%70'inde durur. */
#gSahne { background: #090605 url(/resim/arayuz/karakter-arka.jpg) 50% 82% / cover no-repeat; }
#gSecili, #gSahneYuk, #gDonIpucu { left: 64%; }
#giris[data-ekran="oturum"] #gSahneYuk, #giris[data-ekran="misafir"] #gSahneYuk { left: 50%; }
@media (max-width: 1180px) { #gSecili, #gSahneYuk, #gDonIpucu { left: 64%; } }
#giris[data-ekran="karakterler"]::after, #giris[data-ekran="olustur"]::after { background: linear-gradient(0deg, #070504f2 0, #070504a6 18%, transparent 42%), linear-gradient(90deg, #070504cc 0, #07050400 34%); }

/* ---------- hikâye tanıtımı (tanitim.js): ilk karakterin ilk girişinde tam ekran video ---------- */
#tanitim { position: fixed; inset: 0; z-index: 100000; background: #000; display: grid; place-items: center; animation: tnAc .5s ease both; }
#tanitim.kapaniyor { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
/* video katmanı tam kaplar (ızgara satırına bırakılınca geniş ekranda taşıp aşağı kayıyordu). Görüntü 16:9 karenin içinde 21:9'dur:
   16:9'dan geniş ekranda `cover` yalnız üst-alt siyah bandı kırpar, resim ekranı enine doldurur; 21:9'dan genişte yine sığdırılır. */
#tanitim video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-aspect-ratio: 16/9) { #tanitim video { object-fit: cover; } }
@media (min-aspect-ratio: 64/27) { #tanitim video { object-fit: contain; } }
#tanitim .tnBekle { position: absolute; color: #b9ad94; font: 500 15px/1 Georgia, serif; letter-spacing: .08em; }
#tanitim .tnGec { position: absolute; right: 34px; bottom: 30px; padding: 11px 20px 11px 22px; color: #efe6d2; background: #0b0908b3; border: 1px solid #efe6d255;
  border-radius: 3px; font: 600 14px/1 Georgia, serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; opacity: .62; transition: opacity .2s, border-color .2s, background .2s; }
#tanitim .tnGec span { margin-left: 8px; font-size: 17px; }
#tanitim .tnGec:hover, #tanitim .tnGec:focus-visible { opacity: 1; border-color: #efe6d2cc; background: #1a1512e6; outline: none; }
@keyframes tnAc { from { opacity: 0; } to { opacity: 1; } }
#tanitim .tnSoru { position: absolute; inset: 0; margin: auto; width: min(440px, 86vw); height: max-content; padding: 26px 28px 24px; text-align: center;
  background: #0d0a09f2; border: 1px solid #efe6d24d; border-radius: 4px; box-shadow: 0 0 0 100vmax #0009, 0 18px 60px #000c; }
#tanitim .tnSoru[hidden], #tanitim .tnGec[hidden] { display: none; }
#tanitim .tnSoru p { margin: 0 0 20px; color: #efe6d2; font: 500 19px/1.35 Georgia, serif; }
#tanitim .tnSoru div { display: flex; gap: 12px; justify-content: center; }
#tanitim .tnSoru button { min-width: 116px; padding: 11px 18px; color: #efe6d2; background: #1b1613; border: 1px solid #efe6d255; border-radius: 3px;
  font: 600 14px/1 Georgia, serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
#tanitim .tnSoru button:hover, #tanitim .tnSoru button:focus-visible { background: #2a221d; border-color: #efe6d2cc; outline: none; }
#tanitim .tnSoru .tnHayir { background: #efe6d2; color: #14100e; border-color: #efe6d2; }
#tanitim .tnSoru .tnHayir:hover, #tanitim .tnSoru .tnHayir:focus-visible { background: #fff7e6; }
