/* GeoFuture — interstellar star-map panel styling (desktop, dark mint/amber).
 *
 * Self-contained: everything is scoped under `.gf-starmap-*` and the palette
 * lives in custom properties on `.gf-starmap-shell`, so the shell can drop this
 * stylesheet in without touching world3d.css. No global selectors, no resets —
 * only the star-map surfaces. The markup contract is documented at the bottom
 * of this file; `tools/starmap-preview.html` is a working reference.
 *
 * Colours match the shell's dark teal/mint/amber language:
 *   mint  = the network / human presence        #86edb5
 *   amber = launch, transit, next opportunity   #e3b365
 *   red   = shortfall / blocked                 #ff7f8e
 */

.gf-starmap-shell {
  --gf-ink: #ecf3ec;
  --gf-muted: #91a39c;
  --gf-line: rgba(180, 211, 195, .17);
  --gf-line-soft: rgba(180, 211, 195, .09);
  --gf-mint: #86edb5;
  --gf-mint-dim: rgba(134, 237, 181, .18);
  --gf-amber: #e3b365;
  --gf-amber-dim: rgba(227, 179, 101, .16);
  --gf-red: #ff7f8e;
  --gf-bg: #061014;
  --gf-panel: rgba(5, 15, 19, .66);
  --gf-panel-solid: rgba(6, 18, 22, .92);
  --gf-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, "Cascadia Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", monospace;
  --gf-sans: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --gf-serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  position: relative;
  z-index: 50;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--gf-ink);
  font-family: var(--gf-sans);
  -webkit-font-smoothing: antialiased;
}

.gf-starmap-shell[hidden] { display: none !important; }

/* ------------------------------------------------------------ canvas */

.gf-starmap-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  outline: none;
  touch-action: none;
  cursor: grab;
}
.gf-starmap-canvas:active { cursor: grabbing; }

/* The canvas is transparent; this optional veil improves label contrast over a
 * bright shell galaxy without hiding it. */
.gf-starmap-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 0 38%, rgba(3, 9, 12, .36) 100%),
    linear-gradient(180deg, rgba(3, 9, 12, .34) 0%, transparent 22%, transparent 78%, rgba(3, 9, 12, .42) 100%);
}

/* --------------------------------------------------------------- top */

.gf-starmap-top {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  pointer-events: none;
}

.gf-starmap-head { max-width: 460px; }

