/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* color */
  --bg: #05060b;
  --bg-deep: #020207;
  --star: #eef2ff;
  --sun-core: #fff3d6;
  --sun-mid: #ffb347;
  --sun-outer: #ff7a3d;

  --c-petvetpals: #3fd7c4;
  --c-futunurse: #b87dff;
  --c-pipeline: #d88a4a;
  --c-skills: #c9a06a;
  --c-contact: #7fe8ff;

  --text-1: #eef1fb;
  --text-2: #a6acc4;
  --text-3: #6c7392;

  --glass: rgba(10, 13, 24, 0.72);
  --glass-strong: rgba(8, 10, 19, 0.88);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* type */
  --f-display: "Space Grotesk", sans-serif;
  --f-body: "IBM Plex Sans", sans-serif;
  --f-mono: "IBM Plex Mono", monospace;

  /* layout */
  --topbar-h: 76px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--f-body);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--sun-mid); color: #1a0f00; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
a { color: inherit; }

/* focus visibility */
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sun-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   CANVAS
   ============================================================ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; width: min(280px, 70vw); }
.loader-mark {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--sun-mid);
  margin-bottom: 22px;
}
.loader-bar {
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sun-outer), var(--sun-mid), var(--sun-core));
  transition: width 0.25s ease;
}
.loader-label {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: lowercase;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 40;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 4px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 35% 30%, var(--sun-core), var(--sun-mid) 55%, var(--sun-outer) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  color: #2a1400;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-1);
}

.navdots {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 100px;
  padding: 6px;
  position: relative;
}
.navdot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 100px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-2);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.navdot:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }
.navdot.active { background: rgba(255,255,255,0.1); color: var(--text-1); }
.navdot .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c, var(--sun-mid));
  box-shadow: 0 0 8px var(--c, var(--sun-mid));
  flex-shrink: 0;
}
.sun-dot { background: var(--sun-mid); box-shadow: 0 0 8px var(--sun-mid); }

/* --- nav groups: "Projects" / "Experience" collapse several bodies into one flyout --- */
.navgroup { position: relative; }
.navdot-parent svg { transition: transform 0.2s ease; opacity: 0.6; }
.navgroup.open .navdot-parent svg { transform: rotate(180deg); }
.navgroup.open .navdot-parent, .navdot-parent.has-active { background: rgba(255,255,255,0.1); color: var(--text-1); }

.navflyout {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  padding: 7px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}
.navgroup.open .navflyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.navflyout-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.navflyout-item:hover { background: rgba(255,255,255,0.07); color: var(--text-1); }
.navflyout-item.active { color: var(--text-1); background: rgba(255,255,255,0.05); }
.navflyout-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--sun-mid)); box-shadow: 0 0 8px var(--c, var(--sun-mid)); flex-shrink: 0; }
.navflyout-item .nf-sub { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.navflyout-item .nf-main { display: flex; flex-direction: column; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--sun-mid); border-color: rgba(255,179,71,0.4); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  width: 16px; height: 1.5px;
  background: var(--text-1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ============================================================
   INTRO HERO
   ============================================================ */
.intro {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  max-width: 720px;
  z-index: 30;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}
.intro.hidden { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.intro-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sun-mid);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.intro-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text-1);
}
.intro-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--text-1);
  color: #0a0a0f;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14.5px;
  pointer-events: auto;
  transition: transform 0.25s ease, background 0.25s ease;
}
.intro-cta:hover { transform: translateY(-2px); background: var(--sun-mid); }
.intro-cta svg { transition: transform 0.25s ease; }
.intro-cta:hover svg { transform: translateX(3px); }

/* ============================================================
   HINT BAR
   ============================================================ */
.hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 9px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
}
.hint.hidden { opacity: 0; transform: translate(-50%, 10px); }

/* ============================================================
   SIGNATURE FOOTER MARK
   ============================================================ */
