/* ==========================================================================
   GENESIS COLONIES — GLOBAL style.css v1.7
   Dark Sci-Fi Neon / Premium Glow / Hard Shadows
   Targets: base.html + all templates

   SECTION INDEX:
   0) Fonts & Reset
   1) Design Tokens (Theme Variables)
   2) Base Layout (Background)
   3) Accessibility Helpers
   4) Header / Layout / Sidebar
   5) Page + Section headers
   6) Panels
   7) Buttons
   8) Flash + MOTD
   9) Grids
   10) Tables / Lists
   11+) Page-specific (Overview, Buildings, Research, …)
   23) Mobile Breakpoints (360–430px first)
   24) Desktop Enhancements (981px+)
   25) Mobile Polish v1.3 (sticky resources, clamp type, safe-area)
   ========================================================================== */

/* =========================
   0) Fonts & Reset
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Orbitron:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--gc-font-body, 1rem);
  background: #060b16;
  color: #d7f6ff;
  line-height: 1.35;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

button, input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid rgba(70, 229, 255, 0.85);
  outline-offset: 2px;
}

/* =========================
   1) Theme Variables
   ========================= */
:root {
  --gc-bg: #040810;
  --gc-bg2: #020508;

  --gc-panel: rgba(4, 10, 22, 0.94);
  --gc-panel-strong: rgba(3, 8, 18, 0.98);
  --gc-panel-bg: rgba(4, 10, 22, 0.94);
  --gc-panel-bg-2: rgba(6, 14, 28, 0.88);
  --gc-panel-border: rgba(70, 229, 255, 0.16);
  --gc-panel-border-strong: rgba(70, 229, 255, 0.32);

  --gc-border: rgba(70, 229, 255, 0.14);
  --gc-border-bright: rgba(70, 229, 255, 0.42);

  --gc-text: #c8e8f4;
  --gc-text-soft: rgba(200, 232, 244, 0.72);
  --gc-text-dim: rgba(200, 232, 244, 0.48);

  --gc-primary: #46e5ff;
  --gc-primary-2: #5ee8d0;
  --gc-neon-cyan: #46e5ff;
  --gc-neon-gold: #ffb020;

  --gc-danger: #ff3d5c;
  --gc-warning: #ff9a1a;
  --gc-success: #00e68a;

  --gc-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
  --gc-shadow-hard: 0 6px 0 rgba(0, 0, 0, 0.65);

  --gc-radius-xs: 0px;
  --gc-radius-sm: 2px;
  --gc-radius-md: 3px;
  --gc-radius-lg: 4px;
  --gc-radius-xl: 4px;
  --gc-radius-pill: 2px;

  --gc-border-glow: 0 0 0 1px rgba(70, 229, 255, 0.22);
  --gc-border-glow-strong: 0 0 0 1px rgba(70, 229, 255, 0.45), 0 0 8px rgba(70, 229, 255, 0.12);

  --gc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --gc-font-level: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Segoe UI", sans-serif;

  --gc-scanline: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(70, 229, 255, 0.015) 2px,
    rgba(70, 229, 255, 0.015) 4px
  );

  /* Background image hook */
  --gc-bg-img:
    linear-gradient(90deg, rgba(70, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(70, 229, 255, 0.02) 1px, transparent 1px),
    radial-gradient(900px 500px at 15% 10%, rgba(70,229,255,0.06), transparent 55%),
    radial-gradient(700px 400px at 85% 15%, rgba(255,154,26,0.04), transparent 50%),
    linear-gradient(180deg, #040810 0%, #020508 100%);

  /* Layout — auto height; resource row is single-line (4 cols) */
  --gc-header-h: auto;
  --gc-page-pad-y: 22px;
  --gc-panel-pad: 14px;
  --gc-bottom-nav-h: 64px;
  --gc-touch-min: 44px;

  /* Safe-area (iOS/Android notch) */
  --gc-safe-top: env(safe-area-inset-top, 0px);
  --gc-safe-right: env(safe-area-inset-right, 0px);
  --gc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gc-safe-left: env(safe-area-inset-left, 0px);

  /* Responsive typography (desktop max = bisherige Größen) */
  --gc-font-body: clamp(0.875rem, 0.84rem + 0.22vw, 1rem);
  --gc-font-small: clamp(0.75rem, 0.72rem + 0.14vw, 0.86rem);
  --gc-font-title: clamp(1rem, 0.92rem + 0.55vw, 1.28rem);
  --gc-font-section: clamp(1.02rem, 0.94rem + 0.45vw, 1.22rem);
  --gc-font-panel: clamp(0.92rem, 0.88rem + 0.28vw, 0.96rem);
  --gc-font-nav: clamp(0.58rem, 0.54rem + 0.22vw, 0.68rem);

  /* Card spacing scale */
  --gc-card-gap: clamp(12px, 2.4vw, 16px);
  --gc-section-gap: clamp(14px, 3vw, 18px);

  /* Header / HUD tokens */
  --gc-hdr-bg-1: rgba(6, 12, 22, 0.78);
  --gc-hdr-bg-2: rgba(8, 16, 30, 0.56);

  --gc-hdr-border: rgba(120, 255, 220, 0.16);
  --gc-hdr-border-2: rgba(120, 255, 220, 0.08);
  --gc-hdr-glow: rgba(120, 255, 220, 0.18);

  --gc-pill-bg: rgba(10, 18, 34, 0.72);
  --gc-pill-border: rgba(120, 255, 220, 0.18);

  --gc-amber-soft: rgba(255, 200, 80, 0.18);

  /* Premium button dual glow */
  --gc-btn-glow-1: 0 0 0 1px rgba(70,229,255,0.22), 0 0 26px rgba(70,229,255,0.14);
  --gc-btn-glow-2: 0 10px 30px rgba(0,0,0,0.40), 0 0 40px rgba(70,229,255,0.12);

  /* v1.1 resource accent tokens (optional use) */
  --gc-color-metal: rgba(127,255,217,0.92);
  --gc-color-crystal: rgba(70,229,255,0.92);
  --gc-color-energy: rgba(255,196,0,0.95);
}

/* =========================
   2) Background Layer (No black block)
   ========================= */
.gc-body { position: relative; }

.gc-body-ingame{
  padding-left: var(--gc-safe-left);
  padding-right: var(--gc-safe-right);
}

/* Planet landscape — rendered on .gc-bg (above body fill, below UI) */
body.gc-body-ingame.gc-has-planet-landscape {
  background-color: transparent;
  background-image: none;
  /* Panels: leicht transparent, aber über Landscape gut lesbar */
  --gc-panel: rgba(2, 10, 20, 0.97);
  --gc-panel-strong: rgba(2, 8, 16, 0.98);
  --gc-panel-bg: rgba(2, 10, 20, 0.97);
  --gc-panel-bg-2: rgba(4, 12, 24, 0.94);
  --gc-hdr-bg-1: rgba(4, 10, 20, 0.96);
  --gc-hdr-bg-2: rgba(6, 12, 24, 0.92);
  --gc-header-h: auto;
}

body.gc-body-ingame.gc-has-planet-landscape .gc-bg {
  opacity: 1;
  background-image:
    linear-gradient(rgba(0, 8, 18, 0.34), rgba(0, 8, 18, 0.50)),
    var(--planet-landscape);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.gc-body-ingame.gc-has-planet-landscape .gc-bg::after {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.22) 100%),
    radial-gradient(circle at 50% 15%, rgba(0, 255, 255, 0.05), transparent 42%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.34),
      rgba(0, 0, 0, 0.08) 24%,
      rgba(0, 0, 0, 0.08) 76%,
      rgba(0, 0, 0, 0.34)
    );
  opacity: 0.92;
}

body.gc-body-ingame.gc-has-planet-landscape .gc-sidebar {
  background: rgba(2, 8, 18, 0.97);
  border-color: rgba(70, 229, 255, 0.24);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 14px 36px rgba(0, 0, 0, 0.48);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-nav-link {
  background: rgba(2, 8, 16, 0.42);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-nav-link:hover {
  background: rgba(70, 229, 255, 0.11);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-nav-link.active {
  background: rgba(70, 229, 255, 0.14);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-panel,
body.gc-body-ingame.gc-has-planet-landscape .section-header {
  background: var(--gc-panel-bg);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    0 10px 30px rgba(0, 0, 0, 0.38);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-panel::before {
  opacity: 0.1;
}

body.gc-body-ingame.gc-has-planet-landscape .overview-res-dash-card{
  background: var(--gc-panel-bg);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 14px 36px rgba(0, 0, 0, 0.48);
}
body.gc-body-ingame.gc-has-planet-landscape .overview-res-dash-body{
  background: var(--gc-panel-bg-2);
}
body.gc-body-ingame.gc-has-planet-landscape .overview-activity-row{
  background: var(--gc-panel-bg-2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

body.gc-body-ingame.gc-has-planet-landscape .overview-res-card,
body.gc-body-ingame.gc-has-planet-landscape .overview-hint,
body.gc-body-ingame.gc-has-planet-landscape .trader-hub-page .gc-exchange-dir-btn,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-stat-card,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-trait-card,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-identity-teaser,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-event-item,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-history-item,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-policy-item,
body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-research-job {
  background: var(--gc-panel-bg-2);
}

body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-trait-positive {
  background: rgba(4, 18, 10, 0.94);
}

body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-trait-negative {
  background: rgba(22, 8, 6, 0.94);
}

body.gc-body-ingame.gc-has-planet-landscape .planet-evolution-page .pe-trait-rare {
  background: rgba(12, 8, 22, 0.94);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-header-cmd {
  background:
    radial-gradient(900px 70px at 30% 0%, rgba(120, 255, 220, 0.07), transparent 60%),
    linear-gradient(180deg, var(--gc-hdr-bg-1), var(--gc-hdr-bg-2));
}

body.gc-body-ingame.gc-has-planet-landscape .gc-header-cmd .gc-header-inner {
  gap: 7px;
  padding: 9px 16px;
  min-height: var(--gc-header-h);
}

body.gc-body-ingame.gc-has-planet-landscape .gc-hud-panel {
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.94), rgba(4, 8, 18, 0.88));
}

body.gc-body-ingame.gc-has-planet-landscape .gc-header-cmd .resource-bar.resource-bar-cmd {
  gap: 6px;
}

/* Sticky resource wrapper — enhanced on mobile in §25 */
.gc-resource-sticky{
  width: 100%;
  min-width: 0;
}

/* Background is ALWAYS behind content; no negative z-index needed */
.gc-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: var(--gc-bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.88;
}

/* Subtle static nebula layer (no animation — GC-547 GPU) */
.gc-bg::after{
  content:"";
  position:absolute;
  inset: -20%;
  background:
    radial-gradient(800px 380px at 20% 20%, rgba(70,229,255,0.05), transparent 60%),
    radial-gradient(650px 420px at 80% 30%, rgba(127,255,217,0.045), transparent 60%),
    radial-gradient(720px 520px at 60% 85%, rgba(255,196,0,0.04), transparent 65%);
  opacity: 0.75;
}

/* GC-547B — Landing/Login/Register: flat compositor, no shell GPU cost */
body.gc-body-simple {
  background: #060b16;
}

body.gc-body-simple .gc-bg,
body.gc-body-simple .gc-bg-simple {
  display: none;
}

body.gc-body-simple .gc-bg::after {
  content: none;
  display: none;
}

body.gc-body-simple .gc-panel::before,
body.gc-body-simple .gc-panel::after {
  display: none;
}

body.gc-body-simple .gc-panel {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

body.gc-body-simple .gc-header,
body.gc-body-simple .gc-header-cmd {
  background: linear-gradient(180deg, var(--gc-hdr-bg-1), var(--gc-hdr-bg-2));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body.gc-body-simple .gc-header::after {
  display: none;
}

body.gc-body-simple .landing-hero-left {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

body.gc-body-simple .landing-title,
body.gc-body-simple .auth-title {
  text-shadow: none;
}

body.gc-body-simple .auth-error {
  box-shadow: inset 0 0 0 1px rgba(255, 75, 106, 0.16);
}

/* Everything above bg */
.gc-header,
.gc-layout { position: relative; z-index: 1; }

/* =========================
   3) Accessibility Helpers
   ========================= */
.gc-skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 12px;
  background: rgba(5, 10, 22, 0.95);
  border: 1px solid rgba(70, 229, 255, 0.6);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-text);
  z-index: 9999;
}
.gc-skip-link:focus { left: 10px; }

/* =========================
   4) Header / Layout / Sidebar
   ========================= */

/* -------------------------
   HEADER — Premium Holo + Vertical Strip
   ------------------------- */
.gc-header{
  position: sticky;
  top: 0;
  z-index: 50;

  background:
    radial-gradient(900px 70px at 30% 0%, rgba(120,255,220,0.10), transparent 60%),
    linear-gradient(180deg, var(--gc-hdr-bg-1), var(--gc-hdr-bg-2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--gc-hdr-border-2);
  box-shadow:
    0 14px 42px rgba(0,0,0,0.52),
    0 0 0 1px rgba(0,0,0,0.22) inset;
}

/* neon underline */
.gc-header::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(120,255,220,0.00) 12%,
    rgba(120,255,220,0.42) 34%,
    rgba(120,255,220,0.14) 66%,
    rgba(120,255,220,0.00) 88%,
    transparent 100%);
  filter: blur(0.2px);
  pointer-events:none;
}

/* Inner container */
.gc-header-inner{
  max-width: 1320px;
  margin: 0 auto;
  min-height: 0;
  height: auto;
  padding: 12px 18px;
}

/* base.html uses gc-header-grid on the inner */
.gc-header-grid{
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.gc-hslot { min-width: 0; }
.gc-hslot-res { display:flex; justify-content:center; min-width: 0; }
.gc-hslot-hud{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.gc-hud-cluster{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.gc-hud-user{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Brand */
.gc-logo{
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 8px 12px;
  border-radius: var(--gc-radius-sm);

  background: linear-gradient(180deg, rgba(10,18,34,0.72), rgba(8,14,26,0.52));
  border: 1px solid var(--gc-hdr-border);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.46),
    0 0 26px var(--gc-hdr-glow);

  position: relative;
  overflow: hidden;
}

/* glowing vertical holo strip (your request) */
.gc-logo::before{
  content:"";
  width: 3px;
  height: 20px;
  border-radius: var(--gc-radius-sm);
  background: linear-gradient(180deg,
    rgba(120,255,220,0.14),
    rgba(120,255,220,0.92),
    rgba(120,255,220,0.10));
  box-shadow: 0 0 18px rgba(120,255,220,0.55);
}

/* subtle top sheen */
.gc-logo::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,0.05) 35%,
    transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  transform: translateX(-30%);
}
.gc-logo:hover{
  border-color: rgba(70, 229, 255, 0.48);
  box-shadow: var(--gc-border-glow), 0 18px 44px rgba(0,0,0,0.46);
}
.gc-logo:hover::after { transform: translateX(18%); transition: transform .35s ease; }

.gc-logo-icon{ filter: drop-shadow(0 0 12px rgba(120,255,220,0.35)); }

.gc-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: clamp(0.82rem, 0.78rem + 0.35vw, 0.96rem);
  color: var(--gc-primary-2);
  text-shadow: 0 0 16px rgba(120,255,220,0.22);
}

/* Resource bar (center) — HUD command strip */
.resource-bar{
  display:flex;
  align-items:stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg);
  border: 1px solid var(--gc-border-bright);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.45);
  max-width: 640px;
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.resource-bar::before{
  content:"";
  position:absolute; inset:0;
  background: var(--gc-scanline);
  pointer-events:none;
  opacity:0.55;
}

.res-block{
  display:flex;
  align-items:center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--gc-radius-sm);
  background: transparent;
  border: none;
  border-right: 1px solid var(--gc-border);
  box-shadow: none;
}
.res-block:last-child{ border-right: none; }

.res-icon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(120,255,220,0.22));
}
.hud-res-fuel-cells .res-icon{
  filter: drop-shadow(0 0 10px rgba(255,196,0,0.24));
}

.res-value, .res-cap, #res-energy{
  font-family: var(--gc-mono);
  font-size: 0.80rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.res-sep{ opacity: 0.35; }

.res-block-energy.energy-warning{
  border-color: rgba(255, 120, 120, 0.32) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 0 20px rgba(255, 120, 120, 0.20);
}

/* HUD status blocks (Score/Online) */
.gc-header-pill{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
  border: 1px solid var(--gc-border);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  font-size: 0.78rem;
  font-family: var(--gc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
  white-space: nowrap;
  min-width: 0;
}

.gc-header-pill-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120,255,220,0.95);
  box-shadow: 0 0 16px rgba(120,255,220,0.55);
}

.gc-header-pill-label{ color: rgba(215,246,255,0.72); }
.gc-header-pill-value{ color: rgba(215,246,255,0.92); }

.gc-user-info{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
  border: 1px solid var(--gc-border);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  white-space: nowrap;
  min-width: 0;
}

.gc-user-name { font-size: 0.86rem; color: var(--gc-text-soft); }

.gc-admin-badge{
  padding: 2px 7px;
  border-radius: var(--gc-radius-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1200;
  background: var(--gc-neon-gold);
  border: 1px solid rgba(255, 176, 32, 0.8);
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.25);
  font-size: 0.68rem;
  white-space: nowrap;
}

/* -------------------------
   Main layout wrapper
   ------------------------- */
.gc-layout{
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--gc-page-pad-y) 18px 60px 18px;

  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
}

/* Simple layout */
.gc-body-simple .gc-layout{
  grid-template-columns: 1fr;
  max-width: 1100px;
}

.gc-body-simple .gc-header-row-top{
  justify-content: flex-start;
}

/* Sidebar */
.gc-sidebar{
  position: sticky;
  top: calc(var(--gc-header-h) + 8px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg);
  border: 1px solid var(--gc-border-bright);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.4);
  max-height: calc(100vh - var(--gc-header-h) - var(--gc-page-pad-y) - 20px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gc-nav-icon{
  display: inline-block;
  margin-right: 6px;
  opacity: 0.85;
}

.gc-nav-link{
  display: block;
  padding: 11px 14px;
  border-radius: var(--gc-radius-sm);
  border: none;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--gc-border);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-text-soft);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.gc-nav-link:hover{
  transform: none;
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.06);
  box-shadow: inset 0 0 12px rgba(70, 229, 255, 0.04);
  color: var(--gc-text);
}
.gc-nav-link.active{
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(70, 229, 255, 0.12);
  color: var(--gc-neon-cyan);
}

/* Sidebar submenu groups (Gebäude, Handelsposten, Militärproduktion) */
.gc-nav-buildings-group,
.gc-nav-trading-group,
.gc-nav-military-group,
.gc-nav-submenu-group{
  display: flex;
  flex-direction: column;
}

button.gc-nav-link.gc-nav-submenu-toggle{
  width: 100%;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--gc-border);
  border-left: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--gc-text-soft);
}

button.gc-nav-link.gc-nav-submenu-toggle:hover{
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.06);
  box-shadow: inset 0 0 12px rgba(70, 229, 255, 0.04);
  color: var(--gc-text);
}

button.gc-nav-link.gc-nav-submenu-toggle.active,
button.gc-nav-link.gc-nav-submenu-toggle.active:hover{
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(70, 229, 255, 0.12);
  color: var(--gc-neon-cyan);
}

body.gc-body-ingame.gc-has-planet-landscape button.gc-nav-link.gc-nav-submenu-toggle.active,
body.gc-body-ingame.gc-has-planet-landscape button.gc-nav-link.gc-nav-submenu-toggle.active:hover{
  background: rgba(70, 229, 255, 0.14);
}

.gc-nav-sub--buildings[hidden],
.gc-nav-sub--buildings.gc-nav-sub--collapsed,
.gc-nav-sub--trading[hidden],
.gc-nav-sub--trading.gc-nav-sub--collapsed,
.gc-nav-sub--military[hidden],
.gc-nav-sub--military.gc-nav-sub--collapsed{
  display: none !important;
}

.gc-nav-sub--buildings .gc-nav-sub-link:disabled{
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}

.gc-nav-sub--buildings,
.gc-nav-sub--trading,
.gc-nav-sub--military{
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 4px 10px;
  border-left: 2px solid rgba(70, 229, 255, 0.14);
  margin: 0 0 2px 12px;
}

.gc-nav-sub--trading .gc-nav-sub-link,
.gc-nav-sub--military .gc-nav-sub-link{
  text-decoration: none;
}

.gc-nav-sub-link--wip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gc-nav-sub-link--wip .gc-nav-wip-badge{
  font-size: 0.58rem;
  padding: 1px 5px;
}

.gc-nav-sub-link{
  display: block;
  width: 100%;
  padding: 7px 10px 7px 12px;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gc-text-dim);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.gc-nav-sub-link:hover{
  color: var(--gc-text-soft);
  border-left-color: rgba(70, 229, 255, 0.35);
  background: rgba(70, 229, 255, 0.04);
}

.gc-nav-sub-link.active{
  color: var(--gc-neon-cyan);
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.07);
}
.gc-nav-admin { border-left-color: rgba(255, 176, 32, 0.35); }
.gc-nav-admin.active{
  border-color: rgba(255, 196, 0, 0.80);
  box-shadow: 0 0 0 1px rgba(255,196,0,0.25), 0 0 28px rgba(255,196,0,0.14);
}

/* Main */
.gc-main { min-width: 0; }

/* Tablet: single column main, sidebar becomes horizontal strip (desktop nav still visible) */
@media (max-width: 980px){
  .gc-layout { grid-template-columns: 1fr; }
  .gc-sidebar-desktop{
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .gc-sidebar-desktop .gc-nav-link { flex: 1 1 140px; text-align: center; }
}

/* =========================
   5) Page + Section headers
   ========================= */
.gc-page { width: 100%; }

.section-header{
  padding: 12px 14px 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg);
  border: 1px solid rgba(120, 190, 255, 0.16);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.section-title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: var(--gc-font-section);
  color: var(--gc-primary-2);
  text-shadow: 0 0 18px rgba(127,255,217,0.18);
}

.section-hint, .hint{
  margin: 6px 0 0 0;
  color: var(--gc-text-soft);
  font-size: var(--gc-font-small);
}

/* =========================
   6) Panels — Tactical Command Panels
   ========================= */
.gc-panel{
  position: relative;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg);
  border: 1px solid var(--gc-border-bright);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.45);
  padding: var(--gc-panel-pad);
  overflow: hidden;
}
.gc-panel::before{
  content:"";
  position:absolute; inset:0;
  background: var(--gc-scanline);
  pointer-events:none;
  opacity:0.35;
}
.gc-panel::after{
  content:"";
  position:absolute;
  top:0; left:0;
  width:8px; height:8px;
  border-top:1px solid var(--gc-neon-cyan);
  border-left:1px solid var(--gc-neon-cyan);
  pointer-events:none;
}

.gc-panel-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--gc-border);
}

.gc-panel-head-left { display: flex; flex-direction: column; gap: 4px; }
.gc-panel-head-right { display: flex; align-items: center; gap: 10px; }

.gc-panel-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--gc-font-panel);
  color: var(--gc-neon-cyan);
}
.gc-panel-subtitle { font-size: var(--gc-font-small); color: var(--gc-text-soft); }

.gc-panel-tag{
  padding: 2px 8px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-border-bright);
  background: rgba(0,0,0,0.35);
  color: var(--gc-text-soft);
  font-size: 0.72rem;
  font-family: var(--gc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gc-panel-grid{
  display: grid;
  gap: 2px;
  border: 1px solid var(--gc-border);
}

.gc-panel-accent{
  border-left: 2px solid var(--gc-neon-cyan);
}

/* =========================
   7) Buttons — Tactical / Armed
   ========================= */
.gc-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-border-bright);
  background: var(--gc-panel-bg-2);
  color: var(--gc-text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.gc-btn::before,
.gc-btn::after{
  content:"";
  position:absolute;
  width:6px; height:6px;
  pointer-events:none;
  opacity:0;
  transition: opacity 0.12s ease;
}
.gc-btn::before{
  top:-1px; left:-1px;
  border-top:1px solid var(--gc-neon-cyan);
  border-left:1px solid var(--gc-neon-cyan);
}
.gc-btn::after{
  bottom:-1px; right:-1px;
  border-bottom:1px solid var(--gc-neon-cyan);
  border-right:1px solid var(--gc-neon-cyan);
}

.gc-btn:hover{
  transform: none;
  border-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(70, 229, 255, 0.08), 0 0 8px rgba(70, 229, 255, 0.12);
  filter: none;
}
.gc-btn:hover::before,
.gc-btn:hover::after{ opacity:1; }

.gc-btn:active{
  transform: none;
  background: rgba(70, 229, 255, 0.14);
  box-shadow: inset 0 0 16px rgba(70, 229, 255, 0.12);
}

.gc-btn[disabled],
.gc-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.gc-btn-primary{
  border-color: var(--gc-neon-cyan);
  color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(70, 229, 255, 0.15);
}
.gc-btn-primary:hover{
  background: rgba(70, 229, 255, 0.16);
  color: #fff;
}

.gc-btn-danger{
  border-color: var(--gc-danger);
  color: #ff8a9e;
  background: rgba(255, 61, 92, 0.08);
}
.gc-btn-danger:hover{
  background: rgba(255, 61, 92, 0.16);
  box-shadow: inset 0 0 12px rgba(255, 61, 92, 0.12), 0 0 8px rgba(255, 61, 92, 0.15);
}
.gc-btn-danger::before{ border-color: var(--gc-danger); }
.gc-btn-danger::after{ border-color: var(--gc-danger); }

.gc-btn-admin{
  border-color: var(--gc-neon-gold);
  color: var(--gc-neon-gold);
  background: rgba(255, 176, 32, 0.08);
}

.gc-btn-outline{
  background: transparent;
  border-color: var(--gc-border-bright);
  color: var(--gc-text-soft);
}
.gc-btn-outline:hover{
  color: var(--gc-neon-cyan);
  border-color: var(--gc-neon-cyan);
}

.gc-btn-ghost{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.gc-btn-ghost:hover{ background: rgba(70, 229, 255, 0.06); border-color: var(--gc-border); }
.gc-btn-ghost:disabled{ background: transparent; }

.gc-btn-sm,
.gc-btn-small { padding: 6px 10px; font-size: 0.76rem; }
.gc-btn-lg { padding: 10px 16px; font-size: 0.88rem; }
.gc-btn-xs { padding: 4px 8px; font-size: 0.72rem; }

/* Logout button — segmented, not pill */
.logout-btn{
  white-space: nowrap;
  border-radius: var(--gc-radius-sm);
  padding: 7px 11px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

/* =========================
   8) Flash Messages + MOTD
   ========================= */
.gc-flash-container{
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.gc-flash{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(7, 14, 32, 0.78);
  border: 1px solid rgba(120, 190, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0,0,0,0.36);
}

.gc-flash-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gc-primary);
  box-shadow: 0 0 16px rgba(70,229,255,0.34);
}

.gc-flash-success{ border-color: rgba(35,242,166,0.45); }
.gc-flash-success .gc-flash-dot{ background: var(--gc-success); box-shadow: 0 0 16px rgba(35,242,166,0.38); }

.gc-flash-error{ border-color: rgba(255,75,106,0.55); }
.gc-flash-error .gc-flash-dot{ background: var(--gc-danger); box-shadow: 0 0 16px rgba(255,75,106,0.38); }

.gc-flash-warning{ border-color: rgba(255,196,0,0.55); }
.gc-flash-warning .gc-flash-dot{ background: var(--gc-warning); box-shadow: 0 0 16px rgba(255,196,0,0.38); }

.gc-flash-text{ color: var(--gc-text-soft); font-size: 0.88rem; }

.motd-banner{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(7, 14, 32, 0.82);
  border: 1px solid rgba(255, 196, 0, 0.40);
  box-shadow: 0 0 0 1px rgba(255,196,0,0.15), 0 0 30px rgba(255,196,0,0.12), 0 18px 40px rgba(0,0,0,0.50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.motd-banner-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.motd-banner-pill{
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  background: rgba(40, 28, 0, 0.74);
  border: 1px solid rgba(255, 196, 0, 0.80);
  color: #ffe58a;
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  flex: 0 0 auto;
}
.motd-banner-text{
  color: var(--gc-text-soft);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.motd-banner-close{ padding: 6px 10px; }

/* =========================
   9) Grids
   ========================= */
.gc-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gc-section-gap);
}
@media (max-width: 980px){ .gc-grid-2{ grid-template-columns: 1fr; } }

/* =========================
   10) Tables
   ========================= */
.table-std{
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 10, 22, 0.38);
  border: 1px solid rgba(120, 190, 255, 0.16);
  border-radius: var(--gc-radius-sm);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,0.46);
}

.table-std th,
.table-std td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
  vertical-align: top;
}

/* v1.1 FIX (hard): NEVER break per-letter in tables */
.table-std td,
.table-std th{
  min-width: 0;
  overflow-wrap: break-word;   /* not 'anywhere' */
  word-break: normal;          /* prevent break-all style behavior */
  hyphens: auto;
}

/* Keep key columns readable (no squashed vertical headers) */
.table-std th{
  white-space: nowrap;
}

/* Action / right-aligned columns should not wrap */
.table-std .col-actions,
.table-std .tech-status-cell,
.table-std .col-bact{
  white-space: nowrap;
}

/* Research tech name + desc should wrap normally (at words) */
.tech-table .tech-name,
.tech-table .tech-desc{
  overflow-wrap: break-word;
  word-break: normal;
}

.table-std thead th{
  background: rgba(7, 14, 32, 0.78);
  color: var(--gc-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-std tbody tr:hover{ background: rgba(7, 14, 32, 0.44); }

.table-fixed{ table-layout: fixed; }
.table-std td{ color: var(--gc-text-soft); font-size: 0.88rem; }

.table-std .col-actions,
.table-std .tech-status-cell,
.table-std .col-bact{ text-align: right; }

.table-std .col-score, .table-std .col-rank{ text-align: right; }

/* v1.1: Costs column width guard (works if template uses those classes) */
.table-std .col-cost,
.table-std .col-costs,
.table-std td.cost-cell,
.table-std th.cost-cell{
  width: 270px;
}

/* =========================
   11) Typography helpers
   ========================= */
.gc-body-text{ color: var(--gc-text-soft); font-size: 0.92rem; }
.gc-list{ margin: 10px 0 0 18px; color: var(--gc-text-soft); }
.gc-list li{ margin: 6px 0; }
hr{ border: none; border-top: 1px solid rgba(120, 190, 255, 0.14); }

/* =========================
   12) Admin Panel
   ========================= */
.admin-page{ padding-top: 4px; }
.admin-wrapper{ max-width: 950px; margin: 0 auto; }

.admin-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-title{ font-size: 1.25rem; color: var(--gc-primary-2); }
.admin-hint{ font-size: 0.86rem; color: var(--gc-text-soft); margin-top: 3px; max-width: 62ch; }

.admin-badge{
  padding: 5px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 196, 0, 0.85);
  color: #ffe58a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background: rgba(40, 28, 0, 0.76);
  box-shadow: 0 0 26px rgba(255, 196, 0, 0.12);
}

.admin-section-title{
  margin: 14px 0 8px 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--gc-primary);
  text-shadow: 0 0 18px rgba(70,229,255,0.16);
  font-size: 0.98rem;
}

.admin-metrics-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-metric-card{
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-strong);
  border: 1px solid var(--gc-panel-border-strong);
  box-shadow: 0 0 26px rgba(70,229,255,0.06), 0 18px 44px rgba(0,0,0,0.50);
}

.admin-metric-label{ font-size: 0.78rem; color: var(--gc-text-dim); margin-bottom: 6px; }
.admin-metric-value{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  color: var(--gc-primary-2);
  font-weight: 800;
  margin-bottom: 6px;
}
.admin-metric-sub{ font-size: 0.78rem; color: var(--gc-text-soft); }

.admin-section{
  padding: 12px 12px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-strong);
  border: 1px solid var(--gc-panel-border);
  margin-bottom: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.46);
}

.admin-section-danger{
  border-color: rgba(255, 75, 106, 0.62);
  background: rgba(28, 5, 15, 0.90);
  box-shadow: 0 0 0 1px rgba(255,75,106,0.18), 0 0 30px rgba(255,75,106,0.10), 0 18px 44px rgba(0,0,0,0.52);
}

.admin-form-grid-2,
.admin-form-grid-3{ display: grid; gap: 10px 12px; }
.admin-form-grid-2{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.admin-form-grid-3{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.admin-row{ margin-top: 10px; }
.admin-row-full{ margin-top: 10px; }

.admin-field{ display: flex; flex-direction: column; gap: 6px; }
.admin-field-wide{ width: 100%; }

.admin-label{ font-size: 0.80rem; color: var(--gc-text-soft); }

.admin-small-hint{
  display: block;
  margin-top: 6px;
  color: var(--gc-text-dim);
  font-size: 0.80rem;
}

.admin-input,
.admin-textarea{
  padding: 9px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.82);
  font-size: 0.88rem;
  color: var(--gc-text);
}

.admin-input:focus,
.admin-textarea:focus{
  outline: none;
  border-color: rgba(70, 229, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.20);
}

.admin-textarea{
  min-height: 92px;
  resize: vertical;
}

.admin-checkbox-row{
  font-size: 0.88rem;
  color: var(--gc-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-checkbox-row input[type="checkbox"]{
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--gc-primary);
}

.admin-btn-row{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.admin-section-footer{ padding-top: 8px; }

.ban-table-wrapper{ overflow-x: auto; }
.ban-table{ font-size: 0.84rem; }
.ban-table th, .ban-table td{ white-space: nowrap; }
.ban-actions-form{ margin: 0; }
.ban-permanent{ color: #ffd2dd; font-weight: 800; }

/* =========================
   13) Landing Page
   ========================= */
.landing-wrapper{ padding: 14px 0 10px 0; }

.landing-hero{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 980px){ .landing-hero{ grid-template-columns: 1fr; } }

.landing-hero-left{
  padding: 16px 14px;
  border-radius: var(--gc-radius-sm);
  background: rgba(7, 14, 32, 0.55);
  border: 1px solid rgba(120, 190, 255, 0.16);
  box-shadow: 0 0 26px rgba(70,229,255,0.06), 0 22px 60px rgba(0,0,0,0.55);
}

.landing-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 2.2rem;
  color: var(--gc-primary-2);
  text-shadow: 0 0 26px rgba(127,255,217,0.22);
  margin-bottom: 6px;
}

.landing-subtitle{ font-size: 1.05rem; color: var(--gc-text-soft); margin-bottom: 12px; }
.landing-pitch p{ margin: 8px 0; color: var(--gc-text-soft); }

.landing-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px 0;
}

.landing-badge{
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.20);
  background: rgba(5, 10, 22, 0.60);
  color: var(--gc-text-soft);
  font-size: 0.84rem;
}

.landing-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.landing-footnote{ margin-top: 12px; color: var(--gc-text-dim); font-size: 0.84rem; }

.landing-card-right .landing-card-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}
.landing-card-right .landing-card-row:last-child{ border-bottom: 0; }

.landing-label{ color: var(--gc-text-dim); font-size: 0.84rem; }
.landing-value{ color: var(--gc-text-soft); font-size: 0.88rem; text-align: right; }

.landing-status-pill{
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(35,242,166,0.45);
  background: rgba(0, 22, 16, 0.55);
  color: rgba(215,246,255,0.90);
  font-size: 0.78rem;
}

.landing-sections{ margin-top: 12px; display: grid; gap: 12px; }
.feature-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps-list{ margin: 0; padding-left: 18px; color: var(--gc-text-soft); }

.landing-roadmap{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.roadmap-pill{
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(5, 10, 22, 0.60);
  color: var(--gc-text-soft);
  font-size: 0.82rem;
}

/* =========================
   14) Auth (Login/Register)
   ========================= */
.auth-page{ padding: 18px 0; }
.auth-grid{ height: 0; }

.auth-card{
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px;
}

.auth-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.35);
  background: rgba(5, 10, 22, 0.55);
  color: var(--gc-text-soft);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.auth-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-weight: 900;
  color: var(--gc-primary-2);
  font-size: 1.45rem;
  text-shadow: 0 0 18px rgba(127,255,217,0.18);
  margin-bottom: 6px;
}

