/* =====================================================================
   THEME: Space Sci-fi HUD — 深空科幻控制台
   Palette: deep navy/black void + cyan/violet glow accents.
   CSS-drawn starfield (box-shadow star trick), orbit rings, HUD corner
   brackets, scanline sweep, condensed futuristic sans typography.
   No images used for decoration, no external fonts/network requests.
   ===================================================================== */
:root {
  --void-0: #05060f;
  --void-1: #0a0e1f;
  --void-2: #10162c;
  --panel: rgba(16, 22, 44, .68);
  --panel-brd: rgba(90, 220, 255, .25);
  --cyan: #4be8ff;
  --cyan-dim: #2aa9c4;
  --violet: #b18bff;
  --violet-dim: #7d5fd9;
  --ink: #eaf3ff;
  --ink-dim: #94a3c4;
  --danger: #ff5d8f;
  --font-hud: 'Bahnschrift', 'Segoe UI Semibold', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Segoe UI', 'Bahnschrift', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--void-0); }

body {
  background: var(--void-0);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 40px;
}

[v-cloak] { display: none; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ───────────────────────── Starfield backdrop ───────────────────────── */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(90,90,180,.18), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(75,232,255,.10), transparent 50%),
    linear-gradient(180deg, var(--void-0), var(--void-1) 40%, var(--void-2));
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: 50%;
}

.stars.s1 {
  width: 2px; height: 2px;
  box-shadow:
    12vw 8vh #fff, 33vw 22vh #fff, 61vw 5vh #cfe6ff, 78vw 31vh #fff,
    9vw 41vh #cfe6ff, 45vw 55vh #fff, 88vw 62vh #fff, 20vw 70vh #cfe6ff,
    66vw 78vh #fff, 4vw 88vh #fff, 55vw 90vh #cfe6ff, 92vw 95vh #fff,
    28vw 15vh #fff, 71vw 45vh #cfe6ff, 15vw 60vh #fff, 82vw 12vh #fff;
  opacity: .9;
  animation: twinkle 4s ease-in-out infinite;
}

.stars.s2 {
  width: 1.5px; height: 1.5px;
  box-shadow:
    5vw 5vh #9fd3ff, 25vw 35vh #9fd3ff, 48vw 12vh #9fd3ff, 63vw 60vh #9fd3ff,
    80vw 40vh #9fd3ff, 95vw 80vh #9fd3ff, 38vw 75vh #9fd3ff, 17vw 92vh #9fd3ff,
    58vw 25vh #9fd3ff, 72vw 88vh #9fd3ff, 10vw 65vh #9fd3ff, 90vw 8vh #9fd3ff;
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite 1.2s;
}

.stars.s3 {
  width: 1px; height: 1px;
  box-shadow:
    14vw 25vh #b18bff, 42vw 48vh #b18bff, 68vw 18vh #b18bff, 85vw 55vh #b18bff,
    30vw 85vh #b18bff, 6vw 50vh #b18bff, 55vw 65vh #b18bff, 98vw 30vh #b18bff;
  opacity: .5;
  animation: twinkle 5s ease-in-out infinite .6s;
}

@keyframes twinkle {
  0%, 100% { opacity: .35; }
  50% { opacity: .95; }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75,232,255,.14);
}

.orbit-ring.o1 { width: 140vw; height: 140vw; left: -40vw; top: -60vw; }
.orbit-ring.o2 { width: 90vw; height: 90vw; right: -30vw; bottom: -40vw; border-color: rgba(177,139,255,.12); }

/* Everything else sits above the starfield */
.topbar, .cat-tabs, .search-bar-wrap, .loading-full, section, .filter-hdr,
.site-footer, .totop-btn { position: relative; z-index: 1; }

/* ───────────────────────── HUD corner brackets (reusable) ───────────────────────── */
.hud-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--cyan);
  opacity: .85;
  z-index: 2;
}
.hud-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ───────────────────────── Top bar ───────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10,14,31,.95), rgba(10,14,31,.7));
  border-bottom: 1px solid var(--panel-brd);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-logo {
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(75,232,255,.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px var(--cyan);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.topbar-search-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--panel-brd);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  background: rgba(75,232,255,.06);
}

