:root {
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;

  --color-bg: #050810;
  --color-bg-elevated: #0c131c;
  --color-bg-subtle: #131c28;
  --color-fg: #e8f4fb;
  --color-muted: #8b9dab;
  --color-subtle: #64798a;
  --color-border: rgb(90 209 255 / 14%);
  --color-border-strong: rgb(90 209 255 / 26%);
  --color-accent: #5ad1ff;
  --color-accent-fg: #04141c;
  --color-ice: #5ad1ff;
  --color-hull: #33e08a;
  --color-shield: #3fb8ff;
  --color-cargo: #e0a83f;
  --color-crystal: #c07bff;
  --color-magenta: #ff4fd8;
  --color-warn: #ffb454;
  --color-danger: #ff5a5a;
  --color-sand: #e0c98f;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  --shadow-border: 0 0 0 1px var(--color-border), 0 0 22px rgb(90 209 255 / 8%), 0 18px 50px rgb(0 0 0 / 45%);
  --shadow-border-hover: 0 0 0 1px var(--color-border-strong), 0 0 28px rgb(90 209 255 / 16%), 0 18px 50px rgb(0 0 0 / 45%);

  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-quick: 150ms;
  --motion-fast: 250ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: var(--color-bg); overflow: hidden;
  font-family: var(--font-sans); color: var(--color-fg); -webkit-font-smoothing: antialiased; }

.hidden { display: none !important; }

/* ---- Auth ---- */
/* Giriş ekranı: üstte logo afişi (net), arkada aynı görselin bulanık ve karartılmış hali, altta giriş kutusu.
   Logo ortasında oyunun adı yazdığı için kutu üstüne bindirilmez, afişin altına dizilir. */
#auth-screen { position: relative; isolation: isolate; width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: safe center; gap: clamp(8px, 2vh, 20px); padding: 20px 16px; overflow-y: auto; background: var(--color-bg); }
#auth-screen::before { content: ''; position: fixed; inset: -40px; z-index: -1;
  background: linear-gradient(rgb(5 8 16 / 55%), rgb(5 8 16 / 82%)), url('astral_online_logo.jpg') center 30%/cover no-repeat;
  filter: blur(18px) saturate(1.2); }
.auth-logo { display: block; flex: none; width: min(820px, 94vw); height: auto; max-height: 40vh; object-fit: contain;
  /* Görselin dikdörtgen kenarları arka plana erisin: sadece dış şerit saydamlaşır, ortadaki yazı kırpılmaz. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 14%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 14%, #000 88%, transparent);
  mask-composite: intersect; user-select: none; pointer-events: none; }
@media (max-height: 560px) { .auth-logo { max-height: 30vh; } }
.auth-box { background: color-mix(in oklab, var(--color-bg-elevated) 78%, transparent); padding: 34px 30px;
  border-radius: var(--radius-lg); width: 300px; text-align: center; box-shadow: var(--shadow-border);
  backdrop-filter: blur(10px) saturate(1.3); }
.auth-box h1 { margin-top: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }
.auth-box input { width: 100%; padding: 10px 12px; margin: 6px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong); background: rgb(7 9 16 / 60%); color: var(--color-fg); font-family: var(--font-sans); }
.auth-box input:focus { outline: none; border-color: var(--color-ice); }
.auth-buttons { display: flex; gap: 8px; margin-top: 10px; }
.auth-buttons button { flex: 1; }
.error { color: var(--color-danger); min-height: 20px; margin-top: 8px; font-size: 13px; }
.remember-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted);
  margin: 4px 2px 0; text-align: left; }
.remember-row input { width: auto; margin: 0; }
/* Cloudflare Turnstile kutusu (bkz. main.js setupTurnstile) — 300px sabit genişlikli iframe, ortalanır */
/* Form, 300px sabit genişlikli doğrulama kutusu içine sığsın diye 360px (iç alan 300px). Kutu şifre yazılınca açılır. */
#login-box, #register-box { width: 360px; max-width: calc(100vw - 32px); }
.turnstile-slot { display: flex; justify-content: center; margin: 10px 0 4px; height: 65px; animation: ts-reveal 0.25s ease-out; }
.turnstile-slot.hidden { display: none; }
.turnstile-slot > div { border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--color-border); max-width: 100%; }
@keyframes ts-reveal { from { opacity: 0; height: 0; margin-top: 0; } to { opacity: 1; height: 65px; } }
@media (prefers-reduced-motion: reduce) { .turnstile-slot { animation: none; } }
@media (max-width: 399px) { .turnstile-slot { height: auto; min-height: 140px; animation: none; } } /* kompakt kutu 150×140 */
.auth-switch { margin-top: 14px; font-size: 13px; color: var(--color-muted); }
/* Hızlı giriş listesi (giriş kutusunun üstünde) ve "kaydedelim mi?" kutusu */
#quick-login { margin-bottom: 6px; text-align: left; }
.quick-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-ice); margin-bottom: 6px; }
#quick-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.quick-row { display: flex; align-items: stretch; gap: 6px; }
.auth-box .quick-row .quick-enter { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 9px 12px; background: rgb(7 9 16 / 60%); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
.auth-box .quick-row .quick-enter:hover { box-shadow: 0 0 0 1px var(--color-ice); filter: none; }
.quick-enter .quick-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--color-ice); color: var(--color-accent-fg); }
.quick-enter .quick-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.auth-box .quick-row .quick-del { flex: none; width: 36px; margin: 0; padding: 0; background: rgb(7 9 16 / 60%); color: var(--color-muted);
  box-shadow: 0 0 0 1px var(--color-border); font-size: 14px; }
.auth-box .quick-row .quick-del:hover { color: var(--color-danger); box-shadow: 0 0 0 1px var(--color-danger); filter: none; }
.quick-login-sep { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 11px; color: var(--color-subtle); }
.quick-login-sep::before, .quick-login-sep::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.quick-login-sep span { flex: none; white-space: nowrap; }
#quick-ask-box { width: 340px; }
#quick-ask-box h1 { font-size: 26px; margin-bottom: 10px; }
.quick-ask-text { font-size: 14px; line-height: 1.5; color: var(--color-fg); margin: 0 0 8px; }
.quick-ask-note { font-size: 12px; line-height: 1.45; color: var(--color-muted); margin: 0 0 6px; }
.auth-buttons button.secondary { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
.auth-switch a { color: var(--color-ice); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ---- Giriş sırası ---- */
.queue-box { width: 340px; }
.queue-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-warn); }
.queue-box h1 { margin: 4px 0 18px; font-size: 30px; }
.queue-position-label { font-size: 13px; color: var(--color-muted); }
/* Sıra numarası sans fontla: display fontunun (Cormorant) "1"i Romen rakamı "I" gibi okunuyor */
.queue-position { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-ice); text-shadow: 0 0 24px rgb(90 209 255 / 35%); font-variant-numeric: tabular-nums; }
.queue-meta { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 16px; padding: 12px 6px;
  border-radius: var(--radius-md); background: rgb(7 9 16 / 45%); box-shadow: inset 0 0 0 1px var(--color-border); }
.queue-meta > div { flex: 1; min-width: 0; }
.queue-meta > div:last-child { flex: 1.5; } /* "hesaplanıyor…" / "~12 dk" sığsın */
.queue-meta dt { font-size: 11px; color: var(--color-subtle); margin-bottom: 3px; }
.queue-meta dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.queue-progress { height: 3px; border-radius: 2px; overflow: hidden; background: var(--color-border); }
.queue-progress i { display: block; width: 35%; height: 100%; border-radius: 2px; background: var(--color-ice);
  animation: queue-slide 1.8s var(--ease-smooth-out) infinite; }
@keyframes queue-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .queue-progress i { animation: none; width: 100%; opacity: 0.4; } }
.queue-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--color-muted); }
.queue-conn { min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--color-warn); }
.queue-leave { background: transparent; color: var(--color-fg); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.queue-leave:hover { filter: none; background: rgb(255 255 255 / 6%); }

button { cursor: pointer; background: var(--color-accent); color: var(--color-accent-fg); border: none;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-sans);
  font-weight: 600; transition: filter var(--motion-quick) var(--ease-smooth-out), transform var(--motion-quick); }
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(1px); }
button:disabled { background: var(--color-bg-subtle); color: var(--color-subtle); cursor: not-allowed; filter: none; }

/* ---- Game ---- */
#game-screen { width: 100%; height: 100%; position: relative; }
/* 3D sahne (public/scene3d.js) en altta; üstündeki #canvas saydam — etiketler, can çubukları, halkalar oraya çizilir */
#canvas3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #020308; }
#canvas { position: relative; display: block; width: 100%; height: 100%; background: transparent; user-select: none; cursor: crosshair; }
/* parlama/parçacık katmanı: oyun tuvalinin tam üstünde, HUD'un altında; tıklamaları alttaki tuvale geçirir */
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.sg-panel { background: color-mix(in oklab, var(--color-bg-elevated) 74%, transparent);
  box-shadow: var(--shadow-border); backdrop-filter: blur(10px) saturate(1.3); }

#hud { position: absolute; top: 16px; left: 16px; background: color-mix(in oklab, var(--color-bg-elevated) 74%, transparent);
  border-radius: var(--radius-md); width: 250px; box-shadow: var(--shadow-border);
  backdrop-filter: blur(10px) saturate(1.3); border-top: 2px solid var(--color-ice); }
#hud-body { padding: 10px 16px 14px; }
#hud.minimized { width: auto; }
#hud.minimized #hud-body { display: none; }
.hud-btn { width: 100%; margin-top: 10px; font-size: 12px; padding: 8px; background: var(--color-bg-subtle);
  color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border); }
.hud-btn:hover { background: #202834; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--color-muted); }
.bar-row span:first-child { width: 55px; }
.bar-row .bar-num { width: 62px; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--color-fg); }
.bar { position: relative; flex: 1; height: 5px; border-radius: 999px; background: rgb(232 238 243 / 7%); overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgb(5 8 16 / 55%) 7px 8px); }
.bar-fill { height: 100%; width: 0%; border-radius: inherit; box-shadow: 0 0 10px currentColor;
  transition: width var(--motion-fast) var(--ease-smooth-out); }
.bar-fill.hull { background: var(--color-hull); color: var(--color-hull); }
.bar-fill.shield { background: var(--color-shield); color: var(--color-shield); }
.bar-fill.cargo { background: var(--color-cargo); color: var(--color-cargo); }
.bar-fill.speed { background: linear-gradient(90deg, #4fa3ff, #9fdcff); color: #7cc4ff; }
/* Sürüş bölümü: hız çubuğu + hız sınırı + seyir (kargonun altında, ince çizgiyle ayrılmış) */
.drive-panel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); }
.drive-panel .bar-row { margin-bottom: 8px; }
.speed-limit-mark { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; left: 100%;
  background: var(--color-fg); opacity: 0.7; border-radius: 1px; transition: left var(--motion-fast) var(--ease-smooth-out); }
.drive-controls { display: flex; align-items: stretch; gap: 6px; }
.throttle-stepper { flex: 1; display: flex; align-items: center; height: 28px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); box-shadow: 0 0 0 1px var(--color-border); overflow: hidden; }
.step-btn { width: 26px; height: 100%; padding: 0; border-radius: 0; font-size: 15px; font-weight: 600; line-height: 1;
  background: transparent; color: var(--color-muted); }
.step-btn:hover { background: rgb(232 238 243 / 8%); color: var(--color-fg); filter: none; }
.step-btn:active { transform: none; background: rgb(232 238 243 / 14%); }
.throttle-value { flex: 1; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--color-fg); white-space: nowrap; }
.drive-label { color: var(--color-subtle); font-size: 11px; }
/* Seyir: stepper'ın hemen sağında kare ikon düğmesi; açıkken yeşil yanar */
.cruise-toggle { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  background: var(--color-bg-subtle); color: var(--color-subtle); box-shadow: 0 0 0 1px var(--color-border);
  transition: color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast); }
.cruise-toggle:hover { color: var(--color-fg); filter: none; }
.cruise-toggle.active { color: var(--color-hull); background: color-mix(in oklab, var(--color-hull) 14%, var(--color-bg-subtle));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-hull) 65%, transparent), 0 0 10px color-mix(in oklab, var(--color-hull) 35%, transparent); }
.cruise-toggle.active svg { animation: cruise-nudge 1.2s var(--ease-smooth-out) infinite; }
@keyframes cruise-nudge { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(1.5px); } }
@media (prefers-reduced-motion: reduce) { .cruise-toggle.active svg { animation: none; } }
.bar-fill.speed.warp { background: linear-gradient(90deg, #8a7bff, #e0d8ff); color: #b9adff; }
.bar-fill.crystal { background: var(--color-crystal); color: var(--color-crystal); }
.bar-fill.magenta { background: var(--color-magenta); color: var(--color-magenta); }
.bar-fill.xp { background: linear-gradient(90deg, #f5b942, #ffe38a); color: #ffd66b; }
/* Seviye satırı (HUD en üstü): altın seviye rozeti + XP çubuğu */
.level-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; }
.level-badge { flex-shrink: 0; min-width: 55px; padding: 2px 8px; border-radius: 999px; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums; color: #2a1c00; background: linear-gradient(180deg, #ffe38a, #f5b942);
  box-shadow: 0 0 12px rgb(255 214 107 / 35%); }
.level-row .xp-bar { height: 6px; }
.level-row .bar-num { width: auto; min-width: 62px; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--color-muted); font-size: 11px; }
.level-row.level-up .level-badge { animation: level-up-pop 1.2s var(--ease-smooth-out); }
@keyframes level-up-pop { 0% { transform: scale(1); } 20% { transform: scale(1.35); box-shadow: 0 0 26px rgb(255 214 107 / 90%); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .level-row.level-up .level-badge { animation: none; } }
.lb-level { flex-shrink: 0; min-width: 52px; padding: 1px 8px; border-radius: 999px; text-align: center; font-size: 12px;
  font-weight: 700; color: #2a1c00; background: linear-gradient(180deg, #ffe38a, #f5b942); font-variant-numeric: tabular-nums; }
.lb-xp { flex-shrink: 0; min-width: 84px; text-align: right; font-size: 11px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.stat-row { margin-top: 6px; font-size: 13px; }
.repair-indicator { margin-top: 6px; font-size: 11px; color: var(--color-muted); }
.repair-indicator.repairing { color: var(--color-hull); animation: repair-pulse 1.1s infinite; }
@keyframes repair-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
#cargo-full-label { margin-top: 6px; font-size: 11px; font-weight: bold; color: var(--color-warn);
  animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.bar-fill.cargo.full { background: var(--color-danger); color: var(--color-danger); }

/* Hasar alınca can/kalkan çubuğunun kısa süreliğine yanıp sönmesi (bkz. flashBar() main.js) */
.bar.hit-flash { animation: bar-hit-flash 0.4s ease-out; }
@keyframes bar-hit-flash {
  0% { box-shadow: 0 0 0 2px var(--color-danger); }
  100% { box-shadow: 0 0 0 0px transparent; }
}

#minimap-wrap { position: absolute; top: 16px; right: 16px; background: color-mix(in oklab, var(--color-bg-elevated) 74%, transparent);
  border-radius: var(--radius-md); box-shadow: var(--shadow-border); backdrop-filter: blur(10px) saturate(1.3);
  overflow: hidden; border-top: 2px solid var(--color-ice); }
#minimap { display: block; cursor: pointer; }
#minimap-wrap.minimized { width: auto; }
#minimap-wrap.minimized #minimap { display: none; }
#minimap-coords { padding: 3px 8px 5px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums;
  color: var(--color-muted); border-top: 1px solid var(--color-border); white-space: nowrap; }
#minimap-wrap.minimized #minimap-coords { display: none; }
/* Tarayıcı düğmeleri (radarın altında ve haritada); --cd: kalan bekleme oranı (bkz. main.js) */
#scan-bar { display: flex; gap: 4px; padding: 5px 6px 6px; border-top: 1px solid var(--color-border); }
#minimap-wrap.minimized #scan-bar { display: none; }
.scan-btn, #wide-map-box .scan-btn { position: relative; flex: 1 1 0; min-width: 0; width: auto; margin: 0; padding: 4px 3px; overflow: hidden;
  font-size: 10.5px; white-space: nowrap; color: var(--color-fg); border-radius: var(--radius-xs); cursor: pointer;
  background: color-mix(in oklab, var(--color-bg-elevated) 80%, transparent); border: none; box-shadow: 0 0 0 1px var(--color-border-strong); }
.scan-btn.scan-enemy { box-shadow: 0 0 0 1px rgba(255,90,90,0.55); }
.scan-btn.scan-ore { box-shadow: 0 0 0 1px rgba(255,192,74,0.55); }
.scan-btn:hover { filter: brightness(1.25); }
.scan-btn::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--cd, 0));
  background: rgba(0,0,0,0.5); pointer-events: none; }
.scan-btn.cooling { color: var(--color-muted); }
.scan-btn .scan-cd { font-variant-numeric: tabular-nums; }

.panel-drag-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px; cursor: grab; user-select: none; font-size: 10px; color: var(--color-subtle);
  text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--color-border); }
#hud.minimized .panel-drag-bar, #minimap-wrap.minimized .panel-drag-bar { border-bottom: none; }
.panel-drag-bar:active { cursor: grabbing; }
.panel-toggle-btn { margin-top: 0; padding: 1px 7px; font-size: 11px; line-height: 1.4; background: transparent;
  box-shadow: none; color: var(--color-muted); }
.panel-toggle-btn:hover { color: var(--color-ice); background: var(--color-bg-subtle); }

.info-btn { position: absolute; bottom: 12px; left: 16px; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; font-size: 16px; line-height: 1; background: color-mix(in oklab, var(--color-bg-elevated) 74%, transparent);
  color: var(--color-ice); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-border);
  backdrop-filter: blur(10px) saturate(1.3); }
