/* Oyun içi tanıtım (astron2.com/tanitim ve /ruya/tanitim ortak görünüm; Rüya kopyası 1-99 deposunda aynı dosya).
 * Arayüz parçaları oyunun kendi görselleri: ../arayuz/ (tools/web_arayuz.py üretir). İki kaplama: .t-doga (55-120, ejder
 * desenli mavi pencere) ve .t-ruya (1-99, klasik taş pencere, yakut/altın). Betik yoksa ya da .t-liste-kip açıksa
 * pencereler alt alta bir belge gibi okunur. */

:root {
  --t-yazi: #e4dfd2;
  --t-soluk: #a39d8e;
  --t-altin: #f0c674;
  --t-altin-koyu: #b8873b;
  --t-yesil: #8fd48f;
  --t-kirmizi: #ff6b5b;
  --t-mavi: #8fc6ff;
  --t-npc: #a6f08c;
  --t-cizgi: #3b3f4a;
  --t-zemin: #05070b;
  --t-vurgu: #8fb4ff;
  --t-pencere-yazi: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --t-baslik-yazi: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --t-cubuk-h: 37px;
}
.t-ruya {
  --t-vurgu: #ffb35c;
  --t-zemin: #0b0505;
}

.t-govde {
  margin: 0;
  background: var(--t-zemin);
  color: var(--t-yazi);
  font: 14px/1.6 var(--t-pencere-yazi);
  -webkit-font-smoothing: antialiased;
}
.t-govde *, .t-govde *::before, .t-govde *::after { box-sizing: border-box; }
.t-govde img { max-width: 100%; }
.t-govde a { color: var(--t-mavi); }
.t-govde button { font: inherit; color: inherit; }
.t-gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ imleç (oyunun kendi imleci, uç noktası sol üst) */
.t-js:not(.t-liste-kip) .t-oyun,
.t-js:not(.t-liste-kip) .t-oyun button,
.t-js:not(.t-liste-kip) .t-oyun a { cursor: url("../arayuz/imlec/normal.png") 1 1, default; }
.t-js:not(.t-liste-kip) .t-oyun [data-imlec="konus"] { cursor: url("../arayuz/imlec/konus.png") 1 1, pointer; }
.t-js:not(.t-liste-kip) .t-oyun [data-imlec="saldir"] { cursor: url("../arayuz/imlec/saldir.png") 1 1, crosshair; }
.t-js:not(.t-liste-kip) .t-oyun [data-imlec="al"] { cursor: url("../arayuz/imlec/al.png") 1 1, pointer; }
.t-js:not(.t-liste-kip) .t-oyun [data-imlec="kapi"] { cursor: url("../arayuz/imlec/kapi.png") 1 1, pointer; }
.t-js:not(.t-liste-kip) .t-oyun [data-imlec="satin"] { cursor: url("../arayuz/imlec/satin.png") 1 1, pointer; }
.t-js:not(.t-liste-kip) .t-oyun .t-suruklen .t-baslik,
.t-js:not(.t-liste-kip) .t-oyun .t-sahne-kap:active { cursor: url("../arayuz/imlec/kamera.png") 16 16, move; }
.t-js:not(.t-liste-kip) .t-oyun input { cursor: text; }

/* ------------------------------------------------------------------ oyun görünümü: iskelet */
.t-js:not(.t-liste-kip) { overflow: hidden; height: 100%; }
.t-js:not(.t-liste-kip) .t-oyun {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.t-js:not(.t-liste-kip) .t-oyun .t-p-govde,
.t-js:not(.t-liste-kip) .t-oyun .t-diyalog-yazi { user-select: text; -webkit-user-select: text; }

.t-sahne-kap { display: none; }
.t-js:not(.t-liste-kip) .t-sahne-kap { display: block; position: absolute; inset: 0; overflow: hidden; }
.t-sahne {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 177.78vh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}
.t-sahne-gorsel, .t-sahne-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none !important;
}
.t-sahne-video { opacity: 0; transition: opacity 0.8s ease; }
.t-sahne-video.t-oynuyor { opacity: 1; }
.t-sahne::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, 0.5) 100%);
}

/* ------------------------------------------------------------------ 3B dünya (tanitim3b.js): gerçek harita + karakter.
 * Açılınca gövdeye .t-3b-acik eklenir; durağan sahne görseli ve sıcak noktaları gizlenir. */