/* ───────────────────────── Category tabs ───────────────────────── */
.cat-tabs {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(10,14,31,.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(75,232,255,.14);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tabs-inner {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  width: max-content;
}

.cat-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid rgba(148,163,196,.2);
  background: rgba(255,255,255,.02);
  white-space: nowrap;
  transition: all .15s ease;
}

.cat-tab.active {
  color: var(--void-0);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(75,232,255,.5);
}

/* ───────────────────────── Search bar ───────────────────────── */
.search-bar-wrap {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10,14,31,.9);
  border-bottom: 1px solid var(--panel-brd);
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--cyan-dim);
  background: rgba(75,232,255,.05);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search-input::placeholder { color: var(--ink-dim); }

.search-cancel {
  font-family: var(--font-hud);
  font-size: 13px;
  color: var(--cyan);
  padding: 0 6px;
  text-transform: uppercase;
}

/* ───────────────────────── Loading ───────────────────────── */
.loading-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60vh;
}

.loading-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(75,232,255,.15);
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-txt {
  font-family: var(--font-hud);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ───────────────────────── Section header ───────────────────────── */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 12px;
}

.sec-label {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(75,232,255,.3);
}

.sec-more {
  font-family: var(--font-hud);
  font-size: 11.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid rgba(177,139,255,.35);
  border-radius: 3px;
  padding: 5px 10px;
}

.sec-cnt {
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid rgba(148,163,196,.25);
  border-radius: 3px;
  padding: 3px 8px;
}

/* ───────────────────────── HUD Hero (Featured) ───────────────────────── */
.featured-sec { padding: 16px; }

.hud-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-brd);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(75,232,255,.08), rgba(177,139,255,.05) 60%, transparent);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(75,232,255,.08), inset 0 0 40px rgba(75,232,255,.04);
}

.hud-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .7;
  animation: scan 3.2s linear infinite;
  z-index: 2;
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.hud-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--void-2);
  overflow: hidden;
}
.hud-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.hud-hero-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-hero-badge {
  font-family: var(--font-hud);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--danger);
  text-transform: uppercase;
  width: fit-content;
}

.hud-hero-title {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .3px;
}

.hud-hero-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.hud-hero-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-hud);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--void-0);
  background: var(--cyan);
  padding: 8px 16px;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(75,232,255,.45);
}

/* ───────────────────────── Orbit row (Hot Games) ───────────────────────── */
.hot-sec { padding-bottom: 6px; }

.orbit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.orbit-row::-webkit-scrollbar { display: none; }

.orbit-core {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(177,139,255,.08);
  box-shadow: 0 0 20px rgba(177,139,255,.25);
  animation: orbit-spin 12s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.orbit-sat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
}

.orbit-sat-ring {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--cyan-dim);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(75,232,255,.2);
}
.orbit-sat-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.orbit-sat-nm {
  font-size: 11px;
  color: var(--ink-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}

/* ───────────────────────── Mission Log list ───────────────────────── */
.log-list {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-left: 1px solid rgba(75,232,255,.2);
  margin-left: 24px;
}

.log-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 0 12px 16px;
  border-bottom: 1px dashed rgba(148,163,196,.15);
}

.log-idx {
  position: absolute;
  left: -40px;
  top: 12px;
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--violet-dim);
  width: 24px;
  text-align: right;
}

