/* ════════════════════════════════════════════════════════════════
   WORTHAM HARİTA TEMASI  v2 (2026-09-29) — Pl3xMap 1.21.11-544 web arayüzü
   Kırmızı ağırlıklı (#D2434A), altın yalnız ikincil (#E3B55B), sıcak koyu cam yüzeyler.
   Yazı: Barlow Condensed (etiket/rakam) + Barlow (metin) — yerel woff2, latin-ext (Türkçe tam).
   Tek tasarım dili: tüm kontroller aynı cam yüzey, 1.2rem köşe, 46px dokunmatik hedef,
   kırmızı = seçili/etkin, altın = etiket ve klavye odağı.
   Pl3xMap'in kendi styles.css / pl3xmap.js dosyalarına DOKUNMAZ; üstüne biner.
   Eşlik eden betik: wortham-v2.js (koordinat/blok panelleri, imza kaldırma, bağlantı kopyalama).
   BAĞLANTI: web/index.html içindeki "WORTHAM" işaretli satırlar (css + js + rozet).
   GERİ ALMA: index.html'de v2 → v1 (wortham-v1.css/js yerinde duruyor).
   SÜRÜM: değişiklikte dosya adını sürümle (wortham-v3.css) ve index.html satırını güncelle.
   ⚠ config.yml settings.web-directory.read-only: true KALMALI; false olursa açılışta
     index.html/favicon.ico jar'daki varsayılanla ezilir (wortham/ klasörü ve tr_tr.json kalır).
   ════════════════════════════════════════════════════════════════ */

/* ---------- 0. Yazı tipleri (fonts/) ---------- */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/barlow-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/barlow-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-condensed-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-condensed-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}


/* ---------- 1. Jetonlar ----------
   Pl3xMap'in --ui-* degiskenlerini ezer ve Wortham jetonlarini tanimlar.
   Harita her zaman koyu (Pl3xMap color-scheme: dark); acik tema yok. */
