/* No Man's SOL — HUD chrome */
:root {
  --acc: #4de8ff;
  --acc-dim: rgba(77, 232, 255, 0.35);
  --acc-faint: rgba(77, 232, 255, 0.10);
  --acc2: #9af2ff;
  --gold: #ffc861;
  --gold-dim: rgba(255, 200, 97, 0.25);
  --ink: #d9f4fa;
  --ink-dim: rgba(217, 244, 250, 0.55);
  --panel: rgba(5, 14, 22, 0.72);
  --panel-line: rgba(77, 232, 255, 0.22);
  --font-d: 'Chakra Petch', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #020409; }
body { font-family: var(--font-m); color: var(--ink); }
#gl { position: fixed; inset: 0; display: block; }
#flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 50%, #cfeeff 0%, #4de8ff44 45%, transparent 75%); opacity: 0; pointer-events: none; z-index: 40; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }
/* HUD + modals only — 85% scale (3D canvas / labels unchanged) */
#hud {
  --hud-scale: 0.85;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--hud-scale));
  height: calc(100vh / var(--hud-scale));
  z-index: 20;
  pointer-events: none;
  overflow: visible;
  transform: scale(var(--hud-scale));
  transform-origin: top left;
}
#hud button, #hud input, #hud .clickable { pointer-events: auto; }

/* vignette + scanlines */
#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(1, 4, 10, 0.55) 100%); }
#vignette::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(120, 220, 255, 0.013) 0 1px, transparent 1px 3px); }

/* ---------- planet labels (managed by app.js) ---------- */
.p-label { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; padding-left: 12px; will-change: transform; pointer-events: none; }
.p-label .p-tick { position: absolute; left: 0; top: 4px; width: 7px; height: 7px; border: 1px solid var(--acc-dim);
  transform: rotate(45deg); background: rgba(2, 8, 14, 0.5); }
.p-label .p-name { font-family: var(--font-d); font-weight: 600; font-size: 16.5px; letter-spacing: 0.14em;
  color: var(--ink-dim); text-shadow: 0 0 6px rgba(0, 0, 0, 0.9); white-space: nowrap; }
.p-label .p-sub { font-size: 13px; letter-spacing: 0.22em; color: var(--acc-dim); white-space: nowrap; }
.p-label.hov .p-name, .p-label.sel .p-name { color: var(--acc2); }
.p-label.hov .p-tick, .p-label.sel .p-tick { border-color: var(--acc); background: var(--acc-faint); }
.p-label.anomaly .p-sub { color: var(--gold); }
.p-label.anomaly .p-tick { border-color: var(--gold); }
.p-label.scanned .p-sub { color: #57e88c; }
.p-label.scanned .p-tick { border-color: #57e88c; background: rgba(87, 232, 140, 0.12); }

/* ---------- panel chrome ---------- */
.panel { background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  position: relative; }
.panel::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--acc); opacity: 0.8; }
.ph { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 8px;
  border-bottom: 1px solid rgba(77, 232, 255, 0.12); }
.ph h3 { font-family: var(--font-d); font-size: 16px; font-weight: 600; letter-spacing: 0.32em; color: var(--acc); }
.ph .ph-r { font-size: 13.5px; letter-spacing: 0.18em; color: var(--ink-dim); }

.kv { display: grid; grid-template-columns: 135px 1fr; gap: 4px 10px; padding: 10px 14px; font-size: 16px; }
.kv dt { color: var(--ink-dim); letter-spacing: 0.14em; font-size: 13.5px; padding-top: 1px; }
.kv dd { color: var(--ink); letter-spacing: 0.05em; }

.btn { font-family: var(--font-d); font-weight: 600; font-size: 16.5px; letter-spacing: 0.26em; cursor: pointer;
  color: var(--acc); background: var(--acc-faint); border: 1px solid var(--acc-dim); padding: 10px 16px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background 140ms, color 140ms, border-color 140ms; text-transform: uppercase; }
