/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #060d1f;
  --navy-mid:  #0b1530;
  --gold:      #c9a84c;
  --gold-soft: #e8cc80;
  --white:     #f5f0e8;
  --card-bg:   #f7f2e9;
  --shadow:    rgba(0,0,0,0.6);
  --blur-overlay: rgba(4, 8, 20, 0.75);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--navy);
  overflow: hidden;
  font-family: 'Georgia', serif;
  color: var(--white);
  cursor: default;
  user-select: none;
}

/* ─── Star Field Canvas ─────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── Scrollable Canvas ─────────────────────────────────────────── */
#canvas-wrap {
  position: fixed;
  inset: 0;
  overflow: auto;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}
#canvas-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
#canvas-wrap::-webkit-scrollbar-track { background: transparent; }
#canvas-wrap::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }

#canvas {
  position: relative;
  width: 4000px;
  height: 4000px;
  cursor: crosshair;
}
/* during drag, override every cursor on the page — nothing fights the grab */
body.dragging,
body.dragging * { cursor: grabbing !important; }

/* ─── Hint text ─────────────────────────────────────────────────── */
#hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(201,168,76,0.5);
  pointer-events: none;
  text-transform: uppercase;
  animation: fadepulse 4s ease-in-out infinite;
}
@keyframes fadepulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

/* ─── Pin Cards ─────────────────────────────────────────────────── */
.pin {
  position: absolute;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center center;
  z-index: 2;
  opacity: 0;
  animation: pinAppear 0.5s ease forwards;
}
.pin.visible { opacity: 1; }
.pin.is-dragging { cursor: grabbing !important; z-index: 50 !important; filter: brightness(1.1); box-shadow: 0 16px 48px rgba(0,0,0,0.7); }
/* pebbles drag clean — no shadow, no brightness, just the object floating */
.pin.type-pebble.is-dragging { box-shadow: none !important; filter: none !important; }

/* ─── Delete button — appears on hover, top-right of every pin ──── */
.pin-delete {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(12, 6, 24, 0.88);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.12s, color 0.12s;
  z-index: 10;
  pointer-events: none;
}
.pin:hover .pin-delete {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.pin-delete:hover {
  background: rgba(160, 20, 50, 0.95);
  border-color: rgba(255,80,100,0.35);
  color: #fff;
}

@keyframes pinAppear {
  from { opacity: 0; transform: var(--base-rot) scale(0.7); }
  to   { opacity: 1; transform: var(--base-rot) scale(1); }
}
.pin:hover {
  z-index: 3;
  filter: brightness(1.08);
}

/* images and videos inside cards should never intercept mouse events —
   clicks and drags go through to the card div instead */
.pin img,
.pin video {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* video thumbnail */
.pin-media { position: relative; }
.pin-media video.pin-video-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18); pointer-events: none;
}
.video-play-overlay::after {
  content: '▶';
  font-size: 26px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* polaroid wrapper */
.pin-inner {
  background: var(--card-bg);
  border-radius: 2px;
  box-shadow: 3px 4px 18px var(--shadow), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* thumb pin dot */
.pin-tack {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #e8cc80, #a07828);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 4;
}

.pin-media {
  width: 100%;
  flex-shrink: 0;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pin-media .media-icon {
  font-size: 36px;
  opacity: 0.5;
  color: var(--white);
}

.pin-caption {
  padding: 8px 10px 10px;
  font-size: 11px;
  font-family: 'Georgia', serif;
  color: #3a3025;
  line-height: 1.4;
  min-height: 32px;
}
.pin-caption .pin-title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pin-caption .pin-date {
  font-size: 9px;
  color: #8a7a60;
  letter-spacing: 0.05em;
  display: block;
}

/* text-only pin */
.pin.type-text .pin-inner {
  background: #fdf6e3;
  border: 1px solid rgba(160,120,40,0.2);
}
.pin.type-text .pin-body {
  padding: 14px 14px 10px;
  font-size: 12px;
  color: #3a3025;
  line-height: 1.6;
  max-width: 200px;
  font-style: italic;
}
.pin.type-text .pin-date {
  padding: 0 14px 10px;
  font-size: 9px;
  color: #8a7a60;
  letter-spacing: 0.05em;
  display: block;
}

/* ─── Lightbox ──────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--blur-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#lightbox-card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border-radius: 3px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  max-width: min(600px, 90vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: lbIn 0.35s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes lbIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#lightbox-media {
  width: 100%;
  max-height: 55vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
#lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#lightbox-media iframe {
  width: 100%;
  height: 340px;
  border: none;
}
#lightbox-media .lb-media-icon {
  font-size: 72px;
  color: rgba(255,255,255,0.2);
}
#lightbox-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}
#lightbox-body h2 {
  font-size: 20px;
  color: #3a3025;
  margin-bottom: 6px;
}
#lightbox-body .lb-date {
  font-size: 11px;
  color: #8a7a60;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
#lightbox-body .lb-notes {
  font-size: 14px;
  color: #4a3e2a;
  line-height: 1.7;
  font-style: italic;
  white-space: pre-wrap;
}
#lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #8a7a60;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
#lightbox-close:hover { color: #3a3025; background: rgba(0,0,0,0.06); }

/* ─── Quick Input ───────────────────────────────────────────────── */
/* Appears near where you click. One space for everything.          */
#quick-input {
  position: fixed;
  z-index: 200;
  width: 280px;
  background: #0d1829;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.75);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#quick-input.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}
#quick-input.drag-over {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* file preview inside quick-input */
#qi-preview {
  display: none;
  position: relative;
  background: #000;
  max-height: 160px;
  overflow: hidden;
}
#qi-preview.has-file { display: block; }
#qi-preview img,
#qi-preview video {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: none;
}
#qi-preview img.visible,
#qi-preview video.visible { display: block; }
#qi-clear {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

/* the main textarea */
#qi-text {
  display: block;
  width: 100%;
  min-height: 72px;
  max-height: 200px;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 16px 8px;
  color: var(--white);
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  caret-color: var(--gold);
}
#qi-text::placeholder {
  color: rgba(201,168,76,0.3);
  font-style: italic;
}