.info-btn:hover { box-shadow: var(--shadow-border-hover); filter: brightness(1.15); }

/* Sol alt menü: konu gruplarına ayrılmış butonlar; grup butonu alt menüsünü yukarı doğru açar (bkz. main.js setupMenuDock). */
#menu-dock { position: absolute; bottom: 12px; left: 16px; display: flex; gap: 8px; z-index: 42; }
#menu-dock .info-btn { position: relative; left: auto; bottom: auto; }
.dock-group { position: relative; }
.dock-group.open > .dock-trigger { box-shadow: 0 0 0 1px var(--color-accent), 0 0 18px color-mix(in oklab, var(--color-accent) 35%, transparent); }
/* Alt menüde görünür bir rozet varsa (okunmamış mesaj, YENİ yama notu, çark hakkı) grup butonunda nokta yanar. */
.dock-group:has(.dock-menu .badge:not(.hidden)) > .dock-trigger::after { content: ''; position: absolute; top: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-danger); box-shadow: 0 0 0 2px var(--color-bg-elevated);
  animation: dock-dot-pulse 1.6s ease-in-out infinite; }
@keyframes dock-dot-pulse { 50% { filter: brightness(1.5); } }
.dock-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 196px; padding: 6px; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-bg-elevated) 92%, transparent); box-shadow: var(--shadow-border);
  backdrop-filter: blur(12px) saturate(1.3); display: flex; flex-direction: column; gap: 2px;
  animation: dock-menu-in var(--motion-fast) var(--ease-smooth-out); }
.dock-menu.hidden { display: none; }
@keyframes dock-menu-in { from { opacity: 0; transform: translateY(6px); } }
.dock-menu-title { padding: 4px 8px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-subtle); }
.dock-item { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 8px 10px; text-align: left;
  font-size: 13px; font-weight: 500; background: transparent; color: var(--color-fg); border-radius: var(--radius-sm); white-space: nowrap; }
.dock-item:hover, .dock-item:focus-visible { background: var(--color-bg-subtle); filter: none; }
.dock-item.danger { color: var(--color-danger); }
.dock-item .badge { position: static; margin-left: auto; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .dock-menu, .dock-group:has(.dock-menu .badge:not(.hidden)) > .dock-trigger::after { animation: none; } }
.badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--color-danger); color: #fff; font-size: 10px; font-weight: bold;
  line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--color-bg-elevated); }
.leaderboard-list { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); font-size: 13px; }
.lb-rank { width: 26px; flex-shrink: 0; text-align: center; font-weight: bold; color: var(--color-muted); }
.lb-row.lb-top1 .lb-rank { color: var(--color-sand); }
.lb-row.lb-top2 .lb-rank { color: var(--color-accent); }
.lb-row.lb-top3 .lb-rank { color: var(--color-warn); }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-fg); }
.lb-name.lb-me { color: var(--color-hull); font-weight: bold; }
.lb-kills { flex-shrink: 0; min-width: 52px; text-align: right; font-weight: bold; color: #ff7a7a; font-variant-numeric: tabular-nums; }
.lb-title { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid; border-radius: 999px;
  font-size: 10px; font-weight: bold; line-height: 16px; vertical-align: 1px; }
.lb-title-note { margin: 0 0 4px; font-size: 11px; color: var(--color-muted); }
.lb-credits { flex-shrink: 0; color: var(--color-cargo); font-variant-numeric: tabular-nums; }
.help-list { margin-top: 6px; }
.help-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 12px;
  color: var(--color-muted); border-top: 1px solid var(--color-border); }
.help-row:first-child { border-top: none; }
.help-key { flex-shrink: 0; min-width: 96px; font-size: 11px; letter-spacing: 0.04em; padding: 2px 7px;
  border-radius: var(--radius-xs); background: var(--color-bg-subtle); box-shadow: 0 0 0 1px var(--color-border);
  color: var(--color-ice); text-align: center; font-variant-numeric: tabular-nums; }

#target-panel { position: absolute; bottom: 12px; right: 16px; background: color-mix(in oklab, var(--color-bg-elevated) 78%, transparent);
  border-radius: var(--radius-md); padding: 10px 12px; width: 220px; box-shadow: var(--shadow-border);
  backdrop-filter: blur(10px) saturate(1.3); border-top: 2px solid var(--color-danger); }
#target-drag-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; cursor: grab; user-select: none; }
#target-drag-bar:active { cursor: grabbing; }
.target-grip { flex: none; color: var(--color-subtle); font-size: 12px; line-height: 1; }
#target-name { flex: 1 1 auto; min-width: 0; font-weight: bold; font-size: 13px; font-family: var(--font-display); }
#target-panel .bar { height: 5px; margin-bottom: 4px; }
#target-shield-row { margin-bottom: 2px; }
.target-hull-text { font-size: 11px; color: var(--color-muted); margin-bottom: 6px; }
.target-range-text { font-size: 11px; margin-bottom: 6px; font-weight: bold; }
.target-range-text.in-range { color: var(--color-hull); }
.target-range-text.out-range { color: var(--color-danger); }
.target-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.target-buttons button { flex: 1 1 45%; font-size: 11px; padding: 7px 4px; margin-top: 0; }
.target-buttons button.active-follow { background: var(--color-hull); color: var(--color-accent-fg); }
.target-buttons button.active-follow:hover { filter: brightness(1.15); }
/* ---- Ayarlar: bölümler kart, açık/kapalı ayarlar anahtar (switch), seçenekler bölmeli düğme ---- */
/* Yatay (geniş) pencere: kartlar sütunlara dağılır, yükseklikler dengelenir; dar ekranda tek sütun */
#settings-panel { width: min(96vw, 920px); }
#settings-panel .settings-body { columns: 3 270px; column-gap: 10px; }
#settings-panel .settings-body > .settings-card { break-inside: avoid; margin-bottom: 10px; }
#settings-panel .settings-card { padding: 12px 14px 14px; border-radius: var(--radius-md); background: rgb(255 255 255 / 2.5%);
  box-shadow: inset 0 0 0 1px var(--color-border); }
#settings-panel .settings-card-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-subtle); }
#settings-panel .settings-card-aside { font-weight: 600; letter-spacing: 0.06em; opacity: 0.7; }
html[lang="en"] #settings-panel .settings-card-aside { display: none; } /* İngilizcede başlık zaten "Language" */
#settings-panel .settings-subtitle { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--color-border);
  font-size: 11px; font-weight: 600; color: var(--color-subtle); }

/* Anahtar satırı: solda ad + açıklama, sağda anahtar. <button role=switch> ya da <label> + checkbox olabilir. */
#settings-panel .switch-row, #settings-panel .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; margin: 0; padding: 9px 0; background: none; box-shadow: none; border-radius: 0; color: var(--color-fg);
  text-align: left; font: inherit; font-weight: 400; cursor: pointer; }
#settings-panel .setting-row { cursor: default; padding-bottom: 8px; }
#settings-panel .switch-row + .switch-row { border-top: 1px solid rgb(255 255 255 / 5%); }
#settings-panel .switch-row:hover { filter: none; }
#settings-panel .switch-row:active { transform: none; }
#settings-panel .switch-row:focus-visible { outline: 2px solid var(--color-ice); outline-offset: 2px; border-radius: var(--radius-xs); }
#settings-panel .switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#settings-panel .switch-label { font-size: 13.5px; font-weight: 600; color: var(--color-fg); }
#settings-panel .switch-desc { font-size: 11.5px; line-height: 1.4; color: var(--color-subtle); }

#settings-panel .switch, #settings-panel .switch-input { position: relative; flex: none; width: 38px; height: 22px; margin: 0;
  border-radius: 999px; background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border-strong);
  transition: background var(--motion-quick) var(--ease-smooth-out), box-shadow var(--motion-quick); cursor: pointer; }
#settings-panel .switch-input { appearance: none; -webkit-appearance: none; }
#settings-panel .switch::after, #settings-panel .switch-input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--color-muted); transition: transform var(--motion-quick) var(--ease-smooth-out), background var(--motion-quick); }
#settings-panel .switch-row[aria-checked="true"] .switch, #settings-panel .switch-input:checked { background: var(--color-hull); box-shadow: none; }
#settings-panel .switch-row[aria-checked="true"] .switch::after, #settings-panel .switch-input:checked::after { transform: translateX(16px); background: #04140c; }
#settings-panel .switch-input:focus-visible { outline: 2px solid var(--color-ice); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #settings-panel .switch::after, #settings-panel .switch-input::after { transition: none; } }

/* Bölmeli seçim (grafik kalitesi, dil) */
#settings-panel .segmented { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border); }
#settings-panel .segmented button { flex: 1; width: auto; margin: 0; padding: 7px 8px; border-radius: var(--radius-xs); background: transparent;
  color: var(--color-muted); font-size: 12.5px; font-weight: 600; }
#settings-panel .segmented button:hover { filter: none; color: var(--color-fg); background: rgb(255 255 255 / 5%); }
#settings-panel .segmented button.active { background: var(--color-accent); color: var(--color-accent-fg); }
#settings-panel .segmented button:focus-visible { outline: 2px solid var(--color-ice); outline-offset: 1px; }

#volume-sliders { margin: 0; }
#settings-panel .volume-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  margin: 8px 0 0; font-size: 12px; color: var(--color-fg); }
#settings-panel .volume-row.sub { margin-left: 14px; color: var(--color-muted); }
#settings-panel .volume-row input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--color-ice); cursor: pointer; }
#settings-panel .volume-row output { color: var(--color-ice); font-variant-numeric: tabular-nums; font-size: 11px; }

#settings-panel .account-name-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0;
  font-size: 13px; color: var(--color-muted); }
#settings-panel .account-name-row b { color: var(--color-ice); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#settings-panel .account-details { border-top: 1px solid rgb(255 255 255 / 5%); }
#settings-panel .account-details summary { display: flex; align-items: center; justify-content: space-between; padding: 9px 0;
  font-size: 13px; font-weight: 600; color: var(--color-fg); cursor: pointer; list-style: none; }
#settings-panel .account-details summary::-webkit-details-marker { display: none; }
#settings-panel .account-details summary::after { content: '›'; color: var(--color-subtle); font-size: 16px; line-height: 1;
  transition: transform var(--motion-quick) var(--ease-smooth-out); }
#settings-panel .account-details[open] summary::after { transform: rotate(90deg); }
#settings-panel .account-details summary:hover { color: var(--color-ice); }
#settings-panel .account-details summary:focus-visible { outline: 2px solid var(--color-ice); outline-offset: 2px; border-radius: var(--radius-xs); }
#settings-panel .account-form { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
#settings-panel .account-form input { width: 100%; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong);
  background: rgb(7 9 16 / 60%); color: var(--color-fg); font: 13px var(--font-sans); }
#settings-panel .account-form input::placeholder { color: var(--color-subtle); }
#settings-panel .account-form input:focus { outline: none; border-color: var(--color-ice); }
#settings-panel .account-form button { margin-top: 2px; padding: 9px 12px; font-size: 13px; }
#settings-panel .account-msg { font-size: 12px; min-height: 0; }
#settings-panel .account-msg:not(:empty) { margin-top: 6px; }
#settings-panel .account-msg.ok { color: var(--color-hull); }
#settings-panel .account-msg.error { color: var(--color-danger); }

#dead-overlay { position: absolute; inset: 0; background: rgb(7 9 16 / 92%); display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 22px;
  font-family: var(--font-display); backdrop-filter: blur(6px); }

#shutdown-overlay { position: absolute; inset: 0; background: rgb(7 9 16 / 95%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 18px; text-align: center; padding: 20px; }

#logout-overlay { position: absolute; inset: 0; background: rgb(7 9 16 / 95%); z-index: 55;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-size: 18px; text-align: center; padding: 20px; }
#logout-countdown-num { font-family: var(--font-display); font-size: 48px; font-weight: bold;
  color: var(--color-hull); line-height: 1; }
#logout-warning { max-width: 460px; font-size: 13px; color: var(--color-warn); font-weight: normal; }

#placement-hint { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--color-bg-elevated) 82%, transparent); box-shadow: 0 0 0 1px var(--color-warn), var(--shadow-border);
  border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--color-warn); backdrop-filter: blur(10px) saturate(1.3); }
#placement-hint button { padding: 6px 10px; font-size: 12px; margin-top: 0; }

#marker-form { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--color-bg-elevated) 88%, transparent); box-shadow: 0 0 0 1px var(--color-border), var(--shadow-border);
  border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  width: 240px; backdrop-filter: blur(10px) saturate(1.3); }
.marker-form-title { font-size: 13px; font-weight: bold; color: var(--color-ice); }
#marker-form-name { width: 100%; box-sizing: border-box; }
.marker-form-buttons { display: flex; gap: 8px; }
.marker-form-buttons button { flex: 1; margin-top: 0; }

.marker-color-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.marker-swatch { width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 1px var(--color-border); }
.marker-swatch.active { box-shadow: 0 0 0 2px var(--color-ice); }
.marker-name-input { font-size: 12px; padding: 2px 6px; width: 120px; }
.marker-inline-btn { padding: 2px 6px; font-size: 11px; margin-top: 0; margin-left: 4px; }

/* Yer işaretleri: her satır tek bir kompakt liste öğesi — eskiden istasyon-deposu kartı
   gibi (büyük başlık + tam genişlik Git/Sil butonları) çizilirdi, artık tek satırlık bir
   liste; sadece düzenleme sırasında (renk seçimi için) ikinci bir satıra açılır. */
.marker-list { display: flex; flex-direction: column; gap: 4px; }
.marker-row { display: flex; align-items: center; gap: 6px; background: var(--color-bg-subtle);
  border-radius: var(--radius-sm); padding: 5px 8px; font-size: 12px; margin-top: 0; }
.marker-row.editing { flex-direction: column; align-items: stretch; gap: 4px; }
.marker-row-line { display: flex; align-items: center; gap: 6px; }
.marker-row-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4); }
.marker-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; color: var(--color-fg); }
.marker-row-zone { flex-shrink: 0; font-size: 10px; color: var(--color-muted); white-space: nowrap; }
/* #markers-list ile scope edilip .panel button {width:100%}'ten (bkz. yukarısı) daha
   spesifik hale getiriliyor, yoksa Git/Sil/Düzenle simgeleri de tam genişlik kartlara döner. */
#markers-list .marker-row-btn { width: auto; flex-shrink: 0; margin-top: 0; padding: 3px 7px; font-size: 12px; line-height: 1; }
#markers-list .marker-row-line input.marker-name-input { flex: 1; min-width: 40px; width: auto; margin-top: 0; }

/* ---- Arkadaşlar ---- */
#friends-panel { width: min(94vw, 420px); }
.friends-online-chip { margin-left: auto; }
.friend-add-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: rgb(5 8 16 / 55%); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.friend-add-row:focus-within { box-shadow: inset 0 0 0 1px var(--color-ice), 0 0 14px rgb(90 209 255 / 18%); }
.friend-add-icon { font-size: 13px; opacity: 0.7; }
.friend-add-row input { flex: 1; min-width: 0; padding: 7px 0; border: none; background: transparent; color: var(--color-fg);
  font-family: var(--font-sans); font-size: 13px; }
.friend-add-row input:focus { outline: none; }
:is(#friends-panel, #group-panel) .friend-add-row button { width: auto; margin: 0; padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; }
#friend-add-error:empty { display: none; }
.friends-section .section-title { display: flex; align-items: center; gap: 6px; }
.count-pill { min-width: 18px; padding: 0 6px; border-radius: 999px; font-size: 10px; line-height: 18px; text-align: center;
  color: #fff; background: var(--color-danger); letter-spacing: 0; }
.count-pill:empty { display: none; }
.friend-list { display: flex; flex-direction: column; gap: 6px; }
.friend-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md);
  background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border);
  transition: box-shadow var(--motion-quick) var(--ease-smooth-out), background var(--motion-quick) var(--ease-smooth-out); }
.friend-card:hover { box-shadow: inset 0 0 0 1px var(--color-border-strong); background: color-mix(in oklab, var(--color-bg-subtle) 80%, #1d2a3a); }
.friend-card.online { box-shadow: inset 3px 0 0 var(--color-hull), inset 0 0 0 1px var(--color-border); }
.friend-card.chatting { box-shadow: inset 3px 0 0 var(--color-ice), inset 0 0 0 1px var(--color-ice); }
.friend-card.request { box-shadow: inset 3px 0 0 var(--color-warn), inset 0 0 0 1px rgb(255 180 84 / 30%); }
.friend-card:not(.online):not(.request):not(.pending) .friend-avatar { filter: saturate(0.35) brightness(0.8); }
.friend-avatar { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue, 200) 70% 52%), hsl(calc(var(--hue, 200) + 40) 70% 36%));
  box-shadow: 0 0 0 2px rgb(5 8 16 / 70%); }