.btn:hover { background: rgba(77, 232, 255, 0.22); color: #eafdff; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.gold { color: var(--gold); border-color: var(--gold-dim); background: rgba(255, 200, 97, 0.08); }
.btn.gold:hover { background: rgba(255, 200, 97, 0.2); color: #fff3da; }
.btn.ghost { background: transparent; border-color: rgba(217, 244, 250, 0.18); color: var(--ink-dim); }
.btn.ghost:hover { color: var(--ink); border-color: rgba(217, 244, 250, 0.4); }
.btn.lg { font-size: 19.5px; padding: 14px 26px; white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start;
  justify-content: space-between; padding: 14px 18px 0; gap: 14px; }
.brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(520px, 44vw); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand .bt { font-family: var(--font-d); font-weight: 700; font-size: 22.5px; letter-spacing: 0.3em; color: #eafdff; }
.brand .bt em { color: var(--acc); font-style: normal; }
.brand .bs { font-size: 12px; letter-spacing: 0.3em; color: var(--ink-dim); margin-top: 2px; }
.topbar-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}
.nav-crumb, .crumb {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 14.5px; letter-spacing: 0.22em; color: var(--ink-dim); text-align: center;
}
.nav-crumb b, .crumb b { color: var(--acc2); font-weight: 400; }
.nav-crumb .sep, .crumb .sep { color: rgba(217, 244, 250, 0.25); }
.nav-crumb .crumb-link, .crumb .crumb-link { cursor: pointer; }
.nav-crumb .crumb-link:hover, .crumb .crumb-link:hover { color: var(--ink); }

.search { display: flex; align-items: center; gap: 0; height: 36px; flex-shrink: 0; }
.search input { width: 250px; height: 100%; background: var(--panel); border: 1px solid var(--panel-line);
  color: var(--ink); font-family: var(--font-m); font-size: 16.5px; letter-spacing: 0.12em; padding: 0 12px; outline: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.search input::placeholder { color: rgba(217, 244, 250, 0.3); }
.search input:focus { border-color: var(--acc-dim); }
.search .btn { height: 100%; padding: 0 14px; }

.chips { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; background: var(--panel);
  border: 1px solid var(--panel-line); font-size: 15px; letter-spacing: 0.12em; white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #57e88c; box-shadow: 0 0 8px #57e88c; }
.chip .lbl { color: var(--ink-dim); font-size: 13px; letter-spacing: 0.22em; }
.chip.up { color: #57e88c; }
.chip.down { color: #ff7e79; }
.chip.clickable { cursor: pointer; }
.chip.clickable:hover { border-color: var(--acc-dim); }
.chip.wallet { color: var(--acc2); }
.wallet-wrap { position: relative; align-self: center; }
.wallet-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 280px; padding: 12px 14px;
  background: rgba(6, 14, 22, 0.96); border: 1px solid var(--panel-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.wallet-menu-addr {
  font-size: 11px; letter-spacing: 0.06em; word-break: break-all;
  color: var(--ink-dim); margin-bottom: 10px; line-height: 1.45;
}
.wallet-menu .btn { width: 100%; }

.log-row-top .traveler-addr {
  flex: 0 0 auto; margin-right: auto;
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid rgba(77, 232, 255, 0.28);
  transition: color 140ms, border-color 140ms;
}
.log-row-top .traveler-addr:hover { color: #bff4ff; border-bottom-color: var(--acc2); }
.lr-chip.dim { color: var(--ink-dim); border-color: rgba(140, 170, 190, 0.18); cursor: default; }
.lr-chip.dim:hover { color: var(--ink-dim); border-color: rgba(140, 170, 190, 0.18); background: transparent; }
.traveler-anon { padding-top: 12px; padding-bottom: 14px; }
.travelers-foot {
  padding: 9px 16px 11px; border-top: 1px solid var(--panel-line);
  font-size: 9.5px; letter-spacing: 0.18em; color: var(--ink-dim);
}

.wallet-link {
  color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255, 200, 97, 0.35);
  transition: color 140ms, border-color 140ms;
}
.wallet-link:hover { color: #ffe8b8; border-bottom-color: var(--gold); }

.boosts-wrap {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 110;
  pointer-events: none;
}
.boosts-wrap > * { pointer-events: auto; }
.boosts-fab {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 200, 97, 0.5);
  background: rgba(5, 14, 22, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  animation: boostFabPulse 1.8s ease-in-out infinite;
}
.boosts-fab:hover { border-color: var(--gold); }
.boosts-fab.open { animation: none; border-color: var(--gold); background: rgba(20, 16, 8, 0.95); }
.boosts-fab.has-owned { border-color: rgba(87, 232, 140, 0.55); }
.boosts-fab.has-owned .boosts-fab-icon { color: #9ef0a8; }
.boosts-fab-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 200, 97, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  pointer-events: none;
  animation: boostFabRing 1.8s ease-in-out infinite;
}
.boosts-fab.open .boosts-fab-ring { opacity: 0; animation: none; }
.boosts-fab-icon {
  font-size: 14px;
  line-height: 1;
  color: var(--gold);
  pointer-events: none;
  animation: boostIconPulse 1.8s ease-in-out infinite;
}
.boosts-fab.open .boosts-fab-icon { animation: none; }
@keyframes boostFabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 97, 0.55); border-color: rgba(255, 200, 97, 0.45); }
  50% { box-shadow: 0 0 14px 4px rgba(255, 200, 97, 0.35); border-color: rgba(255, 200, 97, 0.85); }
}
@keyframes boostFabRing {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes boostIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 200, 97, 0.4)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 200, 97, 0.95)); }
}
.boosts-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 118;
  width: min(400px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.boosts-drop .panel { margin: 0; }

/* ---------- sector crumb ---------- */
.nav-crumb .crumb-sector, .crumb .crumb-sector { color: var(--ink-dim); letter-spacing: 0.18em; white-space: nowrap; }

/* ---------- global comms ---------- */
.chat-panel {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
  width: min(380px, calc(100vw - 36px)); max-height: 46vh; display: flex; flex-direction: column;
  background: rgba(6, 14, 22, 0.92); border: 1px solid var(--panel-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.chat-list { flex: 1; overflow-y: auto; padding: 8px 12px; min-height: 160px; }
.chat-empty { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.08em; padding: 14px 2px; }
.chat-msg { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; font-size: 12.5px; line-height: 1.4; }
.chat-msg .chat-who { color: var(--acc); font-family: var(--font-d); letter-spacing: 0.08em; flex: 0 0 auto; font-size: 11.5px; }
.chat-msg.mine .chat-who { color: var(--gold); }
.chat-msg .chat-text { color: var(--ink); word-break: break-word; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--panel-line); }
.chat-input input {
  flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-line);
  color: var(--ink); padding: 7px 10px; font: inherit; font-size: 12.5px; outline: none;
}
.chat-input input:focus { border-color: var(--acc-dim); }

/* ---------- bottom panels ---------- */
.bl { position: absolute; left: 18px; bottom: 18px; width: 470px; display: flex; flex-direction: column; gap: 8px; }
.bl-crumb {
  justify-content: flex-start;
  text-align: left;
  padding: 0 4px 2px;
  pointer-events: auto;
  flex-wrap: wrap;
}
.lm { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); z-index: 15; overflow: visible; }
.audio-bar { display: flex; align-items: center; pointer-events: auto; overflow: visible; }
.audio-toggles { display: flex; flex-direction: column; gap: 6px; padding: 8px; pointer-events: auto; overflow: visible; }
.audio-toggles.panel { clip-path: none; overflow: visible; }
.audio-toggles-h {
  flex-direction: row; gap: 5px; padding: 0; background: none; border: none; clip-path: none;
}
.audio-toggles-h .audio-btn { width: 34px; height: 34px; }
.audio-toggles-h .audio-tip {
  left: 50%; top: calc(100% + 10px); right: auto;
  transform: translateX(-50%) translateY(4px);
}
.audio-toggles-h .audio-tip::before {
  right: auto; left: 50%; top: 0; transform: translate(-50%, -100%);
  border: 5px solid transparent; border-bottom-color: var(--acc-dim); border-right-color: transparent;
}
.audio-toggles-h .audio-btn:hover .audio-tip,
.audio-toggles-h .audio-btn:focus-visible .audio-tip {
  transform: translateX(-50%) translateY(0);
}
.audio-btn {
  position: relative; width: 40px; height: 40px; padding: 0; margin: 0;
  border: 1px solid var(--acc-dim); border-radius: 2px; cursor: pointer;
  background: rgba(11, 27, 40, 0.78); color: var(--acc2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 140ms, background 140ms, opacity 140ms, color 140ms;
}
.audio-btn.on { background: rgba(77, 232, 255, 0.14); border-color: var(--acc); }
.audio-btn.off { opacity: 0.48; color: var(--ink-dim); border-color: rgba(217, 244, 250, 0.14); }
.audio-btn:hover, .audio-btn:focus-visible { opacity: 1; border-color: var(--acc); outline: none; }
.audio-ico { font-size: 17px; line-height: 1; pointer-events: none; }
.audio-tip {
  position: absolute; left: calc(100% + 12px); top: 50%; z-index: 80;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 2px;
  background: rgba(11, 27, 40, 0.96); border: 1px solid var(--acc-dim);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 3px;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.9,.3,1.1);
}
.audio-tip::before {
  content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right-color: var(--acc-dim);
}
.audio-tip-lbl { font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--acc2); }
.audio-tip-desc { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-dim); }
.audio-btn:hover .audio-tip, .audio-btn:focus-visible .audio-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.hud-compact .audio-btn { width: 34px; height: 34px; }
.hud-compact .audio-ico { font-size: 14px; }
.hud-compact .audio-tip-lbl { font-size: 9.5px; }
.hud-compact .audio-tip-desc { font-size: 8.5px; }
.hud-compact .travelers-foot { font-size: 8.5px; }
.br { position: absolute; right: 18px; bottom: 18px; width: 400px; display: flex; flex-direction: column; gap: 10px; }
.bm { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(600px, calc(100vw - 36px)); display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.nav-hint {
  font-size: 26px; letter-spacing: 0.18em; color: var(--ink-dim); text-align: center;
  white-space: nowrap; pointer-events: none; margin-bottom: 4px;
  animation: toastIn 320ms cubic-bezier(.2,.9,.3,1.2);
}
.nav-hint.clickable {
  pointer-events: auto; cursor: pointer; background: none; border: none; padding: 0;
  font-family: inherit; transition: color 140ms;
}
.nav-hint.clickable:hover, .nav-hint.clickable:focus-visible { color: var(--acc2); outline: none; }
.nav-hint.clickable:hover .key-cap, .nav-hint.clickable:focus-visible .key-cap {
  border-color: var(--acc); background: rgba(77, 232, 255, 0.18);
  box-shadow: 0 2px 0 rgba(77, 232, 255, 0.22), 0 0 14px rgba(77, 232, 255, 0.12);
}
.nav-hint .key-cap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 42px; padding: 0 14px; margin-right: 16px;
  font-family: var(--font-m); font-size: 26px; font-style: normal;
  color: var(--acc2); background: var(--acc-faint);
  border: 1px solid var(--acc-dim); border-radius: 4px;
  vertical-align: middle; box-shadow: 0 2px 0 rgba(77, 232, 255, 0.15);
  transition: border-color 140ms, background 140ms, box-shadow 140ms;
}
.nav-hint--key-right .key-cap { margin-right: 0; margin-left: 16px; }
.nav-hint--key-right .key-cap.key-cap--wide {
  min-width: 88px; font-size: 17px; letter-spacing: 0.14em;
}
.cache-mini { width: 100%; cursor: pointer; transition: border-color 140ms, background 140ms; }
.cache-mini:hover { border-color: var(--gold-dim); }
.cache-mini:hover .ph h3 { color: var(--gold); }
.cache-mini .cache-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px 14px;
}
.cache-mini .cache-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: none;
}
.cache-mini .cache-cr { min-width: 148px; }
.cache-mini .cache-per { margin-left: auto; align-items: flex-end; text-align: right; }
.cache-mini .cache-lbl {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  white-space: nowrap;
  line-height: 1.2;
}
.cache-mini .cache-sol {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
  line-height: 1.15;
}
.cache-mini .cache-usd {
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
  line-height: 1.15;
}
.cache-mini .cache-vdiv {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 1px 0;
  background: linear-gradient(180deg, transparent, rgba(77, 232, 255, 0.24) 18%, rgba(77, 232, 255, 0.24) 82%, transparent);
}
.cache-mini .cache-count-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 4px;
}
.cache-mini .cache-count {
  flex: none;
  display: flex;
  align-items: baseline;
  line-height: 1;
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cache-mini .cache-count-n { color: var(--gold); }
.cache-mini .cache-count-rest { color: var(--ink-dim); font-size: inherit; font-weight: inherit; }
.cache-mini .cache-count-lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  line-height: 1.25;
  white-space: nowrap;
}

