/* =====================================================================
   BARUT & DALGA — arayüz tasarım sistemi
   Klasik 2012 kimliği: lacivert cam paneller, ince çelik çizgiler,
   ölçülü altın vurgular. Tek katman: bütün ölçüler aşağıdaki değişkenlerde.
   ===================================================================== */

/* ---------- 1. TASARIM DEĞİŞKENLERİ ---------- */
:root {
  color-scheme: dark;

  /* zemin ve paneller */
  --abyss: #050b14;
  --navy-900: #08111d;
  --navy-800: #0c1828;
  --navy-700: #13243a;
  --panel: linear-gradient(180deg, rgba(19, 35, 57, 0.84), rgba(9, 18, 31, 0.88));
  --panel-strong: linear-gradient(180deg, rgba(17, 32, 52, 0.96), rgba(8, 16, 28, 0.97));
  --well: rgba(2, 7, 14, 0.55);          /* içe gömük alanlar: giriş kutuları, çubuk zemini */
  --raise: rgba(255, 255, 255, 0.04);    /* panel içi kart yüzeyi */
  --raise-2: rgba(255, 255, 255, 0.07);
  --line: rgba(150, 184, 222, 0.14);     /* ince kenar */
  --line-2: rgba(150, 184, 222, 0.24);
  --line-3: rgba(150, 184, 222, 0.38);

  /* yazı renkleri */
  --text: #e8eef6;
  --text-2: #9fb2c8;
  --text-3: #6f849d;

  /* vurgular: altın sadece ana eylem ve seçili/öne çıkan şeyler için */
  --gold: #e8b54a;
  --gold-hi: #f6d27f;
  --gold-ink: #241703;
  --gold-soft: rgba(232, 181, 74, 0.12);
  --gold-line: rgba(232, 181, 74, 0.4);
  --sea: #64b5ff;                        /* odak halkası, bilgi, klan etiketi */
  --teal: #4fd8c4;                       /* elit, geçiş kapısı, günlük */
  --teal-hi: #8ff3e6;
  --red: #e5543f;
  --red-hi: #ff9a86;
  --green: #5ccf8a;
  --green-hi: #a8f0c4;
  --pearl: #cdc6ff;

  /* çubuk dolguları */
  --hp-a: #b92f1f; --hp-b: #f0644a;
  --xp-a: #c98f27; --xp-b: #f6d27f;

  /* yazı tipleri: korsan yazısı sadece logo ve büyük başlıklarda */
  --font-ui: 'Barlow', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Pirata One', Georgia, 'Times New Roman', serif;
  --font-mono: 'Cascadia Mono', Consolas, 'DejaVu Sans Mono', ui-monospace, monospace;

  /* yazı ölçeği */
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;

  /* 8px ızgarası (4 yarım adım) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;

  /* köşeler */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  /* gölgeler */
  --sh-1: 0 2px 8px rgba(0, 0, 0, 0.3);
  --sh-2: 0 10px 28px rgba(0, 0, 0, 0.42);
  --sh-3: 0 24px 64px rgba(0, 0, 0, 0.58);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --focus: 0 0 0 3px rgba(100, 181, 255, 0.28);

  /* hareket */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms;
  --t-med: 200ms;
  --t-slow: 380ms;

  /* cam bulanıklığı (düşük grafik ayarında kapanır) */
  --blur: blur(12px) saturate(1.2);

  /* yerleşim */
  --hud-gap: 12px;
  --top-h: 56px;
  --hud-top: calc(var(--top-h) + var(--hud-gap));
  --ab-h: 72px;                                        /* cephane çubuğu yüksekliği */
  --above-ab: calc(var(--hud-gap) + var(--ab-h) + 8px);
}

/* Zayıf bilgisayarlar: cam bulanıklığı yerine daha koyu düz panel */
:root[data-fx='low'] {
  --blur: none;
  --panel: linear-gradient(180deg, rgba(17, 32, 52, 0.94), rgba(8, 16, 28, 0.95));
}

/* ---------- 2. TEMEL ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(150, 184, 222, 0.28) transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--abyss); }
body {
  font: 400 var(--fs-base)/1.4 var(--font-ui);
  color: var(--text);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: var(--text); }
::selection { background: rgba(100, 181, 255, 0.35); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.hidden { display: none !important; }
b, strong { font-weight: 600; }

#scene, #overlay { position: fixed; inset: 0; display: block; }
#scene { cursor: crosshair; }
#overlay { pointer-events: none; }
#vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 62%, rgba(2, 6, 12, 0.4) 100%);
}

.ico { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: middle; }
.ico svg, .portrait svg, .card-ico svg, .slot svg, .buff svg, .clan-flag svg { width: 100%; height: 100%; display: block; }

kbd {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-xs); border: 1px solid var(--line-2); background: rgba(2, 7, 14, 0.75);
  font: 600 10px/1 var(--font-ui); color: var(--text-2);
}

/* ---------- 3. TEMEL PARÇALAR ---------- */

/* cam panel */
.frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), var(--sheen);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-md);
  font: 600 13px/1 var(--font-ui); letter-spacing: 0.1px; white-space: nowrap; color: var(--text);
  background: var(--raise-2); border: 1px solid var(--line-2);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform 80ms;
}
.btn:not(:disabled):hover { background: rgba(255, 255, 255, 0.11); border-color: var(--line-3); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: saturate(0.4); }
.btn .ico { width: 16px; height: 16px; }
.btn small { font-size: 11px; font-weight: 500; opacity: 0.8; }