.log-dot {
  position: absolute;
  left: -21px;
  top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.log-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.log-name { font-family: var(--font-hud); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.log-tag {
  font-size: 10px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: .5px;
  width: fit-content;
}
.log-desc {
  font-size: 12px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────────────────────── Signal strength list ───────────────────────── */
.signal-list {
  display: flex;
  flex-direction: column;
  padding: 4px 16px;
  gap: 8px;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--panel-brd);
  border-radius: 6px;
  background: var(--panel);
}

.signal-img {
  width: 46px; height: 46px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--void-2);
}
.signal-img img { width: 100%; height: 100%; object-fit: cover; }

.signal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.signal-nm {
  font-family: var(--font-hud);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-bars { display: flex; gap: 3px; }
.bar {
  width: 14px; height: 5px;
  background: rgba(148,163,196,.15);
  border-radius: 1px;
}
.bar.on {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(75,232,255,.5);
}

.signal-badge {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid rgba(177,139,255,.3);
  border-radius: 3px;
  padding: 4px 7px;
  flex: 0 0 auto;
}

/* ───────────────────────── Hex-clipped tile grid (Channel + Adventure/Sector) ───────────────────────── */
.hex-grid, .sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  padding: 8px 16px 20px;
}

.hex-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hex-shape {
  width: 100%;
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--void-2);
  border: 1px solid var(--cyan-dim);
  position: relative;
  overflow: hidden;
}
.hex-shape img { width: 100%; height: 100%; object-fit: cover; }

.hex-ch {
  font-family: var(--font-hud);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: .5px;
}

.hex-nm {
  font-size: 10.5px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.sector-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sector-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border: 1px solid var(--panel-brd);
}
.sector-nm {
  font-size: 11px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────────────────────── Target lock row (Action) ───────────────────────── */
.lock-row {
  display: flex;
  gap: 14px;
  padding: 8px 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lock-row::-webkit-scrollbar { display: none; }

.lock-item {
  flex: 0 0 auto;
  width: 30vw;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lock-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--danger);
  border-radius: 4px;
  overflow: hidden;
  background: var(--void-2);
}
.lock-frame img { width: 100%; height: 100%; object-fit: cover; }

.lock-crosshair {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,93,143,.6);
  pointer-events: none;
}
.lock-crosshair::before, .lock-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255,93,143,.7);
}
.lock-crosshair::before { top: 50%; left: -6px; right: -6px; height: 1px; }
.lock-crosshair::after { left: 50%; top: -6px; bottom: -6px; width: 1px; }

.lock-nm {
  font-size: 11.5px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ───────────────────────── Star cluster scatter (Puzzle) ───────────────────────── */
.cluster-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px 24px;
  flex-wrap: wrap;
  gap: 16px 8px;
}

.cluster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 27%;
}
.cluster-card.c1 { transform: translateY(-6px); }
.cluster-card.c2 { transform: translateY(10px); }
.cluster-card.c3 { transform: translateY(-2px); }

.cluster-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--violet-dim);
  box-shadow: 0 0 16px rgba(177,139,255,.25);
}
.cluster-img img { width: 100%; height: 100%; object-fit: cover; }

.cluster-nm {
  font-size: 11px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ───────────────────────── Cargo pods (Kids) ───────────────────────── */
.pod-wrap {
  display: flex;
  gap: 12px;
  padding: 8px 16px 20px;
}

.pod-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 20px;
  border: 1px solid var(--panel-brd);
  background: var(--panel);
}

.pod-img {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--void-2);
}
.pod-img img { width: 100%; height: 100%; object-fit: cover; }

.pod-nm {
  font-size: 11px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ───────────────────────── Mission timeline (Sports) ───────────────────────── */
.timeline {
  position: relative;
  margin: 0 16px 20px;
  padding-left: 22px;
  border-left: 2px solid rgba(75,232,255,.2);
}

.tl-row {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  align-items: center;
}

.tl-node {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--void-0);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.tl-img {
  width: 54px; height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--void-2);
}
.tl-img img { width: 100%; height: 100%; object-fit: cover; }