.friend-avatar.small { width: 26px; height: 26px; font-size: 12px; }
.friend-avatar .online-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  box-shadow: 0 0 0 2px var(--color-bg-subtle); }
.friend-meta { flex: 1; min-width: 0; }
.friend-name { font-weight: 700; font-size: 13px; color: var(--color-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-status { font-size: 11px; color: var(--color-subtle); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-status.on { color: var(--color-hull); }
.friend-actions { display: flex; gap: 5px; flex-shrink: 0; }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn { width: auto; margin: 0; padding: 6px 11px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn.icon { padding: 6px 9px; }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn.accept { background: var(--color-hull); color: var(--color-accent-fg); }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn.ghost { background: transparent; color: var(--color-fg); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn.danger { background: transparent; color: var(--color-danger); box-shadow: inset 0 0 0 1px rgb(255 90 90 / 40%); }
:is(#friends-panel, #clan-panel, #profile-panel, #group-panel) .fr-btn.danger:hover { background: var(--color-danger); color: #1a0d0d; }
.friends-empty { text-align: center; padding: 16px 8px; line-height: 1.6; }

.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-subtle); flex-shrink: 0; }
.online-dot.online { background: var(--color-hull); box-shadow: 0 0 6px var(--color-hull); }

.badge-inline { background: var(--color-danger); color: #fff; font-size: 10px; font-weight: bold;
  border-radius: 999px; padding: 1px 6px; }

#chat-panel { position: absolute; bottom: 12px; right: 16px; width: 320px; height: 400px;
  display: flex; flex-direction: column; background: color-mix(in oklab, var(--color-bg-elevated) 90%, transparent);
  border-radius: var(--radius-md); box-shadow: var(--shadow-border); backdrop-filter: blur(10px) saturate(1.3);
  overflow: hidden; z-index: 40; }
#chat-header { cursor: move; user-select: none; touch-action: none; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  font-weight: bold; font-size: 13px; color: var(--color-fg); border-bottom: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-bg-subtle) 70%, transparent); }
/* Kapatma düğmesi: önceden şeffaf zemin + koyu buton metin rengi yüzünden neredeyse görünmüyordu */
#chat-header #chat-close { margin: 0 0 0 auto; width: 28px; height: 28px; padding: 0; flex-shrink: 0; font-size: 14px; line-height: 1;
  border-radius: var(--radius-sm); background: var(--color-bg-subtle); color: var(--color-fg);
  box-shadow: inset 0 0 0 1px var(--color-border-strong); }
#chat-header #chat-close:hover { background: var(--color-danger); color: #1a0d0d; box-shadow: none; }
#chat-panel.dragging { opacity: 0.92; box-shadow: var(--shadow-border), 0 12px 32px rgba(0,0,0,0.5); }
#chat-header #chat-close { cursor: pointer; }

/* Okunmamış mesaj uyarıları (Metin2 fısıltı düğmeleri gibi): ekranın sağ kenarında, dikeyde ortada, yanıp söner */
#whisper-alerts { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 41;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.whisper-alert { pointer-events: auto; display: flex; align-items: center; gap: 8px; margin: 0; width: auto; max-width: 200px;
  padding: 7px 12px 7px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff5d6; cursor: pointer;
  background: linear-gradient(180deg, #5a3a0c, #3a2406); box-shadow: 0 0 0 1px #ffcf5a, 0 4px 14px rgba(0,0,0,0.45);
  animation: whisper-blink 1.1s ease-in-out infinite, whisper-in 0.25s ease-out; }
.whisper-alert:hover { animation-play-state: paused; background: linear-gradient(180deg, #7a5212, #4d3108); }
.whisper-icon { font-size: 16px; line-height: 1; }
.whisper-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whisper-count { flex-shrink: 0; min-width: 18px; padding: 1px 5px; border-radius: 999px; font-size: 11px; text-align: center;
  background: var(--color-danger); color: #fff; }
@keyframes whisper-blink {
  0%, 100% { box-shadow: 0 0 0 1px #ffcf5a, 0 4px 14px rgba(0,0,0,0.45); filter: brightness(1); }
  50% { box-shadow: 0 0 0 2px #ffe08a, 0 0 18px 4px rgba(255,200,80,0.75); filter: brightness(1.35); }
}
@keyframes whisper-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .whisper-alert { animation: none; } }

#chat-title-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#chat-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-status { font-size: 10px; font-weight: normal; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--color-subtle); }
.chat-status.online { color: var(--color-hull); }
#chat-messages { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { max-width: 80%; padding: 7px 10px 5px; border-radius: 12px; font-size: 13px; line-height: 1.35; word-break: break-word; }
.chat-msg.mine { align-self: flex-end; background: var(--color-accent); color: var(--color-accent-fg); border-bottom-right-radius: 4px; }
.chat-msg.theirs { align-self: flex-start; background: var(--color-bg-subtle); color: var(--color-fg); border-bottom-left-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.chat-time { display: block; margin-top: 2px; font-size: 9.5px; text-align: right; opacity: 0.6; }
.chat-empty { margin: auto; text-align: center; }
#chat-input-row { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--color-border); }
#chat-input-row input { flex: 1; }
#chat-input-row button { margin-top: 0; width: 36px; }

#switch-hint { position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--color-bg-elevated) 82%, transparent); box-shadow: 0 0 0 1px var(--color-crystal), var(--shadow-border);
  border-radius: var(--radius-md); padding: 10px 16px; font-size: 13px; color: var(--color-crystal);
  backdrop-filter: blur(10px) saturate(1.3); font-weight: bold; }

/* Saldırgan bannerı: "target lock" kutucuklarına benzer köşeli
   çerçeve + kalkan/gövde çubukları. Her kutucuk bir saldırganı temsil eder. */
/* Güvenli bölgedeyken ekranın üstünde duran rozet; renk istasyon türünden gelir (bkz. main.js updateSafeZoneState) */
#safe-badge { --safe-accent: var(--color-ice); position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--safe-accent); background: color-mix(in oklab, var(--color-bg-elevated) 78%, transparent);
  border: 1px solid color-mix(in oklab, var(--safe-accent) 55%, transparent);
  box-shadow: 0 0 16px color-mix(in oklab, var(--safe-accent) 35%, transparent);
  backdrop-filter: blur(8px); pointer-events: none; white-space: nowrap; animation: safe-badge-pulse 2.4s ease-in-out infinite; }
#attacker-banner:not(.hidden) ~ #safe-badge { top: 120px; }
/* Warp durumu: hizalanırken/seyirde ekranın üstünde; hizalanırken iptal edilebilir (bkz. main.js updateWarpUi) */
#warp-status { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--color-ice); background: color-mix(in oklab, var(--color-bg-elevated) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-ice) 55%, transparent); box-shadow: 0 0 18px rgb(90 209 255 / 30%);
  backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
/* Geçit atlaması sonrası sistem adı (bkz. main.js startJumpArrival) */
#jump-title { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); z-index: 31; pointer-events: none; text-align: center;
  color: #e8f1ff; text-shadow: 0 0 18px rgb(120 170 255 / 70%); opacity: 0; min-width: 320px; }
#jump-title.show { animation: jumpTitle 5s ease-out forwards; }
#jump-title .jt-name { font-size: 34px; font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase; }
#jump-title .jt-sub { font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: #9fc2ff; margin-top: 6px; }
#jump-title .jt-line { height: 1px; margin: 10px auto; width: 0; background: linear-gradient(90deg, transparent, rgb(150 190 255 / 90%), transparent);
  animation: jumpLine 1.4s 0.6s ease-out forwards; }
@keyframes jumpTitle { 0% { opacity: 0; letter-spacing: 0.6em; } 18% { opacity: 0; } 32% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes jumpLine { to { width: 100%; } }
#warp-status.in-warp { color: #d9e6ff; border-color: rgb(140 170 255 / 70%); box-shadow: 0 0 26px rgb(140 170 255 / 55%); padding-right: 16px; }
#warp-status button { margin: 0; width: auto; padding: 4px 12px; font-size: 12px; border-radius: 999px; }
/* Warp: diğer hedef düğmelerinden ayrışsın diye mor; yazı koyu (eskiden yazı rengi = zemin rengiydi, sadece ⚡ görünüyordu) */
#target-panel #btn-target-warp { color: #0d0a24; background: linear-gradient(135deg, #b4a8ff, #8a7bff); font-weight: 700; }
#target-panel #btn-target-warp:disabled { opacity: 0.5; }
@keyframes safe-badge-pulse { 50% { box-shadow: 0 0 26px color-mix(in oklab, var(--safe-accent) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { #safe-badge { animation: none; } }
#station-prompt { --prompt-accent: var(--color-ice); position: absolute; top: calc(50% + 110px); left: 50%;
  transform: translateX(-50%); z-index: 40; display: flex; align-items: stretch; border-radius: 12px;
  cursor: grab; touch-action: none; user-select: none;
  background: color-mix(in oklab, var(--color-bg-elevated) 82%, transparent);
  border: 1px solid color-mix(in oklab, var(--prompt-accent) 60%, transparent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--prompt-accent) 35%, transparent);
  backdrop-filter: blur(8px); animation: station-prompt-in 0.25s ease-out; }
#station-prompt.placed { transform: none; }
#station-prompt.dragging { cursor: grabbing; opacity: 0.85; }
#station-prompt:hover { border-color: var(--prompt-accent);
  box-shadow: 0 0 26px color-mix(in oklab, var(--prompt-accent) 55%, transparent); }
.station-prompt-open { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 8px 9px 20px;
  background: none; border: none; font: inherit; color: var(--color-fg); cursor: inherit; }
.station-prompt-close { align-self: flex-start; margin: 4px 4px 0 0; width: 22px; height: 22px; padding: 0;
  border: none; border-radius: 6px; background: none; color: var(--color-fg); opacity: 0.55;
  font-size: 12px; line-height: 22px; cursor: pointer; }
.station-prompt-close:hover { opacity: 1; background: color-mix(in oklab, var(--prompt-accent) 25%, transparent); }
.station-prompt-title { font-size: 14px; font-weight: 700; color: var(--prompt-accent); white-space: nowrap; }
.station-prompt-title kbd { margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: inherit;
  color: var(--color-fg); border: 1px solid color-mix(in oklab, var(--prompt-accent) 50%, transparent); }
.station-prompt-name { font-size: 11px; opacity: 0.75; }
@keyframes station-prompt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #station-prompt { animation: none; } }
#attacker-banner { position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 45; align-items: flex-start; }

.attacker-card { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 88px;
  cursor: pointer; }
.attacker-card:hover .attacker-frame { filter: brightness(1.3); }

.attacker-frame { position: relative; width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: color-mix(in oklab, var(--color-bg-elevated) 85%, transparent);
  box-shadow: 0 0 0 1px var(--color-danger), 0 0 14px rgb(255 90 90 / 30%);
  backdrop-filter: blur(10px) saturate(1.3); animation: attacker-pulse 1s infinite; }
.attacker-icon { font-size: 19px; filter: drop-shadow(0 0 4px var(--color-danger)); }

/* Kilit köşe işaretleri: dört köşede L şeklinde çıkıntılar (lock bracket'ı) */
.attacker-corner { position: absolute; width: 9px; height: 9px; border: 2px solid var(--color-accent);
  filter: drop-shadow(0 0 3px var(--color-accent)); }
.attacker-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.attacker-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.attacker-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.attacker-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.attacker-name { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--color-fg);
  text-align: center; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 60%); }

.attacker-bars { width: 80px; display: flex; flex-direction: column; gap: 2px; }
.attacker-bar { height: 4px; border-radius: 2px; background: rgb(232 238 243 / 10%); overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 30%); }
.attacker-bar-fill { height: 100%; width: 0%; box-shadow: 0 0 6px currentColor;
  transition: width var(--motion-fast) var(--ease-smooth-out); }
.attacker-bar-fill.shield { background: var(--color-shield); color: var(--color-shield); }
.attacker-bar-fill.hull { background: var(--color-hull); color: var(--color-hull); }

@keyframes attacker-pulse { 0%, 100% { box-shadow: 0 0 0 1px var(--color-danger), 0 0 14px rgb(255 90 90 / 30%); }
  50% { box-shadow: 0 0 0 2px var(--color-danger), 0 0 20px rgb(255 90 90 / 55%); } }

#toast { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--color-bg-elevated) 88%, transparent); box-shadow: 0 0 0 1px var(--color-hull), var(--shadow-border);
  color: var(--color-fg); padding: 10px 18px; border-radius: var(--radius-md); font-size: 13px; z-index: 60;
  font-weight: bold; max-width: 80vw; text-align: center; backdrop-filter: blur(10px) saturate(1.3); }
#toast.toast-error { box-shadow: 0 0 0 1px var(--color-danger), var(--shadow-border); color: var(--color-danger); }

/* ======================================================================
   Kısayol çubuğu: sabit numaralı slotlar (1..8) + gizlenme. Slotlar fareyle tutulup başka bir slotun
   üstüne bırakılarak yer değiştirir (bkz. main.js renderQuickbar / onQuickbarPointer*).
   ====================================================================== */
#quickbar-wrap { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 40; }
.quickbar-drag-bar { align-self: stretch; gap: 6px; padding: 3px 6px 3px 10px; border: none; border-radius: 999px;
  background: color-mix(in oklab, var(--color-bg-elevated) 72%, transparent); box-shadow: inset 0 0 0 1px var(--color-border);
  backdrop-filter: blur(10px) saturate(1.3); white-space: nowrap; opacity: 0.55;
  transition: opacity var(--motion-fast) var(--ease-smooth-out); }
#quickbar-wrap:hover .quickbar-drag-bar, #quickbar-wrap.minimized .quickbar-drag-bar { opacity: 1; }
.qb-grip { letter-spacing: -1px; color: var(--color-subtle); margin-right: 2px; }
.qb-hint { text-transform: none; letter-spacing: 0; color: var(--color-subtle); }
#quickbar-wrap.locked .qb-hint { display: none; }
#quickbar-wrap.minimized #quickbar { display: none; }
#quickbar-wrap.locked #quickbar-lock-toggle { color: var(--color-warn); }
#quickbar-wrap:not(.locked) #quickbar-lock-toggle { color: var(--color-hull); }

#quickbar { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-bg-elevated) 82%, transparent), color-mix(in oklab, var(--color-bg) 88%, transparent));
  box-shadow: 0 0 0 1px var(--color-border-strong), 0 10px 30px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 5%);
  backdrop-filter: blur(12px) saturate(1.3); }
#quickbar-wrap.layout-column #quickbar { flex-direction: column; }
#quickbar-wrap.layout-grid #quickbar { display: grid; grid-template-columns: repeat(4, 54px); }
#quickbar-wrap.layout-column .quick-divider { width: 70%; height: 1px; }
#quickbar-wrap.layout-grid .quick-divider { display: none; }
.quick-divider { width: 1px; height: 40px; background: var(--color-border-strong); margin: 0 2px; }