.btn.gold {
  color: var(--gold-ink); border-color: rgba(255, 226, 150, 0.75);
  background: linear-gradient(180deg, #f8d888, #e2a93c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(232, 181, 74, 0.16);
}
.btn.gold:not(:disabled):hover {
  background: linear-gradient(180deg, #fde29e, #ebb54b); border-color: #ffe7a6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 20px rgba(232, 181, 74, 0.3);
}
.btn.green { color: var(--green-hi); background: rgba(92, 207, 138, 0.13); border-color: rgba(92, 207, 138, 0.45); }
.btn.green:not(:disabled):hover { background: rgba(92, 207, 138, 0.22); border-color: rgba(92, 207, 138, 0.7); }
.btn.red { color: #ffc0b3; background: rgba(229, 84, 63, 0.13); border-color: rgba(229, 84, 63, 0.5); }
.btn.red:not(:disabled):hover { background: rgba(229, 84, 63, 0.26); border-color: rgba(255, 140, 120, 0.75); }
.btn.pearl { color: #ece9ff; background: rgba(205, 198, 255, 0.13); border-color: rgba(205, 198, 255, 0.45); }
.btn.pearl:not(:disabled):hover { background: rgba(205, 198, 255, 0.22); border-color: rgba(220, 214, 255, 0.75); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn.big { width: 100%; height: 44px; font-size: 15px; letter-spacing: 0.2px; }

/* giriş kutuları */
.login-card input, .qty, .form-row input, .search, .setting select, #chatIn {
  height: 34px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--well); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.login-card input:hover, .qty:hover, .form-row input:hover, .search:hover, .setting select:hover, #chatIn:hover { border-color: var(--line-3); }
.login-card input:focus, .qty:focus, .form-row input:focus, .search:focus, .setting select:focus, #chatIn:focus {
  outline: none; border-color: rgba(100, 181, 255, 0.75); box-shadow: var(--focus); background: rgba(2, 7, 14, 0.78);
}
::placeholder { color: var(--text-3); opacity: 1; }

/* çubuklar (can, tecrübe, ilerleme) */
.bar {
  position: relative; height: 14px; border-radius: var(--r-pill); overflow: hidden;
  background: rgba(2, 7, 14, 0.7);
  box-shadow: inset 0 0 0 1px rgba(150, 184, 222, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.bar > i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  transition: width var(--t-slow) var(--ease);
}
.bar > i::after {
  content: ''; position: absolute; inset: 0 0 50% 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}
.bar.hp > i { background: linear-gradient(90deg, var(--hp-a), var(--hp-b)); }
.bar.xp { height: 8px; }
.bar.xp > i { background: linear-gradient(90deg, var(--xp-a), var(--xp-b)); }
.bar > span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 10.5px/1 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0.2px;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* ---------- 4. GİRİŞ EKRANI ---------- */
#login {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--s5);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 520px 460px at 50% 50%, rgba(4, 10, 18, 0.55), rgba(4, 10, 18, 0) 100%),
    radial-gradient(ellipse 130% 110% at 50% 50%, transparent 55%, rgba(3, 8, 15, 0.6) 100%);
}
.login-wrap { width: min(480px, 100%); display: flex; flex-direction: column; align-items: center; animation: rise-in 0.7s var(--ease) both; }
.logo {
  font: 400 78px/0.95 var(--font-display); color: var(--gold-hi); white-space: nowrap; letter-spacing: 0.5px;
  text-shadow: 0 3px 0 rgba(58, 36, 4, 0.85), 0 10px 40px rgba(0, 0, 0, 0.7);
}
.logo i { font-style: normal; display: inline-block; color: var(--gold); margin: 0 14px; vertical-align: -0.02em; }
.logo .logo-anchor { width: 0.74em; height: 0.74em; filter: drop-shadow(0 3px 0 rgba(58, 36, 4, 0.85)); }
.tagline {
  margin: 10px 0 26px; font-size: 15px; font-weight: 500; letter-spacing: 0.2px;
  color: rgba(232, 238, 246, 0.86); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.login-card { width: min(380px, 100%); padding: 20px 24px; border-radius: var(--r-xl); background: var(--panel-strong); box-shadow: var(--sh-3), var(--sheen); }
.tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line);
}
.tab {
  flex: 1; height: 32px; border-radius: var(--r-sm); font-weight: 600; font-size: 13.5px; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.login-card label { display: block; margin-bottom: var(--s4); font-size: 12.5px; font-weight: 500; color: var(--text-2); text-align: left; }
.login-card input { display: block; width: 100%; height: 42px; margin-top: 6px; padding: 0 14px; font-size: 15px; user-select: text; }
#btnAuth { margin-top: var(--s1); }
.err { min-height: 18px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--red-hi); text-align: center; }
.login-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.45; color: var(--text-2); text-align: center;
}
.login-foot .ico { width: 20px; height: 20px; }

/* ---------- 5. OYUN ARAYÜZÜ ---------- */

/* üst çubuk: menü ve para birimleri */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6; height: var(--top-h);
  display: flex; align-items: center; gap: var(--s5); padding: 0 var(--s4);
  background: linear-gradient(180deg, rgba(8, 17, 29, 0.94), rgba(8, 17, 29, 0.84));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.brand {
  flex: none; font: 400 27px/1 var(--font-display); letter-spacing: 0.3px; white-space: nowrap;
  color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.brand i { font-style: normal; display: inline-block; color: var(--gold); opacity: 0.9; margin: 0 6px; vertical-align: -0.05em; }
.brand .logo-anchor { width: 0.72em; height: 0.72em; }
#menu { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 2px; }
.mbtn {
  position: relative; flex: none; width: 62px; height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--r-md); color: var(--text-2); font-size: 11.5px; font-weight: 500; line-height: 1;
  transition: color var(--t-fast), background var(--t-fast);
}
.mbtn .ring { display: block; width: 22px; height: 22px; }
.mbtn .ring svg { width: 100%; height: 100%; display: block; }
.mbtn .lbl { white-space: nowrap; }
.mbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.mbtn.on { color: var(--gold-hi); background: var(--gold-soft); }
.mbtn.on::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -4px; height: 2px;
  border-radius: 2px; background: var(--gold);
}
.mbtn .badge {
  position: absolute; top: 1px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  font: 700 10px/1 var(--font-ui); color: #fff; background: var(--red); box-shadow: 0 0 0 2px var(--navy-900);
  animation: pop-in var(--t-med) var(--ease);
}
#wallet { flex: none; display: flex; align-items: center; gap: 6px; }
.cur {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px;
  border-radius: var(--r-pill); background: var(--well); border: 1px solid var(--line);
}
.cur .ico { width: 18px; height: 18px; }
.cur b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#btnBuyPearl { margin-left: 2px; }