html:root {
  color-scheme: dark;

  /* marka */
  --w-red: #D2434A;
  --w-red-hi: #E0575E;
  --w-red-deep: #A8262E;
  --w-gold: #E3B55B;

  /* metin */
  --w-text: #EFE8E5;
  --w-soft: #C4B7B2;
  --w-muted: #978A85;
  --w-faint: #6E6360;

  /* zemin */
  --w-bg: #120C0C;
  --w-bg-2: #0B0707;
  --w-surface-solid: #1A1212;
  --w-glass: rgba(22, 14, 14, .87);
  --w-glass-dense: rgba(23, 15, 15, .94);
  --w-panel: linear-gradient(180deg, #221716 0%, #120C0C 55%);

  /* cizgi, golge, yuzey durumlari */
  --w-edge: rgba(255, 229, 223, .10);
  --w-edge-strong: rgba(255, 229, 223, .18);
  --w-divider: rgba(255, 229, 223, .08);
  --w-hover: rgba(255, 240, 236, .07);
  --w-press: rgba(0, 0, 0, .28);
  --w-tint: rgba(210, 67, 74, .17);
  --w-tint-strong: rgba(210, 67, 74, .26);
  --w-inner: inset 0 1px 0 rgba(255, 255, 255, .05);
  --w-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 28px -14px rgba(0, 0, 0, .85);
  --w-blur: blur(10px) saturate(105%);

  /* bicim */
  --w-r: 1.2rem;
  --w-r-sm: .8rem;
  --w-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --w-focus: 2px solid var(--w-gold);

  /* hareket */
  --w-ease: cubic-bezier(.22, 1, .36, 1);
  --w-ease-in: cubic-bezier(.55, 0, .7, .2);
  --w-t-fast: 140ms;
  --w-t: 200ms;
  --w-t-panel: 340ms;

  /* Pl3xMap degiskenleri */
  --ui-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui-button-size: 4.6rem;            /* 46px: dokunmatik hedef >= 44px */
  --ui-element-spacing: 1rem;
  --ui-border-radius: var(--w-r);
  --ui-border: 1px solid var(--w-edge);
  --ui-box-shadow: var(--w-shadow);
  --ui-outline: var(--w-focus);
  --ui-background: var(--w-glass);
  --ui-background-hover: #2B1D1C;
  --ui-background-active: #362423;
  --ui-background-selected: var(--w-red);
  --ui-background-disabled: #1E1616;
  --ui-text: var(--w-text);
  --ui-text-hover: #FFFFFF;
  --ui-text-active: #FFFFFF;
  --ui-text-selected: #FFFFFF;
  --ui-text-disabled: var(--w-faint);
  --ui-sidebar-width: 30rem;
}

html, body { background: var(--w-bg-2); }
.map, .leaflet-container { background: var(--w-bg-2); font-family: var(--ui-font); }
body { -webkit-tap-highlight-color: transparent; }

/* Ortak cam yuzey: tum kontroller ayni malzemeden */
#map .leaflet-control-zoom,
#sidebar #sidebar__buttons,
#map .leaflet-control-link,
.wth-panel,
.wortham-marka,
.wth-bildirim {
  background: var(--w-glass);
  -webkit-backdrop-filter: var(--w-blur);
  backdrop-filter: var(--w-blur);
  border: 1px solid var(--w-edge);
  box-shadow: var(--w-shadow), var(--w-inner);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #map .leaflet-control-zoom,
  #sidebar #sidebar__buttons,
  #map .leaflet-control-link,
  .wth-panel,
  .wortham-marka,
  .wth-bildirim { background: var(--w-glass-dense); }
}

/* Leaflet'in varsayilan imzasi: JS kaldirir, bu satir yedek */
#map .leaflet-control-attribution { display: none !important; }

/* Acilis: kontroller yerlerine kayarak gelir (bir kez) */
@keyframes wth-sol { from { opacity: 0; transform: translateX(-.8rem); } }
@keyframes wth-sag { from { opacity: 0; transform: translateX(.8rem); } }
@keyframes wth-alt { from { opacity: 0; transform: translateY(.8rem); } }
@keyframes wth-ust { from { opacity: 0; transform: translate(-50%, -.8rem); } }

/* ---------- 2. Yakinlastirma grubu (sol ust) ---------- */
#map .leaflet-control-zoom {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--w-r);
  animation: wth-sol .42s var(--w-ease) backwards;
}
#map .leaflet-control-zoom a {
  position: relative;
  display: block;
  width: var(--ui-button-size);
  height: var(--ui-button-size);
  margin: 0;
  padding: 0;
  color: var(--w-soft);
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--w-t-fast) ease, color var(--w-t-fast) ease;
}
#map .leaflet-control-zoom a:first-child { border-radius: calc(var(--w-r) - 1px) calc(var(--w-r) - 1px) 0 0; }
#map .leaflet-control-zoom a:last-child  { border-radius: 0 0 calc(var(--w-r) - 1px) calc(var(--w-r) - 1px); }
/* ic ayirici: kenarlara degmeyen ince cizgi */
#map .leaflet-control-zoom a + a {
  background-image: linear-gradient(var(--w-divider), var(--w-divider));
  background-size: 56% 1px;
  background-position: center top;
  background-repeat: no-repeat;
}
#map .leaflet-control-zoom a > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* + ve − simgesi: yazi tipi yerine iki cubuk (her boyutta tam ortada, keskin) */
#map .leaflet-control-zoom a::before,
#map .leaflet-control-zoom-in::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1.5rem; height: .2rem;
  margin: -.1rem 0 0 -.75rem;
  border-radius: .2rem;
  background: currentColor;
  transition: transform var(--w-t-fast) var(--w-ease);
}
#map .leaflet-control-zoom-in::after { transform: rotate(90deg); }
#map .leaflet-control-zoom a:hover { color: #FFFFFF; background-color: var(--w-hover); }
#map .leaflet-control-zoom a:active { background-color: var(--w-tint); color: #FFFFFF; }
#map .leaflet-control-zoom a:active::before { transform: scale(.78); }
#map .leaflet-control-zoom-in:active::after { transform: rotate(90deg) scale(.78); }
#map .leaflet-control-zoom a:focus { outline: none; }
#map .leaflet-control-zoom a:focus-visible {
  color: #FFFFFF;
  box-shadow: inset 0 0 0 2px var(--w-gold);
}
#map .leaflet-control-zoom a.leaflet-disabled,
#map .leaflet-control-zoom a.leaflet-disabled:hover,
#map .leaflet-control-zoom a.leaflet-disabled:active {
  color: var(--w-faint);
  background-color: transparent;
  cursor: not-allowed;
}
#map .leaflet-control-zoom a.leaflet-disabled::before,
#map .leaflet-control-zoom a.leaflet-disabled::after { opacity: .7; }