.gf-starmap-kicker {
  margin: 0 0 8px;
  color: var(--gf-amber);
  font: 600 8px/1.2 var(--gf-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gf-starmap-title {
  margin: 0;
  font-family: var(--gf-serif);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .72);
}

.gf-starmap-sub {
  margin: 7px 0 0;
  color: var(--gf-muted);
  font: 500 10px/1.5 var(--gf-mono);
  letter-spacing: .04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

.gf-starmap-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: auto;
}

.gf-starmap-chip {
  min-width: 72px;
  padding: 8px 11px 7px;
  border: 1px solid var(--gf-line);
  border-radius: 7px;
  background: var(--gf-panel);
  backdrop-filter: blur(14px);
}
.gf-starmap-chip span {
  display: block;
  color: var(--gf-muted);
  font: 500 7px/1 var(--gf-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gf-starmap-chip strong {
  display: block;
  margin-top: 6px;
  font: 600 13px/1 var(--gf-mono);
  white-space: nowrap;
}
.gf-starmap-chip strong small { margin-left: 2px; color: var(--gf-muted); font-size: 8px; font-weight: 500; }
.gf-starmap-chip.is-prestige { border-color: rgba(227, 179, 101, .38); }
.gf-starmap-chip.is-prestige strong { color: var(--gf-amber); }
.gf-starmap-chip.is-mint { border-color: rgba(134, 237, 181, .34); }
.gf-starmap-chip.is-mint strong { color: var(--gf-mint); }

/* --------------------------------------------------------------- close */

.gf-starmap-close {
  position: absolute;
  z-index: 10;
  top: 20px;
  right: 26px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gf-line);
  border-radius: 6px;
  background: var(--gf-panel);
  color: var(--gf-ink);
  font: 600 18px/1 var(--gf-mono);
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
  line-height: 1;
}
.gf-starmap-close:hover {
  border-color: var(--gf-amber);
  color: var(--gf-amber);
  background: rgba(227, 179, 101, .1);
}
.gf-starmap-close:active { transform: scale(.94); }

/* -------------------------------------------------------------- side */

.gf-starmap-side {
  position: absolute;
  z-index: 4;
  top: 96px;
  right: 26px;
  bottom: 26px;
  width: min(372px, 31vw);
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 237, 181, .34) transparent;
}
.gf-starmap-side::-webkit-scrollbar { width: 6px; }
.gf-starmap-side::-webkit-scrollbar-thumb { background: rgba(134, 237, 181, .3); border-radius: 3px; }
.gf-starmap-side > * { flex: 0 0 auto; }

/* -------------------------------------------------------------- card */

.gf-starmap-card {
  position: relative;
  padding: 13px 15px 13px;
  border: 1px solid var(--gf-line);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(14, 32, 35, .78) 0%, rgba(5, 15, 19, .7) 62%, rgba(5, 13, 17, .78) 100%);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px -30px rgba(0, 0, 0, .9);
}
.gf-starmap-card.is-target { border-color: rgba(134, 237, 181, .34); }
.gf-starmap-card.is-target::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, var(--gf-mint), rgba(134, 237, 181, 0));
}

.gf-starmap-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gf-starmap-card-head .gf-starmap-kicker { margin-bottom: 6px; }