.quick-slot { position: relative; width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; user-select: none; touch-action: none;
  background: radial-gradient(120% 90% at 50% 15%, rgb(90 209 255 / 16%), transparent 60%),
    linear-gradient(180deg, #152233, #0a111b);
  box-shadow: inset 0 0 0 1px rgb(90 209 255 / 45%), inset 0 -8px 16px rgb(0 0 0 / 35%), 0 2px 6px rgb(0 0 0 / 40%);
  transition: transform var(--motion-quick) var(--ease-smooth-out), box-shadow var(--motion-quick) var(--ease-smooth-out); }
.quick-slot:hover { transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--color-ice), 0 0 16px rgb(90 209 255 / 35%), 0 6px 14px rgb(0 0 0 / 45%); }
.quick-slot.movable { cursor: grab; }
.quick-slot.empty { cursor: default; background: rgb(5 8 16 / 35%); box-shadow: inset 0 0 0 1px rgb(139 157 171 / 22%); }
.quick-slot.empty:hover { transform: none; box-shadow: inset 0 0 0 1px rgb(139 157 171 / 35%); }
.quick-icon { font-size: 26px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 6px rgb(90 209 255 / 45%)); }
.quick-key { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 700; line-height: 1; pointer-events: none;
  color: var(--color-ice); text-shadow: 0 0 4px #000, 0 0 2px #000; }
.quick-slot.empty .quick-key { color: var(--color-subtle); left: 50%; bottom: auto; transform: translateX(-50%); font-size: 13px; }
.quick-count { position: absolute; right: 4px; bottom: 3px; font-size: 11px; font-weight: 700; line-height: 1; pointer-events: none;
  color: var(--color-fg); text-shadow: 0 0 4px #000, 0 0 2px #000; font-variant-numeric: tabular-nums; }
.quick-slot.depleted .quick-icon { filter: grayscale(1); opacity: 0.35; }
.quick-slot.depleted .quick-count { color: var(--color-danger); }

/* Bekleme: saat yönünde azalan karartma + ortada kalan saniye */
.quick-cd-sweep { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: conic-gradient(rgb(3 6 12 / 78%) calc(var(--cd, 0) * 1turn), transparent 0); }
.quick-slot.on-cooldown .quick-cd-sweep { opacity: 1; }
.quick-slot.on-cooldown { cursor: not-allowed; }
.quick-slot.on-cooldown:hover { transform: none; }
.quick-cd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 0 6px #000, 0 0 2px #000; font-variant-numeric: tabular-nums; }
.quick-slot.ready { animation: qb-ready 0.5s var(--ease-smooth-out); }
@keyframes qb-ready { 0% { box-shadow: inset 0 0 0 2px #fff, 0 0 22px rgb(90 209 255 / 80%); } 100% { box-shadow: inset 0 0 0 1px rgb(90 209 255 / 45%); } }
.quick-slot.pressed { animation: qb-press 0.18s ease-out; }
@keyframes qb-press { 50% { transform: scale(0.9); } }
.quick-slot.dropped { animation: qb-drop 0.35s var(--ease-smooth-out); }
@keyframes qb-drop { 0% { transform: scale(1.18); box-shadow: inset 0 0 0 2px var(--color-cargo), 0 0 18px rgb(224 168 63 / 60%); } }

/* Sürükleme */
body.qb-dragging, body.qb-dragging * { cursor: grabbing !important; }
.quick-slot.drag-source { opacity: 0.3; transform: scale(0.92); }
.quick-slot.drop-target { transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--color-cargo), 0 0 18px rgb(224 168 63 / 55%); }
.qb-ghost { position: fixed; left: 0; top: 0; z-index: 1000; width: 54px; height: 54px; border-radius: 10px; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(180deg, #1c2d44, #0d1622); box-shadow: inset 0 0 0 2px var(--color-cargo), 0 12px 28px rgb(0 0 0 / 60%); }

/* İpucu balonu (isim + statlar) — title'ın gecikmeli yerel ipucu yerine */
.quick-slot[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); width: max-content; max-width: 240px; padding: 6px 9px; border-radius: var(--radius-sm);
  font-size: 11px; line-height: 1.35; color: var(--color-fg); white-space: normal; text-align: center; pointer-events: none;
  background: color-mix(in oklab, var(--color-bg-elevated) 95%, transparent); box-shadow: 0 0 0 1px var(--color-border-strong), 0 8px 20px rgb(0 0 0 / 50%); }
#quickbar-wrap.layout-column .quick-slot[data-tip]:hover::after { bottom: auto; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
body.qb-dragging .quick-slot::after { display: none; }

.quick-slot-cloak { box-shadow: inset 0 0 0 1px rgb(192 123 255 / 60%), inset 0 -8px 16px rgb(0 0 0 / 35%); }
.quick-slot-cloak .quick-icon { filter: drop-shadow(0 0 6px rgb(192 123 255 / 60%)); }
.quick-slot-cloak .quick-count { font-size: 9px; color: #e2c6ff; }
.quick-slot-cloak.active { background: radial-gradient(circle, rgb(192 123 255 / 35%), #120c1c); box-shadow: inset 0 0 0 2px var(--color-crystal), 0 0 18px rgb(192 123 255 / 50%); }
@media (prefers-reduced-motion: reduce) { .quick-slot, .quick-slot.ready, .quick-slot.pressed, .quick-slot.dropped { animation: none; transition: none; } }

.panel { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--color-bg-elevated) 82%, transparent); border-radius: var(--radius-lg);
  padding: 20px; width: min(94vw, 420px); max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-border);
  backdrop-filter: blur(10px) saturate(1.3); }
.panel h3 { margin-top: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.panel button { width: 100%; margin-top: 8px; }

/* ---- Pencere davranışı: başlık çubuğundan sürükle, sağ üstten X ile kapat,
   sağ alt köşeden (tarayıcının doğal resize'ı ile) boyutlandır. İstasyon/Envanter/
   Ekipman/Üs/Depo/Arkadaşlar vb. tüm panel pencereleri bunu paylaşır. */
.window-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -20px -20px 14px; padding: 10px 12px 10px 16px; cursor: grab; user-select: none;
  border-bottom: 1px solid var(--color-border); background: color-mix(in oklab, var(--color-bg-elevated) 60%, transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.window-titlebar:active { cursor: grabbing; }
.window-titlebar h3 { margin: 0; }
/* .panel/.popup-box button { width:100% } is a broader, higher-specificity rule (class+element
   vs. a single class here) — qualify with the parent so this wins and the X stays a small square. */
.window-titlebar .window-close-btn { flex-shrink: 0; width: 26px; height: 26px; padding: 0;
  border-radius: var(--radius-xs); background: var(--color-bg-subtle); color: var(--color-muted);
  font-size: 13px; line-height: 1; box-shadow: 0 0 0 1px var(--color-border); margin-top: 0; }
.window-titlebar .window-close-btn:hover { background: var(--color-danger); color: #1a0d0d; }
.window-panel { resize: both; overflow: auto; min-width: 260px; min-height: 160px; max-width: 96vw; max-height: 92vh; }
.panel-subtitle { margin: 14px 0 0; font-size: 0.6875rem; color: var(--color-subtle); text-transform: uppercase;
  letter-spacing: 0.14em; }
#warehouse-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; margin-top: 10px; }
.wh-columns { display: flex; align-items: center; gap: 8px; }
.wh-col { flex: 1; min-width: 0; background: var(--color-bg-elevated); border-radius: var(--radius-sm); padding: 8px 10px; }
.wh-col-label { font-size: 11px; color: var(--color-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-col-amount { font-size: 14px; font-weight: bold; color: var(--color-fg); margin-bottom: 6px; }
.wh-col .bar { height: 5px; }
.wh-col-arrows { font-size: 18px; color: var(--color-subtle); flex-shrink: 0; }
.wh-resource-row { margin-top: 8px; font-size: 11px; color: var(--color-muted); text-align: center; }
.wh-slider-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--color-muted); }
.wh-slider-row input[type="range"] { flex: 1; accent-color: var(--color-hull); }
.wh-slider-row b { color: var(--color-cargo); min-width: 42px; text-align: right; }
.wh-buttons { display: flex; gap: 6px; margin-top: 10px; }
.wh-buttons button { flex: 1; font-size: 12px; padding: 8px 6px; margin-top: 0; }
#btn-wh-upgrade { width: 100%; margin-top: 8px; font-size: 12px; background: var(--color-bg-subtle); color: var(--color-fg);
  box-shadow: 0 0 0 1px var(--color-border); }
#btn-wh-upgrade:hover { filter: brightness(1.2); }
.wh-ore-items { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.wh-ore-item .inv-item-info { display: flex; flex-direction: column; }
.wh-ore-bar { height: 4px; margin-top: 3px; }
.wh-resource-block { background: color-mix(in oklab, var(--color-bg-elevated) 55%, transparent); border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--color-border); border-left: 2px solid var(--slot-color, var(--color-border-strong));
  padding: 6px 8px 8px 10px; margin-top: 8px; }
.wh-resource-block:first-child { margin-top: 0; }
.wh-resource-block .panel-subtitle { margin: 0 0 4px; font-size: 11px; }
.wh-price-tag { float: right; text-transform: none; letter-spacing: normal; color: var(--color-muted); font-size: 10px; }
.wh-ore-items { display: flex; gap: 6px; }
.wh-ore-item { flex: 1; padding: 5px 7px; margin-top: 0; }
.wh-ore-item .inv-item-icon { width: 20px; height: 20px; font-size: 12px; }
.wh-ore-item .inv-item-name { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.wh-ore-item .inv-item-stats { font-size: 11px; color: var(--color-fg); }
.wh-resource-block .wh-slider-row { margin-top: 6px; font-size: 11px; }
.wh-resource-block .wh-buttons { margin-top: 6px; }
.wh-resource-block .wh-buttons button { font-size: 11px; padding: 6px 4px; }
#station-panel { width: min(96vw, 1060px); padding-bottom: 16px; }
/* uzun sekmelerde (envanter/market) kaydırınca başlık çubuğu ve kredi çipleri görünür kalsın */
#station-panel > .window-titlebar { position: sticky; top: -20px; z-index: 3;
  background: color-mix(in oklab, var(--color-bg-elevated) 96%, transparent); backdrop-filter: blur(10px); }
.station-tabs { display: flex; gap: 6px; margin-top: 10px; background: var(--color-bg-subtle); border-radius: var(--radius-sm); padding: 4px; }
.station-tab-btn { flex: 1; background: transparent; color: var(--color-muted); padding: 8px 6px; font-size: 12px;
  border-radius: var(--radius-xs); margin-top: 0; }
.station-tab-btn:hover { background: var(--color-bg-elevated); color: var(--color-fg); }
.station-tab-btn.active { background: var(--color-accent); color: var(--color-accent-fg); }
.station-tab-btn.active:hover { filter: brightness(1.1); }
.station-tab { margin-top: 12px; }

/* ---- Ekipman / envanter / kargo / maden: slot vurgu renkleri ----
   İlgili satır/kutucuğa data-slot="..." atanır (bkz. main.js); --slot-color oradan
   içindeki ikon çerçevesine ve sol vurgu çizgisine miras kalır. */
[data-slot="engine"] { --slot-color: var(--color-accent); }
[data-slot="shield"] { --slot-color: var(--color-shield); }
[data-slot="armor"] { --slot-color: var(--color-hull); }
[data-slot="primaryWeapon"], [data-slot="secondaryWeapon"] { --slot-color: var(--color-danger); }
[data-slot="utility"] { --slot-color: var(--color-crystal); }
[data-slot="consumable"] { --slot-color: var(--color-cargo); }

/* Köşeli "modül soketi" çerçevesi: fitting/lock ikonlarındaki gibi dört
   köşeye L işaretleri ekler — ekstra DOM node gerektirmez, tek bir ::before katmanı. */
.equip-slot, .inv-item-icon, .catalog-item-icon, .turret-item-icon, .item-icon {
  position: relative;
}
.equip-slot::before, .inv-item-icon::before, .catalog-item-icon::before, .turret-item-icon::before, .item-icon::before {
  content: ''; position: absolute; inset: -3px; pointer-events: none; border-radius: inherit; opacity: 0.8;
  background:
    linear-gradient(to right, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 0 0 / 8px 2px no-repeat,
    linear-gradient(to bottom, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 0 0 / 2px 8px no-repeat,
    linear-gradient(to left, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 100% 0 / 8px 2px no-repeat,
    linear-gradient(to bottom, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 100% 0 / 2px 8px no-repeat,
    linear-gradient(to right, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 0 100% / 8px 2px no-repeat,
    linear-gradient(to top, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 0 100% / 2px 8px no-repeat,
    linear-gradient(to left, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 100% 100% / 8px 2px no-repeat,
    linear-gradient(to top, var(--slot-color, var(--color-accent)) 2px, transparent 2px) 100% 100% / 2px 8px no-repeat;
}

/* ---- Ekipman sekmesi (modül soketleri) ---- */
.empty-hint { font-size: 12px; color: var(--color-subtle); margin: 4px 0; }
.equip-slot { background: color-mix(in oklab, var(--color-bg-elevated) 85%, transparent); border-radius: var(--radius-sm);
  padding: 12px 8px 10px; font-size: 11px; text-align: center; box-shadow: 0 0 0 1px rgb(139 157 171 / 18%); }
.equip-slot::before { opacity: 0.3; }
.equip-slot.filled { box-shadow: 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-hull)) 55%, transparent),
  0 0 14px color-mix(in oklab, var(--slot-color, var(--color-hull)) 25%, transparent); }
.equip-slot.filled::before { opacity: 1; }
.equip-slot-icon { font-size: 19px; line-height: 1; margin-bottom: 5px; opacity: 0.55;
  filter: drop-shadow(0 0 3px var(--slot-color, var(--color-accent))); }
.equip-slot.filled .equip-slot-icon { opacity: 1; }
.equip-slot-type { color: var(--color-muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.equip-slot-name { font-size: 12px; font-weight: bold; color: var(--color-fg); margin-bottom: 2px; min-height: 15px; }
.equip-slot-desc { font-size: 10px; color: var(--color-muted); margin-bottom: 6px; line-height: 1.3; }

/* ---- Ekipman popup'ı (ayrı pencere) ---- */
.popup-overlay { position: fixed; inset: 0; background: rgb(4 5 12 / 70%); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.popup-box { background: color-mix(in oklab, var(--color-bg-elevated) 92%, transparent); border-radius: var(--radius-lg);
  padding: 20px; width: min(94vw, 420px); max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-border-hover); }
.popup-box h3 { margin-top: 0; font-family: var(--font-display); font-size: 1.3rem; }
.popup-box button { width: 100%; margin-top: 8px; }
.equip-slot button { width: 100%; padding: 6px; font-size: 11px; margin-top: 0; }

/* ---- Geniş harita (fog-of-war) penceresi ---- */
/* Bu pencere hiçbir boyutta kaydırma çubuğu çıkarmaz: başlık ve açıklama sabit, harita kalan alanı doldurur ve tuvalin
   çözünürlüğü pencerenin boyutunu izler (bkz. main.js drawWideMap). Yani sağ alt tutamaçla büyütülüp küçültülse de
   içerik "sığmaz" hâle gelmez; pencere ekranı da aşamaz. (.popup-box/.window-panel'in overflow:auto + max-height'ı
   kare bir tuvalle birleşince ilk açılışta bile çubuk çıkarıyordu.) */
#wide-map-box { display: flex; flex-direction: column; overflow: hidden; width: min(94vw, 920px);
  height: min(calc(100vh - 32px), 860px); height: min(calc(100dvh - 32px), 860px);
  min-width: min(300px, calc(100vw - 32px)); min-height: min(320px, calc(100vh - 32px));
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
#wide-map-box > .window-titlebar, #wide-map-box > .panel-subtitle { flex: none; }
#wide-map-stage { position: relative; flex: 1 1 0; min-height: 0; margin-top: 8px; }
#wide-map-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--color-border); cursor: grab; touch-action: none; user-select: none; }
#wide-map-canvas.dragging { cursor: grabbing; }
#wide-map-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
/* .popup-box button { width:100% } kuralını ID ile ezer: küçük, tuvalin köşesinde yüzen düğmeler */
#wide-map-box #wide-map-zoom button, #wide-map-box #wide-map-recenter { margin: 0; color: var(--color-fg);
  background: color-mix(in oklab, var(--color-bg-elevated) 88%, transparent);
  box-shadow: 0 0 0 1px var(--color-border-strong); backdrop-filter: blur(6px); }
#wide-map-box #wide-map-zoom button { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; }
#wide-map-box #wide-map-recenter { position: absolute; right: 10px; bottom: 10px; width: auto; padding: 6px 12px; font-size: 12px; }
/* Warp listesi: haritanın sol üstünde yüzen, kaydırılabilir liste (bkz. main.js renderNavList) */
#wide-map-nav { position: absolute; top: 10px; left: 10px; width: min(250px, calc(100% - 70px)); max-height: calc(100% - 20px);
  display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden;
  background: color-mix(in oklab, var(--color-bg-elevated) 86%, transparent); box-shadow: 0 0 0 1px var(--color-border-strong);
  backdrop-filter: blur(6px); }
#wide-map-nav .nav-title { flex: none; padding: 7px 10px; font-size: 12px; font-weight: 700; color: var(--color-ice);
  border-bottom: 1px solid var(--color-border); }
#wide-map-nav-list { flex: 0 1 auto; max-height: 40%; overflow-y: auto; padding: 4px; }
#wide-map-nav .nav-title-scan { border-top: 1px solid var(--color-border); }
#wide-map-scan-btns { flex: none; display: flex; gap: 4px; padding: 6px 6px 2px; }
#wide-map-scan-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px; }
#wide-map-nav .scan-row { border-left: 2px solid var(--scan-col, transparent); padding-left: 4px; }
#wide-map-nav .nav-empty { padding: 6px; font-size: 11px; color: var(--color-muted); }
#wide-map-nav .nav-row { display: flex; align-items: center; gap: 6px; padding: 3px 2px; font-size: 11px; }
#wide-map-box #wide-map-nav .nav-name { flex: 1 1 auto; min-width: 0; margin: 0; padding: 3px 4px; width: auto; text-align: left;
  background: none; box-shadow: none; color: var(--color-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
#wide-map-nav .nav-dist { flex: none; color: var(--color-muted); font-variant-numeric: tabular-nums; }
#wide-map-box #wide-map-nav .nav-warp { flex: none; margin: 0; width: auto; padding: 3px 8px; font-size: 11px; }

.inv-item { position: relative; background: color-mix(in oklab, var(--color-bg-elevated) 68%, transparent);
  border-radius: var(--radius-xs); padding: 7px 9px 7px 11px; margin-top: 5px; font-size: 11px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 0 0 1px var(--color-border);
  border-left: 2px solid var(--slot-color, var(--color-border-strong));
  transition: background var(--motion-quick) var(--ease-smooth-out); }
.inv-item:hover { background: color-mix(in oklab, var(--color-bg-elevated) 92%, transparent); }
.inv-item-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--radius-xs);
  background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border);
  display: flex; align-items: center; justify-content: center; font-size: 14px; }
.inv-item-icon::before { opacity: 0.6; }
.inv-item-info { flex: 1; min-width: 0; }
.inv-item-name { font-weight: bold; color: var(--color-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item-name .ship-tier-badge { margin-left: 4px; }
.inv-item-qty { color: var(--color-cargo); font-weight: normal; margin-left: 4px; font-variant-numeric: tabular-nums; }
.inv-item-desc { font-size: 10px; color: var(--color-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item-stats { font-size: 9px; color: var(--color-subtle); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex-shrink: 0; }
.inv-item-buttons button { width: auto; padding: 5px 7px; font-size: 10px; margin-top: 0; white-space: nowrap; }
.inv-item-buttons .btn-discard { background: var(--color-danger); color: #1a0d0d; }
.inv-item-buttons .btn-discard:hover { filter: brightness(1.15); }
.inv-item-buttons .btn-use { background: var(--color-hull); color: var(--color-accent-fg); }
.inv-item-buttons .btn-use:hover { filter: brightness(1.15); }

.catalog-group { margin-top: 8px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg-subtle); }
.catalog-group summary { padding: 8px 10px; font-size: 12px; font-weight: bold; cursor: pointer; color: var(--color-ice);
  text-transform: uppercase; letter-spacing: 0.04em; }
.catalog-group summary:hover { background: var(--color-bg-elevated); }
.catalog-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 11px; font-size: 11px;
  border-top: 1px solid var(--color-border); border-left: 2px solid var(--slot-color, var(--color-border-strong)); }
.catalog-item-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-xs);
  background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; }
.catalog-item-icon::before { opacity: 0.6; }
.catalog-item-info { flex: 1; min-width: 0; }
.catalog-item-name { font-weight: bold; color: var(--color-fg); font-size: 12px; }
.catalog-item-desc { font-size: 10px; color: var(--color-muted); margin-top: 1px; }
.catalog-item-stats { font-size: 10px; color: var(--color-subtle); margin-top: 1px; }
.catalog-item button { width: auto; padding: 6px 10px; font-size: 10px; margin-top: 0; flex-shrink: 0; }

.storage-station { background: var(--color-bg-subtle); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.storage-station:first-child { margin-top: 0; }
.storage-station-title { font-weight: bold; font-size: 13px; color: var(--color-ice); margin-bottom: 6px; }
/* ---- Piyasa: istasyon seçici + seçili istasyonun fiyatları + seçili madenin istasyonlara göre çubuk grafiği ---- */
/* Geniş düzen: seçili istasyonun fiyatları solda, seçili madenin istasyon karşılaştırması sağda yan yana (dar ekranda alt alta) */
#market-board-panel { width: min(96vw, 1080px); }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.mb-grid > .mb-card { margin-top: 0; max-height: min(64vh, 620px); overflow-y: auto; }
@media (max-width: 820px) { .mb-grid { grid-template-columns: minmax(0, 1fr); } .mb-grid > .mb-card { max-height: none; } }
.mb-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; max-width: 520px; }
.mb-field { font-size: 12px; font-weight: 600; color: var(--color-muted); }
#mb-station { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong);
  background: rgb(7 9 16 / 60%); color: var(--color-fg); font: 13px var(--font-sans); cursor: pointer; }
#mb-station:focus { outline: none; border-color: var(--color-ice); }
#mb-station optgroup, #mb-station option { background: var(--color-bg-elevated); color: var(--color-fg); }
#market-board-panel .mb-here-btn { width: auto; margin: 0; padding: 8px 10px; font-size: 12px; background: var(--color-bg-subtle);
  color: var(--color-fg); box-shadow: inset 0 0 0 1px var(--color-border-strong); white-space: nowrap; }
#market-board-panel .mb-here-btn:disabled { color: var(--color-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.mb-card { margin-top: 10px; padding: 12px 12px 8px; border-radius: var(--radius-md); background: rgb(255 255 255 / 2.5%);
  box-shadow: inset 0 0 0 1px var(--color-border); }
.mb-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--color-fg); }
.mb-zone { font-size: 11px; font-weight: 500; color: var(--color-subtle); }
.mb-hint { margin: 2px 0 8px; font-size: 11px; line-height: 1.4; color: var(--color-subtle); }
.mb-rows { display: flex; flex-direction: column; }

/* Satır: ad | çubuk | değer (| not). Bütün satır tıklanır — isabet alanı çubuktan büyük. */
#market-board-panel .mb-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr 38px; grid-template-areas: "name track val" ". note note";
  align-items: center; column-gap: 10px; width: 100%; margin: 0; padding: 6px 6px; border-radius: var(--radius-xs); background: none;
  color: var(--color-fg); text-align: left; font: inherit; font-weight: 400; }
#market-board-panel .mb-chart-row { grid-template-areas: "name track val"; grid-template-columns: minmax(0, 190px) 1fr 44px; }
#market-board-panel .mb-row:hover { filter: none; background: rgb(255 255 255 / 4%); }
#market-board-panel .mb-row:active { transform: none; }
#market-board-panel .mb-row:focus-visible { outline: 2px solid var(--color-ice); outline-offset: -2px; }
#market-board-panel .mb-row.selected { background: rgb(90 209 255 / 9%); box-shadow: inset 2px 0 0 var(--color-ice); }
.mb-name { grid-area: name; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; min-width: 0; font-size: 12.5px; }
.mb-here-tag { padding: 0 5px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--color-accent-fg); background: var(--color-ice); }
.mb-chart-row .mb-zone { width: 100%; }
.mb-track { grid-area: track; height: 10px; }
.mb-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; background: rgb(90 209 255 / 38%);
  transition: width var(--motion-fast) var(--ease-smooth-out); }