/* ---------- 3. Sag ust ray (Dunyalar / Katmanlar / Oyuncular) ---------- */
#sidebar {
  transition: transform var(--w-t-panel) var(--w-ease);
}
#sidebar #sidebar__buttons {
  gap: 0;
  padding: 0;
  border-radius: var(--w-r);
  animation: wth-sag .42s var(--w-ease) .06s backwards;
}
#sidebar #sidebar__buttons button {
  position: relative;
  width: var(--ui-button-size);
  height: var(--ui-button-size);
  margin: 0;
  padding: 0;
  color: var(--w-soft);
  font-weight: 400;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--w-t-fast) ease, color var(--w-t-fast) ease;
}
#sidebar #sidebar__buttons button:first-child { border-radius: calc(var(--w-r) - 1px) calc(var(--w-r) - 1px) 0 0; }
#sidebar #sidebar__buttons button:last-child  { border-radius: 0 0 calc(var(--w-r) - 1px) calc(var(--w-r) - 1px); }
#sidebar #sidebar__buttons button + button {
  background-image: linear-gradient(var(--w-divider), var(--w-divider));
  background-size: 56% 1px;
  background-position: center top;
  background-repeat: no-repeat;
}
#sidebar #sidebar__buttons button > svg {
  position: absolute;
  inset: 0;
  width: 2.2rem;
  height: 2.2rem;
  margin: auto;
  transition: transform var(--w-t) var(--w-ease);
}
#sidebar #sidebar__buttons button:hover { color: #FFFFFF; background-color: var(--w-hover); }
#sidebar #sidebar__buttons button:hover > svg { transform: scale(1.08); }
#sidebar #sidebar__buttons button:active > svg { transform: scale(.9); }
#sidebar #sidebar__buttons button:focus { outline: none; }
#sidebar #sidebar__buttons button:focus-visible { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--w-gold); }

/* secili sekme: kirmizi tint + panele bakan kenarda gosterge cubugu */
#sidebar #sidebar__buttons button::before {
  content: "";
  position: absolute;
  top: 1.1rem; bottom: 1.1rem; left: 0;
  width: .3rem;
  border-radius: 0 .3rem .3rem 0;
  background: var(--w-red);
  transform: scaleY(0);
  transition: transform var(--w-t) var(--w-ease);
}
html #sidebar #sidebar__buttons button[aria-expanded=true] {
  color: #FFFFFF;
  background-color: var(--w-tint-strong);
  font-weight: 400;
}
html #sidebar #sidebar__buttons button[aria-expanded=true]::before { transform: scaleY(1); }