/* durum çerçevesi (sol üst) */
#status {
  position: fixed; top: var(--hud-top); left: var(--hud-gap); z-index: 5; width: 300px;
  display: flex; align-items: flex-start; gap: var(--s3); padding: 10px 12px 10px 10px;
}
.portrait {
  width: 64px; height: 64px; flex: none; padding: 5px; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 90% 70% at 50% 100%, #24527a, #112a45 60%, #0b1b2e);
}
.portrait.small { width: 50px; height: 50px; padding: 4px; }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-name { display: flex; align-items: center; gap: 6px; min-width: 0; height: 20px; font-size: 15px; font-weight: 600; white-space: nowrap; }
#stName { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-name .tag { flex: none; font-size: 13px; color: var(--sea); }
.st-name .tag:empty { display: none; }
.st-name .lvl {
  flex: none; margin-left: auto; display: inline-flex; align-items: baseline; gap: 3px;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill); line-height: 19px;
  font-size: 11px; font-weight: 600; color: var(--gold-hi); background: var(--gold-soft); border: 1px solid rgba(232, 181, 74, 0.32);
}
.st-name .lvl b { font-size: 13px; font-variant-numeric: tabular-nums; }
#status .bar.hp { height: 16px; }
#status .bar.xp { height: 12px; }
#status .bar.xp > span { font-size: 9.5px; font-weight: 500; }
.buffs { display: flex; flex-wrap: wrap; gap: 4px; }
.buffs:empty { display: none; }
.buff {
  width: 22px; height: 22px; padding: 2px; border-radius: var(--r-xs);
  color: var(--gold-hi); background: var(--well); border: 1px solid rgba(232, 181, 74, 0.38);
  animation: pop-in var(--t-med) var(--ease);
}
.buff.bad { border-color: rgba(229, 84, 63, 0.75); background: rgba(229, 84, 63, 0.14); }

/* hedef çerçevesi (üst orta) */
#target {
  position: fixed; top: var(--hud-top); left: 50%; transform: translateX(-50%); z-index: 5; width: 320px;
  display: flex; align-items: center; gap: var(--s3); padding: 10px 12px 10px 10px;
  border-color: rgba(229, 84, 63, 0.3);
  animation: target-in var(--t-med) var(--ease);
}
#target .st-main { gap: 5px; }
.tg-name { font-size: 14.5px; font-weight: 600; color: #ffb3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#target .bar.hp { height: 14px; }

/* görev takipçisi (sağ üst) */
#tracker {
  position: fixed; top: var(--hud-top); right: var(--hud-gap); z-index: 4; width: 252px;
  display: flex; flex-direction: column; gap: 6px;
}
.trk {
  position: relative; padding: 9px 12px 10px 15px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-1);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.trk::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.trk:hover { border-color: var(--line-3); }
.trk b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .bar.xp { height: 4px; margin-top: 7px; }
.trk.done { color: var(--green-hi); border-color: rgba(92, 207, 138, 0.35); }
.trk.done::before, .trk.done .bar > i { background: var(--green); }
.trk.done b::after { content: ' ✔'; color: var(--green); }

/* mini harita */
#minimap { position: fixed; right: var(--hud-gap); bottom: var(--above-ab); z-index: 5; padding: 8px; }
.mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 7px; font-size: 13px; }
#mmName { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mmPos { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
#mm { display: block; width: 220px; height: 165px; border-radius: var(--r-md); cursor: pointer; outline: 1px solid var(--line); outline-offset: -1px; }

/* cephane çubuğu (alt orta) */
#actionbar {
  position: fixed; left: 50%; bottom: var(--hud-gap); transform: translateX(-50%); z-index: 5;
  height: var(--ab-h); display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: var(--r-xl);
}
.group { display: flex; gap: 4px; }
.sep { width: 1px; height: 38px; margin: 0 4px; background: var(--line-2); }
.slot {
  position: relative; display: block; width: 46px; height: 54px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-med) var(--ease);
}
.slot > span { position: absolute; top: 7px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); transition: filter var(--t-fast), opacity var(--t-fast); }
.slot kbd { position: absolute; top: 3px; left: 3px; z-index: 1; height: 14px; min-width: 14px; padding: 0 3px; font-size: 9.5px; border-color: var(--line); }
.slot em {
  position: absolute; left: 2px; right: 2px; bottom: 4px; text-align: center;
  font: 600 11px/1 var(--font-ui); font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); white-space: nowrap; overflow: hidden;
}
.slot:hover { border-color: var(--line-3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); }
.slot:active { transform: translateY(1px); }
.slot.on {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 181, 74, 0.24), rgba(232, 181, 74, 0.06));
  box-shadow: 0 0 0 1px rgba(232, 181, 74, 0.35), 0 0 16px rgba(232, 181, 74, 0.28);
}
.slot.on em, .slot.on kbd { color: var(--gold-hi); }
.slot.on kbd { border-color: var(--gold-line); }
.slot.empty > span { filter: grayscale(1) brightness(0.7); opacity: 0.45; }
.slot.empty em { color: var(--text-3); }
.slot .cd {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit;
  font: 700 15px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: #fff;
  background: rgba(2, 7, 14, 0.72); text-shadow: 0 1px 3px #000;
}
.slot .cd.live { background: rgba(232, 181, 74, 0.2); color: var(--gold-hi); }
.attack {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-content: center;
  column-gap: 8px; row-gap: 4px; min-width: 96px; height: 54px; padding: 0 14px; margin-left: 4px;
  border-radius: var(--r-md); color: #fff; text-align: left;
  background: linear-gradient(180deg, #df563f, #a52f1e); border: 1px solid rgba(255, 160, 140, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(200, 60, 40, 0.22);
  transition: background var(--t-fast), box-shadow var(--t-med), transform 80ms;
}
.attack .ico { grid-row: 1 / span 2; width: 24px; height: 24px; }
.attack em { font: 700 13.5px/1 var(--font-ui); font-style: normal; letter-spacing: 0.2px; }
.attack kbd { justify-self: start; color: #ffd9d1; border-color: rgba(255, 200, 190, 0.35); background: rgba(60, 10, 4, 0.45); }
.attack:hover { background: linear-gradient(180deg, #ea6249, #b5351f); }
.attack:active { transform: translateY(1px); }
.attack.on {
  background: linear-gradient(180deg, #f0694d, #c13a21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 2px rgba(255, 170, 150, 0.55), 0 0 22px rgba(240, 90, 60, 0.5);
  animation: attack-pulse 1.1s ease-in-out infinite;
}

/* sohbet (sol alt) */
#chat { position: fixed; left: var(--hud-gap); bottom: var(--above-ab); z-index: 5; width: 340px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-tabs { display: flex; gap: 2px; }
.chat-tabs button {
  height: 26px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.chat-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.chat-tabs button.on { color: var(--text); background: rgba(255, 255, 255, 0.1); }
#chatLog {
  height: 136px; overflow-y: auto; padding: 6px 8px; border-radius: var(--r-md);
  background: rgba(2, 7, 14, 0.4); font-size: 13px; line-height: 1.45; user-select: text;
}
#chatLog div { margin: 0 0 2px; overflow-wrap: anywhere; }
#chatLog .n { font-weight: 600; color: var(--gold-hi); }
#chatLog .n.admin { color: #d4b4ff; }
#chatLog .t { font-weight: 600; color: var(--sea); }
#chatLog .sys { color: var(--text-2); font-style: italic; }
#chatLog .klan .n { color: var(--teal); }
#chatIn { width: 100%; height: 32px; padding: 0 10px; font-size: 13px; user-select: text; }

/* yardım satırı */
#hint {
  position: fixed; left: 50%; bottom: calc(var(--above-ab) - 2px); transform: translateX(-50%); z-index: 4;
  font-size: 12px; color: rgba(232, 238, 246, 0.6); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  white-space: nowrap; pointer-events: none;
}

/* ekran uzaklaştırma paneli (sol, durum çerçevesinin altında) */
#zoomPanel {
  position: fixed; left: var(--hud-gap); top: calc(var(--hud-top) + 120px); z-index: 6; width: 42px; padding: 5px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: var(--r-lg);
}
#zoomPanel button {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm);
  font: 500 19px/1 var(--font-ui); color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
#zoomPanel button:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
#zoomPanel button.zreset { height: 26px; font-size: 15px; }
#zoomSlider { writing-mode: vertical-lr; direction: rtl; width: 16px; height: 96px; margin: 2px 0; accent-color: var(--gold); cursor: pointer; }

/* bildirimler */
#toasts {
  position: fixed; top: calc(var(--hud-top) + 86px); left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.toast {
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--text);
  background: rgba(8, 16, 28, 0.92); border: 1px solid var(--line-2); box-shadow: var(--sh-1);
  animation: toast-in var(--t-med) var(--ease), toast-out 0.45s ease-in 3.45s forwards;
}
.toast.loot { color: var(--gold-hi); border-color: rgba(232, 181, 74, 0.4); }
.toast.warn { color: #ffc29c; border-color: rgba(255, 150, 90, 0.45); }
.toast.level {
  padding: 9px 20px; font-size: 15px; color: var(--gold-ink); border-color: transparent;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 26px rgba(232, 181, 74, 0.45);
}
#banner {
  position: fixed; top: 26%; left: 50%; transform: translateX(-50%); z-index: 8; pointer-events: none;
  text-align: center; white-space: nowrap; font: 400 56px/1 var(--font-display); color: var(--gold-hi);
  text-shadow: 0 3px 0 rgba(40, 24, 2, 0.8), 0 0 40px rgba(0, 0, 0, 0.75);
  animation: banner 3s var(--ease) forwards;
}
#banner small {
  display: block; margin-top: 10px; font: 600 16px/1.2 var(--font-ui); letter-spacing: 0.3px;
  color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
#portalBar {
  position: fixed; left: 50%; bottom: calc(var(--above-ab) + 18px); transform: translateX(-50%); z-index: 6; width: 280px;
  padding: 10px 14px 12px; border-radius: var(--r-lg); text-align: center;
  background: var(--panel); border: 1px solid rgba(79, 216, 196, 0.4); box-shadow: var(--sh-2);
}
.pb-label { margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--teal-hi); }
#portalBar .bar { height: 6px; }
#portalBar .bar > i { background: linear-gradient(90deg, #2aa3c4, var(--teal-hi)); transition: none; }

