/* GECE SİSTEMİ (gece.js, GECE_KESIN.md) — büyük datapad (4 sekme), ışınlanma animasyonu, akşam uyarısı, gece sayacı, "Günü atla", kilitli gece envanteri.
   Tasarım dili: Geliştir ekranının camı (ANAHTAR_KURALLAR §2): koyu teal cam, ince teal/zeytin kenar, turkuaz odak, altın başlık; ahşap yok; kaydırma yok. */
:root { --ge-cam: rgba(2, 18, 16, .86); --ge-kenar: #657958; --ge-yazi: #eee6b7; --ge-soluk: #8da6a4; --ge-cyan: #48e4ed; --ge-altin: #ebbc61; --ge-kirmizi: #ff5a4e; }
@keyframes geGir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes geParla { 0%, 100% { box-shadow: 0 0 0 0 #8fd99a00; } 50% { box-shadow: 0 0 14px 3px #8fd99a99; } }
@keyframes dpYaz { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---- BÜYÜK DATAPAD (assets/ui/datapad_buyuk.png, cam alanı gece.js DP_CAM) ---- */
#gecePad { position: fixed; inset: 0; z-index: 70; background: radial-gradient(ellipse at 50% 55%, rgba(4, 16, 16, .55), rgba(0, 0, 0, .92)); font-family: 'Pixelify Sans', var(--font, sans-serif); color: #d9fff8; }
#gecePad[hidden], #gecePadKasa[hidden] { display: none; }
body.dp-serbest #gecePad { background: rgba(0, 12, 12, .35); backdrop-filter: blur(2px); }
body.dp-serbest .gp-alt { justify-content: space-between; }
body.dp-serbest .gp-alt > span { color: #bce4db; font-size: 14px; }
body.dp-serbest .gp-sekme button { font-size: clamp(12px, 1.6vw, 16px); min-height: 34px; }
body.dp-gomulu #invClose, body.dp-gomulu #panelClose { display: none !important; }
body.dp-gomulu #panel.gunluk-dp #panelCard { position: relative; left: auto; top: auto; background: transparent; animation: none; }
body.dp-gomulu #panel.gunluk-dp #panelCard::before, body.dp-gomulu #panel.gunluk-dp #panelCard::after { display: none; }
body.dp-gomulu #panel.gunluk-dp #panelBody { inset: 0; width: 100%; height: 100%; }
body.dp-gomulu #panel.gunluk-dp .ptabs { padding-right: 0 !important; }
.gp-cihaz { position: absolute; animation: gpKalk .38s cubic-bezier(.2, .9, .3, 1.08) both; }
#gecePadKasa { position: fixed; z-index: 73; pointer-events: none; image-rendering: pixelated; animation: gpKalk .38s cubic-bezier(.2, .9, .3, 1.08) both; }
@keyframes gpKalk { from { transform: translateY(5%) rotate(-1deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* cam: koyu teal, tarama çizgisi, çapraz yansıma; üç bant: sekmeler · içerik · alt çubuk */
.gp-cam { position: absolute; left: 12.57%; top: 17.58%; width: 75.07%; height: 61.43%; box-sizing: border-box; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(3px, .9vh, 8px); padding: clamp(5px, 1.2vh, 12px) clamp(6px, 1.2vw, 16px);
  background: radial-gradient(120% 95% at 50% 40%, #0d4a46 0%, #072f2d 55%, #031a19 100%); box-shadow: inset 0 0 40px #48e4ed22, inset 0 0 0 1px #2f8a8055; overflow: hidden; }
.gp-cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .13) 2px 3px), linear-gradient(115deg, rgba(255, 255, 255, .06) 0 16%, transparent 28%); }
.gp-tarama { position: absolute; left: 0; right: 0; top: -30%; height: 26%; pointer-events: none; z-index: 4; background: linear-gradient(to bottom, transparent, rgba(160, 255, 245, .16) 50%, transparent); opacity: 0; }
.gp-cam.tara .gp-tarama { animation: gpTara .55s ease-out both; } @keyframes gpTara { from { top: -30%; opacity: 1; } to { top: 110%; opacity: 0; } }
.gp-sekme { display: flex; gap: clamp(3px, .5vw, 8px); position: relative; z-index: 2; }
.gp-sekme button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: clamp(28px, 5.4vh, 44px); padding: 2px 6px; border: 1px solid #2f8a8088; background: #062a27cc; color: #8ccfc4; font-family: inherit; font-weight: 600; font-size: clamp(11px, 1.9vh, 16px); cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: background .15s, color .15s; white-space: nowrap; }   /* sekme adı iki satıra kırılmaz (denetim 16.11: 844'te "Geliştirme ağacı") */
.gp-sekme button i { font-style: normal; color: #48e4ed; font-size: 1.1em; } .gp-sekme button.on { background: #0d5a54; color: #fff4d0; border-color: #8fe8ff; box-shadow: inset 0 0 14px #48e4ed55; } .gp-sekme button.ok { color: #9fe39a; } .gp-sekme button:hover { color: #e6fffb; }
.gp-sekme button.kapali { opacity: .45; cursor: not-allowed; } .gp-sekme button.kapali i::after { content: ' 🔒'; font-size: .8em; }   /* öğretici: sırası gelmeyen sekme kilitli görünür (denetim 16.11) */
.gp-sekme button { white-space: nowrap; min-width: 0; } @media (max-height: 500px) { .gp-sekme button { gap: 4px; padding: 2px 4px; } }   /* sekme adı tek satır (telefonda "Geliştirme ağacı" ikiye bölünüyordu, denetim 16.11) */
.gp-icerik { position: relative; z-index: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: clamp(4px, 1vh, 10px); }
.gp-icerik.gir { animation: gpGir .16s ease-out both; } @keyframes gpGir { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
body.dp-gomulu .gp-icerik { visibility: hidden; }
.gp-baslik h2 { margin: 0; font-size: clamp(18px, 4vh, 34px); line-height: 1; color: #ffe39a; letter-spacing: .02em; text-shadow: 0 0 12px #48e4ed44; } .gp-baslik p { margin: 2px 0 0; color: #9ff3e6; font-size: clamp(12px, 2.1vh, 16px); }
.gp-yuzde { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 4px; font-size: clamp(11px, 1.9vh, 15px); } .gp-bar { height: 8px; background: #031a19; border: 1px solid #2f8a80; } .gp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a5a, #ffd36a); }
.gp-mesaj { border-left: 2px solid #8fe8ff; padding: 2px 0 2px 10px; font-size: clamp(11px, 1.9vh, 15px); } .gp-mesaj small { color: #8fe8ff; letter-spacing: .18em; font-size: .78em; } .gp-mesaj p { margin: 1px 0; color: #e6fffb; opacity: 0; animation: dpYaz .5s steps(8) var(--g, 0s) forwards; }
/* RAPOR ÖDÜLLERİ (DATAPAD_DUZELTME_16_11 §1, Cihat 16.11): her ödül DİKEY dikdörtgen (silah kartı oranı 3:4), hepsi aynı ölçüde, ortalı ızgara.
   Kart boyu gece.js raporDiz() ile ölçülür (--kw, --kg, dizi genişliği): kalem sayısı ve cam alanına göre en büyük sığan boy seçilir, satırlar ortalanır.
   Eşya: mevcut esya_* / ik_* ikonu, altta sayı + ad (alt kenara değmez). Silah kartı: tezgâhtaki GERÇEK kart yüzü (.kart-yuz, armory.css: çerçeve, kademe rengi, plaka).
   Kalemler tak tak tak düşer (iz bırakır, sekip oturur), sayaç yükselir; kart çevrilerek gelir. */
.gp-kalemler { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 700px; }
.gp-dizi { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--kg, 10px); }
.gp-kalem { --kw: 120px; position: relative; box-sizing: border-box; flex: 0 0 var(--kw); width: var(--kw); height: calc(var(--kw) * 4 / 3); display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--kw) * .1) calc(var(--kw) * .07) calc(var(--kw) * .12); border: 1px solid #2f8a8088; background: radial-gradient(90% 60% at 50% 34%, #11615a99 0%, transparent 70%), linear-gradient(180deg, #0a3b37e6, #041d1ce6);
  box-shadow: inset 0 0 0 1px #48e4ed14, inset 0 -18px 24px -18px #48e4ed33; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); opacity: 0; }
.gp-kalem.on { animation: gpDus .42s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes gpDus { 0% { opacity: 0; transform: translateY(-42px) scale(.8); filter: brightness(2.2); } 55% { opacity: 1; transform: translateY(4px) scale(1.04); } 100% { opacity: 1; transform: none; filter: none; } }
.gp-kalem.on::before { content: ''; position: absolute; left: 50%; top: 0; width: 3px; height: 40px; margin-left: -1px; background: linear-gradient(transparent, #fff8c8); opacity: 0; animation: gpIz .42s ease-out both; } @keyframes gpIz { 0% { opacity: .9; transform: translateY(-40px); } 100% { opacity: 0; transform: translateY(4px); } }
.gp-ik { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; font-style: normal; }
.gp-ik img { width: calc(var(--kw) * .58); height: calc(var(--kw) * .58); max-height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 0 #000a) drop-shadow(0 0 8px #48e4ed33); }
.gp-yazi { flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--kw) * .025); text-align: center; }
.gp-yazi b { font-size: clamp(11px, calc(var(--kw) * .19), 30px); color: #fff4d0; line-height: 1; text-shadow: 0 2px 0 #000a; }
.gp-yazi span { max-width: 100%; color: #bdeee6; font-size: clamp(9px, calc(var(--kw) * .118), 16px); line-height: 1.1; overflow-wrap: normal; word-break: keep-all; }
.gp-kalem.gp-oldur .gp-ik img { filter: brightness(1.3) drop-shadow(0 3px 0 #000a) drop-shadow(0 0 10px #ff6a5a88); } .gp-kalem.gp-oldur b { color: #fff4d0; }
.gp-kalem.gp-oldur .gp-ik > i { font-style: normal; color: #ff7a6a; font-size: calc(var(--kw) * .42); line-height: 1; }
/* silah kartı: eşya kalemleriyle AYNI koyu kutu (denetim 16.11: iki ayrı görünüş yan yana kalmasın); kart yüzü kutunun içinde, iç boşluk eşit */
.gp-kalem.gp-kart { padding: calc(var(--kw) * .03); justify-content: center; }
.gp-kalem.gp-kart > .kart-yuz { width: 100%; filter: drop-shadow(0 3px 0 #000a) drop-shadow(0 0 6px color-mix(in srgb, var(--wk) 45%, transparent)); }
.gp-kalem.gp-kart > .kart-yuz > .kart-arti { font-size: clamp(9px, calc(var(--kw) * .1), 16px); }
/* plaka yazısı: eşya adından küçük kalmasın (denetim 16.11: 844'te ~6 px idi). En uzun ad (Efsanevi / Mitolojik) ≈ 4,8 em: 12.5cqw'de
   plakanın içine sığar; alt ve üst sınır eşya adıyla aynı (8–16 px). Koyu kontur pikselli zeminde okutur */
.gp-kalem.gp-kart > .kart-yuz > .kart-ad { font-size: clamp(8px, 12.5cqw, 16px); letter-spacing: 0; left: 14%; right: 14%; text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000; }
/* Sıra Dışı çerçevesi görselde küçük (360×480'in 13..346 × 0..427'si): ötekiler tam en ve alta oturur. Boya iki eksende büyütülür, plaka
   ötekilerin plakasıyla aynı yüksekliğe (≈ %86,7) iner; yazı da ötekilerle aynı yerde (bottom 6.5%, height 13.5%) */
.gp-kalem.gp-kart > .kart-yuz[data-k="siradisi"] { background-size: 108.1% 111.6%; background-position: center calc(var(--kw) * .0104); }
.gp-kalem.gp-kart > .kart-yuz[data-k="siradisi"] > img { top: 20%; height: 44%; }
.gp-kalem.gp-kart > .kart-yuz[data-k="siradisi"] > .kart-ad { bottom: 6.5%; height: 13.5%; }
.gp-kalem.gp-kart.on { animation: gpCevir .42s cubic-bezier(.2, 1.3, .4, 1) both; } @keyframes gpCevir { 0% { opacity: 0; transform: rotateY(90deg) scale(.8); filter: brightness(2.5); } 60% { opacity: 1; transform: rotateY(-8deg) scale(1.05); } 100% { opacity: 1; transform: none; filter: none; } }
/* kısa yatay telefon (≤520 px yükseklik): başlık tek satır, Nora mesajı ve toplam sıkı; kalem boyu yine raporDiz ölçer */
@media (max-height: 520px) {
  .gp-baslik { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; } .gp-baslik h2 { font-size: 18px; } .gp-baslik p { margin: 0; font-size: 11px; } .gp-yuzde { flex: 1 1 220px; margin: 0; font-size: 10px; }
  .gp-icerik { gap: 3px; } .gp-mesaj { font-size: 10px; padding: 1px 0 1px 8px; } .gp-mesaj p { margin: 0; line-height: 1.15; } .gp-toplam { padding: 2px 8px; font-size: 11px; gap: 2px 10px; } }
.gp-toplam { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 6px 10px; border-top: 1px solid #2f8a8077; color: #9ff3e6; font-size: clamp(12px, 2.2vh, 17px); opacity: 0; } .gp-toplam.on { opacity: 1; transition: opacity .3s; }
.gp-toplam span { color: #ffe39a; } .gp-toplam b { color: #fff4d0; font-size: 1.15em; } .gp-toplam em { color: #8ccfc4; font-style: normal; margin-left: auto; }
.gp-gorev { width: 100%; margin: 0; padding-left: 16px; font-size: .85em; color: #d9fff8; } .gp-gorev em { color: #ffe39a; font-style: normal; } .gp-bos { color: #8ccfc4; }
.gp-alt { position: relative; z-index: 2; display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-height: clamp(30px, 6vh, 46px); }
.gp-alt button { min-height: clamp(30px, 5.6vh, 44px); padding: 3px clamp(12px, 1.6vw, 22px); border: 1px solid #2f8a80; background: #073a36; color: #d9fff8; font-family: inherit; font-weight: 600; font-size: clamp(12px, 2.1vh, 17px); cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.gp-alt .gp-git { border-color: #8fd99a; background: #1f5a36; color: #f2ffe9; } .gp-alt .gp-git:hover { background: #2a6e44; } .gp-alt .gp-git.kapali { opacity: .5; } .gp-alt .gp-kirmizi { border-color: #c4483e; background: #5a1c18; }
.gp-ogr { margin: 0 auto 0 0; color: #ffe39a; font-size: clamp(11px, 1.9vh, 15px); max-width: 70%; } .gp-alt .neden { color: #ffb3a8; font-size: clamp(11px, 1.8vh, 14px); }
.gp-atla .gp-cam { grid-template-rows: 1fr auto; }   /* onay ekranında sekme yok: düğmeler camın ortasında değil altında dursun */ .gp-onay { justify-content: center; } .gp-onay h2 { margin: 0; color: #ffb3a8; font-size: clamp(20px, 4vh, 32px); } .gp-onay p { color: #e6fffb; font-size: clamp(13px, 2.5vh, 19px); max-width: 60ch; }
/* gömülü mevcut ekranlar (skill-tree, armory, inventory-ui): camın içinde, kendi stilleriyle; kendi kapat düğmeleri gizli (sekme geçişi kapatır) */
body.dp-gomulu #panel, body.dp-gomulu #inv { z-index: 71 !important; background: transparent !important; inset: 0 auto auto 0 !important; width: 100vw !important; height: 100vh !important; }
body.dp-gomulu #panel #panelClose, body.dp-gomulu #inv #invClose { visibility: hidden; }
/* ilk sekans öğreticisi: seçili (alınabilir) düğüm ve Geliştir düğmesi parlar, oyuncu neye dokunacağını görür (gece.js ogrDugum) */
body.dp-ogr-agac #panel .st-node.selected, body.dp-ogr-agac #panel .dpa-dugum.selected:not(.dpa-yeni), body.dp-ogr-agac #panel .st-buy:not([disabled]) { animation: geParla 1.1s ease-in-out infinite; outline: 2px solid #8fd99a; outline-offset: 1px; }
/* ölçeklenen pencerenin boş (saydam) kısmı sekmelerin ve alt çubuğun üstüne taşar: yalnız pencerenin kendisi tıklanır */
body.dp-gomulu #panel, body.dp-gomulu #inv { pointer-events: none; } body.dp-gomulu #panelCard, body.dp-gomulu #inv .inv-shell { pointer-events: auto; }
body.dp-acik #hudTop, body.dp-acik #controls, body.dp-acik #toasts, body.dp-acik #story, body.dp-acik #bMakine, body.dp-acik #npcBubbles, body.dp-acik #prompt { visibility: hidden; }

/* ---- IŞINLANMA: tek kare, yavaş kamera itmesi, lamba titreşimi ve canvas tül dumanı ---- */
#geceIsin { position: fixed; inset: 0; z-index: 69; background: #000; overflow: hidden; }
#geceIsin[hidden] { display: none; }
.gi-sahne { position: absolute; inset: 0; transform-origin: 54% 50%; }
#geceIsin.oyna .gi-sahne { animation: giIt 6s ease-out both; } @keyframes giIt { from { transform: scale(1); } to { transform: scale(1.08); } }
.gi-sahne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0; transition: opacity .18s linear; }
.gi-sahne img.on { opacity: 1; }
.gi-sahne img[data-k^="jack"] { transition: opacity 1.1s ease-in-out; } .gi-sahne img[data-k="jack_yukari"]:not(.on) { transition-delay: 1.1s; }   /* koltukta Jack: yukarı bakan kare, ekrana bakanın altında kalır, o tam açılınca kapanır (karartı olmadan geçiş) */
.gi-sahne .gi-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease-out; pointer-events: none; }
.gi-sahne .gi-vid.on { opacity: 1; }
.gi-pad { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(9% 12% at 52% 44%, rgba(110, 230, 255, .32), transparent 72%); mix-blend-mode: screen; animation: giPad 2.4s ease-in-out infinite; }   /* koltuktaki Jack'in elindeki datapad ışığı (isin_jack.jpg) */
@keyframes giPad { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.gi-sahne canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.gi-lamba { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(28% 34% at 16% 38%, rgba(255, 190, 110, .22), transparent 70%), radial-gradient(18% 30% at 96% 70%, rgba(255, 120, 40, .2), transparent 70%); animation: giTitre 1.7s steps(6) infinite; mix-blend-mode: screen; }
@keyframes giTitre { 0%, 100% { opacity: .75; } 30% { opacity: 1; } 55% { opacity: .65; } 80% { opacity: .95; } }
.gi-soz { position: absolute; left: 50%; bottom: calc(96px + var(--sb, 0px)); transform: translateX(-50%); margin: 0; padding: 6px 16px; background: rgba(0, 0, 0, .6); color: #fff4d0; font: 600 clamp(15px, 3vh, 22px) 'Pixelify Sans', var(--font, sans-serif); opacity: 0; white-space: nowrap; }
.gi-soz.on { animation: giSoz 2.6s ease-out both; } @keyframes giSoz { 0% { opacity: 0; transform: translate(-50%, 6px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
#bTekrarDene { position: fixed; left: 50%; bottom: calc(26px + var(--sb, 0px)); transform: translateX(-50%); z-index: 72; min-height: 46px; padding: 6px 26px; border: 2px solid #8fe8ff; background: rgba(6, 40, 38, .92); color: #e6fffb; font: 600 18px 'Pixelify Sans', var(--font, sans-serif); cursor: pointer; box-shadow: 0 0 18px #48e4ed55; animation: geGir .3s ease-out; }
#bTekrarDene[hidden] { display: none; }

/* ---- akşam uyarısı ---- */
#geceUyari { position: fixed; left: 50%; top: calc(60px + var(--st, 0px)); transform: translateX(-50%); z-index: 30; pointer-events: none; display: grid; justify-items: center;
  padding: 3px 12px 4px; background: rgba(40, 6, 4, .72); border: 2px solid #c4483e; box-shadow: 0 0 18px #ff3a2a55, inset 0 0 0 2px #3a100d; color: #ffe3d6; font-family: 'Pixelify Sans', var(--font, sans-serif); animation: geUyari 1.6s ease-in-out infinite; }
#geceUyari[hidden] { display: none; }
#geceUyari b { font-size: clamp(11px, 2.2vh, 15px); letter-spacing: .25em; color: #ff8a7e; } #geceUyari .ge-u-alt { font-size: 10px; color: #ffcabd; } #geceUyari em { font-style: normal; font-size: clamp(14px, 3vh, 20px); line-height: 1; color: #fff; }
#geceUyari.son { animation-duration: .5s; }
@keyframes geUyari { 0%, 100% { box-shadow: 0 0 10px #ff3a2a44, inset 0 0 0 2px #3a100d; } 50% { box-shadow: 0 0 26px #ff3a2aaa, inset 0 0 0 2px #5a1712; } }
body.gece-atla-var #toasts { top: calc(104px + var(--st, 0px)); }
body.aksam-var #toasts { top: calc(126px + var(--st, 0px)); }

/* ---- gece HUD: sade; kalan yaratık + kapı/çit/ev çubukları + taret ---- */
#geceHud { position: fixed; left: 50%; top: calc(60px + var(--st, 0px)); transform: translateX(-50%); z-index: 20; pointer-events: none; display: grid; justify-items: center; gap: 3px; padding: 5px 14px 7px; min-width: 260px;
  background: rgba(2, 18, 16, .78); border: 2px solid var(--ge-kenar); box-shadow: inset 0 0 0 2px #132920; color: var(--ge-yazi); font-family: 'Pixelify Sans', var(--font, sans-serif); }
#geceHud[hidden] { display: none; }
#geceHud .gh-ust { display: flex; align-items: baseline; gap: 8px; justify-content: center; } #geceHud small { color: var(--ge-cyan); letter-spacing: .25em; font-size: 11px; } #geceHud .gh-ust b { font-size: clamp(26px, 5.5vh, 40px); line-height: .95; color: #fff4d0; text-shadow: 0 2px 0 #000; } .gh-et { font-size: 12px; color: var(--ge-soluk); }
.gh-bar { width: 100%; height: 5px; background: #0a2a24; border: 1px solid #2d4740; } .gh-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ge-cyan), #8bd67b); transition: width .3s; }
#geceHud .gh-sav { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; width: 100%; align-items: end; }
/* kapılar en zayıf nokta (madde 26): kapı çubukları kalın; vurulurken kırmızı nabız */
.gh-k.kapi i { height: 7px; border-color: #5a6b55; } .gh-k.kapi span { color: #fff4d0; }
.gh-k.vur i { box-shadow: 0 0 8px #ff3a2acc; border-color: #ff6a5a; } .gh-k.vur span { color: #ffb3a7; }   /* HUD her 0,2 sn yeniden yazılır: animasyon yerine durağan parıltı */
.gh-k { display: grid; gap: 2px; font-size: 11px; color: #c9d5c4; text-align: left; } .gh-k i { display: block; height: 5px; background: #0a2a24; border: 1px solid #2d4740; } .gh-k em { display: block; height: 100%; background: #8bd67b; transition: width .3s; }
.gh-k.kotu em { background: #ff6a5a; } .gh-k small { color: #ff8a7e; font-size: 10px; } .gh-taret { text-align: center; } .gh-taret b { color: #fff4d0; font-size: 14px; line-height: 1; }
body.gece-modu #questBox, body.gece-modu #dpUyari, body.gece-modu #sinyalMesaj, body.gece-modu #npcBubbles, body.gece-modu #bMakine { display: none !important; }
body.gece-modu #toasts { top: calc(176px + var(--st, 0px)); }
body.gece-modu #boss { top: calc(166px + var(--st, 0px)); }   /* gece HUD'unun (en çok ~100px) altında */
/* BOSS VARKEN GECE (16.11 denetim: Rex/avlu bildirimleri boss barına ve başlığa biniyordu): bildirimler sağ sütuna, sayaç kutusunun altına iner (en çok 3);
   büyük başlık boss barının altından başlar. Kısa ekranda (telefon yatay) en çok 2 bildirim. */
body.gece-modu.bossOn #toasts { left: auto; right: calc(14px + var(--sr, 0px)); transform: none; top: calc(254px + var(--st, 0px)); justify-items: end; max-width: 34vw; }
body.gece-modu.bossOn #toasts > :nth-child(n+4) { display: none; }
body.gece-modu.bossOn #banner { top: max(30%, calc(222px + var(--st, 0px))); }
/* telefon yatay (kısa ekran): ortada Jack'e yer kalmıyordu → boss barı sağ üst sütuna (para/duraklat altı), bildirim sayaç kutusunun altında tek satır, başlık küçük ve gece HUD'unun altında */
@media (max-height: 500px) {
  body.gece-modu #boss { top: calc(58px + var(--st, 0px)); left: auto; right: calc(10px + var(--sr, 0px)); width: 27vw; transform: none; padding: 3px 6px; }
  body.gece-modu #boss small { font-size: 10px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* boss olmasa da: ortadaki bildirimler (+1 Enerji içeceği…) gece HUD'unun altında tam Jack'in üstüne düşüyordu (yeni oyuncu turu 16.11) → sağ sütun */
  body.gece-modu #toasts, body.gece-modu.bossOn #toasts { left: auto; right: calc(14px + var(--sr, 0px)); transform: none; justify-items: end; top: calc(160px + var(--st, 0px)); max-width: 40vw; }
  body.gece-modu #toasts > *, body.gece-modu.bossOn #toasts > * { font-size: 12px; padding-top: 1px; padding-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  body.gece-modu #toasts > :nth-child(n+2), body.gece-modu.bossOn #toasts > :nth-child(n+2) { display: none; }
  body.gece-modu.bossOn #banner { top: calc(152px + var(--st, 0px)); font-size: 22px; letter-spacing: .18em; }
}

/* ---- Günü atla (gündüz, üstte kırmızı) ---- */
#bGunAtla { position: fixed; left: 50%; top: calc(60px + var(--st, 0px)); transform: translateX(-50%); z-index: 25; min-height: 34px; padding: 4px 14px; border: 2px solid #c4483e; background: rgba(90, 20, 16, .88);
  box-shadow: inset 0 0 0 2px #3a100d; color: #ffe3d6; font: 600 14px 'Pixelify Sans', var(--font, sans-serif); letter-spacing: .06em; cursor: pointer; }
#bGunAtla[hidden] { display: none; } #bGunAtla:hover { background: #7a241e; }
body.kupa-acik #bGunAtla, body.kupa-acik #banner, body.kupa-acik #prompt { visibility: hidden; }   /* #prompt: kartın perk satırı "Rex · sev, komut ver" kutusunun üstüne biniyordu (2. gün sabahı, denetim düzeltmesi 16.11) */   /* bölge temizlenince "BÖLGE TEMİZ" başlığı kartın arkasında yarım okunuyordu: kart ödülü zaten söyler */
/* kısa ekranda Jack'in satırı kartın adının üstüne biniyordu; CSS ile gizlemek satırı kartın arkasında harcıyordu (denetim 16.11): artık hud.js story() kart açıkken satırı bekletir, kart kapanınca yazar */
body.bossOn #bGunAtla { display: none; }

/* ---- gece kart bildirimi, kilitli gece envanteri ---- */
#geceKartBil { position: fixed; right: calc(12px + var(--sr, 0px)); top: calc(110px + var(--st, 0px)); z-index: 26; display: grid; gap: 4px; pointer-events: none; } #geceKartBil[hidden] { display: none; }
.gk-bil { display: flex; gap: 6px; align-items: center; padding: 4px 10px; background: rgba(2, 18, 16, .86); border: 1px solid #8fe8ff; color: #e6fffb; font: 13px 'Pixelify Sans', var(--font, sans-serif); animation: geGir .3s ease-out; } .gk-bil i { font-style: normal; color: #ffd36a; }
.ge-kilit { position: fixed; z-index: 120; transform: translate(-50%, -120%); display: flex; gap: 4px; align-items: center; padding: 3px 9px; background: rgba(40, 6, 4, .92); border: 1px solid #c4483e; color: #ffe3d6; font: 13px 'Pixelify Sans', var(--font, sans-serif); pointer-events: none; animation: geGir .2s ease-out; }

/* sürüm etiketi datapad ve ışınlanma sırasında görünmez (koordinatör 16.11) */
body:has(#gecePad:not([hidden])) #surum, body:has(#geceIsin:not([hidden])) #surum, body:has(#finalPad:not([hidden])) #surum { visibility: hidden; }
/* datapad içinde geliştirme ağacı: TEK tuval (Cihat: "bütün ağacı tek panelde topla"). Dal sekmeleri, sol özet, alt pencere düğmeleri ve
   iç çerçeveler gizli; ortada ağaç (Jack kökte, bütün dallar etrafa açılır), sağda seçili düğümün ayrıntısı ve Geliştir. */
body.dp-gomulu #skillTree .st-tabs, body.dp-gomulu #skillTree .st-side, body.dp-gomulu #skillTree .st-footer, body.dp-gomulu #skillTree .st-legend,
body.dp-gomulu #skillTree [data-a="st-all"], body.dp-gomulu #skillTree [data-a="st-expand"], body.dp-gomulu #skillTree .st-count { display: none !important; }
body.dp-gomulu #skillTree .st-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, 25%); border: 0; outline: 0; padding: 4px; gap: 10px; background: transparent; }
body.dp-gomulu #skillTree .st-tree.st-frame, body.dp-gomulu #skillTree .st-heading.st-frame { border: 0; box-shadow: none; outline: 0; background: transparent; }
body.dp-gomulu #skillTree .st-detail { overflow-y: auto; min-height: 0; }
body.dp-gomulu #skillTree .st-tree { position: relative; } body.dp-gomulu #skillTree .st-viewport { flex: 1; min-height: 0; }
body.dp-gomulu #skillTree .st-toolbar { position: absolute; right: 6px; bottom: 6px; z-index: 3; background: #04201ecc; padding: 2px; border: 0; }
body.dp-gomulu #skillTree .st-detail-heading { padding-bottom: 8px; } body.dp-gomulu #skillTree .st-detail { padding: 10px; }
body.dp-gomulu #skillTree .st-stat { padding-top: 3px; padding-bottom: 3px; min-height: 0; } body.dp-gomulu #skillTree .st-detail-heading > img, body.dp-gomulu #skillTree .st-detail-heading > svg { width: 48px; height: 48px; padding: 6px; }
/* datapad ağacı: büyük simge, köşede okunur seviye rozeti, düğme altı küçük ad yok, satır başında dal başlığı */
body.dp-gomulu #skillTree .st-node-name { display: none; }
body.dp-gomulu #skillTree .st-node > .st-icon, body.dp-gomulu #skillTree .st-node > svg, body.dp-gomulu #skillTree .st-node > img { width: 86px; height: 86px; }
body.dp-gomulu #skillTree .st-node:not(.st-hub) > span { position: absolute; right: 3px; bottom: 3px; font-size: 25px; padding: 1px 5px 2px; background: #031816e0; border: 1px solid var(--branch); line-height: 1; }
body.dp-gomulu #skillTree .st-hub > span { display: none; }
body.dp-gomulu #skillTree .st-dp-baslik { position: absolute; transform: translateY(-50%); font: 700 36px/1 "Pixelify Sans", monospace; color: var(--branch); text-shadow: 0 3px 0 #000; white-space: nowrap; pointer-events: none; }
body.dp-gomulu #skillTree .st-heading { display: none !important; }   /* sekme zaten "Geliştirme ağacı" der; bakiye ayrıntıda maliyetle görünür → ağaca yer */
body.dp-gomulu #skillTree .st-toolbar { top: 4px; bottom: auto !important; transform: scale(.8); transform-origin: 100% 0; }
body.gece-modu #temizlikSayac { display: none !important; }   /* gece arenasında dünya sistemleri durur (temizlik sayacı güncellenmez): bölge sayacı gündüzden asılı kalıyordu */
body.dp-acik #temizlikSayac, body.dp-acik #geceKartBil { display: none !important; }   /* datapad açıkken köşe bildirimleri ve bölge sayacı camın kenarından taşmasın */
.gp-toplam img.gp-tik { width: 1.35em; height: 1.35em; object-fit: contain; image-rendering: pixelated; align-self: center; margin-right: -4px; }   /* A5b: toplam satırı ikonlu (Fable 21.11) */
