/* Tek görünüm: gece oyunu. Paneller köşelere sabit, dokunmatik butonlar başparmak bölgesinde. */
:root {
  --ink: #06080a; --panel: rgba(10, 13, 12, .78); --edge: #3a4236; --fg: #e9e2cf; --muted: #9a9e8e;
  --amber: #f0b04a; --teal: #5fe0cf; --red: #e04a3a; --green: #8fd86a;
  --font: "Pixelify Sans", "Courier New", monospace;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--fg); font-family: var(--font); user-select: none; -webkit-user-select: none; touch-action: none; }
#c { position: fixed; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.panel { background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 0 0 2px #000; border-radius: 3px; }
#dmg { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(170, 20, 10, .6)); opacity: 0; }

#hudTop { position: fixed; inset: 0; pointer-events: none; }
#stats { position: absolute; left: calc(10px + var(--sl)); top: calc(10px + var(--st)); padding: 7px 9px; display: grid; gap: 6px; width: 170px; }
.bar { height: 12px; background: #250b09; border: 2px solid #000; position: relative; }
.bar i { position: absolute; inset: 0; width: 100%; background: linear-gradient(#ea4a3c, #a31f17); transition: width .15s; }
.row { display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 600; }
.coinIc { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #d39a1e 60%, #7a5408); box-shadow: 0 0 6px rgba(255, 200, 80, .6); }
#coinBox.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.25); } }
#timeBox { position: absolute; left: 50%; top: calc(10px + var(--st)); transform: translateX(-50%); padding: 5px 11px; display: flex; align-items: center; gap: 9px; }
#clock { font-size: 22px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
#day { color: var(--muted); font-size: 14px; }
#ufuk { --ufuk-sky: #19254d; --ufuk-body-x: 50; --ufuk-body-y: 4px; position: relative; flex: none; width: clamp(88px, 12vw, 104px); height: 30px; overflow: hidden; background: var(--ufuk-sky); border: 2px solid #09030a; box-shadow: inset 0 0 0 1px rgba(249, 237, 204, .18); image-rendering: pixelated; transition: background-color .45s linear; }
.ufukArc { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #f3c282; stroke-width: 2; opacity: .78; }
.ufukLine { position: absolute; left: 0; right: 0; top: 25px; height: 3px; background: #43484f; box-shadow: 0 -1px 0 #141828, 0 1px 0 #09030a; }
#ufukBody { position: absolute; z-index: 2; left: calc(var(--ufuk-body-x) * 1%); top: var(--ufuk-body-y); width: 7px; height: 7px; transform: translate(-50%, -50%); background: #ffe040; box-shadow: 0 0 0 1px #f9edcc, 0 0 5px rgba(255, 224, 64, .55); }
#ufukBody[data-mode="moon"] { width: 8px; height: 8px; background: #f9edcc; box-shadow: inset -2px -1px 0 #6a86c0, 0 0 0 1px #f3c282, 0 0 5px rgba(106, 134, 192, .75); }
#ufukStars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#ufukStars i { position: absolute; width: 2px; height: 2px; background: #f9edcc; box-shadow: 1px 0 #f3c282; }
#ufukStars i:nth-child(1) { left: 13%; top: 22%; } #ufukStars i:nth-child(2) { left: 35%; top: 11%; } #ufukStars i:nth-child(3) { left: 70%; top: 25%; } #ufukStars i:nth-child(4) { left: 88%; top: 9%; }
#boss { position: absolute; left: 50%; top: calc(58px + var(--st)); transform: translateX(calc(-50% + var(--bx, 0px))); width: min(420px, 70vw); padding: 5px 10px; display: grid; gap: 4px; justify-items: center; }
#boss small { color: var(--amber); letter-spacing: .2em; }
#boss .bar { width: 100%; }
#boss .bar i { background: linear-gradient(#f0b04a, #a8641a); }
#topRight { position: absolute; right: calc(10px + var(--sr)); top: calc(10px + var(--st)); pointer-events: auto; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 11px; font: 600 15px var(--font); background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 0 0 2px #000; border-radius: 3px; color: var(--fg); }
.btn:focus-visible, .btn:hover { border-color: var(--amber); }

/* dokunmatik kontroller (masaüstünde de görünür, fareyle de tıklanır) */
#controls { position: fixed; inset: 0; pointer-events: none; }
#joyZone { position: absolute; left: 0; bottom: 0; width: 50%; height: 62%; pointer-events: auto; }
body:not(.touch) #joyZone { pointer-events: none; }
#joy { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); opacity: 0; transition: opacity .15s; pointer-events: none; left: 40px; bottom: 40px; }
#joy.on { opacity: 1; }
#knob { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: rgba(240, 176, 74, .3); border: 2px solid rgba(240, 176, 74, .85); }
#handBox { position: absolute; right: calc(132px + var(--sr)); bottom: calc(18px + var(--sb)); padding: 5px 10px; display: grid; justify-items: end; }
#handNadir { font-size: 10px; letter-spacing: .06em; font-weight: 700; color: var(--nr, #8a8f98); line-height: 1.1; }
#handNadir:empty { display: none; }
#handBox.nr { box-shadow: inset 0 0 0 1px var(--nr); }
#handBox small { color: var(--muted); font-variant-numeric: tabular-nums; }
.rb { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 13, 12, .72); border: 2px solid var(--edge); color: var(--fg); font: 700 20px var(--font); pointer-events: auto; cursor: pointer; }
#bSwap { right: calc(110px + var(--sr)); bottom: calc(76px + var(--sb)); }
#bReload { right: calc(150px + var(--sr)); bottom: calc(124px + var(--sb)) ; }
#bBomba { right: calc(112px + var(--sr)); bottom: calc(86px + var(--sb)); width: 46px; height: 46px; padding: 0; background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; }   /* el bombası: Firefly bomba_tus */
#bBomba b { position: absolute; right: -4px; bottom: -4px; min-width: 18px; padding: 0 3px; border-radius: 9px; background: #111; border: 1px solid var(--amber); font: 700 12px var(--font); color: var(--fg); }
#bUse { right: calc(84px + var(--sr)); bottom: calc(136px + var(--sb)); }
#bHolster { right: calc(196px + var(--sr)); bottom: calc(70px + var(--sb)); }
#bLight { right: calc(26px + var(--sr)); bottom: calc(126px + var(--sb)); }
#bRun { left: calc(22px + var(--sl)); bottom: calc(28px + var(--sb)); font-size: 23px; }
@media (max-height: 380px) { #bRun { bottom: calc(20px + var(--sb)); } }   /* 667×375: beceri düğmesiyle üst üste binmesin */
#bRun.sprint-hint { border-color: #ffe07a; color: #fff3b8; box-shadow: 0 0 0 3px rgba(255,204,80,.22), 0 0 18px rgba(255,204,80,.8); animation: sprintPulse .72s ease-in-out infinite alternate; }
@keyframes sprintPulse { to { transform: scale(1.12); filter: brightness(1.35); } }
#bLight.on { border-color: #f5e6a8; color: #fff3c4; box-shadow: 0 0 12px rgba(255, 240, 180, .35); }
#reloadTrack { width: 100%; height: 3px; background: rgba(255,255,255,.1); margin-top: 3px; }
#reloadBar { display: block; height: 100%; width: 0; background: var(--amber); }
#bFire { position: absolute; right: calc(20px + var(--sr)); bottom: calc(22px + var(--sb)); width: 88px; height: 88px; border-radius: 50%; pointer-events: auto; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, rgba(240, 120, 70, .55), rgba(140, 30, 20, .55)); border: 3px solid rgba(240, 110, 80, .9); }
#bFire::before { content: ''; position: absolute; inset: 22%; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(0 1px 0 #000a);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23f4ecd0' stroke-width='3' stroke-linecap='square'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8'/%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23f4ecd0'/%3E%3C/svg%3E"); }
body:not(.touch) #bFire, body:not(.touch) #bSwap, body:not(.touch) #bReload, body:not(.touch) #bUse, body:not(.touch) #bHolster, body:not(.touch) #bLight, body:not(.touch) #bRun { opacity: .55; }

#prompt { position: fixed; left: 50%; bottom: calc(150px + var(--sb)); transform: translateX(-50%); font-size: 17px; text-shadow: 2px 2px 0 #000; pointer-events: none; color: var(--amber); }
#toasts { position: fixed; left: 50%; top: calc(66px + var(--st)); transform: translateX(-50%); display: grid; gap: 4px; justify-items: center; pointer-events: none; }
.toast { font-size: 16px; text-shadow: 2px 2px 0 #000; animation: fade 1.8s forwards; }
@keyframes fade { 0% { opacity: 0 } 12% { opacity: 1 } 75% { opacity: 1 } 100% { opacity: 0 } }
/* kazanım rozeti (hud.js kazan): ikon + "+N ad", cam dili; aynı tür gelince zıplar */
.toast.kazan { display: flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 28px; padding: 1px 12px 1px 4px; font-size: clamp(14px, 1.25vw, 16px); color: #ffe9b0; border-style: solid; border-width: 6px 14px; border-image: url(../assets/ui/bld_serit_odul.png) 9 22 9 22 fill / 6px 14px stretch; filter: drop-shadow(0 2px 0 #0008); animation: kazanGir .24s cubic-bezier(.2, 1.5, .5, 1) both; transition: opacity .3s, transform .3s; }   /* A5: bildirim şeridi ailesi (ödül) */
.toast.kazan img { width: 20px; height: 20px; image-rendering: pixelated; object-fit: contain; }
.toast.kazan.zipla { animation: kazanZipla .26s ease-out both; }
.toast.kazan.git { opacity: 0; transform: translateY(-6px); }
@keyframes kazanGir { from { opacity: 0; transform: translateY(8px) scale(.7) } to { opacity: 1; transform: none } }
@keyframes kazanZipla { 0% { transform: scale(1) } 40% { transform: scale(1.18) } 100% { transform: scale(1) } }
/* hikâye: kitap sayfasından bir satır */
#story { position: fixed; left: 50%; bottom: calc(28% + var(--sb)); transform: translate(-50%, 8px); max-width: min(620px, 86vw); text-align: center; font-size: clamp(17px, 2.4vw, 24px); line-height: 1.35;
  color: #f1e6c8; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, .9); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; font-style: italic; }
#story.on { opacity: 1; transform: translate(-50%, 0); }
#story .sl, #cineSub .sl { margin-top: .25em; }   /* alt yazı yığını (altyazi.js): her cümle ayrı satır, yeni satır altta */
#story .sl[data-kim="jack"], #cineSub .sl[data-kim="jack"] { color: #fff2c4; }
#skip { position: fixed; z-index: 22; right: calc(16px + var(--sr)); bottom: calc(16px + var(--sb, 0px)); min-height: 44px; min-width: 66px; text-align: center; }
#skip:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.ov { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(3, 5, 4, .72); padding: 16px; }
.card { width: min(440px, 100%); padding: 18px 20px; display: grid; gap: 12px; }
.card h2 { margin: 0; font-size: 30px; letter-spacing: .04em; }
.red { color: var(--red); }
.muted { margin: 0; color: var(--muted); }
#shopList { display: grid; gap: 6px; }
.shopItem { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 2px solid var(--edge); background: rgba(255, 255, 255, .04); font: 16px var(--font); }
.shopItem b { color: var(--amber); }
.shopItem:disabled { opacity: .4; cursor: default; }
.shopItem:not(:disabled):hover { border-color: var(--amber); }
.big { all: unset; cursor: pointer; justify-self: start; padding: 10px 22px; font: 700 20px var(--font); background: #6a1a12; border: 2px solid #e0473c; box-shadow: 0 0 0 2px #000; border-radius: 3px; }
#cine { position: fixed; inset: 0; z-index: 20; background: #000; image-rendering: pixelated; }
#cineSub { position: fixed; left: 50%; bottom: calc(4% + var(--sb)); transform: translate(-50%, 6px); z-index: 21; width: min(760px, 88vw); text-align: center; pointer-events: none;
  font: italic 400 clamp(16px, 2.3vw, 24px)/1.4 var(--font); color: #efe3c4; text-shadow: 0 2px 0 #000, 0 0 16px #000; opacity: 0; transition: opacity .4s, transform .4s; }
#cineSub.on { opacity: 1; transform: translate(-50%, 0); }
/* UYARI PLAKASI (A5, Cihat 21.11): metalik piksel plaka (bld_plaka.png, ArgoLink; 9 dilim: uç başlıklar sabit, orta esner) + solda sarı ünlem.
   Üstten kayarak gelir, ~3,4 sn durur, küçülüp yukarı çekilerek söner; yeri bildirim çubuğunun üstü (--bldY, hud.js bldYer). */
#banner { position: fixed; left: 50%; top: calc(var(--bldY, calc(66px + var(--st))) + 5px); transform: translateX(-50%); z-index: 15; pointer-events: none; opacity: 0; white-space: nowrap;
  display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); box-sizing: border-box; max-width: var(--bldMaxW, 560px); min-width: min(var(--bldMaxW, 440px), 440px); justify-content: center; min-height: clamp(44px, 7vh, 56px);
  padding: 0 clamp(26px, 3.2vw, 40px) 0 clamp(22px, 2.6vw, 32px); border-style: solid; border-width: clamp(8px, 1.3vh, 10px) clamp(22px, 3.2vh, 28px);
  border-image: url(../assets/ui/bld_plaka.png) 18 60 16 60 fill / clamp(8px, 1.3vh, 10px) clamp(22px, 3.2vh, 28px) stretch; font-family: var(--font); color: #fff1cc; filter: drop-shadow(0 4px 0 #000a) drop-shadow(0 0 14px #0009); }
#banner .bn-ik { flex: none; width: clamp(28px, 5.4vh, 38px); height: auto; margin-left: -6px; image-rendering: auto; filter: drop-shadow(0 2px 0 #000c); }
#banner .bn-yazi { display: grid; min-width: 0; line-height: 1.05; }
#banner .bn-yazi b { font-weight: 700; font-size: clamp(17px, 2.3vw, 26px); letter-spacing: .14em; text-shadow: 0 2px 0 #000, 0 0 10px #000a; overflow: hidden; text-overflow: ellipsis; }
#banner .bn-yazi small { margin-top: 2px; font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .08em; color: #fff4dc; text-shadow: 0 1px 0 #000; overflow: hidden; text-overflow: ellipsis; }
#banner.on { animation: plakaGel 4.2s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes plakaGel { 0% { opacity: 0; transform: translate(-50%, -150%) scale(.96); } 9% { opacity: 1; transform: translate(-50%, 6%) scale(1.02); } 14% { transform: translate(-50%, 0) scale(1); }
  84% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -30%) scale(.55, .4); } }
#banner .bn-ik { animation: plakaIk 4.2s ease-out both; } @keyframes plakaIk { 0%, 10% { transform: scale(.4) rotate(-12deg); } 17% { transform: scale(1.18); } 22%, 100% { transform: none; } }
/* BİLDİRİM ÇUBUĞU: her satır arka planlı şerit (bld_serit*.png) + tür ikonu; tehlike kırmızı. Ok sekmesi görününce şeritler onun altına iner. */
#toasts { margin-top: var(--bldKay, 0px); transition: margin-top .3s ease; }
body.bld-ok-var #toasts { --bldKay: clamp(26px, 4.6vh, 34px); }
body.plaka-on #toasts { --bldKay: calc(var(--plakaH, 56px) + 12px); }   /* --plakaH: plakanın ölçülen boyu (hud.js banner) */
.toast.bld { display: flex; align-items: center; gap: 6px; box-sizing: border-box; max-width: min(var(--bldMaxW, 440px), 440px);   /* plakadan geniş olmaz (Fable 21.11) */ min-height: 28px; padding: 1px 12px 1px 4px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.15; color: #f3ead2;
  border-style: solid; border-width: 6px 14px; border-image: url(../assets/ui/bld_serit.png) 9 22 9 22 fill / 6px 14px stretch; filter: drop-shadow(0 2px 0 #0008);
  animation: bldGir .32s cubic-bezier(.2, 1.4, .5, 1) both; transition: opacity .3s, transform .3s; }
.toast.bld span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 1px 0 #000; }   /* uzun bildirim kesilmez, en çok 2 satır */
.toast.bld .bld-ik, .toast.kazan .bld-ik { flex: none; width: 20px; height: 20px; margin-left: -8px; }
.toast.bld.t-tehlike { border-image-source: url(../assets/ui/bld_serit_tehlike.png); color: #ffe2dc; }
.toast.bld.t-tehlike span { color: #ffd3c9; font-weight: 700; }
.toast.bld.t-odul { border-image-source: url(../assets/ui/bld_serit_odul.png); color: #ffe9b0; }
.toast.bld.git { opacity: 0; transform: translateY(-8px); }
@media (max-height: 500px) { .toast.bld { min-height: 25px; font-size: 14px; border-width: 5px 13px; border-image-width: 5px 13px; padding: 0 10px 0 4px; } .toast.bld .bld-ik { width: 17px; height: 17px; } #toasts { gap: 3px; } }
@keyframes bldGir { from { opacity: 0; transform: translateY(-10px) scaleY(.6); } to { opacity: 1; transform: none; } }
/* ok sekmesi (plaka söndüğü yerde, kapak gibi) ve son bildirimler listesi */
#bildirimOk { position: fixed; z-index: 14; left: var(--bldX, 50%); top: calc(var(--bldY, 66px) + 1px); transform: translateX(-50%); width: clamp(50px, 7.6vh, 60px); height: clamp(25px, 3.8vh, 30px); padding: 0; border: 0; cursor: pointer;
  background: url(../assets/ui/bld_ok.png) center / contain no-repeat; filter: drop-shadow(0 2px 0 #000a); opacity: .9; transition: opacity .25s, transform .15s; touch-action: manipulation; }
#bildirimOk::before { content: ''; position: absolute; inset: -12px -14px -10px; }   /* dokunma alanı ≥ 44 px */
#bildirimOk:hover, #bildirimOk:focus-visible { opacity: 1; } #bildirimOk:active { transform: translateX(-50%) translateY(1px) scale(.94); }
#bildirimOk[hidden], body.plaka-on #bildirimOk { opacity: 0; pointer-events: none; }
#bildirimOk[hidden] { display: none; }
body.bld-sag #bildirimOk { transform: translateX(-100%); } body.bld-sag #bildirimOk:active { transform: translateX(-100%) translateY(1px) scale(.94); }
#bildirimGecmis { position: fixed; z-index: 30; left: var(--bldX, 50%); top: calc(var(--bldY, 66px) + clamp(24px, 3.8vh, 30px)); translate: -50% 0; box-sizing: border-box; width: min(330px, var(--bldMaxW, 330px));
  padding: 4px 8px 6px; display: grid; gap: 2px; border-style: solid; border-width: 7px 16px; border-image: url(../assets/ui/bld_serit.png) 9 22 9 22 fill / 7px 16px stretch;
  background: #11171bf5; background-clip: padding-box; filter: drop-shadow(0 6px 10px #000c); font-family: var(--font); animation: bldGir .22s ease-out both; }
body.bld-sag #bildirimGecmis { translate: -100% 0; }
#bildirimGecmis[hidden] { display: none; }
#bildirimGecmis h4 { margin: 0 0 3px; padding-bottom: 3px; border-bottom: 1px solid #e0a92e66; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ffd36a; display: flex; justify-content: space-between; }
#bildirimGecmis h4 button { all: unset; cursor: pointer; margin: -4px -4px -4px 8px; padding: 2px 7px; font-size: 15px; line-height: 1; color: #e9e1cc; border-radius: 3px; } #bildirimGecmis h4 button:hover { background: #ffffff1a; }
#bildirimGecmis h4 small { margin-left: auto; font-size: 11px; letter-spacing: .03em; text-transform: none; color: #b9c4cc; }
#bildirimGecmis p { margin: 0; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 7px; font-size: 14px; line-height: 1.25; color: #f0e8d4; min-width: 0; }
#bildirimGecmis p:nth-of-type(n+3) { opacity: .68; }   /* eskiler soluk */
#bildirimGecmis p img { width: 18px; height: 18px; } #bildirimGecmis p span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-bottom: 1px; } #bildirimGecmis p small { font-size: 11px; color: #9aa7b0; }
#bildirimGecmis p.t-tehlike span { color: #ff9483; font-weight: 700; } #bildirimGecmis p.t-odul span { color: #ffdf8a; } #bildirimGecmis p.bos { display: block; color: #8d9aa3; }
body.bld-gecmis #bildirimOk { opacity: 1; rotate: x 180deg; filter: drop-shadow(0 0 6px #ffb52e) drop-shadow(0 2px 0 #000a); }
body.bld-gecmis #toasts { visibility: hidden; }
#hudTop[hidden] ~ #bildirimOk, body:has(#balon) #bildirimOk, body:has(#rexMenu) #bildirimOk, body.dp-acik #bildirimOk, body.kupa-acik #bildirimOk, body.sahne #bildirimOk, body:has(#panel:not([hidden])) #bildirimOk, body:has(#hudTop[hidden]) #bildirimOk, body:has(#hudTop[hidden]) #bildirimGecmis, body.dp-acik #bildirimGecmis { display: none; }
/* kupa ekranı (TUM_ISTEKLER 236): yeni silah → ortada parlayan kart */
#kupa { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); z-index: 16; pointer-events: none; opacity: 0; text-align: center; font-family: var(--font); color: #f1e6c8; text-shadow: 0 3px 0 #000; }
#kupa small { display: block; font-size: 13px; letter-spacing: .45em; color: #ffd36a; margin-bottom: 8px; }
#kupa .kupa-ic { position:relative; width: min(300px, 60vw); padding: 18px 10px; border: 2px solid #c9953a; background: radial-gradient(ellipse at center, rgba(120,84,34,.96), rgba(20,14,8,.96) 72%); box-shadow: 0 0 40px rgba(255,190,80,.45), inset 0 0 0 2px #09030a; }
#kupa img { width: 82%; image-rendering: pixelated; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 10px rgba(255,220,140,.6)); }
#kupa b { display: block; margin-top: 10px; font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .12em; }
#kupa.on { animation: kupa 3.2s ease forwards; }
/* 16.11: efsanevi kart ortada açılır, sonra sağ üstteki "Kazanıldı" köşesine küçülerek uçar */
#kupa.on.uc { animation: kupaUc var(--ks, 3.2s) ease forwards; }
@keyframes kupaUc { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 74% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: .2; transform: translate(calc(-50% + 50vw - 140px), calc(-50% - 42vh + 80px)) scale(.12); } }
#kupa.kart .kupa-ic { border-width: 3px; background: radial-gradient(ellipse at center, rgba(52,44,60,.96), rgba(10,8,14,.97) 72%); }   /* silah kartı: çerçeve rengi inline */
#kupa.kart small { letter-spacing: .25em; }
#kupa.kart em { display: block; margin-top: 6px; font: 600 clamp(12px, 1.8vw, 16px) var(--font); font-style: normal; color: #e8dcc0; letter-spacing: .05em; }
#kupa.buyuk .kupa-ic { animation: kartParla .45s ease-in-out 4 alternate; }
@keyframes kartParla { to { filter: brightness(1.6); } }
@keyframes kupa { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -54%) scale(.96); } }
#stageClear { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); z-index: 15; pointer-events: none; font: 700 clamp(30px, 6.5vw, 64px) var(--font); letter-spacing: .3em;
  color: #ffd98a; text-shadow: 0 4px 0 #000, 0 0 28px rgba(255,170,60,.55); opacity: 0; white-space: nowrap; }
#stageClear.on { animation: stageClear 3s ease .9s forwards; }
@keyframes stageClear { 0% { opacity: 0; letter-spacing: .6em; } 14% { opacity: 1; letter-spacing: .3em; } 80% { opacity: 1; } 100% { opacity: 0; letter-spacing: .26em; } }
#stageClear small { display: block; font-size: .3em; letter-spacing: .3em; color: var(--muted); margin-top: 8px; }
body:has(#panel:not([hidden])) #stageClear { visibility: hidden; }
/* hata güvenlik ağı (20.10.2026): oyun donmak yerine bu ekranı açar */
#cokme { z-index: 90; background: rgba(4, 6, 8, .95); padding: calc(12px + var(--st)) calc(12px + var(--sr)) calc(12px + var(--sb)) calc(12px + var(--sl)); }
#cokme .card { width: min(560px, 100%); }
#cokme h2 { font-size: 26px; }
#cokme pre { margin: 0; padding: 10px 12px; max-height: 26vh; overflow: auto; background: rgba(0, 0, 0, .5); border: 2px solid var(--edge); color: #ffd9c8;
  font: 13px/1.45 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.ckDugmeler { display: flex; flex-wrap: wrap; gap: 8px; }
.ckDugmeler .big { justify-self: auto; flex: 1 1 100%; text-align: center; }
.ckDugmeler .btn { flex: 1 1 auto; text-align: center; }
/* teşhis katmanı (#carpisma, F3): çarpışma modelini görünür yapar */
#teshis { position: fixed; left: calc(8px + var(--sl)); top: calc(92px + var(--st)); z-index: 60; width: min(202px, 44vw); display: grid; gap: 2px;
  padding: 6px 8px; font: 10px/1.3 var(--font); color: #dfe9e3; background: rgba(6, 10, 12, .87); border: 1px solid #3c5a52; pointer-events: none; }
#teshis[hidden] { display: none; }
#teshis b { font-size: 12px; letter-spacing: .08em; color: #9fe8d0; }
#teshis span { display: flex; align-items: center; gap: 6px; }
#teshis span i { width: 10px; height: 10px; flex: none; box-shadow: inset 0 0 0 1px #000; }
#teshis em { margin-left: auto; font-style: normal; color: #ffd23f; }
#teshis small { color: var(--muted); font-size: 10px; line-height: 1.3; }
#loading { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; background: var(--ink); }
#loading b { font-size: clamp(22px, 5vw, 40px); letter-spacing: .08em; color: var(--amber); text-align: center; }
#loadbar { width: 200px; height: 8px; border: 2px solid var(--edge); }
#loadbar i { display: block; height: 100%; width: 0; background: var(--amber); }
#loading small { color: var(--muted); }

/* duraklatma + ayarlar */
#topRight { display: flex; gap: 6px; }
.set { display: grid; gap: 8px; }
.set label { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 10px; font-size: 15px; }
.set input[type=range] { width: 100%; accent-color: var(--amber); }
.set label.chk { grid-template-columns: auto 1fr; justify-content: start; }
.set input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--amber); }
.small { font-size: 12px; line-height: 1.4; }
#restart { justify-self: start; }

/* envanter */
.invCard { width: min(720px, 100%); grid-template-columns: 170px 1fr; gap: 18px; max-height: 92vh; overflow: auto; }
.invLeft { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px; border: 2px solid var(--edge); background: rgba(0, 0, 0, .3); }
#invDoll { width: 160px; height: 208px; image-rendering: pixelated; }
#invState { font-size: 18px; }
.invBar { width: 100%; height: 8px; }
.invBar i { display: block; height: 100%; }
#invStats { display: grid; gap: 2px; width: 100%; font-size: 14px; color: var(--muted); }
#invStats span { display: flex; justify-content: space-between; }
#invStats b { color: var(--fg); }
.invRight h3 { margin: 4px 0 4px; font-size: 14px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.slot { position: relative; height: 64px; border: 2px solid var(--edge); background: rgba(255, 255, 255, .04); display: grid; place-items: center; box-shadow: inset 0 0 0 1px #000; }
.slot img { width: 34px; height: auto; max-height: 30px; object-fit: contain; image-rendering: pixelated; margin-top: -10px; }
.slot.gun img { width: 54px; }
.slot b { position: absolute; right: 4px; top: 2px; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.slot small { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.slot.on { border-color: var(--amber); }
.slot.empty { opacity: .45; }
#invClose { justify-self: start; margin-top: 10px; }
@media (max-width: 560px) { .invCard { grid-template-columns: 1fr; } #invDoll { width: 120px; height: 156px; } }
#bInv { font-size: 20px; left: calc(14px + var(--sl)); top: calc(146px + var(--st)); width: 46px; height: 46px; border-radius: 8px; }
body:not(.touch) #bInv { opacity: .7; }

.sub { margin: 6px 0 0; font-size: 14px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* ihtiyaç göstergeleri, ev canı, görev kutusu */
.mbar { height: 6px; background: #1a1d18; border: 1px solid #000; position: relative; flex: 1; }
.mbar i { position: absolute; inset: 0; width: 100%; background: #8fd86a; transition: width .3s; }
/* 19.11 (Fable): yatay telefonda (844x390) saat kutusu can panelinin üstüne biniyordu: kutu sağa kayar */
@media (min-width: 721px) and (max-width: 940px) and (max-height: 470px) { #timeBox { transform: translateX(calc(-50% + 30px)); } }
#needs { display: grid; gap: 3px; }
.nd { display: flex; align-items: center; gap: 6px; }
.nd canvas { width: 18px; height: 18px; image-rendering: pixelated; flex: none; }
#stats { width: 176px; }
#ndEnerji i { background: #e8d24a; }
.nd.low i { background: #e0473c; animation: blink 1s infinite; } @keyframes blink { 50% { opacity: .45; } }
#houseBox { position: absolute; left: calc(68px + var(--sl)); top: calc(154px + var(--st)); display: flex; align-items: center; gap: 6px; padding: 4px 8px; width: 120px; }
#houseBox canvas { width: 18px; height: 18px; image-rendering: pixelated; } #houseBox i { background: #c8a46a; } #houseBox.low i { background: #e0473c; }
#questBox { position: absolute; right: calc(10px + var(--sr)); top: calc(58px + var(--st)); max-width: 200px; padding: 4px 9px; display: grid; gap: 1px; text-align: right; }
#questBox small { color: var(--amber); letter-spacing: .08em; font-size: 11px; } #questGoal { font-size: 12px; color: var(--fg); line-height: 1.25; }
#questBox.yeni { animation: gorevYeni 1.6s ease-out; }
/* YOL GÖSTERİCİ KUTUSU (cihat 13.11): seçili değilken ana görev olarak nabız gibi parlar (dokun → ok çıkar); seçiliyken sabit sarı çerçeve + "yol gösteriliyor" */
#questBox { padding-left: 26px; }
#questList { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 18px; height: 22px; display: grid; place-items: center; font: 400 13px/1 var(--font); color: #8da6a4; border-radius: 4px; }
#questList::before { content: '☰'; } #questOk::before { content: '➤ yol gösteriliyor'; }   /* metin CSS'te: kutunun textContent'i yalnız görev yazısı kalır */
#questList:hover { color: var(--amber); background: #ffffff14; }
#questOk { display: none; font: 400 10px/1.2 var(--font); font-style: normal; color: var(--amber); letter-spacing: .04em; }
#questBox.secili { border-color: var(--amber); box-shadow: 0 0 10px rgba(255, 190, 90, .45), inset 0 0 0 1px rgba(255, 190, 90, .35); }
#questBox.secili #questOk { display: block; }
#questBox.nabiz:not(.yeni) { animation: gorevNabiz 1.8s ease-in-out infinite; }
@keyframes gorevNabiz { 0%, 100% { border-color: rgba(255, 190, 90, .35); box-shadow: 0 0 0 0 rgba(255, 190, 90, 0); } 50% { border-color: var(--amber); box-shadow: 0 0 16px 2px rgba(255, 190, 90, .55); } }
@media (prefers-reduced-motion: reduce) { #questBox.nabiz { animation: none; border-color: var(--amber); } }
@keyframes gorevYeni { 0% { transform: translateX(14px); opacity: 0; border-color: var(--amber); box-shadow: 0 0 0 0 rgba(255, 190, 90, .0); }
  15% { transform: none; opacity: 1; box-shadow: 0 0 14px 2px rgba(255, 190, 90, .55); } 100% { box-shadow: 0 0 0 0 rgba(255, 190, 90, 0); } }
/* pencere altyapısı */
#panelBg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.pcard { position: relative; z-index: 1; width: min(520px, 100%); max-height: 92vh; overflow: auto; } .pcard.wide { width: min(760px, 100%); }
#panelBody { display: grid; gap: 8px; } #panelBody p { margin: 0; line-height: 1.4; } #panelBody .dlg { font-size: 17px; line-height: 1.45; font-style: italic; }
#panelBody .who { color: var(--amber); letter-spacing: .08em; font-style: normal; font-size: 13px; }
#panelBody .portrait { width: 96px; height: 96px; object-fit: cover; image-rendering: pixelated; border: 2px solid var(--edge); float: left; margin: 0 12px 4px 0; }
#panelBody .note { white-space: pre-line; background: rgba(232, 220, 190, .09); border: 1px dashed #6a6450; padding: 12px; font-size: 16px; line-height: 1.5; }
.pbtn { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 2px solid var(--edge); background: rgba(255,255,255,.04); font: 16px var(--font); }
.pbtn b { color: var(--amber); font-weight: 600; } .pbtn:disabled { opacity: .4; cursor: default; } .pbtn:not(:disabled):hover, .pbtn:focus-visible { border-color: var(--amber); }
.pbtn.good { border-color: #4a7a3a; } .pbtn.warn { border-color: #8a4a2a; }
.ptabs { display: flex; gap: 4px; flex-wrap: wrap; } .ptab { all: unset; cursor: pointer; padding: 6px 12px; border: 2px solid var(--edge); font: 600 14px var(--font); color: var(--muted); } .ptab.on { color: var(--amber); border-color: var(--amber); }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--edge); background: rgba(255,255,255,.03); }
.prow small { color: var(--muted); grid-column: 1 / -1; } .prow .lv { color: var(--amber); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
/* ana menü */
#menu { background: #04060a; padding: 0; } #menuBg { position: absolute; inset: 0; background: center / cover no-repeat; image-rendering: pixelated; }
#menuVid, #menuFx, #menuKarart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } #menuVid { object-fit: cover; } #menuFx { image-rendering: pixelated; }
#menuKarart { background: linear-gradient(90deg, rgba(4,6,10,.72), rgba(4,6,10,.35) 32%, transparent 52%), radial-gradient(ellipse at 60% 45%, transparent 55%, rgba(0,0,0,.5)); }
#menu { place-items: end start; } #menuBg { background-position: center 40%; } #menuVid { object-position: center 40%; }
#menuBox { justify-items: start; text-align: left; margin: 0 0 max(6vh, 18px) max(5vw, env(safe-area-inset-left, 0px) + 16px); }
#menuBox h1 { font-size: clamp(40px, 8vw, 72px); letter-spacing: .22em; } #menuBox p { margin-bottom: 8px; }
#menuBox { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; }
#menuBox h1 { margin: 0; font-size: clamp(54px, 12vw, 96px); letter-spacing: .3em; color: var(--amber); text-shadow: 0 4px 0 #000, 0 0 40px rgba(240, 176, 74, .35); }
#menuBox h1 img { display: block; width: min(460px, 62vw); max-height: 40vh; object-fit: contain; filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 18px rgba(0,0,0,.7)); }   /* cihat'ın Firefly logosu (Paket 5) */
#menuBox p { margin: 0 0 14px; color: var(--muted); letter-spacing: .2em; } #menuBtns { display: grid; gap: 8px; width: min(300px, 80vw); } #menuNote { color: var(--muted); }
#menuBtns .pbtn { justify-content: center; font-size: 19px; padding: 12px; background: rgba(8, 11, 10, .75); }

.slot.use { cursor: pointer; } .slot.use:hover { border-color: var(--amber); }

.pcard { background: rgba(9, 12, 11, .97); }
@media (max-height: 470px) { .pcard { padding: 12px 16px; gap: 7px; } .pcard h2 { font-size: 24px; } .pbtn { padding: 6px 10px; font-size: 15px; } .prow { padding: 5px 9px; } #panelBody { gap: 6px; } .portrait { width: 72px !important; height: 72px !important; } }
/* depo: çanta ve sandık/kasa yan yana */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .stg { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; }
.stc { all: unset; cursor: pointer; display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 8px 8px; min-height: 44px; border: 2px solid var(--edge); background: rgba(255,255,255,.04); font: 14px var(--font); }
.stc:hover, .stc:focus-visible, .stc:active { border-color: var(--amber); } .stc img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; } .stc b { color: var(--amber); }
.cgrid { display: grid; gap: 6px; justify-content: center; margin: 4px 0; } .ccell { all: unset; cursor: pointer; width: 64px; height: 64px; border: 2px solid var(--edge); background: rgba(0,0,0,.35); display: grid; place-items: center; } .ccell img { width: 36px; height: 36px; image-rendering: pixelated; object-fit: contain; }
.ccell.out { border-color: var(--amber); } .cwrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-start; } .cwrap > .cl { flex: 0 1 auto; min-width: 0; } .cwrap .cl .crow { flex-wrap: wrap; } .cwrap > .cr { flex: 1 1 220px; min-width: 200px; } .cwrap > .cr > .sub { margin-top: 4px; }
@media (max-height: 500px) { .cgrid { grid-template-columns: repeat(var(--cn, 3), 50px) !important; } .ccell { width: 50px; height: 50px; } } .cpal { display: flex; flex-wrap: wrap; gap: 6px; } .cpal .stc.sel { border-color: var(--amber); background: rgba(255,200,80,.12); }
.crow { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; } .cmini { display: inline-grid; gap: 1px; } .cmini i { width: 9px; height: 9px; background: #333; display: block; } .cmini i.f { background: var(--amber); }
.c-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 8px; }
.c-recipe { min-height: 84px; display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 8px; padding: 7px; text-align: left; color: var(--fg); border: 2px solid var(--edge); background: rgba(10,13,12,.72); cursor: pointer; }
.c-recipe:not(:disabled):hover { border-color: var(--amber); background: rgba(240,176,74,.12); }
.c-recipe.dim { opacity: .48; filter: saturate(.55); cursor: not-allowed; }
.c-recipe-out { position: relative; width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.28); }
.c-recipe-out img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.c-ammo-cal { position: absolute; right: 2px; bottom: 2px; padding: 1px 2px; color: #fff0bf; background: rgba(20,14,8,.86); border: 1px solid #b98432; font: 700 8px/1 monospace; letter-spacing: -.5px; }
.c-recipe-copy { display: grid; gap: 3px; min-width: 0; } .c-recipe-copy > b { color: var(--amber); }
.c-needs { display: flex; gap: 5px; flex-wrap: wrap; }.cneed { display: inline-grid; grid-template-columns: 18px auto; align-items: center; column-gap: 2px; color: var(--fg); }.cneed img { width: 17px; height: 17px; object-fit: contain; image-rendering: pixelated; }.cneed b { color: var(--gold); }.cneed small { grid-column: 1 / -1; font-size: 10px; color: var(--muted); }.c-lock { color: #f0c45a; }
@media (max-width: 560px) { .split { grid-template-columns: 1fr; } }
/* UX: dokunma hedefleri ≥44px, basış geri bildirimi, emniyet payı */
.pbtn, .ptab, .stc, .ccell { min-height: 44px; } .pbtn, .ptab, .stc { box-sizing: border-box; }   /* 44 px dokunma alanı kenarlık ve boşluk dahil (yoksa 68 px oluyordu) */ .ptab { padding: 10px 14px; display: inline-flex; align-items: center; }
.pbtn:not(:disabled):active, .ptab:active, .stc:active, .ccell:active { transform: scale(.97); filter: brightness(1.3); }
.rb:active, #bFire:active { transform: scale(.93); filter: brightness(1.25); }
#prompt { pointer-events: auto; padding: 10px 18px; min-height: 44px; cursor: pointer; background: rgba(8, 11, 10, .55); border: 2px solid var(--edge); } #prompt:empty { display: none; }
.panel-ov { padding-left: calc(10px + var(--sl)); padding-right: calc(10px + var(--sr)); padding-top: calc(10px + var(--st)); padding-bottom: calc(10px + var(--sb)); }
.pbtn + .pbtn { margin-top: 2px; }
/* katlanır / dar dikey ekran (ör. katlı telefon): üst şerit çakışmasın, prompt düğmelerin üstünde kalsın */
@media (max-width: 560px) {
  #timeBox { top: auto; bottom: auto; left: auto; right: calc(10px + var(--sr)); top: calc(60px + var(--st)); transform: none; }
  #topRight { gap: 4px; }
  #prompt { bottom: calc(250px + var(--sb)); max-width: 86vw; text-align: center; }
  #stats { width: 150px; }
}

/* ---- QA mobil düzeltmeleri (10.10.2026) ---- */
.stc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stc b { white-space: nowrap; }   /* sayı hep görünür, ad kısalır */
#panelClose, #invClose, #invCraft, #bPause, .pbtn[data-a="det"] { min-height: 44px; min-width: 44px; box-sizing: border-box; }
#bHolster { bottom: calc(96px + var(--sb)); }   /* silah kutusuyla çakışmasın */
#bReload { bottom: calc(136px + var(--sb)); }   /* ⇄ ile çakışmasın */
#joy { left: calc(40px + var(--sl)); bottom: calc(40px + var(--sb)); }
.slot small { font-size: 11px; }
.panel-ov.no-close #panelClose { display: none; }   /* kendi 'Kapat'ı olan paneller (mektup, final dışı tek düğmeliler) */
@media (max-height: 470px) {
  #prompt { bottom: calc(12px + var(--sb)); }   /* yatay telefonda ekranın ortası değil alt: Jack'in ayaklarını örtmesin */
  #story { bottom: calc(64px + var(--sb)); }
  .pcard .ptabs { position: sticky; top: -12px; z-index: 2; background: #0c100e; padding: 4px 0; }
  #panelSub { font-size: 12px; }
}
@media (max-width: 560px) { #stats { width: 146px; } }

/* ---- B · RPG: diyalog, NPC balonları, günlük/harita/istatistik, alışveriş, eşya atma (10.10.2026) ---- */
.fd { display: grid; gap: 10px; }
.fd-top { display: flex; gap: 12px; align-items: flex-start; }
.fd-por { width: 112px; height: 112px; flex: none; object-fit: cover; image-rendering: pixelated; border: 2px solid var(--amber); box-shadow: 0 0 0 2px #000, 0 0 18px rgba(240, 176, 74, .18); background: #07090b; }
.fd-say { display: grid; gap: 6px; min-width: 0; }
#panelBody .fd-say p { font-size: 17px; line-height: 1.45; font-style: italic; color: #f1e8d2; }
#panelBody .fd-say p::before { content: '“'; color: var(--amber); } #panelBody .fd-say p::after { content: '”'; color: var(--amber); }
.fd-note { color: var(--amber); font-size: 13px; letter-spacing: .03em; }
.fd-opts { display: grid; gap: 4px; border-top: 1px dashed #4a5040; padding-top: 8px; }
.pbtn.fd-opt { justify-content: flex-start; gap: 8px; text-align: left; }
.fd-opt i { color: var(--amber); font-style: normal; flex: none; min-width: 18px; }
.fd-opt.seen span { color: var(--muted); }
.fd-opt.good span { color: #c8f2a8; }
@media (max-height: 470px) { .fd-por { width: 76px !important; height: 76px !important; } #panelBody .fd-say p { font-size: 15px; } .fd { gap: 6px; } .fd-opts { padding-top: 5px; } }

#npcBubbles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.npc-objective-marker {
  position: absolute; left: 0; top: 0; width: 13px; height: 13px;
  background: #352411; pointer-events: none;
}
.npc-objective-marker, .npc-objective-marker::after {
  clip-path: polygon(38% 0, 62% 0, 62% 15%, 77% 15%, 77% 30%, 100% 30%, 100% 70%, 77% 70%, 77% 85%, 62% 85%, 62% 100%, 38% 100%, 38% 85%, 23% 85%, 23% 70%, 0 70%, 0 30%, 23% 30%, 23% 15%, 38% 15%);
}
.npc-objective-marker::after {
  content: ''; position: absolute; inset: 2px; background: #efbc63;
}
.nbub { position: absolute; left: 0; top: 0; max-width: min(310px, 72vw); padding: 6px 10px 7px; background: rgba(12, 14, 12, .9); border: 1px solid #6a6450; border-radius: 5px; color: #f4ead2; font: 15px/1.35 var(--font); text-align: center; white-space: normal; text-shadow: 1px 1px 0 #000; will-change: transform; }
.nbub { pointer-events: auto; cursor: pointer; } .nbub .un { visibility: hidden; }   /* dokun: tamamla / geç (konusma.js) */
.nbub::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-top-color: #6a6450; border-bottom: 0; }

#bMap { font-size: 20px; left: calc(14px + var(--sl)); top: calc(200px + var(--st)); width: 46px; height: 46px; border-radius: 8px; }
body:not(.touch) #bMap { opacity: .7; }
#questBox { pointer-events: auto; cursor: pointer; } #questBox:hover { border-color: var(--amber); }

.jr-next { display: grid; gap: 2px; padding: 8px 12px; border: 2px solid var(--amber); background: rgba(240, 176, 74, .08); }
.jr-next small { color: var(--amber); letter-spacing: .12em; font-size: 11px; } .jr-next b { font-size: 17px; }
.prow.jr-on { border-color: var(--amber); } .jr-tag { color: var(--muted); font-size: 11px; }
.jr-map { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 2px solid var(--edge); background: #050706; }
.jr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.jr-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.lg-ev { background: #f0b04a; } .lg-npc { background: #5fe0cf; border-radius: 50%; } .lg-hedef { background: #ffd36a; transform: rotate(45deg); } .lg-yer { border: 2px solid #e04a3a; border-radius: 50%; } .lg-sen { background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.jr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.jr-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 2px solid var(--edge); background: rgba(255, 255, 255, .03); }
.jr-stats b { color: var(--amber); }

.shx { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: start; }
.shx-inv { display: grid; gap: 6px; padding: 8px; border: 2px solid var(--edge); background: rgba(0, 0, 0, .32); position: sticky; top: 0; max-height: 72vh; overflow: auto; }
.shx-cap { display: grid; gap: 3px; font-size: 14px; } .shx-cap b { color: var(--fg); } .shx-cap .mbar.full i { background: #e0473c; }
.shx-list { display: grid; gap: 2px; }
.shx-it { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 2px 4px; font-size: 14px; border: 1px solid transparent; }
.shx-it img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; } .shx-it b { color: var(--amber); }
.shx-it.flash { animation: shxFlash .9s; } @keyframes shxFlash { 0% { background: rgba(240, 176, 74, .45); border-color: var(--amber); } 100% { background: transparent; border-color: transparent; } }
.shx-coin { font-size: 14px; color: var(--muted); }
.shx-main { display: grid; gap: 6px; min-width: 0; }
.shx-npc { display: flex; gap: 10px; align-items: center; padding: 6px; border: 2px solid var(--edge); background: rgba(0, 0, 0, .3); } .shx-npc .fd-por { width: 64px; height: 64px; flex: none; } .shx-npc b { color: var(--amber); }
.shx-kim { display: grid; gap: 2px; min-width: 0; flex: 1; } .shx-kim small { color: var(--muted); font-size: 13px; } .shx-kim .dlg { margin: 2px 0 0; font-size: 14px; }
.ov .pbtn.shx-konus { flex: none; width: auto; min-width: 96px; justify-content: center; }
.shx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.shc { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-rows: 40px auto auto auto; justify-items: center; align-items: center; gap: 2px; padding: 6px 5px 7px; min-height: 118px; text-align: center;
  border: 2px solid #5a3e28; background: linear-gradient(#3a2618, #2a1b12); box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .08); font: 14px var(--font); color: var(--fg); }
.shc img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; } .shc-ad { line-height: 1.15; } .shc small { color: var(--muted); font-size: 12px; } .shc small i { color: #ff8a6a; font-style: normal; }
.shc b { margin-top: 2px; padding: 1px 8px; border: 1px solid rgba(240, 176, 74, .5); background: rgba(0, 0, 0, .35); color: var(--gold, var(--amber)); font-weight: 600; }
.shc:not(:disabled):hover, .shc:focus-visible { border-color: var(--amber); filter: brightness(1.12); } .shc:not(:disabled):active { transform: translateY(1px); }
.shc:disabled { opacity: .45; filter: saturate(.4); cursor: default; } .shc.full { border-color: #8a4a2a; }
.shx-warn { padding: 8px 10px; border: 2px solid #8a4a2a; background: rgba(140, 60, 30, .15); color: #ffc0a0; }
.shx-full { color: #ff8a6a; }
.shx-fly { position: fixed; left: 0; top: 0; width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; z-index: 50; pointer-events: none; transition: transform .5s cubic-bezier(.3, .7, .4, 1), opacity .5s; filter: drop-shadow(0 0 6px rgba(240, 176, 74, .8)); }
@media (max-width: 560px) { .shx { grid-template-columns: 1fr; } .shx-inv { position: static; max-height: 30vh; } }

#invDrop.on { border-color: var(--red); color: #ffb0a0; }
#inv.dropping #invBag .slot.use, #inv.dropping .slot.drop { border-color: #c0603a; cursor: pointer; }
@media (min-width: 700px) { .fd-opts { grid-template-columns: 1fr 1fr; } .fd-opts .pbtn + .pbtn { margin-top: 0; } }

/* boss barı ↔ görev kutusu çakışması: boss varken görev kutusu barın altına iner. Dar dikeyde zaten zaman kutusunun altına (üst üste biniyordu) */
@media (max-width: 920px) { #hudTop.bossOn #questBox { top: calc(110px + var(--st)); } }
@media (max-width: 560px) {
  #questBox { top: calc(106px + var(--st)); max-width: min(230px, calc(100vw - 168px)); }   /* zaman kutusunun (60px) altı */
  #boss { left: calc(164px + var(--sl)); right: calc(10px + var(--sr)); top: calc(106px + var(--st)); width: auto; transform: translateX(var(--bx, 0px)); padding: 4px 8px; }
  #boss small { letter-spacing: .06em; font-size: 12px; }
  #hudTop.bossOn #questBox { top: calc(154px + var(--st)); }
}

/* menü: zorluk seçimi (üç düğme yan yana; seçili olan ana düğme gibi, diğerleri düz) */
#menuBtns[data-zorluk] { grid-template-columns: repeat(3, 1fr); width: min(420px, 92vw); } #menuBtns[data-zorluk] .pbtn { font-size: 17px; }
#menuBtns[data-zorluk] .pbtn:not(.on) { border-image-source: url(../assets/ui/dugme.png); color: var(--fg); text-shadow: 0 2px 0 #2a1b16; }
#menuBtns[data-zorluk] .pbtn.on { border-image-source: url(../assets/ui/dugme_ana.png); color: #2a1b16; text-shadow: 0 1px 0 #f3c282; }
#menuBtns[data-zorluk] [data-go], #menuBtns[data-zorluk] [data-m="geri"] { margin-top: 4px; }
#menuNote { max-width: min(420px, 92vw); min-height: 3.2em; }

/* boss barı varken kısa bildirimler (toast) barın yazısının üstüne binmesin: barın altına iner */
body.bossOn #toasts { top: calc(124px + var(--st)); }

/* SİLAH TEZGÂHI — üç sütun, dar ekranda tek akış. Örs ve çekiç tamamen kod/CSS. */
.armory { display:grid; gap:9px; color:#f4ead2; } .armory header { display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid #5a3e28; padding-bottom:6px; } .armory header>div{display:flex;align-items:center;gap:8px}.armory header img{width:42px;height:30px;object-fit:contain;image-rendering:pixelated}.armory h2,.armory h3{margin:0}.armory header small{color:#c5b99b}.arm-filters{display:flex;align-items:center;flex-wrap:wrap;gap:3px;font:11px var(--font);color:#c5b99b}.arm-filters span{margin-left:5px;color:#e3aa50}.arm-filters button{padding:3px 5px;background:#1c231d;border:1px solid #4e594c;color:#dfd4bf;font:10px var(--font)}.arm-filters button.on{border-color:#e3aa50;background:#5d4824;color:#fff}.arm-grid{display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,1.25fr) minmax(180px,1fr);gap:9px;align-items:start}.arm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:5px;max-height:64vh;overflow:auto;padding:3px}.wk{all:unset;box-sizing:border-box;display:grid;position:relative;min-height:96px;cursor:pointer;place-items:center;gap:1px;padding:4px;border:2px solid var(--wk);background:linear-gradient(#18221e,#0d1512);box-shadow:inset 0 0 0 1px #000}.wk img{width:44px;height:38px;object-fit:contain;image-rendering:pixelated}.wk b{font:700 11px var(--font);color:var(--wk)}.wk small{font:10px var(--font);text-align:center;color:#e5dbc6}.wk.on{background:#263528;box-shadow:0 0 9px var(--wk),inset 0 0 0 1px #fff}.wk.ucus{z-index:4;animation:kartUcus 1.55s cubic-bezier(.2,.75,.35,1) forwards}.wk.lock::after{content:'🔒';position:absolute;left:3px;top:2px;font-size:10px}.wk-malzeme{position:absolute;right:3px;top:2px;min-width:15px;text-align:center;background:#182019;border:1px solid var(--wk);color:var(--wk)}.wk-malzeme.sel{background:var(--wk);color:#111}.wk.yanar::before,.kupa-ic.alevli::before{content:'♨';position:absolute;color:var(--wk,#ffb02e);font-size:22px;top:-13px;animation:kartAlev .65s steps(2) infinite;text-shadow:0 0 8px currentColor}.arm-forge,.arm-detail{border:2px solid #5a3e28;background:rgba(16,12,9,.72);padding:9px}.arm-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px}.arm-tabs button,.arm-actions button,.armory header button{font:13px var(--font);padding:7px;background:#2c392e;color:#f4ead2;border:1px solid #79613b}.arm-tabs button.on{border-color:#f0b04a;background:#5d4824}.anvil{height:142px;position:relative;margin:8px 0;background:repeating-linear-gradient(90deg,#4c2c18 0 9px,#623a1f 9px 12px);border:2px solid #28150c;overflow:hidden}.anvil-body{position:absolute;left:50%;top:65px;width:94px;height:22px;transform:translateX(-50%);background:#687078;clip-path:polygon(19% 0,81% 0,100% 38%,72% 38%,65% 100%,35% 100%,28% 38%,0 38%);box-shadow:0 18px 0 #303840}.hammer{position:absolute;left:54%;top:14px;font-size:42px;transform:rotate(-23deg);z-index:2}.anvil.vurus .hammer{animation:orsVur var(--vurus-sure,.8s) var(--vurus,3)}.anvil.vurus{animation:tezgahSars var(--vurus-sure,.8s) var(--vurus,3)}.anvil.vurus::after{content:'';position:absolute;inset:0;background:#fff;opacity:0;animation:orsParla var(--vurus-sure,.8s) var(--vurus,3)}.sparks{display:none;position:absolute;left:39%;top:37px;color:#fff1a0;font-size:26px;word-spacing:14px}.anvil.vurus .sparks{display:block;animation:kivil var(--vurus-sure,.8s) ease-out var(--vurus,3)}.arm-main{width:100%;padding:10px;background:#704222;border:2px solid #e3aa50;color:#fff4d6;font:700 14px var(--font)}.arm-main:disabled{opacity:.45}.arm-detail{min-height:250px;--wk:#9aa0a6}.arm-detail h2{color:var(--wk);font-size:18px}.arm-rarity{color:var(--wk)}.arm-imza{font-size:12px;color:#e8cf8a;border-left:2px solid var(--wk);padding-left:6px}.arm-stat{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0}.arm-stat span{display:flex;justify-content:space-between;border-bottom:1px solid #463625;font-size:12px}.arm-stat .up{color:#7de878}.arm-stat .down{color:#ff7878}.arm-perks{font-size:12px;line-height:1.6;color:#d9c8a8}.arm-actions{display:flex;flex-wrap:wrap;gap:4px}@keyframes kartUcus{45%{transform:translate(24vw,6vh) scale(.78) rotate(7deg)}100%{transform:translate(24vw,6vh) scale(.15);opacity:0}}@keyframes orsVur{50%{transform:translate(-12px,57px) rotate(12deg)}}@keyframes kivil{to{transform:translateY(-30px);opacity:0}}@keyframes tezgahSars{50%{transform:translateX(2px)}}@keyframes orsParla{48%,55%{opacity:.72}}@media(max-width:700px){.arm-grid{grid-template-columns:1fr}.arm-list{max-height:30vh}.arm-forge{order:-1}.arm-detail{min-height:0}.wk.ucus{animation-duration:.55s}@keyframes kartUcus{to{transform:translate(20vw,4vh) scale(.18);opacity:0}}}
/* panel açıkken (datapad vb.) büyük başlık panelin üstüne binmesin */
body:has(#panel:not([hidden])) #banner { visibility: hidden; }   /* display:none animasyonu her açılışta baştan başlatıyordu: başlık girip çıkıp duruyordu (cihat 19.10) */
/* Rex: Sims tarzı baş üstü balon menü (rex.js openRexPanel). Yuvarlak balonlar Rex'in başının üstünde yay çizer. */
#rexMenu, #balon { position: fixed; inset: 0; z-index: 30; }
#rexMenu .rxk, #balon .rxk { position: absolute; left: 0; top: 0; }
#rexMenu .rxb, #balon .rxb { all: unset; box-sizing: border-box; position: absolute; width: 62px; height: 62px; border-radius: 50%; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transform: translate(-50%, -50%) scale(.4); opacity: 0; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), opacity .15s;
  background: radial-gradient(circle at 35% 28%, #46604a, #18241b 72%); border: 2px solid #e9c27a; box-shadow: 0 0 0 2px #000, 0 4px 10px rgba(0, 0, 0, .6); color: #ffeccb; font: 600 11px var(--font); text-shadow: 0 1px 0 #000; text-align: center; line-height: 1.05; padding: 0 6px; }   /* iki satırlık etiket ("Kahve demle", "Akşama kadar") daireden taşmasın: ortala */
#rexMenu .rxb b, #balon .rxb b { font-size: 20px; line-height: 1; }
#rexMenu .rxb.sev, #balon .rxb.sev { border-color: #ff7d96; background: radial-gradient(circle at 35% 28%, #7a3a48, #2a1218 72%); }
#rexMenu .rxb.kp, #balon .rxb.kp { width: 46px; height: 46px; font-size: 9px; }
#rexMenu .rxb.kp b, #balon .rxb.kp b { font-size: 14px; }
#rexMenu.ac .rxb, #balon.ac .rxb { transform: translate(-50%, -50%) scale(1); opacity: 1; }
#rexMenu.ac .rxb:disabled, #balon.ac .rxb:disabled { opacity: .38; cursor: default; }
#rexMenu .rxb:not(:disabled):active, #balon .rxb:not(:disabled):active { transform: translate(-50%, -50%) scale(.92); }
#rexMenu .rxt, #balon .rxt { position: absolute; white-space: nowrap; transform: translate(-50%, -50%); color: #ffe2a8; font: 600 13px var(--font); letter-spacing: .1em; text-shadow: 0 1px 0 #000, 0 0 6px #000; pointer-events: none; }
#balon .rxb small { display: block; white-space: normal; max-width: 50px; text-align: center; font-size: 8px; font-weight: 400; color: #cfe3c8; line-height: 1.05; margin-top: -1px; }   /* 21.11: "günü bitir · kayıt", "eşya koy / al" daireden taşıyordu → daire içinde iki satır */
#balon .rxc { position: absolute; transform: translate(-50%, -50%); width: 120px; height: 12px; background: #1a120c; border: 2px solid #000; box-shadow: 0 0 0 1px #6e4a2a; pointer-events: none; }
#balon .rxc i { position: absolute; left: 0; top: 0; bottom: 0; background: #5bd068; } #balon .rxc b { position: absolute; inset: 0; text-align: center; font: 600 9px/12px var(--font); color: #fff; text-shadow: 0 1px 0 #000; }

/* SAHNE MOTORU (sahne.js): siyah şeritler + Geç; gece sinyali (sinyal.js): yanıp sönen uyarı ve bozuk harfli datapad mesajı */
#sahneBant { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
#sahneBant i { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transition: transform .9s ease; }
#sahneBant i:first-child { top: 0; transform: translateY(-101%); } #sahneBant i:last-child { bottom: 0; transform: translateY(101%); }
#sahneBant.on i { transform: none; }
#sahneGec { position: fixed; right: calc(14px + var(--sr)); bottom: calc(12vh + 8px + var(--sb)); z-index: 19; opacity: .75; }
#dpUyari { position: fixed; left: 50%; top: calc(64px + var(--st, 0px)); transform: translateX(-50%); z-index: 17; pointer-events: none; padding: 5px 14px; font: 700 clamp(13px, 2.6vw, 17px) var(--font); letter-spacing: .16em; color: #ffd3c8; background: rgba(60, 6, 6, .82); border: 1px solid #ff4a3a; text-shadow: 0 0 8px rgba(255, 70, 50, .8); animation: dpYanip .9s steps(2) infinite; }
#dpUyari[hidden], #sinyalMesaj[hidden] { display: none; }
#dpUyari.boss { font-size: clamp(15px, 3vw, 20px); letter-spacing: .22em; background: rgba(90, 4, 4, .9); }
#sinyalMesaj { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 19; pointer-events: none; width: min(520px, 86vw); text-align: center; padding: 10px 16px; font: 500 clamp(15px, 2.6vw, 20px) "Pixelify Sans", monospace; line-height: 1.4; color: #c9fff6; background: rgba(4, 10, 24, .88); border: 1px solid #53e4e4; box-shadow: 0 0 22px rgba(83, 228, 228, .35); text-shadow: 0 0 6px rgba(83, 228, 228, .7); }
/* yeni oyuncu 14.11: sahnede Nora kutusu ekran ortasında konuşma balonlarının üstüne biniyor, uyarı satırı üst şeridin altında kalıyordu.
   Sahne şeridi açıkken kutu alt şeridin hemen üstüne iner (balonlar başların üstünde kalır), uyarı üst şeridin altına iner. */
body:has(#sahneBant.on) #sinyalMesaj { top: auto; bottom: calc(11vh + 12px); transform: translateX(-50%); }
body:has(#sahneBant.on) #dpUyari { top: calc(11vh + 8px); }
#sinyalMesaj small { display: block; margin-bottom: 6px; font-size: .55em; letter-spacing: .2em; color: #ff6a4a; }
.dp-hud.alarm { border-color: #ff4a3a; box-shadow: 0 0 10px rgba(255, 74, 58, .8); animation: dpYanip .45s steps(2) infinite; }
body.sahne #story { display: none; }
body.sahne #toasts { top: calc(11vh + 8px + var(--st)); }   /* ara sahne bandı (11vh) yazıları kesmesin: kalanlar bandın altında; yenileri hud.js'te sahne bitene dek bekler */

@media (pointer: fine) { #prompt { pointer-events: none; } }   /* fareyle ateş ederken alttaki '(E) ...' kutusu tıkı yutup kapı/sandık menüsünü açmasın */

/* ---- SİLAH ÇUBUĞU (25.10.2026): 1 = balta, 2-5 = silahlar. Envanter kutularıyla aynı dil: koyu yeşil zemin, ince çerçeve, seçili sarı. ⇄ ve H düğmelerinin işini görür. */
#hotbar { position: absolute; right: calc(324px + var(--sr)); bottom: calc(14px + var(--sb)); display: flex; gap: 4px; padding: 4px; pointer-events: auto;
  background: rgba(8, 18, 16, .78); border: 2px solid #2c4941; box-shadow: 0 0 0 2px #000; border-radius: 4px; }
#hotbar .hb { all: unset; box-sizing: border-box; position: relative; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  background: #0e1f1b; border: 2px solid #2c4941; border-radius: 3px; }
#hotbar .hb img { max-width: 40px; max-height: 30px; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 #000); }
#hotbar [data-hot-id="bandaj"] img { width: 25px; height: 22px; object-fit: contain; }
#hotbar .hb i { position: absolute; left: 3px; top: 1px; font: 700 11px var(--font); font-style: normal; color: #8da6a4; }
#hotbar .hb b { position: absolute; right: 3px; bottom: 1px; font: 600 11px var(--font); color: var(--fg); text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; }
#hotbar .hb.on { border-color: var(--amber); background: #23301f; box-shadow: inset 0 0 0 1px rgba(240, 176, 74, .35); }
#hotbar .hb.on i { color: var(--amber); }
#hotbar .hb.back img { opacity: .55; }
#hotbar .hb.empty b { color: var(--red); }
#hotbar .hb.nr { border-color: var(--nr); box-shadow: inset 0 0 0 1px var(--nr), 0 0 6px var(--nr); }   /* silah kartı (nadir.js) */
#hotbar .hb.nr:has(img) { position: relative; }
#hotbar .hb.nr[style*="ffb02e"]::before, #hotbar .hb.nr[style*="ff3d6e"]::before { content: '♨'; position: absolute; right: 1px; top: -7px; color: var(--nr); font-size: 14px; animation: kartAlev .7s steps(2) infinite; text-shadow: 0 0 6px var(--nr); }
.slot.nr-efsanevi::after, .slot.nr-mitolojik::after { content: '♨'; position:absolute; right:1px; top:-7px; color:var(--nr); font-size:14px; z-index:2; animation:kartAlev .7s steps(2) infinite; text-shadow:0 0 6px var(--nr); pointer-events:none; }
@keyframes kartAlev { 50% { transform: translateY(-3px) scaleX(.8); filter: brightness(1.4); } }
#hotbar .hb.none { opacity: .35; cursor: default; }
#hotbar .hb.on::after { content: ''; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; background: var(--amber); transform: rotate(45deg); }
#hotbar .hb:focus-visible { outline: 2px solid #f4e2b8; outline-offset: 1px; }
#hotbar .hb:active:not(.none) { transform: scale(.93); }
#bSwap, #bHolster { display: none; }
#handBox { min-width: 150px; max-width: 176px; box-sizing: border-box; } #handBox b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-height: 470px) { #prompt { bottom: calc(74px + var(--sb)); } }   /* yatay: istem çubuğun üstünde */
/* QA 01.11: iç ses altyazısı silah çubuğuna ve (E) kutusuna biniyordu → çubuğun üstünde; (E) kutusu varken onun da üstünde */
@media (max-height: 470px) { #story { bottom: calc(82px + var(--sb)); } body:has(#prompt:not(:empty)) #story { bottom: calc(124px + var(--sb)); } }
@media (max-width: 560px) {
  #hotbar { right: auto; left: calc(10px + var(--sl)); bottom: calc(190px + var(--sb)); gap: 3px; padding: 3px; }
  #hotbar .hb { width: 44px; height: 44px; } #hotbar .hb img { max-width: 36px; max-height: 26px; }
  #handBox { right: auto; left: calc(10px + var(--sl)); bottom: calc(247px + var(--sb)); justify-items: start; }
}
/* sürüm etiketi: her ekranın üstünde, dokunmayı engellemez */
#surum { position: fixed; left: calc(4px + var(--sl)); bottom: calc(2px + var(--sb)); z-index: 9999; pointer-events: none; font: 12px/1.2 'Pixelify Sans', monospace; color: rgba(255, 244, 214, .85); text-shadow: 0 1px 2px #000; white-space: nowrap; }
/* küçük harita (Faz3): sol alt köşe, dokunma almaz → joystick altında çalışır */
#miniMap { position: absolute; left: calc(70px + var(--sl)); bottom: calc(10px + var(--sb)); width: 100px; height: 100px; border-radius: 50%; pointer-events: none; opacity: .88; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
#miniMap[hidden] { display: none; }
/* ★6 Zanaat: eşleşen sonucun büyük görseli + gereken malzeme; tarifler kendi bloğunda (yatay telefonda sağ sütunda kayar) */
.cwrap > .crec { flex: 1 1 100%; min-width: 0; }
.ov .cwrap .ccell.out.big { width: 84px; height: 84px; }
.ov .cwrap .ccell.out.big img { width: 60px; height: 60px; }
.c-out-info { display: grid; gap: 4px; max-width: 210px; text-align: left; }
.c-out-info .c-needs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-height: 500px) and (min-width: 601px) {
  .cwrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 6px 14px; height: calc(100dvh - 128px - var(--st, 0px) - var(--sb, 0px)); }
  .cwrap > .cl { grid-row: 1 / 3; overflow: auto; }
  .cwrap > .cr, .cwrap > .crec { grid-column: 2; min-width: 0; }
  .cwrap > .crec { overflow: auto; min-height: 0; scrollbar-width: thin; }
  .cwrap > .cr > .sub, .cwrap > .crec > .sub { margin: 0 0 4px; }
  .ov .cwrap .ccell { width: 40px; height: 40px; min-height: 40px; }
  .ov .cwrap .ccell img { width: 28px; height: 28px; }
  .ov .cwrap .ccell.out.big { width: 58px; height: 58px; }
  .ov .cwrap .ccell.out.big img { width: 42px; height: 42px; }
  .cgrid { grid-template-columns: repeat(var(--cn, 3), 40px) !important; gap: 3px; margin: 0; }
  .c-recipe-copy small { font-size: 11px; }
  .cwrap .cl .crow { gap: 8px; flex-wrap: nowrap; }
  .cwrap .cl .crow .pbtn { min-height: 40px; padding: 4px 10px; }
  .c-recipes { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 5px; }
  .c-recipe { min-height: 60px; grid-template-columns: 50px 1fr; padding: 4px; gap: 6px; }
  .c-recipe-out { width: 46px; height: 46px; }
  .c-recipe-out img { width: 36px; height: 36px; }
  .cpal { gap: 4px; }
}
/* QA 01.11: üst bar küçük ekranda taşıyordu ("Gün 2 · Gündüz" iki satır; SE'de saat kutusu can barına biniyordu) */
#day { white-space: nowrap; }
@media (max-width: 720px) and (max-height: 470px) {
  #timeBox { gap: 6px; padding: 4px 8px; transform: translateX(calc(-50% + 26px)); }   /* can kutusundan uzaklaş (sağda para kutusuna kadar boşluk var) */
  #ufuk { display: none; }
  #clock { font-size: 18px; }
  #day { font-size: 12px; }
}
/* QA 01.11: uzun başlık ("Hayatın pahasına savaş!") SE'de iki kenardan kesiliyordu */
/* TUM_ISTEKLER 167 (cihat 23.10 → 31.10): dönen gök diski pencerede; eski yay/güneş/yıldız katmanları disk varken gizli (durum verisi aynı) */
#gokDisk { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 3; }
#ufuk:has(#gokDisk) .ufukArc, #ufuk:has(#gokDisk) #ufukBody, #ufuk:has(#gokDisk) #ufukStars, #ufuk:has(#gokDisk) .ufukLine { visibility: hidden; }
#ufuk:has(#gokDisk) { background: #0d0a12; }   /* disk dışındaki köşeler pencere çerçevesi gibi koyu */

/* ===== DOKUNMATİK DÜĞME İKONLARI + KAVİSLİ ETİKET (tus-etiket.js) ===== */
.rb.tus-ik { display: grid; place-items: center; padding: 0; overflow: visible; }
.rb .tus-harf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rb .tus-ikon { width: 68%; height: 68%; background: center / contain no-repeat; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 1px 0 #000a); }
#bRun .tus-ikon { width: 72%; height: 72%; }
#bInv .tus-ikon, #bMap .tus-ikon, #bSkills .tus-ikon { width: 78%; height: 78%; }
.rb .tus-yazi, #bFire .tus-yazi { position: absolute; left: -22%; top: -24%; width: 144%; height: 144%; overflow: visible; pointer-events: none; }
#bFire .tus-yazi text, .rb .tus-yazi text { font: 800 15px var(--font); letter-spacing: 1.2px; fill: #f4ecd0; stroke: #050807; stroke-width: 4px; paint-order: stroke fill; stroke-linejoin: round; }
#bLight.on .tus-yazi text, #bRun.sprint-hint .tus-yazi text { fill: #ffe27a; }
body.tus-yazisiz #bFire .tus-yazi, body.tus-yazisiz .rb .tus-yazi { display: none; }
#pause .set-onay { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#pause .set-onay input { width: 22px; height: 22px; accent-color: #48e4ed; }

/* ===== ATV YAKIT GÖSTERGESİ (vehicles.js yakitHud) ===== */
#yakit { position: absolute; left: calc(10px + var(--sl)); top: calc(70px + var(--st)); width: clamp(110px, 16vw, 150px); display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #2c4941; border-radius: 10px; background: #061a18d9; box-shadow: inset 0 1px 0 #ffffff14; transform: translateY(-140%); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .25s; }
#yakit.on { transform: none; opacity: 1; }
#yakit svg { flex: none; image-rendering: pixelated; }
#yakit .mbar { flex: 1; height: 7px; border-radius: 4px; overflow: hidden; background: #0c2420; }
#yakit .mbar i { display: block; height: 100%; background: linear-gradient(90deg, #e9a23a, #f4d35e); transition: width .3s; }
#yakit b { min-width: 22px; text-align: right; font: 700 12px var(--font); color: #f4ecd0; }
#yakit.az .mbar i { background: #e0473c; } #yakit.az { border-color: #e0473c; animation: yakitAz .7s ease-in-out infinite alternate; }
@keyframes yakitAz { to { box-shadow: 0 0 10px #e0473c99; } }

/* ATV göstergesi iki satır: yakıt + gövde */
#yakit { display: grid; grid-template-columns: 16px 1fr auto; row-gap: 5px; }
#yakit .mbar.yg i { background: linear-gradient(90deg, #7f98a6, #cfe0e8); }
#yakit.hasar .mbar.yg i { background: #e0473c; } #yakit.hasar b.yg { color: #ff8a80; }
#yakit b { min-width: 30px; }

/* ===== MOBİL: etkileşim kutusu gerçek düğme (dokununca etkileşimi yapar; main.js #prompt pointerdown) ===== */
body.touch #prompt { display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; min-height: 44px; border: 1px solid #ebbc61; border-radius: 999px; background: linear-gradient(#143a34f2, #08221ff2); color: #fff4d6; font-weight: 700; text-shadow: 0 1px 0 #000; box-shadow: 0 3px 0 #04110f, 0 0 14px #ebbc6144; }
body.touch #prompt::before { content: ''; flex: none; width: 26px; height: 26px; background: url(../assets/ui/tus_kullan.png) center / contain no-repeat; image-rendering: pixelated; }
body.touch #prompt:empty { display: none; }
#prompt.kilit { color: #e6b3a8; border-color: #7a3a34; } body.touch #prompt.kilit { background: linear-gradient(#3a1d1bd9, #221010d9); border-color: #7a3a34; color: #f1d0c6; box-shadow: none; } body.touch #prompt.kilit::before { background: none; width: 0; } body.touch #prompt.kilit:active { transform: translateX(-50%); filter: none; }   /* 21.11 kilitli kapı: eylem yok, el ikonu yok */
body.touch #prompt:active { transform: translateX(-50%) translateY(2px); box-shadow: 0 1px 0 #04110f; filter: brightness(1.2); }

/* ev canı etiketi (cihat 11.11): barın üstünde düğme yazıları stilinde mini başlık */
#houseBox { overflow: visible; } #houseBox .ev-etiket { position: absolute; left: 8px; top: -9px; font: 800 8px/1 var(--font); letter-spacing: .12em; color: #fff4d6; -webkit-text-stroke: 2px #1a120c; paint-order: stroke fill; text-shadow: 0 1px 0 #000; pointer-events: none; }
body.tus-yazisiz #houseBox .ev-etiket { display: none; }
#invCraft.kilit { opacity: .55; }

/* görev günlüğü: süren işler listesi, izlenen seçilir */
.jr-liste { display: grid; gap: 6px; margin-top: 10px; } .jr-liste > small { color: var(--amber); letter-spacing: .12em; font-size: 11px; }
.jr-is { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; text-align: left; padding: 8px 10px; min-height: 44px; border: 1px solid #2c4941; border-radius: 10px; background: #0b2622cc; color: var(--fg); font: inherit; cursor: pointer; }
.jr-is i { grid-row: 1 / 4; font-style: normal; font-size: 16px; color: #8da6a4; align-self: center; } .jr-is b { font-size: 14px; } .jr-is span { font-size: 12px; opacity: .85; } .jr-is em { font-style: normal; font-size: 10px; letter-spacing: .08em; color: #8da6a4; }
.jr-is.al i { color: #ffd54a; font-weight: bold; } .jr-is.al { border-style: dashed; } .jr-is.al.on { border-style: solid; }
.jr-is.on { border-color: #ebbc61; background: #143a34; } .jr-is.on i { color: #ffd54a; } .jr-is:not(.yan) em { color: #8fe0a0; }

/* ===== ZANAAT EKRANI (11.11 yeniden tasarım): tarif kartları + seçili tarif, cam dili, canlı Üret ===== */
.cwrap.zn { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .85fr); grid-template-rows: minmax(0, 1fr); gap: 12px; align-items: start; }
.cwrap.zn > .crec { grid-column: 1; grid-row: 1; min-width: 0; flex: none; overflow: auto; max-height: min(70vh, 560px); scrollbar-width: thin; }
.cwrap.zn > .cl { grid-column: 2; grid-row: 1; position: relative; display: grid; gap: 8px; justify-items: center; align-content: start; padding: 14px 12px; border: 1px solid #2c4941; border-radius: 16px; background: linear-gradient(#0d2a26e6, #071a17e6); overflow: visible; }
.cwrap.zn .c-recipes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cwrap.zn .c-recipe { border: 1px solid #2c4941; border-radius: 12px; background: #0b2622cc; color: var(--fg); transition: transform .12s, border-color .12s, box-shadow .12s; }
.cwrap.zn .c-recipe:not(:disabled):hover { transform: translateY(-2px); border-color: #ebbc61; background: #123832; }
.cwrap.zn .c-recipe.sec { border-color: #48e4ed; background: #0b302d; box-shadow: 0 0 0 1px #48e4ed55, 0 0 14px #48e4ed33; }
.cwrap.zn .c-recipe-out { border-radius: 10px; border-color: #36503c; background: radial-gradient(circle, #1c4a42, #071a17); }
.cwrap.zn .cneed b { color: #b9ffcf; } .cwrap.zn .cneed.eksik b { color: #ff8a7a; } .cwrap.zn .cneed.eksik img { filter: grayscale(.7); opacity: .7; }
.zn-cikti { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, #1c4a42 0, #0a211e 62%, transparent 64%); }
.zn-cikti.hazir::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #ebbc61aa; animation: znHalka 1.6s ease-in-out infinite; }
@keyframes znHalka { 50% { transform: scale(1.08); opacity: .35; } }
.ov .cwrap.zn .ccell.out.big { width: 84px; height: 84px; border-radius: 14px; border-color: #ebbc61; background: #0a211e; }
.zn-ad { font-size: 17px; text-align: center; }
.zn-liste { display: grid; gap: 4px; width: 100%; }
.zn-ihtiyac { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; background: #0b2622; border: 1px solid #1d3a33; font-size: 14px; }
.zn-ihtiyac img { width: 24px; height: 24px; image-rendering: pixelated; object-fit: contain; } .zn-ihtiyac b { color: #b9ffcf; } .zn-ihtiyac.eksik { border-color: #6a2f28; } .zn-ihtiyac.eksik b { color: #ff8a7a; }
.zn-bos { display: grid; justify-items: center; gap: 8px; padding: 18px 6px; color: var(--muted); text-align: center; } .zn-bos span { font-size: 38px; color: #ebbc61; } .zn-bos b { color: var(--fg); font-size: 17px; } .zn-bos p { margin: 0; font-size: 13px; }
.zn-dugme { width: 100%; display: grid; gap: 6px; } .zn-dugme .pbtn { width: 100%; justify-content: center; min-height: 48px; }
.zn-dugme .pbtn.zn-hazir { animation: znNabiz 1.2s ease-in-out infinite; box-shadow: 0 0 14px #ebbc6166; }
@keyframes znNabiz { 50% { filter: brightness(1.3); box-shadow: 0 0 22px #ebbc61aa; } }   /* boyut değişmez: dokunma hedefi sabit kalır */
.zn-not { margin: 0; font-size: 13px; text-align: center; }
.zn-sag.uretildi .zn-cikti { animation: znUret .9s ease-out; }
@keyframes znUret { 0% { transform: scale(.8); filter: brightness(2.6); } 30% { transform: scale(1.18); filter: brightness(1.7) drop-shadow(0 0 18px #ffe27a); } 100% { transform: none; filter: none; } }
.zn-arti { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 800; color: #fff0b7; text-shadow: 0 1px 0 #000, 0 0 10px #ebbc61; white-space: nowrap; pointer-events: none; animation: znArti .9s ease-out both; z-index: 3; }
@keyframes znArti { 0% { opacity: 0; margin-top: 46px; } 20% { opacity: 1; } 100% { opacity: 0; margin-top: -8px; } }
@media (max-height: 500px) { .cwrap.zn { grid-template-columns: minmax(0, 1.5fr) minmax(180px, .8fr); gap: 8px; } .cwrap.zn > .crec { max-height: calc(100dvh - 120px); } .cwrap.zn > .cl { padding: 8px; gap: 5px; grid-row: 1; }
  .zn-cikti { width: 74px; height: 74px; } .ov .cwrap.zn .ccell.out.big { width: 56px; height: 56px; } .zn-ad { font-size: 14px; } .zn-ihtiyac { font-size: 12px; padding: 2px 6px; } .zn-dugme .pbtn { min-height: 40px; } .cwrap.zn .c-recipes { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 620px) { .cwrap.zn { grid-template-columns: 1fr; } .cwrap.zn > .cl { grid-column: 1; grid-row: 1; } .cwrap.zn > .crec { grid-row: 2; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .cwrap.zn * { animation: none !important; } }

/* zanaat: cam kabuk içinde yerleşim (pencere çerçevesi armory.css .armory-overlay) */
#panel.zanaat-ov #panelCard { width: min(1040px, 96vw); height: min(640px, calc(100dvh - 28px - var(--st) - var(--sb))); }
.cwrap.zn { height: 100%; grid-template-rows: auto minmax(0, 1fr); color: #f4ead2; }
.cwrap.zn > .zn-bas { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: baseline; gap: 10px; padding: 0 100px 6px 2px; border-bottom: 1px solid #2c4941; }
.cwrap.zn > .zn-bas h2 { all: unset; font-size: 22px; font-weight: 700; color: #f4ead2; } .cwrap.zn > .zn-bas small { color: #8da6a4; font-size: 13px; }
/* görev yönergesi şeridi (craft.js rehberHtml): başlığın altında tek satır; sıradaki adım altın, biten yeşil, sağda adet sayacı */
.cwrap.zn > .zn-bas { flex-wrap: wrap; }
.zn-rehber { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13px; color: #8da6a4; }
.zn-rehber > b { color: #ebbc61; }
.zn-rehber > span { padding: 2px 9px; border-radius: 999px; border: 1px solid #2c4941; background: #0b2622; white-space: nowrap; }
.zn-rehber > span.su { border-color: #ffd54a; background: #3a2c10; color: #fff4d6; font-weight: 700; }
.zn-rehber > span.tam { color: #7fbf95; border-color: #2f6a4a; }
.zn-rehber > em { font-style: normal; font-weight: 700; color: #b9ffcf; white-space: nowrap; }
@media (max-height: 500px) { .zn-rehber { margin-top: 2px; gap: 2px 6px; font-size: 12px; } .zn-rehber > span { padding: 1px 7px; } }
.cwrap.zn > .crec { grid-row: 2; max-height: none; height: 100%; padding-right: 4px; } .cwrap.zn > .cl { grid-row: 2; }
.cwrap.zn .sub { all: unset; display: block; margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: #8da6a4; text-transform: uppercase; }
.ov .cwrap.zn .pbtn { border: 1px solid #2f5248; border-image: none; border-radius: 12px; background: #0b2622; color: #e6efe4; box-shadow: none; text-shadow: none; font-weight: 700; }
.ov .cwrap.zn .pbtn.good { border-color: #ebbc61; background: linear-gradient(#8a5a1e, #5d3a12); color: #fff4d6; }
.ov .cwrap.zn .pbtn:disabled { border-color: #2c4941; background: #0b2622; color: #8da6a4; opacity: 1; }
@media (max-height: 500px) { .cwrap.zn > .zn-bas { padding-bottom: 3px; } .cwrap.zn > .zn-bas h2 { font-size: 17px; } .cwrap.zn > .cl { grid-row: 2; } .cwrap.zn > .crec { max-height: none; } }
@media (max-width: 620px) { .cwrap.zn { grid-template-rows: auto auto minmax(0, 1fr); } .cwrap.zn > .cl { grid-row: 2; } .cwrap.zn > .crec { grid-row: 3; } }

/* büyük eşya ikonları (assets/ui/esya_*.png) küçültülürken yumuşak ölçeklenir: 96 px çizim 40 px kutuda tırtıklanmasın */
img[src*="assets/ui/esya_"] { image-rendering: auto !important; }

/* zanaat: taret kartları bölümü */
.cwrap.zn .zn-ara { margin-top: 12px; }
.cwrap.zn .zn-taret .c-recipe-out img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
/* ===== GÜNLÜK (12.11): cam kabuk (armory.css .armory-overlay); ahşap sekme/kare çerçeve yok, iş listesi sütunlara bölünür ===== */
#panel.gunluk-ov #panelBody { display: flex; flex-direction: column; gap: 10px; overflow: hidden auto; }
#panel.gunluk-ov .ptabs { display: flex; gap: 6px; padding: 0 110px 0 0; margin: 0; border: 0; border-image: none; background: none; }
#panel.gunluk-ov .ptab { min-height: 38px; padding: 7px 13px; margin: 0; border: 1px solid #2f5248; border-image: none; border-radius: 10px; background: #0b2622cc; color: #e6efe4; font: 600 13px var(--font); box-shadow: none; text-shadow: none; }
#panel.gunluk-ov .ptab.on { border-color: #48e4ed; background: #0f3a3a; color: #fff; }
#panel.gunluk-ov .jr-next { padding: 10px 14px; border: 1px solid #ebbc61; border-image: none; border-radius: 12px; background: rgba(235, 188, 97, .08); box-shadow: none; }
#panel.gunluk-ov .jr-liste { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 0; } #panel.gunluk-ov .jr-liste > small { grid-column: 1 / -1; }
#panel.gunluk-ov .jr-map { border: 1px solid #2c4941; border-image: none; border-radius: 12px; width: auto; max-width: 100%; max-height: calc(100% - 100px); margin: 0 auto; }
#panel.gunluk-ov .jr-stats div { border: 1px solid #2c4941; border-image: none; border-radius: 10px; background: #0b2622cc; box-shadow: none; }
/* Nora'nın gece sinyali ve datapad uyarısı açık bir pencerenin (duraklatma, envanter, panel) üstüne binmez (cihat 12.11) */
body:has(.ov:not([hidden])) #sinyalMesaj, body:has(.ov:not([hidden])) #dpUyari { visibility: hidden; }
body:has(#panel:not([hidden])) #kupa { visibility: hidden; }   /* yeni oyuncu 14.11: kart açılışı açık panelin (datapad) üstüne biniyordu */

/* KAYIT YUVALARI + menüden Ayarlar (cihat 13.11) */
.kayit-yuva { display: grid; gap: 5px; margin: 8px 0; text-align: left; }
.kayit-yuva h3 { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; color: var(--amber); }
.kayit-yuva .yuva { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #ffffff1c; border-radius: 6px; background: #ffffff0a; }
.kayit-yuva .yuva > span { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kayit-yuva .yuva > span b { color: var(--amber); margin-right: 4px; } .kayit-yuva .yuva i { opacity: .55; }
.kayit-yuva .btn { flex: 0 0 auto; min-height: 30px; padding: 3px 10px; font-size: 12px; } .kayit-yuva .btn:disabled { opacity: .35; }
.kayit-yuva #yuvaNot { margin: 2px 0 0; min-height: 1.2em; }
#pause.yalniz-ayar { z-index: 60; } #pause.yalniz-ayar h2, #pause.yalniz-ayar .pause-sira, #pause.yalniz-ayar .card > p.muted { display: none; }

/* DURAKLATMA / AYARLAR PENCERESİ CAM DİLİNDE (cihat: ahşap çerçeve yok, Geliştir ekranındaki cam; 13.11 ekran görüntüsünde hâlâ ahşaptı). */
#pause .card { width: min(520px, calc(100vw - 24px)); box-sizing: border-box; border: 1px solid #2c4941; border-image: none; border-radius: 14px; padding: 14px 16px;
  background: linear-gradient(#0a2420f2, #061a18f2); box-shadow: inset 0 1px 0 #ffffff14, 0 14px 44px #000c; image-rendering: auto; scrollbar-width: none; }
#pause .card::-webkit-scrollbar { display: none; }
#pause .card h2 { border: 0; border-image: none; padding: 0; margin: 0 0 4px; font-size: 20px; color: #e9f4ee; text-shadow: none; }
#pause .set label { grid-template-columns: 1fr minmax(120px, 190px); font-size: 14px; color: #cfe0d8; }
#pause .set input[type=range], #pause .set input[type=checkbox] { accent-color: #48e4ed; }
#pause .btn, #pause .big { border: 1px solid #2f5248; border-image: none; border-radius: 10px; background: linear-gradient(#123a33, #0c2a25); color: #e9f4ee; box-shadow: inset 0 1px 0 #ffffff1a; image-rendering: auto; min-height: 40px; padding: 6px 12px; }
#pause .btn:hover, #pause .big:hover { border-color: #48e4ed; filter: brightness(1.12); }
#pause .big { width: 100%; font-size: 16px; border-color: #48e4ed; background: linear-gradient(#17564f, #0f3a35); }
#pause .btn:disabled { opacity: .35; }
#pause .kayit-yuva .yuva { flex-wrap: wrap; border-color: #2c4941; background: #ffffff08; }
#pause .kayit-yuva .yuva > span { flex: 1 1 200px; color: #cfe0d8; } #pause .kayit-yuva .yuva > span b, #pause .kayit-yuva h3 { color: #48e4ed; }
#pause .kayit-yuva .btn { min-height: 32px; }
#pause .big, #pause .btn { box-sizing: border-box; } #pause .big { display: block; margin: 0; }

/* ESC MENÜSÜ (cihat 13.11): ortada alt alta düğmeler; Kaydet / Yükle / Ayarlar ayrı sayfa; Ayarlar'da Ses · Grafik · Kontroller sekmeleri */
#pause .card.esc { width: min(420px, calc(100vw - 24px)); padding: 20px 22px; display: block; }
#pause[data-sayfa="ayarlar"] .card.esc, #pause[data-sayfa="kaydet"] .card.esc, #pause[data-sayfa="yukle"] .card.esc { width: min(520px, calc(100vw - 24px)); }
#pause .esc section { display: grid; gap: 12px; } #pause .esc section[hidden] { display: none; }
#pause .esc h2 { text-align: center; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
#pause .esc-liste { display: grid; gap: 9px; } #pause .esc-liste .btn, #pause .esc-liste .big { width: 100%; min-height: 46px; font-size: 16px; text-align: center; }
#pause .esc-sekme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } #pause .esc-sekme .btn { min-height: 38px; }
#pause .esc-sekme .btn.on { border-color: #48e4ed; background: linear-gradient(#17564f, #0f3a35); color: #fff; }
#pause .esc .set { min-height: 150px; align-content: start; gap: 12px; padding: 6px 2px; } #pause .esc .set[hidden] { display: none; }
#pause .esc-tus { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 0; font-size: 13px; color: #cfe0d8; }
#pause .esc-tus dt { color: #48e4ed; font-weight: 700; white-space: nowrap; } #pause .esc-tus dd { margin: 0; }
#pause .esc-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } #pause .esc-geri { min-height: 42px; }
#pause .kayit-yuva { gap: 8px; margin: 0; }
#pause .kayit-yuva .btn.yuva { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: left; }
#pause .kayit-yuva .btn.yuva b { color: #48e4ed; } #pause .kayit-yuva .btn.yuva span { min-width: 0; font-size: 13px; color: #cfe0d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pause .kayit-yuva .btn.yuva i { font-style: normal; font-size: 12px; color: #9fd8d2; } #pause .kayit-yuva .btn.yuva.sor { border-color: #ffd36a; } #pause .kayit-yuva .btn.yuva.sor i { color: #ffd36a; }
#pause .kayit-yuva [data-yuva-not] { margin: 0; min-height: 1.2em; text-align: center; }
@media (max-height: 430px) { #pause .card.esc { padding: 10px 16px; } #pause .esc section { gap: 6px; } #pause .esc-liste { grid-template-columns: 1fr 1fr; gap: 6px; } #pause .esc-liste .big { grid-column: 1 / -1; } #pause .esc-liste .btn, #pause .esc-liste .big { min-height: 38px; font-size: 14px; } #pause .esc h2 { font-size: 16px; margin: 0; } #pause .esc .set { min-height: 0; gap: 6px; } #pause .esc-tus { grid-template-columns: auto 1fr auto 1fr; font-size: 11px; } #pause .kayit-yuva .btn.yuva { min-height: 40px; padding: 4px 10px; } }
#pause { z-index: 60; }   /* ana menüden açılınca menünün üstünde dursun */
#pause .esc h2 { justify-self: center; margin-right: 0; } #pause .esc-sekme .btn, #pause .esc-alt .btn, #pause .esc .esc-geri { width: 100%; justify-self: stretch; text-align: center; }

/* ZANAAT SAYFALAMA (13.11, kaydırmasız düzen): tarif listesi kaydırılmaz; alttaki ‹ 1 / 3 › çubuğuyla gezilir (craft.js sayfala) */
.cwrap.zn > .crec { overflow: hidden; display: flex; flex-direction: column; padding-right: 0; }
.cwrap.zn > .crec > * { flex: 0 0 auto; } .cwrap.zn [hidden] { display: none !important; }
.zn-sayfa { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #c9d8c4; font-size: 15px; }
.zn-sayfa button { all: unset; box-sizing: border-box; width: 56px; height: 40px; display: grid; place-items: center; border: 1px solid #2f5248; border-radius: 12px; background: #0b2622; color: #f4ead2; font-size: 24px; cursor: pointer; }
.zn-sayfa button:not(:disabled):hover { border-color: #ebbc61; background: #123832; } .zn-sayfa button:disabled { opacity: .35; cursor: default; }
.zn-sayfa span { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-height: 500px) { .zn-sayfa { padding-top: 4px; gap: 10px; } .zn-sayfa button { height: 32px; width: 48px; font-size: 20px; } }

/* ORTAK SAYFA ÇUBUĞU (sayfala.js, 13.11): kaydırma çubuğu yerine ‹ 1 / 3 › */
.sayfali { overflow: hidden !important; } .sayfali > [hidden] { display: none !important; } .sayfali [hidden] { display: none !important; }
.sayfa-cubuk { grid-column: 1 / -1; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 2px; color: #c9d8c4; font-size: 13px; }
.sayfa-cubuk[hidden] { display: none !important; }
.sayfa-cubuk button { all: unset; box-sizing: border-box; min-width: 44px; height: 30px; display: grid; place-items: center; border: 1px solid #48604b; background: #061a18; color: #f4ead2; font-size: 20px; cursor: pointer; }
.sayfa-cubuk button:disabled { opacity: .35; cursor: default; } .sayfa-cubuk span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

/* BÖLGE TEMİZLİĞİ SAYACI (temizlik.js, 13.11): sağ üstte görev kutusunun altında; dokununca sarı ok bölgeyi gösterir. Sayı değişince bir kez vurur. */
#temizlikSayac { position: fixed; z-index: 21; right: calc(14px + var(--sr, 0px)); top: calc(206px + var(--st, 0px)); padding: 7px 12px; border: 2px solid #c0603a; background: rgba(20, 10, 8, .9); color: #ffd9b8; font: 600 15px/1.1 "Pixelify Sans", monospace; cursor: pointer; box-shadow: 0 0 10px rgba(192, 96, 58, .45); animation: tmzNabiz 2.2s ease-in-out infinite; }
#temizlikSayac[hidden] { display: none; }
#temizlikSayac.secili { border-color: #ffd54a; color: #ffe27a; box-shadow: 0 0 12px rgba(255, 213, 74, .6); }
#temizlikSayac.vur { animation: tmzVur .35s ease-out, tmzNabiz 2.2s ease-in-out .35s infinite; }
@keyframes tmzNabiz { 0%, 100% { box-shadow: 0 0 6px rgba(192, 96, 58, .35); } 50% { box-shadow: 0 0 14px rgba(255, 130, 80, .7); } }
@keyframes tmzVur { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-height: 500px) { #temizlikSayac { top: calc(128px + var(--st, 0px)); font-size: 12px; padding: 4px 8px; } }
@media (prefers-reduced-motion: reduce) { #temizlikSayac, #temizlikSayac.vur { animation: none; } }

/* ELDE TUTULAN KÂĞIT (forage.js kagitAc, 13.11): el + kâğıt görseli ekranın ortasında, yazı kâğıdın boş alanında */
#kagit { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(4, 6, 8, .72); cursor: pointer; outline: 0; }
#kagit .kg-sahne { position: relative; height: min(96dvh, 150vw); aspect-ratio: 2 / 3; container-type: size; animation: kgGel .32s cubic-bezier(.2, .9, .3, 1.1) both; transform-origin: 20% 100%; }
#kagit .kg-sahne img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); pointer-events: none; }
#kagit .kg-yazi { position: absolute; overflow: hidden; font: 500 4.5cqw/1.36 "Pixelify Sans", monospace; text-align: left; }
#kagit .kg-yazi b { display: block; margin-bottom: 2.2cqw; padding-bottom: 1.2cqw; border-bottom: .35cqw solid currentColor; font-size: 1.08em; letter-spacing: .04em; opacity: .9; }
#kagit .kg-yazi p { margin: 0; white-space: pre-line; }
#kagit .kg-p0 { float: left; width: 0; } #kagit .kg-p1 { float: left; clear: left; }   /* başparmak boşluğu (forage.js parmak) */
#kagit .kg-bas { position: absolute; display: grid; place-items: center start; padding-left: 2cqw; font: 600 3.4cqw/1 "Pixelify Sans", monospace; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
#kagit .kg-kanli .kg-yazi { transform: rotate(-.6deg); } #kagit .kg-yanik .kg-yazi { transform: rotate(.5deg); }
#kagit .kg-ipucu { position: absolute; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); right: 16px; color: #c9d8c4; font: 13px "Pixelify Sans", monospace; opacity: .7; }
@keyframes kgGel { from { transform: translateY(26%) rotate(-7deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #kagit .kg-sahne { animation: none; } }
#kagit { place-items: end center; } #kagit .kg-sahne { height: min(100dvh, 150vw); }   /* kol ekranın alt kenarından çıkar (havada kesilmez) */
/* 16.11 (Cihat madde 5): görselde kol, görselin SOL kenarına y≈%87'de değiyor; ekranda bu dikey kesik çizgi gibi görünüyordu. Görsel biraz yakın (%118):
   alt kenarın %15'i ekranın altında kalır, kol yalnız ekranın alt kenarından doğal çıkar. Beş kâğıt görselinde el aynı yerde. */
#kagit { place-items: start center; overflow: hidden; } #kagit .kg-sahne { height: min(118dvh, 177vw); margin-top: -1dvh; }

/* ÜRETİM EKRANI CANLANDIRMASI (cihat 14.11: "daha animasyonlu nasıl olur"): açılışta kartlar sırayla belirir, seçili kartta ışık gezer,
   hazır düğmede parıltı kayar; üretince çekiç iner, kıvılcım saçılır, ürün zıplar, harcanan malzeme satırı yanıp söner. */
.cwrap.zn .c-recipe { transition: transform .12s ease-out, border-color .15s, box-shadow .15s, background-color .15s; }
.cwrap.zn .c-recipe:not([disabled]):hover { transform: translateY(-2px); border-color: #6fd6c6; }
.cwrap.zn .c-recipe:active { transform: scale(.97); }
.cwrap.zn.zn-giris .c-recipe { animation: znGiris .38s cubic-bezier(.2, .9, .3, 1.2) both; }
.cwrap.zn.zn-giris .c-recipe:nth-child(2) { animation-delay: .03s; } .cwrap.zn.zn-giris .c-recipe:nth-child(3) { animation-delay: .06s; } .cwrap.zn.zn-giris .c-recipe:nth-child(4) { animation-delay: .09s; } .cwrap.zn.zn-giris .c-recipe:nth-child(5) { animation-delay: .12s; }
.cwrap.zn.zn-giris .c-recipe:nth-child(6) { animation-delay: .15s; } .cwrap.zn.zn-giris .c-recipe:nth-child(7) { animation-delay: .18s; } .cwrap.zn.zn-giris .c-recipe:nth-child(8) { animation-delay: .21s; } .cwrap.zn.zn-giris .c-recipe:nth-child(9) { animation-delay: .24s; }
.cwrap.zn.zn-giris .c-recipe:nth-child(n+10) { animation-delay: .27s; } .cwrap.zn.zn-giris > .cl { animation: znSag .45s cubic-bezier(.2, .9, .3, 1) .08s both; }
@keyframes znGiris { 0% { opacity: 0; transform: translateY(14px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes znSag { 0% { opacity: 0; transform: translateX(22px); } 100% { opacity: 1; transform: none; } }
.cwrap.zn .c-recipe.sec { position: relative; overflow: hidden; }
.cwrap.zn .c-recipe.sec::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, #9ff7ee2e, transparent); animation: znGez 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes znGez { 0%, 55% { left: -40%; } 100% { left: 120%; } }
.zn-dugme .pbtn.zn-hazir { position: relative; overflow: hidden; }
.zn-dugme .pbtn.zn-hazir::after { content: ''; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; background: linear-gradient(100deg, transparent, #fff6c855, transparent); animation: znGez 1.9s ease-in-out infinite; pointer-events: none; }
.zn-cikti img { animation: znSalin 3.2s ease-in-out infinite; } @keyframes znSalin { 50% { transform: translateY(-3px); } }
.zn-sag { position: relative; }
.zn-sag.uretildi .zn-cikti { animation: znUret .9s cubic-bezier(.2, 1.5, .4, 1); }
.zn-sag.uretildi .zn-cikti::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid #ffe27a; animation: znDalga .7s ease-out .22s both; pointer-events: none; }
@keyframes znDalga { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(1.7); opacity: 0; } }
.zn-cekic { position: absolute; left: 50%; top: 4px; width: 46px; height: auto; margin-left: 18px; image-rendering: pixelated; transform-origin: 20% 90%; pointer-events: none; animation: znCekic .62s cubic-bezier(.5, 0, .9, .4) both; filter: drop-shadow(0 0 8px #ffb02e); }
@keyframes znCekic { 0% { transform: rotate(48deg) translateY(-26px); opacity: 0; } 18% { opacity: 1; } 42% { transform: rotate(-38deg) translateY(10px); opacity: 1; } 52% { transform: rotate(-30deg) translateY(6px); } 100% { transform: rotate(30deg) translateY(-22px); opacity: 0; } }
.zn-kivilcim { position: absolute; left: 50%; top: 66px; width: 0; height: 0; pointer-events: none; }
.zn-kivilcim i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: #ffe27a; box-shadow: 0 0 6px #ffb02e; opacity: 0; animation: znKiv .6s ease-out .24s both; }
.zn-kivilcim i:nth-child(1) { --kx: -64px; --ky: -38px; } .zn-kivilcim i:nth-child(2) { --kx: 58px; --ky: -46px; } .zn-kivilcim i:nth-child(3) { --kx: -78px; --ky: 8px; } .zn-kivilcim i:nth-child(4) { --kx: 80px; --ky: 4px; } .zn-kivilcim i:nth-child(5) { --kx: -40px; --ky: -70px; }
.zn-kivilcim i:nth-child(6) { --kx: 36px; --ky: -74px; } .zn-kivilcim i:nth-child(7) { --kx: -54px; --ky: 40px; } .zn-kivilcim i:nth-child(8) { --kx: 56px; --ky: 38px; } .zn-kivilcim i:nth-child(9) { --kx: -8px; --ky: -86px; background: #fff; } .zn-kivilcim i:nth-child(10) { --kx: 10px; --ky: 56px; background: #ff8a3a; }
@keyframes znKiv { 0% { transform: translate(0, 0) scale(1.4); opacity: 1; } 100% { transform: translate(var(--kx), calc(var(--ky) + 18px)) scale(.3); opacity: 0; } }
.zn-sag.uretildi .zn-ihtiyac { animation: znHarca .5s ease-out .2s; } @keyframes znHarca { 0% { background: #5a3a12; border-color: #ffb02e; transform: translateX(-3px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cwrap.zn *, .cwrap.zn *::after { animation: none !important; transition: none !important; } }

/* DÜĞME ÖĞRETİCİSİ (tus-ogretici.js): hiç basılmamış sol düğme hafifçe parlar; ilk basışta yanında bir kez açıklama balonu çıkar */
.rb.tus-yeni { animation: tusYeni 1.8s ease-in-out infinite; }
@keyframes tusYeni { 0%, 100% { box-shadow: 0 0 0 0 #ffd54a00; } 50% { box-shadow: 0 0 0 3px #ffd54a88, 0 0 14px #ffd54a66; } }
#tusBalon { position: fixed; z-index: 60; display: grid; gap: 2px; padding: 8px 12px; border: 1px solid #ffd54a; border-radius: 8px; background: #0b1a17f2; color: #e8e2c8; font: 14px/1.25 var(--font, monospace); box-shadow: 0 6px 0 #0007, 0 0 14px #ffd54a44; pointer-events: none; }
#tusBalon[hidden] { display: none; } #tusBalon b { color: #ffe27a; font-weight: 700; font-size: 15px; } #tusBalon span { color: #cfe0d6; }
#tusBalon.ac { animation: tusBalon 4.2s ease-out both; } @keyframes tusBalon { 0% { opacity: 0; transform: translateX(-8px) scale(.9); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }
#tusBalon.sag.ac { animation-name: tusBalonSag; } @keyframes tusBalonSag { 0% { opacity: 0; transform: translateX(8px) scale(.9); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rb.tus-yeni, #tusBalon.ac { animation: none; } }
/* BIÇAK DERSİ (cihat 14.11, bicak-ders.js): ekran yumuşakça kararır; karartı, 1 numaralı yuvanın üstündeki pencerenin dev gölgesidir, yuva aydınlık ve nabızlı kalır */
#bicakDers { position: fixed; inset: 0; z-index: 40; opacity: 0; pointer-events: none; overflow: hidden; transition: opacity .45s ease; }
#bicakDers[hidden] { display: none; } #bicakDers.on { opacity: 1; pointer-events: auto; }
body:has(#bicakDers.on) #tusBalon { display: none; }   /* tuş balonu (z 60) karartının üstünde kalmasın */
#bicakDers .delik { position: fixed; box-sizing: border-box; border: 2px solid #ffd54a; border-radius: 9px; box-shadow: 0 0 16px 3px #ffd54acc, 0 0 0 200vmax rgba(2, 6, 5, .66); animation: bicakNabiz .75s ease-in-out infinite alternate; }
@keyframes bicakNabiz { from { box-shadow: 0 0 5px 1px #ffd54a77, 0 0 0 200vmax rgba(2, 6, 5, .66); } to { box-shadow: 0 0 24px 7px #ffd54a, 0 0 0 200vmax rgba(2, 6, 5, .66); } }
#bicakDers p { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); margin: 0; width: min(92vw, 720px); display: grid; gap: 10px; justify-items: center; text-align: center; pointer-events: none; }
#bicakDers b { font: 700 clamp(26px, 5vw, 46px) var(--font); letter-spacing: .06em; color: #ffe9b0; text-shadow: 0 3px 0 #000, 0 0 18px #000; }
#bicakDers span { font: 600 clamp(15px, 2.2vw, 20px) var(--font); color: #ffd54a; text-shadow: 0 2px 0 #000; }
@media (prefers-reduced-motion: reduce) { #bicakDers .delik { animation: none; } }
/* SOL SÜTUN YENİ İKONLAR (15.11, tools/sol_tus_ikon.py, 128 px yüksek çözünürlük): yumuşak küçültme, biraz daha büyük; tezgâhın eski SVG çekici gizli */
#bInv .tus-ikon, #bMap .tus-ikon, #bSkills .tus-ikon, #bArmory .tus-ikon { image-rendering: auto; width: 80%; height: 80%; filter: drop-shadow(0 2px 0 #000b); }
#bArmory.tus-ik > svg { display: none; }
/* RUH YETENEK DÜĞMELERİ (Cihat 15.11): sol sütuna (Geliştir/tezgâh üstüne) değil, sağda saldırı kümesinde — DOLDUR'un solunda aynı sıra.
   İkon + kavisli kısa yazı tus-etiket.js'ten; #bRuhKalkan'ın halkası bekleme/açık kalma süresini, ortadaki sayı kalan saniyeyi gösterir.
   Klavye: F kalkan, V silah/büyü (Ayarlar → Kontroller listesinde). */
#controls .ruh-tus { left: auto; top: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(38, 25, 59, .82); border-color: #9b7ae0; color: #ddceff; bottom: calc(136px + var(--sb)); }
#controls #bRuhKalkan { right: calc(216px + var(--sr)); }
#controls #bAgirCekim { right: calc(348px + var(--sr)); }   /* ağır çekim (17.11): BÜYÜ'nün solunda, aynı sırada */
#controls #bSoul { right: calc(282px + var(--sr)); border-color: #4fb8ad; background: rgba(14, 40, 44, .82); }
#controls #bSoul[aria-pressed="true"] { border-color: #8ff2e8; box-shadow: 0 0 12px rgba(120, 240, 225, .55); }
#controls .ruh-tus[hidden] { display: none; }
.ruh-tus .ruh-halka { position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(var(--halka, #c4a7ff) calc(var(--k, 0) * 1turn), rgba(0, 0, 0, .45) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
#bRuhKalkan.bekliyor .ruh-halka, #bRuhKalkan.acik .ruh-halka { opacity: 1; }
#bRuhKalkan.acik { --halka: #8ff2e8; border-color: #c4a7ff; box-shadow: 0 0 14px rgba(160, 120, 255, .7); }
#bRuhKalkan.bekliyor { border-color: #5a4a70; }
#bRuhKalkan.bekliyor .tus-ikon { filter: grayscale(.85) brightness(.55); }
.ruh-tus .ruh-sn { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; font: 800 19px system-ui, "Segoe UI", Arial, sans-serif; color: #fff;   /* Pixelify "3"ü küçükte "8"e benziyor */ text-shadow: 0 2px 0 #000, 0 0 5px #000, 0 0 2px #000; }
.ruh-tus .ruh-sn:empty { display: none; }
#bAgirCekim.bekliyor .ruh-halka, #bAgirCekim.acik .ruh-halka { opacity: 1; }
#bAgirCekim.acik { --halka: #8ff2e8; border-color: #c4a7ff; box-shadow: 0 0 14px rgba(160, 120, 255, .7); }
#bAgirCekim.bekliyor { border-color: #5a4a70; }
#bAgirCekim.bekliyor .tus-ikon { filter: grayscale(.85) brightness(.55); }
#bAgirCekim.acik .ruh-sn, #bAgirCekim.bekliyor .ruh-sn, #bRuhKalkan.acik .ruh-sn, #bRuhKalkan.bekliyor .ruh-sn { font-size: 13px; top: auto; bottom: -3px; height: 16px; color: #bffff6; }
#bAgirCekim.bekliyor .ruh-sn, #bRuhKalkan.bekliyor .ruh-sn { left: 50%; right: auto; transform: translateX(-50%); min-width: 22px; padding: 0 3px; border-radius: 8px; background: #160f22e6; border: 1px solid #5a4a70; color: #e6dcff; font-size: 12px; line-height: 14px; }   /* bekleme saniyesi altta küçük rozet: gri ikon görünür kalır (denetim 16.11) */
/* fareli ekranda tuş harfi köşede (dokunmatikte yok) */
body:not(.touch) .ruh-tus::after { content: attr(data-klavye); position: absolute; right: -5px; bottom: -5px; min-width: 16px; height: 16px; border-radius: 4px; background: #111; border: 1px solid #9b7ae0; font: 700 11px/16px var(--font); color: #ddceff; text-align: center; }
body:not(.touch) .ruh-tus { opacity: .85; }
/* dar yatay telefon (≤760 px, ör. 667×375, 740×360): ruh düğmeleri yine DOLDUR'un solunda, aynı sırada ama biraz küçük (46 px) → Jack'e (ekran ortası) yaklaşmaz.
   Eski yerleri (KULLAN/FENER'in üstü) kısa ekranda görev kutusuna biniyordu, kalkan halkası KULLAN yazısını kesiyordu (denetim 16.11). */
@media (max-width: 760px) { #controls .ruh-tus { width: 46px; height: 46px; bottom: calc(139px + var(--sb)); } #controls #bRuhKalkan { right: calc(210px + var(--sr)); } #controls #bSoul { right: calc(262px + var(--sr)); } #controls #bAgirCekim { right: calc(314px + var(--sr)); } }
/* 21.11 yeni oyuncu turu: BOMBA ekranın ortasına yakın, sahnenin üstündeydi → sağ alttaki kümeye, eski ⇄ (bSwap, gizli) yerine indi: DOLDUR/KULLAN'ın altı, ateşin solu, silah kutusunun üstü (46 px; 844×390 ve 1280×720'de ölçüldü, çakışma yok).
   Eski not: kısa yatay ekran (≤460 px yükseklik: 360–430 telefonlar): görev kutusu sağ üstte aşağı uzar, BOMBA (sağ 150, alt 196) onun altına giriyordu → BOMBA iki ruh düğmesinin üstüne,
   görev kutusunun solunda kalan boşluğa geçer; kutu o boşluğa kadar daralır, görev yazısı en çok 3 satır (alttaki DOLDUR/KULLAN/FENER yazılarına inmesin) */
@media (max-height: 460px) {
  #questBox { max-width: 187px; }
  #questGoal { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
@media (max-height: 460px) and (max-width: 760px) { #questBox { max-width: 171px; } }
body.son-yolda #bGunAtla { display: none !important; }   /* 2. son yürüyüşü (final.js): gün atlanmaz */
body:not(.devgoster):has(#controls:not([hidden])) #surum { visibility: hidden; }   /* oyun içinde sürüm yazısı mini harita/KOŞ düğmesine binmesin: yalnız menüde ve #dev'de görünür (20.11) */
body:has(#finalTuval) #surum, body:has(#jenerikTuval) #surum { visibility: hidden; }   /* sinematik sonlarda sürüm etiketi görünmez (16.11) */
body:has(#panel:not([hidden])) #tusBalon, body:has(#inv:not([hidden])) #tusBalon, body:has(.dp-kok) #tusBalon { display: none !important; }   /* 16.11 Cihat: öğretici balonu açılan pencerenin üstüne binip tarifi örtüyordu */
/* KAMERA AKSİYONU — boss giriş kartı (kamera-aksiyon.js, Cihat 17.11): sinemaskop bantlar, arkada portre, isim ortada (soldaki HUD ikonlarına binmesin) */
.kamera-kart{position:fixed;inset:0;z-index:900;pointer-events:none;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(transparent 0 13%,#0006 13% 87%,transparent 87%);animation:kkGir .35s ease-out both}
.kamera-kart::before,.kamera-kart::after{content:'';position:absolute;left:0;right:0;height:13%;background:#000;animation:kkBant .35s ease-out both}
.kamera-kart::before{top:0}.kamera-kart::after{bottom:0}
.kamera-kart img{position:absolute;inset:13% 0 13% 0;width:100%;height:74%;object-fit:cover;image-rendering:pixelated;opacity:.92;animation:kkYaklas 1.8s ease-out both}
.kamera-kart .kk-yazi{position:relative;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;text-shadow:0 3px 0 #000,0 0 18px #000;animation:kkYazi .5s .15s ease-out both}
.kamera-kart small{font:700 clamp(14px,2.2vw,22px)/1 "Pixelify Sans",monospace;letter-spacing:.3em;color:#ff6a5a}
.kamera-kart b{font:700 clamp(34px,6vw,72px)/1 "Pixelify Sans",monospace;color:#f4ecd2}
.kamera-kart span{max-width:70vw;font:500 clamp(13px,1.8vw,19px)/1.3 "Pixelify Sans",monospace;color:#d8cfb4}
.kamera-kart.kapan{animation:kkCik .25s ease-in both}
@keyframes kkGir{from{opacity:0}to{opacity:1}}@keyframes kkCik{to{opacity:0}}
@keyframes kkBant{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes kkYaklas{from{transform:scale(1.12)}to{transform:scale(1)}}
@keyframes kkYazi{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.kamera-kart,.kamera-kart *,.kamera-kart::before,.kamera-kart::after{animation:none}}
#story.bekle { opacity: 0 !important; }
/* SABAH GÜN BAŞLIĞI (gun-baslik.js): ekranın ortasında büyük "N. GÜN" + günün sözü; sonra #timeBox'a uçar. Dokunmayı engellemez. */
#gunBaslik { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 28; pointer-events: none; text-align: center; width: min(90vw, 760px); display: grid; gap: .5em; justify-items: center; }
#gunBaslik b { font: 700 clamp(40px, 9vw, 104px)/1 var(--font); letter-spacing: .22em; padding-left: .22em; color: #f6ecd0; text-shadow: 0 4px 0 #000, 0 0 34px rgba(0, 0, 0, .85); white-space: nowrap; }
#gunBaslik small { font: italic 400 clamp(17px, 2.6vw, 28px)/1.3 var(--font); color: #efe3c4; text-shadow: 0 2px 0 #000, 0 0 16px #000; }
@media (max-height: 470px) { #gunBaslik { top: 40%; } #gunBaslik b { font-size: clamp(34px, 12vh, 64px); } #gunBaslik small { font-size: clamp(15px, 4.6vh, 20px); } }
#timeBox.gunPop { animation: gunPop .55s ease-out; }
@keyframes gunPop { 0% { box-shadow: 0 0 0 0 rgba(246, 236, 208, .9); transform-origin: center; } 40% { filter: brightness(1.5); } 100% { box-shadow: 0 0 0 14px rgba(246, 236, 208, 0); filter: none; } }