/* oyuncu sayisi rozeti (JS data-wth-sayi yazar) */
#sidebar #sidebar__buttons button[data-wth-sayi]::after {
  content: attr(data-wth-sayi);
  position: absolute;
  top: .5rem; right: .4rem;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 .45rem;
  font-family: var(--w-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.7rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #FFFFFF;
  background: var(--w-red);
  border-radius: 99rem;
  box-shadow: 0 0 0 2px rgba(23, 15, 15, .95);
  pointer-events: none;
  animation: wth-rozet .32s var(--w-ease) backwards;
}
@keyframes wth-rozet { from { opacity: 0; transform: scale(.4); } }

/* ---------- 4. Yan panel ---------- */
#sidebar #sidebar__content {
  background: var(--w-panel);
  border: 0;
  border-left: 1px solid var(--w-edge-strong);
  border-radius: 0;
  box-shadow: none;
  padding: 2.2rem 1.8rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: #4A3332 transparent;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--w-t) ease, visibility 0s linear var(--w-t-panel), box-shadow var(--w-t-panel) ease;
}
#sidebar.sidebar--expanded #sidebar__content {
  opacity: 1;
  visibility: visible;
  box-shadow: -28px 0 56px -28px rgba(0, 0, 0, .95);
  transition: opacity .26s ease .04s, visibility 0s, box-shadow var(--w-t-panel) ease;
}
/* ust kenarda marka seridi (altin kisa + kirmizi) */
#sidebar #sidebar__content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--w-gold) 0 18%, var(--w-red) 18% 100%);
  transform-origin: left center;
}
#sidebar.sidebar--expanded #sidebar__content::before { animation: wth-serit .5s var(--w-ease) .08s backwards; }
@keyframes wth-serit { from { transform: scaleX(0); } }

/* sekme icerigi degisince yumusakca yukari kayar */
#sidebar #sidebar__content > div:not([hidden]) { animation: wth-sekme .3s var(--w-ease) backwards; }
@keyframes wth-sekme { from { opacity: 0; transform: translateY(.8rem); } }

#sidebar #sidebar__content h2 {
  position: relative;
  margin: 0 0 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w-edge);
  font-family: var(--w-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}
#sidebar #sidebar__content h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 4.8rem; height: 2px;
  background: var(--w-red);
}
#sidebar #sidebar__content h2:focus { outline: none; }
#sidebar #sidebar__content p {
  margin: 0;
  color: var(--w-muted);
  font-size: 1.5rem;
  line-height: 1.45;
}
#sidebar #sidebar__content p:focus { outline: none; }

/* Liste satirlari (katman / oyuncu) */
#sidebar .menu input + label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
  margin: 0 0 .6rem;
  padding: .8rem 1.2rem;
  font-family: var(--ui-font);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.3;
  white-space: normal;
  color: var(--w-text);
  background-color: rgba(255, 255, 255, .025);
  border: 1px solid var(--w-edge);
  border-radius: var(--w-r-sm);
  box-shadow: none;
  transition: background-color var(--w-t-fast) ease, border-color var(--w-t-fast) ease, color var(--w-t-fast) ease;
}
#sidebar .menu input + label:hover {
  color: #FFFFFF;
  background-color: var(--w-hover);
  border-color: var(--w-edge-strong);
}
#sidebar .menu input + label:active { background-color: var(--w-press); }
#sidebar .menu input:checked + label {
  color: #FFFFFF;
  font-weight: 600;
  background-color: var(--w-tint);
  border-color: rgba(210, 67, 74, .7);
}
/* secili satirin solunda kirmizi cubuk */
#sidebar .menu input:not(.renderer) + label::after {
  content: "";
  position: absolute;
  left: -1px; top: .9rem; bottom: .9rem;
  width: .3rem;
  border-radius: 0 .3rem .3rem 0;
  background: var(--w-red);
  transform: scaleY(0);
  transition: transform var(--w-t) var(--w-ease);
}
#sidebar .menu input:not(.renderer):checked + label::after { transform: scaleY(1); }
#sidebar .menu input:focus + label { outline: none; }
#sidebar .menu input:focus-visible + label { outline: var(--w-focus); outline-offset: 2px; }
#sidebar .menu input[disabled] + label,
#sidebar .menu label[disabled] { opacity: .5; cursor: not-allowed; }