#market-board-panel .mb-row.selected .mb-bar, #market-board-panel .mb-row:hover .mb-bar { background: var(--color-ice); }
.mb-val { grid-area: val; text-align: right; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-fg); white-space: nowrap; }
.mb-note { grid-area: note; font-size: 11px; color: var(--color-subtle); margin-top: 1px; }
.mb-note.mb-best { color: var(--color-fg); font-weight: 600; }
@media (max-width: 480px) {
  #market-board-panel .mb-row, #market-board-panel .mb-chart-row { grid-template-columns: minmax(0, 110px) 1fr 38px; }
}
@media (prefers-reduced-motion: reduce) { .mb-bar { transition: none; } }
.storage-station-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; color: var(--color-muted); }
.storage-station-bar-row .bar { height: 5px; }
:is(#storage-panel, #wh-remote) .storage-res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 10px; margin-top: 8px; }
:is(#storage-panel, #wh-remote) .storage-res { display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 8px; font-size: 12px;
  padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.03); }
:is(#storage-panel, #wh-remote) .storage-res-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; position: static; }
:is(#storage-panel, #wh-remote) .storage-res > b { position: static; text-align: right; }
:is(#storage-panel, #wh-remote) .storage-trash { width: 26px; height: 22px; min-width: 0; flex: none; padding: 0; margin: 0; font-size: 12px; line-height: 1;
  background: transparent; border: 1px solid var(--color-border); border-radius: 4px; cursor: pointer; }
:is(#storage-panel, #wh-remote) .storage-trash:hover { border-color: #e05555; background: rgba(224,85,85,.15); }
.storage-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.storage-chip { background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border); border-radius: 999px;
  padding: 3px 9px; font-size: 11px; color: var(--color-fg); }
.qty-stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn { width: 22px; height: 22px; padding: 0; font-size: 13px; line-height: 1; margin-top: 0; border-radius: var(--radius-xs); }
.qty-value { min-width: 18px; text-align: center; font-size: 11px; color: var(--color-fg); }
.ships { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ship-item { background: var(--color-bg-subtle); border-radius: var(--radius-sm); padding: 10px; display: flex; gap: 10px; }
.ship-item.owned { box-shadow: 0 0 0 1px var(--color-hull); }
.ship-item .ship-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  background: var(--color-bg-elevated); display: flex; align-items: center; justify-content: center; }
.ship-item .ship-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ship-item .ship-info { flex: 1; min-width: 0; }
.ship-item .ship-title { font-size: 13px; font-weight: bold; margin-bottom: 2px; }
.ship-owned-badge { float: right; background: var(--color-hull); color: var(--color-accent-fg); font-size: 10px;
  font-weight: normal; padding: 2px 7px; border-radius: 999px; }
.ship-tier-badge { background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border); color: var(--color-ice);
  font-size: 9px; font-weight: normal; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.ship-item .ship-desc { font-size: 11px; color: var(--color-muted); margin-bottom: 4px; }
.ship-item .ship-stats { font-size: 11px; color: var(--color-subtle); margin-bottom: 6px; line-height: 1.5; }
.ship-item button { width: 100%; margin-top: 0; }

/* ======================================================================
   İstasyon penceresi: Market / Depo / Ekipman & Envanter
   Tüm item'lar aynı kart yapısını kullanır (bkz. main.js itemCardEl): slot rengi (--slot-color)
   üst çizgi, ikon ve çerçeveye işler; T2 kartlar mor "nadir" parıltısı alır.
   ====================================================================== */
.station-head-chips { display: flex; gap: 6px; margin-left: auto; }
.head-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: var(--color-bg-subtle); box-shadow: 0 0 0 1px var(--color-border); color: var(--color-muted); white-space: nowrap; }
.head-chip b { color: var(--color-fg); font-variant-numeric: tabular-nums; }
.head-chip.credits b { color: var(--color-cargo); }

.subtabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); }
#station-panel .subtab-btn { width: auto; margin: 0; padding: 6px 14px; font-size: 12px; background: transparent; color: var(--color-muted); }
#station-panel .subtab-btn:hover { color: var(--color-fg); background: var(--color-bg-elevated); }
#station-panel .subtab-btn.active { background: var(--color-bg-elevated); color: var(--color-ice); box-shadow: 0 0 0 1px var(--color-border-strong); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#station-panel .filter-chip { width: auto; margin: 0; padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: var(--color-bg-subtle); color: var(--color-muted); box-shadow: 0 0 0 1px var(--color-border); }
#station-panel .filter-chip span { margin-left: 3px; font-size: 10px; opacity: 0.7; font-variant-numeric: tabular-nums; }
#station-panel .filter-chip:hover { color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
#station-panel .filter-chip.active { background: color-mix(in oklab, var(--color-accent) 18%, var(--color-bg-subtle));
  color: var(--color-ice); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-accent) 60%, transparent); }

.section-title { margin: 16px 0 8px; font-size: 11px; font-weight: 600; color: var(--color-subtle); text-transform: uppercase; letter-spacing: 0.12em; }
.loadout-col > .section-title:first-child, .section-head .section-title { margin-top: 0; }
.section-count { color: var(--color-muted); letter-spacing: normal; font-weight: normal; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.section-head .filter-chips { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; margin-top: 10px; }
.card-grid > .empty-hint { grid-column: 1 / -1; padding: 18px; text-align: center; border-radius: var(--radius-md);
  background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }

/* ---- Item kartı ---- */
.item-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, color-mix(in oklab, var(--slot-color, var(--color-accent)) 9%, var(--color-bg-elevated)), var(--color-bg-elevated) 70%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-accent)) 26%, transparent);
  border-top: 2px solid var(--slot-color, var(--color-accent));
  transition: box-shadow var(--motion-quick) var(--ease-smooth-out), transform var(--motion-quick) var(--ease-smooth-out); }
.item-card:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-accent)) 55%, transparent),
  0 8px 24px rgb(0 0 0 / 35%); transform: translateY(-1px); }
.item-card[data-tier="2"] { box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-crystal) 60%, transparent), 0 0 18px rgb(192 123 255 / 18%); }
.item-card[data-tier="3"] { box-shadow: 0 0 0 1px rgb(255 184 60 / 60%), 0 0 18px rgb(255 184 60 / 18%); }
.item-card[data-tier="4"] { box-shadow: 0 0 0 1px rgb(255 70 70 / 65%), 0 0 22px rgb(255 70 70 / 22%); }
.item-card[data-tier="2"]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, rgb(192 123 255 / 14%), transparent 60%); }
.item-card-head { display: flex; align-items: center; gap: 10px; }
.item-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 20px; background: color-mix(in oklab, var(--slot-color, var(--color-accent)) 16%, var(--color-bg-subtle));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-accent)) 40%, transparent); }
.item-title { min-width: 0; }
.item-name { font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--color-fg); }
.item-qty { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--color-cargo); font-variant-numeric: tabular-nums; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.slot-label { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tier-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  color: var(--color-ice); background: rgb(90 209 255 / 10%); box-shadow: 0 0 0 1px rgb(90 209 255 / 30%); }
.tier-badge.t2 { color: #e2c6ff; background: rgb(192 123 255 / 18%); box-shadow: 0 0 0 1px rgb(192 123 255 / 55%); }
.tier-badge.t3 { color: #ffe2a6; background: rgb(255 184 60 / 16%); box-shadow: 0 0 0 1px rgb(255 184 60 / 60%); }
.tier-badge.t4 { color: #ffc2c2; background: rgb(255 70 70 / 18%); box-shadow: 0 0 0 1px rgb(255 70 70 / 65%); }
.item-desc { font-size: 11.5px; line-height: 1.4; color: var(--color-muted); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.item-note { font-size: 11px; color: var(--color-ice); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgb(5 8 16 / 45%); box-shadow: inset 0 0 0 1px var(--color-border); }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; min-width: 0; }
.stat-label { color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-val { color: var(--color-fg); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.key .stat-val { color: #ff9b85; }
.delta { font-style: normal; font-size: 10.5px; font-weight: 600; margin-left: 5px; }
.delta.up { color: var(--color-hull); }
.delta.down { color: var(--color-danger); }
.stat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); padding: 5px 8px; margin-top: 5px; gap: 2px 12px; }
.stat-grid.compact .stat { font-size: 11px; }

.item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
/* ana eylem (Tak/Değiştir/Kullan/Gemine Al) kendi satırında tam genişlik; ikincil eylemler altta yan yana */
#station-panel .item-actions:not(.buy-row) .act-btn.primary, #station-panel .item-actions:not(.buy-row) .act-btn.use { flex: 1 1 100%; }
#station-panel .item-actions:not(.buy-row) .act-btn.ghost { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#station-panel .act-btn { flex: 1 1 auto; width: auto; margin: 0; padding: 7px 10px; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm); white-space: nowrap; }
#station-panel .act-btn.ghost { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
#station-panel .act-btn.use { background: var(--color-hull); color: var(--color-accent-fg); }
#station-panel .act-btn.danger { background: transparent; color: var(--color-danger);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-danger) 45%, transparent); }
#station-panel .act-btn.danger:hover { background: var(--color-danger); color: #1a0d0d; }
#station-panel .act-btn.icon { flex: 0 0 auto; padding: 7px 10px; }
#station-panel .act-btn:disabled { background: var(--color-bg-subtle); color: var(--color-subtle); box-shadow: none; }
.item-actions.buy-row { align-items: center; flex-wrap: nowrap; }
.item-price { flex: 1; font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.item-price b { color: var(--color-cargo); font-size: 15px; font-variant-numeric: tabular-nums; }
#station-panel .act-btn.qty-btn { flex: 0 0 auto; width: 26px; height: 26px; padding: 0; font-size: 15px; line-height: 1;
  background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
#station-panel .item-actions.buy-row .act-btn.primary { flex: 0 0 auto; }

/* ---- Ekipman & Envanter: solda gemi özeti + takılı slotlar, sağda envanter ---- */
.loadout-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.loadout-col, .inventory-col { min-width: 0; }
@media (max-width: 860px) { .loadout-layout { grid-template-columns: minmax(0, 1fr); } }

.ship-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sum-tile { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); min-width: 0; }
.sum-label { font-size: 10px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-fg); white-space: nowrap; }
.sum-val small { font-size: 10px; color: var(--color-muted); font-weight: 600; }
.sum-tile.hull .sum-val { color: var(--color-hull); }
.sum-tile.shield .sum-val { color: var(--color-shield); }
.sum-tile.dmg .sum-val { color: #ff9b85; }
.sum-tile.cargo .sum-val { color: var(--color-cargo); }
.sum-warn { grid-column: 1 / -1; font-size: 11px; color: var(--color-warn); padding: 6px 9px; border-radius: var(--radius-sm);
  background: rgb(255 180 84 / 10%); box-shadow: inset 0 0 0 1px rgb(255 180 84 / 30%); }

#equip-slots { display: flex; flex-direction: column; gap: 6px; }
.loadout-slot { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); background: color-mix(in oklab, var(--slot-color, var(--color-accent)) 7%, var(--color-bg-elevated));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-accent)) 28%, transparent);
  border-left: 3px solid var(--slot-color, var(--color-accent)); }
.loadout-slot.empty { background: transparent; border-left-color: rgb(139 157 171 / 35%);
  box-shadow: inset 0 0 0 1px rgb(139 157 171 / 22%); }
.loadout-slot.empty .item-icon { opacity: 0.4; filter: grayscale(1); }
.loadout-type { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.loadout-slot .item-name { font-size: 13px; }
.loadout-slot .item-name .tier-badge { margin-left: 4px; vertical-align: 1px; }
.loadout-empty { font-size: 12px; color: var(--color-subtle); }
#station-panel .loadout-slot .act-btn { flex: 0 0 auto; align-self: start; }

/* ---- Market: gemiler ---- */
#station-panel .ships { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
#station-panel .ship-item { padding: 12px; gap: 12px; border-radius: var(--radius-md); background: var(--color-bg-elevated);
  box-shadow: 0 0 0 1px var(--color-border); }
#station-panel .ship-item.owned { box-shadow: 0 0 0 1px var(--color-hull), 0 0 16px rgb(51 224 138 / 15%); }
#station-panel .ship-item .ship-thumb { width: 88px; height: 88px; border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, rgb(90 209 255 / 16%), var(--color-bg-subtle) 70%); }
#station-panel .ship-item .ship-thumb img { object-fit: contain; padding: 6px; }
#station-panel .ship-item .ship-title { font-size: 14px; }
#station-panel .ship-item .stat-grid { margin-bottom: 8px; }
#station-panel .ship-item button { margin-top: 0; }

/* ---- Depo ---- */
#station-panel .wh-resource-block { margin: 0; padding: 12px; border-radius: var(--radius-md); background: var(--color-bg-elevated);
  border-top: 2px solid var(--slot-color, var(--color-cargo)); box-shadow: 0 0 0 1px var(--color-border); }
#station-panel .wh-resource-block .panel-subtitle { font-size: 12px; color: var(--color-fg); letter-spacing: 0.06em; }
#station-panel #btn-wh-upgrade { grid-column: 1 / -1; margin-top: 0; }
#station-panel #wh-no-station-hint { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--color-bg-subtle);
  box-shadow: inset 0 0 0 1px var(--color-border); line-height: 1.45; }
.close-btn { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border); margin-top: 14px; }
.close-btn:hover { filter: brightness(1.2); }
#turret-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
#turret-slots button { padding: 8px; font-size: 12px; }
.mini-bar { position: relative; height: 6px; background: var(--color-bg-subtle); border-radius: 3px; overflow: hidden; margin: 4px 0; }
.mini-bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgb(5 8 16 / 45%) 6px 7px); }
.mini-bar-fill { height: 100%; background: var(--color-hull); box-shadow: 0 0 6px var(--color-hull);
  transition: width var(--motion-fast) var(--ease-smooth-out); }
.turret-item { --slot-color: var(--color-danger); position: relative;
  background: color-mix(in oklab, var(--color-bg-elevated) 55%, transparent); border-radius: var(--radius-xs);
  padding: 8px; margin-top: 6px; font-size: 12px; border-left: 2px solid var(--slot-color);
  box-shadow: 0 0 0 1px var(--color-border); }
.turret-item.miner-item { --slot-color: var(--color-cargo); }
.turret-item-head { display: flex; align-items: center; gap: 8px; }
.turret-item-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-xs);
  background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; }
.turret-item-icon::before { opacity: 0.6; }
.turret-item-body { flex: 1; min-width: 0; }
.turret-item-title { font-weight: bold; font-size: 12px; color: var(--color-fg); margin-bottom: 1px; }
.turret-item button { padding: 6px; font-size: 11px; margin-top: 4px; }
.upgrade-row { background: var(--color-bg-subtle); border-radius: var(--radius-xs); padding: 8px; margin-top: 6px; font-size: 12px; }
.upgrade-row .upgrade-title { display: flex; justify-content: space-between; margin-bottom: 4px; }
.upgrade-row .upgrade-level { color: var(--color-muted); font-size: 11px; }
.upgrade-row button { padding: 6px; font-size: 11px; margin-top: 2px; }
.turret-upgrades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.turret-upgrades button { font-size: 10px; padding: 5px 3px; margin-top: 0; }

