/* OKAPISCAN UI polish v1 — 절제된 다크 금융 대시보드 톤
   기존 space-home-v5 / nebula-home-v1 / site-galaxy / premium-ui 를 덮어쓴다. 마지막에 로드. */

body.space-home {
  --ui-bg: #070a10;
  --ui-surface: #0b0f16;
  --ui-surface-2: #0d121b;
  --ui-line: #1a2230;
  --ui-line-soft: #141b26;
  --ui-text: #e9eef6;
  --ui-muted: #8b98ab;
  --ui-dim: #66717f;
  --ui-accent: #4b8dff;
  --ui-up: #f4687a;
  --ui-down: #4f9bff;
  background:
    radial-gradient(1100px 560px at 76% -8%, #0c1a30 0%, rgba(7, 10, 16, 0) 64%),
    var(--ui-bg) !important;
  color: var(--ui-text);
  font-family: Inter, 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}
body.space-home * { box-sizing: border-box; }
body.space-home a { text-decoration: none; color: inherit; }

/* ── 배경: 오카피스캔 고유의 성운(우주) 배경 복원 ──
   톤 다운 파일 대신 이미지를 다시 얹고, 히어로 텍스트 쪽에만 스크림을 깔아 대비를 지킨다. */
body.site-galaxy[data-space="home"]::before {
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, .72) 0%, rgba(7, 10, 16, .30) 16%, rgba(7, 10, 16, .40) 54%, rgba(7, 10, 16, .88) 86%, #070a10 100%),
    radial-gradient(640px 300px at 92% 140px, rgba(7, 10, 16, .62), rgba(7, 10, 16, 0) 74%),
    linear-gradient(96deg, rgba(7, 10, 16, .88) 0%, rgba(7, 10, 16, .50) 34%, rgba(7, 10, 16, .10) 62%, rgba(7, 10, 16, .30) 100%),
    url('/assets/okapi-nebula-v1.webp') right top / max(100vw, 1500px) auto no-repeat !important;
  filter: saturate(1.08) contrast(1.03) !important;
  height: 640px !important;
  opacity: 1 !important;
}
body.site-galaxy[data-space="home"]::after {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0) 396px, rgba(7, 10, 16, .58) 534px, #070a10 640px) !important;
}