.sig {
  position: fixed;
  bottom: 20px;
  right: 26px;
  z-index: 20;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ============================================================
   INFO PANEL
   ============================================================ */
.panel-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 7, 0.35);
  backdrop-filter: blur(2px);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.panel-scrim.show { opacity: 1; visibility: visible; }

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: var(--glass-strong);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(22px);
  z-index: 46;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto;
  overflow-x: hidden;
}
.panel.open { transform: translateX(0); }

.panel-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 56px);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-1);
  z-index: 2;
  margin-bottom: -38px;
}
.panel-close:hover { background: rgba(255,255,255,0.12); }

.panel-content {
  padding: 88px 32px 48px;
}

/* --- panel content typography --- */
.p-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--sun-mid));
  margin: 0 0 10px;
}
.p-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text-1);
}
.p-sub {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 22px;
  line-height: 1.5;
}
.p-body {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 24px;
}

.p-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 26px;
}
.p-stat {
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
}
.p-stat-value {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent, var(--sun-mid));
}
.p-stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}

.p-section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 26px 0 12px;
}

.p-bullets {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.p-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.p-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent, var(--sun-mid));
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 24px;
}
.p-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
}

.p-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.p-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--accent, var(--sun-mid));
  color: #0a0a0f;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.p-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
.p-link.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-1);
}

.p-note {
  font-size: 12.5px;
  color: var(--text-3);
  font-style: italic;
  padding: 12px 14px;
  border-left: 2px solid var(--border);
  margin-bottom: 22px;
}

.p-skill-group { margin-bottom: 22px; }
.p-skill-group h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-skills);
  margin: 0 0 10px;
  font-weight: 500;
}

.p-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.p-contact-row:last-child { border-bottom: none; }
.p-contact-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-contact);
}
.p-contact-label { color: var(--text-3); font-size: 11px; font-family: var(--f-mono); }
.p-contact-value { color: var(--text-1); font-weight: 500; }
.p-copy {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-3);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.p-copy:hover { color: var(--text-1); border-color: var(--border); }

/* ============================================================
   FLOATING BODY LABELS (CSS2DRenderer overlay)
   ============================================================ */
#labelLayer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
#labelLayer > div { position: absolute; top: 0; left: 0; }

.body-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, -100%);
  transition: opacity 0.35s ease;
  white-space: nowrap;
  will-change: opacity, transform;
}
.body-label .bl-tick {
  width: 1px;
  height: 14px;
  background: linear-gradient(to top, var(--lc, var(--sun-mid)), transparent);
}
.body-label .bl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 10px 4px;
  border-radius: 8px;
  background: rgba(6, 8, 15, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.body-label .bl-tag {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc, var(--sun-mid));
  line-height: 1.5;
}
.body-label .bl-name {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.body-label.is-hovered .bl-card {
  background: rgba(10, 13, 24, 0.82);
  border-color: var(--lc, var(--sun-mid));
  transform: translateY(-2px);
}
.body-label.is-focused { opacity: 0.4; }

/* cursor feedback while a body is under the pointer */
#scene.is-hoverable { cursor: pointer; }

/* ============================================================
   MAP KEY / LEGEND
   ============================================================ */
.legend {
  position: fixed;
  left: 26px;
  bottom: 20px;
  z-index: 42;
  width: min(300px, 78vw);
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
.legend.show { opacity: 1; visibility: visible; transform: translateY(0); }
.legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.legend-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.legend-close:hover { color: var(--text-1); }
.legend-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legend-list li { display: grid; grid-template-columns: 14px auto 1fr; align-items: baseline; column-gap: 10px; }
.legend-list .dot { width: 8px; height: 8px; }
.legend-list b { font-family: var(--f-display); font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.legend-list i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.legend-tip {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.legend-speed {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.legend-speed label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 9px;
}
.legend-speed label span { color: var(--sun-mid); text-transform: none; letter-spacing: 0; font-family: var(--f-display); font-weight: 600; font-size: 12px; }
.legend-speed input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.legend-speed input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--sun-mid);
  box-shadow: 0 0 8px rgba(255,179,71,0.6);
  cursor: pointer;
  border: 2px solid #1a0f00;
}
.legend-speed input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--sun-mid);
  box-shadow: 0 0 8px rgba(255,179,71,0.6);
  cursor: pointer;
  border: 2px solid #1a0f00;
}