/* ---------- 6. PENCERELER ---------- */
#windows { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  max-height: calc(100vh - 76px); border-radius: var(--r-xl);
  background: var(--panel-strong); box-shadow: var(--sh-3), var(--sheen);
  animation: win-in var(--t-med) var(--ease);
}
.win-head {
  flex: none; display: flex; align-items: center; gap: var(--s3); height: 56px; padding: 0 var(--s3) 0 var(--s5);
  border-bottom: 1px solid var(--line); cursor: move;
}
.win-head .ico { width: 22px; height: 22px; color: var(--gold); }
.win-head h3 {
  flex: 1; min-width: 0; margin: 0; font: 400 27px/1.1 var(--font-display); letter-spacing: 0.3px;
  color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-close {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-md);
  color: var(--text-2); transition: background var(--t-fast), color var(--t-fast);
}
.win-close svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.win-close:hover { color: #fff; background: rgba(229, 84, 63, 0.85); }
.win-body { flex: 1; min-height: 0; display: flex; }
.win-side {
  flex: none; width: 186px; padding: var(--s3) var(--s2); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(2, 7, 14, 0.24); border-right: 1px solid var(--line); border-bottom-left-radius: var(--r-xl);
}
.side-btn {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px;
  border-radius: var(--r-md); text-align: left; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.side-btn .ico { width: 24px; height: 24px; opacity: 0.75; filter: saturate(0.6); transition: opacity var(--t-fast), filter var(--t-fast); }
.side-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.side-btn:hover .ico { opacity: 0.95; }
.side-btn.on { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.side-btn.on .ico { opacity: 1; filter: none; color: var(--gold-hi); }
.side-btn.on::before { content: ''; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.win-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 20px var(--s5) var(--s5); }

/* pencere içi yazı düzeni */
.win-main h4 { margin: 28px 0 var(--s3); font: 600 var(--fs-lg)/1.3 var(--font-ui); color: var(--text); letter-spacing: 0.1px; }
.win-main h4:first-child { margin-top: 0; }
.win-main p.note { max-width: 74ch; margin: 0 0 var(--s4); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.win-main h4 + p.note { margin-top: -4px; }
.sub { font-size: 12.5px; color: var(--text-2); }
.link { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.link:hover { color: #fff; border-color: #fff; }
.ok { color: var(--green-hi); }
div.empty { padding: 36px 16px; text-align: center; color: var(--text-2); font-size: 14px; }

/* yatay sekmeler */
.tabs-row { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs-row button {
  position: relative; height: 38px; padding: 0 var(--s3); font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: color var(--t-fast);
}
.tabs-row button:hover { color: var(--text); }
.tabs-row button.on { color: var(--text); }
.tabs-row button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------- 7. PENCERE İÇERİKLERİ ---------- */

/* kart ızgarası */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s3); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); padding: 14px;
  border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.card:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.055); }
.card.locked { opacity: 0.55; }
.card.owned::after, .card.active-ship::after {
  content: 'SAHİPSİN'; position: absolute; top: 22px; right: 22px; padding: 4px 8px; border-radius: var(--r-pill);
  font: 700 10px/1 var(--font-ui); letter-spacing: 0.6px; color: var(--green-hi);
  background: rgba(10, 30, 22, 0.85); border: 1px solid rgba(92, 207, 138, 0.5);
}
.card.active-ship::after { content: 'KULLANIMDA'; color: var(--gold-ink); background: var(--gold); border-color: transparent; }
.card-top { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.card-top > div:last-child { min-width: 0; }
.card-ico {
  width: 52px; height: 52px; flex: none; padding: 6px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 35%, #1e3c5e, #0b1828 78%); border: 1px solid var(--line);
}
.card-ico.ship {
  width: 100%; height: 120px; padding: 8px 16px;
  background: radial-gradient(ellipse 85% 55% at 50% 100%, #1f5079, transparent), linear-gradient(180deg, #132a47, #0c1d33);
}
.card h5 { margin: 0; font: 600 15px/1.25 var(--font-ui); color: var(--text); }
.card .sub { margin-top: 2px; }
.card .desc { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.stats {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: var(--s2);
  border-top: 1px solid var(--line); font-size: 13px;
}
.stats span, .statlist span { color: var(--text-2); }
.stats b, .statlist b { text-align: right; font-variant-numeric: tabular-nums; }
.price { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price .ico { width: 16px; height: 16px; }
.prices { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.lvlreq { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--red-hi); }
.owned-n { font-size: 12.5px; color: var(--text-2); }
.owned-n b { color: var(--text); font-variant-numeric: tabular-nums; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s2); }
.buy-row .btn.gold { margin-left: auto; }
.qty { width: 74px; height: 30px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; user-select: text; }
.qty::-webkit-inner-spin-button, .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-quick { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--line); }
.qty-quick button {
  height: 24px; padding: 0 7px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast);
}
.qty-quick button:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* elit gemiler */
h4.elite-h { color: var(--teal-hi); }
.card.elite {
  border-color: rgba(79, 216, 196, 0.42);
  background: linear-gradient(180deg, rgba(79, 216, 196, 0.08), rgba(255, 255, 255, 0.02));
}
.card.elite:hover { border-color: rgba(79, 216, 196, 0.7); }
.card.elite h5 { color: var(--teal-hi); }
.card.elite .card-ico.ship { height: 150px; }
.ship-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); pointer-events: none; }

/* gemi ve donanım */
.hangar { display: grid; grid-template-columns: 300px 1fr; gap: var(--s5); align-items: start; }
.ship-show {
  padding: var(--s4); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(ellipse 90% 45% at 50% 32%, #1f4c74, transparent), linear-gradient(180deg, #132a47, #0b1a2d);
}
.ship-show .card-ico.ship { height: 150px; padding: 0; background: none; border: 0; }
.ship-show h5 { margin: var(--s2) 0 2px; text-align: center; font: 400 28px/1.1 var(--font-display); color: var(--gold-hi); }
.ship-show .sub { text-align: center; }
.statlist { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: var(--s3); font-size: 13px; }
.ship-show .statlist { padding-top: var(--s3); border-top: 1px solid var(--line); }
.hangar .btn.big { margin-top: var(--s3); }
.slots-sec { margin-bottom: var(--s5); }
.slots-sec h6 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 var(--s2); font: 600 15px/1.3 var(--font-ui); color: var(--text); }
.slots-sec h6 small { font-size: 12.5px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.slotbar { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: var(--s3); }
.slotbar i { width: 12px; height: 12px; border-radius: 3px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.slotbar i.f { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: none; }
.eqrow { display: flex; align-items: center; gap: var(--s3); padding: 6px 8px; border-radius: var(--r-md); transition: background var(--t-fast); }
.eqrow:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.eqrow:hover { background: rgba(255, 255, 255, 0.055); }
.eqrow .card-ico { width: 38px; height: 38px; padding: 3px; }
.eqrow .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.eqrow .nm small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqrow .cnt { width: 70px; text-align: center; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.eqrow .cnt b { color: var(--text); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 6px; }
.inv {
  min-width: 0; display: flex; align-items: center; gap: var(--s2); padding: 6px 8px; border-radius: var(--r-md);
  background: var(--raise); border: 1px solid var(--line); font-size: 12px;
}
.inv > div:last-child { min-width: 0; }
.inv .card-ico { width: 32px; height: 32px; padding: 3px; }
.inv b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.inv .sub { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* görevler */
.quest {
  display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s4); padding: 14px var(--s4); margin-bottom: var(--s2);
  border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line);
  transition: border-color var(--t-fast);
}
.quest:hover { border-color: var(--line-2); }
.quest.finished { opacity: 0.55; }
.quest h5 { display: flex; align-items: center; gap: var(--s2); margin: 0; font: 600 15px/1.3 var(--font-ui); color: var(--text); }
.quest .daily {
  padding: 3px 7px; border-radius: var(--r-pill); font: 700 10px/1 var(--font-ui); letter-spacing: 0.5px;
  color: #062a24; background: var(--teal);
}
.quest .acts { grid-row: 1 / span 5; grid-column: 2; min-width: 112px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 6px; }
.quest .acts .sub, .quest .acts .lvlreq { align-self: center; text-align: center; }
.quest .bar.xp { height: 14px; margin: 2px 0; }
.quest .rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); }
.quest .rewards span { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text); }
.quest .rewards .ico { width: 16px; height: 16px; }
.more-btn { margin-top: var(--s3); }

/* klan */
.clan-head {
  display: flex; align-items: center; gap: var(--s4); padding: var(--s4); margin-bottom: var(--s2);
  border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line);
}
.clan-head h4 { margin: 0 0 2px; font-size: 18px; }
.clan-head .desc { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.clan-flag {
  width: 54px; height: 54px; flex: none; padding: 11px; border-radius: var(--r-md);
  color: var(--gold-hi); background: var(--gold-soft); border: 1px solid rgba(232, 181, 74, 0.28);
}
.clan-acts { margin-left: auto; display: flex; gap: 6px; }
.form-row { display: flex; gap: var(--s2); margin-bottom: var(--s2); }
.form-row input, .search { flex: 1; min-width: 0; user-select: text; }
.form-row input.tag-in { flex: 0 0 120px; }
.tag { color: var(--sea); }

/* listeler / tablolar */
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th {
  height: 34px; padding: 0 var(--s3); text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}
table.list td { height: 42px; padding: 4px var(--s3); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.list tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.list tr.me td { background: var(--gold-soft); }
table.list tr.me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
table.list td.r { text-align: right; white-space: nowrap; }
table.list td.r .btn + .btn { margin-left: 6px; }
table.list .rank { width: 48px; font-weight: 700; color: var(--text-2); }
table.list tr.click { cursor: pointer; }
table.list td.cmd { width: 240px; white-space: nowrap; font: 600 12.5px/1.3 var(--font-mono); color: var(--gold-hi); }
.medal {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.medal.m1 { color: #2a1a02; background: linear-gradient(180deg, #ffe39a, #d79f35); }
.medal.m2 { color: #18202b; background: linear-gradient(180deg, #f1f5fa, #a5b3c3); }
.medal.m3 { color: #2a1406; background: linear-gradient(180deg, #f2bf93, #b77441); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #4a5868; vertical-align: 1px; }
.dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* vudu kazanı */
.cauldron { display: grid; grid-template-columns: 300px 1fr; gap: var(--s5); }
.cauldron-art {
  position: relative; height: 270px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 55% at 50% 82%, #1e5a33, #0b2014 55%, #060e0a);
}
.cauldron-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cauldron-art .bub {
  position: absolute; bottom: 110px; width: 12px; height: 12px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #d9ffe4, #49d17a 60%, transparent 70%);
  animation: bubble 2.4s infinite ease-in;
}
.cauldron-art.boil .bub { animation-duration: 0.8s; }
.pieces { margin: var(--s4) 0; }
.pieces .bar.xp { height: 14px; margin-top: 6px; }
.mojo-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.mojo-row .ico { width: 24px; height: 24px; }
.mojo-row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.throw-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.loot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: var(--s2); }
.loot { padding: 8px 10px; border-radius: var(--r-md); font-size: 13px; background: rgba(92, 207, 138, 0.1); border: 1px solid rgba(92, 207, 138, 0.35); animation: pop-in var(--t-med) var(--ease); }
.loot b { color: var(--green-hi); }
.inv.elite-odds { border-color: rgba(79, 216, 196, 0.5); background: rgba(79, 216, 196, 0.07); }
.inv.elite-odds b { color: var(--teal-hi); }

/* deniz haritası: koyu deniz kartı */
.wm-scroll { max-height: 470px; overflow-y: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.worldmap {
  position: relative; width: 100%; height: 420px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(130, 175, 225, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(130, 175, 225, 0.05) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 70% 40% at 35% 18%, rgba(40, 96, 150, 0.45), transparent),
    linear-gradient(180deg, #0f2741, #0a1b2f 55%, #081526);
}
.worldmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-node {
  position: absolute; width: 120px; transform: translate(-50%, -50%); text-align: center;
  color: var(--text); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(5, 12, 22, 0.9);
}
.wm-node .pin {
  width: 40px; height: 40px; margin: 0 auto 4px; display: grid; place-items: center; border-radius: 50%;
  font: 700 15px/1 var(--font-ui); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle at 40% 30%, #4583bb, #173a5f);
  box-shadow: 0 0 0 2px rgba(8, 20, 34, 0.95), 0 0 0 3px rgba(150, 184, 222, 0.45), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.wm-node:hover .pin { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(8, 20, 34, 0.95), 0 0 0 3px rgba(200, 225, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.55); }
.wm-node.here .pin {
  color: var(--gold-ink); text-shadow: none; background: radial-gradient(circle at 40% 30%, #ffe7a8, #d49b30);
  box-shadow: 0 0 0 2px rgba(8, 20, 34, 0.95), 0 0 0 3px var(--gold-hi), 0 0 20px rgba(246, 210, 127, 0.6);
}
.wm-node.here b { color: var(--gold-hi); }
.wm-node.locked { opacity: 0.5; }
.wm-node.locked .pin { filter: grayscale(0.85); }
.wm-node b { display: block; font: 600 13px/1.15 var(--font-ui); }
.wm-node small { font-size: 11.5px; color: var(--text-2); }
.wm-node .cnt { font-size: 11px; font-weight: 600; color: var(--teal-hi); }
.wm-node.deep { width: 128px; }
.wm-node.deep .pin { width: 36px; height: 36px; font-size: 13px; }
.wm-node.deep b { font-size: 12.5px; line-height: 1.1; }
.wm-scroll + p.note { margin-top: var(--s3); }

/* inci ve premium */
.premium-hero {
  display: flex; align-items: center; gap: 20px; padding: 20px var(--s5); margin-bottom: var(--s2);
  border-radius: var(--r-lg); border: 1px solid rgba(205, 198, 255, 0.32);
  background: linear-gradient(110deg, rgba(205, 198, 255, 0.12), rgba(232, 181, 74, 0.07));
}
.premium-hero > .ico { width: 52px; height: 52px; color: var(--gold-hi); }
.premium-hero h4 { margin: 0 0 2px; font-size: 18px; }
.premium-hero .state { margin-top: 6px; }
.hero-buy { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.pack { align-items: center; text-align: center; padding-top: 28px; }
.pack .card-ico { width: 64px; height: 64px; padding: 8px; border-radius: 50%; }
.pack .big { font: 700 26px/1.1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--pearl); }
.pack .bonus { min-height: 18px; font-size: 12.5px; font-weight: 500; color: var(--teal-hi); }
.pack .btn { width: 100%; margin-top: auto; }
.ribbon {
  position: absolute; top: 12px; left: 12px; padding: 4px 8px; border-radius: var(--r-pill);
  font: 700 10px/1 var(--font-ui); letter-spacing: 0.6px; color: #062a24; background: var(--teal);
}

/* ayarlar */
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 48px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.setting input[type='range'] { width: 220px; accent-color: var(--gold); cursor: pointer; }
.setting select {
  min-width: 230px; padding: 0 34px 0 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239fb2c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.setting select option { background: var(--navy-800); color: var(--text); }
.setting input[type='checkbox'] {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 22px; margin: 0;
  border-radius: var(--r-pill); background: rgba(150, 184, 222, 0.24); cursor: pointer;
  transition: background var(--t-med) var(--ease);
}
.setting input[type='checkbox']::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #dbe5f1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); transition: transform var(--t-med) var(--ease);
}
.setting input[type='checkbox']:checked { background: var(--gold); }
.setting input[type='checkbox']:checked::before { transform: translateX(18px); background: #fff; }

/* ---------- 8. KATMANLAR: diyalog, ipucu, yükleme ---------- */
.modal {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--s4);
  background: rgba(3, 7, 13, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fade-in var(--t-med) ease-out;
}
.dialog { width: min(440px, 100%); padding: 32px 32px 28px; text-align: center; border-radius: var(--r-xl); background: var(--panel-strong); box-shadow: var(--sh-3), var(--sheen); animation: pop-in 0.28s var(--ease); }
.dialog h2 { margin: 0 0 var(--s2); font: 400 42px/1.05 var(--font-display); color: var(--gold-hi); }
.dialog p { margin: 0 0 var(--s5); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

#tooltip {
  position: fixed; z-index: 40; max-width: 280px; padding: 8px 11px; border-radius: var(--r-md); pointer-events: none;
  font-size: 12.5px; line-height: 1.45; color: var(--text-2);
  background: rgba(8, 16, 28, 0.97); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  animation: fade-in var(--t-fast) ease-out;
}
#tooltip b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--text); }

#loading {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #0f2440, var(--abyss) 75%);
  font: 400 32px/1.2 var(--font-display); color: var(--gold-hi);
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loading.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-bar { position: relative; width: 160px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(150, 184, 222, 0.16); }
.ld-bar::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: loading 1.3s ease-in-out infinite; }

/* ---------- 9. HAREKETLER ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes win-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes target-in { from { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes banner {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px); }
  12% { opacity: 1; transform: translateX(-50%); }
  80% { opacity: 1; transform: translateX(-50%); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}
@keyframes attack-pulse {
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 2px rgba(255, 170, 150, 0.3), 0 0 10px rgba(240, 90, 60, 0.28); }
}
@keyframes bubble {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- 10. EKRAN BOYUTLARI ---------- */
/* Geniş ekran (1700px+): sohbet ve mini harita cephane çubuğuyla aynı alt sırada */
@media (min-width: 1700px) {
  #chat { bottom: var(--hud-gap); width: 360px; }
  #minimap { bottom: var(--hud-gap); }
}
@media (max-width: 1365px) {
  .brand, #hint { display: none; }
}
@media (max-height: 800px) {
  #chatLog { height: 112px; }
}
@media (max-width: 980px) {
  .mbtn { width: 52px; }
  .mbtn .lbl { display: none; }
  #tracker { display: none; }
  #chat { width: 280px; }
}

/* Hareket azaltma tercihi: geçişler anında, süs animasyonları kapalı */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .win, .dialog, .modal, #target, .toast, .buff, .loot, .mbtn .badge, .login-wrap, #tooltip, #banner,
  .attack.on, .cauldron-art .bub, .ld-bar::after { animation: none !important; }
}

/* ---------- Arayüz düzenleme modu ---------- */
body.layout-edit #hud > *:not(#windows) { outline: 2px dashed rgba(232, 197, 106, 0.85); outline-offset: 2px; }
body.layout-edit #target.hidden { display: flex !important; opacity: 0.85; }
.layout-handle { position: absolute; inset: 0; z-index: 50; cursor: move; border-radius: inherit;
  background: rgba(232, 197, 106, 0.10); display: flex; align-items: flex-start; justify-content: center; }
.layout-handle span { margin-top: -10px; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.6 var(--font-ui, system-ui, sans-serif);
  color: #1a1205; background: #e8c56a; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); white-space: nowrap; }
.layout-handle:hover { background: rgba(232, 197, 106, 0.18); }
#layoutBar { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 12px; color: #e8eef5; background: rgba(10, 22, 36, 0.92); border: 1px solid rgba(232, 197, 106, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font: 500 13px var(--font-ui, system-ui, sans-serif); }
#layoutBar b { color: #e8c56a; }
#zoomPanel.placed, #actionbar.placed, #target.placed { transform: none; }

/* Saldır düğmesindeki top bekleme çubukları */
#btnAttack { position: relative; }
#btnAttack .cdbars { position: absolute; left: 8px; right: 8px; bottom: 5px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
#btnAttack .cdbars i { display: block; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
#btnAttack .cdbars i b { display: block; height: 100%; background: linear-gradient(90deg, #ffe08a, #ffb648); transform-origin: left center; transition: transform 0.08s linear; }

/* Kazandan çıkan gemi rozeti */
.badge.free { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #0e2a1c; background: linear-gradient(90deg, #8cf0b4, #5ad08c); }
/* Girdap kartları */
.vortex-list { display: grid; gap: 10px; margin-top: 8px; }
.vortex { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.vortex.locked { opacity: 0.55; }
.vortex h5 { margin: 0; font-size: 15px; color: #f1dca0; }
.vortex .sub { grid-column: 1 / 2; }
.vortex .btn { grid-row: 1 / span 3; grid-column: 2; }

/* FPS / ping göstergesi */
#perfHud { position: fixed; right: 10px; bottom: 6px; z-index: 30; font: 600 11px/1 system-ui, sans-serif; color: #9fe0b0;
  background: rgba(8, 16, 24, .55); padding: 4px 7px; border-radius: 6px; pointer-events: auto; letter-spacing: .02em; }
#perfHud.mid { color: #f2d27a; }
#perfHud.bad { color: #ff8a7a; }

/* ---- grup paneli (sol, yakınlaştırma panelinin yanında) ---- */
#groupPanel {
  position: fixed; left: calc(var(--hud-gap) + 52px); top: calc(var(--hud-top) + 120px); z-index: 5; width: 232px;
  padding: 8px 9px 9px; display: flex; flex-direction: column; gap: 6px;
}
body.layout-edit #groupPanel.hidden { display: flex !important; min-height: 60px; }
.gp-head { display: flex; align-items: center; gap: 6px; height: 22px; }
.gp-title { font-size: 13px; font-weight: 700; color: var(--green-hi); letter-spacing: .3px; }
.gp-count { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gp-acts { margin-left: auto; display: flex; gap: 3px; }
.gp-acts button, .gp-tools button {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: var(--r-xs);
  font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, 0.05);
  transition: background var(--t-fast), color var(--t-fast);
}
.gp-acts button:hover, .gp-tools button:hover { color: var(--text); background: rgba(255, 255, 255, 0.13); }
.gp-list { display: flex; flex-direction: column; gap: 5px; }
.gp-row {
  padding: 6px 7px 7px; border-radius: var(--r-md); background: rgba(2, 7, 14, 0.35);
  border: 1px solid rgba(92, 207, 138, 0.16); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.gp-row:hover { border-color: rgba(92, 207, 138, 0.45); background: rgba(92, 207, 138, 0.07); }
.gp-row.self { border-color: rgba(232, 181, 74, 0.28); cursor: default; }
.gp-row.off { opacity: .55; }
.gp-row.dead .bar > i { opacity: .25; }
.gp-top { display: flex; align-items: center; gap: 5px; height: 20px; margin-bottom: 4px; font-size: 12.5px; }
.gp-crown { color: var(--gold-hi); font-size: 12px; }
.gp-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-row.self .gp-name { color: var(--gold-hi); }
.gp-lvl { font-size: 10.5px; color: var(--text-2); flex: none; }
.gp-tools { margin-left: auto; display: none; gap: 3px; }
.gp-row:hover .gp-tools { display: flex; }
.gp-row .bar.hp { height: 10px; }
.gp-row .bar > span { font-size: 9px; }
.gp-sub { margin-top: 4px; font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* grup davetleri (üst orta) */
#invites { position: fixed; left: 50%; top: calc(var(--hud-top) + 92px); transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 8px; }
.invite { width: 330px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-color: rgba(92, 207, 138, 0.45); animation: pop-in var(--t-med) var(--ease); }
.inv-text { font-size: 13.5px; color: var(--text); }
.inv-text b { color: var(--green-hi); }
.inv-btns { display: flex; gap: 8px; justify-content: flex-end; }

#tgInvite { align-self: flex-start; margin-top: 2px; }
#chatLog .grup .t, #chatLog .grup .n { color: #8dffb0; }
#chatLog .grup.sys { font-style: italic; color: var(--green-hi); }
#gpInv { width: 100%; height: 28px; padding: 0 8px; font-size: 12px; user-select: text; }

/* mini harita bakış modu */
#lookHint {
  position: fixed; left: 50%; top: calc(var(--hud-top) + 8px); transform: translateX(-50%); z-index: 21;
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--text);
  background: rgba(8, 20, 34, 0.82); border: 1px solid rgba(110, 190, 255, 0.45); box-shadow: var(--sh-1);
  pointer-events: none; white-space: nowrap;
}
#lookHint b { color: #8fd0ff; }
#lookHint kbd { font: 600 11px/1 var(--font-ui); padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.1); }
#mm { cursor: pointer; }

/* görev hedefinin yeri */
.quest .qwhere { font-size: 12px; color: var(--text-2); }
.quest .qwhere b { color: var(--text); font-weight: 600; }
.quest .qwhere.here { color: var(--green-hi); }

/* satış */
.eqrow .btn.sell { color: #ffcf8a; border-color: rgba(232, 181, 74, 0.35); }
.sell-dlg { width: 380px; display: flex; flex-direction: column; gap: 14px; }
.sell-dlg h2 { margin: 0; font-size: 30px; }
.sell-dlg p { margin: 0; font-size: 14px; }
.sell-dlg p b { color: var(--gold-hi); }
.sell-dlg small { color: var(--text-2); }
.sell-qty { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; }
.sell-qty input { width: 70px; height: 28px; text-align: center; }
.sell-btns { display: flex; justify-content: center; gap: 8px; }

/* ---- arkadaşlar ve özel sohbet ---- */
.win-main:has(.friends) { padding: 0; overflow: hidden; }
.friends { display: grid; grid-template-columns: 320px 1fr; height: 100%; min-height: 0; }
.fr-list { overflow-y: auto; padding: 16px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fr-list h6 { margin: 14px 2px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.fr-add { display: flex; gap: 6px; }
.fr-add input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; font-size: 13px; user-select: text; }
.fr-none { padding: 2px 4px 6px; font-size: 12px; }
.fr-req { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-md); background: rgba(92, 207, 138, 0.07); border: 1px solid rgba(92, 207, 138, 0.25); }
.fr-req.out { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.fr-req .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-req small, .fr-row small { font-weight: 500; color: var(--text-2); }
.fr-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-md); cursor: pointer; border: 1px solid transparent; transition: background var(--t-fast); }
.fr-row:hover { background: rgba(255, 255, 255, 0.05); }
.fr-row.sel { background: rgba(232, 181, 74, 0.1); border-color: rgba(232, 181, 74, 0.3); }
.fr-row:not(.on) { opacity: .72; }
.dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5b6675; box-shadow: 0 0 0 2px rgba(0,0,0,.35); margin-right: 6px; vertical-align: 1px; }
.fr-row .dot { margin-right: 0; }
.fr-row.on .dot, .dot.on { background: #4fe08a; box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 8px rgba(79, 224, 138, .7); }
.fr-txt { flex: 1; min-width: 0; }
.fr-txt .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-txt .tag { color: var(--sea); }
.fr-txt .sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-unread { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font: 700 10.5px/1 var(--font-ui); color: #fff; background: var(--red); }
.fr-tools { display: none; gap: 3px; }
.fr-row:hover .fr-tools { display: flex; }
.fr-tools button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: var(--r-xs); font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.06); }
.fr-tools button:hover { color: var(--text); background: rgba(255,255,255,.14); }
.fr-chat { display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; gap: 10px; }
.fr-chat > .empty { margin: auto; }
.fr-head { display: flex; align-items: center; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.fr-head .sub { font-size: 12.5px; }
.fr-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; user-select: text; }
.fr-day { align-self: center; margin: 8px 0 2px; padding: 2px 10px; border-radius: 999px; font-size: 11px; color: var(--text-2); background: rgba(255,255,255,.05); }
.fr-msg { align-self: flex-start; max-width: 75%; display: flex; flex-direction: column; gap: 2px; }
.fr-msg .bub { padding: 7px 11px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.fr-msg small { font-size: 10.5px; color: var(--text-2); padding: 0 4px; }
.fr-msg.mine { align-self: flex-end; align-items: flex-end; }
.fr-msg.mine .bub { border-radius: 14px 14px 4px 14px; background: rgba(232, 181, 74, 0.16); border-color: rgba(232, 181, 74, 0.35); }
.fr-send { display: flex; gap: 8px; }
.fr-send input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; font-size: 13.5px; user-select: text; }

/* ---- yönetici: oyuncu listesi ---- */
.ap-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ap-bar input { width: 220px; height: 30px; padding: 0 10px; font-size: 13px; user-select: text; }
.ap-bar .sub { flex: 1; }
.ap-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 4px 8px; }
.ap-table td { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
.ap-table .tag { color: var(--sea); font-weight: 600; }
.ap-badge { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.ap-badge.adm { color: #d4b4ff; background: rgba(170, 120, 255, .15); }
.ap-badge.prem { color: var(--gold-hi); background: var(--gold-soft); }
.ap-badge.ban { color: #ff9a85; background: rgba(229, 84, 63, .18); }