/* ---- Yönetici paneli (bkz. public/admin.js) ---- */
.admin-btn { color: var(--color-warn); }
.host-btn { color: var(--color-warn); }

/* Yama notları (bkz. public/patch-notes.json) */
#patch-notes-panel { width: min(94vw, 480px); }
.patch-notes-list { display: flex; flex-direction: column; gap: 14px; max-height: min(70vh, 620px); overflow-y: auto; padding-right: 4px; }
.patch-entry { padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.patch-entry.latest { box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 14px color-mix(in oklab, var(--color-accent) 25%, transparent); }
.patch-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.patch-version { font-weight: 700; font-size: 15px; color: var(--color-fg); }
.patch-title { font-size: 13px; color: var(--color-fg); }
.patch-date { margin-left: auto; font-size: 11px; color: var(--color-subtle); }
.patch-new-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-fg); }
.patch-section-title { margin: 8px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.patch-section-title.new { color: var(--color-hull); }
.patch-section-title.improved { color: var(--color-ice); }
.patch-section-title.fixed { color: var(--color-warn); }
.patch-section-title.removed { color: var(--color-danger); }
.patch-items { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.patch-items li + li { margin-top: 3px; }
#admin-panel { width: min(96vw, 680px); }
#host-panel { width: min(96vw, 760px); }
#admin-tabs, #host-tabs { flex-wrap: wrap; }
:is(#admin-panel #admin-tabs, #host-panel #host-tabs) .station-tab-btn { width: auto; margin-top: 0; flex: 1 1 auto; white-space: nowrap; padding: 8px 10px; }
:is(#admin-panel, #host-panel) button.adm-btn { width: auto; margin-top: 0; padding: 6px 10px; font-size: 12px; }
:is(#admin-panel, #host-panel) button.adm-btn.danger { background: var(--color-danger); color: #1a0d0d; }
:is(#admin-panel, #host-panel) button.adm-btn.ghost { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border); }
:is(#admin-panel, #host-panel) button.adm-btn.on { background: var(--color-hull); color: var(--color-accent-fg); }
:is(#admin-panel, #host-panel) input[type="text"], :is(#admin-panel, #host-panel) input[type="number"], :is(#admin-panel, #host-panel) select, :is(#admin-panel, #host-panel) textarea {
  padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong);
  background: rgb(7 9 16 / 60%); color: var(--color-fg); font-family: var(--font-sans); font-size: 12px; min-width: 0; }
:is(#admin-panel, #host-panel) input:focus, :is(#admin-panel, #host-panel) select:focus, :is(#admin-panel, #host-panel) textarea:focus { outline: none; border-color: var(--color-ice); }
:is(#admin-panel, #host-panel) textarea { width: 100%; resize: vertical; min-height: 70px; }
:is(#admin-panel, #host-panel) input[type="number"] { width: 84px; }
:is(#admin-panel, #host-panel) input[type="number"].adm-wide { width: 120px; }
.adm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.adm-line > label { font-size: 11px; color: var(--color-muted); }
.adm-grow { flex: 1 1 140px; }
.adm-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); font-size: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; }
.adm-row:hover { box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.adm-row.selected { box-shadow: inset 0 0 0 1px var(--color-ice); background: color-mix(in oklab, var(--color-ice) 10%, var(--color-bg-subtle)); }
.adm-row.static { cursor: default; }
.adm-name { font-weight: 700; color: var(--color-fg); }
.adm-sub { color: var(--color-muted); font-size: 11px; }
.adm-push { margin-left: auto; }
.adm-push:has(> .adm-btn + .adm-btn) { display: flex; gap: 6px; }
.adm-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.adm-check input { width: auto; margin: 0; }
.adm-chip { font-size: 10px; padding: 1px 7px; border-radius: 999px; background: var(--color-bg-elevated);
  box-shadow: 0 0 0 1px var(--color-border); color: var(--color-muted); white-space: nowrap; }
.adm-chip.role { color: var(--color-warn); }
.adm-chip.flag { color: var(--color-crystal); }
.adm-chip.bad { color: var(--color-danger); }
.adm-card { margin-top: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--color-bg-subtle);
  box-shadow: 0 0 0 1px var(--color-border); }
.adm-card h4 { margin: 0 0 4px; font-size: 14px; font-family: var(--font-display); }
.adm-group-title { margin: 12px 0 0; font-size: 10px; color: var(--color-subtle); text-transform: uppercase; letter-spacing: 0.14em; }
.adm-note { margin: 6px 0 0; font-size: 11px; color: var(--color-subtle); line-height: 1.45; }
.adm-note.warn { color: var(--color-warn); }
.adm-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 10px; margin-top: 8px; }
.adm-perm { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-fg); cursor: pointer; }
.adm-perm input { accent-color: var(--color-hull); }
.adm-perm-option { margin: 10px 0 2px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.12); }
.adm-role-card { margin-top: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--color-bg-subtle); box-shadow: 0 0 0 1px var(--color-border); }
#admin-status { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--color-warn); line-height: 1.5; }

/* Duyuru / yönetici mesajı: üstte, sırayla, tıklayınca kapanır; oyun tıklamalarını engellemez */
#announce-banner { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); z-index: 65;
  display: flex; flex-direction: column; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.ann { pointer-events: auto; cursor: pointer; padding: 12px 16px; border-radius: var(--radius-md); text-align: center;
  background: color-mix(in oklab, var(--color-bg-elevated) 92%, transparent); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--color-warn), 0 0 26px rgb(255 180 84 / 22%), var(--shadow-border);
  animation: ann-in 300ms var(--ease-smooth-out); }
.ann-dm { box-shadow: 0 0 0 1px var(--color-ice), 0 0 26px rgb(90 209 255 / 22%), var(--shadow-border); }
.ann-head { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-warn); }
.ann-dm .ann-head { color: var(--color-ice); }
.ann-text { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--color-fg); word-break: break-word; }
.ann-from { margin-top: 4px; font-size: 11px; color: var(--color-muted); }
@keyframes ann-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

#spectate-bar { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 46;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--radius-md); font-size: 13px;
  background: color-mix(in oklab, var(--color-bg-elevated) 90%, transparent); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--color-crystal), 0 0 22px rgb(192 123 255 / 25%), var(--shadow-border); color: var(--color-fg); }
#spectate-bar b { color: var(--color-crystal); }
#spectate-bar button { margin: 0; padding: 5px 10px; font-size: 12px; }
#station-panel .ship-owned-badge { float: none; display: inline-block; margin-left: 6px; vertical-align: 1px; }

/* ---- Hangarım / gemi adları ---- */
.panel-note { margin: 10px 0 0; font-size: 12px; color: var(--color-muted); line-height: 1.45; }
#hangar-list > .section-title:first-child { margin-top: 10px; }
.ship-name-edit { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ship-name { font-size: 15px; font-weight: 700; color: var(--color-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#station-panel .name-edit-btn { flex: 0 0 auto; width: 26px; height: 26px; margin: 0; padding: 0; font-size: 12px; line-height: 1;
  background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); border-radius: var(--radius-xs); }
#station-panel .name-edit-btn.save { background: var(--color-hull); color: var(--color-accent-fg); box-shadow: none; }
.ship-name-input { flex: 1; min-width: 0; padding: 5px 8px; font-size: 13px; font-family: var(--font-sans); color: var(--color-fg);
  background: rgb(5 8 16 / 60%); border: 1px solid var(--color-border-strong); border-radius: var(--radius-xs); }
.ship-name-input:focus { outline: none; border-color: var(--color-ice); }
.hangar-sub { margin: 3px 0 8px; font-size: 12px; color: var(--color-muted); }
.hangar-active { color: var(--color-hull); font-weight: 600; }
.hangar-fit { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.hangar-fit.empty { font-size: 11px; color: var(--color-subtle); }
.fit-chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; color: var(--color-fg);
  background: color-mix(in oklab, var(--slot-color, var(--color-accent)) 14%, var(--color-bg-subtle));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--slot-color, var(--color-accent)) 40%, transparent); }
.fit-chip[data-tier="2"] { box-shadow: inset 0 0 0 1px rgb(192 123 255 / 70%); }
.fit-chip[data-tier="3"] { box-shadow: inset 0 0 0 1px rgb(255 184 60 / 75%); }
.fit-chip[data-tier="4"] { box-shadow: inset 0 0 0 1px rgb(255 70 70 / 80%); }
.hangar-cargo { font-size: 11px; color: var(--color-cargo); margin-bottom: 8px; }
.ship-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ship-summary-type { flex-shrink: 0; font-size: 11px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dead-loss { max-width: 440px; margin: 0; padding: 0 16px; text-align: center; font-family: var(--font-sans); font-size: 14px;
  line-height: 1.5; color: var(--color-muted); }
.dead-loss b { color: var(--color-danger); }

/* ---- Pazar (oyuncu ilanları) ---- */
#player-market-panel { width: min(96vw, 980px); padding-bottom: 16px; }
.pm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: space-between; }
.pm-toolbar .filter-chips { margin-top: 10px; }
#pm-search { flex: 1 1 220px; max-width: 320px; margin-top: 10px; }
#player-market-panel .filter-chip, #trade-panel .filter-chip { width: auto; margin: 0; padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: var(--color-bg-subtle); color: var(--color-muted); box-shadow: 0 0 0 1px var(--color-border); }
#player-market-panel .filter-chip.active { background: color-mix(in oklab, var(--color-accent) 18%, var(--color-bg-subtle));
  color: var(--color-ice); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-accent) 60%, transparent); }
#player-market-panel .act-btn { flex: 1 1 auto; width: auto; margin: 0; padding: 7px 10px; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm); white-space: nowrap; }
#player-market-panel .act-btn.ghost { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }
#player-market-panel .act-btn.danger { background: transparent; color: var(--color-danger);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-danger) 45%, transparent); }
#player-market-panel .act-btn.danger:hover { background: var(--color-danger); color: #1a0d0d; }
#player-market-panel .act-btn:disabled { background: var(--color-bg-subtle); color: var(--color-subtle); box-shadow: none; }
.pm-listing-meta { font-size: 11px; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pm-listing-meta b { color: var(--color-fg); font-weight: 600; }
.pm-price { font-size: 13px; color: var(--color-muted); }
.pm-price b { color: var(--color-cargo); font-size: 16px; font-variant-numeric: tabular-nums; }
.pm-ship-card { --slot-color: var(--color-ice); }
.pm-ship-img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 6px rgb(90 209 255 / 35%)); }
.pm-chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.pm-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--color-bg-subtle); color: var(--color-fg);
  box-shadow: 0 0 0 1px var(--color-border); white-space: nowrap; }
.pm-chip.t2 { color: #e2c6ff; box-shadow: 0 0 0 1px rgb(192 123 255 / 55%); }
.pm-chip.t3 { color: #ffe2a6; box-shadow: 0 0 0 1px rgb(255 184 60 / 60%); }
.pm-chip.t4 { color: #ffc2c2; box-shadow: 0 0 0 1px rgb(255 70 70 / 65%); }
.pm-sell-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 6px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.pm-sell-row .pm-sell-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-sell-row .pm-sell-sub { display: block; font-size: 11px; color: var(--color-muted); }
.pm-sell-row input { width: 120px; flex-shrink: 0; margin: 0; }
#player-market-panel .pm-sell-row .act-btn { flex: 0 0 auto; min-width: 96px; }
.pm-history-row { opacity: 0.85; }
.pm-status { font-size: 11px; font-weight: 600; }
.pm-status.sold { color: var(--color-hull); }
.pm-status.cancelled { color: var(--color-muted); }

/* ---- Takas ---- */
#trade-panel { width: min(96vw, 720px); }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .trade-cols { grid-template-columns: 1fr; } }
.trade-col { min-width: 0; padding: 10px; border-radius: var(--radius-md); background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.trade-col .section-title { margin-top: 0; display: flex; align-items: center; gap: 6px; }
.trade-col .trade-inv-title { margin-top: 14px; }
.trade-hint { text-transform: none; letter-spacing: normal; font-weight: normal; color: var(--color-muted); }
.trade-status { text-transform: none; letter-spacing: normal; font-size: 11px; }
.trade-status.ok { color: var(--color-hull); }
.trade-status.wait { color: var(--color-muted); }
.trade-credits { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.trade-credits input { flex: 1; min-width: 0; }
.trade-credits-view { font-size: 13px; color: var(--color-muted); }
.trade-credits-view b { color: var(--color-cargo); font-size: 15px; }
.trade-offer, .trade-inv { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; min-height: 30px; max-height: 220px; overflow: auto; }
.trade-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 12px;
  background: var(--color-bg-elevated); box-shadow: 0 0 0 1px var(--color-border); }
.trade-item.clickable { cursor: pointer; }
.trade-item.clickable:hover { box-shadow: 0 0 0 1px var(--color-border-strong); filter: brightness(1.12); }
.trade-item .ti-icon { font-size: 16px; }
.trade-item .ti-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-fg); }
.trade-item .ti-act { font-size: 11px; color: var(--color-muted); }
.trade-res-row input { width: 72px; min-width: 0; padding: 3px 6px; font-size: 12px; }
.trade-res-row button { width: auto; margin: 0; padding: 4px 9px; font-size: 11px; }
#trade-panel.trade-locked .trade-col:first-child { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-hull) 60%, transparent); }
.trade-buttons { display: flex; gap: 8px; }
.trade-buttons button { flex: 1; }
#trade-cancel-btn { background: transparent; color: var(--color-danger); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-danger) 45%, transparent); }
#trade-confirm-btn.active-follow { background: var(--color-hull); color: var(--color-accent-fg); }
#trade-request-box { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); z-index: 40; min-width: 280px;
  padding: 12px 14px; border-radius: var(--radius-md); background: color-mix(in oklab, var(--color-bg-elevated) 92%, transparent);
  box-shadow: var(--shadow-border), 0 10px 30px rgb(0 0 0 / 45%); backdrop-filter: blur(10px); font-size: 13px; color: var(--color-fg); }
.trade-request-buttons { display: flex; gap: 8px; margin-top: 10px; }
.trade-request-buttons button { flex: 1; margin: 0; }
.trade-request-buttons button.ghost { background: var(--color-bg-subtle); color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-border-strong); }

/* ---- Klan ve profil ---- */
#clan-panel { width: min(94vw, 480px); }
.clan-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  line-height: 17px; color: #7fd4ff; background: rgb(90 209 255 / 12%); box-shadow: inset 0 0 0 1px rgb(90 209 255 / 40%);
  vertical-align: 1px; white-space: nowrap; }
button.clan-tag { width: auto; margin: 0; cursor: pointer; }
.clan-form { display: grid; gap: 8px; margin-top: 10px; }
.clan-form label { display: grid; gap: 4px; font-size: 12px; color: var(--color-muted); }
.clan-form input, .clan-form textarea { margin: 0; width: 100%; box-sizing: border-box; }
.clan-form textarea { min-height: 56px; resize: vertical; font-family: var(--font-sans); }
.clan-form .clan-form-row { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.clan-cost { font-size: 12px; color: var(--color-muted); }
.clan-cost b { color: var(--color-cargo); }
.clan-head { margin-top: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--color-bg-subtle);
  box-shadow: inset 0 0 0 1px var(--color-border); }
