/* =====================================================================
   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: 92px;                                        /* cephane çubuğu yüksekliği (üstte hızlı yuvalar, altta kategoriler) */
  --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);
}
.hw-tag {
  margin: -16px 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #ffd9a8;
  background: linear-gradient(90deg, rgba(90, 30, 140, 0.75), rgba(150, 60, 10, 0.75)); border: 1px solid rgba(255, 150, 60, 0.45);
  box-shadow: 0 0 18px rgba(170, 90, 255, 0.35); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); animation: hw-glow 2.4s ease-in-out infinite;
}
@keyframes hw-glow { 50% { box-shadow: 0 0 26px rgba(255, 140, 40, 0.45); } }
.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; }

/* dar pencere (masaüstü): kategori düğmelerinde sadece simge ve ok kalır, yuvalar biraz küçülür */
@media (max-width: 820px) {
  html:not(.mobile) .ab-cl { display: none; }
  html:not(.mobile) .ab-cat { justify-content: center; padding: 0 6px; }
  html:not(.mobile) .slot { width: 42px; }
  html:not(.mobile) .attack { width: 80px; }
}
/* cephane çubuğu (alt orta): üstte 10 hızlı yuva, altta kategori düğmeleri, sağda Saldır */
#actionbar {
  position: fixed; left: 50%; bottom: var(--hud-gap); transform: translateX(-50%); z-index: 5;
  height: var(--ab-h); display: flex; align-items: stretch; gap: 8px; padding: 6px 8px; border-radius: var(--r-xl);
}
.ab-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.group { display: flex; gap: 4px; }
#abSlots { gap: 5px; }
/* kategori düğmeleri: seçili eşyanın simgesi + adı + açılır menü oku (Seafight gibi) */
#abCats { display: flex; gap: 4px; height: 28px; }
.ab-cat {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 7px 0 4px;
  border-radius: 8px; font: 600 11.5px/1 var(--font-ui); color: var(--text-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.ab-cat:hover { color: var(--text); border-color: var(--line-3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); }
.ab-cat.on { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(180deg, rgba(232, 181, 74, 0.26), rgba(232, 181, 74, 0.06)); box-shadow: 0 0 12px rgba(232, 181, 74, 0.22); }
.ab-ci { position: relative; width: 20px; height: 20px; display: block; flex: none; }
.ab-ci svg { width: 100%; height: 100%; display: block; }
.ab-cl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-cn { margin-left: auto; padding-left: 4px; font: 600 10.5px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--text-3); white-space: nowrap; }
.ab-cat.on .ab-cn { color: var(--gold-hi); }
.ab-dot { position: absolute; left: 18px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: transparent; pointer-events: none; }
.ab-cat.lit .ab-dot { background: #6dff9a; box-shadow: 0 0 0 1.5px rgba(4, 20, 10, 0.85), 0 0 7px #6dff9a; }
.ab-car { flex: none; width: 10px; height: 10px; margin-left: 2px; opacity: 0.7; transition: transform var(--t-fast); }
.ab-cat .ab-cn + .ab-dot + .ab-car { margin-left: 2px; }
.ab-cat .ab-cn:empty + .ab-dot + .ab-car { margin-left: auto; }
.ab-car svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ab-cat.on .ab-car { transform: rotate(180deg); opacity: 1; }
.ab-reset { flex: none; width: 28px; height: 28px; border-radius: 8px; font-size: 15px; line-height: 1; color: var(--text-3); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.ab-reset:hover { color: var(--text); border-color: var(--line-3); }

/* kategori menüsü (çubuğun üstünde açılır) */
#abPop { position: fixed; z-index: 30; width: max-content; max-width: min(460px, calc(100vw - 16px)); padding: 10px 10px 12px; border-radius: var(--r-lg); animation: abpop-in 140ms var(--ease); }
@keyframes abpop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.abp-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.abp-head b { font: 700 13.5px/1 var(--font-ui); color: var(--gold-hi); }
.abp-head span { flex: 1; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abp-x { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--text-2); }
.abp-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.abp-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.abp-grid { display: grid; grid-template-columns: repeat(5, 78px); gap: 6px; }
.abp-it {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 92px; padding: 8px 4px 6px;
  border-radius: var(--r-md); border: 1px solid var(--line); touch-action: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: border-color var(--t-fast), background var(--t-fast), transform 80ms;
}
.abp-it:hover { border-color: var(--line-3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)); }
.abp-it:active { transform: translateY(1px); }
.abp-it.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.3); }
.abp-ic { width: 32px; height: 32px; flex: none; }
.abp-ic svg { width: 100%; height: 100%; display: block; }
.abp-it em { font: 700 12px/1 var(--font-ui); font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
.abp-it.on em { color: var(--gold-hi); }
.abp-it small { font: 500 10px/1.2 var(--font-ui); color: var(--text-2); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.abp-it kbd { position: absolute; top: 3px; left: 3px; height: 14px; min-width: 14px; padding: 0 3px; font-size: 9.5px; border-color: var(--gold-line); color: var(--gold-hi); }
.abp-it.empty .abp-ic { filter: grayscale(1) brightness(0.75); opacity: 0.5; }
.abp-it.empty em { color: var(--text-3); }

/* sürükle-bırak */
.ab-ghost { position: fixed; left: 0; top: 0; z-index: 1000; width: 42px; height: 42px; padding: 5px; border-radius: 10px; pointer-events: none;
  background: rgba(12, 24, 40, 0.92); border: 1px solid var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(232, 181, 74, 0.35); }
.ab-ghost svg { width: 100%; height: 100%; display: block; }
html.ab-drag, html.ab-drag * { cursor: grabbing !important; }
html.ab-drag #abSlots .slot { border-style: dashed; border-color: rgba(232, 197, 106, 0.45); }
html.ab-drag #abSlots .slot.drop { border-style: solid; border-color: var(--gold-hi); background: linear-gradient(180deg, rgba(232, 181, 74, 0.32), rgba(232, 181, 74, 0.1)); box-shadow: 0 0 16px rgba(232, 181, 74, 0.45); }
.slot.lift > span { opacity: 0.25; }
.slot.free > span { opacity: 0; }
.slot.free { border-style: dashed; background: rgba(255, 255, 255, 0.015); }
.slot.free::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; padding-top: 4px; font: 300 20px/1 var(--font-ui); color: rgba(232, 238, 246, 0.18); }
.slot { touch-action: none; }
.sep { width: 1px; height: 38px; margin: 0 4px; background: var(--line-2); }
.slot {
  position: relative; display: block; width: 48px; height: 48px; 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: 6px; left: 50%; width: 28px; height: 28px; 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: 3px; text-align: center;
  font: 600 10.5px/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 {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 94px; padding: 4px 8px 10px; border-radius: var(--r-md); color: #fff; text-align: center;
  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 { width: 24px; height: 24px; flex: none; }
.attack em { font: 700 14px/1 var(--font-ui); font-style: normal; letter-spacing: 0.3px; }
/* klavye tuşu görünümünde, düğmenin ortasında */
.attack kbd {
  height: 16px; min-width: 34px; padding: 0 6px; display: inline-grid; place-items: center;
  font: 700 9.5px/1 var(--font-ui); letter-spacing: 0.6px; text-transform: uppercase;
  color: #ffe6df; border: 1px solid rgba(255, 210, 200, 0.45); border-radius: 5px;
  background: linear-gradient(180deg, rgba(90, 16, 6, 0.55), rgba(50, 6, 2, 0.6)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.12);
}
.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) + 24px); 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; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis;
}
/* alçak pencere: bildirimler daha yukarıda ve biraz küçük */
@media (max-height: 680px) {
  #toasts { top: calc(var(--hud-top) + 44px); gap: 4px; }
  .toast { padding: 6px 13px; font-size: 12.5px; }
  .toast.level { padding: 7px 15px; font-size: 13.5px; }
  #banner { top: 17%; }
}

/* 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: pencere küçülünce de ekrana sığar; uzun yazı alt satıra geçer */
#toasts {
  position: fixed; top: calc(var(--hud-top) + 86px); left: 12px; right: 12px; z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.toast {
  max-width: min(680px, 100%); text-align: center; overflow-wrap: anywhere; text-wrap: balance;
  padding: 8px 16px; border-radius: 18px; 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;
  width: max-content; max-width: calc(100vw - 32px); text-wrap: balance; overflow-wrap: anywhere;
  text-align: center; font: 400 clamp(26px, 4.6vw, 56px)/1.08 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 clamp(12.5px, 1.5vw, 16px)/1.25 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) + 40px); 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); }