.planet-row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; cursor: pointer; border-left: 2px solid transparent; }
.planet-row:hover { background: var(--acc-faint); border-left-color: var(--acc-dim); }
.planet-row.anomaly .pr-type { color: var(--gold); }
.planet-row .pr-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 8px rgba(255,255,255,0.25); }
.planet-row .pr-name { font-family: var(--font-d); font-size: 16.5px; font-weight: 600; letter-spacing: 0.12em; flex: 1; }
.planet-row .pr-type { font-size: 13px; letter-spacing: 0.2em; color: var(--ink-dim); flex: none; margin-left: auto; text-align: right; }
.planet-row .pr-scan {
  width: 14px; height: 14px; flex: none; margin-left: 8px;
  border: 1px solid rgba(217, 244, 250, 0.22); border-radius: 2px;
  background: rgba(6, 14, 22, 0.55); pointer-events: none;
}
.planet-row .pr-scan.done {
  border-color: rgba(87, 232, 140, 0.75);
  background: rgba(87, 232, 140, 0.2);
  box-shadow: 0 0 8px rgba(87, 232, 140, 0.4), inset 0 0 6px rgba(87, 232, 140, 0.15);
}
.planet-row .pr-scan.done::after {
  content: ''; display: block; width: 4px; height: 7px; margin: 1px auto 0;
  border: solid #9ef0a8; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.res-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.res-tags span { font-size: 13.5px; letter-spacing: 0.12em; padding: 3px 8px; border: 1px solid rgba(217, 244, 250, 0.16); color: var(--ink-dim); }

.actions { display: flex; gap: 8px; padding: 4px 14px 14px; }
.actions .btn { flex: 1; }

/* ---------- scanner ---------- */
.scan-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sig-track { height: 8px; background: rgba(77, 232, 255, 0.07); border: 1px solid rgba(77, 232, 255, 0.14); position: relative; overflow: hidden; }
.sig-fill { height: 100%; background: linear-gradient(90deg, var(--acc-dim), var(--acc)); transition: width 600ms cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px var(--acc-dim); }
.sig-fill.gold { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.sig-meta { display: flex; justify-content: space-between; font-size: 13.5px; letter-spacing: 0.18em; color: var(--ink-dim); }
.sig-meta b { color: var(--acc2); font-weight: 400; }
.scan-note { font-size: 13.5px; line-height: 1.6; letter-spacing: 0.08em; color: var(--ink-dim); }
.scan-note b { color: var(--gold); font-weight: 400; }
.scanning .sig-fill { animation: scanSweep 1.1s linear infinite; }
@keyframes scanSweep { 0% { width: 0; opacity: 1; } 85% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

/* ---------- boosts ---------- */
.boosts { padding: 3px 0; }
.boost-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(77, 232, 255, 0.07); }
.boost-row:last-child { border-bottom: none; }
.b-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.b-name { font-family: var(--font-d); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; color: var(--ink); }
.boost-row.owned .b-name { color: #57e88c; }
.b-desc { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-dim); line-height: 1.5; }
.b-active { font-size: 13.5px; letter-spacing: 0.18em; color: #57e88c; white-space: nowrap; }
.b-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* ---------- creator rewards panel ---------- */
.rewards-panel .rbody { padding: 14px 16px; font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
.rewards-panel .rbody.muted { letter-spacing: 0.06em; }
.r-hero { padding: 12px 16px 10px; border-bottom: 1px solid rgba(77, 232, 255, 0.1); text-align: center; }
.r-total { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.r-val { font-family: var(--font-d); font-size: 28px; font-weight: 700; letter-spacing: 0.08em; }
.r-val.gold { color: var(--gold); text-shadow: 0 0 20px rgba(255, 200, 97, 0.35); }
.r-usd { font-size: 13.5px; color: var(--ink-dim); letter-spacing: 0.14em; font-weight: normal; }
.r-usd-hero { font-size: 13.5px; color: var(--ink-dim); letter-spacing: 0.14em; font-weight: normal; font-family: inherit; }
.sol-usd { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sol-usd .sol-amt { white-space: nowrap; }
.sol-usd .usd-amt {
  font-size: 13.5px; color: var(--ink-dim); letter-spacing: 0.14em;
  font-weight: normal; white-space: nowrap;
}
.sol-usd.cache-pay .sol-amt { font-weight: 700; color: var(--gold); }
.r-lbl { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.28em; color: var(--acc-dim); }
.r-kv { padding-top: 8px; padding-bottom: 8px; }
.r-kv dd.gold { color: var(--gold); }
.r-link { display: block; padding: 8px 16px 12px; font-size: 13px; letter-spacing: 0.2em; color: var(--acc); text-decoration: none; }
.r-link:hover { color: var(--acc2); }
.r-note { padding: 0 16px 12px; font-size: 11px; line-height: 1.45; color: rgba(217, 244, 250, 0.38); letter-spacing: 0.04em; }
.r-note code { font-size: 10px; color: var(--acc-dim); }
.boost-row .btn { padding: 7px 10px; font-size: 14.5px; letter-spacing: 0.12em; white-space: nowrap; flex: none; }

.tracker { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
.tracker .big { font-family: var(--font-d); font-weight: 700; font-size: 39px; color: var(--gold); letter-spacing: 0.04em; }
.tracker .small { font-size: 13.5px; letter-spacing: 0.16em; color: var(--ink-dim); line-height: 1.6; }

/* ---------- activity feed (below brand, top-left) ---------- */
.activity-feed {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  pointer-events: none; width: 100%; max-height: min(36vh, 240px); overflow: hidden;
}
.feed-item {
  background: rgba(6, 18, 30, 0.92); border: 1px solid rgba(77, 232, 255, 0.38); border-left: 2px solid var(--acc);
  padding: 6px 11px; font-size: 11.5px; letter-spacing: 0.08em; color: #e8f8fc; max-width: 100%;
  backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(77, 232, 255, 0.08);
  animation: feedIn 320ms cubic-bezier(.2,.9,.3,1.2);
}
.feed-item.gold { border-left-color: var(--gold); border-color: rgba(255, 200, 97, 0.4); color: #fff0d4; }
.feed-item.sys { color: #b8f6ff; border-left-color: var(--acc2); }
.feed-item.warn { border-left-color: #ffb454; border-color: rgba(255, 180, 84, 0.42); color: #ffe8c8; }
.feed-item.net { color: #c8ecff; }
@keyframes feedIn { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes feedOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-10px); } }
.feed-item.leaving { animation: feedOut 280ms ease forwards; pointer-events: none; }

/* ---------- boot ---------- */
.boot {
  position: absolute; inset: 0; z-index: 10;
  animation: bootIn 800ms ease; /* eases the seamless return from the intro trailer */
  display: flex; flex-direction: row; align-items: stretch; justify-content: flex-end;
  padding: clamp(28px, 5vh, 72px) clamp(24px, 4.5vw, 64px) clamp(12px, 2.5vh, 24px);
  padding-left: 36%;
  overflow: visible; pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 34%,
    rgba(1, 3, 8, 0.42) 48%,
    rgba(1, 3, 8, 0.82) 62%,
    rgba(1, 3, 8, 0.94) 100%
  );
}
@keyframes bootIn { from { opacity: 0; } to { opacity: 1; } }
.boot-panel {
  width: min(620px, 100%);
  margin-left: auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
  min-height: 0; flex: none; pointer-events: none;
}
.boot-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.boot-follow-lbl {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(217, 244, 250, 0.55);
}
.boot-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(217, 244, 250, 0.62);
  border: 1px solid rgba(217, 244, 250, 0.22);
  border-radius: 2px;
  background: rgba(2, 8, 14, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.boot-x:hover {
  color: #eafdff;
  border-color: rgba(77, 232, 255, 0.45);
  box-shadow: 0 0 14px rgba(77, 232, 255, 0.12);
}
.boot-x-icon { display: block; width: 22px; height: 22px; }
.boot-ca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 200, 97, 0.88);
  text-decoration: none;
  border: 1px solid rgba(255, 200, 97, 0.28);
  border-radius: 2px;
  background: rgba(12, 8, 2, 0.55);
  pointer-events: auto;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
}
.boot-ca:hover {
  color: #ffe8b8;
  border-color: rgba(255, 200, 97, 0.55);
  box-shadow: 0 0 16px rgba(255, 200, 97, 0.1);
}
.boot-ca-lbl {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(255, 200, 97, 0.62);
}
.boot-ca-addr { color: inherit; word-break: break-all; line-height: 1.35; text-align: left; }
.boot-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boot-card {
  width: 100%; max-width: 660px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  pointer-events: auto; padding: 0 12px 28px; overflow: visible;
  background: none;
}
/* Glow + float on the wrapper — never filter/transform the <img> itself (Chrome clips the bitmap). */
.boot-logo-wrap {
  flex: none;
  line-height: 0;
  overflow: visible;
  padding: 36px 40px 10px;
  margin-top: auto; /* splits spare space with the hint's auto margin — content sits lower, nearer the Mac tip */
  margin-bottom: 4px;
  animation: logoFloat 4.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 32px rgba(77, 232, 255, 0.35)) drop-shadow(0 0 48px rgba(77, 232, 255, 0.12));
}
.boot-logo {
  display: block;
  width: clamp(128px, 24vw, 200px);
  height: auto;
  object-fit: contain;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.boot-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(26px, 4.6vw, 44px); letter-spacing: 0.22em; color: #eafdff; white-space: nowrap;
  text-shadow: 0 0 34px rgba(77, 232, 255, 0.35); }
.boot-title em { font-style: normal; color: var(--acc); }
.boot-sub { margin-top: 12px; font-size: 16px; letter-spacing: 0.3em; color: var(--ink-dim); line-height: 2; }
.boot-stats { display: flex; gap: 26px; margin: 30px 0 34px; }
.boot-stats div { display: flex; flex-direction: column; gap: 4px; }
.boot-stats .n { font-family: var(--font-d); font-weight: 700; font-size: 30px; color: var(--acc2); letter-spacing: 0.06em; }
.boot-stats .l { font-size: 14px; letter-spacing: 0.26em; color: var(--ink-dim); }
.boot-wallet { font-size: 15px; letter-spacing: 0.14em; color: #9ef0a8; margin-bottom: 14px; min-height: 1.35em; }
.boot-wallet--placeholder { visibility: hidden; pointer-events: none; }
.boot-foot {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.boot-gate {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(217, 244, 250, 0.5);
  line-height: 1.6;
}
.boot-gate b { color: rgba(217, 244, 250, 0.72); font-weight: 500; }

.boot-notices {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(520px, 44vw);
  padding: 14px 16px 0;
  pointer-events: none;
}
.boot-notices-brand {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16.875px;
  letter-spacing: 0.22em;
  color: #eafdff;
  text-shadow: 0 0 34px rgba(77, 232, 255, 0.35);
}
.boot-notices-brand em { font-style: normal; color: var(--acc); }

.connect-chrome-hint {
  margin-top: auto;
  width: 100%;
  max-width: 620px;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px 8px;
  border: 1px solid rgba(77, 232, 255, 0.16);
  border-radius: 2px;
  background: rgba(2, 8, 14, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: none;
  flex-shrink: 0;
}
.boot-chrome-icon { flex: none; margin-top: 1px; opacity: 0.95; filter: drop-shadow(0 0 6px rgba(66, 133, 244, 0.3)); }
.boot-chrome-body { flex: 1; min-width: 0; text-align: left; }
.boot-chrome-label {
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(77, 232, 255, 0.55);
  margin-bottom: 5px;
}
.boot-chrome-steps {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.52;
  color: rgba(217, 244, 250, 0.5);
}
.boot-chrome-steps li { margin-bottom: 2px; }
.boot-chrome-steps li:last-child { margin-bottom: 0; }
.boot-chrome-steps b { font-weight: 500; color: rgba(217, 244, 250, 0.68); }

/* ---------- modal ---------- */
.modal-bg { position: absolute; inset: 0; z-index: 80; background: rgba(1, 3, 8, 0.88); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.modal { width: 720px; max-width: calc(100vw - 40px); max-height: 80vh; overflow: auto; }
.modal .mbody { padding: 16px 18px; font-size: 16.5px; line-height: 1.85; letter-spacing: 0.05em; color: var(--ink-dim); }
.modal .mbody h4 { font-family: var(--font-d); color: var(--acc); font-size: 16.5px; letter-spacing: 0.24em; margin: 14px 0 6px; }
.modal .mbody h4:first-child { margin-top: 0; }
.modal .mbody b { color: var(--ink); font-weight: 400; }
.modal .mbody code { color: var(--gold); font-size: 15px; }

/* claim */
.claim-box { margin: 0 14px 14px; border: 1px solid var(--gold-dim); background: rgba(255, 200, 97, 0.05); padding: 12px; }
.claim-box .ct { font-family: var(--font-d); font-size: 15px; font-weight: 600; letter-spacing: 0.26em; color: var(--gold); margin-bottom: 6px; }
.claim-box .cd { font-size: 14.5px; line-height: 1.7; letter-spacing: 0.07em; color: var(--ink-dim); margin-bottom: 10px; }
.claim-box .btn { width: 100%; }
@keyframes pulseGold { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 97, 0.3); } 50% { box-shadow: 0 0 22px 2px rgba(255, 200, 97, 0.25); } }
.claim-box { animation: pulseGold 2.2s ease-in-out infinite; }

.hint { font-size: 13.5px; letter-spacing: 0.14em; color: rgba(217, 244, 250, 0.4); padding: 0 14px 12px; line-height: 1.7; }

/* ---------- traveler log ---------- */
.log-stats { display: flex; gap: 22px; padding: 12px 16px; border-bottom: 1px solid rgba(77, 232, 255, 0.1);
  font-size: 14.5px; letter-spacing: 0.18em; color: var(--ink-dim); }
.log-stats b { color: var(--acc2); font-weight: 400; }
.logbody { max-height: 56vh; overflow: auto;
  scrollbar-width: thin; scrollbar-color: var(--acc-dim) rgba(5, 14, 22, 0.6); }
.logbody::-webkit-scrollbar { width: 9px; }
.logbody::-webkit-scrollbar-track { background: rgba(5, 14, 22, 0.6); border-left: 1px solid rgba(77, 232, 255, 0.08); }
.logbody::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--acc-dim), rgba(77, 232, 255, 0.18));
  border: 1px solid rgba(77, 232, 255, 0.25); }
.logbody::-webkit-scrollbar-thumb:hover { background: var(--acc-dim); }
.modal { scrollbar-width: thin; scrollbar-color: var(--acc-dim) rgba(5, 14, 22, 0.6); }
.modal::-webkit-scrollbar { width: 9px; }
.modal::-webkit-scrollbar-track { background: rgba(5, 14, 22, 0.6); }
.modal::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--acc-dim), rgba(77, 232, 255, 0.18));
  border: 1px solid rgba(77, 232, 255, 0.25); }
.modal::-webkit-scrollbar-thumb:hover { background: var(--acc-dim); }
.log-row { padding: 11px 16px; border-bottom: 1px solid rgba(77, 232, 255, 0.07); }
.log-row:last-child { border-bottom: none; }
.log-row-top { display: flex; align-items: center; gap: 10px; }
.lr-name { font-family: var(--font-d); font-weight: 600; font-size: 17.5px; letter-spacing: 0.12em; color: var(--acc2); flex: 1; }
.lr-meta { font-size: 13px; letter-spacing: 0.16em; color: var(--ink-dim); white-space: nowrap; }
.lr-meta.gold { color: var(--gold); }
.lr-chip.gold { border-color: var(--gold-dim); color: var(--gold); }
.lr-chip.gold:hover { color: #ffe9c2; border-color: var(--gold); background: rgba(255, 200, 97, 0.08); }

/* ---------- mini animated solar system ---------- */
.mini-sys { position: relative; flex: none; display: inline-block; }
.mini-sys .ms-star { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  margin: -3px 0 0 -3px; border-radius: 50%; }
.mini-sys .ms-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(77, 232, 255, 0.10);
  border-radius: 50%; transform: translate(-50%, -50%); animation: msSpin linear infinite; }
.mini-sys .ms-dot { position: absolute; top: -1.5px; left: 50%; transform: translateX(-50%); border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.35); }
@keyframes msSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.lr-planets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.lr-chip { font-size: 13.5px; letter-spacing: 0.1em; padding: 3px 9px; border: 1px solid rgba(77, 232, 255, 0.18);
  color: var(--ink-dim); cursor: pointer; transition: color 120ms, border-color 120ms, background 120ms; }
.lr-chip:hover { color: var(--acc2); border-color: var(--acc-dim); background: var(--acc-faint); }

/* ---------- cinematic stream overlay ---------- */
.chip.cinema { color: var(--gold); border-color: var(--gold-dim); }
.chip.cinema:hover { border-color: var(--gold); background: rgba(255, 200, 97, 0.08); }

.cine { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-m); }
.cine-bar { position: absolute; left: 0; right: 0; height: 58px; background: linear-gradient(180deg, rgba(1, 3, 8, 0.92), rgba(1, 3, 8, 0)); }
.cine-bar.top { top: 0; }
.cine-bar.bottom { bottom: 0; transform: scaleY(-1); }