.auth-subtitle{ color: var(--gc-text-soft); font-size: 0.92rem; margin-bottom: 12px; }

.auth-feature-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 12px 0;
}
.auth-feature{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.55);
  color: var(--gc-text-soft);
}

.auth-error{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255,75,106,0.62);
  background: rgba(28, 5, 15, 0.88);
  color: rgba(255, 238, 242, 0.92);
  margin-bottom: 10px;
  box-shadow: 0 0 0 1px rgba(255,75,106,0.16), 0 0 26px rgba(255,75,106,0.10);
}
.hidden{ display: none !important; }

.auth-form{ display: grid; gap: 8px; }
.auth-label{ color: var(--gc-text-soft); font-size: 0.86rem; margin-top: 6px; }

.auth-input{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.82);
  color: var(--gc-text);
  font-size: 0.92rem;
}
.auth-input:focus{
  outline: none;
  border-color: rgba(70, 229, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.18);
}

.auth-field-help{ color: var(--gc-text-dim); font-size: 0.80rem; margin-top: 2px; }

.auth-hint{
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 196, 0, 0.35);
  background: rgba(40, 28, 0, 0.35);
  color: var(--gc-text-soft);
  font-size: 0.86rem;
}

.auth-btn-primary{ margin-top: 6px; }

.auth-divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--gc-text-dim);
  font-size: 0.84rem;
}
.auth-divider span:first-child,
.auth-divider span:last-child{
  height: 1px;
  background: rgba(120, 190, 255, 0.14);
}

.auth-footer{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--gc-text-soft);
  font-size: 0.88rem;
}
.auth-footer a{ color: var(--gc-primary-2); text-decoration: none; }
.auth-footer a:hover{ text-decoration: underline; }

/* Auth result states */
.gc-auth-state{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  margin:10px 0 12px;
  border-radius:var(--gc-radius-sm);
  border:1px solid rgba(120,190,255,0.2);
  background:rgba(5,10,22,0.55);
}
.gc-auth-state-success{
  border-color:rgba(0,230,138,0.35);
  background:rgba(0,40,28,0.35);
  box-shadow:0 0 14px rgba(0,230,138,0.08);
}
.gc-auth-state-error{
  border-color:rgba(255,75,106,0.45);
  background:rgba(28,5,15,0.55);
}
.gc-auth-state-warning{
  border-color:rgba(255,154,26,0.45);
  background:rgba(40,24,0,0.35);
}
.gc-auth-state-icon{
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.gc-auth-state-title{
  display:block;
  font-size:0.86rem;
  margin-bottom:4px;
}
.gc-auth-state-message{
  margin:0;
  font-size:0.82rem;
  color:var(--gc-text-soft);
  line-height:1.4;
}
.gc-auth-result-actions{
  margin-top:8px;
}
.gc-auth-result-footer{
  margin-top:14px;
}

/* =========================
   15) Overview
   ========================= */
.overview-resources{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gc-card-gap);
  margin-bottom: 12px;
}

.overview-res-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.60);
  border: 1px solid rgba(120, 190, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.46);
}

.overview-res-icon{
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(70,229,255,0.24));
}

.overview-res-meta{ display: grid; gap: 4px; min-width: 0; }
.overview-res-label{ color: var(--gc-text-dim); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

.overview-res-main{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gc-text);
  font-weight: 800;
}
.overview-res-main .gc-val{ font-family: var(--gc-mono); font-size: 1.02rem; color: var(--gc-primary-2); }
.overview-res-main .gc-cap{ font-family: var(--gc-mono); font-size: 0.86rem; color: var(--gc-text-dim); }
.overview-res-cap{ color: var(--gc-text-soft); font-size: 0.84rem; }