/* ============================================================
   TARGETING TELEMETRY — HUD readout while a body is focused
   ============================================================ */
.telemetry {
  position: fixed;
  left: 26px;
  top: calc(var(--topbar-h) + 18px);
  z-index: 35;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  font-family: var(--f-mono);
  font-size: 11px;
  min-width: 172px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.telemetry.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.tm-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}
.tm-status { color: var(--sun-mid); letter-spacing: 0.1em; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.tm-blip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5be86a;
  box-shadow: 0 0 6px #5be86a;
  display: inline-block;
  margin-right: 7px;
  animation: tm-pulse 1.6s ease-in-out infinite;
}
@keyframes tm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tm-key { color: var(--text-3); }
.tm-val { color: var(--text-1); }

/* ============================================================
   MINI ORBITAL MAP
   ============================================================ */
.minimap {
  position: fixed;
  right: 26px;
  bottom: 20px;
  z-index: 42;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.minimap.show { opacity: 1; transform: translateY(0); }
.minimap-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
  text-align: center;
}
#minimapSvg { display: block; }
#minimapSvg .mm-ring { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 1; }
#minimapSvg .mm-node { cursor: pointer; transition: r 0.2s ease; }
#minimapSvg .mm-node:hover { r: 6; }
#minimapSvg .mm-node.active { stroke: #fff; stroke-width: 1.5; }
#minimapSvg .mm-sun { fill: var(--sun-mid); filter: drop-shadow(0 0 4px var(--sun-mid)); }
#minimapSvg .mm-cam {
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

/* ============================================================
   HINT BAR — breadcrumb / status mode
   ============================================================ */
.hint-eyebrow {
  display: none;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-mid);
  margin-right: 9px;
  padding-right: 9px;
  border-right: 1px solid var(--border);
}
.hint.status-mode .hint-eyebrow { display: inline; }
.hint.status-mode #hintText { color: var(--text-1); font-family: var(--f-display); font-size: 12.5px; letter-spacing: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .navdots { display: none; }
  .menu-toggle { display: flex; }
  .topbar { padding: 0 18px; }

  .navdots.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--topbar-h) - 6px);
    right: 16px;
    left: 16px;
    border-radius: 20px;
    padding: 10px;
    z-index: 41;
  }
  .navdots.mobile-open .navdot {
    justify-content: flex-start;
    padding: 13px 14px;
  }
  /* on touch, nav groups become inline accordions rather than floating flyouts */
  .navdots.mobile-open .navgroup { width: 100%; }
  .navdots.mobile-open .navflyout {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 2px;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    display: none;
  }
  .navdots.mobile-open .navgroup.open .navflyout { display: block; opacity: 1; visibility: visible; pointer-events: auto; }

  .telemetry { left: 14px; top: auto; bottom: 78px; min-width: 0; width: calc(100vw - 28px); max-width: 260px; font-size: 10px; }

  .intro { padding: 0 6vw; max-width: 100%; }
  .intro-title { font-size: clamp(30px, 8vw, 46px); }
  .intro-sub { max-width: 100%; }

  .hint { bottom: 16px; font-size: 10px; padding: 8px 14px; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
  .sig { display: none; }

  .minimap { display: none; }
  .legend { left: 14px; right: 14px; bottom: 88px; width: auto; }
  .body-label .bl-name { font-size: 10.5px; }
  .body-label .bl-tag { font-size: 7.5px; }

  .panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(82vh, 640px);
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }
  .panel.open { transform: translateY(0); }
  .panel-close {
    left: calc(100% - 54px);
    top: 14px;
    margin-bottom: -38px;
  }
  .panel-content { padding: 60px 22px 40px; }
  .p-title { font-size: 23px; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .p-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