.t-3b { display: none; }
.t-js:not(.t-liste-kip) .t-3b:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.t-3b-acik .t-sahne-kap { display: none !important; }
.t-3b-tuval { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.t-js:not(.t-liste-kip) .t-oyun .t-3b-tuval[data-imlec="dondur"] { cursor: url("../arayuz/imlec/kamera.png") 16 16, move; }
.t-3b-etiketler { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* ad etiketleri: oyunun ad yazısı (kalın, siyah çerçeveli) */
.t-3b-ad {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  text-align: center;
  font: 700 12px/1.25 var(--t-pencere-yazi);
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 3px #000;
  will-change: transform;
}
.t-3b-ad[hidden] { display: none; }
.t-3b-ad small { display: block; font-size: 11px; font-weight: 700; color: #ffe39a; }
.t-3b-ad-npc { color: var(--t-npc); }
.t-3b-ad-metin { color: #ff8f7a; }
.t-3b-ad-oyuncu { color: #fff; }
.t-3b-ad-ust { color: #fff6c8; filter: drop-shadow(0 0 4px rgba(255, 220, 120, 0.85)); }
.t-3b-ad-esya { display: flex; align-items: center; gap: 4px; color: #fff3c4; font-weight: 400; }
.t-3b-ad-esya img { width: 26px; height: 26px; image-rendering: pixelated; filter: drop-shadow(0 1px 2px #000); }
.t-3b-mini { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; }
.t-3b-mini-var .t-harita-ic > img, .t-3b-acik .t-harita-ic > img, .t-3b-acik .t-harita-nokta { display: none; }
.t-3b-acik .t-harita-oyuncu { display: none; }
.t-yukleme-yazi { color: #cfc8b5; font: 12px/1.4 var(--t-pencere-yazi); margin: -8px 0 0; }
.t-yukleme-atla[hidden] { display: none; }

/* sahnedeki nesneler: NPC, metin taşı, patron, kapı */
.t-nesne {
  position: absolute;
  z-index: 2;
  width: 6%;
  height: 11%;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  border-radius: 40%;
}
.t-nesne.t-buyuk { width: 9%; height: 16%; }
.t-nesne.t-kucuk { width: 4%; height: 8%; }
.t-nesne.t-uzun { width: 5%; height: 22%; }
.t-nesne.t-dev { width: 16%; height: 38%; }
.t-nesne::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.32), transparent);
  opacity: 0;
  transition: opacity 0.18s;
}
.t-nesne:hover::before, .t-nesne:focus-visible::before { opacity: 1; }
.t-nesne:focus-visible { outline: 1px dashed rgba(255, 230, 170, 0.8); outline-offset: 2px; }
.t-nesne-ad {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -4px);
  white-space: nowrap;
  font: 700 12px/1 var(--t-pencere-yazi);
  color: #fff;
  text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.t-nesne:hover .t-nesne-ad, .t-nesne:focus-visible .t-nesne-ad, .t-nesne.t-ad-hep .t-nesne-ad { opacity: 1; }
.t-nesne[data-tur="npc"] .t-nesne-ad { color: var(--t-npc); }
.t-nesne.t-ad-yok .t-nesne-ad { display: none; }   /* adı sahne görselinde zaten yazılı */
.t-nesne.t-ad-hep .t-nesne-ad { padding: 3px 8px; background: rgba(8, 10, 14, 0.62); border-radius: 2px; font-size: 12.5px; }
.t-nesne[data-tur="patron"] .t-nesne-ad { color: #ffcf6b; }
.t-nesne[data-tur="kapi"] .t-nesne-ad { color: #9fd3ff; }
.t-nesne-ad small { color: #ffe680; font-weight: 400; margin-right: 4px; }
.t-nesne-isaret {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: url("../arayuz/pencere/gorev-1.png") center / contain no-repeat;
  animation: t-zipla 1.6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.7));
}
@keyframes t-zipla { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.t-nesne.t-vur { animation: t-sars 0.22s linear; }
@keyframes t-sars { 25% { transform: translate(-52%, -50%); } 75% { transform: translate(-48%, -50%); } }
.t-nesne.t-kirik { pointer-events: none; animation: t-kir 0.6s ease forwards; }
.t-nesne.t-kirik::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 90, 0.85), rgba(255, 120, 40, 0.3) 55%, transparent);
  animation: t-patla 0.6s ease forwards;
}
@keyframes t-kir { to { opacity: 0.0; } }
@keyframes t-patla { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* hasar sayıları */
.t-hasar {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font: 700 20px/1 var(--t-pencere-yazi);
  color: #ffd76a;
  letter-spacing: 0.5px;
  text-shadow: 0 0 3px #000, 2px 2px 0 #3a1a00, -1px -1px 0 #3a1a00, 1px -1px 0 #3a1a00, -1px 1px 0 #3a1a00;
  transform: translate(-50%, 0);
  animation: t-hasar 1.1s ease-out forwards;
}
.t-hasar.t-kritik { color: #ff7a4a; font-size: 26px; }
@keyframes t-hasar {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--kay, 0px)), -70px) scale(1); }
}

/* ------------------------------------------------------------------ HUD */
.t-hud { display: none; }
.t-js:not(.t-liste-kip) .t-hud { display: block; }

.t-ust {
  position: absolute;
  z-index: 40;
  top: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.t-ust-marka img { display: block; height: 54px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)); }
.t-ust-dg { display: flex; gap: 6px; flex-wrap: wrap; }

/* oyunun düğmeleri (public/large_button, xlarge_button) */
.t-dg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 21px;
  padding: 0 10px;
  border: 0;
  background: url("../arayuz/dugme/buyuk-1.png") center / 100% 100% no-repeat;
  color: #f1ecdf !important;
  font: 12px/1 var(--t-pencere-yazi);
  text-decoration: none;
  text-shadow: 0 1px 1px #000;
  white-space: nowrap;
}
.t-dg:hover, .t-dg:focus-visible { background-image: url("../arayuz/dugme/buyuk-2.png"); color: #fff !important; }
.t-dg:active { background-image: url("../arayuz/dugme/buyuk-3.png"); }
.t-dg-genis { min-width: 180px; height: 25px; background-image: url("../arayuz/dugme/genis-1.png"); font-size: 12.5px; }
.t-dg-genis:hover, .t-dg-genis:focus-visible { background-image: url("../arayuz/dugme/genis-2.png"); }
.t-dg-genis:active { background-image: url("../arayuz/dugme/genis-3.png"); }
.t-dg-vurgu { color: var(--t-altin) !important; font-weight: 700; }

/* görev mektupları (oyunda ekranın solundaki parşömen simgeleri) */
.t-gorevler {
  position: absolute;
  z-index: 30;
  left: 10px;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-gorev {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: url("../arayuz/pencere/gorev-1.png") center / 28px 28px no-repeat;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.9));
}
.t-gorev:hover, .t-gorev:focus-visible { background-image: url("../arayuz/pencere/gorev-2.png"); filter: drop-shadow(0 0 8px rgba(255, 210, 120, 0.85)); }
.t-gorev span {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font: 700 12px/1 var(--t-pencere-yazi);
  color: #ffe9a8;
  text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000;
  opacity: 0.9;
}
.t-gorev.t-yeni::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffcf4a;
  box-shadow: 0 0 6px #ffcf4a;
}

/* mini harita (oyunun minimap çerçevesi) */
.t-harita {
  position: absolute;
  z-index: 30;
  top: 8px;
  right: 10px;
  width: 136px;
  text-align: center;
}
.t-harita-cerceve {
  position: relative;
  width: 136px;
  height: 137px;
}
.t-harita-cerceve::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../arayuz/harita/cerceve.png") no-repeat;
  pointer-events: none;
}
.t-harita-ic {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  overflow: hidden;
  background: #0d1210 center / cover no-repeat;
}
.t-harita-ic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) brightness(0.95); }
.t-harita-oyuncu {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 11px;
  margin: -5px 0 0 -5px;
  background: url("../arayuz/harita/oyuncu.png") no-repeat;
}
.t-harita-nokta {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  background: #ffcf4a;
  box-shadow: 0 0 6px rgba(255, 207, 74, 0.9);
}
.t-harita-nokta:hover, .t-harita-nokta:focus-visible { background: #fff; }
.t-harita-ac {
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border: 1px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6b7488, #262b36);
  color: #f3e8c8;
  font: 700 11px/20px var(--t-pencere-yazi);
  padding: 0;
}
.t-harita-ac:hover { background: radial-gradient(circle at 35% 30%, #8d97ad, #343b49); }
.t-harita-yazi {
  margin-top: 2px;
  font: 11px/1.35 var(--t-pencere-yazi);
  color: #f2eedf;
  text-shadow: 0 0 2px #000, 1px 1px 0 #000;
}
.t-harita-yazi b { display: block; color: #ffe08a; font-weight: 700; }

/* sağ üst hızlı simgeler (Battle Pass, Royal Pass ...) */
.t-hizli {
  position: absolute;
  z-index: 30;
  top: 10px;
  right: 156px;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-hizli button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 0.15s, filter 0.15s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.t-hizli button:hover, .t-hizli button:focus-visible { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 8px rgba(255, 210, 120, 0.7)); }
.t-hizli img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* hedef çubuğu (vurulan metin/patron) */
.t-hedef {
  position: absolute;
  z-index: 35;
  top: 12px;
  left: 50%;
  width: min(440px, 60vw);
  transform: translateX(-50%);
  padding: 7px 12px 8px;
  border: 1px solid transparent;
  border-image: url("../arayuz/pencere/ince-9.png") 16 fill / 16px round;
  font: 12px/1 var(--t-pencere-yazi);
}
.t-hedef[hidden] { display: none; }
.t-hedef-ust { display: flex; justify-content: space-between; margin-bottom: 6px; color: #fff; }
.t-hedef-can { height: 9px; background: #2a0b0b; border: 1px solid #000; }
.t-hedef-can i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #ff6b5b, #b3241a 60%, #7d140d); transition: width 0.18s; }

/* sohbet kutusu */
.t-sohbet {
  position: absolute;
  z-index: 30;
  left: 8px;
  bottom: calc(var(--t-cubuk-h) + 54px);
  width: min(420px, calc(100vw - 16px));
  font: 12px/1.45 var(--t-pencere-yazi);
}
.t-sohbet-liste {
  max-height: 150px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 8px;
  list-style: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 85%, transparent);
  text-shadow: 1px 1px 0 #000;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
.t-sohbet-liste li { margin: 1px 0; color: #eee; word-wrap: break-word; }
.t-s-sistem { color: #ffe38a !important; }
.t-s-sistem b { color: #ffd04d; }
.t-s-npc { color: var(--t-npc) !important; }
.t-s-ben { color: #fff !important; }
.t-s-ben::before { content: "Sen: "; color: var(--t-mavi); }
.t-s-bag {
  border: 0;
  padding: 0;
  background: none;
  color: var(--t-mavi) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.t-s-sonuc { padding-left: 10px; }
.t-s-sonuc::before { content: "› "; color: #888; }
.t-sohbet form { display: flex; gap: 4px; margin-top: 4px; }
.t-sohbet-giris {
  flex: 1;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #4a4e58;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 12px var(--t-pencere-yazi);
  outline: none;
}
.t-sohbet-giris:focus { border-color: #8a90a0; }
.t-sohbet-giris::placeholder { color: #9a9a9a; }

/* görev çubuğu (taskbar) */
.t-cubuk {
  position: absolute;
  z-index: 32;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--t-cubuk-h);
  display: flex;
  align-items: flex-end;
  background: url("../arayuz/cubuk/taban.png") repeat-x;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06), 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.t-cubuk-sol { position: relative; display: flex; align-items: flex-end; height: 100%; }
.t-gosterge {
  position: relative;
  width: 158px;
  height: 47px;
  margin-top: -10px;
  background: url("../arayuz/cubuk/gosterge.png") no-repeat;
  flex: none;
}
.t-gosterge i {
  position: absolute;
  left: 54px;
  height: 5px;
  border-radius: 1px;
}
.t-gosterge .t-hp { top: 18px; width: 96px; background: linear-gradient(180deg, #ff8a7a, #c8261b); }
.t-gosterge .t-sp { top: 27px; width: 96px; background: linear-gradient(180deg, #8ec5ff, #2d63c9); }
.t-gosterge .t-st { top: 36px; width: 80px; background: linear-gradient(180deg, #ffe08a, #c59a1f); }
.t-gosterge-yuz {
  position: absolute;
  left: 7px;
  top: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.92;
}
.t-gosterge-yuz img { width: 100%; height: 100%; object-fit: cover; }
.t-exp {
  position: relative;
  width: 105px;
  height: 37px;
  background: url("../arayuz/cubuk/exp.png") no-repeat;
  flex: none;
}
.t-exp i {
  position: absolute;
  top: 10px;
  width: 17px;
  height: 17px;
  background: url("../arayuz/cubuk/exp-nokta.png") center / contain no-repeat;
}
.t-exp i:nth-child(1) { left: 8px; }
.t-exp i:nth-child(2) { left: 33px; }
.t-exp i:nth-child(3) { left: 58px; opacity: 0.45; }
.t-cubuk-orta {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin: 0 auto;
  padding: 0 8px;
}
.t-fare {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: url("../arayuz/cubuk/fare-saldir-1.png") no-repeat;
}
.t-fare:hover { background-image: url("../arayuz/cubuk/fare-saldir-2.png"); }
.t-fare.t-fare-beceri { background-image: url("../arayuz/cubuk/fare-beceri-1.png"); }
.t-fare.t-fare-beceri:hover { background-image: url("../arayuz/cubuk/fare-beceri-2.png"); }
.t-yuvalar { display: flex; gap: 2px; }
.t-hizli-yuva {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid #1c1e24;
  padding: 0;
  background: #07080b;
  box-shadow: inset 0 0 0 1px #3d414b, inset 0 0 8px rgba(0, 0, 0, 0.9);
}
.t-hizli-yuva img { position: absolute; inset: 1px; width: 28px; height: 28px; object-fit: contain; }
.t-hizli-yuva b {
  position: absolute;
  left: 2px;
  top: 0;
  font: 700 9px/1 var(--t-pencere-yazi);
  color: #e8e3d6;
  text-shadow: 1px 1px 0 #000;
}
.t-hizli-yuva:hover, .t-hizli-yuva:focus-visible { box-shadow: inset 0 0 0 1px #c9a568, inset 0 0 10px rgba(255, 200, 100, 0.35); }
.t-cubuk-sag { display: flex; align-items: center; gap: 2px; height: 100%; padding-right: 6px; }
.t-cdg {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: none no-repeat;
}
.t-cdg[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 215, 120, 0.75);
  pointer-events: none;
}
.t-cdg-market { background-image: url("../arayuz/cubuk/market-1.png"); }
.t-cdg-market:hover, .t-cdg-market:focus-visible { background-image: url("../arayuz/cubuk/market-2.png"); }
.t-cdg-market:active { background-image: url("../arayuz/cubuk/market-3.png"); }
.t-cdg-karakter { background-image: url("../arayuz/cubuk/karakter-1.png"); }
.t-cdg-karakter:hover, .t-cdg-karakter:focus-visible { background-image: url("../arayuz/cubuk/karakter-2.png"); }
.t-cdg-karakter:active { background-image: url("../arayuz/cubuk/karakter-3.png"); }
.t-cdg-envanter { background-image: url("../arayuz/cubuk/envanter-1.png"); }
.t-cdg-envanter:hover, .t-cdg-envanter:focus-visible { background-image: url("../arayuz/cubuk/envanter-2.png"); }
.t-cdg-envanter:active { background-image: url("../arayuz/cubuk/envanter-3.png"); }
.t-cdg-topluluk { background-image: url("../arayuz/cubuk/topluluk-1.png"); }
.t-cdg-topluluk:hover, .t-cdg-topluluk:focus-visible { background-image: url("../arayuz/cubuk/topluluk-2.png"); }
.t-cdg-topluluk:active { background-image: url("../arayuz/cubuk/topluluk-3.png"); }
.t-cdg-sistem { background-image: url("../arayuz/cubuk/sistem-1.png"); }
.t-cdg-sistem:hover, .t-cdg-sistem:focus-visible { background-image: url("../arayuz/cubuk/sistem-2.png"); }
.t-cdg-sistem:active { background-image: url("../arayuz/cubuk/sistem-3.png"); }
.t-cdg-kostum { background-image: url("../arayuz/cubuk/kostum-1.png"); }
.t-cdg-kostum:hover, .t-cdg-kostum:focus-visible { background-image: url("../arayuz/cubuk/kostum-2.png"); }
.t-cdg-kostum:active { background-image: url("../arayuz/cubuk/kostum-3.png"); }
.t-cdg-gaya { background-image: url("../arayuz/cubuk/gaya-1.png"); }
.t-cdg-gaya:hover, .t-cdg-gaya:focus-visible { background-image: url("../arayuz/cubuk/gaya-2.png"); }
.t-cdg-gaya:active { background-image: url("../arayuz/cubuk/gaya-3.png"); }
.t-cdg-sohbet { width: 16px; background-image: url("../arayuz/cubuk/sohbet-1.png"); background-position: center; }
.t-cdg-sohbet:hover { background-image: url("../arayuz/cubuk/sohbet-2.png"); }

/* ------------------------------------------------------------------ pencere (oyunun Board + TitleBar'ı) */
.t-pencereler { position: relative; }
.t-js:not(.t-liste-kip) .t-pencereler { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.t-pencere {
  position: relative;
  border: 12px solid transparent;
  border-image: url("../arayuz/pencere/ejder-9.png") 32 fill / 32px round;
  color: var(--t-yazi);
  font: 12.5px/1.6 var(--t-pencere-yazi);
}
.t-ruya .t-pencere { border-image-source: url("../arayuz/pencere/klasik-9.png"); }
.t-js:not(.t-liste-kip) .t-pencere {
  position: absolute;
  left: 50%;
  top: 60px;
  width: min(var(--t-gen, 640px), calc(100vw - 16px));
  pointer-events: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  animation: t-ac 0.16s ease-out;
}
.t-js:not(.t-liste-kip) .t-pencere[hidden] { display: none; }
.t-pencere:focus { outline: none; }
.t-pencere.t-on { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 220, 160, 0.08); }
@keyframes t-ac { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.t-gen-dar { --t-gen: 460px; }
.t-gen-orta { --t-gen: 620px; }
.t-gen-genis { --t-gen: 780px; }
.t-gen-cokgenis { --t-gen: 920px; }

.t-baslik {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  margin: -4px -4px 8px;
  padding: 0 30px;
  background:
    url("../arayuz/pencere/baslik-sol.png") left top no-repeat,
    url("../arayuz/pencere/baslik-sag.png") right top no-repeat,
    url("../arayuz/pencere/baslik-orta.png") left top repeat-x;
  background-clip: border-box;
}
.t-baslik::before, .t-baslik::after { content: ""; position: absolute; top: 0; height: 23px; width: 32px; pointer-events: none; }
.t-baslik-yazi {
  overflow: hidden;
  font: 700 12px/23px var(--t-pencere-yazi);
  color: #f3eedd;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px #000;
}
.t-kapat {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: url("../arayuz/pencere/kapat-1.png") no-repeat;
}
.t-kapat:hover, .t-kapat:focus-visible { background-image: url("../arayuz/pencere/kapat-2.png"); }
.t-kapat:active { background-image: url("../arayuz/pencere/kapat-3.png"); }
.t-p-bas { margin: 0; }
.t-js:not(.t-liste-kip) .t-p-bas { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.t-baslik { display: none; }
.t-js:not(.t-liste-kip) .t-baslik { display: flex; }

.t-p-govde { padding: 2px 6px 6px; }
.t-js:not(.t-liste-kip) .t-p-govde {
  max-height: calc(100vh - 190px);
  max-height: calc(100svh - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6b7180 #0b0d12;
}
.t-p-govde::-webkit-scrollbar { width: 10px; }
.t-p-govde::-webkit-scrollbar-track { background: #0b0d12; border-left: 1px solid #2b2f38; }
.t-p-govde::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #5b6170, #3a3f4a); border: 1px solid #1a1c22; }

/* sekmeler */
.t-sekmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 2px 8px;
  border-bottom: 1px solid #4a4f5c;
}
.t-sekme-dg {
  padding: 4px 10px 3px;
  border: 1px solid #4a4f5c;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #2b303b, #171a21);
  color: #b9b4a6 !important;
  font: 12px/1.3 var(--t-pencere-yazi);
}
.t-sekme-dg:hover { color: #f3eedd !important; background: linear-gradient(180deg, #3a404d, #1f232b); }
.t-sekme-dg[aria-selected="true"] {
  color: var(--t-altin) !important;
  background: linear-gradient(180deg, #4b4231, #231d14);
  border-color: #8a7146;
  position: relative;
  top: 1px;
}
.t-ruya .t-sekme-dg[aria-selected="true"] { background: linear-gradient(180deg, #5a2518, #2a0e09); border-color: #a2603a; }
.t-sekme-bas { display: none; }
.t-js:not(.t-liste-kip) .t-sekmeli > .t-sekme:not(.t-secili) { display: none; }
.t-liste-kip .t-sekme-bas, .t-govde:not(.t-js) .t-sekme-bas { display: block; }

/* pencere içeriği */
.t-p-govde h3, .t-sekme-bas {
  margin: 12px 0 6px;
  font: 700 13px/1.3 var(--t-pencere-yazi);
  color: var(--t-altin);
  letter-spacing: 0.2px;
}
.t-p-govde > .t-sekme > h3:first-child, .t-p-govde > h3:first-child { margin-top: 2px; }
.t-p-govde h4 { margin: 10px 0 4px; font: 700 12.5px/1.3 var(--t-pencere-yazi); color: #e9dcb8; }
.t-p-govde p { margin: 0 0 8px; }
.t-p-govde ul, .t-p-govde ol { margin: 0 0 10px; padding-left: 18px; }
.t-p-govde ol li::marker { color: var(--t-altin); font-weight: 700; }
.t-iki-sutun { columns: 2 220px; column-gap: 18px; }
.t-iki-sutun li { break-inside: avoid; }
.t-kart-kucuk { --t-kart: 130px; }
.t-p-govde li { margin: 2px 0; }
.t-p-govde li::marker { color: var(--t-altin-koyu); }
.t-p-govde b, .t-p-govde strong { color: #fff; }
.t-yesil { color: var(--t-yesil) !important; }
.t-kirmizi { color: var(--t-kirmizi) !important; }
.t-altin { color: var(--t-altin) !important; }
.t-mavi { color: var(--t-mavi) !important; }
.t-soluk { color: var(--t-soluk) !important; }
.t-kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  border: 1px solid #6b6f7a;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #1b1e25;
  color: #fff;
  font: 700 11px/17px var(--t-pencere-yazi);
  text-align: center;
}
.t-ayirac {
  height: 9px;
  margin: 10px 0;
  background: url("../arayuz/pencere/ayirac.png") center / 100% 100% no-repeat;
  opacity: 0.8;
}
.t-ozet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}
.t-ozet div {
  padding: 7px 9px;
  border: 1px solid #3b3f4a;
  background: rgba(0, 0, 0, 0.35);
}
.t-ozet dt { margin: 0; font-size: 11px; color: var(--t-soluk); }
.t-ozet dd { margin: 2px 0 0; color: #fff; font-weight: 700; }
.t-ozet { margin-left: 0; }
.t-kart-izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--t-kart, 180px), 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.t-kart {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 !important;
  padding: 8px 9px;
  border: 1px solid #3b3f4a;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.3));
  color: var(--t-yazi);
  text-align: left;
}
button.t-kart { width: 100%; font: inherit; }
button.t-kart:hover, button.t-kart:focus-visible { border-color: #8a7146; background: linear-gradient(180deg, rgba(240, 198, 116, 0.09), rgba(0, 0, 0, 0.3)); }
.t-kart img { flex: none; width: 36px; height: 36px; object-fit: contain; }
.t-kart b { display: block; color: #fff; font-size: 12.5px; }
.t-kart span { display: block; font-size: 11.5px; line-height: 1.45; color: #bdb7a8; }
.t-kart-dikey { flex-direction: column; align-items: center; text-align: center; }
.t-kart-dikey img { width: 64px; height: 64px; }
.t-tablo-kap { overflow-x: auto; margin: 0 0 10px; }
.t-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.t-tablo th, .t-tablo td { padding: 5px 7px; border: 1px solid #353a45; text-align: left; vertical-align: top; }
.t-tablo th { background: rgba(255, 255, 255, 0.05); color: var(--t-altin); font-weight: 700; white-space: nowrap; }
.t-tablo td.t-sag, .t-tablo th.t-sag { text-align: right; white-space: nowrap; }
.t-tablo tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.t-ekran {
  max-width: fit-content;
  margin: 0 0 10px;
  border: 1px solid #4a4f5c;
  background: #000;
}
.t-ekran img { display: block; width: auto; max-width: 100%; height: auto; }
.t-js .t-ekran img { cursor: zoom-in; }
.t-buyut {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  animation: t-ac 0.15s ease-out;
}
.t-buyut[hidden] { display: none; }
.t-buyut img { max-width: 100%; max-height: 100%; border: 1px solid #5b6170; box-shadow: 0 20px 60px #000; }
.t-ekran figcaption { padding: 5px 8px; font-size: 11px; color: var(--t-soluk); border-top: 1px solid #2b2f38; }
.t-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-iki > * { min-width: 0; }
.t-bilgi {
  margin: 0 0 10px;
  padding: 7px 10px;
  border-left: 3px solid var(--t-altin-koyu);
  background: rgba(240, 198, 116, 0.07);
  color: #e8dfc6;
}
.t-dg-satir { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }

/* eşya yuvaları ve patron portreleri */
.t-yuvalar-izgara { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 10px; padding: 0; list-style: none; }
.t-yuva {
  position: relative;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  border: 1px solid #16181d;
  background: #07080b;
  box-shadow: inset 0 0 0 1px #3d414b, inset 0 0 8px rgba(0, 0, 0, 0.9);
}
.t-yuva img { position: absolute; inset: 2px; width: 32px; height: 32px; object-fit: contain; }
.t-yuva:hover { box-shadow: inset 0 0 0 1px #c9a568, inset 0 0 10px rgba(255, 200, 100, 0.3); }
.t-yuva-uzun { height: 68px; }
.t-yuva-uzun img { height: 64px; }
.t-metinler { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.t-metinler .t-kart { padding: 5px 8px; }
.t-metinler .t-kart b { font-size: 12px; }
.t-patronlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 5px; margin: 0 0 12px; padding: 0; list-style: none; }
.t-patron {
  margin: 0 !important;
  padding: 5px 3px 6px;
  border: 1px solid #3b3f4a;
  background: radial-gradient(circle at 50% 35%, rgba(120, 30, 20, 0.28), rgba(0, 0, 0, 0.4) 70%);
  text-align: center;
  font-size: 10.5px;
  line-height: 1.25;
  color: #e6dfcb;
}
.t-patron img { display: block; width: 52px; height: 52px; margin: 0 auto 4px; object-fit: contain; }
.t-patron.t-son { border-color: #8a5a2a; box-shadow: inset 0 0 12px rgba(255, 140, 60, 0.25); }

/* bölge satırları */
.t-bolge {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 1px solid #3b3f4a;
  background: rgba(0, 0, 0, 0.3);
}
.t-bolge-no {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  border: 1px solid #8a7146;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b4231, #17130d);
  color: var(--t-altin);
  font: 700 15px/32px var(--t-baslik-yazi);
  text-align: center;
}
.t-bolge h4 { margin: 0 !important; }
.t-bolge h4 small { margin-left: 6px; font-weight: 400; color: var(--t-yesil); }
.t-bolge p { margin: 0 !important; font-size: 11.5px; color: #c8c2b2; }
.t-bolge-patron { grid-column: 2; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px !important; }
.t-bolge-patron img { width: 30px; height: 30px; border: 1px solid #2b2f38; background: #0b0d12; object-fit: contain; }

/* ------------------------------------------------------------------ NPC konuşma penceresi */
.t-diyalog {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(var(--t-cubuk-h) + 70px);
  width: min(520px, calc(100vw - 16px));
  transform: translateX(-50%);
  padding: 4px 6px 8px;
  border: 12px solid transparent;
  border-image: url("../arayuz/pencere/ejder-9.png") 32 fill / 32px round;
  font: 13px/1.65 var(--t-pencere-yazi);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  animation: t-ac 0.18s ease-out;
}
.t-ruya .t-diyalog { border-image-source: url("../arayuz/pencere/klasik-9.png"); }
.t-diyalog[hidden] { display: none; }
.t-diyalog-ad { margin: 0 0 6px; font: 700 13px/1.2 var(--t-pencere-yazi); color: var(--t-npc); }
.t-diyalog-yazi { min-height: 64px; margin: 0 0 10px; color: #f2ecdc; }
.t-diyalog-secenek { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.t-diyalog-secenek .t-dg-genis { min-width: 240px; }
.t-d-sablon { display: none; }

/* ipucu kutusu (oyunun thinboard'u) */
.t-ipucu {
  position: fixed;
  z-index: 200;
  max-width: 280px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-image: url("../arayuz/pencere/ince-9.png") 16 fill / 16px round;
  pointer-events: none;
  font: 12px/1.5 var(--t-pencere-yazi);
  color: #e6e0cf;
  text-align: center;
}
.t-ipucu[hidden] { display: none; }
.t-ipucu b { display: block; margin-bottom: 2px; color: var(--t-altin); }
.t-ipucu span { display: block; }

/* yükleme ekranı */
.t-yukleme { display: none; }
.t-js:not(.t-liste-kip) .t-yukleme {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(ellipse at 50% 40%, #121a2b 0%, #05070b 70%);
  transition: opacity 0.45s ease;
}
.t-ruya.t-js:not(.t-liste-kip) .t-yukleme { background: radial-gradient(ellipse at 50% 40%, #2a0d0b 0%, #070303 70%); }
.t-yukleme.t-bitti { opacity: 0; pointer-events: none; }
.t-yukleme[hidden] { display: none !important; }
.t-yukleme img { width: min(420px, 70vw); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.8)); }
.t-yukleme-cubuk {
  width: min(520px, 80vw);
  height: 12px;
  padding: 2px;
  border: 1px solid #5b6170;
  background: #07080b;
  box-shadow: inset 0 0 6px #000;
}
.t-yukleme-cubuk i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffe7a3, #d6a13a 55%, #8b5f17); transition: width 0.15s; }
.t-yukleme p { margin: 0; max-width: min(560px, 86vw); text-align: center; font: 13px/1.5 var(--t-pencere-yazi); color: #cfc8b5; }
.t-yukleme p b { color: var(--t-altin); }

/* ------------------------------------------------------------------ liste görünümü (ve betiksiz okuma) */
.t-liste-ust { display: none; }
.t-liste-kip .t-liste-ust, .t-govde:not(.t-js) .t-liste-ust {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid #2b2f38;
  backdrop-filter: blur(8px);
}
.t-ruya.t-liste-kip .t-liste-ust, .t-ruya:not(.t-js) .t-liste-ust { background: rgba(14, 5, 4, 0.92); border-color: #3a1d14; }
.t-liste-ust img { height: 36px; width: auto; }
.t-liste-ust nav { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1; font-size: 12.5px; }
.t-liste-ust nav a { color: #d8d2c2; text-decoration: none; }
.t-liste-ust nav a:hover { color: var(--t-altin); }
.t-liste-bas { display: none; }
.t-liste-kip .t-liste-bas, .t-govde:not(.t-js) .t-liste-bas {
  display: block;
  position: relative;
  padding: 56px 16px 40px;
  text-align: center;
  background: center / cover no-repeat;
  overflow: hidden;
}
.t-liste-bas img.t-liste-zemin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; max-width: none; }
.t-liste-bas > div { position: relative; }
.t-liste-bas h1 { margin: 0 0 8px; font: 700 clamp(26px, 4vw, 44px)/1.15 var(--t-baslik-yazi); color: #fff; text-shadow: 0 2px 12px #000; }
.t-liste-bas p { max-width: 720px; margin: 0 auto; color: #e2dccb; text-shadow: 0 1px 6px #000; }
.t-liste-kip .t-pencereler, .t-govde:not(.t-js) .t-pencereler {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 24px auto 64px;
  padding: 0 12px;
}
.t-liste-kip .t-pencere, .t-govde:not(.t-js) .t-pencere { scroll-margin-top: 70px; }
.t-liste-kip .t-pencere .t-p-bas, .t-govde:not(.t-js) .t-pencere .t-p-bas {
  display: block;
  margin: -2px -2px 10px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(240, 198, 116, 0.16), transparent);
  border-bottom: 1px solid #4a4f5c;
  font: 700 18px/1.3 var(--t-baslik-yazi);
  color: #fff;
}
.t-liste-kip .t-sekmeler { display: none; }
.t-liste-kip .t-sekme, .t-govde:not(.t-js) .t-sekme { display: block !important; }
.t-liste-kip .t-hud, .t-liste-kip .t-diyalog, .t-liste-kip .t-yukleme { display: none !important; }
/* betik yokken çalışmayan düğmeler görünmez (görünüm değiştirme, pencereler arası geçiş) */
.t-govde:not(.t-js) [data-kip], .t-govde:not(.t-js) .t-dg-satir button[data-ac] { display: none; }

/* ------------------------------------------------------------------ dar ekran (telefon) */
@media (max-width: 820px) {
  :root { --t-cubuk-h: 44px; }
  .t-js:not(.t-liste-kip) .t-sahne-kap { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .t-js:not(.t-liste-kip) .t-sahne-kap::-webkit-scrollbar { display: none; }
  .t-sahne { position: relative; left: 0; top: 0; height: 100%; width: auto; transform: none; }
  .t-nesne-ad { opacity: 0.85; font-size: 11px; }
  .t-ust { top: 6px; left: 6px; gap: 6px; }
  .t-ust-marka img { height: 38px; }
  .t-ust-dg .t-dg:not(.t-dg-vurgu):not([data-kip]) { display: none; }
  .t-harita { transform: scale(0.72); transform-origin: top right; top: 4px; right: 4px; }
  .t-hizli { display: none; }
  .t-gorevler { top: 64px; left: 6px; }
  .t-gorev span { display: none; }
  .t-sohbet { display: none; }
  .t-sohbet.t-acik { display: block; bottom: calc(var(--t-cubuk-h) + 6px); z-index: 45; }
  .t-cubuk { overflow-x: auto; scrollbar-width: none; align-items: center; background-size: auto 100%; }
  .t-cubuk::-webkit-scrollbar { display: none; }
  .t-gosterge, .t-exp, .t-fare { display: none; }
  .t-cubuk-orta { margin: 0; }
  .t-cdg, .t-hizli-yuva { flex: none; }
  .t-js:not(.t-liste-kip) .t-pencere {
    position: fixed;
    left: 4px !important;
    right: 4px;
    top: 50px !important;
    bottom: calc(var(--t-cubuk-h) + 4px);
    width: auto;
    display: flex;
    flex-direction: column;
    animation: t-yukari 0.2s ease-out;
  }
  .t-js:not(.t-liste-kip) .t-pencere .t-p-govde { flex: 1; max-height: none; }
  .t-iki { grid-template-columns: 1fr; }
  .t-diyalog { bottom: calc(var(--t-cubuk-h) + 8px); }
  .t-liste-ust { flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px; }
  .t-liste-ust nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: 12.5px; scrollbar-width: none; padding-bottom: 2px; }
  .t-liste-ust .t-dg { margin-left: auto; }
}
@keyframes t-yukari { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .t-nesne-isaret, .t-pencere, .t-diyalog, .t-hasar, .t-3b-gorev-ok i, .t-tur-vurgu, .t-tur.t-parla { animation: none !important; }
}

/* ------------------------------------------------------------------ oyunun kendi HUD'u (her sitenin static/css/hud.css'i +
 * templates/..._tanitim_hud.html; tools/tanitim3b/hud.py üretir: parçalar ve konumlar o sunucunun istemcisinden, 1:1).
 * Dar ekranda tanitim.js HUD'u sanal bir genişliğe ölçekler (oyundaki gibi düzen bozulmasın). */
.t-hud-oyun { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; transform-origin: 0 0;
  font: 11px/1.25 var(--t-pencere-yazi); color: #fff; }
.t-hud-oyun .h { position: absolute; display: block; margin: 0; padding: 0; border: 0; background-color: transparent; }
.t-hud-oyun button, .t-hud-oyun .t-harita-ic { pointer-events: auto; }
.t-hud-oyun button:focus-visible { outline: 1px solid #ffe08a; outline-offset: 1px; }
.t-hud-oyun .h-yazi { white-space: nowrap; pointer-events: none;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.t-hud-oyun .h-yuva { width: 32px; height: 32px; }
.t-hud-oyun .h-yuva img { display: block; width: 32px; height: 32px; object-fit: contain; }
.t-hud-oyun .h-yuva:hover img, .t-hud-oyun .h-yuva:focus-visible img { filter: brightness(1.25) drop-shadow(0 0 4px rgba(255, 220, 140, 0.8)); }
.t-hud-oyun .t-harita-ic img { display: none; }
.t-hud-oyun .t-harita-oyun.t-kapali > :not([data-harita-gizle]) { visibility: hidden; }
/* hedef panosu (oyunun TargetBoard'u: ince pano, ad, yüzde, can çubuğu) */
.t-hud-oyun .t-hedef-oyun { transform: none; padding: 0; width: auto; z-index: 3; pointer-events: none; }
.t-hud-oyun .t-hedef-oyun .t-hedef-ad, .t-hud-oyun .t-hedef-oyun .t-hedef-yuzde, .t-hud-oyun .t-hedef-oyun .t-hedef-hp {
  font: 11px/1 var(--t-pencere-yazi); color: #fff; white-space: nowrap;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.t-hud-oyun .t-hedef-oyun .t-hedef-hp { font-size: 10px; color: #e8e2d0; }
.t-hud-oyun .t-hedef-oyun .t-hedef-can { border: 0; background: #1d0505; box-shadow: inset 0 0 0 1px #000; }
.t-hud-oyun .t-hedef-oyun .t-hedef-can i { background: linear-gradient(180deg, #ff4b3a, #c11d10 55%, #6e0b05); }
/* oyunun HUD'u varken eski site HUD parçaları */

.t-hud-oyun ~ .t-gorevler .t-gorev { width: 32px; height: 32px; background-size: 32px 32px; filter: none; }
.t-hud-oyun ~ .t-gorevler .t-gorev span { transform: none; font: 11px/1 var(--t-pencere-yazi); color: #fff; opacity: 1; }
.t-hud-oyun ~ .t-sohbet { left: 50%; transform: translateX(-50%); width: min(600px, calc(100vw - 16px)); bottom: 50px; }
.t-doga .t-hud-oyun ~ .t-ust { top: 46px; }
.t-doga .t-hud-oyun ~ .t-hizli { top: 44px; right: 214px; }
.t-doga .t-hud-oyun ~ .t-hizli button { width: 60px; height: 60px; }
.t-ruya .t-hud-oyun ~ .t-hizli { top: 8px; right: 286px; }
.t-ruya .t-hud-oyun ~ .t-hizli button { width: 60px; height: 60px; }
/* NPC konuşması: oyundaki gibi ekranın ortasında, üstte ve altta siyah perde (QuestDialog) */
body.t-konusuyor::before, body.t-konusuyor::after { content: ""; position: fixed; left: 0; right: 0; z-index: 85; height: max(0px, calc(50vh - 330px));
  background: #000; pointer-events: none; animation: t-perde 0.25s ease-out; }
body.t-konusuyor::before { top: 0; }
/* konuşma perdesi açıkken 3B ad etiketleri (oyuncu/NPC/metin adı) yarı saydam diyalogun içinden sızmasın (2026-11-09) */
body.t-konusuyor .t-3b-etiketler { visibility: hidden; }
/* sohbet (konuşmanın günlüğü) alttaki perdenin altında kesilmesin: perdenin hemen üstünde durur */
body.t-konusuyor .t-hud-oyun ~ .t-sohbet { bottom: max(50px, calc(50vh - 322px)); }
body.t-konusuyor::after { bottom: 0; }
@keyframes t-perde { from { height: 0; } }
.t-3b-acik .t-diyalog { top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 16px)); border-width: 16px;
  border-image: url("../arayuz/hud/pencere/thinboard-9.png") 16 fill / 16px repeat; background: rgba(0, 0, 0, 0.62); }
.t-3b-acik .t-diyalog-ad { color: var(--t-ad-npc, var(--t-npc)); }
.t-3b-acik .t-diyalog-yazi { color: #fff; }
/* ad etiketleri: oyunun renkleri (hud.css değişkenleri), seviye öneki yeşil ve adın solunda */
.t-3b-ad-npc { color: var(--t-ad-npc, var(--t-npc)); }
.t-3b-ad-oyuncu { color: var(--t-ad-oyuncu, #ffd74c); }
.t-3b-ad-metin { color: var(--t-ad-metin, #fff); }
.t-3b-sv { color: var(--t-ad-seviye, #98ff33); margin-right: 4px; }
@media (max-width: 820px) {
  .t-hud-oyun ~ .t-sohbet { left: 8px; transform: none; bottom: 64px; }
  .t-hud-oyun ~ .t-gorevler { gap: 22px; }
  .t-hud-oyun ~ .t-gorevler .t-gorev span { display: none; }
  .t-doga .t-hud-oyun ~ .t-hizli, .t-ruya .t-hud-oyun ~ .t-hizli { top: auto; bottom: 64px; right: 8px; }
  .t-hud-oyun ~ .t-hizli button { width: 44px !important; height: 44px !important; }
  .t-3b-acik .t-diyalog { top: auto; bottom: 8px; transform: translateX(-50%); }
  body.t-konusuyor::before, body.t-konusuyor::after { display: none; }
}
/* dar sanal genişlik (telefon): ikincil HUD parçaları gizlenir */
.t-hud-oyun.t-dar .h-r-quick-slot-2, .t-hud-oyun.t-dar .h-r-slot-5, .t-hud-oyun.t-dar .h-r-slot-6, .t-hud-oyun.t-dar .h-r-slot-7,
.t-hud-oyun.t-dar .h-r-slot-8, .t-hud-oyun.t-dar .h-yuva4, .t-hud-oyun.t-dar .h-yuva5, .t-hud-oyun.t-dar .h-yuva6,
.t-hud-oyun.t-dar .h-yuva7, .t-hud-oyun.t-dar .h-r-quickslotnumberbox, .t-hud-oyun.t-dar .h-r-quickpageupbutton,
.t-hud-oyun.t-dar .h-r-quickpagenumber, .t-hud-oyun.t-dar .h-r-quickpagedownbutton, .t-hud-oyun.t-dar .h-r-rightmousebutton,
.t-hud-oyun.t-dar .h-r-antiexp, .t-hud-oyun.t-dar .h-oyun-dugmeleri, .t-hud-oyun.t-dar .h-etki-simgeleri,
.t-hud-oyun.t-dar .h-ust-simgeler, .t-hud-oyun.t-dar .h-r-exp-gauge-board, .t-hud-oyun.t-dar .h-r-expgauge-01,
.t-hud-oyun.t-dar .h-r-expgauge-02, .t-hud-oyun.t-dar .h-r-expgauge-03, .t-hud-oyun.t-dar .h-r-expgauge-04 { display: none; }
/* ---------------------------------------------------------------- tanıtım görevi (sıralı rehber, tanitim.js turKur)
   sağda, mini haritanın altında oyunun ince panosu: adım listesi, şimdiki adımın açıklaması, Yol göster / Atla */
.t-tur { position: absolute; right: 6px; top: calc(304px * var(--t-hud-o, 1)); z-index: 30; width: 256px; pointer-events: auto;
  border: 12px solid transparent; border-image: url("../arayuz/hud/pencere/thinboard-9.png") 16 fill / 12px repeat;
  background: rgba(0, 0, 0, 0.5); color: #f2ecdc; font: 11.5px/1.4 var(--t-pencere-yazi); }
.t-ruya .t-tur { top: calc(194px * var(--t-hud-o, 1)); }
.t-tur-ust { display: flex; align-items: center; gap: 6px; margin: -4px 0 5px; }
.t-tur-ust b { color: var(--t-altin); font-size: 12px; }
.t-tur-sayac { margin-left: auto; color: #cfc8b5; font-size: 11px; }
.t-tur-kucult { width: 18px; height: 16px; border: 0; padding: 0; background: none; color: #e8dcc0; cursor: pointer; }
.t-tur-kucult::before { content: "\2212"; font: 700 14px/16px var(--t-pencere-yazi); }
.t-tur.t-kucuk .t-tur-kucult::before { content: "+"; }
.t-tur-liste { list-style: none; margin: 0; padding: 0; }
.t-tur-liste li { display: flex; align-items: center; gap: 6px; padding: 1px 0; color: #a39b8c; }
.t-tur-no { position: relative; flex: none; width: 15px; height: 15px; border-radius: 50%; background: #2c2820; box-shadow: inset 0 0 0 1px #4a4232;
  color: #cfc8b5; font: 700 10px/15px var(--t-pencere-yazi); text-align: center; }
.t-tur-liste li.t-gecti { color: #8fae79; }
.t-tur-liste li.t-gecti .t-tur-no { background: #3c6a26; box-shadow: none; color: transparent; }
.t-tur-liste li.t-gecti .t-tur-no::after { content: "\2713"; position: absolute; inset: 0; color: #e6ffd2; }
.t-tur-liste li.t-simdi { color: #fff; font-weight: 700; }
.t-tur-liste li.t-simdi .t-tur-no { background: #d29a2c; box-shadow: none; color: #1b1205; }
.t-tur-yazi { margin: 6px 0; padding-top: 6px; border-top: 1px solid rgba(255, 220, 150, 0.2); }
.t-tur-dg { display: flex; gap: 6px; }
.t-tur-dg .t-dg { min-width: 0; flex: 1; }
.t-tur-dg [hidden] { display: none; }
.t-tur.t-kucuk .t-tur-liste li:not(.t-simdi), .t-tur.t-kucuk .t-tur-yazi, .t-tur.t-kucuk .t-tur-dg { display: none; }
.t-tur.t-kucuk .t-tur-ust { margin-bottom: 0; cursor: pointer; }
.t-tur.t-tamam.t-kucuk .t-tur-liste { display: none; }
.t-tur.t-parla { animation: t-tur-parla 0.9s ease-out; }
@keyframes t-tur-parla { from { box-shadow: 0 0 0 0 rgba(255, 211, 106, 0.85); } to { box-shadow: 0 0 0 14px rgba(255, 211, 106, 0); } }
.t-s-gorev { color: #ffe9a8 !important; }
.t-s-gorev b { color: #ffb84a; }
/* görevin hedefi: HUD düğmesi ya da durağan sahnedeki metin parlar */
.t-tur-vurgu { animation: t-tur-vurgu 1.1s ease-in-out infinite; }
@keyframes t-tur-vurgu { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 211, 106, 0.6)); } 50% { filter: drop-shadow(0 0 7px #ffd36a) brightness(1.35); } }
/* 3B görev oku: hedefin üstünde zıplayan altın ok; ekran dışındaysa kenarda hedefe dönük */
.t-3b-gorev-ok { position: absolute; left: 0; top: 0; z-index: 1500; width: 24px; height: 32px; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)); }
.t-3b-gorev-ok[hidden] { display: none; }
.t-3b-gorev-ok i { display: block; width: 24px; height: 32px; background: linear-gradient(#fff1b8, #e8a628 70%, #b87412);
  clip-path: polygon(30% 0, 70% 0, 70% 48%, 100% 48%, 50% 100%, 0 48%, 30% 48%); animation: t-ok-zipla 0.9s ease-in-out infinite; }
@keyframes t-ok-zipla { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(0); } }
/* tecrübe küreleri (görev çubuğu): alttan dolar */
.t-hud-oyun .h-r-expgauge-01, .t-hud-oyun .h-r-expgauge-02, .t-hud-oyun .h-r-expgauge-03, .t-hud-oyun .h-r-expgauge-04 {
  clip-path: inset(calc((1 - var(--dolu, 1)) * 100%) 0 0 0); transition: clip-path 0.6s ease-out; }
@media (max-width: 820px) {
  .t-tur { width: min(256px, calc(100vw - 64px)); }
}

/* metin taşı tablosu: içinden çıkanlar (Rüya 11-09; Doğa kullanmazsa etkisiz) */
.t-dusen-liste { display: flex; flex-wrap: wrap; gap: 3px 6px; margin: 0; padding: 0; list-style: none; }
.t-dusen-liste li { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 1px; background: rgba(0, 0, 0, 0.35);
  border: 1px solid #353a45; font-size: 11px; line-height: 1.2; }
.t-dusen-liste img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.t-dusen-liste small { color: var(--t-altin); font-size: 10px; }
.t-metin-tablo td { vertical-align: middle; }