/* büyüt / eski boyut düğmesi */
.win-max {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-md);
  color: var(--text-3); transition: background var(--t-fast), color var(--t-fast);
}
.win-max svg { width: 15px; height: 15px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.win-max:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.win.maxed { max-height: none; border-radius: var(--r-lg); }
/* kenar ve köşe tutamaçları: sürükleyince pencere büyür / küçülür */
.win-rs { position: absolute; z-index: 4; touch-action: none; }
.win-rs.rs-e { top: 56px; bottom: 16px; right: -5px; width: 10px; cursor: ew-resize; }
.win-rs.rs-w { top: 56px; bottom: 16px; left: -5px; width: 10px; cursor: ew-resize; }
.win-rs.rs-s { left: 16px; right: 18px; bottom: -5px; height: 10px; cursor: ns-resize; }
.win-rs.rs-sw { left: -4px; bottom: -4px; width: 16px; height: 16px; cursor: nesw-resize; }
.win-rs.rs-se { right: 1px; bottom: 1px; width: 18px; height: 18px; cursor: nwse-resize; color: var(--text-3); opacity: 0.7; transition: color var(--t-fast), opacity var(--t-fast); }
.win-rs.rs-se svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.win:hover .win-rs.rs-se { opacity: 1; }
.win-rs.rs-se:hover, .win.resizing .win-rs.rs-se { color: var(--gold-hi); }
.win.resizing { transition: none; user-select: none; }
.win.resizing .win-body { pointer-events: none; }
html.mobile .win-rs, html.mobile .win-max { display: none; }
.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: auto; 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) {
  #hint { display: none; }
}
@media (max-width: 1500px) {
  .brand { display: none; }   /* menü kalabalık: logo yer açar */
}
@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: 10px; right: 10px; bottom: 5px; display: flex; gap: 3px; pointer-events: none; }
#btnAttack .cdbars i { flex: 1; }
#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; }

/* bağlantı kısa süre koptuğunda üstte çıkan şerit (oyun ekranı açık kalır) */
#relink {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 35; pointer-events: none; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  font: 600 13px/1 system-ui, sans-serif; color: var(--gold-hi); letter-spacing: .01em;
  background: rgba(8, 16, 28, 0.9); border: 1px solid rgba(232, 181, 74, 0.45); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  animation: fade-in var(--t-med) ease-out;
}
.relink-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: relink-pulse 1s ease-in-out infinite; }
@keyframes relink-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---- 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); }