/* Katmanlar: onay kutusu */
#sidebar__layers .menu input + label::before {
  content: "";
  flex: 0 0 auto;
  width: 1.8rem; height: 1.8rem;
  border: 2px solid var(--w-muted);
  border-radius: .4rem;
  background: transparent center / 0 no-repeat;
  transition: background-color var(--w-t-fast) ease, border-color var(--w-t-fast) ease, background-size var(--w-t) var(--w-ease);
}
#sidebar__layers .menu input:checked + label::before {
  border-color: var(--w-red);
  background-color: var(--w-red);
  background-size: 1.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#sidebar__layers .menu input:checked + label {
  font-weight: 500;
  background-color: rgba(255, 255, 255, .035);
  border-color: var(--w-edge);
}
#sidebar__layers .menu input:checked + label:hover { background-color: var(--w-hover); border-color: var(--w-edge-strong); }
/* katmanlarda satir cubugu yerine onay kutusu yeterli */
#sidebar__layers .menu input + label::after { display: none; }

/* Oyuncular: kafa gorseli + takip etiketi */
#sidebar .menu input.players + label {
  padding-left: 5.2rem;
  background-position: 1rem center;
  background-size: 3.2rem 3.2rem;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
#sidebar .menu input.players:checked + label::before {
  content: "Takipte";
  order: 2;
  margin-left: auto;
  padding: .2rem .7rem;
  font-family: var(--w-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--w-red);
  border-radius: 99rem;
  animation: wth-rozet .28s var(--w-ease) backwards;
}

/* Dunyalar: her dunya bir kart; ad + gorunum ikonlari */
#sidebar__worlds .menu > fieldset {
  margin: 0 0 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--w-edge);
  border-radius: var(--w-r-sm);
  transition: border-color var(--w-t) ease, background-color var(--w-t) ease;
}
#sidebar__worlds .menu > fieldset legend {
  float: left;
  width: 100%;
  margin: 0 0 .9rem;
  padding: 0;
  font-family: var(--w-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #FFFFFF;
}
#sidebar__worlds .menu > fieldset:has(input:checked) {
  border-color: rgba(210, 67, 74, .7);
  background: var(--w-tint);
}
#sidebar__worlds .menu > fieldset:has(input:checked) legend::after {
  content: "Aktif";
  float: right;
  margin-top: .2rem;
  padding: .2rem .7rem;
  font-size: 1.15rem;
  letter-spacing: .12em;
  line-height: 1.5;
  color: #FFFFFF;
  background: var(--w-red);
  border-radius: 99rem;
}
#sidebar .menu input.renderer + label {
  display: inline-block;
  width: 4.6rem; height: 4.6rem;
  min-height: 0;
  margin: 0 .6rem 0 0;
  padding: 0;
  background-color: transparent;
  background-size: 100%;
  border: 2px solid var(--w-edge-strong);
  border-radius: var(--w-r-sm);
  transition: border-color var(--w-t-fast) ease, box-shadow var(--w-t) var(--w-ease), transform var(--w-t) var(--w-ease);
}
#sidebar .menu input.renderer + label:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
#sidebar .menu input.renderer:checked + label {
  border-color: var(--w-red-hi);
  box-shadow: 0 0 0 3px rgba(210, 67, 74, .32);
}

/* ---------- 5. Alt bilgi panelleri (koordinat + blok) ----------
   JS (.wth-hud) kendi panellerini kurar; Pl3xMap'in orijinalleri DOM'da kalir ama gizlenir.
   JS calismazsa .wth-hud sinifi olmaz ve orijinal paneller gorunur (guvenli dusus). */
html.wth-hud #map .leaflet-control-coordinates,
html.wth-hud #map .leaflet-control-blockinfo { display: none !important; }