.trader-hub-page .trader-hub-resources .gc-res-icon--lg{
  width: 34px;
  height: 34px;
}
.trader-hub-page .overview-res-card{
  background: rgba(10, 16, 32, 0.96);
}
.trader-hub-page .trader-hub-resources{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gc-card-gap);
  margin-bottom: 12px;
}
.trader-hub-page .trader-hub-layout{
  margin-bottom: 12px;
}
.trader-hub-daily-sep{
  opacity: 0.55;
  margin: 0 0.15rem;
}
.trader-hub-res-bar{
  height: 4px;
  margin-top: 0.2rem;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.trader-hub-res-bar-fill{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(70, 229, 255, 0.55), rgba(127, 255, 217, 0.85));
}
.trader-hub-page .gc-exchange-panel,
.trader-hub-page .gc-scrapyard-panel{
  max-width: none;
}
.gc-fuel-exchange-panel,
.gc-scrapyard-panel{
  padding: 0.85rem 1rem;
}
.gc-fuel-exchange-rates{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
}
.gc-fuel-exchange-rate-card{
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
  min-width: 4.5rem;
}
.gc-fuel-exchange-rate-card--fuel{
  border-color: rgba(255, 196, 0, 0.35);
}
.gc-fuel-exchange-icon,
.gc-fuel-exchange-rate-card .gc-res-icon{
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.gc-fuel-exchange-rate-val{
  font-weight: 700;
  color: var(--gc-primary-2);
}
.gc-fuel-exchange-rate-label{
  font-size: 0.72rem;
  color: var(--gc-text-dim);
}
.gc-fuel-exchange-plus,
.gc-fuel-exchange-equals{
  font-size: 1.1rem;
  color: var(--gc-text-soft);
  font-weight: 700;
}
.gc-fuel-exchange-form{
  display: grid;
  gap: 0.5rem;
}
.gc-fuel-exchange-preview{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.84rem;
}
.gc-scrapyard-list{
  display: grid;
  gap: 0.75rem;
}
.gc-scrapyard-row{
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
}
.gc-scrapyard-row-main{
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.gc-scrapyard-ship-icon{
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.25));
}
.gc-scrapyard-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.gc-scrapyard-qty{
  max-width: 5rem;
}
.galaxy-fleet-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.galaxy-fleet-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--gc-primary-2);
  background: rgba(0, 24, 48, 0.55);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
}
.galaxy-fleet-action:hover,
.galaxy-fleet-action:focus-visible{
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 40, 72, 0.75);
  color: #fff;
}
.galaxy-fleet-action-label{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(4, 12, 24, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  z-index: 2;
}
.galaxy-fleet-action:hover .galaxy-fleet-action-label,
.galaxy-fleet-action:focus-visible .galaxy-fleet-action-label{
  opacity: 1;
}
.galaxy-slot-card-aside .galaxy-fleet-actions{
  margin-top: 0;
  justify-content: flex-end;
}
.gc-ship-detail-icon{
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
}
.gc-ship-detail-reqs{
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}
.gc-ship-detail-req-list{
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
}
.gc-ship-detail-req-item{
  color: var(--gc-text-soft);
}
.gc-ship-detail-req-item.is-met{
  color: var(--gc-primary-2);
}
.fleet-colonize-name-row[hidden]{
  display: none !important;
}
.shipyard-ship-card{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}
.shipyard-ship-thumb{
  grid-row: 1 / span 4;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.18));
}
.shipyard-ship-list-locked .shipyard-ship-thumb{
  opacity: 0.45;
}
.gc-exchange-panel{
  margin-bottom: 12px;
  padding: 0.85rem 1rem;
}
.gc-exchange-panel .gc-panel-header{
  margin-bottom: 0.5rem;
}
.gc-exchange-direction-toggle{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.gc-exchange-dir-btn{
  flex: 1 1 8rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
  color: var(--gc-text-soft);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gc-exchange-dir-btn:hover{
  border-color: rgba(0, 212, 255, 0.45);
  color: var(--gc-text);
}
.gc-exchange-dir-btn.is-active{
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 40, 70, 0.55);
  color: var(--gc-primary-2);
  font-weight: 600;
}
.gc-exchange-formula{
  margin-bottom: 0.55rem;
}
.gc-exchange-arrow{
  font-size: 1.25rem;
  color: var(--gc-primary-2);
  font-weight: 700;
}
.gc-exchange-limit{
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}
.gc-exchange-form{
  display: grid;
  gap: 0.55rem;
}
.gc-exchange-label{
  font-size: 0.78rem;
  color: var(--gc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gc-exchange-input{
  max-width: 12rem;
}
.gc-exchange-preview strong{
  color: var(--gc-primary-2);
}
.gc-exchange-error{
  color: #ff9a7a;
}
.gc-exchange-submit{
  justify-self: start;
}

/* Trader Hub — layout & controls (panels use shared gc-panel) */
.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.trader-hub-page .gc-trader-exchange-pick{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.trader-hub-page .gc-trader-pick-label{
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--gc-text-dim);
}
.trader-hub-page .gc-trader-pick-swap{
  padding-bottom: 1.35rem;
  color: var(--gc-text-dim);
  font-size: 1.1rem;
}
.trader-hub-page .gc-trader-resource-tiles{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.trader-hub-page .gc-trader-resource-tile{
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  border: 1px solid rgba(120, 190, 255, 0.12);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.52);
  color: var(--gc-text-soft);
  font-size: 0.62rem;
  line-height: 1.15;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.trader-hub-page .gc-trader-resource-tile img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.trader-hub-page .gc-trader-resource-tile:hover{
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.62);
}
.trader-hub-page .gc-trader-resource-tile.is-active{
  border-color: rgba(70, 229, 255, 0.42);
  background: rgba(70, 229, 255, 0.08);
  color: var(--gc-neon-cyan);
}
.trader-hub-page .gc-trader-resource-tile.is-disabled,
.trader-hub-page .gc-trader-resource-tile:disabled{
  opacity: 0.38;
  cursor: not-allowed;
  border-color: rgba(120, 190, 255, 0.08);
  background: rgba(3, 8, 18, 0.35);
  color: var(--gc-text-dim);
  pointer-events: none;
}
.trader-hub-page .gc-trader-resource-tile.is-disabled:hover,
.trader-hub-page .gc-trader-resource-tile:disabled:hover{
  border-color: rgba(120, 190, 255, 0.08);
  background: rgba(3, 8, 18, 0.35);
}
.trader-hub-page .gc-trader-exchange-form{
  display: grid;
  gap: 0.75rem;
}
.trader-hub-page .gc-trader-amount-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: end;
}
.trader-hub-page .gc-trader-field-label{
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gc-text-dim);
}
.trader-hub-page .gc-trader-amount-arrow{
  padding-bottom: 0.55rem;
  color: var(--gc-text-dim);
  font-size: 1.15rem;
}
.trader-hub-page .gc-trader-input,
.trader-hub-page .gc-trader-output{
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.trader-hub-page .gc-trader-output{
  display: flex;
  align-items: center;
  color: var(--gc-neon-cyan);
  font-family: var(--gc-mono);
  background: rgba(3, 8, 18, 0.72);
}
.trader-hub-page input[type="number"].gc-trader-input,
.trader-hub-page .fleet-ship-input.gc-trader-input{
  font-family: var(--gc-mono);
  appearance: textfield;
  -moz-appearance: textfield;
}
.trader-hub-page input[type="number"]::-webkit-outer-spin-button,
.trader-hub-page input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.trader-hub-page .gc-trader-input:hover,
.trader-hub-page .gc-trader-output:hover{
  border-color: rgba(70, 229, 255, 0.42);
}
.trader-hub-page .gc-trader-input:focus{
  outline: none;
  border-color: rgba(70, 229, 255, 0.88);
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.14), inset 0 0 12px rgba(70, 229, 255, 0.06);
}
.trader-hub-page .gc-trader-info-bar{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(7, 14, 32, 0.52);
}
.trader-hub-page .gc-trader-info-cell{
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.trader-hub-page .gc-trader-info-label{
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--gc-text-dim);
}
.trader-hub-page .gc-trader-info-cell strong{
  color: var(--gc-text);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trader-hub-page .gc-trader-info-cell--accent strong{
  color: var(--gc-neon-cyan);
}
.trader-hub-page .gc-trader-submit{
  width: 100%;
  justify-content: center;
}
.trader-hub-page .gc-trader-submit-arrow{
  margin-left: 0.35rem;
  opacity: 0.85;
}
.trader-hub-page .gc-trader-error{
  margin: 0;
  color: #ff9a7a;
}
.trader-hub-page .gc-trader-scrap-list{
  display: grid;
  gap: 8px;
}
.trader-hub-page .gc-trader-scrap-row{
  margin: 0;
}
.trader-hub-page .gc-trader-scrap-main{
  align-items: flex-start;
  gap: 10px;
}
.trader-hub-page .gc-trader-scrap-icon-wrap{
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(120, 190, 255, 0.22);
  border-radius: var(--gc-radius-sm);
  background: rgba(3, 8, 18, 0.72);
}
.trader-hub-page .gc-scrapyard-ship-icon{
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.trader-hub-page .gc-trader-scrap-body{
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.trader-hub-page .gc-trader-scrap-body .gc-scrapyard-ship-name{
  font-size: 0.82rem;
}
.trader-hub-page .gc-trader-scrap-refund{
  font-size: 0.72rem;
  line-height: 1.3;
}
.trader-hub-page .gc-trader-scrap-actions{
  flex-wrap: wrap;
}
.trader-hub-page .gc-trader-scrap-btn{
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media (max-width: 820px){
  .trader-hub-page .trader-hub-resources{
    grid-template-columns: 1fr;
  }
  .trader-hub-page .gc-trader-exchange-pick,
  .trader-hub-page .gc-trader-amount-row,
  .trader-hub-page .gc-trader-info-bar{
    grid-template-columns: 1fr;
  }
  .trader-hub-page .gc-trader-pick-swap,
  .trader-hub-page .gc-trader-amount-arrow{
    display: none;
  }
}

.overview-score-card{ border-color: rgba(255, 196, 0, 0.25); }
.overview-score-main-row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.overview-score-value{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffe58a;
  text-shadow: 0 0 20px rgba(255,196,0,0.14);
}
.overview-score-rank-pill{
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  background: rgba(40, 28, 0, 0.55);
  border: 1px solid rgba(255, 196, 0, 0.55);
  color: rgba(255, 229, 138, 0.92);
  font-size: 0.82rem;
}
.overview-score-sub{ color: var(--gc-text-dim); font-size: 0.82rem; }

.overview-hint{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(7, 14, 32, 0.52);
  color: var(--gc-text-soft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.44);
}
.overview-energy-ok{ border-color: rgba(35,242,166,0.40); background: rgba(8, 28, 22, 0.55); }
.overview-energy-low{ border-color: rgba(255,196,0,0.55); background: rgba(40, 28, 4, 0.45); }
.overview-energy-critical{ border-color: rgba(255,75,106,0.65); background: rgba(48, 8, 14, 0.55); }
.overview-energy-zero{ border-color: rgba(255,75,106,0.65); background: rgba(48, 8, 14, 0.55); }
.fleet-ship-row-empty{ opacity: 0.45; }

/* OGame-style overview (colony status) */
.overview-hero{
  margin-bottom: var(--gc-card-gap);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(70,229,255,0.10), transparent 55%),
    rgba(5, 10, 22, 0.72);
}
.overview-hero-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.overview-hero-name{
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--gc-primary-2);
  text-shadow: 0 0 24px rgba(70,229,255,0.18);
}
.overview-hero-name-wrap{
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.overview-hero-name-btn{
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  font: inherit;
}
.overview-hero-name-btn:hover .overview-hero-name,
.overview-hero-name-btn[aria-expanded="true"] .overview-hero-name{
  color: var(--gc-neon-cyan);
  text-shadow: 0 0 28px rgba(70,229,255,0.28);
  text-decoration: underline;
  text-decoration-color: rgba(70,229,255,0.35);
  text-underline-offset: 0.18em;
}
.overview-hero-name-btn:focus-visible{
  outline: 2px solid rgba(70,229,255,0.45);
  outline-offset: 4px;
  border-radius: 2px;
}
.overview-planet-delete-block{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 190, 255, 0.12);
  display: grid;
  gap: 8px;
}
.overview-planet-delete-hint{ margin: 0; }
.overview-planet-form-hint.is-error{ color: var(--gc-danger); }
.overview-planet-form-hint.is-success{ color: var(--gc-neon-green, #23f2a6); }
.gc-planet-manage-modal .gc-player-card-dialog{
  width: min(440px, 100%);
}
.gc-planet-manage-modal .gc-player-card-fields .gc-input{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.gc-chip-angular,
.overview-hero-class{
  position: relative;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 0;
  border: 1px solid rgba(127,255,217,0.28);
  background: rgba(70,229,255,0.08);
  color: var(--gc-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}
.gc-chip-angular::before,
.gc-chip-angular::after,
.overview-hero-class::before,
.overview-hero-class::after{
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
}
.gc-chip-angular::before,
.overview-hero-class::before{
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--gc-neon-cyan);
  border-left: 1px solid var(--gc-neon-cyan);
}
.gc-chip-angular::after,
.overview-hero-class::after{
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--gc-neon-cyan);
  border-right: 1px solid var(--gc-neon-cyan);
}
.overview-hero-coords{
  margin: 6px 0 0;
  color: var(--gc-text-dim);
  font-size: 0.88rem;
}
.overview-meta-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.overview-meta-item{
  display: grid;
  gap: 4px;
  min-width: 0;
}
.overview-meta-item dt{
  margin: 0;
  color: var(--gc-text-dim);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overview-meta-item dd{
  margin: 0;
  color: var(--gc-text);
  font-weight: 600;
}
.overview-main-grid{
  align-items: stretch;
}
.overview-activities-panel--primary{
  margin-bottom: var(--gc-card-gap);
}
.overview-activities-panel--primary .overview-activities{
  grid-template-columns: 1fr;
}
.overview-activities-panel--secondary{
  margin-top: 0;
  border-color: rgba(70, 229, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.32);
}
.overview-activities-panel--secondary .gc-panel-title{
  font-size: 0.84rem;
  color: var(--gc-text-dim);
}
.overview-activities-panel--secondary .gc-panel-subtitle{
  font-size: 0.72rem;
}
.overview-res-dashboard{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--gc-card-gap) + 6px);
  margin-bottom: calc(var(--gc-card-gap) + 4px);
}
.overview-res-dash-card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 228px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.36);
  background: linear-gradient(180deg, rgb(10, 18, 34) 0%, rgb(4, 8, 18) 100%);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    0 16px 42px rgba(0, 0, 0, 0.58);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.overview-res-dash-card:hover{
  transform: translateY(-3px);
  border-color: rgba(70, 229, 255, 0.52);
  box-shadow:
    0 0 28px rgba(70, 229, 255, 0.12),
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    0 22px 52px rgba(0, 0, 0, 0.62);
}
.overview-res-dash-hero{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 104px;
  max-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(70, 229, 255, 0.2);
  background: rgb(4, 8, 18);
}
.overview-res-dash-card--metal .overview-res-dash-hero{
  background:
    radial-gradient(circle at 50% 38%, rgba(190, 210, 230, 0.14), transparent 58%),
    linear-gradient(180deg, rgb(10, 16, 30) 0%, rgb(4, 8, 18) 100%);
}
.overview-res-dash-card--crystal .overview-res-dash-hero{
  background:
    radial-gradient(circle at 50% 38%, rgba(100, 170, 255, 0.16), transparent 58%),
    linear-gradient(180deg, rgb(8, 14, 32) 0%, rgb(4, 8, 18) 100%);
}
.overview-res-dash-card--energy .overview-res-dash-hero{
  background:
    radial-gradient(circle at 50% 38%, rgba(70, 229, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgb(6, 16, 28) 0%, rgb(4, 8, 18) 100%);
}
.overview-res-dash-card--fuel .overview-res-dash-hero{
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 196, 0, 0.14), transparent 58%),
    linear-gradient(180deg, rgb(14, 12, 8) 0%, rgb(4, 8, 18) 100%);
}
.overview-res-dash-hero .gc-res-icon{
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(70, 229, 255, 0.42));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.overview-res-dash-card:hover .overview-res-dash-hero .gc-res-icon{
  transform: scale(1.04);
  filter: drop-shadow(0 10px 32px rgba(70, 229, 255, 0.55));
}
.overview-res-dash-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 8, 18, 0.02) 0%,
    rgba(4, 8, 18, 0.18) 52%,
    rgba(4, 8, 18, 0.88) 100%
  );
}
.overview-res-dash-hero-title{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 6px 10px 7px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 18, 0.72) 100%);
}
.overview-res-dash-title{
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 240, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
.overview-res-dash-body{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 10px;
  padding: 14px 14px 15px;
  background: linear-gradient(180deg, rgb(6, 12, 26) 0%, rgb(4, 8, 18) 100%);
}
.overview-res-dash-prod-block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.overview-res-dash-prod-hero{
  display: block;
  width: 100%;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: rgba(127, 255, 217, 0.98);
  text-shadow: 0 0 28px rgba(70, 229, 255, 0.32);
}
.overview-res-dash-prod-block--energy .overview-res-dash-prod-hero{
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}
.overview-res-dash-energy-status{
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}
.overview-res-dash-prod-block--energy .overview-res-dash-balance--pos{
  color: rgba(127, 255, 217, 0.98);
  text-shadow: 0 0 28px rgba(35, 242, 166, 0.35);
}
.overview-res-dash-prod-block--energy .overview-res-dash-balance--neg{
  color: var(--gc-danger, #ff4b6a);
  text-shadow: 0 0 24px rgba(255, 75, 106, 0.35);
}
.overview-res-dash-storage-block{
  display: grid;
  gap: 7px;
  min-width: 0;
}
.overview-res-bar-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.overview-res-dash-stock{
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gc-text-dim);
}
.overview-res-dash-stock .gc-val{
  color: var(--gc-text-soft);
  font-weight: 700;
}
.overview-res-dash-stock .gc-cap{
  color: var(--gc-text-dim);
  font-size: 0.84rem;
  font-weight: 600;
}
.overview-res-dash-stat{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.overview-res-dash-stat-label{
  flex-shrink: 0;
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.overview-res-dash-stat-value{
  text-align: right;
  min-width: 0;
}
.overview-res-dash-stat-value.overview-res-dash-hero .gc-val{
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  font-weight: 800;
  color: var(--gc-primary-2);
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(70, 229, 255, 0.22);
}
.overview-res-dash-prod{
  color: rgba(127, 255, 217, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
}
.overview-res-dash-cap .gc-val{
  color: var(--gc-text);
  font-weight: 700;
}
.overview-res-dash-cap .gc-cap{
  color: var(--gc-text-dim);
  font-size: 0.84rem;
}
.overview-res-dash-balance{
  font-weight: 800;
}
.overview-res-dash-balance--pos{ color: rgba(127, 255, 217, 0.95); }
.overview-res-dash-balance--neg{ color: var(--gc-danger, #ff4b6a); }
.overview-res-bar{
  flex: 1 1 auto;
  height: 8px;
  margin-top: 0;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.2);
  background: rgba(0, 0, 0, 0.52);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.42);
}
.overview-res-bar-pct{
  flex-shrink: 0;
  min-width: 2.5em;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gc-text-dim);
  text-align: right;
}
.overview-res-bar-fill{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(70, 229, 255, 0.55), rgba(127, 255, 217, 0.88));
  transition: width 0.35s ease;
}
.overview-res-dash-card--energy.overview-energy-ok .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(35, 242, 166, 0.55), rgba(127, 255, 217, 0.9));
}
.overview-res-dash-card--energy.overview-energy-low{
  border-color: rgba(255, 196, 0, 0.42);
}
.overview-res-dash-card--energy.overview-energy-low .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.55), rgba(255, 220, 80, 0.88));
}
.overview-res-dash-card--energy.overview-energy-critical,
.overview-res-dash-card--energy.overview-energy-zero{
  border-color: rgba(255, 75, 106, 0.48);
}
.overview-res-dash-card--energy.overview-energy-critical .overview-res-bar-fill,
.overview-res-dash-card--energy.overview-energy-zero .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(255, 75, 106, 0.55), rgba(255, 120, 140, 0.88));
}
.overview-res-dash-card--metal .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(180, 200, 220, 0.5), rgba(220, 230, 245, 0.85));
}
.overview-res-dash-card--crystal .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(120, 180, 255, 0.5), rgba(160, 210, 255, 0.88));
}
.overview-res-dash-card--fuel .overview-res-bar-fill{
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.45), rgba(255, 220, 100, 0.88));
}
.overview-upgrade-section{
  margin-bottom: var(--gc-card-gap);
}
.overview-upgrade-section .overview-upgrade-widgets{
  margin-top: 0;
}
@media (max-width: 1024px){
  .overview-res-dashboard{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .overview-res-dashboard{
    grid-template-columns: 1fr;
  }
}
.overview-economy-panel,
.overview-activities-panel{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.overview-resources-compact{
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 14px;
}
.overview-resources-strip{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.overview-res-inline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.overview-resources-strip .gc-res-icon{
  width: 20px;
  height: 20px;
}
.overview-res-inline-label{
  color: var(--gc-text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.overview-res-inline-main{
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.overview-res-inline-rate{
  color: rgba(127, 255, 217, 0.88);
  font-size: 0.76rem;
}
.overview-upgrade-widgets{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.overview-upgrade-card{
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(3, 8, 18, 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.overview-upgrade-card:hover{
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(8, 16, 32, 0.62);
}
.overview-upgrade-card-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.overview-upgrade-name{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gc-text-soft);
}
.overview-upgrade-level{
  font-size: 0.76rem;
  min-width: 0;
  padding: 2px 7px;
}
.overview-economy-panel .gc-bld-effect-compact{
  padding: 4px 5px;
  gap: 2px;
}
.overview-economy-panel .gc-bld-prod-line{
  font-size: 0.64rem;
}
.gc-bld-effect-bundle{
  display: grid;
  gap: 4px;
}
.gc-bld-effect-secondary{
  border-color: rgba(251, 191, 36, 0.14);
  background: rgba(20, 12, 0, 0.22);
}
.gc-bld-effect-secondary .gc-bld-prod-metric{
  color: rgba(251, 191, 36, 0.78);
}
.overview-energy-strip{
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(3, 8, 18, 0.55);
}
.overview-energy-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.overview-energy-label{
  color: var(--gc-text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.overview-energy-meta{
  color: var(--gc-text-soft);
  font-size: 0.86rem;
}
.overview-energy-hint{ margin: 0; }
.overview-activities-panel .overview-activities{
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto;
  align-content: start;
}
.overview-activities{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.overview-activity-row{
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.14);
  background: rgba(4, 8, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 0;
  display: flex;
}
.overview-activity-row:hover{
  border-color: rgba(70, 229, 255, 0.24);
  background: rgba(6, 12, 24, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.32),
    0 6px 18px rgba(0, 0, 0, 0.22);
}
.overview-activity-link{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  flex: 1;
  width: 100%;
  min-height: 100%;
}
.overview-activity-type{
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}
.overview-activity-body{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.overview-activity-name{ font-weight: 700; color: var(--gc-text); }
.overview-activity-detail{ color: var(--gc-text-soft); font-size: 0.88rem; }
.overview-activity-eta{
  margin-left: auto;
  color: var(--gc-primary-2);
  font-size: 0.88rem;
}
.overview-activity-idle{ color: var(--gc-text-dim); font-style: italic; }
.overview-activity-active{
  border-color: rgba(70,229,255,0.24);
  box-shadow: inset 0 0 0 1px rgba(70,229,255,0.06);
}
.overview-warnings{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.overview-warning{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255,196,0,0.28);
  background: rgba(255,196,0,0.06);
  color: var(--gc-text-soft);
  font-size: 0.9rem;
}
.overview-warning-critical{
  border-color: rgba(255,75,106,0.38);
  background: rgba(255,75,106,0.08);
}
.overview-warnings-panel{ margin-top: var(--gc-card-gap); }
.overview-log-panel{ margin-top: var(--gc-card-gap); }
.overview-log{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.overview-log-item{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.overview-log-item:hover{
  border-color: rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.35);
}
.overview-log-unread .overview-log-subject{ font-weight: 700; color: var(--gc-text); }
.overview-log-time{ color: var(--gc-text-dim); font-size: 0.82rem; }
.overview-log-subject{ color: var(--gc-text-soft); }
.overview-log-empty{ margin: 0; }

/* Overview Research side */
.research-active-box{
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(5, 10, 22, 0.60);
  box-shadow: 0 18px 44px rgba(0,0,0,0.46);
}
.research-active-name{ font-weight: 800; color: var(--gc-text); margin-bottom: 8px; }

.research-bar{
  height: 10px;
  border-radius: var(--gc-radius-sm);
  background: rgba(120, 190, 255, 0.10);
  border: 1px solid rgba(120, 190, 255, 0.14);
  overflow: hidden;
}
.research-bar-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(70,229,255,0.70), rgba(127,255,217,0.65));
  box-shadow: 0 0 20px rgba(70,229,255,0.18);
}

/* Smooth progress fills — will-change only while timers active (GC-547) */
.gc-progress-smooth,
.build-bar-fill,
.build-progress-fill,
.research-progress-fill,
.research-bar-fill{
  transition: width 0.12s linear;
}

body:not(.gc-perf-idle) .gc-progress-smooth,
body:not(.gc-perf-idle) .build-bar-fill,
body:not(.gc-perf-idle) .build-progress-fill,
body:not(.gc-perf-idle) .research-progress-fill,
body:not(.gc-perf-idle) .research-bar-fill{
  will-change: width;
}

.research-active-meta{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--gc-text-dim);
  font-size: 0.82rem;
  font-family: var(--gc-mono);
}
.research-empty-hint{ color: var(--gc-text-dim); }

.research-list{ list-style: none; padding: 0; margin: 10px 0 0 0; display: grid; gap: 8px; }
.research-item{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.58);
  border: 1px solid rgba(120, 190, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.40);
}
.research-item-locked{ opacity: 0.78; border-color: rgba(255,196,0,0.18); }
.research-item-header{ display: flex; justify-content: space-between; gap: 10px; }
.research-item-name{ font-weight: 800; color: var(--gc-text-soft); }
.research-item-level{ font-family: var(--gc-mono); color: var(--gc-text-dim); }
.research-item-cost{ margin-top: 6px; color: var(--gc-text-dim); font-size: 0.84rem; }

/* =========================
   16) Buildings + Research — compact progression cards
   ========================= */
.buildings-shell{ padding: 10px; }

/* Genesis building/research cards — compact grid */
.gc-building-grid.buildings-prog-list,
.gc-building-grid.research-prog-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.gc-building-card.gc-prog-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 9px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--gc-radius-sm);
}

.gc-building-card.gc-prog-card:hover{
  transform: translateY(-2px);
}

/* Hero image — Megabunker-style building recognition */
.gc-bld-card-hero{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 88px;
  max-height: 118px;
  overflow: hidden;
  border-bottom: 1px solid rgba(70, 229, 255, 0.16);
  background: rgba(4, 8, 18, 0.92);
}

.gc-bld-card-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.gc-bld-hero-img-stack{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gc-bld-hero-img-stack .gc-bld-card-hero-img--muted{
  filter: saturate(0.55) brightness(0.9);
  z-index: 0;
}

.gc-bld-hero-img-stack .gc-bld-card-hero-img--color{
  z-index: 1;
  clip-path: inset(calc(100% - var(--hero-progress-pct, 0%)) 0 0 0);
}

.gc-bld-card-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 8, 18, 0.02) 0%,
    rgba(4, 8, 18, 0.12) 55%,
    rgba(4, 8, 18, 0.82) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* GC-550C — hero queue status (no dark overlay layer) */
.gc-bld-hero-queue{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.gc-bld-hero-queue[hidden]{
  display: none !important;
}

.gc-bld-hero-queue-badge{
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.35);
  background: rgba(6, 12, 28, 0.72);
  color: rgba(200, 235, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.gc-bld-hero-queue-badge-line{
  line-height: 1.2;
}

.gc-bld-hero-queue-badge-sub{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(180, 220, 245, 0.9);
}

.gc-bld-hero-time-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(6, 12, 28, 0.82);
  color: rgba(190, 230, 255, 0.94);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28) inset;
  pointer-events: none;
  white-space: nowrap;
}

.gc-bld-hero-action-col{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  flex-shrink: 0;
  min-width: 30px;
}

.gc-bld-hero-action-col .gc-bld-hero-time-chip{
  align-self: flex-end;
}

.gc-bld-hero-action-col .gc-bld-card-head-action,
.gc-bld-hero-action-col .gc-bld-card-action{
  align-self: flex-end;
}

.gc-bld-hero-time-chip .gc-card-queue-timer{
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.gc-bld-card-meta--costs-only{
  justify-content: flex-start;
}

.gc-bld-card-meta--costs-only .gc-bld-card-costs{
  width: 100%;
}

.gc-bld-hero-queue-center{
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: calc(100% - 16px);
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

.gc-bld-hero-queue-pct{
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(240, 252, 255, 0.98);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 18px rgba(70, 229, 255, 0.35);
  line-height: 1.1;
}

.gc-bld-hero-queue-cancel{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(251, 120, 120, 0.42);
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 10, 20, 0.82);
  color: rgba(251, 160, 160, 0.95);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.82;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}

.gc-bld-hero-queue-cancel:hover,
.gc-bld-hero-queue-cancel:focus-visible{
  opacity: 1;
  border-color: rgba(251, 120, 120, 0.72);
}

.gc-building-card .gc-bld-card-queue-zone,
.gc-research-card .gc-bld-card-queue-zone{
  display: none;
}

.gc-bld-card-level--hero{
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 6;
}

.gc-bld-card-hero-title{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 7px;
  min-width: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 18, 0.62) 100%);
}

.gc-bld-card-title-wrap{
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.gc-bld-card-head-action{
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.gc-bld-head-action-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.42);
  background: rgba(6, 12, 28, 0.88);
  color: var(--gc-neon-cyan);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28) inset;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

a.gc-bld-head-action-btn--go:hover,
a.gc-bld-head-action-btn--go:focus-visible{
  background: rgba(70, 229, 255, 0.14);
  border-color: rgba(70, 229, 255, 0.72);
  box-shadow: var(--gc-border-glow);
  color: var(--gc-neon-cyan);
}

.gc-bld-head-action-btn--busy{
  border-color: rgba(127, 255, 217, 0.38);
  color: rgba(180, 245, 255, 0.92);
  cursor: default;
}

.gc-bld-head-action-btn--warn{
  border-color: rgba(251, 191, 36, 0.48);
  color: rgba(251, 191, 36, 0.96);
}

.gc-bld-head-action-btn--locked{
  border-color: rgba(120, 190, 255, 0.24);
  color: rgba(160, 190, 220, 0.88);
  cursor: not-allowed;
}

.gc-bld-head-action-btn--afford{
  border-color: rgba(251, 120, 120, 0.35);
  color: rgba(251, 160, 160, 0.82);
  cursor: not-allowed;
}

.gc-bld-head-action-btn--max{
  border-style: dashed;
  border-color: rgba(120, 190, 255, 0.22);
  color: rgba(127, 255, 217, 0.72);
  opacity: 0.72;
}

.gc-bld-head-action-btn[disabled]{
  cursor: not-allowed;
}

.gc-bld-head-action-icon{
  display: block;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.gc-building-card .gc-bld-card-icon--title,
.gc-research-card .gc-bld-card-icon--title{
  display: none;
}

.gc-building-card .gc-bld-prod,
.gc-building-card .gc-bld-card-meta,
.gc-building-card .gc-bld-card-req,
.gc-building-card .gc-bld-card-queue-zone,
.gc-research-card .gc-bld-prod,
.gc-research-card .gc-bld-effect-bundle,
.gc-research-card .gc-bld-card-meta,
.gc-research-card .research-card-blockers,
.gc-research-card .gc-bld-card-queue-zone,
.gc-ship-card .gc-ship-card-subhead,
.gc-ship-card .gc-bld-card-meta,
.gc-ship-card .shipyard-blockers,
.gc-ship-card .gc-bld-card-action-wrap{
  margin-left: 9px;
  margin-right: 9px;
}

.gc-bld-card-hero-badge{
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
}

.gc-bld-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.gc-bld-card-identity{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.gc-bld-card-icon{
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: calc(var(--gc-radius-sm) - 2px);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: radial-gradient(circle at 50% 40%, rgba(70, 229, 255, 0.10), rgba(5, 10, 22, 0.58));
  filter: drop-shadow(0 0 10px rgba(70, 229, 255, 0.14));
}

.gc-bld-card-icon--title{
  width: 26px;
  height: 26px;
  border-radius: calc(var(--gc-radius-sm) - 3px);
}

.gc-bld-card-title-wrap{
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.gc-bld-card-title{
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-bld-card-hero-title .gc-bld-card-title{
  color: rgba(235, 250, 255, 0.98);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.gc-bld-card-level{
  flex-shrink: 0;
}

.gc-bld-prod{
  display: grid;
  gap: 3px;
  padding: 5px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  min-width: 0;
  overflow: hidden;
}

.gc-bld-prod-metric{
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(127, 255, 217, 0.82);
  line-height: 1.2;
  margin-bottom: 1px;
}

.gc-bld-effect-icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.gc-bld-effect-icon-energy{
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.35));
}

.gc-bld-effect-icon-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.9;
}

/* Building cards — slightly larger resource icons */
.gc-building-card .gc-res-icon{
  width: 20px;
  height: 20px;
}

.gc-building-card .gc-bld-prod-val .gc-res-icon{
  width: 18px;
  height: 18px;
}

.gc-building-card .gc-res-icon--sm{
  width: 18px;
  height: 18px;
}

.gc-building-card .gc-cost-chip{
  padding: 2px 6px;
  gap: 5px;
}

.gc-bld-prod-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.68rem;
  line-height: 1.2;
  min-width: 0;
}

.gc-bld-prod-label{
  color: var(--gc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}

.gc-bld-prod-val{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: rgba(180, 245, 255, 0.95);
  min-width: 0;
  max-width: 62%;
  justify-content: flex-end;
}

.gc-num-compact{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

.gc-bld-prod-delta-val .gc-mono,
.gc-bld-prod-delta-val.gc-num-compact{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.gc-bld-card-costs .gc-cost-val{
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-bld-prod-next .gc-mono{
  color: rgba(127, 255, 217, 0.95);
}

.gc-bld-prod-unit{
  font-size: 0.62rem;
  color: var(--gc-text-dim);
  font-weight: 700;
}

.gc-bld-prod-delta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
  padding-top: 3px;
  border-top: 1px solid rgba(127, 255, 217, 0.14);
}

.gc-bld-prod-delta-label{
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gc-bld-prod-delta-val{
  font-size: 0.74rem;
  font-weight: 900;
  color: rgba(35, 242, 166, 0.96);
  text-shadow: 0 0 12px rgba(35, 242, 166, 0.22);
}

.gc-bld-prod-delta-cost{
  border-top-color: rgba(251, 191, 36, 0.18);
}
.gc-bld-prod-delta-cost .gc-bld-prod-delta-val{
  color: rgba(251, 191, 36, 0.96);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.18);
}
.gc-prog-affordable .gc-bld-prod-delta-cost .gc-bld-prod-delta-val{
  animation: none;
}

.gc-bld-card-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
}

.gc-bld-card-costs{
  flex: 1 1 auto;
  min-width: 0;
}

.gc-bld-card-costs .gc-cost-target{
  display: none;
}

.gc-bld-card-time{
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(180, 245, 255, 0.82);
  white-space: nowrap;
}

.gc-bld-card-req{
  margin: 0;
  font-size: 0.64rem;
  color: rgba(255, 214, 120, 0.88);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-bld-card-action-wrap{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding-top: 2px;
}

.gc-bld-card-queue-zone{
  flex-shrink: 0;
  min-height: 76px;
  margin-top: auto;
  padding: 2px 0 8px;
  box-sizing: border-box;
}

.gc-bld-card-queue-slot{
  min-height: 72px;
  padding: 0 9px;
  box-sizing: border-box;
}

.gc-bld-card-queue-slot .gc-card-queue-block{
  margin: 0;
}

.gc-bld-card-head-action .gc-bld-head-action-btn{
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.gc-bld-card-action{
  display: flex;
  margin-top: 0;
  padding-top: 0;
}

/* Legacy full-width footer actions (shipyard/defense qty row) */
.gc-bld-card-action .gc-btn:not(.gc-bld-head-action-btn),
.gc-bld-card-action .status-pill{
  width: 100%;
  max-width: none;
  min-height: 36px;
  padding: 9px 12px;
  font-size: 0.76rem;
  line-height: 1.2;
  justify-content: center;
  align-items: center;
}

.gc-prog-affordable .gc-bld-prod-delta-val{
  opacity: 0.92;
}

.buildings-prog-list .gc-prog-head{
  display: none;
}

/* GC-536F — unified compact queue headers (count only, no timers) */
.gc-queue-compact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px 6px;
  border-bottom: none;
  min-width: 0;
  max-width: 100%;
}

/* GC-536B — building card queue block */
.build-queue-compact{
  /* extends .gc-queue-compact */
}

.build-queue-compact-icon{
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}

.build-queue-compact-label{
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}

.gc-building-card--in-queue{
  border-color: rgba(70, 229, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 18px rgba(70, 229, 255, 0.06);
}

.gc-building-card--queue-active{
  border-color: rgba(127, 255, 217, 0.32);
}

.gc-card-queue-block{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 4px;
  padding: 8px 10px;
  border: 1px solid rgba(70, 229, 255, 0.18);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(8, 16, 36, 0.92), rgba(6, 12, 28, 0.88));
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-card-queue-block--queued{
  opacity: 0.92;
  border-style: dashed;
}

@keyframes gc-card-queue-advance{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.gc-card-queue-block--advance{
  animation: gc-card-queue-advance 0.28s ease-out;
}

.gc-card-queue-head{
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-card-queue-glyph{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(127, 255, 217, 0.45);
  background: rgba(70, 229, 255, 0.08);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: gc-card-queue-spin 6s linear infinite;
}

.gc-card-queue-block--queued .gc-card-queue-glyph{
  animation: none;
  opacity: 0.55;
}

@keyframes gc-card-queue-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.gc-card-queue-status{
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-primary-2);
}

.gc-card-queue-level{
  font-size: 0.76rem;
  color: var(--gc-text-dim);
}

.gc-card-queue-timer{
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gc-text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.gc-card-queue-bar{
  position: relative;
  height: 6px;
  margin-top: 2px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(4, 10, 22, 0.85);
  overflow: hidden;
}

.gc-card-queue-bar-fill{
  height: 100%;
  background: linear-gradient(90deg, rgba(70, 229, 255, 0.55), rgba(127, 255, 217, 0.85));
  border-radius: 0;
}

.gc-card-queue-scanline{
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(127, 255, 217, 0.08) 3px,
    rgba(127, 255, 217, 0.08) 4px
  );
  pointer-events: none;
  animation: gc-card-queue-scan 3.2s linear infinite;
}

@keyframes gc-card-queue-scan{
  from{ transform: translateX(-8px); }
  to{ transform: translateX(8px); }
}

.gc-card-queue-cancel{
  align-self: flex-start;
  margin-top: 2px;
}

/* GC-536C — research card queue accents */
.research-queue-compact{
  /* extends .gc-queue-compact */
}

.research-queue-compact-icon{
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}

.research-queue-compact-label{
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}

.gc-research-card--in-queue{
  border-color: rgba(168, 120, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 18px rgba(168, 120, 255, 0.07);
}

.gc-research-card--queue-active{
  border-color: rgba(190, 150, 255, 0.34);
}

.gc-card-queue-block--research{
  border-color: rgba(168, 120, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(12, 10, 32, 0.94), rgba(8, 12, 28, 0.9));
}

.gc-card-queue-glyph--research{
  border-color: rgba(190, 150, 255, 0.5);
  background: rgba(168, 120, 255, 0.1);
  clip-path: none;
  border-radius: 0;
  animation: gc-card-queue-pulse 2.8s ease-in-out infinite;
}

@keyframes gc-card-queue-pulse{
  0%, 100%{ opacity: 0.55; box-shadow: 0 0 0 rgba(190, 150, 255, 0); }
  50%{ opacity: 1; box-shadow: 0 0 8px rgba(190, 150, 255, 0.25); }
}

.gc-card-queue-scanline--research{
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(190, 150, 255, 0.07) 2px,
    rgba(190, 150, 255, 0.07) 3px
  );
  animation: gc-card-queue-scan-vertical 3.6s linear infinite;
}

@keyframes gc-card-queue-scan-vertical{
  from{ transform: translateY(-6px); }
  to{ transform: translateY(6px); }
}

/* GC-536 — defense card queue (shipyard-page family — cyan base, amber glyph) */
.defense-queue-compact{
  padding: 8px 12px;
  margin: 0 0 4px;
  border: 1px solid rgba(90, 200, 255, 0.12);
  border-radius: 0;
  background: rgba(6, 14, 24, 0.55);
}

.defense-queue-compact-icon{
  font-size: 1rem;
  line-height: 1;
}

.defense-queue-compact-label{
  font-weight: 800;
}

.defense-queue-compact-hint{
  opacity: 0.72;
  font-size: 0.78rem;
}

.defense-page .gc-card-queue-block{
  margin: 4px 0 2px;
}

.gc-card-queue-block--defense{
  border-color: rgba(90, 200, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 16, 28, 0.94), rgba(6, 12, 22, 0.9));
}

.gc-card-queue-glyph--defense{
  border-color: rgba(255, 154, 26, 0.48);
  background: rgba(255, 154, 26, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  animation: gc-card-queue-spin 6s linear infinite;
}

.gc-card-queue-block--defense .gc-card-queue-cancel{
  align-self: flex-start;
  margin-top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

.gc-card-queue-scanline--defense{
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(90, 200, 255, 0.06) 3px,
    rgba(90, 200, 255, 0.06) 4px
  );
  animation: gc-card-queue-scan 2.8s linear infinite;
}

/* GC-536D — shipyard card queue accents */
.gc-ship-card--in-queue{
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 18px rgba(90, 200, 255, 0.08);
}

.gc-ship-card--queue-active{
  border-color: rgba(90, 200, 255, 0.34);
}

.gc-card-queue-block--shipyard{
  border-color: rgba(90, 200, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 16, 28, 0.94), rgba(6, 12, 22, 0.9));
}

.gc-card-queue-quantity{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gc-text);
  margin: 2px 0 4px;
  letter-spacing: 0.02em;
}

.gc-card-queue-glyph--shipyard{
  border-color: rgba(90, 200, 255, 0.55);
  background: rgba(70, 180, 255, 0.08);
  border-radius: 50%;
  animation: gc-card-queue-spin 5s linear infinite;
}

.gc-card-queue-scanline--shipyard{
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(90, 200, 255, 0.06) 3px,
    rgba(90, 200, 255, 0.06) 4px
  );
  animation: gc-card-queue-scan 2.8s linear infinite;
}

.shipyard-queue-compact{
  padding: 8px 12px;
  margin: 0 0 4px;
  border: 1px solid rgba(90, 200, 255, 0.12);
  border-radius: 0;
  background: rgba(6, 14, 24, 0.55);
}

.shipyard-queue-compact-icon{
  font-size: 1rem;
  line-height: 1;
}

.shipyard-queue-compact-label{
  font-weight: 800;
}

.shipyard-queue-compact-hint{
  opacity: 0.72;
  font-size: 0.78rem;
}

/* GC-536E — planet-tech + ascension card queue accents */
.pe-queue-compact{
  /* extends .gc-queue-compact */
}

.pe-queue-compact-icon{
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}

.pe-queue-compact-label{
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}

.gc-planet-tech-card--in-queue{
  border-color: rgba(95, 214, 122, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 18px rgba(95, 214, 122, 0.07);
}

.gc-planet-tech-card--queue-active{
  border-color: rgba(127, 255, 180, 0.34);
}

.gc-ascension-card--in-queue{
  border-color: rgba(140, 120, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 20px rgba(140, 120, 255, 0.08);
}

.gc-ascension-card--queue-active{
  border-color: rgba(170, 150, 255, 0.36);
}

.gc-card-queue-block--planet_research{
  border-color: rgba(95, 214, 122, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 20, 16, 0.94), rgba(6, 14, 22, 0.9));
}

.gc-card-queue-block--ascension{
  border-color: rgba(140, 120, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(14, 10, 32, 0.94), rgba(8, 12, 28, 0.9));
}

.gc-card-queue-glyph--planet-research{
  border-color: rgba(127, 255, 180, 0.5);
  background:
    linear-gradient(180deg, rgba(95, 214, 122, 0.14), rgba(70, 229, 255, 0.08));
  clip-path: none;
  border-radius: 0;
  animation: gc-card-queue-dna-pulse 2.4s ease-in-out infinite;
}

@keyframes gc-card-queue-dna-pulse{
  0%, 100%{ opacity: 0.6; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.06); box-shadow: 0 0 8px rgba(127, 255, 180, 0.22); }
}

.gc-card-queue-scanline--planet-research{
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 2px,
    rgba(127, 255, 180, 0.09) 2px,
    rgba(127, 255, 180, 0.09) 3px,
    transparent 3px,
    transparent 5px,
    rgba(70, 229, 255, 0.06) 5px,
    rgba(70, 229, 255, 0.06) 6px
  );
  animation: gc-card-queue-dna-scan 2.6s linear infinite;
}

@keyframes gc-card-queue-dna-scan{
  from{ transform: translateX(-10px); }
  to{ transform: translateX(10px); }
}

.gc-card-queue-glyph--ascension{
  border-color: rgba(170, 150, 255, 0.55);
  background: rgba(140, 120, 255, 0.1);
  border-radius: 50%;
  animation: gc-card-queue-orbit-pulse 3.2s ease-in-out infinite;
}

@keyframes gc-card-queue-orbit-pulse{
  0%, 100%{
    opacity: 0.55;
    box-shadow: 0 0 0 rgba(170, 150, 255, 0);
    transform: rotate(0deg);
  }
  50%{
    opacity: 1;
    box-shadow: 0 0 12px rgba(170, 150, 255, 0.28);
    transform: rotate(180deg);
  }
}

.gc-card-queue-scanline--ascension{
  background: radial-gradient(
    circle at 50% 50%,
    rgba(170, 150, 255, 0.12) 0,
    rgba(170, 150, 255, 0.04) 40%,
    transparent 70%
  );
  animation: gc-card-queue-core-ripple 2.8s ease-out infinite;
}

@keyframes gc-card-queue-core-ripple{
  0%{ transform: scale(0.85); opacity: 0.35; }
  70%{ transform: scale(1.15); opacity: 0.75; }
  100%{ transform: scale(1.2); opacity: 0; }
}

.gc-card-queue-phase{
  font-size: 0.76rem;
  color: var(--gc-text-dim);
}

@media (prefers-reduced-motion: reduce){
  .gc-card-queue-glyph,
  .gc-card-queue-scanline,
  .gc-card-queue-glyph--research,
  .gc-card-queue-scanline--research,
  .gc-card-queue-glyph--shipyard,
  .gc-card-queue-scanline--shipyard,
  .gc-card-queue-glyph--planet-research,
  .gc-card-queue-scanline--planet-research,
  .gc-card-queue-glyph--ascension,
  .gc-card-queue-scanline--ascension,
  .gc-card-queue-glyph--defense,
  .gc-card-queue-scanline--defense,
  .gc-card-queue-block--advance{
    animation: none !important;
  }
}

.gc-building-card,
.gc-research-card,
.gc-ship-card,
.gc-planet-tech-card,
.gc-ascension-card{
  min-width: 0;
  max-width: 100%;
}

.buildings-techtree-link,
.research-techtree-link{
  margin-left: 10px;
  color: var(--gc-primary-2);
  font-weight: 800;
}
.buildings-techtree-link:hover,
.research-techtree-link:hover{ text-decoration: underline; }

.building-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 8px;
}

.buildings-shell .building-tabs--prominent{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 0 12px;
  border: 1px solid rgba(70, 229, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(6, 12, 28, 0.92), rgba(4, 8, 18, 0.88));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  overflow: hidden;
}

.buildings-shell .building-tabs--prominent .tab-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 10px 8px;
  border: none;
  border-right: 1px solid rgba(70, 229, 255, 0.12);
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
  box-shadow: none;
}

.buildings-shell .building-tabs--prominent .tab-btn:last-child{
  border-right: none;
}

.buildings-shell .building-tabs--prominent .building-tab-glyph{
  font-size: 1rem;
  line-height: 1;
  opacity: 0.88;
}

.buildings-shell .building-tabs--prominent .building-tab-label{
  line-height: 1.15;
}

.buildings-shell .building-tabs--prominent .tab-btn:hover{
  color: var(--gc-text-soft);
  background: rgba(70, 229, 255, 0.05);
}

.buildings-shell .building-tabs--prominent .tab-btn.active{
  color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.11);
  box-shadow: inset 0 -3px 0 var(--gc-neon-cyan);
  border-color: rgba(70, 229, 255, 0.12);
}

.tab-btn.active{
  border-color: rgba(70, 229, 255, 0.72);
  box-shadow: var(--gc-border-glow-strong);
  background: rgba(7, 14, 32, 0.74);
  color: var(--gc-primary-2);
}

.tab-content{ display: none; }
.tab-content.active{ display: block; }

.gc-prog-divider{
  margin: 8px 0;
  border: none;
  border-top: 1px solid rgba(120, 190, 255, 0.10);
}

.gc-prog-queue-head{
  padding-bottom: 4px;
}

.gc-prog-queue-panel{
  margin-top: 2px;
}

/* Shared compact list */
.gc-prog-list{
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  max-width: 100%;
}

.gc-prog-head,
.gc-prog-main{
  display: grid;
  grid-template-columns:
    minmax(108px, 1.1fr)
    44px
    minmax(118px, 1.5fr)
    56px
    84px;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.gc-prog-head{
  padding: 0 8px 4px;
  color: var(--gc-text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(120, 190, 255, 0.10);
}

.gc-prog-head .gc-prog-action{
  text-align: right;
}

.gc-prog-card{
  position: relative;
  padding: 5px 8px;
  min-height: 38px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.52);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14) inset;
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.gc-prog-card:hover{
  transform: translateY(-1px);
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.62);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14) inset,
    0 8px 22px rgba(0, 0, 0, 0.34);
}

/* Overview resource cards — never inherit gc-prog-card glass styling */
.overview-res-dash-card.gc-prog-card,
.overview-res-dash-card{
  padding: 0;
  min-height: 0;
}

.overview-res-dash-card.gc-prog-card:hover,
.overview-res-dash-card:hover{
  transform: translateY(-2px);
}

.overview-res-dash-card.gc-prog-card{
  background: linear-gradient(180deg, rgb(8, 14, 28) 0%, rgb(4, 8, 18) 100%);
  border-color: rgba(70, 229, 255, 0.28);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    0 14px 36px rgba(0, 0, 0, 0.55);
}

.overview-res-dash-card.gc-prog-card:hover{
  background: linear-gradient(180deg, rgb(10, 18, 34) 0%, rgb(6, 12, 24) 100%);
  border-color: rgba(70, 229, 255, 0.42);
  box-shadow:
    var(--gc-border-glow),
    inset 0 0 0 1px rgba(0, 0, 0, 0.52),
    0 18px 44px rgba(0, 0, 0, 0.58);
}

.gc-prog-col{
  min-width: 0;
}

.gc-prog-name-wrap{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.gc-prog-icon{
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: calc(var(--gc-radius-sm) - 2px);
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: radial-gradient(circle at 50% 40%, rgba(70, 229, 255, 0.08), rgba(5, 10, 22, 0.55));
  filter: drop-shadow(0 0 10px rgba(70,229,255,0.12));
}

.gc-prog-icon-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.gc-prog-title-row{
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.gc-prog-title{
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--gc-text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.gc-prog-info{
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.38);
  background: rgba(70, 229, 255, 0.10);
  color: rgba(180, 245, 255, 0.95);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--gc-mono);
}

.gc-prog-info:hover,
.gc-prog-info:focus-visible{
  border-color: rgba(127, 255, 217, 0.55);
  background: rgba(70, 229, 255, 0.18);
  box-shadow: 0 0 10px rgba(70, 229, 255, 0.18);
  outline: none;
}

.gc-popover{
  position: fixed;
  z-index: 12050;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0.55rem 0.7rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(127, 255, 217, 0.35);
  background: rgba(8, 18, 32, 0.97);
  color: var(--gc-text);
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(70, 229, 255, 0.12);
  pointer-events: none;
}

.gc-popover-trigger[aria-expanded="true"]{
  border-color: rgba(127, 255, 217, 0.65);
  background: rgba(70, 229, 255, 0.22);
}

.gc-prog-desc,
.gc-prog-effect{
  display: none !important;
}

.gc-level-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.34);
  background: rgba(70, 229, 255, 0.10);
  color: rgba(180, 245, 255, 0.98);
  font-family: var(--gc-font-level);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.03em;
  line-height: 1.1;
  box-shadow: 0 0 12px rgba(70, 229, 255, 0.10);
}

.gc-level-badge.gc-bld-card-level--hero{
  min-width: 34px;
  padding: 3px 8px;
  border: 1.5px solid rgba(70, 229, 255, 0.78);
  background: rgb(6, 12, 26);
  background: linear-gradient(180deg, rgb(10, 18, 34) 0%, rgb(4, 10, 22) 100%);
  color: rgb(238, 252, 255);
  font-size: 0.84rem;
  font-weight: 800;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.92),
    0 0 10px rgba(70, 229, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.88),
    0 2px 10px rgba(0, 0, 0, 0.62),
    0 0 16px rgba(70, 229, 255, 0.16);
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gc-card-stock-badge.gc-bld-card-level--hero{
  min-width: 38px;
  padding: 3px 10px;
  font-size: clamp(0.78rem, 2.4vw, 0.9rem);
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-ship-card .gc-card-stock-badge.gc-bld-card-level--hero,
.gc-ship-card.gc-prog-card .gc-card-stock-badge.gc-bld-card-level--hero{
  z-index: 6;
}

.gc-costs-compact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.gc-cost-chip{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 5px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--gc-mono);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.gc-cost-metal .gc-cost-val{ color: rgba(127,255,217,0.95); }
.gc-cost-crystal .gc-cost-val{ color: rgba(70,229,255,0.95); }
.gc-cost-fuel_cells .gc-cost-val{ color: rgba(251,191,36,0.95); }

.gc-cost-target{
  flex: 1 1 100%;
  font-size: 0.68rem;
  color: var(--gc-text-dim);
  font-family: var(--gc-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.gc-prog-time,
.bcell-duration,
.tech-time{
  font-family: var(--gc-mono);
  font-size: 0.76rem;
  color: rgba(180, 245, 255, 0.88);
  white-space: nowrap;
}

.gc-req-inline{
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  min-width: 0;
}

.gc-req-ok{
  color: rgba(35, 242, 166, 0.92);
  font-weight: 800;
  font-size: 0.82rem;
}

.gc-req-lock{
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 196, 0, 0.34);
  background: rgba(40, 28, 0, 0.42);
  color: rgba(255, 214, 120, 0.92);
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-req-lock-icon{
  flex-shrink: 0;
  font-size: 0.62rem;
}

.gc-req-lock-text{
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-prog-action{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 28px;
}

.gc-prog-action .gc-btn,
.gc-prog-action .status-pill{
  width: 100%;
  max-width: 88px;
  justify-content: center;
}

/* Row states */
.gc-prog-affordable{
  border-color: rgba(127, 255, 217, 0.20);
}

.gc-prog-affordable:hover{
  border-color: rgba(127, 255, 217, 0.34);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14) inset,
    0 0 16px rgba(127, 255, 217, 0.08);
}

.gc-prog-locked,
.tech-row-locked{
  opacity: 0.52;
  filter: grayscale(0.25);
}

.gc-prog-unaffordable{
  opacity: 0.78;
}

.gc-prog-unaffordable .gc-cost-chip{
  border-color: rgba(255, 75, 106, 0.28);
}

.gc-prog-max{
  opacity: 0.62;
}

/* Legacy cost helpers (still used elsewhere) */
.cost-metal, .cost-crystal{ font-family: var(--gc-mono); font-size: 0.86rem; }
.cost-metal{ color: rgba(127,255,217,0.85); }
.cost-crystal{ color: rgba(70,229,255,0.85); }
.cost-sep{ opacity: 0.35; margin: 0 4px; }
.cost-note{ margin-top: 4px; color: var(--gc-text-dim); font-size: 0.78rem; }

.gc-costs{
  display: grid;
  grid-auto-rows: minmax(18px, auto);
  gap: 6px;
  min-width: 0;
}

.gc-cost-row{
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 4px 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.gc-cost-val{
  font-family: var(--gc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
  color: rgba(215,246,255,0.92);
}

.gc-cost-unit{
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(215,246,255,0.72);
}

/* Canonical resource icons (Ferronit, Crytite, Brennzellen) — PNGs match HUD resource bar */
:root{
  --gc-icon-ferronit: url("/static/img/res/Ferronit.png");
  --gc-icon-crytite: url("/static/img/res/Crytite.png");
  --gc-icon-fuel-cells: url("/static/img/res/Brennzellen.png");
  --gc-icon-energy: url("/static/img/res/Energie.png");
}

.gc-res-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(120,255,220,0.18));
}
img.gc-res-icon.gc-res-fuel-cells,
.gc-res-icon.gc-res-fuel-cells{
  filter: drop-shadow(0 0 10px rgba(255,196,0,0.24));
}
span.gc-res-icon{
  border-radius: 0;
  box-shadow: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
span.gc-res-icon.gc-res-metal{ background-image: var(--gc-icon-ferronit); }
span.gc-res-icon.gc-res-crystal{ background-image: var(--gc-icon-crytite); }
span.gc-res-icon.gc-res-fuel-cells{ background-image: var(--gc-icon-fuel-cells); }
span.gc-res-icon.gc-res-energy{ background-image: var(--gc-icon-energy); }
.gc-res-icon--sm{ width: 14px; height: 14px; }
.gc-res-icon--lg{ width: 28px; height: 28px; }
.gc-res-icon--xl{ width: 42px; height: 42px; }
img.gc-res-icon.gc-res-energy{
  filter: drop-shadow(0 0 12px rgba(255, 196, 0, 0.28));
}

.gc-resource-summary-item,
.gc-resource-inline{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gc-resource-summary-label,
.fleet-resource-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shipyard-ship-cost,
.gc-ship-detail-cost{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

/* =========================
   17) Research Page
   ========================= */
.research-page-header .section-header-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.research-lab-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(70, 229, 255, 0.08);
  color: var(--gc-text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.research-lab-chip .lab-level-highlight{
  font-family: var(--gc-font-level);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--gc-primary-2);
  font-weight: 700;
}

.research-shell{
  padding: 10px;
}

.research-tech-grid{
  margin-top: 4px;
}

.gc-research-card.gc-prog-card,
.gc-research-card.gc-building-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 9px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--gc-radius-sm);
}

.gc-research-card.gc-prog-card:hover,
.gc-research-card.gc-building-card:hover{
  transform: translateY(-2px);
}

.gc-research-card .gc-bld-card-level{
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.gc-research-card .gc-bld-effect-bundle{
  display: grid;
  gap: 4px;
}

.gc-research-card .gc-research-effect{
  min-width: 0;
}

.research-card-blockers{
  margin-top: 2px;
}

.research-card-blockers .shipyard-blocker{
  font-size: 0.62rem;
}

.research-queue-subtitle-hint{
  line-height: 1.35;
}

.research-divider{ margin: 8px 0; }

.tech-row-locked{ opacity: 0.52; }

.status-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(120,190,255,0.20);
  background: rgba(5,10,22,0.58);
  color: var(--gc-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pill-active{ border-color: rgba(35,242,166,0.55); background: rgba(0, 22, 16, 0.55); }
.status-pill-locked{ border-color: rgba(255,196,0,0.55); background: rgba(40, 28, 0, 0.55); }

.status-pill-icon,
.status-pill-compact{
  min-width: 32px;
  max-width: 40px;
  padding: 2px 6px;
}

.status-pill-icon{
  font-size: 0.82rem;
  line-height: 1;
}

.status-pill-icon-btn{
  min-width: 32px;
  max-width: 40px;
  padding: 4px 6px;
  line-height: 1;
}

.lab-meta-row{ color: var(--gc-text-soft); margin-bottom: 6px; font-size: 0.86rem; }
.lab-level-highlight{
  font-family: var(--gc-font-level);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--gc-primary-2);
  font-weight: 700;
}
.lab-hint{ color: var(--gc-text-soft); font-size: 0.84rem; line-height: 1.35; }
.lab-hint-compact{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-panel-compact .gc-panel-header{
  margin-bottom: 6px;
}

/* Mobile: stack card fields, no horizontal scroll */
@media (max-width: 820px){
  .gc-building-grid.buildings-prog-list,
  .gc-building-grid.research-prog-list{
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 8px;
  }

  .gc-building-card.gc-prog-card,
  .gc-research-card.gc-prog-card{
    padding-bottom: 8px;
  }

  .gc-bld-card-hero{
    min-height: 84px;
    max-height: 112px;
  }

  .gc-bld-card-icon{
    width: 30px;
    height: 30px;
  }

  .gc-bld-card-icon--title{
    width: 22px;
    height: 22px;
  }

  .buildings-shell .building-tabs--prominent{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buildings-shell .building-tabs--prominent .tab-btn{
    min-height: var(--gc-touch-min);
    border-bottom: 1px solid rgba(70, 229, 255, 0.1);
  }

  .buildings-shell .building-tabs--prominent .tab-btn:nth-child(2n){
    border-right: none;
  }

  .gc-nav-sub--buildings{
    display: none;
  }

  .gc-prog-head{ display: none; }

  .gc-prog-main{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }

  .gc-prog-card{
    padding: 6px 8px 7px;
  }

  .gc-prog-name{
    flex: 1 1 calc(100% - 92px);
    order: 1;
    min-width: 0;
  }

  .gc-prog-action{
    flex: 0 0 84px;
    order: 2;
    align-self: flex-start;
  }

  .gc-prog-level{
    order: 3;
  }

  .gc-prog-costs{
    flex: 1 1 100%;
    order: 4;
  }

  .gc-prog-time{
    order: 5;
    margin-right: 8px;
  }

  .gc-prog-action .gc-btn,
  .gc-prog-action .status-pill{
    max-width: 84px;
    font-size: 0.68rem;
    padding: 4px 6px;
  }
}

/* =========================
   18) TechTree
   ========================= */
.tech-nav-links{ margin-top: 8px; color: var(--gc-text-dim); font-size: 0.86rem; }
.tech-nav-links a{ color: var(--gc-primary-2); }
.tech-nav-links a:hover{ text-decoration: underline; }

.tech-panel .tech-tag{
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(5, 10, 22, 0.58);
  color: var(--gc-text-dim);
  font-size: 0.76rem;
}

.tech-level-pill{
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.35);
  background: rgba(5, 10, 22, 0.58);
  color: var(--gc-text-soft);
  font-family: var(--gc-font-level);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: 0.82rem;
}

.tech-req-list{ margin: 0; padding-left: 18px; color: var(--gc-text-soft); }
.tech-req-met{ color: rgba(215,246,255,0.82); }
.tech-req-missing{ color: rgba(255, 196, 0, 0.90); }
.tech-req-current{ color: var(--gc-text-dim); margin-left: 6px; }

/* Tech-Tree board (GC-555) — solid command-panel look */
.techtree-page{
  display: grid;
  gap: 14px;
}
.techtree-page .techtree-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 0;
  padding: 14px 16px;
  border: 1px solid var(--gc-border-bright);
  border-radius: var(--gc-radius-sm);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(70, 229, 255, 0.07), transparent 55%),
    var(--gc-panel-bg);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.45);
}
.techtree-search-wrap{ flex: 1 1 220px; min-width: 0; }
.techtree-search-input{
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border-strong);
  background: var(--gc-panel-strong);
  color: var(--gc-text-soft);
  font-size: 0.9rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
}
.techtree-search-input:focus{
  outline: none;
  border-color: var(--gc-neon-cyan);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35), 0 0 0 1px rgba(70, 229, 255, 0.28);
}
.techtree-filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.techtree-filter-btn{
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
  background: var(--gc-panel-bg-2);
  color: var(--gc-text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.techtree-filter-btn:hover{
  border-color: var(--gc-panel-border-strong);
  color: var(--gc-text-soft);
  background: var(--gc-panel-strong);
}
.techtree-filter-btn.is-active{
  border-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.12);
  color: var(--gc-primary-2);
  box-shadow: 0 0 14px rgba(70, 229, 255, 0.12);
}
.techtree-board{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.techtree-section{
  position: relative;
  border: 1px solid var(--gc-border-bright);
  border-radius: var(--gc-radius-sm);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(70, 229, 255, 0.06), transparent 50%),
    var(--gc-panel-bg);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.45);
  overflow: hidden;
}
.techtree-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gc-scanline);
  pointer-events: none;
  opacity: 0.28;
}
.techtree-section::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gc-neon-cyan);
  border-left: 1px solid var(--gc-neon-cyan);
  pointer-events: none;
}
.techtree-section-header{
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--gc-border);
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.98), rgba(5, 12, 24, 0.96));
}
.techtree-section-toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--gc-text-soft);
  text-align: left;
  cursor: pointer;
}
.techtree-section-toggle:hover{
  background: rgba(70, 229, 255, 0.06);
}
.techtree-section-chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gc-neon-cyan);
  border-bottom: 2px solid var(--gc-neon-cyan);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(70, 229, 255, 0.35));
}
.techtree-section.is-collapsed .techtree-section-chevron{
  transform: rotate(-45deg);
}
.techtree-section-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-neon-cyan);
  text-shadow: 0 0 12px rgba(70, 229, 255, 0.18);
}
.techtree-section-progress{
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--gc-text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.techtree-section-hint{
  margin: 0;
  padding: 0 16px 12px;
  color: var(--gc-text-dim);
  font-size: 0.84rem;
}
.techtree-section-body{
  position: relative;
  z-index: 1;
  padding: 14px 16px 16px;
  background: var(--gc-panel-bg-2);
  border-top: 1px solid rgba(0,0,0,0.28);
}
.techtree-section.is-collapsed .techtree-section-body{
  display: none;
}
.techtree-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.tech-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(6, 12, 24, 0.96)),
    var(--gc-panel-strong);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 10px 24px rgba(0,0,0,0.28);
  min-width: 0;
}
.tech-card-head{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tech-card-icon-btn{
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  flex-shrink: 0;
  line-height: 0;
  border-radius: var(--gc-radius-sm);
}
.tech-card-icon-btn:hover,
.tech-card-icon-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.35);
}
.tech-card-icon-btn:hover .tech-card-icon,
.tech-card-icon-btn:focus-visible .tech-card-icon{
  filter: drop-shadow(0 0 14px rgba(70, 229, 255, 0.42));
}
.tech-card-icon{
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(70, 229, 255, 0.22));
}
.tech-card-head-text{ flex: 1; min-width: 0; }
.tech-card-title{
  margin: 0;
  font-size: 0.92rem;
  color: var(--gc-text-soft);
  overflow-wrap: break-word;
}
.tech-card-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tech-card-tag{
  padding: 2px 7px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
  background: var(--gc-panel-bg);
  color: var(--gc-text-dim);
  font-size: 0.72rem;
}
.tech-card-tag--prepared{
  border-color: rgba(255, 196, 0, 0.45);
  color: rgba(255, 210, 80, 0.95);
  background: rgba(40, 30, 8, 0.72);
}
.tech-card-status{
  padding: 2px 7px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tech-card-status--unlocked{
  border: 1px solid rgba(80, 220, 160, 0.45);
  color: rgba(140, 255, 200, 0.95);
  background: rgba(20, 60, 45, 0.72);
}
.tech-card-status--available{
  border: 1px solid rgba(70, 229, 255, 0.45);
  color: var(--gc-primary-2);
  background: rgba(20, 50, 70, 0.72);
}
.tech-card-status--locked{
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: rgba(255, 170, 170, 0.92);
  background: rgba(60, 24, 24, 0.72);
}
.tech-card-status--planned{
  border: 1px solid rgba(255, 196, 0, 0.45);
  color: rgba(255, 210, 80, 0.95);
  background: rgba(50, 38, 10, 0.72);
}
.tech-card-desc{
  margin: 0;
  font-size: 0.82rem;
  color: var(--gc-text-dim);
  line-height: 1.45;
}
.tech-card-reqs-label{
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}
.tech-card-cost-values{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}
.tech-card.is-filter-hidden,
.techtree-section.is-filter-empty{
  display: none;
}

.gc-techtree-media-zoom-panel{
  max-width: min(92vw, 520px);
}
.gc-techtree-media-zoom-img{
  width: min(88vw, 480px);
  height: min(88vw, 480px);
}
.gc-techtree-media-zoom-caption{
  margin: 12px 0 0;
  padding: 0 8px;
  text-align: center;
}
.gc-techtree-media-zoom-title{
  display: block;
  font-family: Orbitron, var(--gc-font-display, Orbitron, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-primary-2, #7fffd9);
  text-shadow: 0 0 12px rgba(127, 255, 217, 0.16);
}
body.gc-techtree-media-zoom-open{
  overflow: hidden;
}

@media (max-width: 640px){
  .techtree-section-toggle{
    flex-wrap: wrap;
    padding: 12px;
  }
  .techtree-section-progress{
    width: 100%;
    margin-left: 18px;
  }
  .techtree-filter-bar{ width: 100%; }
}

/* =========================
   19) Galaxy
   ========================= */
.galaxy-page-head{
  margin-bottom: 12px;
}
.galaxy-nav-bar{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}
.galaxy-nav-step{
  flex: 0 1 auto;
  font-size: 0.82rem;
  color: var(--gc-text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease;
}
.galaxy-nav-step:hover:not(.is-disabled){
  color: var(--gc-primary-2);
}
.galaxy-nav-step.is-disabled{
  opacity: 0.35;
  pointer-events: none;
}
.galaxy-nav-jump{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.galaxy-nav-field{
  display: flex;
  align-items: center;
  gap: 8px;
}
.galaxy-nav-field-label{
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
  white-space: nowrap;
}
.galaxy-nav-field-controls{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.galaxy-nav-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(5, 10, 22, 0.55);
  color: var(--gc-text-soft);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}
.galaxy-nav-arrow:hover:not(.is-disabled){
  border-color: rgba(70, 229, 255, 0.45);
  color: var(--gc-primary-2);
}
.galaxy-nav-arrow.is-disabled{
  opacity: 0.35;
  pointer-events: none;
}
.galaxy-nav-sep{
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gc-primary-2);
  line-height: 1;
}
.galaxy-nav-fixed{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(5, 10, 22, 0.55);
  color: var(--gc-text-soft);
  font-weight: 700;
}
.galaxy-system-range{
  margin-top: 12px;
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}
.galaxy-system-range-label{
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}
.galaxy-system-range-track{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.92rem;
}
.galaxy-range-item{
  color: var(--gc-text-dim);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .12s ease, background .12s ease;
}
.galaxy-range-item.has-data{
  color: var(--gc-text-soft);
}
.galaxy-range-item.has-own{
  color: rgba(180, 255, 220, 0.95);
  text-shadow: 0 0 12px rgba(35, 242, 166, 0.25);
}
.galaxy-range-item:hover{
  color: var(--gc-primary-2);
  background: rgba(70, 229, 255, 0.08);
}
.galaxy-range-current{
  color: var(--gc-primary-2);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.55);
  background: rgba(0, 40, 56, 0.65);
  box-shadow: 0 0 18px rgba(70, 229, 255, 0.2);
}
.galaxy-search-bar{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 0;
}
.galaxy-search-label{
  color: var(--gc-text-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.galaxy-search-input{
  flex: 1 1 180px;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.88);
  color: var(--gc-text-soft);
  font-size: 0.9rem;
}
.galaxy-search-hint{
  flex: 1 1 100%;
  color: var(--gc-text-dim);
  font-size: 0.78rem;
}
.galaxy-jump-input--galaxy{
  width: 52px;
}
.galaxy-jump-form{
  display: flex;
  align-items: center;
  gap: 8px;
}
.galaxy-jump-label{
  color: var(--gc-text-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.galaxy-jump-input{
  width: 72px;
  padding: 4px 8px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.82);
  color: var(--gc-text-soft);
  font-size: 0.88rem;
}
.galaxy-slots{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.galaxy-slot-card{
  display: grid;
  grid-template-columns: 52px 56px 1fr auto;
  gap: 0 14px;
  align-items: stretch;
  border-radius: var(--gc-radius-sm);
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
/* Empty: dark, recessed */
.galaxy-slot-card.is-empty{
  border: 1px solid rgba(60, 80, 110, 0.2);
  background: rgba(3, 6, 14, 0.72);
  opacity: 0.82;
}
.galaxy-slot-card.is-empty .galaxy-slot-pos-col{
  background: rgba(4, 8, 18, 0.9);
  border-right: 1px solid rgba(50, 70, 100, 0.15);
}
.galaxy-slot-card.is-empty .galaxy-slot-card-main{
  padding: 12px 14px 12px 0;
}
.galaxy-slot-card.is-empty .galaxy-slot-planet-name,
.galaxy-slot-card.is-empty .galaxy-slot-coord{
  color: var(--gc-text-dim);
}
/* Occupied: bright, active */
.galaxy-slot-card.is-occupied{
  border: 1px solid rgba(255, 175, 90, 0.42);
  background: linear-gradient(105deg, rgba(48, 28, 10, 0.55) 0%, rgba(12, 22, 42, 0.95) 42%, rgba(8, 16, 32, 0.98) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 210, 140, 0.12);
}
.galaxy-slot-card.is-occupied:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 160, 60, 0.15), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.galaxy-slot-card.is-active-planet.is-occupied,
.galaxy-slot-card.is-own.is-occupied{
  border-color: rgba(70, 229, 255, 0.65);
  box-shadow: var(--gc-border-glow), 0 0 28px rgba(70, 229, 255, 0.18);
  background: linear-gradient(105deg, rgba(0, 52, 72, 0.65) 0%, rgba(36, 22, 8, 0.5) 38%, rgba(10, 20, 38, 0.98) 100%);
}
.galaxy-slot-card.is-highlighted{
  outline: 2px solid rgba(255, 220, 120, 0.5);
  outline-offset: 1px;
}
.galaxy-slot-pos-col{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: rgba(6, 12, 28, 0.85);
  border-right: 1px solid rgba(120, 190, 255, 0.12);
}
.galaxy-slot-card.is-occupied .galaxy-slot-pos-col{
  background: rgba(20, 14, 8, 0.75);
  border-right-color: rgba(255, 160, 60, 0.2);
}
.galaxy-slot-pos-label{
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
  margin-bottom: 4px;
}
.galaxy-slot-pos-num{
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gc-primary);
}
.galaxy-slot-card.is-occupied .galaxy-slot-pos-num{
  color: rgba(255, 210, 140, 0.95);
  text-shadow: 0 0 14px rgba(255, 160, 60, 0.35);
}
.galaxy-slot-orbit-col{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
}
.galaxy-orbit-rail{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galaxy-orbit-line{
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(70, 229, 255, 0.25) 15%, rgba(70, 229, 255, 0.25) 85%, transparent);
  pointer-events: none;
}
.galaxy-slot-card.is-empty .galaxy-orbit-line{
  background: linear-gradient(180deg, transparent, rgba(50, 70, 100, 0.2) 20%, rgba(50, 70, 100, 0.2) 80%, transparent);
}
.galaxy-orbit-body{
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}
.galaxy-orbit-body--empty{
  background: transparent;
  border: 2px dashed rgba(80, 110, 140, 0.35);
  box-shadow: none;
  width: 22px;
  height: 22px;
}
.galaxy-orbit-body--terrestrial{ background: radial-gradient(circle at 32% 28%, #8fd4a8, #2a6b4a 70%); color: rgba(80, 220, 140, 0.5); }
.galaxy-orbit-body--oceanic{ background: radial-gradient(circle at 32% 28%, #6ec8e8, #1a4a6e 70%); color: rgba(70, 200, 255, 0.5); }
.galaxy-orbit-body--barren{ background: radial-gradient(circle at 32% 28%, #b8a898, #5a5048 70%); color: rgba(180, 160, 140, 0.4); }
.galaxy-orbit-body--ice{ background: radial-gradient(circle at 32% 28%, #d8f0ff, #6a9ac8 70%); color: rgba(180, 220, 255, 0.5); }
.galaxy-orbit-body--volcanic{ background: radial-gradient(circle at 32% 28%, #ffb060, #8a3010 70%); color: rgba(255, 140, 60, 0.55); }
.galaxy-orbit-body--ruin{ background: radial-gradient(circle at 32% 28%, #a890c8, #4a3868 70%); color: rgba(160, 120, 220, 0.45); }
.galaxy-orbit-body--gas_moon{ background: radial-gradient(circle at 32% 28%, #9098b8, #3a4058 70%); color: rgba(140, 150, 200, 0.4); }
.galaxy-slot-card-main{
  padding: 12px 0;
  min-width: 0;
}
.galaxy-slot-card-head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.galaxy-slot-planet-name{
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gc-text);
}
.galaxy-slot-card.is-occupied .galaxy-slot-planet-name{
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 200, 120, 0.15);
}
.galaxy-slot-coord{
  font-size: 0.78rem;
  color: var(--gc-text-dim);
}
.galaxy-slot-card.is-occupied .galaxy-slot-coord{
  color: rgba(255, 220, 180, 0.75);
}
.galaxy-slot-commander-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.galaxy-slot-commander-label{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gc-text-dim);
}
.galaxy-slot-commander-link.gc-player-name{
  font-weight: 700;
  color: var(--gc-primary-2);
}
.galaxy-slot-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.galaxy-stat{
  padding: 5px 10px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.78rem;
  border: 1px solid rgba(120, 190, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gc-text-soft);
}
.galaxy-slot-card.is-occupied .galaxy-stat{
  background: rgba(255, 255, 255, 0.06);
}
.galaxy-stat-score{
  border-color: rgba(255, 190, 80, 0.35);
  color: rgba(255, 220, 160, 0.95);
}
.galaxy-stat-class{
  border-color: rgba(70, 229, 255, 0.28);
}
.galaxy-slot-empty-hint{
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: rgba(100, 120, 150, 0.85);
}
.galaxy-slot-card-aside{
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 0;
}
.galaxy-slot-card.is-empty .galaxy-slot-card-aside{
  opacity: 0.7;
}
.gs-pill-you{
  border-color: rgba(70, 229, 255, 0.65);
  background: rgba(0, 32, 48, 0.6);
  color: var(--gc-primary-2);
}
.gs-pill-own{
  border-color: rgba(35, 242, 166, 0.55);
  background: rgba(0, 22, 16, 0.55);
  color: rgba(180, 255, 220, 0.95);
}
.gs-pill-colonizable{
  border-color: rgba(35, 242, 166, 0.5);
  background: rgba(0, 22, 16, 0.55);
  color: rgba(180, 255, 220, 0.95);
}
.gs-pill-debris{
  border-color: rgba(255, 186, 72, 0.55);
  background: rgba(42, 28, 8, 0.65);
  color: rgba(255, 220, 150, 0.95);
}
.galaxy-slot-card.has-debris .galaxy-orbit-body--empty,
.galaxy-slot-card.has-debris .galaxy-orbit-body:not(.galaxy-orbit-body--expedition){
  box-shadow: 0 0 12px rgba(255, 170, 60, 0.35);
}
.galaxy-slot-debris{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  align-items: center;
}
.galaxy-stat-debris{
  font-size: 0.78rem;
  color: rgba(255, 200, 120, 0.9);
}
.galaxy-colonize-btn{
  margin-top: 8px;
  opacity: 0.65;
  cursor: not-allowed;
}
.galaxy-colonize-btn:disabled{
  pointer-events: none;
}
.gs-pill-occupied{
  border-color: rgba(255, 160, 60, 0.55);
  background: rgba(32, 18, 6, 0.55);
  color: rgba(255, 210, 140, 0.95);
}
@media (max-width: 820px){
  .galaxy-nav-bar{
    flex-direction: column;
    align-items: stretch;
  }
  .galaxy-nav-step{
    text-align: center;
  }
  .galaxy-nav-jump{
    width: 100%;
  }
  .galaxy-slot-card{
    grid-template-columns: 44px 48px 1fr;
    grid-template-rows: auto auto;
  }
  .galaxy-slot-card-aside{
    grid-column: 1 / -1;
    padding: 0 12px 12px;
    justify-content: flex-start;
  }
  .galaxy-system-range-track{
    justify-content: flex-start;
  }
}
@media (max-width: 520px){
  .galaxy-slot-card{
    grid-template-columns: 40px 44px 1fr;
  }
  .galaxy-orbit-body{
    width: 22px;
    height: 22px;
  }
}

.galaxy-shell-header{ align-items: center; }
.galaxy-controls{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.galaxy-coord-block{
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(5, 10, 22, 0.58);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.galaxy-coord-label{ color: var(--gc-text-dim); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.galaxy-coord-value{ font-family: var(--gc-mono); color: var(--gc-text-soft); font-size: 0.88rem; }

.galaxy-nav-buttons{ display: flex; gap: 6px; }

.galaxy-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.galaxy-system-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.58);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}
.galaxy-system-card:hover{
  transform: translateY(-1px);
  border-color: rgba(70,229,255,0.44);
  box-shadow: var(--gc-border-glow), 0 22px 60px rgba(0,0,0,0.55);
}

.gs-icon{
  width: 46px;
  height: 46px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70,229,255,0.28);
  background: rgba(7, 14, 32, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: var(--gc-primary-2);
  text-shadow: 0 0 18px rgba(127,255,217,0.14);
}

.gs-name{ font-weight: 900; color: var(--gc-text); }
.gs-coord{ margin-top: 2px; color: var(--gc-text-dim); font-family: var(--gc-mono); }
.gs-info{ margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }

.gs-pill{
  padding: 4px 9px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(7, 14, 32, 0.62);
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}
.gs-pill-free{ border-color: rgba(35,242,166,0.55); background: rgba(0, 22, 16, 0.55); }

.galaxy-legend{
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(7, 14, 32, 0.46);
  box-shadow: 0 18px 44px rgba(0,0,0,0.40);
}
.galaxy-legend-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: var(--gc-primary);
  font-weight: 900;
  margin-bottom: 8px;
}
.galaxy-legend-items{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--gc-text-soft);
  font-size: 0.88rem;
}
.gl-item-disabled{ color: var(--gc-text-dim); }

/* =========================
   20) Placeholder Pages
   ========================= */
.fleet-grid,
.defense-grid,
.shipyard-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .fleet-grid, .defense-grid, .shipyard-grid{ grid-template-columns: 1fr; }
}

.fleet-placeholder-box,
.defense-placeholder-box,
.shipyard-placeholder-box{
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.58);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}
.fleet-placeholder-title,
.defense-placeholder-title,
.shipyard-placeholder-title{ color: var(--gc-text); margin-bottom: 8px; }

.fleet-placeholder-list,
.defense-placeholder-list,
.shipyard-placeholder-list{
  margin: 0;
  padding-left: 18px;
  color: var(--gc-text-soft);
}

.fleet-tag-row,
.defense-tag-row,
.shipyard-tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.fleet-tag,
.defense-tag,
.shipyard-tag{
  padding: 6px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.25);
  background: rgba(7, 14, 32, 0.58);
  color: var(--gc-text-soft);
  font-size: 0.82rem;
}

.fleet-roadmap-list,
.defense-roadmap-list,
.shipyard-roadmap-list{
  margin: 0;
  padding-left: 18px;
  color: var(--gc-text-soft);
}

.fleet-note,
.defense-note,
.shipyard-note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(7, 14, 32, 0.46);
  color: var(--gc-text-soft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.40);
}

/* Fleet page */
.fleet-page .fleet-headline-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fleet-slots-badge{
  padding: 8px 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.72);
}
.fleet-slots-label{ display: block; font-size: 0.78rem; color: var(--gc-text-dim); }
.fleet-slots-value{ font-size: 1.1rem; color: var(--gc-accent); }
.fleet-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1100px){
  .fleet-layout{ grid-template-columns: 1fr; }
}
.fleet-send-form .fleet-form-row,
.fleet-mass-expo-form .fleet-form-row{
  margin-bottom: 12px;
}
.fleet-form-label{ display: block; margin-bottom: 4px; color: var(--gc-text-soft); font-size: 0.85rem; }
.fleet-form-inline{ display: flex; gap: 8px; flex-wrap: wrap; }
.fleet-ships-grid{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fleet-ship-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.45);
}
.fleet-ship-row.is-empty{ opacity: 0.55; }
.fleet-ship-row-main{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 180px;
}
.fleet-ship-row-controls{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.fleet-ship-name{
  font-weight: 600;
  color: var(--gc-text);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.fleet-ship-role-pill{
  flex: 0 0 auto;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}
.fleet-ship-role-pill--expedition{
  color: var(--gc-neon-gold);
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
}
.fleet-ship-role-pill--cargo{
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
}
.fleet-ship-role-pill--combat{
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
  background: rgba(252, 165, 165, 0.08);
}
.fleet-ship-role-pill--spy{
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}
.fleet-ship-role-pill--recycle{
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}
.fleet-ship-role-pill--scout{
  color: var(--gc-neon-cyan);
  border-color: rgba(70, 229, 255, 0.35);
  background: rgba(70, 229, 255, 0.08);
}
.fleet-ship-role-pill--colony{
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.08);
}
.fleet-ship-role-pill--utility{
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.35);
  background: rgba(203, 213, 225, 0.08);
}
.fleet-ship-stock{
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}
.fleet-ship-input{
  width: 72px;
  padding: 6px 8px;
  text-align: center;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: rgba(3, 8, 18, 0.85);
  color: var(--gc-neon-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
}
.fleet-ship-input:focus{
  outline: none;
  border-color: rgba(70, 229, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.12);
}
.fleet-coords-strip{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.2);
  background: rgba(3, 8, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.fleet-coords-strip.is-expedition{
  border-color: rgba(70, 229, 255, 0.38);
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.72) 0%, rgba(5, 10, 22, 0.85) 100%);
  box-shadow: inset 0 0 0 1px rgba(70, 229, 255, 0.1);
}
.fleet-coords-bracket,
.fleet-coords-sep{
  color: var(--gc-neon-cyan);
  font-family: var(--gc-mono);
  font-size: 0.95rem;
  opacity: 0.75;
  user-select: none;
}
.fleet-coord-input{
  width: 56px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--gc-neon-cyan);
  font-size: 0.95rem;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.fleet-coord-input--position{ width: 44px; color: var(--gc-neon-cyan); }
.fleet-coord-input:focus{
  outline: none;
  background: rgba(70, 229, 255, 0.06);
  border-radius: 0;
}
.fleet-coords-strip.is-expedition .fleet-coord-input--position{
  color: var(--gc-neon-gold);
}
.fleet-coords-hint{
  margin: 6px 0 0;
  font-size: 0.78rem;
}
.fleet-chip-icon{
  opacity: 0.85;
  margin-right: 2px;
}
.fleet-mission-select{
  max-width: 320px;
}
.fleet-page .gc-fieldset,
.fleet-ships-fieldset,
.fleet-resources-fieldset{
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 190, 255, 0.12);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.35);
  min-width: 0;
}
.fleet-page .gc-fieldset-legend{
  padding: 0 6px;
  margin-bottom: 8px;
  color: rgba(127, 255, 217, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fleet-resources-fieldset{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.35);
}
.fleet-resource-row{
  display: grid;
  grid-template-columns: 1fr 100px 64px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.fleet-resource-row:last-child{ margin-bottom: 0; }
.fleet-resource-row input{
  text-align: center;
  font-family: var(--gc-mono);
}
.fleet-page .fleet-resource-summary{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.45);
  font-size: 0.82rem;
}
.fleet-page .fleet-resource-summary strong{ color: var(--gc-neon-cyan); }
.fleet-target-block{
  position: relative;
  z-index: 5;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border-strong);
  background: var(--gc-panel-bg);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
.fleet-target-block::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gc-scanline);
  pointer-events: none;
  opacity: 0.25;
}
.fleet-target-block::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gc-neon-cyan);
  border-left: 1px solid var(--gc-neon-cyan);
  pointer-events: none;
}
.fleet-send-panel.is-expedition-mode .fleet-target-block{
  border-color: rgba(70, 229, 255, 0.28);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(70, 229, 255, 0.06);
}
.fleet-target-block > *,
.fleet-preview-hud > *{
  position: relative;
  z-index: 1;
}
.fleet-mission-speed-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px){
  .fleet-mission-speed-row{ grid-template-columns: 1fr; }
}
.fleet-form-row--inline{ margin-bottom: 0; }
.fleet-send-form > .fleet-form-row:first-child{
  position: relative;
  z-index: 6;
}
.fleet-ships-fieldset,
.fleet-resources-fieldset{
  position: relative;
  z-index: 1;
}
.fleet-page .gc-hud-select.is-open{
  z-index: 40;
}
.fleet-page .gc-hud-select-menu{
  z-index: 50;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), var(--gc-border-glow);
}
.fleet-page .gc-hud-select-trigger{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 0.96));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  color: rgba(215, 246, 255, 0.94);
}
.fleet-page .gc-hud-select-trigger:hover{
  border-color: rgba(70, 229, 255, 0.38);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.fleet-page .gc-hud-select.is-open .gc-hud-select-trigger{
  border-color: rgba(70, 229, 255, 0.48);
  box-shadow: var(--gc-border-glow-strong), inset 0 0 12px rgba(70, 229, 255, 0.06);
}
.fleet-page .gc-hud-select-value{
  color: rgba(215, 246, 255, 0.94);
}
.fleet-page .gc-hud-select-chevron{
  color: rgba(127, 255, 217, 0.65);
}
.fleet-form-inline .gc-hud-select{
  flex: 1 1 200px;
  min-width: 0;
}
.fleet-mission-speed-row .gc-hud-select,
.fleet-mass-expo-form .gc-hud-select{
  width: 100%;
}
.fleet-page .gc-input,
.fleet-page input.gc-input{
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text);
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.fleet-page .gc-input:hover{
  border-color: rgba(70, 229, 255, 0.42);
  background-color: rgba(6, 12, 26, 0.92);
}
.fleet-page .gc-input:focus{
  outline: none;
  border-color: rgba(70, 229, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(70, 229, 255, 0.14),
    inset 0 0 12px rgba(70, 229, 255, 0.06);
  background-color: rgba(4, 10, 22, 0.96);
}
.fleet-colony-chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-colony-chip{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-border-bright);
  background: var(--gc-panel-bg-2);
  color: var(--gc-text-soft);
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.fleet-colony-chip::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--gc-neon-cyan);
  border-left: 1px solid var(--gc-neon-cyan);
  opacity: 0.45;
  pointer-events: none;
}
.fleet-colony-chip:hover{
  border-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.08);
  color: var(--gc-text);
  box-shadow: inset 0 0 12px rgba(70, 229, 255, 0.08);
}
.fleet-colony-chip:hover::after{ opacity: 1; }
.fleet-colony-chip.is-selected,
.fleet-colony-chip.is-active.is-selected{
  border-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.1);
  color: var(--gc-text);
  box-shadow: var(--gc-border-glow-strong);
}
.fleet-colony-chip.is-selected::after{ opacity: 1; }
.fleet-chip-label{
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.fleet-chip-coords{
  font-size: 0.76rem;
  opacity: 0.9;
}
.fleet-colony-chip--expedition{
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.04);
  color: var(--gc-text-soft);
}
.fleet-colony-chip--expedition::after{
  border-color: var(--gc-neon-gold);
}
.fleet-colony-chip--expedition .fleet-chip-label{ color: var(--gc-neon-gold); }
.fleet-colony-chip--expedition.is-selected,
.fleet-colony-chip--expedition:hover{
  border-color: var(--gc-neon-gold);
  background: rgba(255, 176, 32, 0.1);
  box-shadow: inset 0 0 12px rgba(255, 176, 32, 0.08), 0 0 0 1px rgba(255, 176, 32, 0.2);
}
.fleet-preview-hud{
  position: relative;
  margin: 14px 0;
  padding: 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border-strong);
  background: var(--gc-panel-bg);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.fleet-preview-hud::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gc-scanline);
  pointer-events: none;
  opacity: 0.25;
}
.fleet-preview-hud::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gc-neon-cyan);
  border-left: 1px solid var(--gc-neon-cyan);
  pointer-events: none;
}
.fleet-preview-hud.is-expedition{
  border-color: rgba(70, 229, 255, 0.28);
}
.fleet-preview-hud.is-ready{
  box-shadow: inset 0 0 0 1px rgba(95, 211, 141, 0.12);
}
.fleet-preview-hud.is-blocked{
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.12);
}
.fleet-preview-hud-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}
.fleet-preview-mission-badge{
  color: var(--gc-neon-cyan);
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(70, 229, 255, 0.08);
}
.fleet-preview-hud.is-expedition .fleet-preview-mission-badge{
  color: var(--gc-neon-gold);
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
}
.fleet-preview-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
@media (max-width: 520px){
  .fleet-preview-grid{ grid-template-columns: 1fr; }
}
.fleet-preview-stat{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fleet-preview-stat-label{
  font-size: 0.66rem;
  font-family: var(--gc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}
.fleet-preview-stat-value{
  font-size: 0.86rem;
  color: var(--gc-text);
  word-break: break-word;
}
.fleet-send-submit{
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fleet-send-submit:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.fleet-send-submit-icon{
  font-size: 0.75rem;
  opacity: 0.85;
}
.fleet-resource-row--metal label{ color: #94a3b8; }
.fleet-resource-row--crystal label{ color: #7dd3fc; }
.fleet-resource-row--fuel label{ color: #fbbf24; }
.fleet-resource-input{
  width: 100%;
  padding: 6px 8px;
  text-align: center;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.18);
  background: rgba(3, 8, 18, 0.85);
  color: var(--gc-neon-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
}
.fleet-slots-value{ color: var(--gc-neon-cyan); font-weight: 700; }
.fleet-preview-box{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.58);
}
.fleet-preview-row{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gc-text-soft);
}
.fleet-preview-mission-status{
  font-weight: 600;
  text-align: right;
}
.fleet-preview-mission-status.is-ok{ color: var(--gc-success, #5fd38d); }
.fleet-preview-mission-status.is-blocked{ color: var(--gc-danger, #ff6b6b); }
.fleet-mission-feedback{
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.45);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gc-text-soft);
}
.fleet-mission-feedback.is-info{
  border-color: rgba(70, 229, 255, 0.22);
  background: rgba(70, 229, 255, 0.06);
}
.fleet-mission-feedback.is-ok{
  border-color: rgba(95, 211, 141, 0.28);
  background: rgba(95, 211, 141, 0.08);
  color: var(--gc-text);
}
.fleet-mission-feedback.is-warn{
  border-color: rgba(255, 196, 86, 0.28);
  background: rgba(255, 196, 86, 0.08);
  color: var(--gc-text);
}
.fleet-mission-feedback-text{ margin: 0; }
.fleet-active-card--expedition{
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(8, 16, 36, 0.42);
}
.fleet-active-mission--expedition{ color: var(--gc-neon-gold); }
.fleet-active-mission--collect{ color: var(--gc-neon-cyan); }
.fleet-active-mission--transport{ color: rgba(127, 255, 217, 0.88); }
.fleet-active-mission--spy{ color: #7dd3fc; }
.fleet-active-mission--attack{ color: #fca5a5; }
.fleet-active-mission--colonize{ color: #86efac; }
.fleet-active-mission--recycle{ color: #fbbf24; }
.fleet-ship-row--mission-focus{
  outline: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--gc-radius-sm, 6px);
}
.galaxy-fleet-action--recycle{ color: #fbbf24; }
.galaxy-fleet-action--recycle:hover{ color: #fcd34d; }
.fleet-preview-stat--debris .fleet-preview-stat-value{ color: #fbbf24; }
.gc-expedition-report{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-expedition-card{
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(8, 16, 36, 0.92) 0%, rgba(5, 10, 22, 0.88) 100%);
}
.gc-expedition-card::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gc-expedition-accent, rgba(125, 211, 252, 0.75));
}
.gc-expedition-card-top{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.gc-expedition-card-icon{
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--gc-radius-sm);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gc-expedition-accent, #7dd3fc);
  border: 1px solid color-mix(in srgb, var(--gc-expedition-accent, #7dd3fc) 35%, transparent);
  background: color-mix(in srgb, var(--gc-expedition-accent, #7dd3fc) 12%, transparent);
}
.gc-expedition-card-headings{
  flex: 1;
  min-width: 0;
}
.gc-expedition-card-title{
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-text);
  line-height: 1.25;
}
.gc-expedition-card-badge{
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.62rem;
  font-family: var(--gc-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-expedition-accent, #7dd3fc);
  border: 1px solid color-mix(in srgb, var(--gc-expedition-accent, #7dd3fc) 40%, transparent);
  background: color-mix(in srgb, var(--gc-expedition-accent, #7dd3fc) 10%, transparent);
}
.gc-expedition-card-meta{
  margin: 10px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--gc-text-soft);
}
.gc-expedition-card-desc{
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gc-text);
}
.gc-expedition-card-coords{
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gc-neon-cyan);
  opacity: 0.85;
}
.gc-expedition-card--fund{
  --gc-expedition-accent: #5eead4;
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(135deg, rgba(6, 28, 28, 0.92) 0%, rgba(5, 14, 24, 0.9) 100%);
}
.gc-expedition-card--disturbance{
  --gc-expedition-accent: #fbbf24;
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(135deg, rgba(36, 24, 6, 0.92) 0%, rgba(14, 12, 8, 0.9) 100%);
}
.gc-expedition-card--alert{
  --gc-expedition-accent: #fb923c;
  border-color: rgba(251, 146, 60, 0.32);
  background: linear-gradient(135deg, rgba(36, 14, 8, 0.92) 0%, rgba(18, 8, 10, 0.9) 100%);
}
.gc-expedition-card--relic{
  --gc-expedition-accent: #ffb020;
  border-color: rgba(255, 176, 32, 0.34);
  background: linear-gradient(135deg, rgba(24, 18, 8, 0.94) 0%, rgba(12, 10, 8, 0.92) 100%);
}
.gc-expedition-card--anomaly{
  --gc-expedition-accent: #94a3b8;
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(12, 18, 32, 0.92) 0%, rgba(8, 12, 22, 0.9) 100%);
}
.gc-expedition-panel{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.12);
  background: rgba(5, 10, 22, 0.42);
}
.gc-expedition-panel-title{
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-family: var(--gc-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gc-text-soft);
}
.gc-expedition-fleet-summary{
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--gc-text);
}
.gc-expedition-loot-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.gc-expedition-loot-chip{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(45, 212, 191, 0.07);
}
.gc-expedition-loot-chip--metal{
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.06);
}
.gc-expedition-loot-chip--crystal{
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(125, 211, 252, 0.07);
}
.gc-expedition-loot-chip--fuel{
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.07);
}
.gc-expedition-loot-label{
  font-size: 0.72rem;
  color: var(--gc-text-soft);
}
.gc-expedition-loot-value{
  font-family: var(--gc-mono);
  font-size: 0.95rem;
  color: var(--gc-neon-cyan);
}
.gc-expedition-loot-empty{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.04);
}
.gc-expedition-loot-empty-mark{
  font-family: var(--gc-mono);
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.45);
}
.gc-expedition-loot-empty-text{
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.72);
}
.gc-expedition-panel--loot-empty .gc-expedition-panel-title{
  opacity: 0.75;
}
.gc-expedition-report--ancient_stash .gc-expedition-loot-chip{
  border-color: rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.08);
}
.gc-expedition-report--ancient_stash .gc-expedition-loot-value{
  color: #fcd34d;
}
.fleet-form-error{
  color: var(--gc-danger, #ff6b6b);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.fleet-active-list{ display: flex; flex-direction: column; gap: 8px; }
.fleet-active-card{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
  background: var(--gc-panel-bg-2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.fleet-active-row{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.fleet-active-mission{ font-weight: 600; color: var(--gc-text); }
.fleet-active-status{ color: var(--gc-accent); font-size: 0.85rem; }
.fleet-ship-chip{
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  background: rgba(70, 229, 255, 0.08);
  font-size: 0.78rem;
}
.fleet-preset-list{ list-style: none; margin: 0; padding: 0; }
.fleet-preset-item{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(120, 190, 255, 0.1);
}
.fleet-preset-type{
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.25);
}
.fleet-preset-actions{ margin-left: auto; display: flex; gap: 4px; }
.fleet-panel-disabled{ opacity: 0.72; }
.fleet-coming-soon{
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255, 200, 80, 0.12);
  color: #ffc850;
}
.fleet-logistics-actions{ display: flex; gap: 8px; flex-wrap: wrap; }

/* Logistics page (Genesis HUD — aligned with fleet / buildings) */
.logistics-page .logistics-tabs{
  margin: 0 0 12px;
}
.logistics-page .logistics-tab{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.logistics-page .logistics-tab.is-disabled,
.logistics-page .logistics-tab:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.logistics-page .logistics-tab-badge{
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.logistics-slots-badge{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.logistics-slots-free{
  font-size: 0.72rem;
  color: var(--gc-text-dim);
}
.logistics-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px){
  .logistics-layout{ grid-template-columns: 1fr; }
}
.logistics-layout-col{ min-width: 0; }
.logistics-hub-row{ margin-bottom: 12px; }
.logistics-hub-select{ width: 100%; max-width: 100%; }
.logistics-sources-fieldset{ margin-top: 4px; }
.logistics-sources-list{
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logistics-source-card[hidden]{ display: none; }
.logistics-source-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(5, 10, 22, 0.5);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.logistics-source-label:hover{
  border-color: rgba(70, 229, 255, 0.28);
  background: rgba(7, 14, 32, 0.62);
}
.logistics-source-card.is-selected .logistics-source-label{
  border-color: rgba(70, 229, 255, 0.55);
  box-shadow: var(--gc-border-glow-soft), inset 0 0 0 1px rgba(70, 229, 255, 0.12);
  background: rgba(7, 18, 40, 0.72);
}
.logistics-source-cb{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.logistics-source-check{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(120, 190, 255, 0.35);
  background: rgba(3, 8, 18, 0.8);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.logistics-source-card.is-selected .logistics-source-check{
  border-color: rgba(70, 229, 255, 0.75);
  background: rgba(70, 229, 255, 0.2);
  box-shadow: var(--gc-border-glow-soft);
}
.logistics-source-card.is-selected .logistics-source-check::after{
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 4px auto 0;
  border-radius: 2px;
  background: var(--gc-accent);
}
.logistics-source-card-body{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.logistics-source-head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.logistics-source-name{
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: 0.02em;
}
.logistics-source-active-tag{
  font-size: 0.62rem;
}
.logistics-source-coords{
  font-size: 0.82rem;
  color: var(--gc-text-dim);
}
.logistics-source-resources{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--gc-text-soft);
}
.logistics-empty-colonies,
.logistics-phase-hint{
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px dashed rgba(120, 190, 255, 0.2);
  background: rgba(5, 10, 22, 0.35);
}
.logistics-form-row{ margin-bottom: 14px; }
.logistics-hint{ margin: 4px 0 0; }
.logistics-plan-hud{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(5, 12, 28, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.logistics-plan-hud::before{
  content: "";
  display: block;
  height: 2px;
  margin: -10px -12px 10px;
  border-radius: var(--gc-radius-sm) var(--gc-radius-sm) 0 0;
  background: linear-gradient(90deg, transparent, rgba(70, 229, 255, 0.45), transparent);
}
.logistics-plan-hud.is-warning{
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(40, 28, 8, 0.45);
}
.logistics-plan-hud.is-warning::before{
  background: linear-gradient(90deg, transparent, rgba(255, 176, 32, 0.5), transparent);
}
.logistics-plan-hud-head{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.logistics-plan-badge{
  letter-spacing: 0.08em;
}
.logistics-summary{
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--gc-text-soft);
}
.logistics-error{ margin: 10px 0 0; }
.logistics-actions{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 190, 255, 0.1);
}
.logistics-page .gc-fieldset,
.logistics-page .fleet-ships-fieldset{
  border: none;
  margin: 0;
  padding: 0;
}
.logistics-page .gc-fieldset-legend{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: var(--gc-primary);
  font-weight: 800;
  padding: 0 0 6px;
}
.fleet-empty, .fleet-unavailable, .fleet-preset-empty{ color: var(--gc-text-dim); }

/* Alliance */
.alliance-roadmap{ margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(120, 190, 255, 0.12); }
.alliance-roadmap-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: var(--gc-primary);
  font-weight: 900;
  margin-bottom: 8px;
}
.alliance-pill-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.alliance-note{ margin-top: 10px; color: var(--gc-text-dim); }

/* =========================
   21) Ranking
   ========================= */
.ranking-panel-full{ width: 100%; }

.ranking-page,
.ranking-panel-body,
.ranking-table-content{
  max-width: 100%;
  overflow-x: hidden;
}

.gc-ranking-panel-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.gc-ranking-panel-head-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gc-ranking-my-strip{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}

.gc-ranking-my-rank,
.gc-ranking-my-score{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(5, 10, 22, 0.62);
  min-width: 0;
  max-width: min(168px, 100%);
}

.gc-ranking-my-label{
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.gc-ranking-my-value{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  color: var(--gc-primary-2);
}

.gc-ranking-body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.gc-ranking-tabs{
  padding: 4px 0 8px;
  max-width: 100%;
  min-width: 0;
}

.ranking-hint{ margin-top: 10px; color: var(--gc-text-soft); }

.ranking-table-wrapper{
  max-width: 100%;
  overflow-x: hidden;
}

/* Social ranking list */
.gc-ranking{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gc-ranking-desktop{ display: block; }
.gc-ranking-mobile{ display: none; }

.gc-ranking-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.gc-ranking-table thead th{
  padding: 8px 12px;
  text-align: left;
  color: var(--gc-text-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  border-bottom: 1px solid rgba(120, 190, 255, 0.14);
}

.gc-ranking-table thead th.gc-ranking-score,
.gc-ranking-table tbody td.gc-ranking-score{
  text-align: right;
  width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-ranking-table thead th.gc-ranking-place,
.gc-ranking-table tbody td.gc-ranking-place{
  width: 72px;
}

.gc-ranking-table thead th.gc-ranking-col-alliance,
.gc-ranking-table tbody td.gc-ranking-col-alliance{
  width: 180px;
}

.gc-ranking-row td{
  padding: 12px;
  vertical-align: middle;
  background: rgba(5, 10, 22, 0.58);
  border-top: 1px solid rgba(120, 190, 255, 0.10);
  border-bottom: 1px solid rgba(120, 190, 255, 0.10);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.gc-ranking-row td:first-child{
  border-left: 1px solid rgba(120, 190, 255, 0.10);
  border-radius: var(--gc-radius-sm) 0 0 var(--gc-radius-sm);
}

.gc-ranking-row td:last-child{
  border-right: 1px solid rgba(120, 190, 255, 0.10);
  border-radius: 0 var(--gc-radius-sm) var(--gc-radius-sm) 0;
}

.gc-ranking-row:hover td{
  background: rgba(8, 16, 34, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.gc-ranking-row.is-me td{
  background: rgba(0, 220, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 255, 0.22);
}

.gc-ranking-row--top td{
  background: rgba(12, 20, 38, 0.72);
}

.gc-ranking-row--top-1 .gc-ranking-place-num{
  color: #ffd86a;
  text-shadow: 0 0 12px rgba(255, 216, 106, 0.35);
}

.gc-ranking-row--top-2 .gc-ranking-place-num{
  color: #d8e4ff;
}

.gc-ranking-row--top-3 .gc-ranking-place-num{
  color: #d4a574;
}

.gc-ranking-place{
  width: 64px;
  white-space: nowrap;
}

.gc-ranking-place-num{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gc-primary-2);
}

.gc-ranking-col-player{ min-width: 0; width: auto; }

.gc-ranking-player,
.gc-ranking-player-trigger{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.gc-ranking-player-trigger{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  border-radius: var(--gc-radius-sm);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.gc-ranking-player-trigger:hover,
.gc-ranking-player-trigger:focus-visible{
  background: rgba(0, 220, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 255, 0.18);
  outline: none;
}

.gc-ranking-player-meta{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.gc-ranking-player-name-row{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.gc-commander-prefix,
.gc-ranking-commander-prefix{
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-text-soft);
  flex-shrink: 0;
}

.gc-commander-name,
.gc-ranking-player-name{
  font-weight: 700;
  color: var(--gc-primary-2);
}

.gc-player-card-commander .gc-commander-prefix{
  margin-right: 0.35em;
}

.gc-ranking-player-title{
  color: var(--gc-text-soft);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-ranking-badges{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gc-ranking-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 2px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.24);
  background: rgba(8, 16, 34, 0.92);
  line-height: 1;
}
.gc-ranking-badge-img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(70, 229, 255, 0.18));
}

.gc-ranking-badge--rare{ border-color: rgba(168, 120, 255, 0.45); }
.gc-ranking-badge--epic{ border-color: rgba(255, 190, 80, 0.5); }
.gc-ranking-badge--legendary{
  border-color: rgba(255, 216, 106, 0.55);
  box-shadow: 0 0 10px rgba(255, 216, 106, 0.18);
}

.gc-ranking-avatar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(4, 10, 24, 0.85);
  overflow: hidden;
}

.gc-ranking-avatar-img{
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gc-ranking-avatar-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gc-primary-2);
  background: linear-gradient(145deg, rgba(0, 220, 255, 0.12), rgba(80, 120, 255, 0.08));
}

.gc-ranking-avatar-fallback--violet{ color: #c4b5fd; }
.gc-ranking-avatar-fallback--amber{ color: #fcd34d; }
.gc-ranking-avatar-fallback--emerald{ color: #6ee7b7; }
.gc-ranking-avatar-fallback--rose{ color: #fda4af; }

.gc-ranking-alliance{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--gc-radius-pill);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(8, 16, 34, 0.72);
  color: var(--gc-text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-ranking-alliance--none{
  color: var(--gc-text-dim);
  border-style: dashed;
  opacity: 0.85;
}

.gc-ranking-score{
  text-align: right;
  font-family: var(--gc-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--gc-text);
}

.gc-ranking-score--active{
  font-weight: 700;
  color: var(--gc-primary-2);
}

.gc-ranking-mobile-score-inline{
  margin-left: auto;
  font-weight: 700;
  color: var(--gc-primary-2);
  white-space: nowrap;
}

.gc-ranking-mobile-card{
  padding: 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(5, 10, 22, 0.58);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.gc-ranking-mobile-card + .gc-ranking-mobile-card{
  margin-top: 10px;
}

.gc-ranking-mobile-card.is-me{
  border-color: rgba(0, 220, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 255, 0.18);
}

.gc-ranking-mobile-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gc-ranking-mobile-player .gc-ranking-player{
  align-items: flex-start;
}

.gc-ranking-mobile-scores{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 190, 255, 0.12);
}

.gc-ranking-mobile-score{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gc-ranking-mobile-score-label{
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gc-ranking-mobile-score-value{
  font-family: var(--gc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gc-primary-2);
  font-weight: 700;
}

@media (max-width: 820px){
  .gc-ranking-desktop{ display: none; }
  .gc-ranking-mobile{ display: block; }
  .gc-ranking-mobile-scores{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ranking-state{
  padding: 18px 12px;
  text-align: center;
  color: var(--gc-text-soft);
}
.ranking-state-loading{ color: var(--gc-primary-2); }
.ranking-state-error{ color: #ff8a8a; }
.ranking-empty{ color: var(--gc-text-dim); padding: 12px 4px; }
.you-pill{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 196, 0, 0.55);
  background: rgba(40, 28, 0, 0.55);
  color: #ffe58a;
  font-size: 0.76rem;
  margin-right: 8px;
}

/* =========================
   22) Utilities
   ========================= */
.gc-muted{ color: var(--gc-text-dim); }
.gc-mono{ font-family: var(--gc-mono); }

/* ==========================================================================
   SCORE DELTA POP + PULSE (HUD)
   Works with: <a class="gc-header-pill gc-score-pill"> ... </a>
   Inserts: <span class="gc-score-delta">+123</span> via JS
   ========================================================================== */
.gc-score-pill{
  position: relative;
  overflow: visible;
}

/* pulse on pill container (JS adds: .gc-score-pulse) */
.gc-score-pill.gc-score-pulse{
  animation: gcScorePulse 720ms ease-out 1;
}
@keyframes gcScorePulse{
  0% { transform: translateZ(0) scale(1); filter: brightness(1); }
  35% { transform: translateZ(0) scale(1.02); filter: brightness(1.25); }
  100% { transform: translateZ(0) scale(1); filter: brightness(1); }
}

/* delta chip — single global node (GC-546A2); removed from DOM after animation */
.gc-score-pill .gc-score-delta{
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 8px;
  border-radius: var(--gc-radius-sm);

  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2px;
  line-height: 1;

  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  user-select: none;
  animation-fill-mode: none;

  background: rgba(6, 255, 244, 0.10);
  border: 1px solid rgba(6, 255, 244, 0.35);
  box-shadow:
    0 0 0 1px rgba(6, 255, 244, 0.10) inset,
    0 12px 30px rgba(0, 0, 0, 0.60),
    0 0 20px rgba(6, 255, 244, 0.20);

  color: rgba(220, 255, 252, 0.98);
  text-shadow:
    0 0 12px rgba(6, 255, 244, 0.45),
    0 0 30px rgba(6, 255, 244, 0.22);
}

.gc-score-pill .gc-score-delta.show{
  opacity: 1;
  transform: translateY(-6px) scale(1);
  animation: gcDeltaFloat 980ms ease-out 1;
  animation-fill-mode: none;
}
@keyframes gcDeltaFloat{
  0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(0.2px); }
  20% { opacity: 1; transform: translateY(-8px) scale(1); filter: blur(0); }
  70% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce){
  .gc-score-pill.gc-score-pulse{ animation: none; }
  .gc-score-pill .gc-score-delta,
  .gc-score-pill .gc-score-delta.show{
    animation: none;
    transition: none;
  }
}

/* optional shine on score number when pulsing */
.gc-score-pill.gc-score-pulse #hud-score-total{
  text-shadow:
    0 0 12px rgba(6, 255, 244, 0.55),
    0 0 34px rgba(6, 255, 244, 0.25);
}

/* ===========================
   BUILD QUEUE (Buildings) – Premium Block wie Research
   =========================== */

.active-build-wrapper{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 14px;
  border-radius: var(--gc-radius-sm);
  background: rgba(10, 18, 34, 0.55);
  border: 1px solid rgba(120, 255, 217, 0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset;
}

.build-icon-large{
  width: 92px;
  height: 92px;
  border-radius: var(--gc-radius-sm);
  background:
    radial-gradient(circle at 50% 38%, rgba(127, 255, 217, 0.12), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(120, 255, 217, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.build-icon-large img{
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(127, 255, 217, 0.25));
}

.active-build-title-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.active-build-name{
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.active-build-level{
  margin-top: 2px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.active-build-desc{
  margin-top: 8px;
  opacity: 0.78;
  line-height: 1.35;
}

.build-progress-outer{
  margin-top: 12px;
}

.build-progress-label{
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  opacity: 0.82;
  margin-bottom: 8px;
}

.build-progress-bar{
  height: 10px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(120, 255, 217, 0.12);
  overflow: hidden;
}

.build-progress-fill{
  height: 100%;
  border-radius: var(--gc-radius-sm);
  background: rgba(127, 255, 217, 0.55);
  box-shadow: 0 0 18px rgba(127, 255, 217, 0.35);
  width: 0%;
}

.build-progress-meta{
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.72;
}

.build-divider{
  margin: 14px 0;
  border: none;
  height: 1px;
  background: rgba(120, 255, 217, 0.12);
}

.build-no-active{
  opacity: 0.75;
  margin: 6px 0 2px 0;
}

/* =========================
   23) Mobile Breakpoints (Mobile-First Alpha)
   Primary targets: 360px, 390px, 430px
   ========================= */

/* WIP / Dev badges */
.gc-nav-wip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gc-nav-wip-badge{
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 229, 138, 0.95);
  background: rgba(40, 28, 0, 0.65);
  border: 1px solid rgba(255, 196, 0, 0.45);
}

.gc-placeholder-page .gc-placeholder-head{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gc-placeholder-page .gc-placeholder-badge{
  font-size: 0.72rem;
}
.gc-placeholder-banner{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 196, 0, 0.28);
  border-radius: var(--gc-radius-sm);
  background: rgba(40, 28, 0, 0.35);
  color: rgba(255, 229, 138, 0.95);
  font-size: 0.88rem;
}
.gc-placeholder-features .gc-placeholder-feature-desc{
  color: var(--gc-text-soft);
}
.gc-placeholder-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gc-placeholder-note{
  margin-top: 14px;
  color: var(--gc-text-muted);
  font-size: 0.88rem;
}

.gc-wip-banner{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 196, 0, 0.38);
  background: rgba(40, 28, 0, 0.42);
  box-shadow: 0 12px 32px rgba(0,0,0,0.40);
}
.gc-wip-banner-icon{ flex: 0 0 auto; font-size: 1.1rem; }
.gc-wip-banner-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 0.86rem;
  color: var(--gc-text-soft);
}
.gc-wip-banner-text strong{
  color: #ffe58a;
  font-size: 0.88rem;
}

/* Horizontal table scroll — no page overflow */
.gc-table-scroll{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}
.gc-table-scroll .table-std{ min-width: 520px; }

/* Bottom nav — hidden on desktop */
.gc-bottom-nav,
.gc-nav-drawer{ display: none; }

.gc-special-root{
  position: fixed;
  right: calc(14px + var(--gc-safe-right));
  bottom: 14px;
  z-index: 74;
  display: block;
}

.gc-special-bar{
  display: grid;
  grid-auto-rows: minmax(44px, auto);
  gap: 6px;
}

.gc-special-bar-btn{
  min-width: 72px;
  min-height: 44px;
  padding: 6px 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 0;
  border: 1px solid rgba(120, 190, 255, 0.34);
  background: rgba(9, 18, 36, 0.92);
  color: var(--gc-text-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.gc-special-bar-btn svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gc-special-bar-btn.is-active,
.gc-special-bar-btn:hover{
  border-color: rgba(70, 229, 255, 0.6);
  color: var(--gc-primary);
  box-shadow: 0 0 0 1px rgba(70, 229, 255, 0.3) inset;
}

.gc-special-window{
  position: fixed;
  right: calc(94px + var(--gc-safe-right));
  bottom: 14px;
  width: min(520px, calc(100vw - 120px));
  max-height: min(72vh, 680px);
  overflow: auto;
  border-radius: 0;
  border: 1px solid var(--gc-border-bright);
  background: linear-gradient(180deg, rgba(8, 16, 34, 0.98), rgba(5, 11, 24, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.52);
  padding: 12px;
}

.gc-special-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.gc-special-head .gc-btn{
  border-radius: 0;
}

.gc-special-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  color: var(--gc-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
}

.gc-special-window-layout{
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.gc-special-window-nav{
  display: grid;
  gap: 6px;
}

.gc-special-window-nav-btn{
  min-height: 32px;
  border-radius: 0;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(9, 18, 36, 0.92);
  color: var(--gc-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.gc-special-window-content h3{
  margin: 0 0 8px;
  font-size: 1rem;
}

.gc-special-intro{
  margin: 0 0 10px;
  color: var(--gc-text-soft);
  font-size: 0.9rem;
}

.gc-special-card{
  margin: 0 0 8px;
  border-radius: 0;
  border: 1px solid rgba(120, 190, 255, 0.17);
  background: rgba(7, 15, 31, 0.82);
  padding: 8px 10px;
}

.gc-special-card summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--gc-primary-2);
}

.gc-special-card p{
  margin: 8px 0 0;
  color: var(--gc-text-soft);
  font-size: 0.88rem;
  line-height: 1.42;
}

.gc-support-form{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.gc-support-grid{
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 8px;
}

.gc-support-field{
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}

.gc-support-field input,
.gc-support-field select,
.gc-support-field textarea,
.gc-support-reply{
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(6, 12, 24, 0.9);
  color: var(--gc-text);
  padding: 8px;
  font: inherit;
}

.gc-support-feedback{
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}

.gc-support-feedback.is-ok{ color: #6fffd8; }
.gc-support-feedback.is-error{ color: #ff8e8e; }

.gc-support-list-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gc-support-list{
  display: grid;
  gap: 8px;
}

.gc-support-empty{
  padding: 10px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(7, 14, 29, 0.76);
  color: var(--gc-text-soft);
  font-size: 0.86rem;
}

.gc-support-ticket{
  border: 1px solid rgba(120, 190, 255, 0.2);
  background: rgba(7, 14, 29, 0.8);
  padding: 8px;
}

.gc-support-ticket > summary{
  cursor: pointer;
  display: grid;
  gap: 2px;
  list-style: none;
}

.gc-support-ticket-subject{
  color: var(--gc-primary);
  font-weight: 800;
}

.gc-support-ticket-meta{
  color: var(--gc-text-soft);
  font-size: 0.76rem;
}

.gc-support-ticket-body{
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.gc-support-timeline{
  display: grid;
  gap: 6px;
}

.gc-support-msg{
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(5, 11, 22, 0.9);
  padding: 6px 8px;
}

.gc-support-msg-meta{
  font-size: 0.72rem;
  color: var(--gc-text-dim);
  margin-bottom: 4px;
}

.gc-support-msg-body{
  color: var(--gc-text-soft);
  white-space: pre-wrap;
}

.gc-support-ticket-controls{
  display: grid;
  gap: 6px;
}

/* Desktop: TCHAT launcher lives in .gc-special-bar; mobile uses floating FAB (chat.css) */
@media (min-width: 769px){
  .gc-chat-fab{
    display: none !important;
  }
}

@media (max-width: 768px){
  :root{
    --gc-header-h: auto;
    --gc-page-pad-y: 14px;
  }

  .gc-body-ingame{
    padding-bottom: calc(var(--gc-bottom-nav-h) + var(--gc-safe-bottom) + 12px);
  }

  /* Hide desktop sidebar; use bottom nav */
  .gc-sidebar-desktop{ display: none !important; }

  .gc-layout{
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 8px;
  }

  /* Header: brand/HUD scroll; resource bar sticks below notch */
  .gc-header{
    position: relative;
    top: auto;
    padding-top: var(--gc-safe-top);
  }

  .gc-header-inner{ padding: 10px 12px; }

  .gc-header-grid{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .gc-hslot-brand{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .gc-hslot-res{
    display: flex !important;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    order: 2;
  }

  .gc-resource-sticky{
    position: sticky;
    top: var(--gc-safe-top);
    z-index: 52;
    width: 100%;
    padding-bottom: 4px;
    background:
      linear-gradient(180deg, rgba(6, 12, 22, 0.94) 0%, rgba(6, 12, 22, 0.88) 72%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .gc-resource-sticky.is-scrolled{
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  }

  .gc-hslot-brand{ order: 1; }
  .gc-hslot-hud{ order: 3; }

  .resource-bar{
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 8px;
    scrollbar-width: thin;
  }

  .res-block{ flex: 0 0 auto; }

  .gc-hslot-hud{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    white-space: normal;
  }

  .gc-hud-cluster{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    white-space: normal;
  }

  .gc-header-pill{
    font-size: 0.76rem;
    padding: 6px 9px;
    max-width: 100%;
  }

  .gc-hud-user{
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .gc-user-info{
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
  }

  .gc-user-name{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
  }

  .logout-btn{
    min-height: var(--gc-touch-min);
    min-width: var(--gc-touch-min);
    padding: 10px 14px !important;
  }

  .gc-title{
    font-size: 0.82rem;
    display: inline;
  }

  /* Cards & panels — mehr vertikaler Abstand */
  .gc-panel{ padding: 14px; margin-bottom: 4px; }
  .gc-panel + .gc-panel{ margin-top: 2px; }

  .gc-grid-2,
  .research-grid,
  .gc-ranking-body{
    gap: clamp(16px, 4vw, 22px);
  }

  .gc-flash-container{ gap: 10px; margin-bottom: 14px; }

  .research-list{ gap: var(--gc-card-gap); }
  .research-item,
  .overview-res-card,
  .galaxy-system-card,
  .ranking-stat{
    margin-bottom: 2px;
  }

  .overview-resources{
    grid-template-columns: 1fr;
    gap: clamp(14px, 3.5vw, 18px);
  }

  .overview-res-card{ padding: 16px; }

  .gc-panel-header{
    flex-direction: column;
    align-items: flex-start;
  }

  .building-tabs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .building-tabs .tab-btn,
  .building-tabs .gc-btn{
    min-height: var(--gc-touch-min);
    width: 100%;
  }

  .gc-btn,
  .gc-btn-sm,
  a.gc-btn{
    min-height: var(--gc-touch-min);
  }

  .btn-upgrade:not(.gc-bld-head-action-btn),
  .btn-research:not(.gc-bld-head-action-btn){
    min-width: var(--gc-touch-min);
    padding: 10px 14px !important;
  }

  .active-build-wrapper,
  .active-research-wrapper{
    grid-template-columns: 1fr;
  }

  .build-icon-large,
  .research-icon-large{
    width: 72px;
    height: 72px;
    margin: 0 auto;
  }

  .section-header{ padding: 12px; margin-bottom: 12px; }

  .motd-banner{
    flex-direction: column;
    align-items: stretch;
  }
  .motd-banner-text{ white-space: normal; }

  /* Bottom navigation */
  .gc-bottom-nav{
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: calc(var(--gc-bottom-nav-h) + var(--gc-safe-bottom));
    padding:
      6px
      max(6px, var(--gc-safe-left))
      calc(6px + var(--gc-safe-bottom))
      max(6px, var(--gc-safe-right));
    gap: 4px;
    background: linear-gradient(180deg, rgba(6,12,22,0.82), rgba(4,8,18,0.98));
    border-top: 1px solid var(--gc-hdr-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.55);
  }

  .gc-bottom-nav-item{
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--gc-touch-min);
    padding: 5px 3px;
    border: none;
    border-radius: var(--gc-radius-sm);
    background: transparent;
    color: var(--gc-text-dim);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.16s ease, background 0.16s ease, transform 0.12s ease;
  }

  .gc-bottom-nav-item:active{
    transform: scale(0.96);
  }

  .gc-bottom-nav-item.active{
    color: var(--gc-primary-2);
    background: rgba(70, 229, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(70, 229, 255, 0.24) inset;
  }

  .gc-bottom-nav-item.active::before{
    content: "";
    position: absolute;
    top: 2px;
    width: 22px;
    height: 3px;
    border-radius: var(--gc-radius-sm);
    background: var(--gc-primary);
    box-shadow: 0 0 12px rgba(70, 229, 255, 0.45);
  }

  .gc-bottom-nav-icon{ font-size: clamp(1.05rem, 4vw, 1.2rem); line-height: 1; }
  .gc-bottom-nav-label{
    font-size: var(--gc-font-nav);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gc-bottom-nav-more.active{
    color: var(--gc-primary);
  }

  /* Drawer (More menu) — class .is-open for smooth animation */
  .gc-nav-drawer{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    visibility: hidden;
  }

  .gc-nav-drawer.is-open{
    pointer-events: auto;
    visibility: visible;
  }

  .gc-nav-drawer-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 14, 0.62);
    opacity: 0;
    transition: opacity 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .gc-nav-drawer.is-open .gc-nav-drawer-backdrop{
    opacity: 1;
  }

  .gc-nav-drawer-panel{
    position: absolute;
    left: max(0px, var(--gc-safe-left));
    right: max(0px, var(--gc-safe-right));
    bottom: 0;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding:
      14px 14px
      calc(14px + var(--gc-safe-bottom));
    border-radius: var(--gc-radius-sm);
    background: rgba(7, 14, 32, 0.98);
    border: 1px solid var(--gc-panel-border);
    box-shadow: var(--gc-shadow-hard);
    transform: translateY(104%) scale(0.98);
    opacity: 0.92;
    transition:
      transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.22s ease;
    will-change: transform, opacity;
  }

  .gc-nav-drawer.is-open .gc-nav-drawer-panel{
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .gc-nav-drawer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .gc-nav-drawer-title{
    font-family: Orbitron, Inter, system-ui, sans-serif;
    font-weight: 800;
    color: var(--gc-primary);
    letter-spacing: 0.05em;
  }

  .gc-nav-drawer-links{
    display: grid;
    gap: 8px;
  }

  .gc-nav-drawer-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--gc-touch-min);
    padding: 12px 14px;
    border-radius: var(--gc-radius-sm);
    border: 1px solid rgba(120, 190, 255, 0.16);
    background: rgba(5, 10, 22, 0.58);
    color: var(--gc-text-soft);
    font-weight: 700;
    font-size: 0.92rem;
  }

  .gc-nav-drawer-link.active{
    border-color: rgba(70, 229, 255, 0.55);
    color: var(--gc-primary-2);
    box-shadow: var(--gc-border-glow);
  }

  .gc-nav-drawer-group{
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .gc-nav-drawer-group-label{
    padding: 4px 14px 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gc-text-dim);
  }

  .gc-nav-drawer-sublink{
    margin-left: 8px;
    min-height: calc(var(--gc-touch-min) - 4px);
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.86rem;
    font-weight: 600;
  }

  body.gc-nav-drawer-open{ overflow: hidden; }

  .gc-special-root{
    right: calc(10px + var(--gc-safe-right));
    bottom: calc(var(--gc-bottom-nav-h) + var(--gc-safe-bottom) + 10px);
  }

  .gc-special-bar{
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    grid-auto-rows: minmax(42px, auto);
    width: min(340px, calc(100vw - 20px));
  }

  .gc-special-bar-btn{
    min-width: 56px;
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }

  .gc-special-window{
    right: calc(10px + var(--gc-safe-right));
    width: min(420px, calc(100vw - 20px));
    max-height: min(62vh, 560px);
    bottom: calc(var(--gc-bottom-nav-h) + var(--gc-safe-bottom) + 64px);
  }

  .gc-special-window-layout{
    grid-template-columns: 1fr;
  }

  .gc-support-grid{
    grid-template-columns: 1fr;
  }
}

/* Narrow phones: 360–390px */
@media (max-width: 390px){
  .gc-header-pill-label{ display: none; }
  .gc-header-pill .res-sep{ display: none; }
  .gc-bottom-nav-label{ font-size: 0.58rem; }
  .res-value, .res-cap, #res-energy{ font-size: 0.74rem; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce){
  .gc-nav-drawer-panel,
  .gc-nav-drawer-backdrop,
  .gc-bottom-nav-item{
    transition: none !important;
  }
}

/* =========================
   24) Desktop Enhancements (981px+)
   ========================= */
@media (min-width: 981px){
  .gc-bottom-nav,
  .gc-nav-drawer{ display: none !important; }

  .gc-body-ingame{ padding-bottom: 0; }

  .gc-sidebar-desktop{
    display: flex;
    position: sticky;
    top: calc(var(--gc-header-h) + 8px);
    max-height: calc(100vh - var(--gc-header-h) - var(--gc-page-pad-y) - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    align-self: start;
  }

  .gc-layout{
    align-items: start;
  }

  .gc-header-cmd{
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .gc-resource-sticky{
    position: static;
    padding-bottom: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}

/* =========================
   26) Command Console Header + Build Queue v1.7
   ========================= */

.gc-header-cmd{
  z-index: 80;
  overflow: visible;
}

.gc-header-cmd.gc-header-planet-menu-open{
  z-index: 90;
}

.gc-header-cmd .gc-header-inner{
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  min-height: 0;
  height: auto;
}

.gc-header-row{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gc-header-row-top{
  position: relative;
  z-index: 30;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gc-header-row-resources{
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
}

.gc-header-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

/* Segmented HUD panels (Score / Online / User) */
.gc-hud-panel{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: var(--gc-radius-sm);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.88), rgba(6, 10, 22, 0.72));
  border: 1px solid rgba(120, 190, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28) inset,
    0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  color: var(--gc-text-soft);
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
}

.gc-hud-panel-score:hover{
  border-color: rgba(70, 229, 255, 0.32);
  box-shadow: var(--gc-border-glow), 0 10px 22px rgba(0, 0, 0, 0.32);
}

.gc-hud-panel-tag{
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(127, 255, 217, 0.62);
  font-weight: 600;
}

.gc-hud-panel-value{ color: rgba(215, 246, 255, 0.94); }
.gc-hud-panel-sep{ opacity: 0.28; font-weight: 300; }

.gc-hud-panel-dot{
  width: 7px;
  height: 7px;
  border-radius: var(--gc-radius-sm);
  background: rgba(120, 255, 220, 0.92);
  box-shadow: 0 0 10px rgba(120, 255, 220, 0.45);
}

.gc-hud-panel-user{
  max-width: min(240px, 42vw);
}

.gc-hud-panel-user .gc-user-name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.gc-header-cmd .gc-logo{
  border-radius: var(--gc-radius-sm);
  padding: 7px 11px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(120, 255, 220, 0.08);
}

.gc-header-cmd .gc-admin-badge{
  border-radius: var(--gc-radius-sm);
  padding: 2px 6px;
  font-size: 0.68rem;
}

/* Resource HUD panels (row 2) — 4 resources in one row */
.gc-header-cmd .resource-bar.resource-bar-cmd{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  max-width: none;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: var(--gc-radius-sm);
}

.gc-header-cmd .hud-res-panel{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: var(--gc-radius-sm);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.88), rgba(6, 10, 20, 0.72));
  border: 1px solid rgba(120, 190, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24) inset,
    0 6px 14px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.gc-header-cmd .hud-res-panel::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(127, 255, 217, 0.35);
  opacity: 0.85;
}

.gc-header-cmd .hud-res-metal::before{ background: rgba(255, 196, 0, 0.55); }
.gc-header-cmd .hud-res-crystal::before{ background: rgba(70, 229, 255, 0.55); }
.gc-header-cmd .hud-res-fuel-cells::before{ background: rgba(180, 120, 255, 0.55); }
.gc-header-cmd .hud-res-energy::before{ background: rgba(35, 242, 166, 0.55); }

.gc-header-cmd .res-rate{
  order: 3;
  flex: 0 0 auto;
  min-height: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(180, 220, 255, 0.72);
  padding-left: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-header-cmd .res-rate[aria-hidden="true"]{
  display: block;
}

.gc-header-cmd .hud-res-label{
  order: 1;
  flex: 0 0 auto;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(127, 255, 217, 0.58);
  font-weight: 600;
  line-height: 1.1;
  padding-left: 2px;
  white-space: nowrap;
}

.gc-header-cmd .hud-res-body{
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 2px;
}

.gc-header-cmd .hud-res-body .res-block{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  border-radius: var(--gc-radius-sm);
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.gc-header-cmd .hud-res-body .res-block-energy.energy-warning{
  border: none;
  box-shadow: none;
}

.gc-header-cmd .hud-res-energy.energy-warning{
  border: 1px solid rgba(255, 120, 120, 0.35) !important;
  box-shadow: 0 0 12px rgba(255, 120, 120, 0.15) !important;
}

/* Legacy pill aliases map to panels */
.gc-header-pill{
  border-radius: var(--gc-radius-sm);
}

.gc-user-info{
  border-radius: var(--gc-radius-sm);
}

/* Build queue (JS-rendered) */
.build-queue-root{ margin-top: 4px; }

.build-queue-list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.build-queue-empty{
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 14, 28, 0.55);
  border: 1px dashed rgba(120, 190, 255, 0.16);
  color: var(--gc-text-dim);
  font-size: 0.82rem;
}

.build-job{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 14, 28, 0.62);
  border: 1px solid rgba(120, 190, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}

.build-job-active{
  border-color: rgba(127, 255, 217, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18) inset,
    0 0 14px rgba(127, 255, 217, 0.08);
}

.build-job-queued{ opacity: 0.88; }

.build-job-icon{
  width: 38px;
  height: 38px;
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(120, 255, 217, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.build-job-icon img{
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.build-job-body{ min-width: 0; position: relative; padding-right: 44px; }

.job-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.job-name{
  font-weight: 600;
  font-size: 0.82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-time{
  font-family: var(--gc-mono);
  font-size: 0.78rem;
  color: rgba(127, 255, 217, 0.92);
  flex-shrink: 0;
}

.job-time-muted{ color: var(--gc-text-dim); }

.build-bar{
  height: 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 255, 217, 0.10);
  overflow: hidden;
}

.build-bar-fill{
  height: 100%;
  border-radius: var(--gc-radius-sm);
  background: linear-gradient(90deg, rgba(70, 229, 255, 0.55), rgba(127, 255, 217, 0.75));
  box-shadow: 0 0 10px rgba(127, 255, 217, 0.25);
}

/* Research queue (JS-rendered, mirrors build queue) */
.research-queue-root{ margin-top: 4px; }

.research-queue-list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.research-queue-empty{
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 14, 28, 0.55);
  border: 1px dashed rgba(120, 190, 255, 0.16);
  color: var(--gc-text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.research-job{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 14, 28, 0.62);
  border: 1px solid rgba(120, 190, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}

.research-job-active{
  border-color: rgba(127, 255, 217, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18) inset,
    0 0 14px rgba(127, 255, 217, 0.08);
}

.research-job-queued{ opacity: 0.88; }

.research-job-icon{
  width: 52px;
  height: 52px;
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(120, 255, 217, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.research-job-icon img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.research-job-body{ min-width: 0; position: relative; padding-right: 52px; }

.research-bar-large{
  height: 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 255, 217, 0.10);
  overflow: hidden;
}

.research-queue-head .gc-panel-subtitle{
  font-family: var(--gc-mono);
  font-size: 0.78rem;
}

.job-badge-active,
.job-badge-queued{
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 255, 217, 0.18);
}

.job-badge-active{
  color: rgba(127, 255, 217, 0.95);
  background: rgba(127, 255, 217, 0.08);
}

.job-badge-queued{
  color: var(--gc-text-dim);
  background: rgba(255, 255, 255, 0.04);
}

/* Segmented tabs on buildings page (less pill) */
.buildings-shell .building-tabs .gc-btn{
  border-radius: var(--gc-radius-sm);
}

/* Header logout + HUD buttons */
.gc-header-cmd .logout-btn,
.gc-header-cmd .gc-btn{
  border-radius: var(--gc-radius-sm);
}

.active-research-wrapper,
.research-progress-bar{
  border-radius: var(--gc-radius-sm);
}

.research-progress-fill{
  border-radius: var(--gc-radius-sm);
}

@media (max-width: 768px){
  .gc-header-cmd .gc-header-row-top{
    gap: 8px;
  }

  .gc-header-meta{
    order: 3;
    width: 100%;
  }

  .gc-hud-user{
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .gc-hud-panel-user{ max-width: min(200px, 55vw); }

  .gc-header-cmd .resource-bar.resource-bar-cmd{
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  .gc-header-cmd .hud-res-label{ display: none; }

  .gc-hud-panel-tag{ display: none; }

  .gc-header-row-resources .gc-resource-sticky{
    width: 100%;
  }
}

@media (max-width: 390px){
  .gc-hud-panel{
    font-size: 0.72rem;
    padding: 4px 7px;
  }

  .gc-header-cmd .resource-bar.resource-bar-cmd{
    grid-template-columns: repeat(4, minmax(88px, 1fr));
  }
}

/* ==========================================================================
   TACTICAL COMMAND UI v2 — Global Overrides
   Sci-Fi Industrial / Sharp / Terminal
   ========================================================================== */

body.gc-body-ingame {
  background-color: var(--gc-bg);
  background-image: var(--gc-bg-img);
  background-attachment: fixed;
}

.section-header {
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg);
  border: 1px solid var(--gc-border-bright);
  box-shadow: var(--gc-border-glow), inset 0 0 0 1px rgba(0,0,0,0.4);
}

.section-title {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: none;
}

.table-std,
.ban-table,
.gc-table {
  border-collapse: collapse;
  font-family: var(--gc-mono);
  font-size: 0.82rem;
}
.table-std th,
.ban-table th,
.gc-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  background: rgba(70, 229, 255, 0.08);
  border-bottom: 1px solid var(--gc-border-bright);
}
.table-std td,
.ban-table td,
.gc-table td {
  border-bottom: 1px solid var(--gc-border);
}
.table-std tbody tr:hover,
.ban-table tbody tr:hover,
.gc-table tbody tr:hover {
  background: rgba(70, 229, 255, 0.04);
}

.gc-bottom-nav {
  border-radius: 0;
  border-top: 1px solid var(--gc-border-bright);
  background: var(--gc-panel-bg);
  box-shadow: inset 0 1px 0 rgba(70, 229, 255, 0.08);
}
.gc-bottom-nav-item {
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.gc-bottom-nav-item.active {
  color: var(--gc-neon-cyan);
  box-shadow: inset 0 -2px 0 var(--gc-neon-cyan);
}

.gc-nav-drawer {
  border-radius: 0;
  border: 1px solid var(--gc-border-bright);
}
.gc-nav-drawer-link {
  border-radius: 0;
  border-left: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.gc-nav-drawer-link.active,
.gc-nav-drawer-link:hover {
  border-left-color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.06);
}

.gc-flash,
.gc-flash-container .gc-flash {
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-border-glow);
  backdrop-filter: none;
}

.gc-hud-panel,
.gc-hud-chip {
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-border);
  background: var(--gc-panel-bg-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}

.gc-score-pill .gc-score-delta {
  border-radius: var(--gc-radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  .admin-panel.is-active,
  .admin-tab-panel.is-active { animation: none; }
  .gc-prog-affordable .gc-bld-prod-delta-val { animation: none; }
  .gc-player-card-spinner { animation: none; }
  .gc-player-card-shell { animation: none; }
  .gc-score-pill.gc-score-pulse { animation: none; }
  .gc-score-pill .gc-score-delta.show { animation: none; }
  .planet-evolution-page .pe-highlight-pulse { animation: none; }
  .gc-progress-smooth,
  .build-bar-fill,
  .build-progress-fill,
  .research-progress-fill,
  .research-bar-fill {
    transition: none !important;
    will-change: auto !important;
  }
}

/* GC-547 — idle / hidden tab: stop compositor-heavy effects */
body.gc-tab-hidden .gc-bg::after {
  opacity: 0;
}

body.gc-tab-hidden .gc-panel::before,
body.gc-tab-hidden .resource-bar::before {
  opacity: 0;
}

body.gc-perf-idle .gc-progress-smooth,
body.gc-perf-idle .build-bar-fill,
body.gc-perf-idle .build-progress-fill,
body.gc-perf-idle .research-progress-fill,
body.gc-perf-idle .research-bar-fill {
  transition: none;
  will-change: auto;
}

/* GC-547C — idle: hide decorative bg stack; GC-548 keep static planet landscape */
body.gc-perf-idle:not(.gc-has-planet-landscape) .gc-bg {
  display: none;
}

body.gc-perf-idle.gc-body-ingame:not(.gc-has-planet-landscape) {
  background-color: var(--gc-bg);
  background-image: none;
}

body.gc-perf-idle.gc-has-planet-landscape.gc-body-ingame {
  background-color: transparent;
  background-image: none;
}

body.gc-perf-idle.gc-has-planet-landscape .gc-bg {
  display: block;
}

body.gc-perf-idle .gc-bg::after {
  content: none;
  display: none;
}

body.gc-perf-idle .gc-panel::before,
body.gc-perf-idle .gc-panel::after {
  display: none;
}

body.gc-perf-idle .resource-bar::before {
  display: none;
}

body.gc-perf-idle .gc-header,
body.gc-perf-idle .gc-header-cmd {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body.gc-perf-idle .gc-header::after {
  display: none;
}

/* ==========================================================================
   PLAYER CARD (global profile modal)
   ========================================================================== */

.gc-player-name {
  color: var(--gc-neon-cyan, #46e5ff);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(70, 229, 255, 0.35);
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.gc-player-name:hover,
.gc-player-name:focus-visible {
  color: #9ef6ff;
  text-shadow: 0 0 12px rgba(70, 229, 255, 0.45);
  outline: none;
}

body.gc-player-card-open,
body.gc-ship-detail-open,
body.gc-planet-manage-open,
body.gc-combat-report-open { overflow: hidden; }

.gc-ship-detail-trigger {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: var(--gc-accent-cyan, #5ee9ff);
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(94, 233, 255, 0.45);
}
.gc-ship-detail-trigger:hover,
.gc-ship-detail-trigger:focus-visible {
  color: #9ef6ff;
  text-decoration-color: rgba(158, 246, 255, 0.75);
  outline: none;
}
.shipyard-ship-card-title .gc-ship-detail-trigger {
  font-size: inherit;
  font-weight: 600;
}
.gc-ship-detail-role {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--gc-text-muted, rgba(180, 200, 230, 0.75));
}
.gc-ship-detail-desc p {
  margin: 0;
  line-height: 1.45;
}
.gc-ship-detail-build {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(94, 233, 255, 0.12);
}
.gc-ship-detail-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}
.gc-ship-detail-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--gc-text-muted, rgba(180, 200, 230, 0.75));
}
.hud-res-fuel-cells.hud-res-no-storage .res-block-fuel-cells {
  gap: 0.35rem;
}

/* --- Modal shell --- */
.gc-player-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
           max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.gc-player-card-modal[hidden] { display: none !important; }

.gc-player-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.gc-player-card-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gc-border-bright, rgba(70, 229, 255, 0.35));
  border-radius: var(--gc-radius-md, 10px);
  background: linear-gradient(160deg, rgba(12, 20, 36, 0.98), rgba(6, 10, 20, 0.98));
  box-shadow: 0 0 40px rgba(70, 229, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: gc-pc-in 0.22s ease-out;
  overflow: hidden;
}
.gc-player-card-dialog[data-theme="cyan"] {
  border-color: rgba(70, 229, 255, 0.4);
  box-shadow: 0 0 36px rgba(70, 229, 255, 0.14);
}
.gc-player-card-dialog[data-theme="violet"] {
  border-color: rgba(168, 120, 255, 0.45);
  box-shadow: 0 0 40px rgba(168, 120, 255, 0.15);
}
.gc-player-card-dialog[data-theme="amber"] {
  border-color: rgba(255, 190, 80, 0.45);
  box-shadow: 0 0 40px rgba(255, 190, 80, 0.12);
}
.gc-player-card-dialog[data-theme="emerald"] {
  border-color: rgba(80, 220, 140, 0.4);
  box-shadow: 0 0 40px rgba(80, 220, 140, 0.12);
}
.gc-player-card-dialog[data-theme="rose"] {
  border-color: rgba(255, 120, 160, 0.4);
  box-shadow: 0 0 40px rgba(255, 120, 160, 0.12);
}

@keyframes gc-pc-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Header --- */
.gc-player-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gc-border, rgba(255, 255, 255, 0.08));
}
.gc-player-card-head-title {
  margin: 0;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Body: content + overlay states --- */
.gc-player-card-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 140px;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.gc-player-card-content {
  min-height: 0;
}
.gc-player-card-content:empty {
  display: none;
}

/* CRITICAL: [hidden] must win over display:flex (fixes stuck "Lade Profil…") */
.gc-player-card-loading[hidden],
.gc-player-card-error[hidden] {
  display: none !important;
}

.gc-player-card-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(6, 10, 20, 0.88);
  color: var(--gc-text-muted, #9aa8c4);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
}
.gc-player-card-loading-text {
  letter-spacing: 0.04em;
}

.gc-player-card-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(70, 229, 255, 0.2);
  border-top-color: var(--gc-neon-cyan, #46e5ff);
  border-radius: 50%;
  animation: gc-pc-spin 0.8s linear infinite;
}
@keyframes gc-pc-spin { to { transform: rotate(360deg); } }

.gc-player-card-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #ff9a9a;
  font-size: 0.9rem;
  background: rgba(6, 10, 20, 0.92);
}

.gc-player-card-modal.is-loading .gc-player-card-content {
  visibility: hidden;
  pointer-events: none;
}

/* --- View shell / profile --- */
.gc-player-card-shell {
  animation: gc-pc-in 0.18s ease-out;
}

.gc-player-card-profile {
  margin-bottom: 16px;
}

.gc-player-card-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.gc-player-card-hero-compact {
  grid-template-columns: auto 1fr;
}

.gc-player-card-hero-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.gc-player-card-avatar-wrap {
  flex-shrink: 0;
}

.gc-player-card-avatar-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--gc-radius-xl);
  line-height: 0;
}
.gc-player-card-avatar-btn:focus-visible {
  outline: 2px solid rgba(70, 229, 255, 0.75);
  outline-offset: 2px;
}
.gc-player-card-avatar-btn:hover .gc-player-card-avatar,
.gc-player-card-avatar-btn:focus-visible .gc-player-card-avatar {
  border-color: rgba(70, 229, 255, 0.75);
  box-shadow: 0 0 14px rgba(70, 229, 255, 0.22);
}

.gc-player-card-avatar-zoom {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.gc-player-card-avatar-zoom[hidden] {
  display: none !important;
}
.gc-player-card-avatar-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(2, 6, 14, 0.9);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.gc-player-card-avatar-zoom-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 420px);
}
.gc-player-card-avatar-zoom-img {
  display: block;
  width: min(88vw, 384px);
  height: min(88vw, 384px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--gc-radius-xl);
  border: 2px solid rgba(70, 229, 255, 0.45);
  box-shadow:
    0 0 36px rgba(70, 229, 255, 0.16),
    0 24px 56px rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.55);
}
.gc-player-card-avatar-zoom-close {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.92);
  border: 1px solid rgba(70, 229, 255, 0.35);
}

.gc-player-card-avatar-zoom-panel--badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(80vw, 320px);
  max-width: min(92vw, 320px);
}
.gc-player-card-avatar-zoom-img--badge {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--gc-radius-lg);
}
.gc-player-card-badge-zoom-caption {
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: var(--gc-text-soft);
}
.gc-player-card-badge-zoom-caption[hidden] {
  display: none !important;
}
.gc-player-card-badge-zoom-title {
  display: block;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-neon-cyan, #46e5ff);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gc-player-card-badge-zoom-desc {
  display: block;
  margin-top: 8px;
  font-family: Orbitron, var(--gc-font-display, Orbitron, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--gc-primary-2, #7fffd9);
  text-shadow: 0 0 12px rgba(127, 255, 217, 0.16);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.gc-player-card-badge-zoom-btn {
  appearance: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  text-align: center;
  width: 100%;
}
.gc-player-card-badge-zoom-btn:hover,
.gc-player-card-badge-zoom-btn:focus-visible {
  outline: none;
  border-color: rgba(70, 229, 255, 0.42);
  box-shadow: 0 0 18px rgba(70, 229, 255, 0.12);
}
.gc-player-card-badge-zoom-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.35);
}
.gc-player-card-badge-zoom-btn:hover .gc-player-card-badge-img,
.gc-player-card-badge-zoom-btn:focus-visible .gc-player-card-badge-img {
  filter: drop-shadow(0 6px 18px rgba(70, 229, 255, 0.28));
}

.gc-player-card-avatar {
  width: 72px;
  height: 72px;
  max-width: 100%;
  border-radius: var(--gc-radius-xl);
  object-fit: cover;
  border: 1px solid rgba(70, 229, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
}
.gc-player-card-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  font-size: 1.6rem;
  color: var(--gc-neon-cyan, #46e5ff);
  border-radius: var(--gc-radius-xl);
  border: 1px solid rgba(70, 229, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.gc-player-card-commander {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  letter-spacing: 0.04em;
  word-break: break-word;
}
.gc-player-card-title-text {
  margin: 0 0 6px;
  color: var(--gc-text-muted, #9aa8c4);
  font-size: 0.88rem;
  word-break: break-word;
}
.gc-player-card-activity {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gc-neon-cyan, #46e5ff);
  opacity: 0.85;
}

/* --- Stats --- */
.gc-player-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.gc-player-card-stat {
  padding: 10px 12px;
  border: 1px solid var(--gc-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--gc-radius-sm, 6px);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.gc-player-card-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gc-text-muted, #9aa8c4);
  margin-bottom: 4px;
}
.gc-player-card-stat-value {
  font-size: 0.95rem;
  word-break: break-word;
}
.gc-player-card-stat-sub {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* --- Bio & badges --- */
.gc-player-card-bio {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 2px solid rgba(70, 229, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
}
.gc-player-card-bio p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gc-player-card-badges-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gc-border, rgba(255, 255, 255, 0.08));
}
.gc-player-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.gc-player-card-badges-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.gc-player-card-badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 8px;
  min-height: 88px;
  border-radius: var(--gc-radius-sm, 6px);
  border: 1px solid rgba(70, 229, 255, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(70, 229, 255, 0.08), transparent 70%),
    rgba(5, 12, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.gc-badge-icon,
.gc-player-card-badge-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(70, 229, 255, 0.22));
}
.gc-player-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--gc-radius-pill);
  border: 1px solid rgba(70, 229, 255, 0.25);
  background: rgba(70, 229, 255, 0.06);
  font-size: 0.78rem;
  max-width: 100%;
}
.gc-player-card-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
  letter-spacing: 0.03em;
}
.gc-player-card-badge-tile.gc-player-card-badge-rare {
  border-color: rgba(168, 120, 255, 0.42);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 120, 255, 0.1), transparent 70%),
    rgba(8, 6, 22, 0.92);
}
.gc-player-card-badge-tile.gc-player-card-badge-epic {
  border-color: rgba(255, 190, 80, 0.48);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 190, 80, 0.1), transparent 70%),
    rgba(18, 12, 6, 0.92);
}
.gc-player-card-badge-tile.gc-player-card-badge-legendary {
  border-color: rgba(255, 220, 120, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 120, 0.12), transparent 70%),
    rgba(20, 14, 4, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 80, 0.12), 0 0 18px rgba(255, 200, 80, 0.08);
}
.gc-player-card-badge-tile.gc-player-card-badge-mythic {
  border-color: rgba(255, 120, 220, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 120, 220, 0.14), transparent 70%),
    rgba(16, 6, 20, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 220, 0.14), 0 0 20px rgba(255, 120, 220, 0.1);
}
.gc-player-card-badge-rare { border-color: rgba(168, 120, 255, 0.45); }
.gc-player-card-badge-epic { border-color: rgba(255, 190, 80, 0.5); }
.gc-player-card-badge-legendary {
  border-color: rgba(255, 220, 120, 0.55);
  background: rgba(255, 200, 80, 0.08);
}

@media (max-width: 520px){
  .gc-player-card-badges-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gc-badge-icon,
  .gc-player-card-badge-img,
  .gc-player-card-badge-option-img {
    width: 32px;
    height: 32px;
  }
  .gc-player-card-badge-tile {
    min-height: 76px;
  }
}

/* --- Private profile --- */
.gc-player-card-private {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--gc-radius-sm, 6px);
  background: rgba(0, 0, 0, 0.2);
}
.gc-player-card-private-msg {
  margin: 6px 0 0;
  color: var(--gc-text-muted, #9aa8c4);
  font-size: 0.88rem;
}

.gc-player-card-error-state {
  text-align: center;
  padding: 24px 12px;
}
.gc-player-card-error-text {
  color: #ff8a8a;
  margin: 0 0 14px;
}

/* --- Edit mode --- */
.gc-player-card-edit .gc-player-card-form {
  margin: 0;
}

.gc-player-card-edit-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.gc-player-card-preview {
  padding: 14px;
  border: 1px dashed rgba(70, 229, 255, 0.28);
  border-radius: var(--gc-radius-sm, 6px);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.gc-player-card-preview[data-theme="violet"] { border-color: rgba(168, 120, 255, 0.35); }
.gc-player-card-preview[data-theme="amber"] { border-color: rgba(255, 190, 80, 0.35); }
.gc-player-card-preview[data-theme="emerald"] { border-color: rgba(80, 220, 140, 0.35); }
.gc-player-card-preview[data-theme="rose"] { border-color: rgba(255, 120, 160, 0.35); }

.gc-player-card-preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-muted, #9aa8c4);
  margin-bottom: 10px;
}
.gc-player-card-bio-preview {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gc-text-muted, #9aa8c4);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 6em;
  overflow: hidden;
}

.gc-player-card-fields {
  min-width: 0;
}

.gc-player-card-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.gc-player-card-field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gc-text-muted, #9aa8c4);
}
.gc-player-card-field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.gc-player-card-field-check-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-player-card-field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--gc-text-muted, #9aa8c4);
  line-height: 1.35;
}

.gc-player-card-fields .gc-input,
.gc-player-card-fields .gc-textarea,
.gc-player-card-fields select.gc-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm, 6px);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text, #d7f6ff);
  font-size: 0.88rem;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.gc-player-card-fields .gc-input::placeholder,
.gc-player-card-fields .gc-textarea::placeholder {
  color: rgba(200, 232, 244, 0.34);
  font-style: italic;
}
.gc-player-card-fields .gc-input:hover,
.gc-player-card-fields .gc-textarea:hover,
.gc-player-card-fields select.gc-input:hover {
  border-color: rgba(70, 229, 255, 0.42);
  background: rgba(6, 12, 26, 0.92);
}
.gc-player-card-fields .gc-input:focus,
.gc-player-card-fields .gc-textarea:focus,
.gc-player-card-fields select.gc-input:focus {
  outline: none;
  border-color: rgba(70, 229, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(70, 229, 255, 0.14),
    inset 0 0 12px rgba(70, 229, 255, 0.06);
  background: rgba(4, 10, 22, 0.96);
}
.gc-player-card-fields select.gc-input {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(127, 255, 217, 0.75) 50%),
    linear-gradient(135deg, rgba(127, 255, 217, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 2px),
    calc(100% - 11px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.gc-player-card-fields select.gc-input option {
  background: #060a16;
  color: var(--gc-text, #d7f6ff);
}
.gc-player-card-fields .gc-input-file {
  padding: 6px 0;
  color: rgba(200, 232, 244, 0.72);
  border-style: dashed;
  cursor: pointer;
}
.gc-player-card-fields .gc-input-file::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: var(--gc-radius-sm, 6px);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text, #d7f6ff);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.gc-player-card-fields .gc-input-file::file-selector-button:hover {
  border-color: rgba(70, 229, 255, 0.42);
  background: rgba(6, 12, 26, 0.92);
  box-shadow: var(--gc-border-glow, 0 0 12px rgba(70, 229, 255, 0.12)), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.gc-player-card-fields .gc-input-file::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: var(--gc-radius-sm, 6px);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text, #d7f6ff);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.gc-player-card-field-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gc-neon-cyan, #46e5ff);
  flex-shrink: 0;
}
.gc-textarea {
  min-height: 88px;
  max-height: 200px;
  resize: vertical;
  line-height: 1.45;
}

.gc-player-card-badges-picker {
  border: 1px solid var(--gc-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--gc-radius-sm, 6px);
  padding: 10px 12px;
  margin: 0 0 12px;
}
.gc-player-card-badges-picker legend {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
}
.gc-player-card-badge-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 2px;
}
.gc-player-card-badge-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px;
  cursor: pointer;
  border-radius: var(--gc-radius-sm, 6px);
  border: 1px solid rgba(70, 229, 255, 0.16);
  background: rgba(5, 12, 24, 0.88);
  text-align: center;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.gc-player-card-badge-option:hover {
  background: rgba(70, 229, 255, 0.08);
  border-color: rgba(70, 229, 255, 0.32);
}
.gc-player-card-badge-option:has(input:checked) {
  border-color: rgba(70, 229, 255, 0.55);
  background: rgba(70, 229, 255, 0.1);
  box-shadow: 0 0 16px rgba(70, 229, 255, 0.12);
}
.gc-player-card-badge-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.gc-player-card-badge-option-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(70, 229, 255, 0.18));
}
.gc-player-card-badge-option-name {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--gc-text-soft);
  overflow-wrap: anywhere;
}

.gc-player-card-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, 0.95) 24%);
  margin: 0 -4px;
  padding-bottom: 4px;
}
.gc-player-card-form-msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--gc-neon-cyan, #46e5ff);
}
.gc-player-card-form-msg[hidden] {
  display: none !important;
}

/* --- Galaxy / alliance name lists --- */
.galaxy-sector-commanders,
.alliance-member-preview {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gc-border, rgba(255, 255, 255, 0.08));
}
.galaxy-commander-list,
.alliance-member-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.galaxy-commander-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.galaxy-commander-score {
  font-size: 0.82rem;
  color: var(--gc-text-muted, #9aa8c4);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .gc-player-card-edit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  .gc-player-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .gc-player-card-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: var(--gc-radius-sm, 6px);
  }
  .gc-player-card-body {
    padding: 12px;
  }
  .gc-player-card-hero-actions {
    justify-content: stretch;
  }
  .gc-player-card-hero-actions .gc-btn {
    width: 100%;
  }
  .gc-player-card-stats {
    grid-template-columns: 1fr;
  }
  .gc-player-card-form-actions {
    flex-direction: column-reverse;
  }
  .gc-player-card-form-actions .gc-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-player-card-dialog,
  .gc-player-card-shell { animation: none; }
  .gc-player-card-spinner { animation: none; }
}

.planet-evolution-page .pe-identity-teaser{
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(127, 255, 217, 0.28);
  background: var(--gc-panel-bg-2);
}
.planet-evolution-page .pe-identity-teaser-ready{
  border-color: rgba(127, 255, 217, 0.45);
  background: rgba(4, 16, 20, 0.94);
}
.planet-evolution-page .pe-identity-teaser-title{
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--gc-accent, #46e5ff);
}
.planet-evolution-page .pe-identity-teaser-bar{
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
}

.gc-planet-teaser{
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: rgba(70, 229, 255, 0.05);
}
.gc-planet-teaser-ready{
  border-color: rgba(127, 255, 217, 0.4);
  box-shadow: 0 0 18px rgba(70, 229, 255, 0.08);
}
.gc-planet-teaser-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
}
.gc-planet-teaser-title{
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--gc-accent, #46e5ff);
}
.gc-planet-teaser-body{
  margin: 0;
  font-size: 0.84rem;
  max-width: 36rem;
}
.gc-planet-teaser-stats{
  display: flex;
  gap: 1rem;
}
.gc-planet-teaser-stat{
  display: grid;
  gap: 0.1rem;
  text-align: right;
}
.gc-planet-teaser-stat-label{
  font-size: 0.72rem;
  color: var(--gc-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gc-planet-teaser-stat-value{
  font-family: var(--gc-mono);
  font-weight: 700;
  color: var(--gc-primary-2);
}
.gc-planet-teaser-progress{
  margin-bottom: 0.5rem;
}
.gc-planet-teaser-next{
  margin: 0 0 0.55rem;
}
.gc-planet-teaser-cta{
  margin-top: 0.25rem;
}

/* --- Planet Evolution --- */
.planet-evolution-page .pe-intro{
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: rgba(70, 229, 255, 0.05);
}
.planet-evolution-page .pe-intro-title{
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--gc-accent, #46e5ff);
}
.planet-evolution-page .pe-intro-list{
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--gc-text-muted, rgba(200, 220, 240, 0.85));
}
.planet-evolution-page .pe-intro-list li + li{
  margin-top: 0.35rem;
}
.planet-evolution-page .pe-trait-effects{
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.planet-evolution-page .pe-trait-chip{
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: var(--gc-radius-xs);
  font-size: 0.72rem;
  line-height: 1.3;
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(8, 22, 38, 0.55);
}
.planet-evolution-page .pe-trait-chip-affinity{
  border-color: rgba(127, 255, 217, 0.35);
  color: rgba(180, 255, 230, 0.95);
}
.planet-evolution-page .pe-trait-chip-unlock{
  border-color: rgba(70, 229, 255, 0.35);
  color: rgba(180, 245, 255, 0.95);
}
.planet-evolution-page .pe-trait-chip-risk,
.planet-evolution-page .pe-trait-chip-block{
  border-color: rgba(255, 140, 100, 0.35);
  color: rgba(255, 200, 170, 0.95);
}
.planet-evolution-page .pe-trait-chip-bonus{
  border-color: rgba(200, 160, 255, 0.35);
  color: rgba(220, 200, 255, 0.95);
}
.planet-evolution-page .pe-highlight-pulse{
  animation: pe-highlight-pulse 2.4s ease-out 1;
  outline: 2px solid rgba(70, 229, 255, 0.55);
  outline-offset: 3px;
}
@keyframes pe-highlight-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(70, 229, 255, 0.45); }
  40%{ box-shadow: 0 0 0 8px rgba(70, 229, 255, 0.12); }
  100%{ box-shadow: none; }
}
.planet-evolution-page .pe-switcher-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.planet-evolution-page .pe-planet-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 10rem;
  text-align: left;
}
.planet-evolution-page .pe-planet-btn.is-active {
  border-color: var(--gc-accent, #46e5ff);
  box-shadow: 0 0 0 1px rgba(70, 229, 255, 0.35);
}
.planet-evolution-page .pe-colonize-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.72;
  cursor: not-allowed;
}
.planet-evolution-page .pe-coming-soon-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}
.planet-evolution-page .pe-planet-meta,
.planet-evolution-page .pe-planet-spec {
  font-size: 0.78rem;
  opacity: 0.75;
}
.planet-evolution-page .pe-main-grid {
  gap: 1rem;
}
.planet-evolution-page .pe-stat-list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.planet-evolution-page .pe-stat-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.planet-evolution-page .pe-stat-row dt {
  margin: 0;
  font-weight: 600;
  opacity: 0.85;
}
.planet-evolution-page .pe-stat-row dd {
  margin: 0;
}
.planet-evolution-page .pe-tag {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: var(--gc-radius-xs);
  border: 1px solid var(--gc-panel-border);
  background: rgba(70, 229, 255, 0.06);
  font-size: 0.82rem;
}
.planet-evolution-page .pe-tag-export {
  border-color: rgba(255, 196, 86, 0.35);
}
.planet-evolution-page .pe-tag-legacy {
  border-color: rgba(180, 140, 255, 0.35);
}
.planet-evolution-page .pe-event-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 120, 80, 0.35);
  border-radius: var(--gc-radius-sm, 6px);
  background: rgba(255, 80, 40, 0.06);
}
.planet-evolution-page .pe-event-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.planet-evolution-page .pe-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.planet-evolution-page .pe-alert-warn {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--gc-radius-xs);
  border: 1px solid rgba(255, 196, 86, 0.4);
  background: rgba(255, 196, 86, 0.08);
  font-size: 0.88rem;
}
.planet-evolution-page .pe-tech-locked {
  opacity: 0.55;
}
.planet-evolution-page .pe-tech-name {
  font-weight: 600;
}
.planet-evolution-page .pe-tech-desc,
.planet-evolution-page .pe-tech-missing {
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.planet-evolution-page .pe-tech-actions {
  white-space: nowrap;
}
.planet-evolution-page .pe-spec-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.planet-evolution-page .pe-page-header {
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-hero {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}
.planet-evolution-page .pe-hero-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 960px) {
  .planet-evolution-page .pe-hero-top {
    grid-template-columns: 1fr;
  }
}
.planet-evolution-page .pe-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-hero-name {
  margin: 0;
  font-size: 1.35rem;
}
.planet-evolution-page .pe-badge {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--gc-radius-pill);
  border: 1px solid var(--gc-panel-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.planet-evolution-page .pe-badge-home {
  border-color: rgba(70, 229, 255, 0.45);
  color: #8eefff;
}
.planet-evolution-page .pe-badge-spec {
  border-color: rgba(255, 196, 86, 0.45);
  color: #ffd98a;
}
.planet-evolution-page .pe-hero-level {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 0.65rem;
}
.planet-evolution-page .pe-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-xp-bar-fill {
  background: linear-gradient(90deg, rgba(255, 196, 86, 0.75), rgba(255, 140, 66, 0.85));
  box-shadow: 0 0 10px rgba(255, 196, 86, 0.25);
}
.planet-evolution-page .pe-progression-summary {
  margin: 0 0 0.75rem;
}
.planet-evolution-page .pe-research-zone .research-queue-list {
  margin-top: 0.35rem;
}
.planet-evolution-page .pe-research-unlock-hint {
  margin: 0.15rem 0 0.45rem;
}
.planet-evolution-page .pe-progress {
  height: 0.45rem;
  border-radius: var(--gc-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.planet-evolution-page .pe-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #46e5ff, #6b9dff);
  transition: width 0.25s ease;
}
.planet-evolution-page .pe-progress-good .pe-progress-fill {
  background: linear-gradient(90deg, #5fd67a, #46e5aa);
}
.planet-evolution-page .pe-progress-xp .pe-progress-fill {
  background: linear-gradient(90deg, #ffc456, #ff8c42);
}
.planet-evolution-page .pe-progress-research .pe-progress-fill {
  background: linear-gradient(90deg, #b48cff, #46e5ff);
}
.planet-evolution-page .pe-hero-metrics {
  display: grid;
  gap: 0.65rem;
}
.planet-evolution-page .pe-metric-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}
.planet-evolution-page .pe-metric-value {
  font-weight: 600;
}
.planet-evolution-page .pe-metric-pct {
  font-size: 0.78rem;
  opacity: 0.8;
}
.planet-evolution-page .pe-hero-score {
  text-align: right;
  min-width: 7rem;
}
.planet-evolution-page .pe-score-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
}
.planet-evolution-page .pe-score-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #46e5ff;
}
.planet-evolution-page .pe-score-dna {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.planet-evolution-page .pe-hero-location {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gc-panel-border);
  font-size: 0.82rem;
  opacity: 0.8;
}

.planet-evolution-page .pe-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .planet-evolution-page .pe-dashboard-layout {
    grid-template-columns: 1fr;
  }
}
.planet-evolution-page .pe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.planet-evolution-page .pe-tab {
  border: 1px solid var(--gc-panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.45rem 0.75rem;
  border-radius: var(--gc-radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-tab.is-active {
  border-color: rgba(70, 229, 255, 0.5);
  background: rgba(70, 229, 255, 0.1);
}
.planet-evolution-page .pe-tab-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: var(--gc-radius-pill);
  background: rgba(255, 120, 80, 0.85);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
}
.planet-evolution-page .pe-tab-panel {
  padding: 0.15rem 0;
}
.planet-evolution-page .pe-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-stat-card {
  padding: 0.75rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
}
.planet-evolution-page .pe-stat-card header {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-stat-numbers {
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}
.planet-evolution-page .pe-section {
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}
.planet-evolution-page .pe-research-job {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  margin-bottom: 0.5rem;
  background: var(--gc-panel-bg-2);
}
.planet-evolution-page .pe-research-job-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}
.planet-evolution-page .pe-locked-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.planet-evolution-page .pe-locked-name {
  font-weight: 600;
}

.planet-evolution-page .pe-trait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.65rem;
}
.planet-evolution-page .pe-trait-card {
  padding: 0.75rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
}
.planet-evolution-page .pe-trait-positive {
  border-color: rgba(95, 214, 122, 0.4);
  background: rgba(4, 18, 10, 0.92);
}
.planet-evolution-page .pe-trait-negative {
  border-color: rgba(255, 120, 80, 0.4);
  background: rgba(22, 8, 6, 0.92);
}
.planet-evolution-page .pe-trait-rare {
  border-color: rgba(180, 140, 255, 0.45);
  background: rgba(12, 8, 22, 0.92);
}
.planet-evolution-page .pe-trait-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.planet-evolution-page .pe-trait-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.planet-evolution-page .pe-trait-rarity {
  font-size: 0.72rem;
  opacity: 0.75;
}
.planet-evolution-page .pe-trait-effect {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.9;
}

.planet-evolution-page .pe-events-feed,
.planet-evolution-page .pe-history-list,
.planet-evolution-page .pe-policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.planet-evolution-page .pe-event-item,
.planet-evolution-page .pe-history-item,
.planet-evolution-page .pe-policy-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-bg-2);
}
.planet-evolution-page .pe-policy-slot-card {
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-policy-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.planet-evolution-page .pe-policy-slot-head h4 {
  margin: 0;
}
.planet-evolution-page .pe-policy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.planet-evolution-page .pe-policy-archetype {
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-inline-header {
  margin-bottom: 0.5rem;
}

.planet-evolution-page .pe-sidebar {
  display: grid;
  gap: 0.75rem;
}
.planet-evolution-page .pe-sidebar-panel .gc-panel-body {
  display: grid;
  gap: 0.45rem;
}
.planet-evolution-page .pe-sidebar-policy {
  padding: 0.45rem 0.55rem;
  border-radius: var(--gc-radius-xs);
  border: 1px solid var(--gc-panel-border);
  font-size: 0.85rem;
}
.planet-evolution-page .pe-spec-active {
  font-weight: 700;
}
.planet-evolution-page .pe-warning {
  padding: 0.45rem 0.55rem;
  border-radius: var(--gc-radius-xs);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-warning-warn {
  border: 1px solid rgba(255, 196, 86, 0.4);
  background: rgba(255, 196, 86, 0.08);
}
.planet-evolution-page .pe-warning-critical {
  border: 1px solid rgba(255, 80, 80, 0.45);
  background: rgba(255, 80, 80, 0.08);
}

/* Planet Evolution — gameplay-first layout */
.planet-evolution-page .pe-hero {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(70, 229, 255, 0.22);
  box-shadow: var(--gc-border-glow);
}
.planet-evolution-page .pe-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.planet-evolution-page .pe-hero-name {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.planet-evolution-page .pe-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.planet-evolution-page .pe-hero-meta {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.82;
}
.planet-evolution-page .pe-badge {
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--gc-radius-pill);
  border: 1px solid var(--gc-panel-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.planet-evolution-page .pe-badge-home {
  border-color: rgba(70, 229, 255, 0.45);
  color: #8eefff;
  background: rgba(70, 229, 255, 0.08);
}
.planet-evolution-page .pe-badge-spec {
  border-color: rgba(180, 140, 255, 0.45);
  color: #cdb8ff;
}
.planet-evolution-page .pe-badge-status-stable {
  border-color: rgba(95, 214, 122, 0.45);
  color: #9ae8a8;
}
.planet-evolution-page .pe-badge-status-pressure {
  border-color: rgba(255, 196, 86, 0.45);
  color: #ffd98a;
}
.planet-evolution-page .pe-badge-status-crisis {
  border-color: rgba(255, 80, 80, 0.5);
  color: #ff9a9a;
}
.planet-evolution-page .pe-hero-score {
  text-align: right;
  min-width: 6rem;
}
.planet-evolution-page .pe-hero-progress {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gc-panel-border);
}
.planet-evolution-page .pe-hero-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.planet-evolution-page .pe-warning-chip {
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
.planet-evolution-page .pe-warning-warn {
  border-color: rgba(255, 196, 86, 0.4);
  color: #ffd98a;
}
.planet-evolution-page .pe-warning-critical {
  border-color: rgba(255, 80, 80, 0.45);
  color: #ff9a9a;
}

.planet-evolution-page .pe-next-evolution {
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--gc-accent, #46e5ff);
}
.planet-evolution-page .pe-next-head {
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-next-priority {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.planet-evolution-page .pe-next-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .planet-evolution-page .pe-next-body,
  .planet-evolution-page .pe-traits-split {
    grid-template-columns: 1fr;
  }
}
.planet-evolution-page .pe-next-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}
.planet-evolution-page .pe-next-desc {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}
.planet-evolution-page .pe-next-unlock {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.2);
  background: rgba(70, 229, 255, 0.05);
}
.planet-evolution-page .pe-next-unlock-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
}
.planet-evolution-page .pe-next-unlock-value {
  font-size: 0.88rem;
  font-weight: 600;
}
.planet-evolution-page .pe-next-cta {
  min-width: 12rem;
}
.planet-evolution-page .pe-next-event,
.planet-evolution-page .pe-next-running,
.planet-evolution-page .pe-next-identity {
  padding: 0.85rem 1rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.18);
}
.planet-evolution-page .pe-next-event {
  border-color: rgba(255, 120, 80, 0.45);
}
.planet-evolution-page .pe-next-event h4 {
  margin: 0.25rem 0 0.65rem;
}
.planet-evolution-page .pe-next-running-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.planet-evolution-page .pe-traits-play {
  margin-bottom: 1.25rem;
}
.planet-evolution-page .pe-section-head {
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-section-title {
  margin: 0;
  font-size: 1.05rem;
}
.planet-evolution-page .pe-traits-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.planet-evolution-page .pe-traits-col-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.planet-evolution-page .pe-traits-col-strengths {
  color: #9ae8a8;
}
.planet-evolution-page .pe-traits-col-weaknesses {
  color: #ff9a9a;
}
.planet-evolution-page .pe-traits-col-grid {
  display: grid;
  gap: 0.65rem;
}
.planet-evolution-page .pe-trait-play-card {
  padding: 0.85rem 1rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
  min-height: 5.5rem;
}
.planet-evolution-page .pe-trait-play-positive,
.planet-evolution-page .pe-trait-play-rare {
  border-color: rgba(95, 214, 122, 0.35);
  background: linear-gradient(135deg, rgba(95, 214, 122, 0.08), rgba(0, 0, 0, 0.12));
}
.planet-evolution-page .pe-trait-play-negative {
  border-color: rgba(255, 120, 80, 0.35);
  background: linear-gradient(135deg, rgba(255, 120, 80, 0.08), rgba(0, 0, 0, 0.12));
}
.planet-evolution-page .pe-trait-play-neutral {
  border-color: rgba(70, 229, 255, 0.25);
}
.planet-evolution-page .pe-trait-play-name {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}
.planet-evolution-page .pe-trait-play-effects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.planet-evolution-page .pe-trait-effect-line {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.planet-evolution-page .pe-trait-play-effect {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.planet-evolution-page .pe-dev-path,
.planet-evolution-page .pe-dev-research {
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-path-active-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-path-pick-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}
.planet-evolution-page .pe-path-tree {
  display: grid;
  gap: 0;
  position: relative;
}
.planet-evolution-page .pe-path-node {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
}
.planet-evolution-page .pe-path-node-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.planet-evolution-page .pe-path-node-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--gc-panel-border);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.planet-evolution-page .pe-path-node:not(:last-child) .pe-path-node-rail::after {
  content: "";
  flex: 1;
  width: 2px;
  margin-top: 0.25rem;
  background: var(--gc-panel-border);
}
.planet-evolution-page .pe-path-node.is-unlocked .pe-path-node-dot {
  border-color: rgba(95, 214, 122, 0.7);
  background: rgba(95, 214, 122, 0.35);
  box-shadow: 0 0 10px rgba(95, 214, 122, 0.35);
}
.planet-evolution-page .pe-path-node.is-next .pe-path-node-dot {
  border-color: rgba(255, 196, 86, 0.8);
  background: rgba(255, 196, 86, 0.35);
  box-shadow: 0 0 12px rgba(255, 196, 86, 0.35);
}
.planet-evolution-page .pe-path-node.is-locked {
  opacity: 0.55;
}
.planet-evolution-page .pe-path-node-body {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.planet-evolution-page .pe-path-node.is-unlocked .pe-path-node-body {
  border-color: rgba(95, 214, 122, 0.3);
}
.planet-evolution-page .pe-path-node.is-next .pe-path-node-body {
  border-color: rgba(255, 196, 86, 0.35);
}
.planet-evolution-page .pe-path-node-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.planet-evolution-page .pe-path-node-state {
  color: #9ae8a8;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.planet-evolution-page .pe-path-node-req {
  font-size: 0.75rem;
  opacity: 0.75;
}
.planet-evolution-page .pe-path-node-unlocks {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-path-node-summary {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.88;
}
.planet-evolution-page .pe-path-tree-compact .pe-path-node {
  padding-bottom: 0.45rem;
}
.planet-evolution-page .pe-path-upgrade {
  margin-top: 0.85rem;
}
.planet-evolution-page .pe-path-locked {
  padding: 0.5rem 0;
}
.planet-evolution-page .pe-path-locked-bar {
  margin-bottom: 0.65rem;
}
.planet-evolution-page .pe-spec-card-play {
  padding: 1rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.15);
}
.planet-evolution-page .pe-spec-card-play .pe-spec-btn {
  width: 100%;
  margin-top: 0.75rem;
}

.planet-evolution-page .pe-research-prog-list {
  margin-top: 0.35rem;
}
.planet-evolution-page .pe-research-prog-list .gc-prog-head {
  grid-template-columns: 2fr 1.1fr 0.75fr 0.9fr;
}
.planet-evolution-page .pe-research-prog-main {
  grid-template-columns: 2fr 1.1fr 0.75fr 0.9fr;
}
.planet-evolution-page .pe-research-row-meta {
  padding: 0 0.75rem 0.65rem 3.25rem;
}
.planet-evolution-page .pe-research-choice-row .pe-research-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.planet-evolution-page .pe-research-queue {
  margin-bottom: 0.75rem;
}

.planet-evolution-page .pe-fold {
  margin-bottom: 0.65rem;
}
.planet-evolution-page .pe-fold-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 600;
  padding: 0.15rem 0;
  list-style: none;
}
.planet-evolution-page .pe-fold-summary::-webkit-details-marker {
  display: none;
}
.planet-evolution-page .pe-fold-badge {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--gc-radius-pill);
  border: 1px solid rgba(70, 229, 255, 0.35);
  color: var(--gc-accent, #46e5ff);
}
.planet-evolution-page .pe-fold-meta {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-left: auto;
}
.planet-evolution-page .pe-fold-body {
  padding-top: 0.75rem;
  border-top: 1px solid var(--gc-panel-border);
  margin-top: 0.55rem;
}

.planet-evolution-page .pe-section-block {
  margin-bottom: 1.25rem;
}
.planet-evolution-page .pe-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.planet-evolution-page .pe-flow-item {
  padding: 0.35rem 0.5rem;
  border-radius: var(--gc-radius-xs);
  font-size: 0.85rem;
}
.planet-evolution-page .pe-flow-ok {
  border-left: 3px solid rgba(95, 214, 122, 0.6);
}
.planet-evolution-page .pe-deficit {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-deficit-warn {
  color: #ffd98a;
}
.planet-evolution-page .pe-deficit-critical {
  color: #ff9a9a;
}
.planet-evolution-page .pe-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}
.planet-evolution-page .pe-spec-card {
  padding: 1rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm, 6px);
}
.planet-evolution-page .pe-spec-card h4 {
  margin: 0 0 0.5rem;
}
.planet-evolution-page .pe-spec-hero {
  border: 1px solid rgba(70, 229, 255, 0.2);
}
.planet-evolution-page .pe-spec-active-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-spec-active-name {
  margin: 0;
  font-size: 1.35rem;
}
.planet-evolution-page .pe-spec-tagline {
  margin: 0.25rem 0 0;
  opacity: 0.85;
  font-size: 0.92rem;
}
.planet-evolution-page .pe-spec-tier-badge {
  padding: 0.35rem 0.65rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-panel-border);
  font-weight: 600;
  white-space: nowrap;
}
.planet-evolution-page .pe-spec-identity {
  margin: 0 0 1rem;
  line-height: 1.45;
}
.planet-evolution-page .pe-spec-roadmap {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-spec-roadmap-step {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  opacity: 0.55;
}
.planet-evolution-page .pe-spec-roadmap-step.is-unlocked {
  opacity: 1;
  border-color: rgba(95, 214, 122, 0.35);
  background: rgba(95, 214, 122, 0.05);
}
.planet-evolution-page .pe-spec-roadmap-step.is-next {
  opacity: 1;
  border-color: rgba(255, 196, 86, 0.4);
}
.planet-evolution-page .pe-spec-roadmap-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.planet-evolution-page .pe-spec-unlock-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-spec-upgrade {
  padding: 0.75rem;
  border-radius: var(--gc-radius-sm);
  border: 1px dashed rgba(70, 229, 255, 0.35);
  margin-bottom: 0.75rem;
}
.planet-evolution-page .pe-spec-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}
.planet-evolution-page .pe-spec-match {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #9ae8a8;
  white-space: nowrap;
}
.planet-evolution-page .pe-spec-preview-tiers {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
}
.planet-evolution-page .pe-spec-preview-tier {
  font-size: 0.82rem;
}
.planet-evolution-page .pe-spec-preview-tier-label {
  font-weight: 600;
  margin-right: 0.35rem;
}
.planet-evolution-page .pe-spec-locked-details {
  margin-top: 0.75rem;
}
.planet-evolution-page .pe-spec-locked-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}
.planet-evolution-page .pe-secondary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gc-panel-border);
}
.planet-evolution-page .pe-sec-tab {
  border: 1px solid var(--gc-panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.45rem 0.8rem;
  border-radius: var(--gc-radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-sec-tab.is-active {
  border-color: rgba(70, 229, 255, 0.5);
  background: rgba(70, 229, 255, 0.1);
}
.planet-evolution-page .pe-research-zone {
  margin-bottom: 1rem;
}
.planet-evolution-page .pe-research-zone h4 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  opacity: 0.85;
}
.planet-evolution-page .pe-research-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  margin-bottom: 0.5rem;
}
.planet-evolution-page .pe-research-meta {
  margin: 0.35rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.planet-evolution-page .pe-research-missing {
  color: var(--ogx-warn, #e8a317);
}
.planet-evolution-page .pe-research-card h5 {
  margin: 0 0 0.35rem;
}
.planet-evolution-page .pe-research-unlock {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
}
.planet-evolution-page .pe-research-locked {
  opacity: 0.7;
}
.planet-evolution-page .pe-research-later summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.planet-evolution-page .pe-req-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
}
.planet-evolution-page .pe-event-decision {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 120, 80, 0.4);
}
.planet-evolution-page .pe-event-urgent {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #ff9a7a;
  margin-bottom: 0.35rem;
}
.planet-evolution-page .pe-event-state {
  font-size: 0.78rem;
  opacity: 0.7;
}
.planet-evolution-page .pe-empty-state,
.planet-evolution-page .pe-empty-inline {
  font-size: 0.88rem;
  opacity: 0.85;
}
.planet-evolution-page .pe-legacy-block {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gc-panel-border);
}
@media (max-width: 768px) {
  .planet-evolution-page .pe-traits-col-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
  }
  .planet-evolution-page .pe-trait-play-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .planet-evolution-page .pe-research-prog-list .gc-prog-head {
    display: none;
  }
  .planet-evolution-page .pe-research-prog-main {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Player messages (inbox) — Genesis Colonies panel language
   ========================================================================== */

.gc-messages-nav-badge,
.gc-messages-hud-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border: 1px solid rgba(70, 229, 255, 0.45);
  border-radius: var(--gc-radius-sm);
  background: rgba(70, 229, 255, 0.14);
  color: var(--gc-primary-2);
  font-family: var(--gc-mono);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--gc-btn-glow-1);
}

.gc-messages-nav-badge.hidden,
.gc-messages-hud-badge.hidden,
.gc-messages-nav-badge[hidden],
.gc-messages-hud-badge[hidden] {
  display: none !important;
}

.gc-hud-panel-messages {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.gc-hud-panel-messages .gc-chat-fab-badge {
  top: -4px;
  right: -4px;
}

.gc-hud-panel-messages:hover {
  border-color: var(--gc-panel-border-strong);
  box-shadow: var(--gc-border-glow);
}

/* Header planet switcher — clean HUD panel (matches score / messages) */
.gc-hslot-planet-switcher{
  position: relative;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 180px;
  min-width: 0;
  max-width: min(340px, 40vw);
}
.gc-planet-switcher{
  position: relative;
  z-index: 40;
  width: 100%;
  min-width: 0;
}
.gc-planet-switcher.is-open{
  z-index: 200;
}
.gc-planet-switcher-trigger{
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 5px 10px;
  cursor: default;
  text-align: left;
  white-space: nowrap;
}
.gc-planet-switcher[data-multi="1"] .gc-planet-switcher-trigger{
  cursor: pointer;
}
.gc-planet-switcher[data-multi="1"] .gc-planet-switcher-trigger:hover{
  border-color: rgba(70, 229, 255, 0.32);
  box-shadow: var(--gc-border-glow), 0 10px 22px rgba(0, 0, 0, 0.32);
}
.gc-planet-switcher-body{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.gc-planet-switcher-name{
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(215, 246, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.gc-planet-switcher-coord{
  font-size: 0.72rem;
  color: rgba(127, 255, 217, 0.75);
}
.gc-planet-switcher-chevron{
  flex: 0 0 auto;
  font-size: 0.65rem;
  line-height: 1;
  color: rgba(127, 255, 217, 0.65);
  margin-left: 2px;
}
.gc-planet-switcher-menu{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  max-height: min(240px, 45vh);
  overflow-y: auto;
}
.gc-planet-switcher-menu[hidden]{
  display: none !important;
}
.gc-planet-switcher-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--gc-radius-sm);
  background: transparent;
  color: var(--gc-text-soft);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.gc-planet-switcher-item:hover{
  background: rgba(70, 229, 255, 0.06);
  border-color: rgba(70, 229, 255, 0.14);
}
.gc-planet-switcher-item.is-active{
  background: rgba(70, 229, 255, 0.1);
  border-color: rgba(70, 229, 255, 0.28);
}
.gc-planet-switcher-item-name{
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(215, 246, 255, 0.94);
}
.gc-planet-switcher-item-meta{
  font-size: 0.72rem;
  color: var(--gc-text-dim);
}
.gc-planet-switcher.is-open .gc-planet-switcher-trigger{
  border-color: rgba(70, 229, 255, 0.38);
  box-shadow: var(--gc-border-glow);
}
.gc-planet-switcher.is-busy{
  opacity: 0.6;
  pointer-events: none;
}

/* Shared HUD select — same pattern as header planet switcher */
.gc-hud-select{
  position: relative;
  width: 100%;
  min-width: 0;
}
.gc-hud-select.is-open{
  z-index: 120;
}
.gc-hud-select-native{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gc-hud-select-trigger{
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
}
.gc-hud-select-trigger:hover{
  border-color: rgba(70, 229, 255, 0.32);
  box-shadow: var(--gc-border-glow), 0 10px 22px rgba(0, 0, 0, 0.32);
}
.gc-hud-select-value{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(215, 246, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-hud-select-chevron{
  flex: 0 0 auto;
  font-size: 0.65rem;
  line-height: 1;
  color: rgba(127, 255, 217, 0.65);
}
.gc-hud-select-menu{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  max-height: min(240px, 45vh);
  overflow-y: auto;
}
.gc-hud-select-menu[hidden]{
  display: none !important;
}
.gc-hud-select-item{
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--gc-radius-sm);
  background: transparent;
  color: rgba(215, 246, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.gc-hud-select-item:hover{
  background: rgba(70, 229, 255, 0.06);
  border-color: rgba(70, 229, 255, 0.14);
}
.gc-hud-select-item.is-active{
  background: rgba(70, 229, 255, 0.1);
  border-color: rgba(70, 229, 255, 0.28);
}
.gc-hud-select-item:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.gc-hud-select.is-open .gc-hud-select-trigger{
  border-color: rgba(70, 229, 255, 0.38);
  box-shadow: var(--gc-border-glow);
}
.gc-hud-select-trigger:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 980px){
  .gc-layout .gc-sidebar-desktop{
    position: relative;
    z-index: 2;
  }
  .gc-planet-switcher.is-open{
    z-index: 250;
  }
}

@media (max-width: 768px){
  .gc-hslot-planet-switcher{
    order: 2;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
  .gc-planet-switcher-trigger .gc-hud-panel-tag{
    display: none;
  }
}

.gc-messages-page {
  max-width: 100%;
  overflow-x: hidden;
}

.gc-messages-page .gc-messages-panel {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
}

.gc-messages-page .gc-messages-head {
  padding: var(--gc-panel-pad);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gc-panel-border);
}

.gc-messages-unread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.35);
  background: rgba(70, 229, 255, 0.1);
  color: var(--gc-primary-2);
  font-family: var(--gc-mono);
  font-weight: 700;
}

.gc-messages-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-messages-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--gc-panel-pad) var(--gc-panel-pad);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.gc-messages-page .gc-messages-tabs.building-tabs {
  padding: 10px 0 12px;
  gap: 8px;
}

.gc-messages-page .gc-messages-tabs .tab-btn {
  border-radius: var(--gc-radius-sm);
}

.gc-messages-layout {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  gap: 12px;
  min-height: 440px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-messages-inset {
  border: 1px solid var(--gc-panel-border);
  background: var(--gc-panel-bg-2);
  border-radius: var(--gc-radius-sm);
  box-shadow: inset 0 1px 0 rgba(70, 229, 255, 0.04);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-messages-list-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 62vh;
  min-width: 0;
}

.gc-messages-list {
  display: grid;
  min-width: 0;
  max-width: 100%;
}

.gc-messages-list.is-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.gc-messages-item {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
  padding: 12px 14px 12px 18px;
  border: 0;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
  background: transparent;
  color: var(--gc-text);
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.gc-messages-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.14s ease;
}

.gc-messages-item:hover {
  background: rgba(70, 229, 255, 0.06);
}

.gc-messages-item.is-active {
  background: rgba(70, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(70, 229, 255, 0.14);
}

.gc-messages-item.is-active::before {
  background: var(--gc-primary);
}

.gc-messages-item.is-unread::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gc-primary);
  box-shadow: 0 0 8px rgba(70, 229, 255, 0.65);
}

.gc-messages-item.is-unread .gc-messages-item-subject {
  color: var(--gc-primary-2);
  font-weight: 800;
}

.gc-messages-item-subject {
  font-size: 0.9rem;
  padding-right: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-messages-item .gc-galaxy-coord-link,
.gc-messages-detail-subject .gc-galaxy-coord-link,
.gc-messages-detail-body .gc-galaxy-coord-link,
.gc-combat-teaser .gc-galaxy-coord-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.gc-messages-plain-line {
  margin: 0 0 0.45rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.gc-messages-plain-line:last-child {
  margin-bottom: 0;
}

.gc-messages-item-meta {
  font-size: 0.74rem;
  color: var(--gc-text-soft);
  font-family: var(--gc-mono);
}

.gc-messages-item-teaser {
  display: block;
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-messages-item-teaser .gc-combat-teaser {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gc-messages-item--report .gc-messages-item-subject,
.gc-messages-item--combat .gc-messages-item-subject {
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.gc-messages-detail-wrap {
  min-height: 320px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gc-messages-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  flex: 1;
}

.gc-messages-detail-subject {
  margin: 0;
  font-size: 1.08rem;
  color: var(--gc-primary-2);
  letter-spacing: 0.02em;
}

.gc-messages-detail-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
  font-family: var(--gc-mono);
}

.gc-messages-detail-body {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.55);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gc-messages-detail-body--report {
  white-space: normal;
  padding: 0;
  background: transparent;
  border: none;
}

.gc-messages-detail-body--report .gc-combat-teaser,
.gc-messages-detail-body--report .gc-combat-report-shell {
  max-width: 100%;
  min-width: 0;
}

.gc-spy-report {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-spy-report-head {
  padding: 12px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.55);
}

.gc-spy-report-coords {
  font-family: var(--gc-mono);
  font-size: 1rem;
  color: var(--gc-neon-cyan);
  letter-spacing: 0.04em;
}

.gc-spy-report-owner {
  margin-top: 4px;
  font-weight: 700;
}

.gc-spy-report-planet,
.gc-spy-report-probes {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--gc-text-soft);
}

.gc-spy-report-section {
  padding: 10px 12px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.45);
}

.gc-spy-report-section--locked {
  opacity: 0.72;
}

.gc-spy-report-section-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-family: var(--gc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}

.gc-spy-report-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}

.gc-spy-report-kv:last-child {
  border-bottom: none;
}

.gc-spy-report-kv strong {
  font-family: var(--gc-mono);
  color: var(--gc-neon-cyan);
}

.gc-spy-report-energy,
.gc-spy-report-activity-row {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gc-text-soft);
}

.gc-spy-report-locked,
.gc-spy-report-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gc-text-soft);
  font-style: italic;
}

/* --- Combat report modal (playercard shell, wider) --- */
.gc-combat-report-modal .gc-combat-report-dialog {
  width: min(820px, 100%);
  max-height: min(92vh, 880px);
  border-radius: var(--gc-radius-sm);
}

.gc-combat-report-shell .gc-player-card-stat {
  border-radius: 0;
}

.gc-combat-report-modal .gc-player-card-body {
  overflow: auto;
}

.gc-combat-report-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px 8px;
}

.gc-combat-report-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 14px 18px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: linear-gradient(135deg, rgba(8, 16, 32, 0.9), rgba(4, 8, 18, 0.85));
}

.gc-combat-report-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(70, 229, 255, 0.75);
}

.gc-combat-report-hero--victory::before {
  background: rgba(80, 220, 140, 0.85);
}

.gc-combat-report-hero--defeat::before {
  background: rgba(255, 120, 160, 0.85);
}

.gc-combat-report-hero--draw::before {
  background: rgba(255, 190, 80, 0.85);
}

.gc-combat-report-hero--open::before,
.gc-combat-report-hero--intel::before {
  background: rgba(120, 180, 255, 0.85);
}

.gc-combat-report-hero--expedition::before {
  background: rgba(160, 120, 255, 0.8);
}

.gc-combat-report-hero--intel {
  border-color: rgba(120, 180, 255, 0.35);
  box-shadow: inset 0 0 24px rgba(120, 180, 255, 0.06);
}

.gc-combat-report-hero--expedition {
  border-color: rgba(160, 120, 255, 0.35);
  box-shadow: inset 0 0 24px rgba(160, 120, 255, 0.06);
}

.gc-combat-report-hero-desc {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--gc-text-soft);
}

.gc-combat-report-fleet-status {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}

.gc-combat-report-shell--intel .gc-combat-report-overview--intel {
  border-color: rgba(120, 180, 255, 0.22);
}

.gc-combat-report-panel--locked {
  opacity: 0.72;
}

.gc-spy-report-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}

.gc-spy-report-stats-row strong {
  color: var(--gc-text);
}

.gc-combat-report-activity-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(70, 229, 255, 0.08);
  font-size: 0.78rem;
}

.gc-combat-report-activity-row:last-child {
  border-bottom: none;
}

.gc-spy-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 180, 255, 0.15);
}

.gc-messages-detail-actions .gc-btn-danger {
  text-decoration: none;
}

.gc-combat-report-hero--victory {
  border-color: rgba(80, 220, 140, 0.35);
  box-shadow: inset 0 0 24px rgba(80, 220, 140, 0.06);
}

.gc-combat-report-hero--defeat {
  border-color: rgba(255, 120, 160, 0.35);
  box-shadow: inset 0 0 24px rgba(255, 120, 160, 0.06);
}

.gc-combat-report-hero--draw {
  border-color: rgba(255, 190, 80, 0.35);
}

.gc-combat-report-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gc-combat-report-hero-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.25);
  background: rgba(70, 229, 255, 0.08);
}

.gc-combat-report-hero-text {
  flex: 1;
  min-width: 0;
}

.gc-combat-report-coords {
  font-size: 1.05rem;
  color: var(--gc-neon-cyan);
  letter-spacing: 0.05em;
}

.gc-combat-report-vs {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.92rem;
}

.gc-combat-report-result-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 5px 10px;
  border-radius: 0;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(70, 229, 255, 0.35);
  color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gc-combat-report-result-main {
  font-size: 0.72rem;
  line-height: 1.2;
}

.gc-combat-report-result-sub {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--gc-text-soft);
  text-transform: none;
  font-family: var(--gc-font-ui, system-ui, sans-serif);
}

.gc-combat-report-hero--victory .gc-combat-report-result-badge {
  border-color: rgba(80, 220, 140, 0.45);
  color: #86efac;
  background: rgba(80, 220, 140, 0.12);
}

.gc-combat-report-hero--defeat .gc-combat-report-result-badge {
  border-color: rgba(255, 120, 160, 0.45);
  color: #fda4af;
  background: rgba(255, 120, 160, 0.1);
}

.gc-combat-report-stats {
  margin: 0;
}

.gc-combat-report-overview {
  padding: 12px 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.18);
  background: linear-gradient(160deg, rgba(8, 14, 28, 0.9), rgba(5, 9, 18, 0.95));
}

.gc-combat-report-battlefield {
  margin: 6px 0 10px;
  font-size: 0.92rem;
  color: var(--gc-neon-cyan);
  letter-spacing: 0.02em;
}

.gc-combat-report-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .gc-combat-report-sides {
    grid-template-columns: 1fr;
  }
}

.gc-combat-report-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.gc-combat-report-side--attacker {
  border-left: 3px solid rgba(80, 220, 140, 0.7);
}

.gc-combat-report-side--defender {
  border-left: 3px solid rgba(255, 120, 160, 0.7);
}

.gc-combat-report-side-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}

.gc-combat-report-side-name {
  font-size: 0.88rem;
  color: var(--gc-text);
}

.gc-combat-report-side-planet {
  font-size: 0.76rem;
  color: var(--gc-text-soft);
}

.gc-combat-report-side-coords {
  font-size: 0.78rem;
  color: var(--gc-neon-cyan);
}

.gc-combat-report-side-units {
  font-size: 0.74rem;
  color: var(--gc-text-soft);
}

.gc-combat-report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .gc-combat-report-columns {
    grid-template-columns: 1fr;
  }
}

.gc-combat-report-panel {
  padding: 12px 14px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.5);
}