/* yönetici: sağ tık menüsü */
.ctx-menu { position: fixed; z-index: 60; min-width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-md); background: var(--panel-strong); box-shadow: var(--sh-3); animation: pop-in var(--t-fast) var(--ease); }
.ctx-head { padding: 6px 8px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.ctx-head small { color: var(--text-2); font-weight: 500; }
.ctx-menu button { text-align: left; padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--text); }
.ctx-menu button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); }
.ctx-menu button:disabled { opacity: .38; cursor: default; }
.ctx-note { padding: 4px 10px 2px; font-size: 11px; color: var(--text-2); }
/* yönetici: amiraller */
.boss-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; }
.boss-bar .seg, .give-bar .seg { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line); }
.boss-bar .seg button, .give-bar .seg button { padding: 5px 10px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.boss-bar .seg button:hover, .give-bar .seg button:hover { color: var(--text); }
.boss-bar .seg button.on, .give-bar .seg button.on { color: var(--gold-hi); background: rgba(255,255,255,.1); }
.boss-bar label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.boss-bar select { height: 28px; }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 8px; }
.boss-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(229, 84, 63, 0.06); border: 1px solid rgba(229, 84, 63, 0.22); }
.boss-card .card-ico { width: 64px; height: 44px; flex: none; }
.bc-txt { flex: 1; min-width: 0; }
.bc-txt b { display: block; font-size: 14px; color: #ffb3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-txt .sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* amiral ganimet sandığı (hedef çerçevesinin sağında) */
#tgLoot { position: absolute; right: -54px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--panel-strong); border: 1px solid var(--line-2); box-shadow: var(--sh-1); cursor: help; }
#tgLoot .chest { width: 34px; height: 34px; }
#tgLoot.rare { border-color: rgba(255, 90, 140, .65); animation: loot-glow 2.2s ease-in-out infinite; }
@keyframes loot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 130, .0), var(--sh-1); } 50% { box-shadow: 0 0 16px 2px rgba(255, 70, 130, .55), var(--sh-1); } }
.loot-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 330px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--panel-strong); border: 1px solid var(--line-2); box-shadow: var(--sh-3); z-index: 30; cursor: default; }
#tgLoot:hover .loot-pop { display: block; }
.loot-pop h6 { margin: 0 0 8px; font-size: 13.5px; color: var(--gold-hi); }
.loot-pop h6 small { color: var(--text-2); font-weight: 500; }
.lp-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--r-sm); }
.lp-row.rare { background: rgba(255, 70, 130, .08); border: 1px solid rgba(255, 90, 140, .35); }
.lp-ico { flex: none; width: 34px; height: 34px; }
.lp-row > div { flex: 1; min-width: 0; }
.lp-row b { display: block; font-size: 13px; }
.lp-row.rare b { color: #ff9cbc; }
.lp-row small { display: block; font-size: 11px; color: var(--text-2); line-height: 1.35; }
.lp-row em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--gold-hi); }
.lp-row.rare em { color: #ff7aa6; font-size: 15px; }
.lp-note { margin-top: 6px; font-size: 11px; color: var(--text-2); line-height: 1.4; }
.wm-node.admin:not(.here) { cursor: pointer; }
.wm-node.admin:not(.here):hover .pin { outline: 2px solid var(--gold); outline-offset: 2px; }

/* gemi penceresi: tümünü çıkar */
.slots-sec h6 .unall { margin-left: auto; height: 24px; padding: 0 8px; font-size: 11.5px; }
.slots-sec h6 { display: flex; align-items: center; gap: 8px; }
/* ganimet sandığı: kristal satırı */
.lp-row.crys { background: rgba(95, 210, 239, .07); border: 1px solid rgba(95, 210, 239, .3); }
.lp-row.crys b { color: #9be8ff; }
#tgLoot.boss:not(.rare) { border-color: rgba(95, 210, 239, .55); }
/* ---- yetenek ağacı ---- */
.sk-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.sk-top .note { margin: 0; flex: 1; }
.sk-cr { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-lg); background: rgba(95, 210, 239, .08); border: 1px solid rgba(95, 210, 239, .35); }
.sk-cr .ico { width: 40px; height: 40px; }
.sk-cr b { display: block; font-size: 22px; color: #bdf2ff; font-variant-numeric: tabular-nums; }
.sk-cr small { color: var(--text-2); font-size: 11.5px; }
.sk-tree { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sk-reset { flex: none; }
.sk-branch { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.sk-branch.max { border-color: rgba(232, 181, 74, .5); background: rgba(232, 181, 74, .06); }
.sk-head { display: flex; align-items: center; gap: 10px; }
.sk-ico { width: 44px; height: 44px; flex: none; padding: 6px; border-radius: var(--r-md); color: var(--gold-hi); background: var(--well); border: 1px solid var(--line-2); }
.sk-head h5 { margin: 0; font-size: 15px; }
.sk-nodes { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.sk-nodes::before { content: ''; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px; background: var(--line-2); }
.sk-node { position: relative; display: flex; align-items: center; gap: 10px; opacity: .55; }
.sk-node span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 14px;
  color: var(--text-2); background: var(--navy-900, #0b1726); border: 2px solid var(--line-2); z-index: 1; }
.sk-node small { font-size: 12.5px; color: var(--text-2); }
.sk-node.on { opacity: 1; }
.sk-node.on span { color: #062030; background: radial-gradient(circle at 40% 35%, #c8f6ff, #3cb6dc); border-color: #9be8ff; box-shadow: 0 0 12px rgba(95, 210, 239, .55); }
.sk-node.on small { color: var(--text); font-weight: 600; }
.sk-node.next { opacity: 1; }
.sk-node.next span { border-color: var(--gold); color: var(--gold-hi); border-style: dashed; }
.sk-now { font-size: 12.5px; color: var(--text-2); }
.sk-now b { color: var(--text); }
.sk-branch .btn.gold .ico { width: 18px; height: 18px; }
.sk-done { text-align: center; padding: 8px; font-weight: 700; font-size: 13px; color: var(--gold-hi); }

.tl-price { font-size: 13px; color: var(--text-2); }
.tl-price b { font-size: 22px; color: var(--gold-hi); }
#premDlg .dialog p { margin: 0 0 12px; }
.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.premium-hero + .premium-hero { margin-top: 14px; }
.premium-hero .crow-ico { width: 52px; height: 52px; flex: none; color: var(--gold-hi); }
.eqrow small.bound { display: block; color: #ffb08a; }

/* koordinat çubuğu (mini haritanın üstünde) */
#coordBar { display: flex; gap: 6px; margin-bottom: 8px; }
#coordIn { flex: 1; min-width: 0; height: 28px; padding: 0 9px; font-size: 12.5px; user-select: text; }
#coordGo { height: 28px; }
#coordBar.locked #coordGo::before { content: '🔒 '; }
#coordBar.locked #coordIn { opacity: .75; }
#chatLog .sys.boss { color: #ffb08a; font-style: normal; font-weight: 600; }
#chatLog a.coord { color: var(--gold-hi); font-weight: 700; text-decoration: none; margin-left: 4px; }
/* amiral hasar listesi (hedef çerçevesinin altında) */
#tgDmg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 8px 10px; border-radius: var(--r-md);
  background: var(--panel-strong); border: 1px solid var(--line); box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 4px; }
#tgDmg h6 { margin: 0 0 2px; font-size: 11.5px; color: var(--text-2); font-weight: 600; letter-spacing: .3px; }
.dm-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dm-row .nm { width: 96px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.dm-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #e5543f, #ffb347); }
.dm-row b { width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.dm-row.me .nm { color: var(--gold-hi); font-weight: 700; }

/* menü kalabalıklaştı: düğmeler biraz daraldı */
.mbtn { width: 56px; }
/* uzmanlar ve karga */
.card.spec { display: flex; flex-direction: column; gap: 10px; }
.spec-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-tier { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.spec-tier.owned { border-color: rgba(92, 207, 138, .5); background: rgba(92, 207, 138, .07); }
.spec-tier b { font-size: 12.5px; }
.crow-card { max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.crow-ico { color: #c9c3ff; padding: 6px; }
.crow-card .bar.xp { width: 100%; height: 14px; }
/* seyir defteri */
.lb-bar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.lb-list { display: flex; flex-direction: column; gap: 2px; }
.lb-day { margin: 10px 0 4px; font-size: 11.5px; font-weight: 700; color: var(--text-2); letter-spacing: .4px; }
.lb-row { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; border-radius: var(--r-sm); font-size: 13px; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.lb-ico { width: 16px; text-align: center; }
.lb-time { width: 42px; flex: none; color: var(--text-3, #7f8ea3); font-variant-numeric: tabular-nums; font-size: 12px; }
.lb-txt { flex: 1; }
.lb-row.pearl .lb-ico { color: #d9d4ff; } .lb-row.npc .lb-ico { color: var(--sea); } .lb-row.pvp .lb-ico { color: #ff9a85; }
.lb-row.sunk .lb-ico, .lb-row.sunk .lb-txt { color: #ff8a7a; } .lb-row.reward .lb-ico { color: var(--gold-hi); }

/* müzayede */
.auc-timer { margin: 4px 0 14px; font-size: 14px; color: var(--text-2); }
.auc-timer b { color: var(--gold-hi); font-size: 18px; font-variant-numeric: tabular-nums; }
.card.auc { display: flex; flex-direction: column; gap: 10px; }
.card.auc.mine { border-color: rgba(92, 207, 138, .55); }
.auc-bid { font-size: 13px; } .auc-bid b { color: var(--gold-hi); }
.auc-row { display: flex; gap: 8px; } .auc-row input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; user-select: text; }

/* klan gücü, ittifak, adalar */
.clan-power { display: flex; gap: 16px; align-items: center; padding: 14px; margin: 6px 0 12px; border-radius: var(--r-lg); background: rgba(232,181,74,.06); border: 1px solid rgba(232,181,74,.3); }
.cp-lv { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.cp-lv b { font-size: 34px; color: var(--gold-hi); line-height: 1.1; }
.cp-lv small { font-size: 11px; color: var(--text-2); }
.cp-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cp-main .bar.xp { height: 10px; }
.cp-buffs { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-buffs span { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--green-hi); background: rgba(92,207,138,.12); }
.ally-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13.5px; }
.ally-row .btn { margin-left: auto; }
.card.isl { display: flex; flex-direction: column; gap: 8px; }
.card.isl.mine { border-color: rgba(232,181,74,.55); }
.card.isl.ally { border-color: rgba(79,216,196,.45); }
.isl-up { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.isl-up small { color: var(--text-2); }

/* ada üssü */
.base-mats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.base-mat { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 12.5px; }
.base-mat b { font-size: 14px; font-variant-numeric: tabular-nums; }
.base-mats .btn { margin-left: auto; }
.mat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.base-job { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin: 6px 0 12px; border-radius: var(--r-md); background: rgba(232,181,74,.07); border: 1px solid rgba(232,181,74,.35); }
.base-job .bar.xp { height: 8px; } .base-job .btn { align-self: flex-start; }
.card.bld { display: flex; flex-direction: column; gap: 8px; } .card.bld.busy { border-color: rgba(232,181,74,.55); }
.bld-lv { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; font-weight: 800; color: var(--gold-hi); background: var(--well); border: 1px solid var(--line-2); }
.card.bld .bar.hp { height: 14px; }
.bld-up { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recipes .need { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 12.5px; }
.recipes .need.miss { color: #ff9a85; }
.recipes tr.locked { opacity: .55; }

/* dil seçici (giriş ekranı) */
#langSw { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
#langSw button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.18)); background: rgba(0,0,0,.25); color: var(--text-2, #cfd6dd); font: 600 12.5px Signika, system-ui, sans-serif; cursor: pointer; }
#langSw button.on { background: var(--gold, #d9a441); color: #1b1408; border-color: transparent; }

/* =====================================================================
   11. TELEFON / TABLET (html.mobile)
   Dokunmatik ekranlar için: küçük üst çubuk, kaydırılabilir menü ve
   cephane çubuğu, büyük Saldır düğmesi, açılır kapanır sohbet,
   tam ekran pencereler. Masaüstünde denemek için adrese ?mobil=1 ekle.
   ===================================================================== */
#mobBtns, #rotateHint { display: none; }
html.mobile {
  --hud-gap: 6px;
  --top-h: 46px;
  --ab-h: 58px;
  -webkit-text-size-adjust: 100%;
}
html.mobile body { touch-action: manipulation; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
html.mobile #scene, html.mobile canvas { touch-action: none; }
html.mobile .win-main, html.mobile #chatLog, html.mobile #menu, html.mobile #actionbar, html.mobile .win-side { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
html.mobile #mm { touch-action: none; }
html.mobile input, html.mobile textarea { -webkit-user-select: text; user-select: text; font-size: 16px; } /* iOS yakınlaştırmasın */

/* üst çubuk: logo gizli, menü yatay kaydırılır, sadece simgeler */
html.mobile #topbar { gap: 6px; padding: 0 6px; padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
html.mobile .brand, html.mobile #hint, html.mobile #tracker, html.mobile #zoomPanel, html.mobile #perfHud { display: none !important; }
html.mobile #menu { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
html.mobile #menu::-webkit-scrollbar { display: none; }
html.mobile .mbtn { width: 44px; height: 40px; }
html.mobile .mbtn .lbl { display: none; }
html.mobile .mbtn .ring { width: 24px; height: 24px; }
html.mobile #wallet { gap: 4px; }
html.mobile .cur { height: 28px; padding: 0 8px 0 6px; gap: 4px; }
html.mobile .cur .ico { width: 15px; height: 15px; }
html.mobile .cur b { font-size: 12px; }
html.mobile #wallet .cur:has(#wMojo), html.mobile #btnBuyPearl { display: none; }

/* durum çerçevesi küçük */
html.mobile #status { width: 196px; padding: 6px 8px; gap: 6px; left: max(var(--hud-gap), env(safe-area-inset-left)); }
html.mobile #status .portrait { width: 40px; height: 40px; padding: 3px; }
html.mobile .st-name { font-size: 13px; height: 16px; }
html.mobile #status .bar.hp { height: 13px; }
html.mobile #status .bar.xp { height: 9px; }
html.mobile #status .st-main { gap: 4px; }
html.mobile .buff { transform: scale(0.85); transform-origin: left top; }

/* hedef çerçevesi: üst orta, dar */
html.mobile #target { width: min(260px, 44vw); padding: 6px 8px; gap: 6px; }
html.mobile #target .portrait.small { width: 36px; height: 36px; }
html.mobile .tg-name { font-size: 13px; }
html.mobile .tg-sub { font-size: 11px; }

/* grup paneli */
html.mobile #groupPanel { left: max(var(--hud-gap), env(safe-area-inset-left)); top: calc(var(--hud-top) + 76px); width: 180px; font-size: 12px; }

/* mini harita: sağ üst, küçük */
html.mobile #minimap { top: var(--hud-top); bottom: auto; right: max(var(--hud-gap), env(safe-area-inset-right)); padding: 5px; }
html.mobile #mm { width: 150px; height: 112px; }
@media (max-height: 430px) { html.mobile #mm { width: 128px; height: 96px; } }
html.mobile .mm-head { font-size: 11.5px; padding: 0 2px 4px; }
html.mobile #mmPos { display: none; }
html.mobile #coordBar { display: none; }

/* cephane çubuğu: tüm genişlik, yatay kaydırılır; Saldır düğmesi ayrı, büyük ve yuvarlak */
html.mobile #actionbar {
  left: max(var(--hud-gap), env(safe-area-inset-left)); right: calc(max(var(--hud-gap), env(safe-area-inset-right)) + 96px); transform: none;
  bottom: max(var(--hud-gap), env(safe-area-inset-bottom)); justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 6px;
}
html.mobile #actionbar::-webkit-scrollbar { display: none; }
html.mobile #actionbar { height: var(--ab-h); padding: 5px 6px; align-items: center; }
html.mobile .ab-main { flex-direction: row; align-items: center; gap: 6px; }
html.mobile .slot { flex: none; width: 46px; height: 46px; }
html.mobile .slot > span { top: 5px; width: 26px; height: 26px; }
html.mobile .slot kbd { display: none; }
html.mobile .sep { height: 30px; margin: 0 2px; }
/* telefonda kategoriler yuvaların solunda küçük simge düğmeleri (dokununca liste açılır) */
html.mobile #abCats { order: -1; flex: none; height: auto; display: grid; grid-template-columns: repeat(3, 28px); grid-auto-rows: 22px; gap: 2px; }
html.mobile .ab-cat { height: 22px; padding: 0; justify-content: center; border-radius: 6px; }
html.mobile .ab-cl, html.mobile .ab-cn, html.mobile .ab-car { display: none; }
html.mobile .ab-ci { width: 16px; height: 16px; }
html.mobile .ab-dot { left: auto; right: 2px; top: 2px; width: 5px; height: 5px; }
html.mobile .ab-reset { width: 28px; height: 22px; font-size: 13px; border-radius: 6px; }
html.mobile #abPop .abp-head span { display: none; }
html.mobile #btnAttack {
  position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); z-index: 7;
  width: 88px; height: 88px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
html.mobile #btnAttack .ico { width: 30px; height: 30px; }
html.mobile #btnAttack em { font-size: 13px; }
html.mobile #btnAttack kbd { display: none; }
html.mobile #btnAttack .cdbars { left: 18px; right: 18px; bottom: 14px; }

/* yuvarlak telefon düğmeleri (sohbet, sıradaki hedef, tam ekran) */
html.mobile #mobBtns { display: flex; flex-direction: column; gap: 8px; position: fixed; z-index: 7;
  right: max(28px, env(safe-area-inset-right)); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 96px); }
html.mobile #btnFull { width: 34px; height: 34px; font-size: 17px; box-shadow: none; background: var(--well); flex: none; }
.mob-round {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--text);
  background: rgba(8, 17, 29, 0.82); border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.mob-round:active { transform: scale(0.94); background: rgba(232, 181, 74, 0.25); }
.mob-round.on { border-color: var(--gold); background: rgba(232, 181, 74, 0.22); }
.mob-round i { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--navy-900); }
#btnChatT { order: 2; } #btnTab { order: 1; } #btnFull { order: 3; }

/* sohbet: kapalı başlar, 💬 ile açılır */
html.mobile #chat { display: none; left: max(var(--hud-gap), env(safe-area-inset-left)); bottom: calc(var(--above-ab) + 2px); width: min(380px, 62vw); padding: 6px; z-index: 8; }
html.mobile.chat-open #chat { display: flex; }
html.mobile #chatLog { height: min(120px, 26vh); font-size: 12.5px; }
html.mobile #chatIn { height: 36px; }

/* pencereler: tam ekran, sürüklenmez */
html.mobile .win {
  left: 0 !important; top: var(--top-h) !important; width: 100vw !important; height: calc(100vh - var(--top-h)) !important; height: calc(100dvh - var(--top-h)) !important;
  max-height: none; border-radius: 0; animation: none;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
html.mobile .win-head { height: 44px; cursor: default; padding: 0 6px 0 12px; }
html.mobile .win-head h3 { font-size: 21px; }
html.mobile .win-close { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.06); }
html.mobile .win-close svg { width: 16px; height: 16px; }
html.mobile .win-main { overflow-y: auto; }
html.mobile .wm-scroll { overflow: auto; max-height: none; }
/* yan sekmeler dar ekranda daralır */
html.mobile .win-side { width: 150px; padding: 6px 4px; }
html.mobile .side-btn { min-height: 38px; font-size: 13px; padding: 4px 8px; gap: 6px; }
html.mobile .side-btn .ico { width: 20px; height: 20px; }

/* bildirim ve duyurular daha küçük */
html.mobile #banner { font-size: 32px; top: 22%; white-space: normal; width: 92vw; }
html.mobile #banner small { font-size: 13px; }
html.mobile #toasts { top: calc(var(--hud-top) + 50px); max-width: 70vw; }
html.mobile .toast { font-size: 12px; padding: 6px 12px; text-align: center; }
html.mobile #lookHint { font-size: 12px; }
html.mobile #lookHint kbd { display: none; }

/* giriş ekranı */
html.mobile .login-wrap { padding: 12px; max-height: 100dvh; overflow-y: auto; touch-action: pan-y; }
html.mobile .logo { font-size: clamp(34px, 10vw, 60px); }

/* dikey (portre) telefon: daha da sıkı, yan çevirme önerisi */
@media (orientation: portrait) {
  html.mobile { --top-h: 92px; }
  html.mobile #topbar { flex-wrap: wrap; align-content: flex-start; row-gap: 0; }
  html.mobile #wallet { order: 1; width: 100%; height: 46px; justify-content: flex-end; }
  html.mobile #menu { order: 2; flex: 1 1 100%; height: 46px; }
  html.mobile #rotateHint {
    display: block; position: fixed; left: 50%; top: calc(var(--hud-top) + 8px); transform: translateX(-50%); z-index: 9;
    padding: 6px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap;
    color: var(--gold-hi); background: rgba(8, 17, 29, 0.88); border: 1px solid var(--gold-line, rgba(232,181,74,.4));
  }
  html.mobile #rotateHint.gone { display: none; }
  html.mobile #target { top: calc(var(--hud-top) + 76px); left: max(var(--hud-gap), env(safe-area-inset-left)); transform: none; width: 196px; }
  html.mobile #mm { width: 120px; height: 90px; }
  html.mobile #chat { width: calc(100vw - 90px); }
  html.mobile .win-body { flex-direction: column; }
  html.mobile .win-side { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; flex: none; }
  html.mobile .side-btn { flex: none; white-space: nowrap; }
  /* pencere içi iki sütunlu düzenler alt alta */
  html.mobile .hangar, html.mobile .cauldron, html.mobile .friends, html.mobile .spec-tiers { grid-template-columns: minmax(0, 1fr); }
  html.mobile .hangar > *, html.mobile .cauldron > *, html.mobile .friends > * { min-width: 0; }
  html.mobile .eqrow { flex-wrap: wrap; }
  html.mobile .eqrow .nm { flex: 1 1 140px; }
  html.mobile .win-main { overflow-x: hidden; }
  html.mobile .friends { height: auto; }
  html.mobile .sk-tree { grid-template-columns: 1fr; }
  html.mobile .grid, html.mobile .grid.wide, html.mobile .boss-grid { grid-template-columns: 1fr; }
  html.mobile .win-main { padding-left: 10px; padding-right: 10px; }
}
/* dar yatay ekranda da sığmayan geniş düzenler */
@media (max-width: 900px) and (orientation: landscape) {
  html.mobile .hangar, html.mobile .cauldron { grid-template-columns: 240px 1fr; }
  html.mobile .friends { grid-template-columns: 240px 1fr; }
  html.mobile .boss-grid { grid-template-columns: 1fr; }
}
/* alçak yatay ekran (çoğu telefon) */
@media (orientation: landscape) and (max-height: 500px) {
  html.mobile #groupPanel { display: none; }
  html.mobile #status .bar.xp { display: none; }
}

/* güncelleme notları */
.notes { display: flex; flex-direction: column; gap: 12px; }
.note-card { padding: 14px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.note-card.latest { border-color: var(--gold-line, rgba(232, 181, 74, 0.45)); background: rgba(232, 181, 74, 0.06); }
.note-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.note-head b { font-size: 16px; color: var(--gold-hi); }
.note-head small { color: var(--text-3); font-size: 12px; }
.note-new { margin-left: auto; padding: 2px 8px; border-radius: 999px; font: 700 10.5px/1.4 var(--font-ui); color: var(--gold-ink, #1b1408); background: var(--gold, #e8b54a); }
.note-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }

/* Yönetici: hareket kaydı */
.lg-bar { flex-wrap: wrap; gap: 6px; }
.lg-bar select, .lg-bar input { height: 30px; }
.lg-table td { font-size: 12.5px; vertical-align: top; }
.lg-name { color: var(--gold, #f2c14e); cursor: pointer; font-weight: 600; }
.lg-name:hover { text-decoration: underline; }
.lg-type { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 11px; white-space: nowrap; background: rgba(255, 255, 255, .08); }
.lg-type.t-giris, .lg-type.t-kayit { color: #8fe3a5; background: rgba(80, 200, 120, .14); }
.lg-type.t-cikis { color: #b8c4d6; }
.lg-type.t-harcama { color: #ffcf7a; background: rgba(240, 180, 60, .14); }
.lg-type.t-kazanc { color: #9fd8ff; background: rgba(80, 160, 230, .14); }
.lg-type.t-yonetici, .lg-type.t-sifre { color: #e0b0ff; background: rgba(170, 100, 230, .16); }
.lg-type.t-hatali, .lg-type.t-yasak { color: #ff9a85; background: rgba(229, 84, 63, .18); }
.lg-type.t-kopma { color: #ffd98a; background: rgba(230, 170, 60, .12); }
.lg-type.t-sunucu { color: #fff; background: rgba(229, 84, 63, .45); }
.ctx-menu input { margin: 6px 4px 2px; height: 30px; }

/* Donanım hızlandırma uyarısı (ekran kartı kullanılmıyorsa) */
#gpuNote { position: fixed; z-index: 70; top: 12px; left: 12px; width: min(430px, calc(100vw - 24px));
  padding: 14px 16px 12px; border-radius: 14px; background: rgba(14, 22, 36, .97); border: 1px solid rgba(242, 193, 78, .55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55); color: #e8edf5; font-size: 13.5px; line-height: 1.45; animation: pop-in .25s ease; }
#gpuNote .gn-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #f2c14e; margin-bottom: 6px; }
#gpuNote .gn-x { background: none; border: 0; color: #9aa7b8; font-size: 16px; cursor: pointer; }
#gpuNote p { margin: 4px 0 8px; }
#gpuNote ol { margin: 0 0 10px 18px; padding: 0; }
#gpuNote li { margin: 4px 0; }
#gpuNote .gn-addr { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .06); padding: 6px 8px; border-radius: 8px; }
#gpuNote code { flex: 1; font-size: 14px; color: #fff; user-select: all; }
#gpuNote .gn-small { color: #9aa7b8; font-size: 12px; margin: 8px 0 6px; }
#gpuNote .gn-foot { display: flex; gap: 8px; justify-content: flex-end; }

/* Hafif mod (ekran kartı yokken): pahalı cam bulanıklığı ve gölgeler kapanır, paneller düz koyu renk olur */
html[data-lite] *, html[data-lite] *::before, html[data-lite] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-lite] { --blur: none; --panel: rgba(12, 20, 33, .95); }
#gpuNote .gn-pc { display: flex; flex-direction: column; align-items: center; margin: 4px 0 10px; padding: 9px 12px; text-decoration: none; text-align: center; }
#gpuNote .gn-pc small { font-weight: 500; font-size: 11.5px; opacity: .8; }
#gpuNote details summary { cursor: pointer; color: #b9c6d8; margin-bottom: 6px; }
#gpuNote .hidden, .pc-dl.hidden { display: none !important; }
.pc-dl { display: block; margin-top: 12px; padding: 9px 12px; border-radius: 10px; text-align: center; text-decoration: none; color: #f2c14e; font-weight: 600;
  border: 1px solid rgba(242, 193, 78, .45); background: rgba(242, 193, 78, .08); }
.pc-dl:hover { background: rgba(242, 193, 78, .16); }
.pc-dl small { display: block; color: #9aa7b8; font-weight: 400; font-size: 11.5px; margin-top: 2px; }

/* ---- çevrimiçi ödülleri ---- */
.onl-head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding: 14px 16px; margin: 6px 0 14px;
  border-radius: var(--r-lg); background: rgba(232, 181, 74, .07); border: 1px solid rgba(232, 181, 74, .3); }
.onl-ico { width: 40px; height: 40px; color: var(--gold-hi); }
.onl-head small { display: block; font-size: 11.5px; color: var(--text-2); }
.onl-head b { font-size: 20px; color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.onl-track { position: relative; height: 12px; margin: 0 14px 14px 4px; border-radius: 99px; background: var(--well); border: 1px solid var(--line); }
.onl-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #c9962e, #f6d27f); }
.onl-mark { position: absolute; top: 15px; transform: translateX(-50%); font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.onl-mark::before { content: ''; position: absolute; left: 50%; top: -16px; width: 2px; height: 12px; background: rgba(255, 255, 255, .35); }
.onl-mark.ok { color: #8fe3a5; }
.onl-list { display: flex; flex-direction: column; gap: 6px; }
.onl-row { display: grid; grid-template-columns: 64px 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.onl-row .card-ico { width: 30px; height: 30px; }
.onl-row.ok { background: rgba(80, 200, 120, .07); border-color: rgba(80, 200, 120, .35); }
.onl-h { font-weight: 700; color: var(--text-2); }
.onl-st { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.onl-st.ok { color: #8fe3a5; font-weight: 700; }
.onl-chest { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.onl-chest .card-ico { width: 44px; height: 44px; }
.chest-odds td:last-child, .chest-odds th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.chest-odds tr.rare td { color: var(--gold-hi); font-weight: 600; }

/* ---- yönetici: eşya ver, canlı bosslar, komut formları ---- */
.give-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.give-bar .seg { flex-wrap: wrap; }
.name-in { width: 170px; height: 30px; padding: 0 9px; }
.hp-in, .num-in { width: 120px; height: 28px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.txt-in { width: 260px; height: 28px; padding: 0 8px; }
.give-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.give-card { display: grid; grid-template-columns: 36px 1fr 86px auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.give-card .card-ico { width: 34px; height: 34px; }
.give-card .card-ico img { width: 100%; height: 100%; object-fit: contain; }
.give-card input { width: 86px; height: 28px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.gc-txt { min-width: 0; }
.gc-txt b { display: block; font-size: 12.5px; line-height: 1.2; }
.gc-txt small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px;
  border-radius: var(--r-lg); background: rgba(229, 84, 63, .08); border: 1px solid rgba(229, 84, 63, .4); }
.wb-card .card-ico { width: 64px; height: 44px; }
.wb-card .card-ico img { width: 100%; height: 100%; object-fit: contain; }
.wb-card small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.wb-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.live-table td { vertical-align: middle; }
.live-table td small { display: block; color: var(--text-3); font-size: 11px; }
.live-table tr.wb td b { color: #ff9a85; }
.live-table .btn { margin-left: 4px; }
.bar.hp.mini { width: 140px; height: 7px; }
.cmd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cmd-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.cmd-desc code { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 5px; background: var(--well); color: var(--gold-hi); font-size: 12px; }
.cmd-desc span { font-size: 12.5px; color: var(--text-2); }
.cmd-in { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cmd-in select { height: 28px; max-width: 220px; }
#tgKill { margin-top: 4px; }
html.mobile .give-card { grid-template-columns: 30px 1fr 70px auto; }
html.mobile .cmd-row { grid-template-columns: 1fr; }

/* tersane: elit gemilerin altındaki bilgi kutusu (Vudu Kazanı'na giden düğmeyle) */
.elite-info {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(232, 181, 74, 0.14), rgba(140, 90, 210, 0.12)); border: 1px solid rgba(232, 197, 106, 0.4);
}
.elite-info-ico { flex: none; width: 42px; height: 42px; color: var(--gold-hi); }
.elite-info-ico svg { width: 100%; height: 100%; display: block; }
.elite-info b { display: block; margin-bottom: 4px; font-size: 14.5px; color: var(--gold-hi); }
.elite-info p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.elite-info > div:nth-child(2) { flex: 1; min-width: 0; }
.elite-info .btn { flex: none; }
@media (max-width: 700px) { .elite-info { flex-wrap: wrap; } }
.vortex .vx-prize { grid-column: 1; font-size: 12.5px; font-weight: 600; color: var(--gold-hi); }

/* =====================================================================
   22 EKİM 2026: ETKİNLİKLER, REHBER, ADA UYARISI, KAPATMA ONAYI,
   KAPTAN KARTI, BAŞARIMLAR, KLAN BAYRAĞI VE GÖREVLERİ, HAFTALIK SIRALAMA
   ===================================================================== */

/* ---- etkinlik çubuğu (üst menünün altında, ortada) ---- */
#evBar {
  position: fixed; top: calc(var(--top-h) + 6px); left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 6px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
}
#evBar::-webkit-scrollbar { display: none; }
.ev-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 5px; border-radius: var(--r-pill);
  font: 600 12px/1 var(--font-ui); color: var(--text); white-space: nowrap;
  background: linear-gradient(180deg, rgba(36, 56, 86, 0.92), rgba(14, 26, 44, 0.94)); border: 1px solid rgba(232, 197, 106, 0.45);
  box-shadow: var(--sh-1), 0 0 14px rgba(232, 181, 74, 0.14); animation: pop-in var(--t-med) var(--ease);
  transition: border-color var(--t-fast), transform 80ms;
}
.ev-chip:hover { border-color: var(--gold-hi); }
.ev-chip:active { transform: translateY(1px); }
.ev-chip .ev-ico { width: 20px; height: 20px; flex: none; }
.ev-chip .ev-ico svg { width: 100%; height: 100%; display: block; }
.ev-chip b { font-weight: 700; color: var(--gold-hi); }
.ev-chip em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.ev-chip.ev-halloween { border-color: rgba(255, 138, 26, 0.7); box-shadow: var(--sh-1), 0 0 16px rgba(255, 120, 20, 0.28); }
.ev-chip.ev-halloween b { color: #ffb15a; }
.ev-chip.ev-convoy { border-color: rgba(255, 210, 90, 0.85); animation: pop-in var(--t-med) var(--ease), cv-glow 1.6s ease-in-out infinite; }
@keyframes cv-glow { 50% { box-shadow: var(--sh-1), 0 0 22px rgba(255, 200, 70, 0.45); } }
/* etkinlik varken üst ortadaki hedef çerçevesi, bildirimler ve davetler biraz aşağı kayar */
html.has-ev #target { top: calc(var(--hud-top) + 30px); }
html.has-ev #toasts { top: calc(var(--hud-top) + 116px); }
html.has-ev #invites { top: calc(var(--hud-top) + 122px); }
html.mobile #evBar { top: calc(var(--top-h) + 2px); }
html.mobile .ev-chip { height: 24px; font-size: 11px; padding: 0 9px 0 4px; }
html.mobile .ev-chip .ev-ico { width: 16px; height: 16px; }

/* ---- yeni oyuncu rehberi ---- */
#tutBox {
  position: fixed; left: calc(var(--hud-gap) + 54px); top: calc(var(--hud-top) + 112px); z-index: 6; width: 300px;
  padding: 12px 14px 13px; border-color: rgba(232, 197, 106, 0.5); animation: pop-in var(--t-slow) var(--ease);
  box-shadow: var(--sh-2), 0 0 24px rgba(232, 181, 74, 0.16);
}
.tut-head { display: flex; align-items: center; gap: 8px; }
.tut-ico { width: 22px; height: 22px; color: var(--gold-hi); }
.tut-ico svg { width: 100%; height: 100%; display: block; }
.tut-head b { font: 700 13px/1 var(--font-ui); color: var(--gold-hi); letter-spacing: 0.2px; }
.tut-n { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tut-x { width: 22px; height: 22px; border-radius: 6px; color: var(--text-3); font-size: 12px; }
.tut-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.tut-bar { height: 4px; margin: 9px 0 10px; border-radius: 4px; background: rgba(2, 7, 14, 0.7); overflow: hidden; }
.tut-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--xp-a), var(--xp-b)); transition: width var(--t-slow) var(--ease); }
#tutBox h5 { margin: 0 0 4px; font: 700 16px/1.25 var(--font-ui); color: var(--text); }
#tutBox p { margin: 0 0 9px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.tut-rw { font-size: 12px; color: var(--text-3); }
.tut-rw b { color: var(--gold-hi); font-weight: 600; }
/* rehberin gösterdiği düğme nabız gibi parlar */
.tut-glow { position: relative; z-index: 3; animation: tut-pulse 1.3s ease-in-out infinite; border-radius: var(--r-md); }
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 214, 92, 0.85), 0 0 12px rgba(255, 214, 92, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(255, 214, 92, 0.35), 0 0 26px rgba(255, 214, 92, 0.75); }
}
html.mobile #tutBox { left: max(var(--hud-gap), env(safe-area-inset-left)); top: calc(var(--hud-top) + 66px); width: 230px; padding: 8px 10px; }
html.mobile #tutBox p { font-size: 11.5px; margin-bottom: 5px; }
html.mobile #tutBox h5 { font-size: 13.5px; }

/* ---- klan adası saldırı uyarısı ---- */
.isl-alert {
  width: min(430px, calc(100vw - 24px)); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  border-color: rgba(255, 90, 60, 0.85); background: linear-gradient(180deg, rgba(70, 14, 10, 0.95), rgba(28, 8, 8, 0.96));
  animation: pop-in var(--t-med) var(--ease), ia-pulse 1s ease-in-out infinite;
}
@keyframes ia-pulse { 50% { box-shadow: var(--sh-2), 0 0 0 3px rgba(255, 90, 60, 0.35), 0 0 34px rgba(255, 60, 30, 0.45); } }
.ia-head { font: 400 26px/1 var(--font-display); color: #ffb3a3; letter-spacing: 0.3px; }
.ia-text { font-size: 13.5px; line-height: 1.45; color: #ffd9cf; }
.ia-text b { color: #fff; }
.ia-btns { display: flex; gap: 8px; }

/* ---- kapatma onayı (PC uygulaması) ---- */
#quitDlg { z-index: 60; }
.quit-dlg { width: min(420px, 100%); }
.quit-ico { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--gold-hi); }
.quit-ico svg { width: 100%; height: 100%; display: block; }
.quit-dlg h2 { font-size: 34px !important; }
.quit-btns { display: flex; gap: 10px; justify-content: center; }
.quit-btns .btn { min-width: 132px; height: 40px; font-size: 14px; }
.quit-reload { margin-top: 14px; font-size: 12px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.quit-reload:hover { color: var(--text-2); }

/* ---- hedef çerçevesi: düğmeler ---- */
.tg-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tg-btns:not(:has(.btn:not(.hidden))) { display: none; }
#stPortrait { cursor: pointer; }
#stPortrait:hover { border-color: var(--gold-line); }

/* ---- Etkinlikler penceresi ---- */
.ev-card {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; margin-bottom: 10px; padding: 14px 16px;
  border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(232, 181, 74, 0.1), rgba(255, 255, 255, 0.025)); border: 1px solid rgba(232, 197, 106, 0.35);
}
.ev-card .card-ico { width: 52px; height: 52px; }
.ev-card h5 { margin: 0 0 3px; font: 700 16px/1.25 var(--font-ui); color: var(--gold-hi); }
.ev-card .ev-txt .btn { margin-top: 8px; }
.ev-card .ev-txt .sub { line-height: 1.45; }
.ev-left { text-align: right; white-space: nowrap; }
.ev-left small { display: block; font-size: 11px; color: var(--text-3); }
.ev-left b { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text); }
.ev-card.ev-halloween { background: linear-gradient(135deg, rgba(255, 120, 20, 0.16), rgba(60, 20, 80, 0.14)); border-color: rgba(255, 138, 26, 0.55); }
.ev-card.ev-halloween h5 { color: #ffb15a; }
.ev-card.ev-convoy { background: linear-gradient(135deg, rgba(255, 200, 70, 0.17), rgba(255, 255, 255, 0.02)); border-color: rgba(255, 210, 90, 0.6); }
.pk-h { color: #ffb15a !important; }
.pk-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-lg);
  background: rgba(255, 120, 20, 0.08); border: 1px solid rgba(255, 138, 26, 0.35); }
.pk-row .card-ico { width: 52px; height: 52px; }
.pk-row b { font-size: 15px; }
.pk-btns { display: flex; flex-direction: column; gap: 6px; }
.pk-got { margin: 10px 0 4px; }
.loot.rare { background: rgba(232, 181, 74, 0.16); border-color: var(--gold); color: var(--gold-hi); font-weight: 700; }
@media (max-width: 640px) { .ev-card, .pk-row { grid-template-columns: 40px 1fr; } .ev-left, .pk-btns { grid-column: 1 / -1; text-align: left; flex-direction: row; } }

/* ---- Kaptan Kartı ---- */
.cap-card {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--r-xl);
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(232, 181, 74, 0.12), transparent 60%), var(--raise); border: 1px solid var(--line-2);
}
.cap-ship { width: 150px; height: 100px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 90% 70% at 50% 100%, #24527a, #112a45 60%, #0b1b2e); }
.cap-ship svg, .cap-ship img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cap-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cap-name { display: flex; align-items: center; gap: 6px; font: 400 32px/1.05 var(--font-display); color: var(--gold-hi); }
.cap-name .ap-badge { font: 600 10.5px/1.4 var(--font-ui); }
.cap-crown { font-size: 24px; line-height: 1; }
.cap-sub { font-size: 13.5px; color: var(--text-2); }
.cap-title { color: #ffcf6a; }
.cap-clan { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.cap-clan.none { color: var(--text-3); }
.cap-clan small { color: var(--text-3); }
.mini-flag { display: inline-block; vertical-align: middle; margin-right: 6px; line-height: 0; }
.mini-flag svg { display: block; }
.cap-seen { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.cap-seen.on { color: var(--green-hi); }
.cap-meta { font-size: 12px; color: var(--text-3); }
.cap-ach { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: var(--r-lg); cursor: pointer;
  background: var(--gold-soft); border: 1px solid rgba(232, 181, 74, 0.35); transition: border-color var(--t-fast); }
.cap-ach:hover { border-color: var(--gold-hi); }
.cap-ach .card-ico { width: 40px; height: 40px; }
.cap-ach b { font-size: 22px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.cap-ach small { font-size: 11px; color: var(--text-2); }
.cap-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cap-stat { position: relative; padding: 10px 12px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.cap-stat b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; color: var(--text); }
.cap-stat small { font-size: 11.5px; color: var(--text-2); }
.cs-ico { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; color: var(--text-3); }
.cs-ico svg { width: 100%; height: 100%; display: block; }
.cap-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cap-acts { display: flex; gap: 8px; margin-top: 18px; }
.cap-link { cursor: pointer; color: inherit; text-decoration: none; }
.cap-link:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .cap-card { grid-template-columns: 1fr; } .cap-ship { width: 100%; } }

/* ---- Başarımlar ---- */
.ach-sum { display: grid; grid-template-columns: 48px 1fr 220px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--gold-soft); border: 1px solid rgba(232, 181, 74, 0.35); }
.ach-sum .card-ico { width: 48px; height: 48px; }
.ach-sum b { font-size: 16px; color: var(--gold-hi); }
.ach-bar { height: 10px !important; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 38px 1fr 118px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--raise); border: 1px solid var(--line); }
.ach.small { grid-template-columns: 30px 1fr; padding: 8px 10px; }
.ach-medal { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 18px;
  background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(150, 184, 222, 0.25); filter: grayscale(1); opacity: 0.6; }
.ach.small .ach-medal { width: 30px; height: 30px; font-size: 14px; }
.ach.got { border-color: rgba(232, 181, 74, 0.4); background: linear-gradient(135deg, rgba(232, 181, 74, 0.12), rgba(255, 255, 255, 0.02)); }
.ach.got .ach-medal { filter: none; opacity: 1; border-color: var(--gold); background: radial-gradient(circle at 35% 30%, #fff1c2, #e2a93c 70%); box-shadow: 0 0 12px rgba(232, 181, 74, 0.35); }
.ach-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-txt b { font-size: 13.5px; color: var(--text); }
.ach.got .ach-txt b { color: var(--gold-hi); }
.ach-txt small { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.ach-txt .bar.xp { height: 12px; margin-top: 2px; }
.ach-at { font-size: 11px; color: var(--green-hi); }
.ach-rw { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.ach-medal svg { width: 74%; height: 74%; display: block; }
.ach-medal { color: var(--text-2); }
.ach.got .ach-medal { color: #4a2c0a; }
.ach-h { display: flex; align-items: center; gap: 8px; }
.ach-h-ico { width: 22px; height: 22px; display: inline-grid; color: var(--text-2); }
.ach-h-ico svg { width: 100%; height: 100%; display: block; }
.ach-rw b { font-size: 12px; color: var(--gold-hi); }
.ach-rw small { font-size: 11px; color: var(--text-3); }

/* ---- Klan: bayrak ve görevler ---- */
.clan-flag.has { padding: 0; background: none; border: 0; display: grid; place-items: center; width: 70px; }
.flag-ed { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.flag-prev { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 50% 30%, rgba(100, 160, 220, 0.18), transparent 70%), var(--raise); border: 1px solid var(--line-2); }
.flag-prev svg { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); animation: flag-wave 2.6s ease-in-out infinite; transform-origin: left center; }
@keyframes flag-wave { 50% { transform: skewY(-2deg) scaleX(0.98); } }
.flag-prev small { font-weight: 600; color: var(--text-2); }
.flag-opts h6 { margin: 0 0 8px; font: 600 12.5px/1 var(--font-ui); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; }
.flag-opts h6:not(:first-child) { margin-top: 16px; }
.flag-ems { display: grid; grid-template-columns: repeat(6, 56px); gap: 6px; }
.flag-em { height: 42px; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.flag-em:hover:not(:disabled) { border-color: var(--line-3); }
.flag-em.on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 181, 74, 0.4); background: var(--gold-soft); }
.flag-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-sw button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.flag-sw button.on { border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(232, 181, 74, 0.45); transform: scale(1.12); }
.flag-opts > .btn { margin-top: 18px; }
@media (max-width: 700px) { .flag-ed { grid-template-columns: 1fr; } .flag-ems { grid-template-columns: repeat(4, 56px); } }
.cq { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cq.done { border-color: rgba(92, 207, 138, 0.45); background: rgba(92, 207, 138, 0.06); }
.cq-top { display: flex; align-items: center; gap: 10px; }
.cq-top h5 { margin: 0; font: 700 15px/1.25 var(--font-ui); }
.cq-top .badge { margin: 0; }
.cq .bar.xp { height: 14px; }
.cq.done .bar > i { background: var(--green); }
.cq-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.cq-row b { color: var(--text); }
.cq-top3 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); }

/* ---- Haftalık sıralama ---- */
.wk-head { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 14px;
  border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(232, 181, 74, 0.16), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(232, 197, 106, 0.4); }
.wk-head .card-ico { width: 48px; height: 48px; }
.wk-head b { font-size: 16px; color: var(--gold-hi); }
.wk-head .sub { line-height: 1.4; }
.wk-box { text-align: center; padding: 6px 10px; border-radius: var(--r-md); background: rgba(2, 7, 14, 0.45); border: 1px solid var(--line); white-space: nowrap; }
.wk-box small { display: block; font-size: 10.5px; color: var(--text-3); }
.wk-box b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
table.list tr.prize td:last-child { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 700px) { .wk-head { grid-template-columns: 40px 1fr; } }

/* ---- Yönetici: Etkinlikler ---- */
.adm-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 8px; }
.adm-ev { display: grid; grid-template-columns: 40px 1fr; gap: 10px 12px; align-items: start; padding: 12px; border-radius: var(--r-md);
  background: var(--raise); border: 1px solid var(--line); }
.adm-ev.on { border-color: rgba(92, 207, 138, 0.55); background: rgba(92, 207, 138, 0.06); }
.adm-ev .card-ico { width: 40px; height: 40px; }
.ae-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ae-txt small { font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ae-st { font-size: 12px; font-weight: 700; color: var(--green-hi); }
.ae-st.off { color: var(--text-3); font-weight: 600; }
.ae-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.ae-acts select, .adm-wk select { height: 28px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--line-2); padding: 0 6px; }
.adm-wk { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 8px 0; }
.adm-wk .chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.wk-num { width: 64px; padding: 4px 6px; }

/* ---- Discord bağlantıları (giriş ekranı ve sohbet) ---- */
.dc-btn { width: min(380px, 100%); box-sizing: border-box; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 16px; border-radius: 12px; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, #5865f2, #4752c4); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 18px rgba(88, 101, 242, .35); transition: transform .15s, box-shadow .15s, filter .15s; }
.dc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(88, 101, 242, .5); filter: brightness(1.08); }
.dc-btn:active { transform: translateY(0); }
.dc-btn > span { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; text-align: left; }
.dc-btn small { display: block; font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .78); }
.dc-btn > b { font-size: 22px; line-height: 1; opacity: .8; }
.dc-ico { width: 16px; height: 16px; flex: none; }
.dc-ico.big { width: 28px; height: 28px; }
.chat-dc { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; background: #5865f2; transition: filter .15s; }
.chat-dc:hover { filter: brightness(1.15); }
.chat-dc .dc-ico { width: 14px; height: 14px; }

/* ---- giriş: şifremi unuttum ve kurtarma kodu ---- */
.link-btn { display: block; margin: 8px auto 0; padding: 2px 6px; background: none; border: 0; color: var(--text-2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold-hi); }
.rc-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 12, .72); backdrop-filter: blur(3px); }
.rc-card { width: min(440px, 100%); padding: 22px 24px; border-radius: var(--r-xl); background: var(--panel-strong); box-shadow: var(--sh-3); text-align: center; }
.rc-card h3 { margin: 0 0 8px; color: var(--gold-hi); font-size: 20px; }
.rc-card p { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.rc-code { margin: 0 0 16px; padding: 12px; border-radius: var(--r-md); background: var(--well); border: 1px dashed rgba(242, 193, 78, .55);
  font: 700 24px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 2px; color: #fff; user-select: all; }
.rc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---- şikâyet ---- */
.rep-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; text-align: left; }
.rep-r { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: var(--r-sm); background: var(--well); font-size: 13px; cursor: pointer; }
.rep-r input { accent-color: #e05555; }
.rep-note { width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 8px 10px; border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 13px; resize: vertical; }
.rep-row { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rep-head small { margin-left: auto; color: var(--text-3); }
.rep-tag { padding: 1px 8px; border-radius: 99px; font-size: 11.5px; background: rgba(224, 85, 85, .18); color: #ff9c9c; }
.rep-tag.m { background: rgba(232, 181, 74, .18); color: var(--gold-hi); }
.rep-tag.b { background: rgba(160, 160, 160, .2); color: #ddd; }
.rep-note-t { margin: 6px 0 0; color: var(--text-2); font-style: italic; font-size: 13px; }
.rep-lines { margin: 8px 0; padding: 6px 8px; border-radius: var(--r-sm); background: rgba(2, 7, 14, .45); font-size: 12.5px; max-height: 150px; overflow: auto; }
.rep-lines small { color: var(--text-3); }
.rep-btns { display: flex; flex-wrap: wrap; gap: 6px; }
#chatLog .n.click { cursor: pointer; }
#chatLog .n.click:hover { text-decoration: underline; }

/* ---- arkadaş davet et ---- */
.inv-hero { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin: 4px 0 12px; border-radius: var(--r-lg); background: rgba(232, 181, 74, .08); border: 1px solid rgba(232, 181, 74, .3); }
.inv-hero b { font-size: 16px; color: var(--gold-hi); }
.inv-hero p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.inv-ico { width: 48px; height: 48px; flex: none; color: var(--gold-hi); }
.inv-ico svg { width: 100%; height: 100%; }
.inv-linkrow { display: flex; gap: 8px; }
.inv-link { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; }
.inv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.inv-step { padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; display: grid; gap: 4px; }
.inv-step small { color: var(--text-3); }
.inv-lv { font-weight: 700; color: var(--gold-hi); }
.inv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.inv-marks { display: flex; gap: 4px; margin-left: auto; }
.inv-mark { padding: 1px 8px; border-radius: 99px; font-size: 11.5px; background: rgba(255, 255, 255, .07); color: var(--text-3); }
.inv-mark.ok { background: rgba(80, 200, 120, .2); color: #8fe3a5; }
.login-card label .opt { color: var(--text-3); font-weight: 400; }

/* ---- elit puan ---- */
.el-hero { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin: 4px 0 8px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124, 240, 192, .12), rgba(124, 240, 192, .03)); border: 1px solid rgba(124, 240, 192, .35); }
.el-ico { width: 64px; height: 64px; flex: none; color: #7cf0c0; filter: drop-shadow(0 0 10px rgba(124, 240, 192, .45)); }
.el-ico svg { width: 100%; height: 100%; }
.el-main { flex: 1; display: grid; gap: 4px; }
.el-main small { color: var(--text-2); }
.el-pts { font-size: 34px; line-height: 1.1; color: #9ff7d3; font-variant-numeric: tabular-nums; }
.el-bar { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.el-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fbf8f, #9ff7d3); }
.el-soon { padding: 22px; border-radius: var(--r-lg); text-align: center; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); }
.el-soon b { font-size: 18px; color: var(--gold-hi); }
.el-soon p { margin: 6px 0 0; color: var(--text-2); }
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.el-card { display: grid; gap: 6px; padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid rgba(124, 240, 192, .25); }
.el-card.own { opacity: .75; }
.el-name { font-weight: 700; color: #9ff7d3; }
.el-card small { color: var(--text-3); }
.el-card small.bad { color: #ff9c9c; }
.el-stats { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; }
.el-stats span { padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.el-owned { color: #8fe3a5; font-weight: 600; }

/* ---- tuş atama ---- */
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; margin: 0 0 8px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--text-2); }
.key-btn { min-width: 74px; height: 28px; padding: 0 10px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--line-2); color: var(--text); font: 600 12.5px ui-monospace, Consolas, monospace; cursor: pointer; }
.key-btn:hover { border-color: var(--gold-hi); }
.key-btn.wait { border-color: var(--gold-hi); color: var(--gold-hi); animation: key-wait 1s infinite; }
/* ---- arayüz boyutu ---- */
html.ui-scaled #hud { zoom: var(--ui-scale, 1); }
@keyframes key-wait { 50% { opacity: .55; } }
/* ---- renk körlüğü modu (Okabe-Ito renkleri) ---- */
html.cb { --green: #56b4e9; --green-hi: #a6d8f5; --red: #e69f00; --red-hi: #ffd27a; --hp-a: #b36b00; --hp-b: #f0b23c; }

/* ---- hikâye ara sahnesi ---- */
#cutscene { position: fixed; inset: 0; z-index: 150; cursor: pointer; background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.7)); animation: cs-in .45s ease both; user-select: none; }
#cutscene.out { animation: cs-out .35s ease both; }
@keyframes cs-in { from { opacity: 0; } }
@keyframes cs-out { to { opacity: 0; } }
.cs-bar { position: absolute; left: 0; right: 0; height: 11vh; background: #000; display: flex; align-items: center; justify-content: center; }
.cs-bar.top { top: 0; animation: cs-bar-t .5s ease both; }
.cs-bar.bot { bottom: 0; animation: cs-bar-b .5s ease both; }
@keyframes cs-bar-t { from { transform: translateY(-100%); } }
@keyframes cs-bar-b { from { transform: translateY(100%); } }
.cs-bar span { font: 400 clamp(18px, 2.6vw, 30px) var(--font-display, serif); color: var(--gold-hi); letter-spacing: 1px; text-shadow: 0 2px 12px rgba(232,181,74,.35); }
.cs-panel { position: absolute; left: 50%; bottom: calc(11vh + 22px); transform: translateX(-50%); width: min(860px, calc(100% - 32px)); display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 22px; border-radius: 14px; background: rgba(8, 14, 24, .92); border: 1px solid rgba(232, 181, 74, .35); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.cs-ico { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: rgba(255,255,255,.05); border: 2px solid; }
.cs-body { flex: 1; min-width: 0; }
.cs-name { font-weight: 700; font-size: 15px; margin: 2px 0 6px; letter-spacing: .3px; }
.cs-text { min-height: 3.2em; font-size: clamp(15px, 1.45vw, 18px); line-height: 1.55; color: #eef2f7; }
#cutscene.narr .cs-text { font-style: italic; color: #d3dae4; }
#cutscene.narr .cs-name { display: none; }
.cs-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: right; animation: key-wait 1.4s infinite; }
.cs-skip { position: absolute; right: 18px; top: calc(11vh + 14px); padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); color: #dfe5ee; font-size: 13px; cursor: pointer; }
.cs-skip:hover { background: rgba(0,0,0,.8); }
/* hikâye: takipçi ve sekme */
.trk.story { background: linear-gradient(90deg, rgba(232,181,74,.14), transparent); }
.st-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 8px; border-radius: var(--r-md); background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.st-row.st-cur { border-color: rgba(232, 181, 74, .55); background: rgba(232, 181, 74, .07); }
.st-row.st-lock { opacity: .55; }
.st-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--well); color: var(--gold-hi); }
.st-row.st-done .st-n { background: rgba(80, 200, 120, .2); color: #8fe3a5; }
.st-body { flex: 1; display: grid; gap: 4px; font-size: 13px; }
.st-body small.bad { color: #ff9c9c; }
.st-acts { display: flex; flex-direction: column; gap: 4px; }

.fr-invite { width: 100%; margin: 6px 0 4px; }
/* büyütülmüş arayüzde üst menü sığmazsa yazılar gizlenir, gerekirse yana kayar */
html.ui-scaled:not(.mobile) #menu { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
html.ui-scaled:not(.mobile) #menu::-webkit-scrollbar { display: none; }
html.ui-big:not(.mobile) .mbtn { width: 44px; }
html.ui-big:not(.mobile) .mbtn .lbl { display: none; }
.trk-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trk-n { font-weight: 600; color: var(--text); }

/* görev takipçisi: hedef ve harita */
.trk-tg { font-size: 11.5px; color: var(--text-2); margin: 1px 0 2px; }
.trk-tg.here { color: #8fe3a5; }

/* ---------- Kayıp Hazine Denizi ---------- */
.tz-pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.tz-piece { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; text-align: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2, rgba(255,255,255,.1)); opacity: 0.6; }
.tz-piece.on { opacity: 1; border-color: rgba(232, 207, 150, 0.55); background: linear-gradient(180deg, rgba(232, 207, 150, 0.12), rgba(232, 207, 150, 0.03)); }
.tz-piece .tz-ico { width: 54px; height: 54px; }
.tz-piece .tz-ico svg { width: 100%; height: 100%; display: block; }
.tz-piece b { font-size: 13px; }
.tz-piece small { color: var(--text-2); font-size: 12px; }
.tz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.tz-row .btn.big { flex: 1; }
.tz-maps { font-size: 14px; }
.tz-maps b { color: var(--gold-hi); font-size: 16px; }
.tz-in { padding: 10px 12px; border-radius: 12px; background: rgba(122, 255, 200, 0.06); border: 1px solid rgba(122, 255, 200, 0.25); }
.tz-feats { display: grid; gap: 8px; }
.tz-feats > div { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.tz-feats span { color: var(--text-2); font-size: 12.5px; }
.tz-open { margin-bottom: 10px; }
.tz-open small { opacity: 0.85; font-weight: 500; }
.ev-chip.ev-tz { border-color: rgba(232, 207, 150, 0.6); }

/* ---------- Sohbet çevirisi ---------- */
#chatLog .tr-able { cursor: pointer; }
#chatLog .tr-able:hover { text-decoration: underline dotted rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
#chatLog .tr-line { margin: 1px 0 3px 14px; padding-left: 8px; border-left: 2px solid rgba(120, 190, 255, 0.45); font-size: 0.93em; color: #bcd8f2; }
#chatLog .tr-line b { font-weight: 600; color: #7fbfff; font-size: 0.85em; letter-spacing: 0.3px; }
#chatLog .tr-line i { color: var(--text-2, #9fb2c8); }

/* ---------- Sade mod (göz yormayan): arayüzde kayma, parlama ve titreme animasyonları yok ---------- */
html.simple *, html.simple *::before, html.simple *::after { animation: none !important; transition: none !important; }
html.simple #vignette { display: none; }