/* bottom bar */
#qi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 12px;
  gap: 8px;
}
#qi-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.45);
  flex: 1;
}
#qi-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* upload button */
#qi-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
#qi-upload-btn:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.07);
}
/* hidden file input — triggered programmatically only */
#qi-file { display: none; }

/* pin it button */
#qi-save {
  padding: 6px 14px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  color: var(--gold-soft);
  font-family: 'Georgia', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s;
}
#qi-save:hover { background: rgba(201,168,76,0.3); border-color: var(--gold); }

/* ─── Pebbles button (fixed corner) ──────────────────────────── */
#pebbles-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6,13,31,0.8);
  border: 1px solid rgba(201,168,76,0.2);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#pebbles-btn:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(11,21,48,0.9);
  transform: scale(1.08);
}

/* ─── Pebbles Modal ───────────────────────────────────────────── */
#pebbles-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#pebbles-modal.open {
  opacity: 1;
  pointer-events: all;
}
#pebbles-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,8,20,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#pebbles-card {
  position: relative;
  z-index: 2;
  background: #0f1a35;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  padding: 28px 32px;
  width: min(360px, 92vw);
  box-shadow: 0 12px 60px rgba(0,0,0,0.7);
  animation: modalIn 0.22s ease forwards;
}
@keyframes modalIn {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
#pebbles-card h3 {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.pebbles-sub {
  font-size: 11px;
  color: rgba(201,168,76,0.4);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

/* shared action buttons */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-family: 'Georgia', serif;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}
.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
}
.btn-cancel:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }
.btn-save {
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
}
.btn-save:hover { background: rgba(201,168,76,0.35); }

/* ─── Pebble pin — passive (lives on board as iframe) ─────────── */
/* The frame is the contract: pebbles can do anything inside       */
/* their iframe but cannot touch the board outside it.              */
.pebble-iframe {
  display: block;
  border: none;
  background: transparent;
}

/* transparent overlay — sits on top of iframe, handles drag + mouse forwarding */
.pebble-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: grab;
}
.pebble-overlay:active { cursor: grabbing; }

/* ─── Pebble pin — active (icon, tap to open card) ────────────── */
.pebble-pin-bare {
  font-size: 56px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.65));
  transition: filter 0.2s ease;
}
.pin.type-pebble:hover .pebble-pin-bare {
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.8)) brightness(1.15);
}

/* ─── Pebble grid (modal) ─────────────────────────────────────── */
.pebble-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pebble-choice {
  width: 88px;
  padding: 14px 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.pebble-choice:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
}
.pebble-choice.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.15);
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
}
.pebble-choice-icon { font-size: 28px; margin-bottom: 6px; }
.pebble-choice-name {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
}

/* ─── Portal Stars — 4 depth layers, parallax scrolling ─────────── */
.portal-star {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px;
  z-index: 1;                  /* below pins (z-index: 2) — background depth */
}

/* Base core — size + glow overridden per layer */
.ps-core {
  color: #ff66ee;
  animation: pstwinkle 2.8s ease-in-out infinite; /* duration overridden inline */
  display: block;
  line-height: 1;
  transition: text-shadow 0.2s;
}

/* Layer 0 — closest, biggest */
.ps-layer-0 .ps-core {
  font-size: 52px;
  text-shadow:
    0 0 12px rgba(255,60,220,1),
    0 0 30px rgba(220,0,180,0.8),
    0 0 70px rgba(180,0,150,0.5);
}
.ps-layer-0:hover .ps-core {
  text-shadow:
    0 0 18px rgba(255,80,240,1),
    0 0 45px rgba(240,0,200,1),
    0 0 110px rgba(200,0,170,0.65);
}