.gc-combat-report-panel-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gc-text-soft);
}

.gc-combat-report-panel--research .gc-combat-report-research-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
  line-height: 1.45;
}

.gc-combat-research-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.gc-combat-research-col {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(70, 229, 255, 0.14);
  background: rgba(5, 12, 24, 0.55);
  border-radius: var(--gc-radius-sm);
}

.gc-combat-research-col-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-text-soft);
}

.gc-combat-research-side--attacker .gc-combat-research-bonus {
  color: rgba(134, 239, 172, 0.95);
}

.gc-combat-research-side--defender .gc-combat-research-bonus {
  color: rgba(253, 164, 175, 0.95);
}

.gc-combat-research-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(70, 229, 255, 0.08);
  font-size: 0.78rem;
}

.gc-combat-research-row:last-child {
  border-bottom: none;
}

.gc-combat-research-tech {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gc-text);
}

.gc-combat-research-level {
  color: var(--gc-neon-cyan);
  font-size: 0.76rem;
}

.gc-combat-research-bonus {
  font-weight: 700;
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .gc-combat-research-columns {
    grid-template-columns: 1fr;
  }
}

.gc-combat-report-panel--forces-wrap > .gc-combat-report-panel-body {
  padding: 0;
  border: none;
  background: transparent;
}