.clan-head-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--color-fg); }
.clan-head-title .clan-tag { font-size: 13px; line-height: 20px; }
.clan-desc { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--color-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.clan-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.clan-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.clan-minlevel-label { font-size: 12px; color: var(--color-muted); white-space: nowrap; }
.clan-minlevel-row input[type="number"] { flex: 0 0 76px; width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.clan-minlevel-hint { margin: 6px 2px 0; font-size: 11px; line-height: 1.45; color: var(--color-subtle); }
.role-pill { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700;
  line-height: 16px; vertical-align: 1px; }
.role-pill.leader { color: #2a1c00; background: linear-gradient(180deg, #ffe38a, #f5b942); }
.role-pill.inviter { color: var(--color-ice); box-shadow: inset 0 0 0 1px rgb(90 209 255 / 45%); }
.clan-card { cursor: pointer; }
.clan-card .friend-status { white-space: normal; }
.clan-search-row { margin-top: 10px; }
.clan-back { width: auto; margin: 10px 0 0; padding: 5px 10px; font-size: 12px; background: transparent; color: var(--color-fg);
  box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.clan-msg-input { flex: 1; min-width: 0; margin: 0; padding: 6px 8px; font-size: 12px; }
.profile-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.profile-head .friend-avatar { width: 52px; height: 52px; font-size: 22px; }
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--color-fg); }
.profile-sub { margin-top: 3px; font-size: 12px; color: var(--color-muted); }
.profile-titles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.profile-friend-actions { display: contents; }
.profile-friend-chip { color: #8ff09a; border-color: rgba(126,231,135,0.45); }
.profile-titles .lb-title { margin-left: 0; }
.profile-ship { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-md);
  background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.profile-ship img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.profile-ship-name { font-weight: 700; font-size: 14px; color: var(--color-fg); }
.profile-equip { display: flex; flex-direction: column; gap: 5px; }
.profile-equip-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); font-size: 12.5px; }
.profile-equip-row .pe-icon { width: 20px; text-align: center; flex-shrink: 0; }
.profile-equip-row .pe-name { flex: 1; min-width: 0; font-weight: 600; color: var(--color-fg); }
.profile-equip-row .pe-stats { display: block; font-weight: 400; font-size: 11px; color: var(--color-muted); margin-top: 1px; }
.lb-name .clan-tag { margin-right: 4px; }
.lb-row.lb-clickable { cursor: pointer; }
.lb-row.lb-clickable:hover { background: color-mix(in oklab, var(--color-bg-subtle) 80%, #1d2a3a); }

/* ---- Ölüm geçmişi ---- */
#deaths-panel { width: min(94vw, 440px); }
.death-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.death-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--color-bg-subtle); box-shadow: inset 3px 0 0 var(--color-border-strong); }
.death-row.by-player { box-shadow: inset 3px 0 0 var(--color-danger); }
.death-main { flex: 1; min-width: 0; }
.death-killer { font-size: 13px; color: var(--color-fg); }
.death-meta { margin-top: 2px; font-size: 11px; color: var(--color-muted); overflow-wrap: anywhere; }
.death-actions { display: flex; gap: 4px; flex-shrink: 0; }
.death-actions .marker-row-btn { width: auto; margin: 0; padding: 4px 8px; font-size: 13px; line-height: 1; }
.dead-killer { display: inline-block; margin-bottom: 6px; font-size: 15px; color: #ffb3b3; }

/* Günlük çark (Pazar > Günlük Çark, bkz. game/dailyWheel.js) */
.wheel-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center; padding: 14px 4px 4px; }
.wheel-stage { position: relative; width: min(82vw, 340px); aspect-ratio: 1; flex-shrink: 0; }
#wheel-svg { width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(0 0 22px rgb(90 209 255 / 18%)) drop-shadow(0 16px 40px rgb(0 0 0 / 55%)); }
#wheel-rotor { transform-origin: 150px 150px; transform-box: view-box; }
.wheel-seg { stroke: var(--color-bg); stroke-width: 1.5; }
.wheel-seg.cons-a { fill: #13283a; }
.wheel-seg.cons-b { fill: #0f1f2e; }
.wheel-seg.equip { fill: #2a2412; }
.wheel-seg.jackpot { fill: #3a1d52; }
.wheel-rim { fill: none; stroke: var(--color-border-strong); stroke-width: 3; }
.wheel-icon { font-size: 20px; text-anchor: middle; dominant-baseline: central; }
.wheel-qty { font: 700 12px var(--font-sans); fill: var(--color-fg); text-anchor: middle; dominant-baseline: central; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0;
  border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--color-sand);
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 60%)); }
.panel .wheel-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 25%; height: 25%; margin: 0; padding: 0;
  border-radius: 50%; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; background: var(--color-accent); color: var(--color-accent-fg);
  box-shadow: 0 0 0 4px var(--color-bg-elevated), 0 0 24px color-mix(in oklab, var(--color-accent) 55%, transparent); }
.panel .wheel-hub:active { transform: translate(-50%, -50%) scale(0.96); }
.panel .wheel-hub:disabled { background: var(--color-bg-subtle); color: var(--color-muted); box-shadow: 0 0 0 4px var(--color-bg-elevated); }
.wheel-side { flex: 1 1 260px; min-width: 0; max-width: 420px; }
.wheel-status { margin: 0 0 12px; font-size: 13px; color: var(--color-muted); line-height: 1.45; }
.wheel-status b { color: var(--color-fg); font-variant-numeric: tabular-nums; }
.wheel-result { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-hull) 10%, var(--color-bg-subtle)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-hull) 45%, transparent);
  animation: dock-menu-in var(--motion-fast) var(--ease-smooth-out); }
.wheel-result.hidden { display: none; }
.wheel-result.jackpot { background: rgb(192 123 255 / 14%); box-shadow: inset 0 0 0 1px rgb(192 123 255 / 60%), 0 0 22px rgb(192 123 255 / 30%); }
.wr-icon { font-size: 30px; }
.wr-title { font-weight: 700; font-size: 14px; color: var(--color-fg); }
.wr-sub { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.wheel-info { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wheel-info-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--color-bg-subtle);
  font-size: 12px; line-height: 1.45; color: var(--color-muted); }
.wheel-info-row .wi-icon { font-size: 16px; line-height: 1.2; }
.wheel-info-row b { color: var(--color-fg); font-variant-numeric: tabular-nums; }
.wheel-info-row.has-bonus { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-hull) 45%, transparent); }
.wheel-odds-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-subtle); margin-bottom: 6px; }
.wheel-odds { display: flex; flex-direction: column; gap: 3px; }
.wheel-odd { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); font-size: 12px; }
.wheel-odd.jackpot { box-shadow: inset 0 0 0 1px rgb(192 123 255 / 50%); }
.wo-icon { width: 20px; text-align: center; }
.wo-name { flex: 1; min-width: 0; color: var(--color-fg); }
.wo-name .tier-badge { margin-left: 4px; }
.wo-chance { color: var(--color-muted); font-variant-numeric: tabular-nums; }

/* Rapor / destek (bkz. main.js openReports, game/reports.js) */
#reports-panel { width: min(94vw, 460px); }
#reports-panel .badge-inline { margin-left: 6px; }
.rp-form { display: grid; gap: 10px; margin-top: 12px; }
.rp-form > label { display: grid; gap: 4px; font-size: 12px; color: var(--color-muted); }
.rp-form input[type="text"], .rp-form textarea { width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong); background: rgb(7 9 16 / 60%);
  color: var(--color-fg); font-family: var(--font-sans); font-size: 13px; }
.rp-form textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.rp-form input:focus, .rp-form textarea:focus { outline: none; border-color: var(--color-ice); }
.rp-form button[type="submit"] { margin-top: 0; }
.rp-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rp-kind { position: relative; cursor: pointer; }
.rp-kind input { position: absolute; opacity: 0; pointer-events: none; }
.rp-kind span { display: block; padding: 8px 6px; border-radius: var(--radius-sm); text-align: center; font-size: 12px; font-weight: 600;
  color: var(--color-muted); background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.rp-kind:hover span { color: var(--color-fg); }
.rp-kind input:checked + span { color: var(--color-fg); background: color-mix(in oklab, var(--color-accent) 22%, var(--color-bg-subtle));
  box-shadow: inset 0 0 0 1px var(--color-accent); }
.rp-kind input:focus-visible + span { outline: 2px solid var(--color-ice); outline-offset: 1px; }
.rp-form-foot { display: flex; justify-content: flex-end; margin-top: -6px; }
.rp-count { font-size: 11px; color: var(--color-subtle); }
.rp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: min(62vh, 560px); overflow-y: auto; padding-right: 2px; }
.rp-row { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); box-shadow: inset 3px 0 0 var(--color-warn); }
.rp-row.closed { box-shadow: inset 3px 0 0 var(--color-border-strong); }
.rp-row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--color-fg); }
.rp-status { margin-left: auto; font-size: 11px; font-weight: 700; }
.rp-status.open { color: var(--color-warn); }
.rp-status.closed { color: var(--color-hull); }
.rp-meta { margin-top: 2px; font-size: 11px; color: var(--color-subtle); }
.rp-text { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--color-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-reply { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--color-ice) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ice) 35%, transparent); }
.rp-reply-head { font-size: 11px; font-weight: 700; color: var(--color-ice); }
.rp-reply .rp-text { color: var(--color-fg); margin-top: 4px; }

/* Yönetici paneli — raporlar sekmesi */
.adm-report-text { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--color-fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-row .adm-excerpt { flex-basis: 100%; font-size: 11px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-chip.open { color: var(--color-warn); }
.adm-chip.ok { color: var(--color-hull); }

/* Host paneli (bkz. public/host.js) — .adm-* stillerini paylaşır */
.host-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 4px; }
.host-stat { padding: 10px 12px; border-radius: var(--radius-md); background: var(--color-bg-subtle); box-shadow: 0 0 0 1px var(--color-border); }
.host-stat-label { font-size: 10px; color: var(--color-subtle); text-transform: uppercase; letter-spacing: 0.12em; }
.host-stat-value { margin-top: 4px; font-size: 20px; font-weight: 700; font-family: var(--font-display); color: var(--color-fg); font-variant-numeric: tabular-nums; }
.host-stat-sub { margin-top: 2px; font-size: 11px; color: var(--color-muted); }
.adm-list.host-list { max-height: 320px; }
.adm-list.host-list.tall { max-height: 420px; }
.host-pos { min-width: 34px; font-weight: 700; color: var(--color-ice); font-variant-numeric: tabular-nums; }
.host-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-subtle); flex: none; }
.host-dot.on { background: var(--color-hull); box-shadow: 0 0 6px var(--color-hull); }
.adm-row .adm-excerpt.host-wrap { white-space: normal; }
.host-msg .adm-report-text { flex-basis: 100%; margin-top: 2px; }
.queue-box.paused .queue-eyebrow { color: var(--color-danger); }

/* Kanal sohbeti (Genel / İttifak): sol altta, menü butonlarının üstünde; sürüklenip küçültülebilir. */
#channel-chat { position: absolute; left: 16px; bottom: 60px; width: 380px; z-index: 30;
  background: color-mix(in oklab, var(--color-bg-elevated) 70%, transparent); border-radius: var(--radius-md);
  box-shadow: var(--shadow-border); backdrop-filter: blur(10px) saturate(1.3); border-top: 2px solid var(--color-ice);
  display: flex; flex-direction: column; }
#channel-chat.minimized { width: auto !important; } /* boyutlandırmadan kalan satır içi genişliği ez */
#channel-chat.minimized #channel-chat-body { display: none; }
#channel-chat.minimized .panel-drag-bar { border-bottom: none; }
#channel-chat-body { display: flex; flex-direction: column; height: 240px; }
/* Kenar/köşe boyutlandırma tutamaçları (bkz. main.js setupChannelChatResize): görünmez, üstüne gelince imleç değişir. */
.chat-resize { position: absolute; z-index: 2; touch-action: none; }
.chat-resize-n, .chat-resize-s { left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.chat-resize-e, .chat-resize-w { top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.chat-resize-n { top: -4px; } .chat-resize-s { bottom: -4px; }
.chat-resize-e { right: -4px; } .chat-resize-w { left: -4px; }
.chat-resize-ne, .chat-resize-nw, .chat-resize-se, .chat-resize-sw { width: 14px; height: 14px; }
.chat-resize-ne { top: -5px; right: -5px; cursor: nesw-resize; } .chat-resize-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.chat-resize-nw { top: -5px; left: -5px; cursor: nwse-resize; } .chat-resize-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
#channel-chat.minimized .chat-resize { display: none; }
#channel-chat.resizing { user-select: none; box-shadow: var(--shadow-border), 0 0 0 1px var(--color-ice); }
/* Sekmeler: alt çizgili, sade */
.channel-tabs { display: flex; gap: 2px; align-self: stretch; }
.channel-tab { position: relative; width: auto; margin: 0; padding: 6px 10px 5px; font-size: 11.5px; font-weight: 700;
  text-transform: none; letter-spacing: 0.01em; background: transparent; box-shadow: none; color: var(--color-muted);
  border-radius: 0; border-bottom: 2px solid transparent; }
.channel-tab:hover { color: var(--color-fg); background: transparent; filter: none; }
.channel-tab.active { color: var(--color-ice); border-bottom-color: var(--color-ice); background: transparent; }
.channel-dot { position: absolute; top: 4px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-danger);
  box-shadow: 0 0 6px var(--color-danger); }
#channel-chat-drag-bar { padding-top: 0; padding-bottom: 0; }

/* Mesajlar: başlık (rozet, klan etiketi, ad, saat) + gövde. Aynı kişinin art arda (3 dk içinde) mesajları başlıksız
   devam satırı olarak eklenir (bkz. main.js channelMsgHtml) — dar pencerede bile okunaklı, tekrar yok. */
#channel-messages { flex: 1; overflow-y: auto; padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 0;
  font-size: 13px; line-height: 1.42; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 18%) transparent; }