/* Layer 1 — mid-close */
.ps-layer-1 .ps-core {
  font-size: 32px;
  opacity: 0.78;
  text-shadow:
    0 0 8px rgba(255,60,220,1),
    0 0 20px rgba(220,0,180,0.7),
    0 0 44px rgba(180,0,150,0.4);
}
.ps-layer-1:hover .ps-core {
  opacity: 1;
  text-shadow:
    0 0 12px rgba(255,80,240,1),
    0 0 30px rgba(240,0,200,0.9),
    0 0 70px rgba(200,0,170,0.55);
}

/* Layer 2 — mid-far */
.ps-layer-2 .ps-core {
  font-size: 20px;
  opacity: 0.52;
  text-shadow:
    0 0 5px rgba(255,60,220,0.95),
    0 0 14px rgba(220,0,180,0.6),
    0 0 28px rgba(180,0,150,0.3);
}
.ps-layer-2:hover .ps-core {
  opacity: 0.8;
  text-shadow:
    0 0 8px rgba(255,80,240,1),
    0 0 20px rgba(240,0,200,0.8),
    0 0 45px rgba(200,0,170,0.45);
}

/* Layer 3 — furthest, ghostly */
.ps-layer-3 .ps-core {
  font-size: 12px;
  opacity: 0.32;
  text-shadow:
    0 0 3px rgba(255,60,220,0.9),
    0 0 9px rgba(220,0,180,0.5),
    0 0 18px rgba(180,0,150,0.22);
}
.ps-layer-3:hover .ps-core {
  opacity: 0.6;
  text-shadow:
    0 0 6px rgba(255,80,240,1),
    0 0 15px rgba(240,0,200,0.7),
    0 0 30px rgba(200,0,170,0.38);
}

/* Labels only visible on the closest layer */
.ps-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,100,230,0.7);
  white-space: nowrap;
  font-family: 'Georgia', serif;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ps-layer-0:hover .ps-label {
  opacity: 1;
  transform: translateY(0);
}
/* deeper layers: no label */
.ps-layer-1 .ps-label,
.ps-layer-2 .ps-label,
.ps-layer-3 .ps-label { display: none; }

/* pulse — triggered by the locate button, fires on all layers at once */
.ps-core.ps-pulse {
  animation: pspulse 0.35s ease-in-out 4;
}

@keyframes pstwinkle {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  38%       { opacity: 0.6; transform: scale(0.82); }
  65%       { opacity: 0.9; transform: scale(1.12); }
}
@keyframes pspulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.9); opacity: 0.4; }
}

/* ─── Star Map panel ─────────────────────────────────────────────── */
#starmap-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 20;
  background: rgba(6,13,31,0.75);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201,168,76,0.5);
  cursor: pointer;
  font-family: 'Georgia', serif;
  backdrop-filter: blur(8px);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
#starmap-toggle span { font-size: 9px; text-transform: uppercase; }
#starmap-toggle:hover,
#starmap-toggle.active {
  color: rgba(201,168,76,0.9);
  border-color: rgba(201,168,76,0.5);
  background: rgba(6,13,31,0.9);
}

#starmap {
  position: fixed;
  top: 54px;
  right: 24px;
  z-index: 20;
  width: 200px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: rgba(6,13,31,0.92);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#starmap.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.starmap-header {
  padding: 10px 14px 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.4);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
}

.starmap-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.2) transparent;
}
.starmap-list::-webkit-scrollbar { width: 4px; }
.starmap-list::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 2px; }

.sm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: background 0.12s;
}
.sm-row:hover { background: rgba(201,168,76,0.07); }
.sm-row:last-child { border-bottom: none; }

.sm-star {
  font-size: 11px;
  color: rgba(255,80,220,0.8);
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(255,60,200,0.5);
}
.sm-name {
  font-size: 12px;
  color: rgba(245,240,232,0.75);
  font-family: 'Georgia', serif;
  flex: 1;
  letter-spacing: 0.04em;
}
.sm-row:hover .sm-name { color: rgba(245,240,232,0.95); }

.sm-locate {
  background: none;
  border: none;
  color: rgba(201,168,76,0.35);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s, transform 0.12s;
}
.sm-locate:hover { color: rgba(201,168,76,0.8); transform: translateX(2px); }

.starmap-footer {
  padding: 7px 14px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.25);
  border-top: 1px solid rgba(201,168,76,0.08);
  flex-shrink: 0;
}

/* ─── Visitor board — top strip ─────────────────────────────────── */
.visitor-name {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: rgba(6,13,31,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.visitor-back {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 10;
  background: rgba(6,13,31,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.visitor-back:hover {
  color: rgba(201,168,76,0.85);
  border-color: rgba(201,168,76,0.45);
}

/* ─── Nav indicator ─────────────────────────────────────────────── */
#nav-home {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(6,13,31,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