.gc-combat-report-columns--forces {
  gap: 10px;
}

.gc-combat-report-panel--inline {
  padding: 12px 14px;
  border: 1px solid var(--gc-panel-border);
  border-radius: var(--gc-radius-sm);
  background: rgba(5, 10, 22, 0.5);
}

.gc-combat-report-panel--attacker.gc-combat-report-panel--inline {
  border-left: 3px solid rgba(80, 220, 140, 0.55);
}

.gc-combat-report-panel--defender.gc-combat-report-panel--inline {
  border-left: 3px solid rgba(255, 120, 160, 0.55);
}

.gc-combat-force-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.gc-combat-force-head--solo {
  justify-content: flex-end;
}

.gc-combat-force-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}

.gc-combat-force-count {
  font-size: 0.78rem;
  color: var(--gc-neon-cyan);
}

.gc-combat-defender-forces {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-combat-force-block + .gc-combat-force-block {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gc-combat-losses-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .gc-combat-losses-split,
  .gc-combat-round-split {
    grid-template-columns: 1fr;
  }
}

.gc-combat-loss-col {
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.gc-combat-loss-col--attacker {
  border-left: 3px solid rgba(80, 220, 140, 0.65);
}

.gc-combat-loss-col--defender {
  border-left: 3px solid rgba(255, 120, 160, 0.65);
}

.gc-combat-loss-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.gc-combat-loss-col-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}

.gc-combat-loss-col-total {
  font-size: 0.88rem;
  color: var(--gc-neon-cyan);
}

.gc-combat-loss-col--attacker .gc-combat-unit-chip {
  border-left-color: rgba(80, 220, 140, 0.55);
}

.gc-combat-loss-col--defender .gc-combat-unit-chip {
  border-left-color: rgba(255, 120, 160, 0.55);
}

.gc-combat-report-panel--losses .gc-combat-report-panel-title {
  margin-bottom: 12px;
}

.gc-combat-unit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gc-combat-unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 0;
  border: 1px solid rgba(120, 190, 255, 0.18);
  border-left: 2px solid rgba(70, 229, 255, 0.45);
  background: rgba(8, 14, 28, 0.65);
  font-size: 0.8rem;
}