.gf-starmap-card h2.gf-starmap-name {
  margin: 0;
  font-family: var(--gf-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.gf-starmap-card h2.gf-starmap-name small {
  display: block;
  margin-top: 5px;
  color: var(--gf-muted);
  font: 500 9px/1.4 var(--gf-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gf-starmap-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(227, 179, 101, .4);
  border-radius: 4px;
  color: var(--gf-amber);
  font: 600 8px/1 var(--gf-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gf-starmap-badge.is-mint { border-color: rgba(134, 237, 181, .45); color: var(--gf-mint); }

.gf-starmap-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  background: var(--gf-line-soft);
  border: 1px solid var(--gf-line-soft);
  border-radius: 7px;
  overflow: hidden;
}
.gf-starmap-stat {
  padding: 8px 10px 7px;
  background: rgba(5, 15, 19, .82);
}
.gf-starmap-stat span {
  display: block;
  color: var(--gf-muted);
  font: 500 7px/1 var(--gf-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gf-starmap-stat strong {
  display: block;
  margin-top: 6px;
  font: 600 13px/1.1 var(--gf-mono);
}
.gf-starmap-stat strong small { color: var(--gf-muted); font-size: 8px; font-weight: 500; }

.gf-starmap-fact {
  margin: 11px 0 0;
  padding-left: 10px;
  border-left: 1px solid rgba(134, 237, 181, .35);
  color: rgba(214, 235, 226, .78);
  font-size: 11px;
  line-height: 1.62;
}

.gf-starmap-cost {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--gf-line-soft);
}
.gf-starmap-cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.gf-starmap-cost-row span {
  color: var(--gf-muted);
  font: 500 7px/1 var(--gf-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gf-starmap-cost-row b {
  color: var(--gf-ink);
  font: 600 11px/1 var(--gf-mono);
}
.gf-starmap-cost-row.is-short b { color: var(--gf-red); }
.gf-starmap-cost-row.is-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--gf-line-soft); }
.gf-starmap-cost-row.is-total b { color: var(--gf-amber); }

.gf-starmap-actions { margin-top: 13px; }

.gf-starmap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(134, 237, 181, .55);
  border-radius: 5px;
  background: var(--gf-mint);
  color: #06120e;
  font: 700 9px/1 var(--gf-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.gf-starmap-btn:hover { background: #adffd0; }
.gf-starmap-btn:active { transform: translateY(1px); }
.gf-starmap-btn:disabled {
  border-color: var(--gf-line);
  border-style: dashed;
  background: rgba(8, 22, 26, .6);
  color: var(--gf-muted);
  cursor: not-allowed;
}
.gf-starmap-btn.is-ghost {
  border-color: rgba(180, 211, 195, .22);
  background: transparent;
  color: var(--gf-muted);
}
.gf-starmap-btn.is-ghost:hover { border-color: rgba(134, 237, 181, .5); color: var(--gf-ink); background: rgba(134, 237, 181, .07); }

.gf-starmap-reason {
  margin: 8px 0 0;
  color: var(--gf-amber);
  font: 500 9px/1.5 var(--gf-mono);
}
.gf-starmap-reason.is-error { color: var(--gf-red); }

/* ------------------------------------------------------------- network */

.gf-starmap-network-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gf-starmap-network-head strong { font: 600 15px/1 var(--gf-mono); }
.gf-starmap-network-head strong small { color: var(--gf-muted); font-size: 9px; font-weight: 500; }

.gf-starmap-meter {
  position: relative;
  height: 4px;
  margin: 11px 0 4px;
  border-radius: 2px;
  background: rgba(180, 211, 195, .13);
  overflow: hidden;
}
.gf-starmap-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(134, 237, 181, .55), var(--gf-mint));
  transition: width .3s ease;
}

.gf-starmap-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 0;
  color: var(--gf-muted);
  font: 500 8px/1.4 var(--gf-mono);
  letter-spacing: .04em;
}
.gf-starmap-meta-row b { color: var(--gf-ink); font-weight: 600; }
.gf-starmap-meta-row b.is-mint { color: var(--gf-mint); }
.gf-starmap-meta-row b.is-amber { color: var(--gf-amber); }

/* ------------------------------------------------------------ probes */

.gf-starmap-probes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gf-starmap-probe {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0 7px;
  border-top: 1px solid var(--gf-line-soft);
}
.gf-starmap-probe:first-child { border-top: 0; }
.gf-starmap-probe-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gf-amber);
  border-radius: 50%;
  background: rgba(227, 179, 101, .18);
}
.gf-starmap-probe.is-arrived .gf-starmap-probe-dot {
  border-color: var(--gf-mint);
  background: var(--gf-mint);
  box-shadow: 0 0 10px rgba(134, 237, 181, .8);
}
.gf-starmap-probe-main { min-width: 0; }
.gf-starmap-probe-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
.gf-starmap-probe-meta {
  display: block;
  margin-top: 3px;
  color: var(--gf-muted);
  font: 500 8px/1.3 var(--gf-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gf-starmap-probe.is-outbound .gf-starmap-probe-meta { color: var(--gf-amber); }
.gf-starmap-probe.is-arrived .gf-starmap-probe-meta { color: var(--gf-mint); }
.gf-starmap-probe-bar {
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgba(180, 211, 195, .12);
  overflow: hidden;
}
.gf-starmap-probe-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(227, 179, 101, .5), var(--gf-amber));
  transition: width .3s ease;
}
.gf-starmap-probe.is-arrived .gf-starmap-probe-bar i { background: var(--gf-mint); }
.gf-starmap-probe-years {
  align-self: start;
  color: var(--gf-amber);
  font: 600 9px/1 var(--gf-mono);
  white-space: nowrap;
}
.gf-starmap-probe.is-arrived .gf-starmap-probe-years { color: var(--gf-mint); }
.gf-starmap-probe.is-clickable { cursor: pointer; }
.gf-starmap-probe.is-clickable:hover .gf-starmap-probe-name { color: var(--gf-mint); }
.gf-starmap-probe.is-selected { background: rgba(134, 237, 181, .05); }

.gf-starmap-empty {
  margin: 4px 0 2px;
  color: var(--gf-muted);
  font: 500 9px/1.55 var(--gf-mono);
}

/* --------------------------------------------------------- milestones */

.gf-starmap-milestones {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.gf-starmap-milestone {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  border-top: 1px dashed var(--gf-line-soft);
  color: rgba(214, 235, 226, .58);
}
.gf-starmap-milestone:first-child { border-top: 0; }
.gf-starmap-milestone-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(180, 211, 195, .28);
  border-radius: 50%;
}
.gf-starmap-milestone strong { font: 500 10px/1.3 var(--gf-sans); }
.gf-starmap-milestone small { display: block; margin-top: 2px; color: var(--gf-muted); font: 500 7px/1.3 var(--gf-mono); letter-spacing: .04em; }
.gf-starmap-milestone em { color: var(--gf-muted); font: 600 9px/1 var(--gf-mono); font-style: normal; }
.gf-starmap-milestone.is-earned { color: var(--gf-ink); }
.gf-starmap-milestone.is-earned .gf-starmap-milestone-dot { border-color: var(--gf-mint); background: var(--gf-mint); }
.gf-starmap-milestone.is-earned em { color: var(--gf-mint); }
.gf-starmap-milestone.is-next { color: var(--gf-amber); }
.gf-starmap-milestone.is-next .gf-starmap-milestone-dot {
  border-color: var(--gf-amber);
  animation: gf-starmap-pulse 2.4s ease-in-out infinite;
}
.gf-starmap-milestone.is-next em { color: var(--gf-amber); }

/* ------------------------------------------------------- catalog rows */

.gf-starmap-catalog {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.gf-starmap-catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--gf-line-soft);
  cursor: pointer;
}
.gf-starmap-catalog-row:first-child { border-top: 0; }
.gf-starmap-catalog-row strong { display: block; font-size: 10.5px; font-weight: 600; }
.gf-starmap-catalog-row small { display: block; margin-top: 2px; color: var(--gf-muted); font: 500 7.5px/1.3 var(--gf-mono); letter-spacing: .05em; }
.gf-starmap-catalog-row b { color: var(--gf-amber); font: 600 9px/1 var(--gf-mono); }
.gf-starmap-catalog-row:hover strong { color: var(--gf-mint); }
.gf-starmap-catalog-row.is-arrived b { color: var(--gf-mint); }
.gf-starmap-catalog-row.is-selected { background: rgba(134, 237, 181, .06); }

/* ------------------------------------------------------------ legend */

.gf-starmap-legend {
  position: absolute;
  z-index: 4;
  left: 26px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 440px));
  padding: 11px 13px;
  border: 1px solid var(--gf-line);
  border-radius: 8px;
  background: var(--gf-panel);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.gf-starmap-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.gf-starmap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gf-muted);
  font: 500 8px/1.2 var(--gf-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gf-starmap-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.gf-starmap-legend-hint {
  margin: 8px 0 0;
  color: rgba(145, 163, 156, .8);
  font: 500 8px/1.5 var(--gf-mono);
  letter-spacing: .04em;
}
.gf-starmap-legend-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--gf-line);
  border-radius: 3px;
  background: rgba(5, 15, 19, .8);
  color: var(--gf-muted);
  font: inherit;
}