/* ── 헤더 / 메뉴 ── */
body .topbar.site-header,
body.site-galaxy[data-space] .topbar {
  background: rgba(8, 11, 17, .92) !important;
  border-bottom: 1px solid #161d29 !important;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
body .topbar.site-header .nav { height: 64px; min-height: 64px; }
body .topbar.site-header .brand span { font-size: 15px; font-weight: 700; letter-spacing: .06em; color: #f1f5fb; }
body .topbar.site-header .brand img { width: 30px; height: 30px; }
body .topbar.site-header .menu { gap: clamp(6px, 1.1vw, 14px); }
body .topbar.site-header .menu a {
  display: flex;
  align-items: center;
  height: 64px;
  position: relative;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -.01em;
  color: #93a1b4;
  border-radius: 0;
  transition: color .15s ease;
}
body .topbar.site-header .menu a:hover { color: #dbe4f0; }
body .topbar.site-header .menu a.active { color: #f4f8ff; font-weight: 650; }
body .topbar.site-header .menu a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--ui-accent);
}
body .topbar.site-header .actions .lang { font-size: 11.5px; color: #6f7d90; letter-spacing: .04em; }
body .topbar.site-header .cs-trigger {
  background: #0f1621;
  border: 1px solid #212b3a;
  border-radius: 8px;
  color: #cdd8e8;
  font-size: 12px;
  font-weight: 550;
  padding: 7px 12px;
  box-shadow: none;
}
body .topbar.site-header .cs-trigger:hover { border-color: #33415a; color: #eef4ff; }
body .topbar.site-header .mobile-menu-toggle {
  background: #0f1621;
  border: 1px solid #212b3a;
  border-radius: 8px;
  color: #cdd8e8;
}

/* ── 히어로 ── */
body.space-home .space-hero,
body.site-galaxy[data-space] .space-hero {
  background: transparent !important;
  min-height: 0 !important;
  padding: 34px 0 0;
  overflow: visible;
}
body.space-home .space-hero::before,
body.space-home .space-hero::after { content: none !important; background: none !important; }
body.space-home .hero-inner { padding-top: 0 !important; padding-bottom: 0 !important; align-items: flex-end; gap: 28px; }
body.space-home .eyebrow {
  color: #78879b;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .22em;
}
body.space-home .space-hero h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 10px 0 8px;
  color: #f2f6fc;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.space-home .hero-sub { color: #8e9caf; font-size: 13.5px; margin: 0 0 18px; text-shadow: 0 1px 3px rgba(3, 7, 14, .8), 0 2px 14px rgba(3, 7, 14, .75); }
body.space-home .hero-links a {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  gap: 8px;
  box-shadow: none;
}
body.space-home .hero-primary {
  background: #2f6bff;
  color: #fff;
  box-shadow: none;
}
body.space-home .hero-primary:hover { background: #3a76ff; }
body.space-home .hero-secondary {
  background: transparent;
  border: 1px solid #232d3d;
  color: #c7d3e4;
}
body.space-home .hero-secondary:hover { border-color: #35445c; color: #eef4ff; }
body.space-home .hero-right { padding-top: 0; gap: 10px; }
body.space-home .mini-search {
  background: #0b1018;
  border: 1px solid #212b3a;
  border-radius: 8px;
  min-height: 40px;
  box-shadow: none;
  backdrop-filter: none;
}
body.space-home .mini-search input { font-size: 12.5px; color: #dbe4f1; }
body.space-home .mini-search input::placeholder { color: #66717f; }
body.space-home .mini-search button {
  background: #1a2432;
  color: #cfdaea;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
}
body.space-home .mini-search button:hover { background: #223043; }
body.space-home .live-state { font-size: 11px; color: #93a2b5; text-shadow: 0 1px 3px rgba(3, 7, 14, .95), 0 2px 12px rgba(3, 7, 14, .9); }
body.space-home .live-dot { width: 6px; height: 6px; background: #2ecc9b; box-shadow: 0 0 0 3px rgba(46, 204, 155, .12); }

/* ── 상단 핵심 지표 칩 (헤어라인 구분선) ── */
body.space-home .hero-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  padding: 0 !important;
  padding-bottom: 0 !important;
  background: var(--ui-line);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  overflow: hidden;
}
body.space-home .hero-metric {
  background: #0b0f16;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  gap: 3px;
}
body.space-home .hero-metric span {
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: .04em;
  color: #77869a;
}
body.space-home .hero-metric strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: #eef3fa;
  font-variant-numeric: tabular-nums;
}
body.space-home .hero-metric em { font-size: 11px; font-weight: 550; color: #8b98ab; font-variant-numeric: tabular-nums; }
body.space-home .hero-metric em.up { color: var(--ui-up); }
body.space-home .hero-metric em.down { color: var(--ui-down); }
/* 6번째 칩: 롱·숏 비율 (앱이 /api/market 값으로 채운다) */
body.space-home .hero-metric-ls strong { display: inline-flex; align-items: baseline; gap: 3px; }
body.space-home .hero-metric-ls strong b { font-weight: inherit; color: inherit; font-variant-numeric: tabular-nums; }
body.space-home .hero-metric-ls strong b[data-long] { color: #6ba6ff; }
body.space-home .hero-metric-ls strong b[data-short] { color: #98a6b7; }
body.space-home .hero-metric-ls strong em { font-style: normal; font-weight: 500; color: #8a97a8; }

/* ── 증시 현황 스트립 (첫 화면 동선) ── */
body.space-home .market-glance {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 10px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: #090d14;
  overflow: hidden;
}
body.space-home .glance-title {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--ui-line);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
  color: #6f7d90;
  background: #0b1018;
}
body.space-home .glance-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-right: 1px solid var(--ui-line-soft);
  font-size: 12px;
  color: #d3dde9;
  transition: background .15s ease;
}
body.space-home .glance-item:hover { background: #0e141d; }
body.space-home .glance-item span { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #77869a; }
body.space-home .glance-item strong { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
body.space-home .glance-item em { font-style: normal; font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; color: #8b98ab; }
body.space-home .glance-item em.up { color: var(--ui-up); }
body.space-home .glance-item em.down { color: var(--ui-down); }
body.space-home .glance-item[data-state="loading"] strong { color: #5f6b7b; }
body.space-home .glance-all {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 11px 15px;
  font-size: 11.5px;
  color: #7f8ea3;
}
body.space-home .glance-all:hover { color: #dbe4f0; }

/* ── 거래소 혜택 CTA 스트립 ── */
body.space-home .cta-strip { gap: 10px; margin: 16px auto 20px; }
body.space-home .cta-card {
  background: #0b0f16;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  padding: 13px 15px;
  gap: 3px;
  box-shadow: none;
}
body.space-home .cta-card:hover { border-color: #2a364a; transform: none; background: #0d121b; }
body.space-home .cta-card small { font-size: 9.5px; letter-spacing: .1em; color: #6f7d90; }
body.space-home .cta-card b { font-size: 13.5px; font-weight: 650; color: #eaf0f8; letter-spacing: -.01em; }
body.space-home .cta-card span { font-size: 11px; color: #7f8ea3; }
/* 거래소 띠: 세 카드 모두 같은 2px 두께 + 각 거래소 색의 은은한 좌측 틴트 (토큰은 exchange-palette-v1.css) */
body.space-home .cta-card.cta-bybit { border-left: 2px solid var(--ex-bybit, #E5C06A); }
body.space-home .cta-card.cta-bitget { border-left: 2px solid var(--ex-bitget, #4FD1D2); }
body.space-home .cta-card.cta-okx { border-left: 2px solid var(--ex-okx, #B6E84A); }
body.space-home .cta-card.cta-all { border-left: 2px solid #3f5f8f; }
body.space-home .cta-card.cta-bybit { background-image: linear-gradient(120deg, color-mix(in srgb, var(--ex-bybit, #E5C06A) 7%, transparent), transparent 62%); }
body.space-home .cta-card.cta-bitget { background-image: linear-gradient(120deg, color-mix(in srgb, var(--ex-bitget, #4FD1D2) 7%, transparent), transparent 62%); }
body.space-home .cta-card.cta-okx { background-image: linear-gradient(120deg, color-mix(in srgb, var(--ex-okx, #B6E84A) 8%, transparent), transparent 62%); }
body.space-home .cta-card:hover.cta-bybit { border-color: var(--ex-bybit-deep, #B98F3E); }
body.space-home .cta-card:hover.cta-bitget { border-color: var(--ex-bitget-deep, #2A9AA0); }
body.space-home .cta-card:hover.cta-okx { border-color: var(--ex-okx-deep, #7FA82A); }

/* ── 카드 공통: 플랫 서피스 + 1px 헤어라인 ── */
body.space-home .feature,
body.space-home .market-section,
body.space-home .data-panel,
body.space-home .secondary-panel,
body.space-home .coin-strip,
body.space-home .quick-bottom,
body.space-home .stats-entry-link,
body.space-home .asset-hub-links {
  background: #0b0f16 !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.space-home .feature { padding: 18px; min-height: 300px; }
body.space-home .feature::before { content: none !important; background: none !important; }
body.space-home .feature:hover { transform: none; border-color: #28344a !important; }
body.space-home .feature-heading { gap: 10px; }
body.space-home .feature-heading h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; color: #edf2f9; margin-bottom: 3px; }
body.space-home .feature-heading p { font-size: 10.5px; color: #77869a; letter-spacing: 0; }
body.space-home .feature-symbol {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
  background: #111823 !important;
  border: 1px solid #202a39;
  box-shadow: none;
}
body.space-home .feature-symbol.pink { background: #171019 !important; border-color: #2a1c25; }
body.space-home .feature-symbol.aqua { background: #0b1618 !important; border-color: #182a2c; }
body.space-home .feature-symbol.violet { background: #111321 !important; border-color: #1f2333; }
body.space-home .feature-symbol.blue { background: #11141f !important; border-color: #1e2330; }
body.space-home .feature-symbol img { width: 22px; height: 22px; opacity: .82; }
body.space-home .feature > small { font-size: 10.5px; color: #6f7d90; }
body.space-home .feature-value { padding: 10px 0; border-top: 1px solid var(--ui-line-soft); }
body.space-home .feature-value span { font-size: 11px; color: #8b98ab; }
body.space-home .feature-value small { color: #66717f; font-size: 10px; }

/* 시장 스캔 카드 */
body.space-home .donut { width: 88px; height: 88px; flex-basis: 88px; box-shadow: none; background: conic-gradient(#2ecc9b 0 25%, #e0b13c 25% 51%, #e05b74 51% 75%, #1e2836 75%); }
body.space-home .donut > div { width: 66px; height: 66px; background: #0b0f16; box-shadow: none; }
body.space-home .donut strong { font-size: 21px; font-weight: 650; }
body.space-home .donut small { font-size: 9.5px; color: #5fb99a; }
body.space-home .mini-metrics > div { border-bottom: 1px solid var(--ui-line-soft); padding: 9px 0; }
body.space-home .mini-metrics span { font-size: 10.5px; color: #77869a; }
body.space-home .mini-metrics b { font-size: 11px; font-weight: 600; color: #dbe4f0; }

/* 상위 트레이더 카드 */
body.space-home .trader-note { color: #66717f; font-size: 10px; }
body.space-home .trader-more { color: #7f8ea3; font-size: 11px; }
body.space-home .trader-card { background: #0c1119 !important; border: 1px solid var(--ui-line-soft) !important; border-radius: 8px !important; }

/* 거래소 혜택 카드 */
body.space-home .exchange-tiles { margin-top: 14px; gap: 6px; flex: 1; align-content: center; grid-auto-rows: 86px; }
body.space-home .exchange-tiles > a,
body.space-home .exchange-tiles > div {
  min-height: 78px;
  border: 1px solid var(--ui-line-soft);
  border-radius: 8px;
  background: #0d121b;
  gap: 8px;
}
body.space-home .exchange-tiles > a:hover { border-color: #2b374a; background: #101724; }
body.space-home .exchange-tiles strong { font-size: 12px; font-weight: 650; }
body.space-home .exchange-tiles small { font-size: 9.5px; color: #6f7d90; }
body.space-home .exchange-tiles .bitget { color: #2fc4c9; }
body.space-home .feature-exchange .feature-bottom-link,
body.space-home .feature-bottom-link {
  background: #0d121b !important;
  border: 1px solid var(--ui-line-soft) !important;
  border-radius: 7px !important;
  color: #b9c6d8 !important;
  font-size: 11px;
  font-weight: 550;
  padding: 9px 11px;
  box-shadow: none !important;
}
body.space-home .feature-bottom-link b { color: #6f7d90; font-size: 13px; }

/* ── 시세 스트립 ── */
body.space-home .coin-strip { margin: 12px 0; background: #0b0f16 !important; }
body.space-home .coin-strip > div { padding: 13px 12px; gap: 8px; border-right: 1px solid var(--ui-line-soft); }
body.space-home .coin-strip b { font-size: 11.5px; font-weight: 600; color: #93a1b4; gap: 7px; }
body.space-home .coin-logo { width: 20px; height: 20px; flex-basis: 20px; }
body.space-home .coin-strip strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.space-home .coin-strip span { font-size: 11px; color: #8b98ab; font-variant-numeric: tabular-nums; }
body.space-home .coin-strip span.up { color: var(--ui-up); }
body.space-home .coin-strip span.down { color: var(--ui-down); }

/* ── 증시 요약: 상세 패널 (컴팩트) ── */
body.space-home .stock-summary { margin: 12px 0 0; gap: 12px; }
body.space-home .stock-summary .stock-panel {
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #0b0f16;
  color: var(--ui-text);
}
body.space-home .stock-summary .feature-heading { margin-bottom: 16px; gap: 10px; }
body.space-home .stock-summary .feature-heading h2 { font-size: 14.5px; font-weight: 650; }
body.space-home .stock-summary .feature-heading p { font-size: 10.5px; color: #77869a; }
body.space-home .stock-summary .stock-symbol {
  width: 34px;
  height: 34px;
  border: 1px solid #202a39;
  border-radius: 8px;
  background: #111823;
  color: #7d94ae;
}
body.space-home .stock-summary .stock-symbol svg { width: 19px; height: 19px; stroke-width: 1.6; }
body.space-home .stock-summary .stock-symbol-global { background: #111823; border-color: #202a39; color: #7d94ae; }
body.space-home .stock-summary .stock-indices { gap: 16px; }
body.space-home .stock-summary .stock-index + .stock-index { border-left: 1px solid var(--ui-line-soft); padding-left: 16px; }
body.space-home .stock-summary .stock-index h3 { font-size: 11px; letter-spacing: .06em; color: #7f8ea3; margin-bottom: 6px; font-weight: 600; }
body.space-home .stock-summary .stock-price { font-size: clamp(19px, 1.6vw, 24px); font-weight: 650; letter-spacing: -.02em; }
body.space-home .stock-summary .stock-change { font-size: 11.5px; margin: 4px 0 8px; color: #8b98ab; min-height: 18px; }
body.space-home .stock-summary .stock-chart { min-height: 0; }
body.space-home .stock-summary .stock-chart svg { height: 72px; }
body.space-home .stock-summary .stock-chart-message { min-height: 72px; font-size: 11px; }
body.space-home .stock-summary .stock-axis { font-size: 9.5px; color: #5f6b7b; }
body.space-home .stock-summary .stock-date { font-size: 10.5px; color: #66717f; margin-top: 6px; line-height: 1.5; }
body.space-home .stock-summary .stock-date[data-stock-status] { color: #5f6b7b; }
body.space-home .stock-summary .stock-source { font-size: 10.5px; color: #7f8ea3; }
body.space-home .stock-summary .stock-footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ui-line-soft); font-size: 10.5px; color: #66717f; }
body.space-home .stock-summary .stock-footer small { font-size: 10px; color: #5f6b7b; }
body.space-home .stock-summary .stock-retry { border: 1px solid #212b3a; border-radius: 6px; background: #0f1621; color: #b9c6d8; font-size: 10.5px; padding: 4px 9px; }

/* ── 글로벌 시장 데이터 ── */
body.space-home .market-section { padding: 20px; }
body.space-home .section-heading { margin-bottom: 14px; }
body.space-home .section-label { font-size: 9.5px; font-weight: 650; letter-spacing: .18em; color: #6f7d90; }
body.space-home .section-heading h2 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; }
body.space-home .section-meta { font-size: 10.5px; color: #66717f; }
body.space-home .data-grid, body.space-home .secondary-grid { gap: 1px; background: var(--ui-line); border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
body.space-home .secondary-grid { margin-top: 10px; }
body.space-home .data-panel, body.space-home .secondary-panel {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 15px;
  min-height: 132px;
  background: #0b0f16 !important;
}
body.space-home .secondary-panel { min-height: 118px; }
body.space-home .panel-top { font-size: 11px; color: #8b98ab; }
body.space-home .panel-top small { color: #5f6b7b; font-size: 9.5px; }
body.space-home .data-main { margin-top: 18px; }
body.space-home .data-main strong { font-size: 17px; font-weight: 650; color: #dbe4f0; }
body.space-home .data-main b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; color: #eef3fa; }
body.space-home .data-main .neutral { color: #e0b13c; }
body.space-home .data-main .up { color: #2ecc9b; }
body.space-home .data-main .down { color: var(--ui-up); }
body.space-home .data-panel small, body.space-home .secondary-panel small { font-size: 10px; color: #5f6b7b; }
body.space-home .indicator-track { height: 4px; border-radius: 4px; background: #1a2230; margin: 12px 0 10px; }
body.space-home .indicator-track span { background: #4b8dff; }
body.space-home .indicator-track.fear span { background: linear-gradient(90deg, #e05b74, #e0b13c 50%, #2ecc9b); }
body.space-home .dominance-ring { width: 74px; height: 74px; box-shadow: none; background: conic-gradient(#3f7fd6 var(--pct, 0%), #1a2230 var(--pct, 0%)); }
body.space-home .dominance-ring strong { width: 58px; height: 58px; font-size: 13px; background: #0b0f16; font-weight: 650; }
body.space-home .ratio-pair { margin: 20px 0 10px; }
body.space-home .ratio-pair strong { font-size: 11px; font-weight: 600; }
body.space-home .ratio-pair strong:first-child { color: #2ecc9b; }
body.space-home .ratio-pair strong:last-child { color: var(--ui-up); }
body.space-home .ratio-meter { height: 4px; background: #e05b74; border-radius: 4px; margin-bottom: 10px; }
body.space-home .ratio-meter span { background: #2ecc9b; }
body.space-home .secondary-big { font-size: 20px; margin: 20px 0 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
body.space-home .tf-switch { border: 1px solid #212b3a; border-radius: 7px; background: #0b1018; padding: 2px; }
body.space-home .tf-switch button { font-size: 11px; font-weight: 600; color: #77869a; padding: 5px 10px; border-radius: 5px; }
body.space-home .tf-switch button:hover { color: #dbe4f0; }
body.space-home .tf-switch button.active { background: #1a2432; color: #f0f5fc; }
body.space-home .stale-note { font-size: 10.5px; color: #d6a63f; }

/* ── 하단 링크 블록 ── */
body.space-home .asset-hub-links { margin: 12px 0 0; padding: 16px 18px; }
body.space-home .asset-hub-links h2 { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #8b98ab; margin: 0 0 10px; }
body.space-home .asset-related { display: flex; gap: 8px; flex-wrap: wrap; }
body.space-home .asset-related a {
  border: 1px solid var(--ui-line-soft);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 11.5px;
  color: #b9c6d8;
  background: #0d121b;
}
body.space-home .asset-related a:hover { border-color: #2b374a; color: #eef4ff; }
body.space-home .stats-entry-link { margin: 10px 0 0; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
body.space-home .stats-entry-link b { font-size: 12.5px; font-weight: 600; color: #dbe4f0; }
body.space-home .stats-entry-link small { font-size: 10.5px; color: #66717f; }
body.space-home .stats-entry-link span { color: #66717f; }
body.space-home .quick-bottom { margin: 12px 0 36px; padding: 16px 18px; border-radius: 12px; }
body.space-home .quick-bottom h2 { font-size: 13.5px; font-weight: 600; margin-top: 3px; }
body.space-home .quick-bottom-links a { border: 1px solid var(--ui-line-soft); border-radius: 7px; background: #0d121b; font-size: 11.5px; padding: 8px 12px; color: #b9c6d8; }
body.space-home .quick-bottom-links a:hover { border-color: #2b374a; color: #eef4ff; }
body.space-home .quick-bottom .section-label { margin-bottom: 0; }

/* ── 김치프리미엄 카드 ── */
body.space-home .feature-kimchi { min-height: 300px; }
body.space-home .premium-visual { margin-top: 0; padding-top: 12px; gap: 0; }
body.space-home .premium-chart-head { align-items: flex-start; }
body.space-home .premium-chart-head span { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: #6f7d90; }
body.space-home .premium-big { font-size: 24px; font-weight: 650; letter-spacing: -.03em; color: #eef3fa; }
body.space-home .premium-big.up { color: var(--ui-up); }
body.space-home .premium-big.down { color: #2ecc9b; }
body.space-home .kc-home-chart { height: 124px; margin: 10px 0 0; }
body.space-home .kc-home-note { font-size: 10px; color: #5f6b7b; margin: 8px 0 0; }
body.space-home .kc-home-axis { font-size: 9.5px; color: #5f6b7b; }
body.space-home .kc-message { font-size: 11px; color: #66717f; }

/* footer */
body.space-home .footer { background: #070a10; border-top: 1px solid #141b26; color: #5f6b7b; font-size: 10.5px; }

/* ── 반응형 ── */
@media (max-width: 1200px) {
  body.space-home .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.space-home .feature-kimchi { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  body.space-home .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  body.space-home .hero-right { align-items: flex-start; width: 100%; }
  body.space-home .mini-search { width: 100%; max-width: 420px; }
  body.space-home .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 증시 스트립: 가로 스크롤 대신 지수 4개를 4열 그리드로 (좁은 태블릿) */
  body.space-home .market-glance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex-wrap: nowrap;
    overflow: hidden;
  }
  body.space-home .market-glance .glance-title {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 7px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
  }
  body.space-home .glance-item {
    flex-wrap: wrap;
    align-content: center;
    gap: 1px 6px;
    padding: 10px 14px;
    border-bottom: 0;
  }
  body.space-home .market-glance .glance-item span { flex: 0 0 100%; }
  body.space-home .market-glance .glance-item:nth-of-type(4) { border-right: 0; }
  body.space-home .market-glance .glance-all {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-left: 0;
    padding: 7px 14px;
    border-top: 1px solid var(--ui-line-soft);
    background: #0b1018;
  }
  body.space-home .cta-strip { grid-template-columns: 1fr; }
  body.space-home .data-grid, body.space-home .secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body.space-home .space-hero { padding-top: 26px; }
  body.space-home .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.space-home .hero-metric { padding: 10px 12px; }
  body.space-home .hero-metric strong { font-size: 15px; }
  body.space-home .market-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 8px;
  }
  body.space-home .market-glance .glance-title {
    padding: 7px 12px;
    letter-spacing: .12em;
  }
  body.space-home .glance-item {
    gap: 1px 6px;
    padding: 9px 12px;
    border-right: 1px solid var(--ui-line-soft);
    border-bottom: 1px solid var(--ui-line-soft);
  }
  body.space-home .market-glance .glance-item:nth-of-type(even) { border-right: 0; }
  body.space-home .market-glance .glance-item:nth-of-type(3),
  body.space-home .market-glance .glance-item:nth-of-type(4) { border-bottom: 0; }
  body.space-home .market-glance .glance-all {
    padding: 8px 12px;
  }
  body.space-home .feature-grid { grid-template-columns: 1fr; }
  body.space-home .feature-kimchi { grid-column: auto; }
  body.space-home .stock-summary { grid-template-columns: 1fr; }
  body.space-home .data-grid, body.space-home .secondary-grid { grid-template-columns: 1fr 1fr; }
  body.space-home .market-section { padding: 14px; }
  body.space-home .data-panel, body.space-home .secondary-panel { padding: 12px; min-height: 118px; }
  body.space-home .data-main { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
  body.space-home .coin-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.space-home .quick-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── 성운 배경 반응형: 좁은 화면은 모바일용 성운 이미지로 교체 ── */
@media (max-width: 850px) {
  body.site-galaxy[data-space="home"]::before {
    background:
      linear-gradient(180deg, rgba(7, 10, 16, .68) 0%, rgba(7, 10, 16, .26) 18%, rgba(7, 10, 16, .44) 56%, rgba(7, 10, 16, .90) 88%, #070a10 100%),
      linear-gradient(96deg, rgba(7, 10, 16, .78) 0%, rgba(7, 10, 16, .30) 52%, rgba(7, 10, 16, .10) 100%),
      url('/assets/okapi-nebula-mobile-v1.webp') 62% top / auto 580px no-repeat !important;
    height: 620px !important;
  }
  body.site-galaxy[data-space="home"]::after {
    background: linear-gradient(180deg, rgba(7, 10, 16, 0) 372px, rgba(7, 10, 16, .58) 512px, #070a10 616px) !important;
  }
}