.wth-panel {
  position: relative;
  height: var(--ui-button-size);
  margin: 0;
  color: var(--w-text);
  border-radius: var(--w-r);
  font-family: var(--ui-font);
  pointer-events: auto;
  animation: wth-alt .42s var(--w-ease) .1s backwards;
}
.wth-panel[hidden] { display: none !important; }
.wth-etiket, .wth-eksen-ad {
  font-family: var(--w-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--w-gold);
}
/* Durum katmanlari ayni hucrede ust uste: genislik iki durumda da sabit, zıplama yok */
.wth-katman {
  grid-area: 1 / 1;
  transition: opacity var(--w-t) ease, transform var(--w-t) var(--w-ease), visibility 0s;
}
.wth-koord[data-durum="bos"] .wth-dolu,
.wth-koord[data-durum="aktif"] .wth-bos {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--w-t-fast) ease, transform var(--w-t-fast) ease, visibility 0s linear var(--w-t-fast);
}
.wth-koord[data-durum="bos"] .wth-dolu { transform: translateY(.3rem); }
.wth-koord[data-durum="aktif"] .wth-bos { transform: translateY(-.3rem); }
/* blok paneli bosken ayni duzeni korur, degerler soluk tire olur */
.wth-blok[data-durum="bos"] .wth-deger { color: var(--w-faint); }

/* Koordinatlar */
.wth-koord {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 27rem;
  padding: 0 1.4rem;
}
.wth-koord .wth-dolu {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.wth-eksen {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: 0 1rem;
}
.wth-eksen + .wth-eksen { border-left: 1px solid var(--w-divider); }
.wth-eksen:first-child { padding-left: 0; }
.wth-eksen:last-child { padding-right: 0; }
.wth-eksen-ad { font-size: 1.35rem; letter-spacing: .04em; }
.wth-sayi {
  display: inline-block;
  min-width: 2.85em;               /* "−61440" sigar; deger degisirken kutu sabit */
  font-family: var(--w-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  text-align: left;
  color: #FFFFFF;
  white-space: nowrap;
}
.wth-sayi-y { min-width: 1.75em; }
.wth-yok { color: var(--w-faint); }
.wth-bos {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--w-muted);
  white-space: nowrap;
}
.wth-bos svg { width: 1.8rem; height: 1.8rem; flex: 0 0 auto; color: var(--w-red-hi); }

/* Blok bilgisi */
.wth-blok {
  display: grid;
  align-items: center;
  width: 26rem;
  padding: 0 1.3rem;
}
.wth-blok .wth-dolu, .wth-blok .wth-bos { min-width: 0; }
.wth-blok .wth-dolu {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: .1rem;
  align-items: baseline;
}
.wth-satir { display: contents; }
.wth-blok .wth-etiket { font-size: 1.15rem; letter-spacing: .14em; }
.wth-deger {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.75rem;
  color: var(--w-text);
}

/* ---------- 6. Paylas dugmesi (sag alt) ---------- */
#map .leaflet-control-link {
  position: relative;
  display: block;
  width: var(--ui-button-size);
  height: var(--ui-button-size);
  padding: 0;
  color: var(--w-soft);
  border-radius: var(--w-r);
  transition: background-color var(--w-t-fast) ease, color var(--w-t-fast) ease, border-color var(--w-t-fast) ease;
  animation: wth-sag .42s var(--w-ease) .12s backwards;
}
#map .leaflet-control-link > svg {
  position: absolute;
  inset: 0;
  width: 2rem;
  height: 2rem;
  margin: auto;
  transition: transform var(--w-t) var(--w-ease), opacity var(--w-t-fast) ease;
}
#map .leaflet-control-link:hover { color: #FFFFFF; background-color: rgba(43, 29, 28, .9); border-color: var(--w-edge-strong); }
#map .leaflet-control-link:hover > svg { transform: rotate(-12deg) scale(1.06); }
#map .leaflet-control-link:active > svg { transform: scale(.88); }
#map .leaflet-control-link:focus { outline: none; }
#map .leaflet-control-link:focus-visible { color: #FFFFFF; outline: var(--w-focus); outline-offset: 2px; }
/* kopyalandi: simge onay isaretine doner */
#map .leaflet-control-link::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2rem; height: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--w-t-fast) ease, transform var(--w-t) var(--w-ease);
}
#map .leaflet-control-link.wth-tamam { color: #FFFFFF; background-color: var(--w-red); border-color: var(--w-red-hi); }
#map .leaflet-control-link.wth-tamam > svg { opacity: 0; transform: scale(.5); }
#map .leaflet-control-link.wth-tamam::after { opacity: 1; transform: none; }