/* ------------------------------------------------------------- toast */

.gf-starmap-toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 88px;
  transform: translate(-50%, -8px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 80px));
  padding: 10px 15px;
  border: 1px solid rgba(227, 179, 101, .5);
  border-radius: 7px;
  background: var(--gf-panel-solid);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, .95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.gf-starmap-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.gf-starmap-toast.is-arrival { border-color: rgba(134, 237, 181, .55); }
.gf-starmap-toast-icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gf-amber);
  box-shadow: 0 0 12px var(--gf-amber);
}
.gf-starmap-toast.is-arrival .gf-starmap-toast-icon { background: var(--gf-mint); box-shadow: 0 0 12px var(--gf-mint); }
.gf-starmap-toast p { margin: 0; font: 600 10px/1.4 var(--gf-mono); letter-spacing: .04em; }
.gf-starmap-toast small { display: block; margin-top: 2px; color: var(--gf-muted); font: 500 8px/1.4 var(--gf-mono); }

/* ------------------------------------------------------------ locked */

.gf-starmap-locked {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(4, 11, 14, .28) 0%, rgba(3, 9, 12, .8) 64%, rgba(3, 8, 11, .94) 100%);
  backdrop-filter: blur(3px);
}
.gf-starmap-locked-card {
  position: relative;
  width: min(430px, 100%);
  padding: 26px 28px 24px;
  border: 1px solid rgba(227, 179, 101, .3);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(16, 30, 33, .92), rgba(5, 14, 18, .94));
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 1);
  text-align: left;
}
.gf-starmap-lock-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gf-line);
  border-radius: 6px;
  background: var(--gf-panel);
  color: var(--gf-ink);
  font: 600 16px/1 var(--gf-mono);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.gf-starmap-lock-close:hover {
  border-color: var(--gf-amber);
  color: var(--gf-amber);
  background: rgba(227, 179, 101, .1);
}
.gf-starmap-lock-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(227, 179, 101, .45);
  border-radius: 50%;
  color: var(--gf-amber);
  font: 600 15px/1 var(--gf-mono);
}
.gf-starmap-locked-card h2 {
  margin: 0;
  font-family: var(--gf-serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -.035em;
}
.gf-starmap-locked-card p {
  margin: 10px 0 0;
  color: var(--gf-muted);
  font-size: 11px;
  line-height: 1.65;
}
.gf-starmap-locked-card .gf-starmap-lock-progress {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--gf-line-soft);
  color: var(--gf-amber);
  font: 600 9px/1.5 var(--gf-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- sidebar foot */

.gf-starmap-side-foot {
  margin-top: auto;
  padding: 2px 2px 0;
  color: rgba(145, 163, 156, .66);
  font: 500 8px/1.5 var(--gf-mono);
  letter-spacing: .03em;
  text-align: right;
}

/* ------------------------------------------------- accessibility/states */

.gf-starmap-shell :focus-visible {
  outline: 2px solid var(--gf-mint);
  outline-offset: 2px;
}
.gf-starmap-shell [hidden] { display: none !important; }
.gf-starmap-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes gf-starmap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 179, 101, .38); }
  50% { box-shadow: 0 0 0 5px rgba(227, 179, 101, 0); }
}