.gc-combat-unit-chip-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
}

.gc-combat-unit-chip-qty {
  font-family: var(--gc-mono);
  color: var(--gc-neon-cyan);
}

.gc-combat-report-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gc-text-soft);
  font-style: italic;
}

.gc-combat-round {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  margin-bottom: 6px;
  overflow: hidden;
}

.gc-combat-round[open] {
  border-color: rgba(70, 229, 255, 0.22);
}

.gc-combat-round-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  list-style: none;
}

.gc-combat-round-title-main {
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.gc-combat-round-title-stats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
}

.gc-combat-round-stat--atk {
  color: rgba(134, 239, 172, 0.95);
}

.gc-combat-round-stat--def {
  color: rgba(253, 164, 175, 0.95);
}

.gc-combat-round-stat-sep {
  color: var(--gc-text-dim);
}

.gc-combat-round-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gc-combat-round-half {
  min-width: 0;
}

.gc-combat-round-half-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-soft);
}

.gc-combat-round-half--attacker .gc-combat-round-half-label {
  color: rgba(134, 239, 172, 0.85);
}

.gc-combat-round-half--defender .gc-combat-round-half-label {
  color: rgba(253, 164, 175, 0.85);
}

.gc-combat-round-title::-webkit-details-marker {
  display: none;
}