.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tl-nm { font-family: var(--font-hud); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tl-tag {
  font-size: 10px;
  color: var(--violet);
  text-transform: uppercase;
  width: fit-content;
}
.tl-desc {
  font-size: 11.5px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────────────────────── Warp banner (Racing) ───────────────────────── */
.racing-sec { padding-bottom: 4px; }

.warp-banner {
  position: relative;
  display: block;
  margin: 0 16px 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--panel-brd);
  aspect-ratio: 21/9;
  background: var(--void-2);
}
.warp-banner img { width: 100%; height: 100%; object-fit: cover; }

.warp-ovl {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(5,6,15,.92), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warp-badge {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  width: fit-content;
}
.warp-title { font-family: var(--font-hud); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.warp-desc { font-size: 11.5px; color: var(--ink-dim); }

/* ───────────────────────── Data cards (Girl) ───────────────────────── */
.dcard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 20px;
}

.dcard-row {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--panel-brd);
  border-radius: 6px;
  background: var(--panel);
  position: relative;
}

.dcard-img {
  width: 58px; height: 58px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--void-2);
  border: 1px solid rgba(177,139,255,.3);
}
.dcard-img img { width: 100%; height: 100%; object-fit: cover; }

.dcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.dcard-nm { font-family: var(--font-hud); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dcard-desc {
  font-size: 11.5px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────────────────────── Docking bay (Arcade) ───────────────────────── */
.dock-row {
  display: flex;
  gap: 12px;
  padding: 8px 16px 20px;
}

.dock-card {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 0 12px rgba(75,232,255,.15);
}
.dock-card img { width: 100%; height: 100%; object-fit: cover; }

/* ───────────────────────── All games / star-map grid ───────────────────────── */
.all-sec { padding-bottom: 10px; }

.all-grid, .games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 16px;
}

.agcard, .gcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agcard-img, .gcard-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--void-2);
  border: 1px solid var(--panel-brd);
  position: relative;
}
.agcard-img::after, .gcard-img::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(75,232,255,0);
  border-radius: 8px;
  pointer-events: none;
}
.agcard-img img, .gcard-img img { width: 100%; height: 100%; object-fit: cover; }

.agcard-nm, .gcard-nm {
  font-size: 11.5px;
  color: var(--ink-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-wrap, .loadmore-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.more-btn, .loadmore-btn {
  font-family: var(--font-hud);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  border-radius: 4px;
  padding: 10px 24px;
  background: rgba(75,232,255,.05);
}

/* ───────────────────────── Filter / search header + grid ───────────────────────── */
.filter-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-brd);
}

.filter-back {
  font-family: var(--font-hud);
  font-size: 12.5px;
  color: var(--cyan);
  text-transform: uppercase;
}

.filter-title {
  flex: 1;
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.filter-cnt {
  font-family: var(--font-hud);
  font-size: 11.5px;
  color: var(--ink-dim);
  border: 1px solid rgba(148,163,196,.25);
  border-radius: 3px;
  padding: 3px 8px;
}

.empty-msg {
  text-align: center;
  padding: 60px 16px;
  color: var(--ink-dim);
  font-family: var(--font-hud);
  letter-spacing: .5px;
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px 20px;
  color: var(--ink-dim);
  font-size: 12.5px;
  border-top: 1px solid var(--panel-brd);
  margin-top: 20px;
}
.site-footer a { color: var(--cyan-dim); }

/* ───────────────────────── Back to top ───────────────────────── */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(10,14,31,.85);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 18px;
  box-shadow: 0 0 16px rgba(75,232,255,.35);
  z-index: 60;
  backdrop-filter: blur(4px);
}

/* ───────────────────────── Responsive tweaks ───────────────────────── */
@media (min-width: 640px) {
  .hex-grid, .sector-grid { grid-template-columns: repeat(6, 1fr); }
  .all-grid, .games-grid { grid-template-columns: repeat(5, 1fr); }
  .hud-hero { flex-direction: row; }
  .hud-hero-img { width: 45%; aspect-ratio: auto; }
  .hud-hero-body { flex: 1; justify-content: center; }
}

@media (min-width: 900px) {
  .all-grid, .games-grid { grid-template-columns: repeat(7, 1fr); }
  .hex-grid, .sector-grid { grid-template-columns: repeat(8, 1fr); }
}