/* The shell's motion policy sets html[data-motion="reduced"]; the media query
 * keeps the panel calm for OS-level reduced motion as well. */
html[data-motion="reduced"] .gf-starmap-shell,
html[data-motion="reduced"] .gf-starmap-shell * {
  animation: none !important;
  transition-duration: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  .gf-starmap-shell,
  .gf-starmap-shell * {
    animation: none !important;
    transition-duration: 0s !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1280px) {
  .gf-starmap-side { width: min(340px, 34vw); top: 88px; right: 20px; bottom: 20px; }
  .gf-starmap-top { padding: 18px 20px; }
  .gf-starmap-title { font-size: 30px; }
  .gf-starmap-legend { left: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 400px)); }
}

@media (max-width: 1020px) {
  .gf-starmap-side { position: absolute; top: auto; left: 14px; right: 14px; bottom: 14px; width: auto; max-height: 42vh; }
  .gf-starmap-legend { display: none; }
  .gf-starmap-title { font-size: 26px; }
}

/* =========================================================================
 * MARKUP CONTRACT (copy from tools/starmap-preview.html)
 * =========================================================================
 * <div class="gf-starmap-shell">
 *   <canvas class="gf-starmap-canvas" tabindex="0"></canvas>
 *   <div class="gf-starmap-veil"></div>
 *   <header class="gf-starmap-top">
 *     <div class="gf-starmap-head">
 *       <p class="gf-starmap-kicker" data-i18n="starmap.kicker"></p>
 *       <h1 class="gf-starmap-title" data-i18n="starmap.title"></h1>
 *       <p class="gf-starmap-sub" data-i18n="starmap.subtitle"></p>
 *     </div>
 *     <div class="gf-starmap-status">
 *       <div class="gf-starmap-chip is-prestige"><span>Prestige</span><strong>57</strong></div>
 *       <div class="gf-starmap-chip is-mint"><span>Network</span><strong>1<small>/ 14</small></strong></div>
 *     </div>
 *   </header>
 *   <aside class="gf-starmap-side">
 *     <section class="gf-starmap-card is-target">          <!-- star info card -->
 *       <div class="gf-starmap-card-head">
 *         <div>
 *           <p class="gf-starmap-kicker">Selected system</p>
 *           <h2 class="gf-starmap-name">比邻星<small>M5.5Ve · Proxima Centauri</small></h2>
 *         </div>
 *         <span class="gf-starmap-badge is-mint">Arrived</span>
 *       </div>
 *       <div class="gf-starmap-stats">
 *         <div class="gf-starmap-stat"><span>Distance</span><strong>4.25 <small>ly</small></strong></div>
 *         <div class="gf-starmap-stat"><span>Habitability</span><strong>44</strong></div>
 *       </div>
 *       <p class="gf-starmap-fact">…shortFact…</p>
 *       <div class="gf-starmap-cost">
 *         <div class="gf-starmap-cost-row"><span>Capital</span><b>873</b></div>
 *         <div class="gf-starmap-cost-row is-short"><span>Materials</span><b>98</b></div>
 *         <div class="gf-starmap-cost-row is-total"><span>Transit</span><b>13 yr</b></div>
 *       </div>
 *       <div class="gf-starmap-actions">
 *         <button class="gf-starmap-btn" type="button">Launch probe</button>
 *         <p class="gf-starmap-reason is-error">Not enough resources for this launch.</p>
 *       </div>
 *     </section>
 *     <section class="gf-starmap-card">                    <!-- network summary -->
 *       <div class="gf-starmap-network-head"><strong>3 / 14 <small>systems</small></strong></div>
 *       <div class="gf-starmap-meter"><i style="width: 21%"></i></div>
 *       <ul class="gf-starmap-probes">
 *         <li class="gf-starmap-probe is-outbound">
 *           <span class="gf-starmap-probe-dot"></span>
 *           <div class="gf-starmap-probe-main">
 *             <span class="gf-starmap-probe-name">Barnard's Star</span>
 *             <span class="gf-starmap-probe-meta">Outbound · 6 yr left</span>
 *             <div class="gf-starmap-probe-bar"><i style="width: 54%"></i></div>
 *           </div>
 *           <b class="gf-starmap-probe-years">6y</b>
 *         </li>
 *       </ul>
 *       <ul class="gf-starmap-milestones">
 *         <li class="gf-starmap-milestone is-earned"><span class="gf-starmap-milestone-dot"></span><div><strong>First Probe</strong></div><em>+10</em></li>
 *         <li class="gf-starmap-milestone is-next"><span class="gf-starmap-milestone-dot"></span><div><strong>Three-Star Network</strong></div><em>+25</em></li>
 *       </ul>
 *     </section>
 *     <p class="gf-starmap-side-foot">Travel time is a game abstraction, not physics.</p>
 *   </aside>
 *   <div class="gf-starmap-legend"> …legend items + hint… </div>
 *   <div class="gf-starmap-toast is-arrival is-visible"> … </div>
 *   <div class="gf-starmap-locked"> …locked card… </div>
 * </div>
 */