.gc-combat-round-body {
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Inbox combat teaser card */
.gc-combat-teaser {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 10px 14px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.2);
  background: linear-gradient(160deg, rgba(10, 18, 34, 0.85), rgba(6, 10, 20, 0.9));
  text-align: left;
}

.gc-combat-teaser::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(70, 229, 255, 0.65);
}

.gc-combat-teaser--victory::before {
  background: rgba(80, 220, 140, 0.75);
}

.gc-combat-teaser--defeat::before {
  background: rgba(255, 120, 160, 0.75);
}

.gc-combat-teaser--draw::before {
  background: rgba(255, 190, 80, 0.75);
}

.gc-combat-teaser--open::before,
.gc-combat-teaser--intel::before {
  background: rgba(120, 180, 255, 0.75);
}

.gc-combat-teaser--expedition::before {
  background: rgba(160, 120, 255, 0.7);
}

.gc-combat-teaser--intel .gc-combat-teaser-badge,
.gc-combat-teaser--open .gc-combat-teaser-badge {
  border-color: rgba(120, 180, 255, 0.4);
  color: #a5c4ff;
}

.gc-combat-teaser--expedition .gc-combat-teaser-badge {
  border-color: rgba(160, 120, 255, 0.4);
  color: #c4b5fd;
}

.gc-combat-teaser--compact {
  padding: 8px 10px;
  gap: 6px;
}

.gc-combat-teaser-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.gc-combat-teaser--compact .gc-combat-teaser-top {
  flex-wrap: wrap;
}

.gc-combat-teaser--compact .gc-combat-teaser-badge {
  display: none;
}

.gc-combat-teaser--compact .gc-combat-teaser-coords,
.gc-combat-teaser--compact .gc-combat-teaser-vs {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.gc-combat-teaser-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: rgba(70, 229, 255, 0.08);
}

.gc-combat-teaser-headings {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gc-combat-teaser-coords {
  font-size: 0.82rem;
  color: var(--gc-neon-cyan);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clickable coordinate links → galaxy view */
a.gc-galaxy-coord-link {
  color: var(--gc-neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 229, 255, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

a.gc-galaxy-coord-link:hover,
a.gc-galaxy-coord-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(70, 229, 255, 0.75);
}

.galaxy-slot-coord a.gc-galaxy-coord-link,
.fleet-active-coords a.gc-galaxy-coord-link,
.gc-planet-switcher-coord a.gc-galaxy-coord-link {
  font-size: inherit;
}

.gc-combat-teaser-vs {
  font-size: 0.76rem;
  color: var(--gc-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-combat-teaser-badge {
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 0.62rem;
  font-family: var(--gc-font-display, Orbitron, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(70, 229, 255, 0.3);
  color: var(--gc-neon-cyan);
  background: rgba(70, 229, 255, 0.08);
}

.gc-combat-teaser-badge-sub {
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gc-text-soft);
  font-family: var(--gc-font-ui, system-ui, sans-serif);
}

.gc-combat-teaser--victory .gc-combat-teaser-badge {
  border-color: rgba(80, 220, 140, 0.4);
  color: #86efac;
}

.gc-combat-teaser--defeat .gc-combat-teaser-badge {
  border-color: rgba(255, 120, 160, 0.4);
  color: #fda4af;
}

.gc-combat-teaser-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--gc-text-soft);
}

.gc-combat-teaser-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gc-text-soft);
}

.gc-combat-teaser-open {
  align-self: flex-start;
}

.gc-messages-item--report .gc-combat-teaser-open,
.gc-messages-item--combat .gc-combat-teaser-open {
  pointer-events: auto;
}

.gc-messages-detail-body .gc-combat-teaser {
  margin-top: 4px;
}

/* Loot chips inside combat modal — square panels, no pills */
.gc-combat-report-shell .gc-expedition-loot-chip {
  border-radius: 0;
  border-left-width: 2px;
}

.gc-combat-report-shell .gc-expedition-loot-grid {
  gap: 6px;
}

.gc-combat-teaser-open.gc-btn {
  border-radius: var(--gc-radius-sm);
}

.gc-messages-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--gc-panel-border);
}

.gc-messages-empty,
.gc-messages-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.25rem;
  color: var(--gc-text-soft);
  font-size: 0.86rem;
  text-align: center;
}

/* Compose modal */
.gc-messages-compose-dialog {
  border: 1px solid var(--gc-panel-border-strong);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-panel-strong);
  color: var(--gc-text);
  padding: 0;
  max-width: 540px;
  width: calc(100% - 2rem);
  box-shadow: var(--gc-btn-glow-2);
}

.gc-messages-compose-dialog::backdrop {
  background: rgba(0, 4, 12, 0.72);
  backdrop-filter: blur(2px);
}

.gc-messages-compose-form {
  display: grid;
  gap: 12px;
  padding: var(--gc-panel-pad);
}

.gc-messages-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gc-panel-border);
}

.gc-messages-compose-head h2 {
  margin: 0;
}

.gc-messages-field {
  display: grid;
  gap: 6px;
}

.gc-messages-field-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gc-text-dim);
  font-weight: 600;
}

.gc-messages-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.82);
  font: inherit;
  font-size: 0.88rem;
  color: var(--gc-text);
}

.gc-messages-input:focus {
  outline: none;
  border-color: rgba(70, 229, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(70, 229, 255, 0.2);
}

.gc-messages-textarea {
  min-height: 140px;
  resize: vertical;
}

.gc-messages-compose-status {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: var(--gc-text-soft);
}

.gc-messages-compose-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .gc-messages-layout {
    grid-template-columns: 1fr;
  }

  .gc-messages-list-wrap {
    max-height: 260px;
  }

  .gc-messages-page .gc-messages-tabs.building-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gc-messages-page .gc-messages-tabs .tab-btn {
    width: 100%;
    min-height: var(--gc-touch-min);
  }
}

/* =========================
   Account options page — Command Console polish
   ========================= */
.gc-options-page {
  max-width: 1120px;
}

.gc-options-page .section-header {
  margin-bottom: 12px;
  padding: 10px 12px 8px;
}

.gc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.gc-options-page .gc-options-panel {
  margin-bottom: 0;
  padding: 0;
}

.gc-options-page .gc-options-panel .gc-panel-header {
  margin-bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, rgba(70, 229, 255, 0.06) 0%, rgba(4, 10, 22, 0.2) 100%);
}

.gc-options-panel-head {
  align-items: flex-start;
}

.gc-options-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 12px 10px;
}

.gc-options-form {
  padding: 8px 0 10px;
  border-top: 1px solid rgba(70, 229, 255, 0.1);
}

.gc-options-form:first-child {
  border-top: none;
  padding-top: 2px;
}

.gc-options-form-head {
  margin-bottom: 6px;
}