/* bildirim baloncugu (JS konumlar) */
.wth-bildirim {
  position: fixed;
  z-index: 1003;
  padding: .8rem 1.3rem;
  font-family: var(--ui-font);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #FFFFFF;
  white-space: nowrap;
  border-radius: var(--w-r-sm);
  border-color: rgba(210, 67, 74, .55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(.4rem);
  transition: opacity var(--w-t) ease, transform var(--w-t) var(--w-ease);
}
.wth-bildirim.wth-goster { opacity: 1; transform: none; }

/* ---------- 7. Harita ustu baloncuklar ---------- */
.leaflet-tooltip {
  font-family: var(--ui-font);
  color: var(--w-text);
  background: var(--w-surface-solid);
  border: 1px solid var(--w-edge-strong);
  border-radius: var(--w-r-sm);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .9);
}
.leaflet-tooltip-top:before { border-top-color: var(--w-surface-solid); }
.leaflet-tooltip-bottom:before { border-bottom-color: var(--w-surface-solid); }
.leaflet-tooltip-left:before { border-left-color: var(--w-surface-solid); }
.leaflet-tooltip-right:before { border-right-color: var(--w-surface-solid); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--w-surface-solid);
  color: var(--w-text);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .9);
}
.leaflet-popup-content-wrapper { border: 1px solid var(--w-edge-strong); border-radius: var(--w-r); }
.leaflet-popup-content { font-family: var(--ui-font); font-size: 1.4rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--w-soft); }

/* ---------- 8. Wortham rozeti (ust orta; tiklayinca wortham.net) ---------- */
.wortham-marka {
  position: fixed;
  z-index: 1001; /* haritanin ustunde, kenar cubugunun (1002) altinda */
  top: var(--ui-element-spacing);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--ui-button-size);
  padding: 0 1.8rem 0 .6rem;
  font-family: var(--w-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #FFFFFF;
  border-radius: 99rem;
  transition: border-color var(--w-t) ease, opacity var(--w-t) ease, visibility 0s linear 0s;
  animation: wth-ust .42s var(--w-ease) backwards;
}
.wortham-marka:hover { border-color: rgba(210, 67, 74, .6); }
.wortham-marka:focus { outline: none; }
.wortham-marka:focus-visible { outline: var(--w-focus); outline-offset: 3px; }
.wortham-marka img {
  display: block;
  width: 3.8rem; height: 3.8rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
  transition: transform .3s var(--w-ease);
}
.wortham-marka:hover img { transform: rotate(-6deg) scale(1.05); }
.wortham-marka .wm-alt {
  padding-left: 1rem;
  border-left: 1px solid var(--w-edge-strong);
  color: var(--w-red-hi);
}

/* Dar ekranda acik kenar cubugu rozetin ustune binmesin */
@media (max-width: 1100px) {
  body:has(#sidebar.sidebar--expanded) .wortham-marka {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--w-t-fast) ease, visibility 0s linear var(--w-t-fast);
  }
}