.channel-msg { position: relative; padding: 5px 8px 4px; border-radius: 8px; color: #dbe6f2; word-break: break-word; overflow-wrap: anywhere; }
.channel-msg + .channel-msg:not(.cont) { margin-top: 4px; }
.channel-msg.cont { padding-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.channel-msg:has(+ .cont) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } /* grup tek blok gibi görünsün */
.channel-msg:hover { background: rgb(255 255 255 / 3.5%); }
.cmsg-head { display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 1px; }
.cmsg-head .channel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmsg-body { white-space: pre-wrap; }
.channel-msg .channel-time { margin-left: auto; padding-left: 6px; flex: none; color: var(--color-subtle); font-size: 10px;
  font-variant-numeric: tabular-nums; opacity: 0.8; }
.channel-msg.cont .channel-time { position: absolute; right: 8px; top: 1px; opacity: 0; transition: opacity 0.12s; }
.channel-msg.cont:hover .channel-time { opacity: 0.8; }
.channel-msg .clan-tag { flex: none; margin: 0; padding: 0 5px; font-size: 9.5px; line-height: 15px; border-radius: 4px; }
.channel-name { font-weight: 700; font-size: 12.5px; color: var(--color-ice); cursor: pointer; }
.channel-name:hover { text-decoration: underline; }
.channel-msg.mine .channel-name { color: var(--color-accent); }
.channel-msg.mine { background: rgb(90 209 255 / 4%); }
.channel-msg.clan .channel-name { color: #7ee787; }
/* Yetkililer: ince renkli sol kenar + küçük çerçeveli rozet (dolu, parlayan kutular yerine) */
.staff-badge { flex: none; display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; line-height: 14px; background: transparent; }
.staff-badge.gm { color: #ff8a8a; box-shadow: inset 0 0 0 1px rgb(255 110 110 / 70%); }
.staff-badge.host { color: #ffd45a; box-shadow: inset 0 0 0 1px rgb(255 205 80 / 75%); }
.channel-msg.staff-gm, .channel-msg.staff-host { margin-left: 0; margin-right: 0; }
.channel-msg.staff-gm { box-shadow: inset 2px 0 0 #ff6b6b; background: rgb(255 90 90 / 5%); }
.channel-msg.staff-gm .channel-name { color: #ff8a8a; }
.channel-msg.staff-host { box-shadow: inset 2px 0 0 #ffc93c; background: rgb(255 200 60 / 5%); }
.channel-msg.staff-host .channel-name { color: #ffd45a; }
.channel-msg.system { margin-top: 4px; padding: 3px 8px; text-align: center; font-size: 11.5px; font-style: italic; color: var(--color-muted); background: none; }
.channel-msg.system .channel-time { margin: 0 5px 0 0; padding: 0; }
.channel-empty { margin: auto; text-align: center; font-size: 12px; color: var(--color-subtle); }

/* Yazma alanı: tek parça hap, gönder düğmesi içinde */
#channel-input-row { display: flex; align-items: center; gap: 0; margin: 4px 8px 8px; padding: 0 3px 0 0;
  border-radius: 999px; background: rgb(5 8 16 / 55%); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
#channel-input-row:focus-within { box-shadow: inset 0 0 0 1px var(--color-ice), 0 0 0 3px rgb(90 209 255 / 12%); }
#channel-input-row input { flex: 1; min-width: 0; margin: 0; padding: 7px 12px; font-size: 13px; border: none; background: transparent;
  box-shadow: none; outline: none; color: var(--color-fg); }
#channel-input-row button { flex: none; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 50%; font-size: 13px; line-height: 1; }
@media (max-width: 600px) { #channel-chat { width: calc(100vw - 32px); } }
#channel-mod-menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px; border-radius: 10px;
  background: var(--color-bg-elevated); box-shadow: var(--shadow-border), 0 10px 30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 1px; }
.channel-mod-title { padding: 4px 8px 6px; font-size: 12px; font-weight: 700; color: var(--color-ice);
  border-bottom: 1px solid var(--color-border); margin-bottom: 3px; }
.channel-mod-item { width: 100%; margin: 0; padding: 6px 8px; text-align: left; font-size: 12.5px; font-weight: 500;
  text-transform: none; letter-spacing: 0; background: transparent; box-shadow: none; color: var(--color-fg); border-radius: 6px; }
.channel-mod-item:hover { background: var(--color-bg-subtle); }
.channel-mod-item.danger { color: #ff7a7a; }
.channel-mod-item.danger:hover { background: rgb(255 90 90 / 14%); }
.channel-mod-sep { height: 1px; margin: 3px 4px; background: var(--color-border); }

/* Dil seçici (giriş ekranı, sağ üst) — bkz. public/i18n.js */
.lang-picker { position: fixed; top: 14px; right: 16px; z-index: 50; display: flex; gap: 4px;
  background: color-mix(in oklab, var(--color-bg-elevated) 70%, transparent); border-radius: var(--radius-md);
  padding: 4px; box-shadow: var(--shadow-border); backdrop-filter: blur(8px); }
.lang-picker button { min-width: 38px; padding: 5px 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.05em;
  background: transparent; border: none; color: var(--color-text-muted, #9fb0c8); cursor: pointer; border-radius: 6px; }
.lang-picker button.active { background: var(--color-ice, #5ad1ff); color: #061018; }

/* Maden türleri (bkz. game/resources.js): ekipman fiyatındaki maden bedeli, nadir etiketi, pazarda öne çıkan satır */
.item-ore-cost { font-size: 10.5px; color: var(--color-muted); margin-top: 2px; white-space: normal; }
.res-rare { font-size: 10px; padding: 0 5px; border-radius: 6px; color: #ffd27a; box-shadow: 0 0 0 1px rgba(255,210,122,0.5); }
.pm-sell-row.pm-sell-focus { box-shadow: 0 0 0 1px var(--color-ice); border-radius: var(--radius-xs); }

/* ---- Grup (bkz. public/group-ui.js) ---- */
#group-panel { width: min(94vw, 480px); }
.group-intro { margin: 10px 0; font-size: 12px; line-height: 1.5; color: var(--color-muted); }
.group-create-row { margin: 10px 0 4px; }
.group-head .clan-head-title .fr-btn { margin-left: auto; }
.group-modes { display: flex; gap: 4px; margin-top: 10px; padding: 3px; border-radius: var(--radius-sm); background: rgb(5 8 16 / 55%);
  box-shadow: inset 0 0 0 1px var(--color-border); }
.group-mode { flex: 1; width: auto; margin: 0; padding: 6px 4px; font-size: 12px; font-weight: 600; border-radius: var(--radius-xs);
  background: transparent; color: var(--color-muted); box-shadow: none; }
.group-mode:hover { color: var(--color-fg); background: var(--color-bg-subtle); }
.group-mode.active { background: var(--color-accent); color: var(--color-accent-fg); }
.group-member.dead { opacity: 0.6; }
.group-bars { display: grid; gap: 2px; margin-top: 5px; max-width: 180px; }
.group-bar { height: 3px; border-radius: 2px; background: rgb(255 255 255 / 8%); overflow: hidden; }
.group-bar i { display: block; height: 100%; width: 0; transition: width 0.4s ease; }
.group-bar.shield i { background: var(--color-shield); }
.group-bar.hull i { background: var(--color-hull); }
.group-invited { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.group-invited .head-chip .fr-btn { padding: 0 5px; font-size: 11px; }
.group-full { font-size: 11px; color: var(--color-subtle); white-space: nowrap; }
.group-marker.target .marker-row-name { color: #ffb0b0; }
#group-panel .marker-list { display: flex; flex-direction: column; gap: 4px; }
.marker-form-group { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-ice); cursor: pointer; }
.marker-form-group input { width: auto; margin: 0; }
.channel-msg.group .channel-name { color: #8fd8ff; }
.channel-msg.system { color: var(--color-muted); font-style: italic; }

#group-hud { position: absolute; top: 340px; left: 16px; width: 220px; z-index: 25;
  background: color-mix(in oklab, var(--color-bg-elevated) 74%, transparent); border-radius: var(--radius-md);
  box-shadow: var(--shadow-border); backdrop-filter: blur(10px) saturate(1.3); border-top: 2px solid #4cd2ff; }
#group-hud.minimized #group-hud-body { display: none; }
#group-hud.minimized .panel-drag-bar { border-bottom: none; }
#group-hud-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; text-transform: none;
  letter-spacing: 0; font-size: 11px; font-weight: 700; color: #8fd8ff; }
#group-hud-body { display: flex; flex-direction: column; gap: 3px; padding: 6px; max-height: 42vh; overflow-y: auto; }
.group-hud-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 6px; width: 100%; margin: 0;
  padding: 4px 7px; border-radius: var(--radius-xs); text-align: left; font-size: 12px; font-weight: 600; color: var(--color-fg);
  background: rgb(255 255 255 / 3%); box-shadow: inset 0 0 0 1px var(--color-border); cursor: pointer; }
.group-hud-row:hover { background: rgb(90 209 255 / 12%); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.group-hud-row .group-bars { grid-column: 1 / -1; max-width: none; margin-top: 3px; }
.group-hud-row.dead { opacity: 0.55; }
.group-hud-row.target { box-shadow: inset 2px 0 0 var(--color-danger), inset 0 0 0 1px rgb(255 90 90 / 25%); }
.ghr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ghr-dist { font-size: 10.5px; font-weight: 500; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ghr-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.group-hud-sep { margin: 4px 2px 1px; font-size: 9.5px; color: var(--color-subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.group-hud-empty { padding: 4px 2px; font-size: 11px; color: var(--color-subtle); }

/* ---- Grup sesli sohbeti (bkz. public/voice-ui.js) ---- */
.voice-box { display: flex; flex-direction: column; gap: 6px; }
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--color-ice); }
.voice-hint { font-size: 11px; color: var(--color-muted); }
.fr-btn.voice-off { color: var(--color-danger); box-shadow: inset 0 0 0 1px rgb(255 90 90 / 45%); }
.voice-self { display: inline-block; width: 10px; font-size: 12px; line-height: 1; color: rgb(255 255 255 / 18%); transition: color 0.1s; }
.voice-self.on { color: #4cff8a; text-shadow: 0 0 6px #4cff8a; }
.voice-ic { font-size: 11px; margin-left: 4px; opacity: 0.85; transition: filter 0.1s; }
.voice-ic.off { opacity: 0.6; }
.voice-ic.speaking, .voice-peer-name.speaking { filter: drop-shadow(0 0 4px #4cff8a); color: #7dffab; }
.voice-ic.speaking { opacity: 1; }
.group-hud-voice { display: flex; align-items: center; gap: 4px; padding: 0 1px 3px; margin-bottom: 2px; border-bottom: 1px solid var(--color-border); }
.group-hud-voice .fr-btn { padding: 2px 6px; font-size: 11px; min-height: 0; }
#voice-panel { width: 360px; max-width: calc(100vw - 32px); }
#voice-body { display: flex; flex-direction: column; gap: 8px; max-height: 72vh; overflow-y: auto; padding-right: 2px; }
.voice-field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--color-muted); }
.voice-select { width: 100%; padding: 5px 6px; font-size: 12px; background: rgb(0 0 0 / 30%); color: var(--color-fg);
  border: 1px solid var(--color-border); border-radius: var(--radius-xs); }
.voice-slider { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--color-ice); }
.voice-slider input { width: 100%; margin: 0; }
.voice-slider b { font-weight: 600; font-size: 11px; text-align: right; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.voice-meter { position: relative; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 8%); overflow: hidden; }
.voice-meter.small { height: 3px; margin: 3px 0 1px; }
.voice-meter i { display: block; height: 100%; width: 0; background: #6f8aa0; transition: width 0.05s linear; }
.voice-meter i.open, .voice-meter.small i { background: #4cff8a; }
.voice-meter em { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #ffd24c; }
.voice-checks { display: flex; flex-direction: column; gap: 4px; }
.voice-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-ice); cursor: pointer; }
.voice-check input { width: auto; margin: 0; }
.voice-peers { display: flex; flex-direction: column; gap: 6px; }
.voice-peer { padding: 6px 8px; border-radius: var(--radius-xs); background: rgb(255 255 255 / 3%); box-shadow: inset 0 0 0 1px var(--color-border); }
.voice-peer-head { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.voice-peer-btns { margin-left: auto; display: flex; gap: 4px; }
.voice-peer .voice-slider { grid-template-columns: 70px 1fr 40px; }
.fr-btn.armed { color: #fff; background: var(--color-danger); box-shadow: 0 0 0 1px var(--color-danger), 0 0 10px rgb(255 90 90 / 45%); }
.group-rename-row { display: flex; gap: 6px; align-items: center; flex: 1; }
.group-rename-row input { flex: 1; min-width: 0; }
.bar-fill.speed.boost { background: linear-gradient(90deg, #ff8a3d, #ffe08a); color: #ffb35c; box-shadow: 0 0 8px rgb(255 160 60 / 60%); }

/* Gemi özelliği (pasif rol bonusu, bkz. main.js shipTraitHtml) */
.ship-trait { margin-top: 8px; padding: 7px 9px; border-radius: var(--radius-xs, 6px);
  background: color-mix(in oklab, var(--trait) 12%, transparent); box-shadow: inset 3px 0 0 var(--trait), inset 0 0 0 1px color-mix(in oklab, var(--trait) 35%, transparent); }
.ship-trait.compact { margin-top: 5px; padding: 4px 8px; }
.ship-trait-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--trait); letter-spacing: 0.02em; }
.ship-trait-icon { font-size: 14px; }
.ship-trait-sum { font-size: 11.5px; color: var(--color-fg, #dfe8f2); margin-top: 2px; }
.ship-trait ul { margin: 4px 0 0; padding-left: 18px; font-size: 11.5px; color: var(--color-ice, #5ad1ff); }
.ship-trait li { margin: 1px 0; }
.ship-trait-chip { font-size: 11px; font-weight: 700; cursor: help; white-space: nowrap; }

/* ---- Galaksi haritası (bkz. public/galaxy-ui.js) ---- */
.map-tabs { flex: none; margin-top: 6px; }
#wide-map-box.galaxy-mode .wide-map-help { display: none; }
#galaxy-view { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px;
  background: radial-gradient(ellipse at 30% 40%, #121a33 0%, #070a14 70%); border-radius: var(--radius-md, 10px); overflow: hidden; }
#galaxy-view.hidden { display: none; }
#galaxy-svg { width: 100%; height: 100%; min-height: 0; display: block; }
.gx-stars circle { fill: #cfe3ff; }
.gx-link { stroke: #7fd4ff; stroke-width: 2.5; stroke-dasharray: 10 8; animation: gx-flow 1.6s linear infinite; }
.gx-link.warp { stroke: #c49bff; }
.gx-link-glow { stroke: rgb(127 212 255 / 18%); stroke-width: 12; stroke-linecap: round; }
.gx-link-glow.warp { stroke: rgb(196 155 255 / 22%); }
@keyframes gx-flow { to { stroke-dashoffset: -36; } }
.gx-link-label rect { fill: rgb(8 12 24 / 85%); stroke: rgb(127 212 255 / 35%); }
.gx-link-label text { fill: #bfe7ff; font-size: 14px; font-weight: 600; }
.gx-node { cursor: pointer; outline: none; }
.gx-node .gx-planet { stroke: rgb(255 255 255 / 25%); stroke-width: 1.5; transition: filter 0.15s; }
.gx-node:hover .gx-planet, .gx-node:focus-visible .gx-planet { filter: brightness(1.25); }
.gx-halo { pointer-events: none; }
.gx-sel-ring { fill: none; stroke-width: 2.5; opacity: 0.9; }
.gx-here-ring { fill: none; stroke: #4cff8a; stroke-width: 2; stroke-dasharray: 4 5; animation: gx-spin 8s linear infinite; transform-origin: center; }
@keyframes gx-spin { to { transform: rotate(360deg); } }
.gx-tier { fill: #fff; font-size: 26px; font-weight: 800; paint-order: stroke; stroke: rgb(0 0 0 / 55%); stroke-width: 4px; pointer-events: none; }
.gx-name { fill: #e9f3ff; font-size: 20px; font-weight: 700; paint-order: stroke; stroke: #05070d; stroke-width: 4px; pointer-events: none; }
.gx-sub { fill: #a9c3dd; font-size: 16px; paint-order: stroke; stroke: #05070d; stroke-width: 3px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .gx-link, .gx-here-ring { animation: none; } }
#galaxy-info { overflow-y: auto; padding: 12px 12px 12px 4px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--color-fg, #dfe8f2); }
.gx-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in oklab, var(--tc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tc) 45%, transparent); }
.gx-head-tier { font-size: 20px; font-weight: 800; color: var(--tc); min-width: 34px; text-align: center; }
.gx-head-name { font-size: 15px; font-weight: 700; }
.gx-head-sub { font-size: 11px; color: var(--color-muted, #9fb3c8); }
.gx-sec { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-subtle, #8aa0b8); }
.gx-count { margin-left: 4px; color: var(--color-ice, #5ad1ff); }
.gx-list { display: flex; flex-direction: column; gap: 4px; }
.gx-row { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 6px; background: rgb(255 255 255 / 4%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%); }
.gx-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gx-row-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-row-main span { font-size: 11px; color: var(--color-muted, #9fb3c8); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-chip { padding: 3px 8px; border-radius: 999px; font-size: 11.5px; background: color-mix(in oklab, var(--cc, #7fd4ff) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cc, #7fd4ff) 40%, transparent); }
.gx-chip i { font-style: normal; font-size: 10px; color: var(--color-muted, #9fb3c8); }
.gx-chip.enemy { --cc: #ff7a6b; }
.gx-chip.boss { --cc: #ffcf4d; font-weight: 700; }
.gx-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gx-step { padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 6%); }
.gx-step.cur { background: rgb(76 255 138 / 15%); color: #8dffb4; }
.gx-arrow { color: var(--color-muted, #9fb3c8); }
.gx-go { margin-top: 6px; width: 100%; }
.gx-note { margin: 0; color: var(--color-muted, #9fb3c8); font-size: 11.5px; }
@media (max-width: 760px) {
  #galaxy-view { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 45%) 1fr; }
  #galaxy-info { padding: 4px 10px 10px; }
}
#galaxy-info .gx-row .fr-btn { flex: none; width: auto; margin: 0; padding: 3px 9px; }
#galaxy-info .gx-go { margin: 6px 0 0; }
.gx-here-ring { transform-box: fill-box; }

/* Bölge kuralı rozeti (yönetici PvP/PvE kapattıysa, bkz. game/zonerules.js) */
#zone-rule-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 31; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, #1d4d38 82%, transparent); color: #b9ffd8; font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 1px rgb(141 255 184 / 35%); pointer-events: none; }
#zone-rule-badge.hidden { display: none; }
#game-screen.on-planet #zone-rule-badge { display: none; }

/* Yönetici paneli — PvP / PvE sekmesi */
.adm-zone-intro { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--color-muted); }
.adm-zone-intro b { color: var(--color-fg); font-size: 14px; }
.adm-zone-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.adm-zone-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #ff7a6b; }
.adm-zone-legend i.pve { background: #ffc95c; }
.adm-zones { display: grid; gap: 10px; }
.adm-zone { padding: 10px 12px; border-radius: 10px; background: var(--color-bg-subtle); box-shadow: inset 0 0 0 1px var(--color-border); }
.adm-zone.calm { box-shadow: inset 0 0 0 1px color-mix(in oklab, #8dffb8 45%, transparent); }
.adm-zone-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-zone-head b { font-size: 14px; }
.adm-zone-tier { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--color-bg-elevated); color: var(--color-muted); }
.adm-pills { display: flex; gap: 6px; }
#admin-panel button.adm-pill { width: auto; margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; cursor: pointer; background: rgb(255 122 107 / 18%); color: #ffb0a5; }
#admin-panel button.adm-pill.pve { background: rgb(255 201 92 / 18%); color: #ffd98a; }
#admin-panel button.adm-pill.off { background: rgb(141 255 184 / 12%); color: #8dffb8; }
.adm-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.adm-planets { display: grid; gap: 6px; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--color-border); }
.adm-planet { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: var(--color-bg-elevated); }
.adm-planet.calm { box-shadow: inset 0 0 0 1px color-mix(in oklab, #8dffb8 40%, transparent); }
.adm-planet-name { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.adm-planet-name small { color: var(--color-muted); font-size: 11px; }
.adm-planet-ic { font-size: 15px; }

/* İstasyon görevleri (public/quests-ui.js): Görevlerim penceresi + istasyon panelindeki görev panosu */
#quests-panel { width: min(94vw, 480px); }
.quests-sub { margin: 0 0 10px; font-size: 11.5px; color: var(--color-subtle); letter-spacing: 0.04em; }
.quests-list { display: grid; gap: 8px; }
.q-board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.q-board-head b { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.q-board-head small { color: var(--color-subtle); font-size: 11px; }
.q-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.q-card { --qc: var(--color-accent); position: relative; padding: 10px 12px 10px 14px; background: rgb(0 0 0 / 25%);
  box-shadow: inset 0 0 0 1px rgb(170 205 230 / 12%), inset 3px 0 0 var(--qc); display: flex; flex-direction: column; gap: 6px; }
.q-card.q-courier { --qc: #e6c27a; } .q-card.q-mine { --qc: #ffa040; } .q-card.q-kill { --qc: #ff5a5a; }
.q-card.q-explore { --qc: #5ad1ff; } .q-card.q-trade { --qc: #33e08a; }
.q-card.ready { box-shadow: inset 0 0 0 1px #5cff9a, inset 3px 0 0 #5cff9a, 0 0 16px rgb(92 255 154 / 18%); }
.q-card.taken { opacity: 0.5; }
.q-head { display: flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.q-icon { font-size: 15px; }
.q-type { color: var(--qc); font-weight: 700; }
.q-tier { padding: 1px 6px; box-shadow: inset 0 0 0 1px rgb(170 205 230 / 25%); color: var(--color-muted); font-size: 10px; }
.q-from { margin-left: auto; color: var(--color-subtle); text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.q-text { font-size: 13px; line-height: 1.4; color: var(--color-fg); }
.q-bar { height: 4px; } .q-bar .bar-fill { background: var(--qc); color: var(--qc); }
.q-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--color-muted); flex-wrap: wrap; }
.q-reward b { color: #e6c27a; font-weight: 600; }
.q-hint { font-size: 11.5px; color: #9fc2ff; }
.q-actions { display: flex; gap: 6px; margin-top: 2px; }
.panel .q-btn { width: auto; margin: 0; padding: 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 2px; }
.panel .q-btn.primary { flex: 1; background: linear-gradient(180deg, rgb(90 209 255 / 30%), rgb(90 209 255 / 16%)); color: #eaf7ff; box-shadow: inset 0 0 0 1px rgb(90 209 255 / 55%); }
.panel .q-btn.ghost { background: rgb(255 255 255 / 3%); color: var(--color-fg); box-shadow: inset 0 0 0 1px rgb(170 205 230 / 30%); }
.panel .q-btn.danger { background: transparent; color: var(--color-danger); box-shadow: inset 0 0 0 1px rgb(255 90 90 / 45%); }
.panel .q-btn:disabled { background: rgb(255 255 255 / 3%); color: var(--color-subtle); box-shadow: inset 0 0 0 1px rgb(170 205 230 / 12%); }

#wh-remote .storage-station { margin-bottom: 10px; }

/* Ping / bağlantı göstergesi: HUD'un üstündeki boşlukta, tıklamaları geçirir */
.net-status { position: absolute; top: 1px; left: 18px; z-index: 30; pointer-events: none; display: inline-flex; align-items: center; gap: 5px;
  height: 14px; padding: 0 7px; border-radius: 7px; font: 600 10px/14px var(--font-mono, ui-monospace, monospace); letter-spacing: .03em;
  color: var(--color-text-muted, #9fb0c3); background: rgba(6, 12, 22, .55); box-shadow: 0 0 0 1px rgba(120, 170, 220, .15); }
.net-status.hidden { display: none; }
.net-status .net-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.net-status.net-good { color: #3ee08f; }
.net-status.net-mid { color: #f0c04a; }
.net-status.net-bad { color: #ff5d5d; }
.net-status.net-bad .net-dot { animation: net-blink 1s steps(2) infinite; }
@keyframes net-blink { 50% { opacity: .25; } }