.gc-options-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gc-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gc-primary-2);
}

.gc-options-form-kicker::before {
  content: "▸";
  color: var(--gc-neon-cyan);
  font-size: 0.62rem;
}

.gc-options-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: end;
}

.gc-options-field-row-password {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gc-options-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gc-options-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}

.gc-options-current {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.14);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 0 12px rgba(0, 0, 0, 0.35);
  color: var(--gc-text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.gc-options-current-mono {
  font-family: var(--gc-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.gc-options-page .gc-options-input,
.gc-options-page .gc-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--gc-text);
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.gc-options-page .gc-options-input::placeholder,
.gc-options-page .gc-input::placeholder {
  color: rgba(200, 232, 244, 0.34);
  font-style: italic;
}

.gc-options-page .gc-options-input:hover,
.gc-options-page .gc-input:hover {
  border-color: rgba(70, 229, 255, 0.42);
  background: rgba(6, 12, 26, 0.92);
}

.gc-options-page .gc-options-input:focus,
.gc-options-page .gc-input:focus {
  outline: none;
  border-color: rgba(70, 229, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(70, 229, 255, 0.14),
    inset 0 0 12px rgba(70, 229, 255, 0.06);
  background: rgba(4, 10, 22, 0.96);
}

.gc-options-page .gc-options-input:-webkit-autofill,
.gc-options-page .gc-options-input:-webkit-autofill:hover,
.gc-options-page .gc-options-input:-webkit-autofill:focus,
.gc-options-page .gc-input:-webkit-autofill,
.gc-options-page .gc-input:-webkit-autofill:hover,
.gc-options-page .gc-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gc-text);
  caret-color: var(--gc-text);
  border-color: rgba(70, 229, 255, 0.55);
  -webkit-box-shadow: 0 0 0 1000px rgba(5, 10, 22, 0.94) inset;
  box-shadow: 0 0 0 1000px rgba(5, 10, 22, 0.94) inset, 0 0 0 2px rgba(70, 229, 255, 0.12);
  transition: background-color 99999s ease-out 0s;
}

.gc-options-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 2px;
}

.gc-options-save {
  min-height: 38px;
  min-width: 120px;
  padding: 9px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(70, 229, 255, 0.08);
}

.gc-options-save:hover {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(70, 229, 255, 0.18);
}

.gc-options-form-hint {
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--gc-mono);
  letter-spacing: 0.04em;
  color: var(--gc-success);
}

.gc-options-form-hint.gc-options-hint-error {
  color: var(--gc-danger);
}

.gc-options-form-hint.gc-options-hint-success {
  color: var(--gc-neon-cyan);
}

.gc-options-verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(70, 229, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.gc-options-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--gc-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gc-options-verify-badge-ok {
  border: 1px solid rgba(0, 230, 138, 0.45);
  background: rgba(0, 40, 28, 0.4);
  color: var(--gc-success);
  box-shadow: 0 0 10px rgba(0, 230, 138, 0.1);
}

.gc-options-verify-badge-warn {
  border: 1px solid rgba(255, 154, 26, 0.45);
  background: rgba(40, 24, 0, 0.35);
  color: var(--gc-warning);
}

.gc-options-verify-icon {
  font-size: 0.85rem;
}

.gc-options-resend-hint {
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--gc-mono);
}

.gc-options-resend-hint.gc-options-hint-error {
  color: var(--gc-danger);
}

.gc-options-resend-hint.gc-options-hint-success {
  color: var(--gc-neon-cyan);
}

/* Security advisory card */
.gc-options-page .gc-options-security {
  padding: 0;
}

.gc-options-security-card {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 154, 26, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 154, 26, 0.08) 0%, rgba(4, 10, 22, 0.55) 42%, rgba(4, 10, 22, 0.82) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 26, 0.12);
}

.gc-options-security-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.gc-options-security-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 154, 26, 0.45);
  background: rgba(40, 24, 0, 0.45);
  color: var(--gc-warning);
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(255, 154, 26, 0.12);
}

.gc-options-security-title {
  display: block;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-warning);
}

.gc-options-security-lead {
  margin: 3px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gc-text-soft);
}

.gc-options-security-list {
  margin: 0;
  padding: 0 0 0 1rem;
  color: var(--gc-text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.gc-options-security-list li {
  margin-bottom: 4px;
}

.gc-options-security-list li::marker {
  color: rgba(255, 154, 26, 0.75);
}

@media (max-width: 980px) {
  .gc-options-grid {
    grid-template-columns: 1fr;
  }

  .gc-options-field-row-password {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gc-options-field-row {
    grid-template-columns: 1fr;
  }

  .gc-options-page .gc-options-panel .gc-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .gc-options-save {
    width: 100%;
  }
}

/* Orbital Shipyard page */
.shipyard-planet-scope {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--gc-accent-cyan, #5ee9ff);
}
.shipyard-planet-coords {
  opacity: 0.85;
  margin-left: 0.25rem;
}

.shipyard-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.shipyard-queue-list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.shipyard-job {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border-radius: var(--gc-radius-sm);
  background: rgba(8, 14, 28, 0.62);
  border: 1px solid rgba(120, 190, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}
.shipyard-job-active {
  border-color: rgba(127, 255, 217, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18) inset,
    0 0 14px rgba(127, 255, 217, 0.08);
}
.shipyard-job-queued { opacity: 0.88; }
.shipyard-job-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--gc-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(120, 255, 217, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shipyard-job-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.shipyard-job-body {
  min-width: 0;
  position: relative;
  padding-right: 44px;
}
.shipyard-queue-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}
.shipyard-queue-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.shipyard-ship-build-time {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.shipyard-page .shipyard-resource-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.shipyard-ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.gc-ship-card.gc-prog-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 9px;
  min-height: 0;
}

.gc-ship-card.gc-prog-card:hover {
  transform: translateY(-2px);
}

.gc-ship-card-title-btn {
  all: unset;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.gc-ship-card-title-btn:hover,
.gc-ship-card-title-btn:focus-visible {
  color: var(--gc-primary-2);
  text-decoration: underline;
}

.gc-ship-card-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--gc-text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-ship-role-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 154, 26, 0.32);
  background: rgba(255, 154, 26, 0.12);
  color: rgba(255, 205, 140, 0.98);
  white-space: nowrap;
}

.gc-ship-card-subhead {
  display: flex;
  align-items: center;
  margin-top: -2px;
}

.gc-ship-card .gc-bld-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 6px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

.gc-ship-card .shipyard-ship-cost {
  margin: 0;
}

.gc-ship-card .shipyard-ship-build-time {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gc-text-soft);
  letter-spacing: 0.01em;
}

.gc-ship-card-action {
  margin-top: auto;
  padding-top: 2px;
}

.gc-ship-card-action.shipyard-ship-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.gc-ship-card .shipyard-qty-input {
  width: 3.75rem;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gc-text);
  background: rgba(5, 10, 22, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: var(--gc-radius-sm);
}

.gc-ship-card .shipyard-qty-input:focus {
  border-color: rgba(70, 229, 255, 0.55);
  outline: none;
  box-shadow: 0 0 0 1px rgba(70, 229, 255, 0.22);
}

.shipyard-page .gc-ship-card-action .gc-btn-ghost {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gc-text-soft);
}

.gc-defense-role-badge {
  border-color: rgba(147, 112, 255, 0.32);
  background: rgba(147, 112, 255, 0.12);
  color: rgba(210, 190, 255, 0.98);
}

.defense-page .shipyard-ship-grid {
  margin-top: 4px;
}

.gc-ship-card .shipyard-blockers {
  margin-top: 0;
}

.shipyard-blocker-research.is-unmet {
  border-color: rgba(147, 112, 255, 0.42);
  background: rgba(147, 112, 255, 0.12);
  color: rgba(210, 190, 255, 0.96);
}

.shipyard-blocker-building.is-unmet {
  border-color: rgba(255, 120, 90, 0.38);
  background: rgba(255, 120, 90, 0.1);
  color: rgba(255, 185, 165, 0.96);
}

.shipyard-ship-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shipyard-ship-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.2rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  align-items: start;
}

.shipyard-ship-card .shipyard-ship-thumb {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
}

.shipyard-ship-card .shipyard-ship-card-head,
.shipyard-ship-card .shipyard-ship-desc,
.shipyard-ship-card .shipyard-ship-cost,
.shipyard-ship-card .shipyard-ship-build-time,
.shipyard-ship-card .shipyard-ship-actions,
.shipyard-ship-card .shipyard-hint-warn,
.shipyard-ship-card .shipyard-blockers,
.shipyard-ship-card .shipyard-locked-reason {
  grid-column: 2;
}

.shipyard-ship-card .shipyard-ship-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.shipyard-ship-card .shipyard-ship-build-time {
  margin: 0;
  font-size: 0.75rem;
}

.shipyard-ship-card.is-locked {
  opacity: 0.65;
}

.shipyard-ship-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.shipyard-ship-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.shipyard-ship-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gc-accent, #ff9a1a);
}

.shipyard-ship-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.shipyard-ship-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.shipyard-qty-input {
  width: 5rem;
}

.shipyard-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shipyard-inventory-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shipyard-hint-warn {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #e8a040;
}

.shipyard-ship-card--blocked {
  border-color: rgba(255, 75, 106, 0.18);
}

.shipyard-blockers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 0.55rem;
}

.shipyard-blocker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  line-height: 1.25;
  color: var(--gc-text-soft);
}

.shipyard-blocker.is-unmet {
  border-color: rgba(255, 75, 106, 0.38);
  background: rgba(255, 75, 106, 0.1);
  color: rgba(255, 170, 185, 0.96);
}

.shipyard-blocker.is-met {
  border-color: rgba(35, 242, 166, 0.28);
  background: rgba(35, 242, 166, 0.08);
  color: rgba(160, 255, 220, 0.95);
}

.shipyard-blocker-warn.is-unmet {
  border-color: rgba(232, 160, 64, 0.42);
  background: rgba(232, 160, 64, 0.1);
  color: rgba(255, 210, 140, 0.96);
}

.shipyard-blocker-icon {
  flex-shrink: 0;
  font-size: 0.68rem;
  line-height: 1;
}

.shipyard-blocker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipyard-blocker-progress {
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.92;
}

.shipyard-blocker-resource .gc-res-icon {
  width: 14px;
  height: 14px;
}

.gc-cost-chip.is-unmet {
  border-color: rgba(255, 75, 106, 0.38);
  background: rgba(255, 75, 106, 0.1);
}

.gc-cost-chip.is-unmet .gc-cost-val {
  color: rgba(255, 140, 160, 0.96);
}

.fleet-no-ships-panel,
.fleet-shipyard-link-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Empire page (GC-620B shell, GC-620C polish) */
.empire-page {
  display: grid;
  gap: var(--gc-card-gap, 14px);
}

.empire-summary {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(70, 229, 255, 0.08), transparent 52%),
    var(--gc-panel-bg);
}

.empire-summary-value {
  font-weight: 700;
}

.empire-summary-value--score {
  color: var(--gc-primary-2);
}

.empire-summary-value--energy {
  color: var(--gc-neon-green, #7fffd9);
}

.empire-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.empire-section-kicker {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-primary-2);
}

.empire-section-sub {
  margin: 0;
  font-size: 0.82rem;
}

.empire-prod-panel {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(127, 255, 217, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.98), rgba(4, 10, 22, 0.94));
  border-color: rgba(70, 229, 255, 0.22);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(127, 255, 217, 0.08);
}

.empire-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.empire-prod-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 14px 14px 12px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(3, 8, 18, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.empire-prod-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent, rgba(70, 229, 255, 0.9)), transparent);
  opacity: 0.95;
}

.empire-prod-card--metal { --accent: rgba(255, 196, 120, 0.95); }
.empire-prod-card--crystal { --accent: rgba(120, 210, 255, 0.95); }
.empire-prod-card--fuel { --accent: rgba(127, 255, 217, 0.95); }
.empire-prod-card--energy { --accent: rgba(255, 220, 120, 0.95); }

.empire-prod-card-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(70, 229, 255, 0.18));
}

.empire-prod-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.empire-prod-card-label {
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.empire-prod-card-value {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 800;
  color: var(--gc-text);
  line-height: 1.1;
  white-space: nowrap;
}

.empire-prod-card-unit,
.empire-colony-stat-unit {
  margin-left: 1px;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--gc-text-dim);
}

.empire-colonies-section {
  display: grid;
  gap: 12px;
}

.empire-colony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gc-card-gap, 14px);
}

.empire-colony-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(70, 229, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.96), rgba(4, 10, 22, 0.92));
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.empire-colony-card:hover {
  border-color: rgba(70, 229, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.empire-colony-card-head {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.1);
  background: rgba(70, 229, 255, 0.03);
}

.empire-colony-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.empire-colony-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gc-primary-2);
  line-height: 1.25;
  word-break: break-word;
}

.empire-colony-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.empire-colony-coords {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gc-text-dim);
}

.empire-colony-type {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.68rem;
}

.empire-homeworld-badge {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(255, 214, 120, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 196, 80, 0.14), rgba(70, 229, 255, 0.08));
  color: rgba(255, 232, 170, 0.96);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 196, 80, 0.12);
}

.empire-homeworld-badge::before,
.empire-homeworld-badge::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  pointer-events: none;
}

.empire-homeworld-badge::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(255, 214, 120, 0.75);
  border-left: 1px solid rgba(255, 214, 120, 0.75);
}

.empire-homeworld-badge::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid rgba(255, 214, 120, 0.75);
  border-right: 1px solid rgba(255, 214, 120, 0.75);
}

.empire-homeworld-badge-star {
  color: rgba(255, 220, 120, 0.98);
  font-size: 0.72rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 196, 80, 0.45);
}

.empire-colony-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(120, 190, 255, 0.08);
}

.empire-colony-stat {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 12px 10px;
  background: rgba(4, 10, 22, 0.88);
}

.empire-colony-stat-label {
  color: var(--gc-text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empire-colony-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.empire-colony-score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(127, 255, 217, 0.14);
  background: rgba(70, 229, 255, 0.05);
}

.empire-colony-score-label {
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.empire-colony-score-value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gc-neon-green, #7fffd9);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empire-colony-empty {
  margin: 0;
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .empire-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .empire-prod-grid {
    grid-template-columns: 1fr;
  }

  .empire-colony-grid {
    grid-template-columns: 1fr;
  }

  .empire-colony-prod-grid {
    grid-template-columns: 1fr;
  }

  .empire-colony-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .empire-colony-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .empire-prod-card {
    min-height: 68px;
    padding: 12px;
  }

  .empire-colony-score-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .empire-colony-score-value {
    text-align: left;
    width: 100%;
  }
}

/* Empire matrix (GC-620D full matrix) */
.empire-matrix-panel {
  padding: 0;
  overflow: hidden;
  border-color: rgba(70, 229, 255, 0.2);
}

.empire-matrix-panel .empire-section-head {
  padding: 14px 14px 0;
  margin-bottom: 10px;
}

.empire-matrix-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(120, 190, 255, 0.1);
  scrollbar-color: rgba(70, 229, 255, 0.35) rgba(4, 10, 22, 0.6);
  scrollbar-width: thin;
}

.empire-matrix-scroll::-webkit-scrollbar {
  height: 8px;
}

.empire-matrix-scroll::-webkit-scrollbar-track {
  background: rgba(4, 10, 22, 0.72);
}

.empire-matrix-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(70, 229, 255, 0.35), rgba(127, 255, 217, 0.55));
}

.empire-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.empire-matrix th,
.empire-matrix td {
  padding: 8px 11px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
  border-right: 1px solid rgba(120, 190, 255, 0.06);
  vertical-align: middle;
}

.empire-matrix-sticky-col {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 190px;
  max-width: 240px;
  background: rgba(6, 12, 24, 0.98);
  box-shadow: 8px 0 18px rgba(0, 0, 0, 0.28);
}

.empire-matrix-corner {
  z-index: 6;
  text-align: left;
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.empire-matrix-colony-header-row .empire-matrix-colony-head {
  min-width: 132px;
  max-width: 168px;
  text-align: left;
  vertical-align: top;
  background: rgba(70, 229, 255, 0.05);
  border-bottom: 2px solid rgba(70, 229, 255, 0.16);
  position: sticky;
  top: 0;
  z-index: 2;
}

.empire-matrix-colony-head .empire-matrix-colony-name {
  display: block;
  font-weight: 700;
  color: var(--gc-primary-2);
  line-height: 1.25;
  white-space: normal;
}

.empire-matrix-homeworld-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 214, 120, 0.35);
  color: rgba(255, 232, 170, 0.95);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empire-matrix-colony-coords {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--gc-text-dim);
}

.empire-matrix-colony-type {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 0.62rem;
}

.empire-matrix-colony-temp {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  white-space: normal;
}

.empire-matrix-total-head {
  min-width: 88px;
  text-align: right;
  color: var(--gc-neon-green, #7fffd9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(70, 229, 255, 0.08);
  border-bottom: 2px solid rgba(127, 255, 217, 0.22);
  position: sticky;
  top: 0;
  z-index: 2;
}

.empire-matrix-section-row .empire-matrix-section-label {
  text-align: left;
  padding: 0;
  background: rgba(70, 229, 255, 0.08);
  border-top: 1px solid rgba(70, 229, 255, 0.18);
  border-bottom: 1px solid rgba(70, 229, 255, 0.12);
}

.empire-matrix-section-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gc-primary-2);
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.empire-matrix-section-toggle:hover{
  background: rgba(70, 229, 255, 0.06);
  color: var(--gc-neon-cyan);
}

.empire-matrix-section-chevron{
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}

.empire-matrix-section-row.is-collapsed .empire-matrix-section-chevron{
  transform: rotate(-45deg) translateY(1px);
}

.empire-matrix-section-title{
  flex: 1 1 auto;
}

.empire-matrix-data-row.is-section-collapsed{
  display: none;
}

.empire-matrix-account-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 214, 120, 0.28);
  color: rgba(255, 220, 120, 0.92);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.empire-matrix-row-label {
  text-align: left;
  color: var(--gc-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.25;
}

.empire-matrix-data-row:hover td,
.empire-matrix-data-row:hover .empire-matrix-sticky-col {
  background: rgba(70, 229, 255, 0.035);
}

.empire-matrix-cell {
  text-align: right;
  color: var(--gc-text-soft);
  white-space: nowrap;
}

.empire-matrix-cell--production {
  color: var(--gc-neon-green, #7fffd9);
  font-weight: 700;
}

.empire-matrix-cell--account {
  text-align: center;
  color: rgba(255, 220, 120, 0.95);
  font-weight: 700;
  background: rgba(255, 196, 80, 0.05);
}

.empire-matrix-cell--total {
  font-weight: 800;
  color: var(--gc-text);
  background: rgba(70, 229, 255, 0.04);
}

.empire-matrix-cell.is-zero,
.empire-matrix-zero {
  opacity: 0.38;
}

.empire-matrix-unit {
  margin-left: 1px;
  font-size: 0.72em;
  color: var(--gc-text-dim);
  font-weight: 600;
}

.empire-matrix-empty {
  padding: 18px 14px;
  color: var(--gc-text-dim);
}

@media (max-width: 720px) {
  .empire-matrix-sticky-col {
    min-width: 148px;
    max-width: 168px;
    padding: 8px 9px;
  }

  .empire-matrix-colony-header-row .empire-matrix-colony-head {
    min-width: 112px;
    max-width: 140px;
    padding: 8px 9px;
  }

  .empire-matrix th,
  .empire-matrix td {
    padding: 7px 8px;
    font-size: 0.74rem;
  }
}

/* GC-540 — Inventory / Container loot */
.inventory-page .inventory-planet-scope {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gc-text-dim);
}

.inventory-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.inventory-loot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(70, 229, 255, 0.18);
  background:
    linear-gradient(165deg, rgba(12, 22, 38, 0.96) 0%, rgba(6, 10, 18, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(70, 229, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  clip-path: polygon(
    0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px)
  );
}

.inventory-loot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.inventory-loot-card--empty {
  opacity: 0.72;
}

.inventory-loot-card--empty .inventory-loot-card-img {
  filter: grayscale(0.85) brightness(0.72) saturate(0.65);
}

.inventory-loot-card--owned,
.inventory-loot-card--free-ready {
  opacity: 1;
}

.inventory-loot-card--free-ready .inventory-loot-card-img {
  filter: none;
}

.inventory-loot-card--owned .inventory-loot-card-img {
  filter: none;
}

.inventory-loot-card-hero {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px 14px 10px;
  background: radial-gradient(ellipse at 50% 35%, rgba(80, 140, 220, 0.12), transparent 68%);
}

.inventory-loot-card-glow {
  position: absolute;
  inset: 12% 10% 18%;
  border-radius: 0;
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
}

.inventory-loot-card-glow--common { background: rgba(184, 192, 204, 0.35); }
.inventory-loot-card-glow--uncommon { background: rgba(110, 207, 143, 0.42); }
.inventory-loot-card-glow--rare { background: rgba(94, 176, 255, 0.48); }
.inventory-loot-card-glow--epic { background: rgba(199, 125, 255, 0.5); }
.inventory-loot-card-glow--legendary { background: rgba(255, 184, 77, 0.55); }

.inventory-loot-card--owned.inventory-loot-card[data-rarity="legendary"] {
  border-color: rgba(255, 184, 77, 0.45);
  box-shadow: 0 0 24px rgba(255, 184, 77, 0.12), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.inventory-loot-card--owned.inventory-loot-card[data-rarity="epic"] {
  border-color: rgba(199, 125, 255, 0.4);
}

.inventory-loot-card--owned.inventory-loot-card[data-rarity="rare"] {
  border-color: rgba(94, 176, 255, 0.35);
}

.inventory-loot-card-img {
  position: relative;
  z-index: 1;
  width: min(100%, 168px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.inventory-loot-card--owned:hover .inventory-loot-card-img {
  transform: scale(1.04);
}

.inventory-loot-card-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 34px;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  color: #e8f4ff;
  background: rgba(8, 16, 28, 0.92);
  border: 1px solid rgba(70, 229, 255, 0.35);
  box-shadow: 0 0 10px rgba(70, 229, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.inventory-loot-card--owned .inventory-loot-card-stock {
  color: #b8f5c8;
  border-color: rgba(110, 207, 143, 0.45);
}

.inventory-loot-card-body {
  padding: 12px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-loot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.inventory-loot-card-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.inventory-loot-card-hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--gc-text-dim);
}

.inventory-loot-card-cooldown {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--gc-accent-warm, #ffb84d);
  letter-spacing: 0.02em;
}

.inventory-loot-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 14px;
  margin-top: auto;
}

.inventory-loot-card-actions .inventory-open-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 96px;
}

.inventory-container-grid .inventory-rarity-badge {
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  letter-spacing: 0.06em;
}

.inventory-rarity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-rarity-badge--common { color: #b8c0cc; background: rgba(184, 192, 204, 0.12); }
.inventory-rarity-badge--uncommon { color: #6ecf8f; background: rgba(110, 207, 143, 0.14); }
.inventory-rarity-badge--rare { color: #5eb0ff; background: rgba(94, 176, 255, 0.14); }
.inventory-rarity-badge--epic { color: #c77dff; background: rgba(199, 125, 255, 0.14); }
.inventory-rarity-badge--legendary { color: #ffb84d; background: rgba(255, 184, 77, 0.16); }

.inventory-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inventory-item-row,
.inventory-reward-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.inventory-item-icon,
.inventory-reward-icon {
  font-size: 1.2rem;
}

.inventory-item-name,
.inventory-reward-label {
  flex: 1 1 auto;
  min-width: 120px;
}

.inventory-reward-amount {
  color: #8fe8a8;
  font-weight: 700;
}

.inventory-empty {
  color: var(--gc-text-dim);
  padding: 12px 4px;
}

.inventory-item-body {
  flex: 1 1 auto;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inventory-craft-progress {
  font-size: 0.72rem;
  color: var(--gc-accent-warm, #ffb84d);
}

.inventory-exchange-progress {
  font-size: 0.72rem;
  color: var(--gc-accent-cool, #7ec8ff);
}

.inventory-endgame-hint {
  font-size: 0.72rem;
  color: var(--gc-text-muted, #9aa3b2);
  font-style: italic;
}

.inventory-collectible-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #c9b8ff;
  background: rgba(201, 184, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-use-btn,
.inventory-craft-btn,
.inventory-exchange-btn {
  flex-shrink: 0;
}

.inventory-effect-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 0;
  background: rgba(143, 232, 168, 0.1);
  border: 1px solid rgba(143, 232, 168, 0.22);
  color: #8fe8a8;
  font-weight: 600;
  line-height: 1.35;
}

.inventory-rewards-panel-wrap.gc-panel {
  border-radius: 0;
}

.inventory-effect-message--success {
  box-shadow: 0 0 18px rgba(143, 232, 168, 0.08);
}

.inventory-effect-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.inventory-effect-text {
  flex: 1 1 auto;
}

.inventory-item-row[hidden] {
  display: none !important;
}

.inventory-rewards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Collapsible loot drops reference */
.inventory-drops-panel {
  margin-top: 4px;
}

.inventory-drops-details {
  border: none;
}

.inventory-drops-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.inventory-drops-summary::-webkit-details-marker {
  display: none;
}

.inventory-drops-summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.inventory-drops-chevron {
  flex: 0 0 auto;
  font-size: 1.1rem;
  color: var(--gc-primary-2, #7fffd9);
  transition: transform 0.18s ease;
}

.inventory-drops-details[open] .inventory-drops-chevron {
  transform: rotate(180deg);
}

.inventory-drops-body {
  padding-top: 4px;
  border-top: 1px solid rgba(120, 190, 255, 0.14);
}

.inventory-drops-intro {
  margin: 0 0 14px;
  font-size: 0.78rem;
}

.inventory-drops-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inventory-drops-row {
  padding: 12px 12px 14px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(4, 10, 22, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.inventory-drops-row--legendary { border-color: rgba(255, 184, 77, 0.28); }
.inventory-drops-row--epic { border-color: rgba(199, 125, 255, 0.24); }
.inventory-drops-row--rare { border-color: rgba(94, 176, 255, 0.22); }
.inventory-drops-row--uncommon { border-color: rgba(110, 207, 143, 0.2); }

.inventory-drops-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.inventory-drops-row-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.inventory-drops-row-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-drops-row-name {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-drops-row-tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--gc-text-dim);
  line-height: 1.35;
}

.inventory-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

.inventory-drop-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  min-width: 0;
}

.inventory-drop-chip-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.inventory-drop-chip-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inventory-drop-chip-name {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--gc-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-drop-chip-amount {
  font-size: 0.74rem;
  font-weight: 700;
  color: #8fe8a8;
}

.inventory-drop-chip-weight {
  font-size: 0.68rem;
  color: var(--gc-text-dim);
  opacity: 0.85;
}

.inventory-drops-footnote {
  margin: 14px 0 0;
  font-size: 0.68rem;
  color: var(--gc-text-dim);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .inventory-drops-grid {
    grid-template-columns: 1fr;
  }
}

/* GC-543 / GC-543B — Lootbox opening modal (Genesis HUD) */
.gc-loot-modal-root {
  position: relative;
  z-index: 1200;
}

body.gc-loot-modal-open {
  overflow: hidden;
}

.gc-loot-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(70, 229, 255, 0.08), transparent 55%),
    rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gc-loot-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(70, 229, 255, 0.35) 2px,
    rgba(70, 229, 255, 0.35) 3px
  );
}

.gc-loot-card--hud {
  position: relative;
  width: min(940px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 4px;
  border: 1px solid var(--gc-panel-border-strong, rgba(70, 229, 255, 0.32));
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.98), rgba(2, 8, 18, 0.99));
  box-shadow:
    0 0 0 1px rgba(70, 229, 255, 0.1),
    0 0 40px rgba(70, 229, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.65);
  clip-path: polygon(
    0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px)
  );
}

.gc-loot-card-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gc-loot-card-corners::before,
.gc-loot-card-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(70, 229, 255, 0.55);
}

.gc-loot-card-corners::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}

.gc-loot-card-corners::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

.gc-loot-card-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.5) 3px,
    rgba(255, 255, 255, 0.5) 4px
  );
}

.gc-loot-card.rarity-uncommon { border-color: rgba(110, 207, 143, 0.45); box-shadow: 0 0 36px rgba(110, 207, 143, 0.12); }
.gc-loot-card.rarity-rare { border-color: rgba(94, 176, 255, 0.55); box-shadow: 0 0 40px rgba(94, 176, 255, 0.16); }
.gc-loot-card.rarity-epic { border-color: rgba(199, 125, 255, 0.55); box-shadow: 0 0 44px rgba(199, 125, 255, 0.18); }
.gc-loot-card.rarity-legendary { border-color: rgba(255, 184, 77, 0.55); box-shadow: 0 0 48px rgba(255, 184, 77, 0.2); }

.gc-loot-card--win-epic { box-shadow: 0 0 52px rgba(199, 125, 255, 0.28); }
.gc-loot-card--win-legendary { box-shadow: 0 0 56px rgba(255, 184, 77, 0.32); }
.gc-loot-card--win-rare { box-shadow: 0 0 48px rgba(94, 176, 255, 0.24); }

.gc-loot-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  min-width: 32px;
  padding: 4px 8px;
}

.gc-loot-close:disabled {
  opacity: 0.35;
  cursor: default;
}

.gc-loot-header {
  text-align: center;
  margin-bottom: 14px;
  padding-top: 4px;
}

.gc-loot-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8f4ff;
  text-shadow: 0 0 18px rgba(70, 229, 255, 0.35);
}

.gc-loot-subtitle {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-text-dim);
}

.gc-loot-subtitle.rarity-rare { color: #5eb0ff; }
.gc-loot-subtitle.rarity-epic { color: #c77dff; }
.gc-loot-subtitle.rarity-legendary { color: #ffb84d; }

.gc-loot-crate {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  margin: 4px auto 16px;
  max-width: 160px;
  border-radius: 2px;
  border: 1px solid rgba(70, 229, 255, 0.22);
  background: radial-gradient(ellipse at 50% 40%, rgba(70, 229, 255, 0.1), transparent 70%);
  overflow: hidden;
  clip-path: polygon(
    0 6px, 6px 0, calc(100% - 6px) 0, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px)
  );
}

.gc-loot-crate-glow {
  position: absolute;
  inset: 8% 6% 12%;
  border-radius: 0;
  filter: blur(18px);
  opacity: 0.65;
  pointer-events: none;
}

.gc-loot-crate-img {
  position: relative;
  z-index: 1;
  width: min(100%, 132px);
  height: auto;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  animation: gc-loot-crate-glow 2.4s ease-in-out infinite alternate;
}

.gc-loot-crate.rarity-epic {
  border-color: rgba(199, 125, 255, 0.35);
  box-shadow: 0 0 24px rgba(199, 125, 255, 0.15);
}

.gc-loot-crate.rarity-legendary {
  border-color: rgba(255, 184, 77, 0.4);
  box-shadow: 0 0 28px rgba(255, 184, 77, 0.18);
}

.gc-loot-crate.rarity-rare {
  border-color: rgba(94, 176, 255, 0.35);
}

@keyframes gc-loot-crate-glow {
  from { filter: drop-shadow(0 8px 16px rgba(70, 229, 255, 0.25)); }
  to { filter: drop-shadow(0 10px 24px rgba(199, 125, 255, 0.45)); }
}

.gc-loot-roller {
  position: relative;
  overflow: hidden;
  margin: 0 auto 14px;
  max-width: 100%;
  height: 148px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(70, 229, 255, 0.22);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.gc-loot-roller-rail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 18%,
    transparent 82%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.gc-loot-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(199, 125, 255, 0.2), #46e5ff, rgba(199, 125, 255, 0.2));
  box-shadow: 0 0 16px rgba(70, 229, 255, 0.85);
  z-index: 3;
  pointer-events: none;
}

.gc-loot-marker::before,
.gc-loot-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.gc-loot-marker::before {
  top: 4px;
  border-bottom: 10px solid #46e5ff;
  filter: drop-shadow(0 0 6px rgba(70, 229, 255, 0.8));
}

.gc-loot-marker::after {
  bottom: 4px;
  border-top: 10px solid #c77dff;
  filter: drop-shadow(0 0 6px rgba(199, 125, 255, 0.8));
}

.gc-loot-strip {
  display: flex;
  gap: 8px;
  align-items: stretch;
  height: 100%;
  padding: 12px 8px;
  will-change: transform;
}

.gc-loot-tile {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 2px;
  border: 1px solid rgba(70, 229, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.95), rgba(4, 10, 20, 0.98));
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.gc-loot-tile.rarity-uncommon { border-color: rgba(110, 207, 143, 0.4); box-shadow: 0 0 10px rgba(110, 207, 143, 0.12); }
.gc-loot-tile.rarity-rare { border-color: rgba(94, 176, 255, 0.45); box-shadow: 0 0 12px rgba(94, 176, 255, 0.14); }
.gc-loot-tile.rarity-epic { border-color: rgba(199, 125, 255, 0.5); box-shadow: 0 0 14px rgba(199, 125, 255, 0.16); }
.gc-loot-tile.rarity-legendary { border-color: rgba(255, 184, 77, 0.55); box-shadow: 0 0 16px rgba(255, 184, 77, 0.18); }
.gc-loot-tile.rarity-mythic { border-color: rgba(255, 120, 200, 0.55); box-shadow: 0 0 16px rgba(255, 120, 200, 0.18); }

.gc-loot-tile.is-winning {
  border-color: #46e5ff;
  box-shadow:
    0 0 22px rgba(70, 229, 255, 0.55),
    inset 0 0 12px rgba(70, 229, 255, 0.12);
  animation: gc-loot-winner-pulse 0.75s ease-out 2;
}

@keyframes gc-loot-winner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gc-loot-tile-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(70, 229, 255, 0.25));
}

.gc-loot-tile-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: #d8e4f4;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.gc-loot-tile-amount {
  font-size: 0.88rem;
  font-weight: 800;
  color: #8fe8a8;
  text-shadow: 0 0 10px rgba(143, 232, 168, 0.25);
}

.gc-loot-tile-rarity {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-dim);
}

.gc-loot-status {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #46e5ff;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(70, 229, 255, 0.35);
}

.gc-loot-skip {
  display: block;
  margin: 0 auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gc-loot-results {
  margin-top: 10px;
}

.gc-loot-results-panel {
  padding: 14px 12px;
  border-radius: 2px;
  border: 1px solid rgba(70, 229, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(8, 16, 32, 0.92), rgba(4, 10, 22, 0.96));
  box-shadow: inset 0 0 24px rgba(70, 229, 255, 0.06);
}

.gc-loot-results-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9e4ff;
  margin-bottom: 14px;
}

.gc-loot-results-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.gc-loot-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(70, 229, 255, 0.12);
}

.gc-loot-result-row--primary {
  padding: 16px 14px;
  border-color: rgba(70, 229, 255, 0.35);
  box-shadow: 0 0 20px rgba(70, 229, 255, 0.12);
}

.gc-loot-result-row.rarity-epic { border-color: rgba(199, 125, 255, 0.4); }
.gc-loot-result-row.rarity-legendary { border-color: rgba(255, 184, 77, 0.45); }

.gc-loot-result-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(70, 229, 255, 0.2));
}

.gc-loot-result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gc-loot-result-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gc-loot-result-amount {
  color: #8fe8a8;
  font-weight: 800;
  font-size: 1.05rem;
}

.gc-loot-result-row--primary .gc-loot-result-amount {
  font-size: 1.25rem;
}

.gc-loot-result-rarity {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-text-dim);
}

.gc-loot-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

body.gc-reduced-motion .gc-loot-crate-img {
  animation: none;
}

body.gc-reduced-motion .gc-loot-strip {
  transition: none !important;
}

body.gc-reduced-motion .gc-loot-tile.is-winning {
  animation: none;
}

@media (max-width: 640px) {
  .gc-loot-card--hud {
    padding: 16px 12px 14px;
  }

  .gc-loot-tile {
    flex-basis: 120px;
  }

  .gc-loot-roller {
    height: 128px;
  }

  .gc-loot-results-actions .gc-btn {
    flex: 1 1 100%;
  }
}