/* ---------- 9. Dar ekran: alt paneller tek kartta birlesir ----------
   <= 860px'de sol-alt ile orta-alt yan yana sigmiyor; ikisi sol sutunda ust uste
   (koordinat ustte, blok altta, arada ince cizgi), paylas dugmesi sagda. */
@media (max-width: 860px) {
  #map .leaflet-control-container-bottom {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: end;
    column-gap: var(--ui-element-spacing);
    row-gap: 0;
  }
  #map .leaflet-control-container-bottom > .leaflet-center { grid-column: 1; grid-row: 1; }
  #map .leaflet-control-container-bottom > .leaflet-left   { grid-column: 1; grid-row: 2; }
  #map .leaflet-control-container-bottom > .leaflet-right  { grid-column: 2; grid-row: 1 / span 2; align-content: end; }
  #map .leaflet-control-container-bottom > .leaflet-center,
  #map .leaflet-control-container-bottom > .leaflet-left {
    justify-content: stretch;
    grid-template-columns: minmax(0, 40rem);
  }
  .wth-koord, .wth-blok { width: auto; min-width: 0; }
  .wth-koord { justify-items: start; padding: 0 1.2rem; }
  .wth-blok { height: auto; padding: .7rem 1.2rem .8rem; }
  /* ikisi de varsa birlesik kart */
  html.wth-birlesik .wth-koord {
    height: 4.2rem;
    border-bottom: 0;
    border-radius: var(--w-r) var(--w-r) 0 0;
    box-shadow: var(--w-inner);
  }
  html.wth-birlesik .wth-blok {
    border-top: 1px solid var(--w-divider);
    border-radius: 0 0 var(--w-r) var(--w-r);
  }
  html.wth-birlesik .wth-blok .wth-dolu {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    column-gap: 1.2rem;
  }
  html.wth-birlesik .wth-blok .wth-etiket { font-size: 1.05rem; line-height: 1.4; }
  .wth-eksen { padding: 0 .9rem; }
  .wth-sayi { font-size: 1.85rem; }
}

/* ---------- 10. Telefon ---------- */
@media (max-width: 600px) {
  html:root { --ui-sidebar-width: min(28rem, calc(100vw - 13rem)); }
  /* panel acikken alt paneller ve paylas dugmesi kenara cekilir (yarim kesik gorunmesin) */
  body:has(#sidebar.sidebar--expanded) .wth-panel,
  body:has(#sidebar.sidebar--expanded) #map .leaflet-control-link {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--w-t-fast) ease, visibility 0s linear var(--w-t-fast);
  }
  .wortham-marka { gap: .8rem; font-size: 1.85rem; padding: 0 1.4rem 0 .5rem; }
  .wortham-marka img { width: 3.4rem; height: 3.4rem; }
  .wortham-marka .wm-alt { padding-left: .8rem; }
  #sidebar #sidebar__content { padding: 1.8rem 1.4rem 3rem; }
  #sidebar #sidebar__content h2 { font-size: 2.1rem; }
  #sidebar .menu input + label { font-size: 1.5rem; }
  .wth-bos { font-size: 1.35rem; }
}
@media (max-width: 360px) {
  .wortham-marka .wm-alt { display: none; }
  .wth-eksen { padding: 0 .6rem; }
  .wth-sayi { font-size: 1.7rem; }
}

/* ---------- 11. Hareket azaltma: yalniz bizim ogeler (Leaflet'in kendi animasyonuna dokunma) ---------- */
@media (prefers-reduced-motion: reduce) {
  .wortham-marka, .wortham-marka *, .wth-panel, .wth-panel *, .wth-bildirim,
  #sidebar, #sidebar *, #sidebar *::before, #sidebar *::after,
  #map .leaflet-control-zoom, #map .leaflet-control-zoom a, #map .leaflet-control-zoom a::before, #map .leaflet-control-zoom a::after,
  #map .leaflet-control-link, #map .leaflet-control-link > svg, #map .leaflet-control-link::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
