/* ============================================================
   旅行者一号 — 游戏 UI 系统
   深空科幻 HUD：青/铜配色，全息环，扫描线，单像素发光
   ============================================================ */

:root {
  /* core */
  --bg-0:        #03060f;
  --bg-1:        #060c1a;
  --bg-2:        #0a1428;
  --bg-3:        #0f1d3a;

  /* hud */
  --hud:         #7df9ff;       /* primary cyan */
  --hud-dim:     #3a8a99;
  --hud-glow:    rgba(125,249,255,.55);
  --hud-soft:    rgba(125,249,255,.10);
  --hud-line:    rgba(125,249,255,.25);

  /* accents */
  --copper:      #ffb86b;
  --copper-glow: rgba(255,184,107,.45);
  --warn:        #ff6b9d;
  --good:        #9ef0c8;

  /* ink */
  --ink:         #e9f4ff;
  --ink-dim:     #7a91b5;
  --ink-mute:    #4a5e80;

  /* type */
  --f-display:   'Avenir Next Condensed', 'Arial Narrow', 'PingFang SC', sans-serif;
  --f-data:      'SFMono-Regular', 'Cascadia Mono', Menlo, monospace;
  --f-mono:      'SFMono-Regular', 'Cascadia Mono', Menlo, monospace;
  --f-cn:        'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-tech:      'Avenir Next', 'PingFang SC', system-ui, sans-serif;
}

/* ---------- shared text styles ---------- */

.zh-display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.18em;
}
.zh-display-cn {
  font-family: var(--f-cn);
  font-weight: 900;
  letter-spacing: 0.32em;
}
.data {
  font-family: var(--f-data);
  letter-spacing: 0.06em;
}
.mono {
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}
.tech {
  font-family: var(--f-tech);
  letter-spacing: 0.08em;
}
.label {
  font-family: var(--f-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--hud-dim);
}
.label-cn {
  font-family: var(--f-cn);
  font-weight: 500;
  letter-spacing: 0.6em;
  font-size: 10px;
  color: var(--hud-dim);
  text-transform: none;
}

/* ---------- universal artboard frame ---------- */

.ab {
  width: 1280px;
  height: 800px;
  position: relative;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--f-cn);
  overflow: hidden;
  isolation: isolate;
}

/* deep-space backdrop with subtle nebula and stars */
.ab-space {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(125,249,255,.08) 0%, transparent 45%),
    radial-gradient(ellipse at 78% 80%, rgba(255,184,107,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #07101f 0%, #03060f 70%);
}
.ab-space::before {
  /* fine star noise */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 23% 64%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 41% 31%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 56% 78%, rgba(180,220,255,.7), transparent),
    radial-gradient(1px 1px at 67% 12%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 79% 49%, rgba(255,220,180,.7), transparent),
    radial-gradient(1px 1px at 88% 84%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 32% 88%, rgba(180,220,255,.6), transparent),
    radial-gradient(2px 2px at 84% 22%, rgba(255,255,255,.95), transparent),
    radial-gradient(1px 1px at 7%  73%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 51% 8%,  rgba(255,255,255,.55), transparent);
  opacity: .9;
}
.ab-space::after {
  /* faint scanlines for game feel */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(125,249,255,.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

/* vignette overlay */
.ab-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 5;
}

/* corner brackets — universal HUD frame */
.ab-frame {
  position: absolute; inset: 14px;
  pointer-events: none;
  z-index: 6;
}
.ab-frame::before, .ab-frame::after,
.ab-frame > i::before, .ab-frame > i::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--hud);
  opacity: .55;
}
.ab-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ab-frame::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ab-frame > i::before { bottom: 0; left: 0; position: absolute; border-right: 0; border-top: 0; }
.ab-frame > i::after  { bottom: 0; right: 0; position: absolute; border-left: 0; border-top: 0; }

/* top status strip */
.ab-statusbar {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  height: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  border: 1px solid var(--hud-line);
  background: linear-gradient(180deg, rgba(125,249,255,.06), rgba(125,249,255,.02));
  z-index: 7;
}
.ab-statusbar .seg {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--hud);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ab-statusbar .dot {
  width: 6px; height: 6px;
  background: var(--hud);
  box-shadow: 0 0 8px var(--hud-glow);
}
.ab-statusbar .seg.alt { color: var(--copper); }
.ab-statusbar .seg.alt .dot { background: var(--copper); box-shadow: 0 0 8px var(--copper-glow); }
.ab-statusbar .spacer { flex: 1; }

/* glowing thin line */
.glowline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud) 50%, transparent);
  box-shadow: 0 0 12px var(--hud-glow);
}

/* ----- panels ----- */
.panel {
  background:
    linear-gradient(180deg, rgba(10,20,40,.75), rgba(6,12,26,.85));
  border: 1px solid var(--hud-line);
  position: relative;
}
.panel::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(125,249,255,.06);
  margin: 4px;
  pointer-events: none;
}
/* corner notches */
.notch::before, .notch::after,
.notch > .nb::before, .notch > .nb::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--hud);
}
.notch::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.notch::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.notch > .nb::before { bottom: -1px; left: -1px; position: absolute; border-right: 0; border-top: 0; }
.notch > .nb::after  { bottom: -1px; right: -1px; position: absolute; border-left: 0; border-top: 0; }

/* button: sci-fi */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(125,249,255,.10), rgba(125,249,255,.02));
  border: 1px solid var(--hud);
  color: var(--hud);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn .cn {
  font-family: var(--f-cn);
  font-weight: 700;
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--ink);
}
.btn--primary {
  background: linear-gradient(180deg, rgba(255,184,107,.20), rgba(255,184,107,.06));
  border-color: var(--copper);
  color: var(--copper);
  box-shadow: 0 0 20px rgba(255,184,107,.20), inset 0 0 20px rgba(255,184,107,.10);
}
.btn--primary .cn { color: #fff5e3; }
.btn--ghost {
  background: transparent;
  border-color: var(--hud-line);
  color: var(--ink-dim);
}

/* hex chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 8px;
  border: 1px solid var(--hud-line);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--hud);
  background: rgba(125,249,255,.04);
}
.chip-mark {
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--hud);
  box-shadow: 0 0 6px var(--hud-glow);
}

/* tickers */
.ticker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--hud-dim);
  white-space: nowrap;
  overflow: hidden;
}

/* big number (Major Mono) */
.bignum {
  font-family: var(--f-data);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

/* L-shape corner */
.lcorner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--hud);
}

/* radial scan ring (decorative) */
.holoring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hud-line);
  pointer-events: none;
}

/* utility */
.absfill { position: absolute; inset: 0; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.muted { color: var(--ink-dim); }
.dim   { color: var(--ink-mute); }
.cyan  { color: var(--hud); }
.cu    { color: var(--copper); }

/* artboard caption styling on canvas wrapper */
[data-dc-artboard] {
  background: #02040a !important;
}