.cine-brand { position: absolute; top: 16px; left: 20px; display: flex; align-items: center; gap: 11px; }
.cine-brand .bt { font-family: var(--font-d); font-weight: 700; font-size: 21px; letter-spacing: 0.3em; color: #eafdff; }
.cine-brand .bt em { color: var(--acc); font-style: normal; }
.cine-url { display: block; font-size: 13px; letter-spacing: 0.32em; color: var(--acc2); text-decoration: none; margin-top: 2px; }
.cine-url:hover { color: #eafdff; }
.cine-live { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: 0.26em; color: #ff5f5f;
  border: 1px solid rgba(255, 95, 95, 0.4); padding: 4px 9px; margin-left: 10px; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.cine-stats { position: absolute; top: 16px; right: 20px; display: flex; gap: 10px; }
.cstat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 7px 13px;
  background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(10px); }
.cstat .n { font-family: var(--font-d); font-weight: 700; font-size: 22.5px; letter-spacing: 0.06em; color: var(--acc2); }
.cstat .n i { font-style: normal; font-size: 15px; color: var(--ink-dim); }
.cstat .l { font-size: 11.5px; letter-spacing: 0.22em; color: var(--ink-dim); }
.cstat.gold .n { color: var(--gold); }
.cstat.up .n { color: #57e88c; }
.cstat.down .n { color: #ff7e79; }

.cine-feed { position: absolute; left: 20px; bottom: 64px; width: 460px; display: flex; flex-direction: column; gap: 5px; }
.cine-feed-h { font-family: var(--font-d); font-size: 13.5px; font-weight: 600; letter-spacing: 0.3em; color: var(--acc);
  padding-bottom: 4px; border-bottom: 1px solid rgba(77, 232, 255, 0.18); margin-bottom: 3px; }
.cf-item { font-size: 14.5px; letter-spacing: 0.08em; color: var(--ink-dim); padding: 4px 9px;
  background: rgba(5, 14, 22, 0.55); border-left: 2px solid var(--acc-dim);
  animation: toastIn 320ms cubic-bezier(.2,.9,.3,1.2); }
.cf-item.gold { border-left-color: var(--gold); color: #ffe9c2; }
.cf-item.sys { color: var(--acc2); }

.cine-caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: 0.38em;
  color: rgba(234, 253, 255, 0.88); text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
  pointer-events: none; white-space: nowrap;
  animation: cine-cap-in 0.8s ease-out;
}
@keyframes cine-cap-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.cine-cta { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 15px; letter-spacing: 0.3em; color: var(--ink-dim); white-space: nowrap; }
.cine-cta b { color: var(--acc2); font-weight: 400; }

.cine-exit { position: absolute; right: 20px; bottom: 18px; font-family: var(--font-d); font-size: 13.5px;
  letter-spacing: 0.2em; color: rgba(217, 244, 250, 0.35); background: transparent;
  border: 1px solid rgba(217, 244, 250, 0.14); padding: 6px 11px; cursor: pointer; }
.cine-exit:hover { color: var(--ink); border-color: rgba(217, 244, 250, 0.4); }

.cine-scan { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); width: 430px;
  animation: cineScanIn 500ms cubic-bezier(.2,.9,.3,1.1); }
.cine-scan::after { content: ''; position: absolute; top: 50%; right: -64px; width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent); }
@keyframes cineScanIn { from { transform: translateY(-50%) translateX(-30px); opacity: 0; } to { transform: translateY(-50%); opacity: 1; } }
.cine-link { display: block; margin: 0 14px 14px; padding: 9px 12px; font-family: var(--font-d); font-weight: 600;
  font-size: 14.5px; letter-spacing: 0.2em; color: var(--gold); text-decoration: none;
  border: 1px solid var(--gold-dim); background: rgba(255, 200, 97, 0.06); text-align: center; }
.cine-link:hover { background: rgba(255, 200, 97, 0.16); color: #fff3da; }

/* ---------- intro trailer ("What is No Man's SOL") ---------- */
.trailer { position: absolute; inset: 0; pointer-events: auto; font-family: var(--font-m); cursor: default; }
.trailer .cine-bar { height: 64px; }
.trailer-card {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: min(780px, calc(100vw - 48px));
  text-align: center; padding: 18px 28px 17px;
  background: rgba(2, 8, 16, 0.78);
  border: 1px solid var(--panel-line);
  border-left: 2px solid var(--acc);
  border-right: 2px solid var(--acc);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(77, 232, 255, 0.08);
  animation: trailerCardIn 540ms cubic-bezier(.2,.9,.3,1.1);
}
.trailer-card.gold {
  border-color: rgba(255, 200, 97, 0.4);
  border-left-color: var(--gold); border-right-color: var(--gold);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 200, 97, 0.12);
}
.trailer-card .tc-title {
  font-family: var(--font-d); font-weight: 700; font-size: 27px; letter-spacing: 0.2em; color: #eafdff;
  text-shadow: 0 0 26px rgba(77, 232, 255, 0.3);
}
.trailer-card.gold .tc-title { color: var(--gold); text-shadow: 0 0 26px rgba(255, 200, 97, 0.3); }
.trailer-card .tc-sub { margin-top: 10px; font-size: 19px; letter-spacing: 0.16em; color: var(--ink); line-height: 1.7; }
@keyframes trailerCardIn { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.trailer-skip {
  position: absolute; right: 20px; bottom: 18px; font-family: var(--font-d); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--ink-dim); background: rgba(2, 8, 14, 0.6);
  border: 1px solid rgba(217, 244, 250, 0.22); padding: 8px 16px; cursor: pointer;
}
.trailer-skip:hover { color: var(--ink); border-color: rgba(217, 244, 250, 0.45); }
.trailer-fade {
  position: absolute; inset: 0; background: #01030a; opacity: 0;
  pointer-events: none; transition: opacity 1200ms ease;
}
.trailer-fade.on { opacity: 1; }
.boot-trailer { margin-top: 14px; }

/* ---------- HUD chrome: 25% smaller text ---------- */
.hud-compact .ph h3 { font-size: 12px; }
.hud-compact .ph .ph-r { font-size: 10.125px; }
.hud-compact .kv { font-size: 12px; }
.hud-compact .kv dt { font-size: 10.125px; }
.hud-compact .btn { font-size: 12.375px; }
.hud-compact .btn.lg { font-size: 14.625px; }
.hud-compact .res-tags span { font-size: 10.125px; }
.hud-compact .hint { font-size: 10.125px; }
.hud-compact .nav-hint { font-size: 19.5px; }
.hud-compact .nav-hint .key-cap { min-width: 36px; height: 32px; font-size: 19.5px; padding: 0 10px; margin-right: 12px; }
.hud-compact .nav-hint--key-right .key-cap { margin-left: 12px; }
.hud-compact .nav-hint--key-right .key-cap.key-cap--wide { min-width: 66px; font-size: 12.75px; }
.hud-compact .planet-row .pr-name { font-size: 12.375px; }
.hud-compact .planet-row .pr-type { font-size: 9.75px; }
.hud-compact .planet-row .pr-scan { width: 11px; height: 11px; margin-left: 6px; }
.hud-compact .planet-row .pr-scan.done::after { width: 3px; height: 6px; margin-top: 0; }
.hud-compact .claim-box .ct { font-size: 11.25px; }
.hud-compact .claim-box .cd { font-size: 10.875px; }

.topbar.hud-compact .brand .bt { font-size: 16.875px; }
.topbar.hud-compact .brand .bs { font-size: 9px; }
.topbar.hud-compact .crumb { font-size: 10.875px; }
.topbar.hud-compact .search input { font-size: 12.375px; }
.topbar.hud-compact .chip { font-size: 11.25px; }
.topbar.hud-compact .chip .lbl { font-size: 9.75px; }

.hud-compact .sig-meta { font-size: 10.125px; }
.hud-compact .scan-note { font-size: 10.125px; }
.hud-compact .b-name { font-size: 12px; }
.hud-compact .b-desc { font-size: 9.75px; }
.hud-compact .b-active { font-size: 10.125px; }
.hud-compact .boost-row .btn { font-size: 10.875px; }

.hud-compact .rewards-panel .rbody { font-size: 10.5px; }
.hud-compact .r-val { font-size: 21px; }
.hud-compact .r-usd { font-size: 10.5px; }
.hud-compact .r-lbl { font-size: 8.25px; }
.hud-compact .r-link { font-size: 9.75px; }
.hud-compact .r-note { font-size: 8.25px; }
.hud-compact .r-note code { font-size: 7.5px; }
.hud-compact .tracker .big { font-size: 29.25px; }
.hud-compact .tracker .small { font-size: 10.125px; }
.hud-compact .cache-mini .cache-count { font-size: 27px; }
.hud-compact .cache-mini .cache-count-lbl { font-size: 9px; }
.hud-compact .cache-mini .cache-sol { font-size: 15px; }
.hud-compact .cache-mini .cache-lbl { font-size: 9.75px; }
.hud-compact .cache-mini .cache-usd { font-size: 11.25px; }

.activity-feed.hud-compact .feed-item { font-size: 10.125px; padding: 5px 9px; }

.boot.hud-compact .boot-title { font-size: clamp(19.5px, 3.45vw, 33px); }
.boot.hud-compact .boot-sub { font-size: 12px; }
.boot.hud-compact .boot-stats .n { font-size: 22.5px; }
.boot.hud-compact .boot-stats .l { font-size: 11px; }
.boot.hud-compact .boot-wallet { font-size: 11.25px; }
.boot.hud-compact .boot-follow-lbl { font-size: 12.5px; }
.boot.hud-compact .boot-x { width: 40px; height: 40px; }
.boot.hud-compact .boot-x-icon { width: 18px; height: 18px; }
.boot.hud-compact .boot-ca { font-size: 11.5px; padding: 8px 12px; margin-top: 14px; }
.boot.hud-compact .boot-ca-lbl { font-size: 10.5px; flex: none; }
.boot.hud-compact .boot-ca-addr { font-size: 11px; }
.boot.hud-compact .boot-gate { font-size: 12.5px; margin-top: 14px; }
.boot.hud-compact .boot-chrome-label { font-size: 9.75px; }
.boot.hud-compact .boot-chrome-steps { font-size: 10.75px; line-height: 1.5; }
.boot.hud-compact .connect-chrome-hint { padding: 9px 13px 7px; }

@media (max-width: 960px) {
  .boot {
    padding-left: clamp(16px, 4vw, 28px);
    justify-content: center;
    background: radial-gradient(ellipse at 28% 72%, rgba(2, 6, 14, 0.15) 0%, rgba(1, 3, 8, 0.88) 58%);
  }
  .boot-panel { width: min(560px, 100%); }
}

.hud-compact .modal .mbody { font-size: 12.375px; }
.hud-compact .modal .mbody h4 { font-size: 12.375px; }
.hud-compact .modal .mbody code { font-size: 11.25px; }
.hud-compact .log-stats { font-size: 10.875px; }
.hud-compact .lr-name { font-size: 13.125px; }
.hud-compact .lr-meta { font-size: 9.75px; }
.hud-compact .lr-chip { font-size: 10.125px; }

.cine.hud-compact .cine-brand .bt { font-size: 15.75px; }
.cine.hud-compact .cine-url { font-size: 9.75px; }
.cine.hud-compact .cine-live { font-size: 11.25px; }
.cine.hud-compact .cstat .n { font-size: 16.875px; }
.cine.hud-compact .cstat .n i { font-size: 11.25px; }
.cine.hud-compact .cstat .l { font-size: 8.625px; }
.cine.hud-compact .cine-feed-h { font-size: 10.125px; }
.cine.hud-compact .cf-item { font-size: 10.875px; }
.cine.hud-compact .cine-cta { font-size: 11.25px; }
.cine.hud-compact .cine-exit { font-size: 10.125px; }
.cine.hud-compact .cine-link { font-size: 10.875px; }
.cine.hud-compact .cine-caption { font-size: 11.25px; letter-spacing: 0.28em; }

.trailer.hud-compact .cine-brand .bt { font-size: 15.75px; }
.trailer.hud-compact .trailer-card .tc-title { font-size: 20.25px; }
.trailer.hud-compact .trailer-card .tc-sub { font-size: 14.25px; }
.trailer.hud-compact .trailer-skip { font-size: 10.125px; }

/* ---------- traveler's field guide (live interactive tour) ---------- */
.guide-layer { position: absolute; inset: 0; z-index: 90; pointer-events: none; font-family: var(--font-m); }
.guide-spot {
  position: fixed; pointer-events: none; border: 1px solid var(--gold); border-radius: 3px;
  box-shadow: 0 0 26px rgba(255, 200, 97, 0.4), inset 0 0 18px rgba(255, 200, 97, 0.12);
  transition: left 360ms cubic-bezier(.3,.8,.3,1), top 360ms cubic-bezier(.3,.8,.3,1),
    width 360ms cubic-bezier(.3,.8,.3,1), height 360ms cubic-bezier(.3,.8,.3,1);
  animation: guidePulse 2.4s ease-in-out infinite;
}
@keyframes guidePulse {
  0%, 100% { border-color: var(--gold); }
  50% { border-color: rgba(255, 200, 97, 0.45); }
}
.guide-card {
  position: fixed; width: 460px; max-width: calc(100vw - 32px); pointer-events: auto;
  background: rgba(4, 12, 20, 0.96); border: 1px solid var(--gold-dim); border-top: 2px solid var(--gold);
  padding: 14px 18px 16px; backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 28px rgba(255, 200, 97, 0.08);
  animation: toastIn 300ms cubic-bezier(.2,.9,.3,1.2);
}
/* default spot (no highlighted component): top-left, under the brand with breathing room */
.guide-card.anchored { left: 18px; top: clamp(96px, 13vh, 140px); }
.guide-chapter { font-size: 10.5px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 8px; }
.guide-title { font-family: var(--font-d); font-size: 17px; font-weight: 700; letter-spacing: 0.2em; color: #eafdff; margin-bottom: 8px; }
.guide-body { font-size: 13px; line-height: 1.8; letter-spacing: 0.05em; color: var(--ink-dim); }
.guide-body b { color: var(--ink); font-weight: 600; }
.guide-btns { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.guide-btns .btn { padding: 7px 16px; }
.guide-x {
  position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--ink-dim); font-size: 14px; padding: 4px 6px; font-family: inherit;
}
.guide-x:hover { color: var(--ink); }

.guide-modal .guide-intro { padding: 14px 18px 4px; font-size: 13.5px; line-height: 1.8; letter-spacing: 0.05em; color: var(--ink-dim); }
.guide-modal .guide-intro b { color: var(--gold); font-weight: 400; }
.guide-list { padding: 8px 10px; }
.guide-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px;
  border-bottom: 1px solid rgba(77, 232, 255, 0.07);
}
.guide-row:last-child { border-bottom: none; }
.guide-row-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-row .g-name { font-family: var(--font-d); font-size: 13.5px; font-weight: 600; letter-spacing: 0.24em; color: var(--acc2); }
.guide-row .g-blurb { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-dim); }
.guide-row .btn { flex: none; padding: 7px 14px; }
.guide-foot { padding: 6px 18px 16px; display: flex; justify-content: center; }
.guide-foot .btn { width: 100%; }

@media (max-width: 900px) {
  .nav-crumb { font-size: 9px; gap: 5px; }
  .search input { width: 140px; }
  .bl { width: 380px; }
  .br { width: 330px; }
}
