/* AGENT_TARGET: fuel-gauge-travel — fuel gauge travel mini-game styles */

.fuel-travel-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 212, 59, 0.08), transparent 26%),
    radial-gradient(circle at 80% 86%, rgba(76, 255, 158, 0.06), transparent 28%),
    #050414;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 32px;
  overflow-y: auto;
  gap: 14px;
  animation: ft-fadein 0.25s ease;
}

@keyframes ft-fadein {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fuel-travel-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.fuel-travel-close:hover {
  color: #fff;
}

.fuel-travel-title {
  color: #ffd43b;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.fuel-travel-subtitle {
  color: #c8d6ff;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
  max-width: 360px;
}

.fuel-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 6px 8px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.fuel-bar-wrap.fuel-state-warning {
  background: rgba(255, 212, 59, 0.08);
  border-color: rgba(255, 212, 59, 0.34);
  box-shadow: 0 0 18px rgba(255, 212, 59, 0.12);
}

.fuel-bar-wrap.fuel-state-critical {
  background: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.42);
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.16);
}

.fuel-bar-wrap.fuel-warning-pulse {
  animation: ft-warning-ring 0.72s ease-out 2;
}

@keyframes ft-warning-ring {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.025);
    box-shadow:
      0 0 0 5px rgba(255, 212, 59, 0.12),
      0 0 26px rgba(255, 212, 59, 0.22);
  }
  100% {
    transform: scale(1);
  }
}

.fuel-bar-label {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.fuel-bar-track {
  flex: 1;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fuel-bar-fill {
  height: 100%;
  border-radius: 9px;
  transition: background 0.4s;
}

.fuel-bar-pct {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

.fuel-warning-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 212, 59, 0.44);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.2), transparent 28%),
    rgba(255, 212, 59, 0.12);
  color: #fff2a6;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: ft-chip-pop 0.28s ease-out both;
}

.fuel-warning-chip span {
  font-size: 1rem;
}

.fuel-warning-chip strong {
  font: inherit;
}

.fuel-warning-chip.fuel-warning-low {
  border-color: rgba(255, 122, 82, 0.54);
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.18), transparent 28%),
    rgba(255, 82, 82, 0.14);
  color: #ffd6c8;
}

.fuel-inline-refuel-btn {
  min-height: 60px;
  min-width: min(280px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 212, 59, 0.7);
  border-radius: 999px;
  background: rgba(255, 212, 59, 0.16);
  color: #fff6b8;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(255, 212, 59, 0.12);
  cursor: pointer;
}

.fuel-inline-refuel-btn:hover,
.fuel-inline-refuel-btn:focus-visible {
  background: rgba(255, 212, 59, 0.24);
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(255, 212, 59, 0.18),
    0 12px 28px rgba(255, 212, 59, 0.12);
}

@keyframes ft-chip-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fuel-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}
.fuel-location-label {
  color: #888;
}
.fuel-location-name {
  font-weight: 700;
  font-size: 1rem;
}
.fuel-location-au {
  color: #666;
  font-size: 0.8rem;
}

.fuel-planet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

@media (max-width: 480px) {
  .fuel-planet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fuel-warning-chip {
    width: min(320px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fuel-bar-wrap.fuel-warning-pulse,
  .fuel-warning-chip {
    animation: none;
  }
}

.fuel-planet-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 15, 39, 0.94);
  color: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
  position: relative;
}
.fuel-planet-btn:not(:disabled):hover {
  border-color: var(--planet-color, #fff);
  background: rgba(28, 26, 58, 0.98);
  transform: translateY(-2px);
}
.fuel-planet-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.fuel-planet-btn.fuel-origin {
  border-color: #ffd43b;
  background: rgba(68, 57, 23, 0.96);
}
.fuel-planet-btn.fuel-dest {
  border-color: #4cff9e;
  animation: ft-pulse 0.5s ease infinite alternate;
}
.fuel-planet-btn.fuel-low-option {
  border-color: rgba(255, 122, 82, 0.46);
  background: rgba(52, 19, 28, 0.96);
}

@keyframes ft-pulse {
  to {
    border-color: #ffffff88;
  }
}

.fuel-btn-symbol {
  font-size: 1.4rem;
  line-height: 1;
}
.fuel-btn-name {
  font-size: 0.7rem;
  color: #ccc;
}
.fuel-btn-cost {
  font-size: 0.72rem;
  color: #ffd43b;
  font-weight: 700;
}
.fuel-btn-cost.fuel-here {
  color: #4cff9e;
}
.fuel-btn-cost-bar {
  display: block;
  width: 64px;
  max-width: 82%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.fuel-btn-cost-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4cff9e, #ffd43b, #ff7a52);
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.32);
}
.fuel-btn-needed {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 122, 82, 0.16);
  color: #ffd6c8;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.fuel-message {
  color: #fff;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  max-width: 420px;
  text-align: center;
  animation: ft-fadein 0.2s ease;
}

.fuel-fact {
  color: #aac4ff;
  font-size: 0.85rem;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.fuel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.fuel-refuel-btn,
.fuel-reset-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.fuel-refuel-btn {
  border-color: #ffd43b;
  color: #ffd43b;
}
.fuel-refuel-btn:hover {
  background: rgba(255, 212, 59, 0.15);
}
.fuel-reset-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* AGENT_TARGET: distance-budget-tour — light-time learning cue */
.distance-budget-light-cue {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(125, 232, 255, 0.24);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.74);
  color: rgba(220, 235, 255, 0.84);
}
.distance-budget-light-cue strong,
.distance-budget-light-cue span {
  display: block;
}
.distance-budget-light-cue strong {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7de8ff;
  margin-bottom: 5px;
}
.distance-budget-light-cue span {
  font-size: 0.84rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

/* AGENT_TARGET: probe-scrapbook — spacecraft scrapbook styles */

/* AGENT_TARGET: spacecraft-trajectory — Hohmann transfer arc planner overlay */

.traj-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(5, 4, 20, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 28px;
  overflow-y: auto;
  gap: 10px;
  animation: traj-fadein 0.22s ease;
}

@keyframes traj-fadein {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1);    }
}

.traj-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.traj-close:hover { color: #fff; }

.traj-title {
  color: #7de8ff;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.traj-subtitle {
  color: #c8d6ff;
  font-size: 0.88rem;
  margin: 0;
  text-align: center;
}

.traj-canvas {
  border-radius: 12px;
  background: #060418;
  max-width: 100%;
}

.traj-selector-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 360px;
}

.traj-selector-label {
  color: rgba(200,220,255,0.6);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.traj-planet-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.traj-planet-btn {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: #d0e4ff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.traj-planet-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.3);
}
.traj-planet-btn.traj-selected-from {
  background: color-mix(in srgb, var(--traj-color, #4c9eff) 22%, transparent);
  border-color: var(--traj-color, #4c9eff);
  color: #fff;
  font-weight: 700;
}
.traj-planet-btn.traj-selected-to {
  background: color-mix(in srgb, var(--traj-color, #e05c35) 22%, transparent);
  border-color: var(--traj-color, #e05c35);
  color: #fff;
  font-weight: 700;
}
.traj-planet-btn.traj-disabled,
.traj-planet-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.traj-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px 16px;
}

.traj-transfer-cue {
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.traj-transfer-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.traj-transfer-head span {
  color: rgba(200,220,255,0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.traj-transfer-head strong {
  color: #ffffff;
  font-size: 0.82rem;
  text-align: right;
}
.traj-transfer-rail {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.11);
}
.traj-transfer-rail i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd43b, #50dfff, #7de8ff);
  box-shadow: 0 0 12px rgba(80, 223, 255, 0.45);
}
.traj-transfer-cue p {
  margin: 7px 0 0;
  color: rgba(210, 226, 255, 0.74);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.traj-stat {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.traj-stat-label {
  color: rgba(200,220,255,0.55);
  font-size: 0.82rem;
}

.traj-stat-value {
  color: #7de8ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.traj-fact {
  color: #c8d6ff;
  font-size: 0.82rem;
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.45;
}

.traj-finish {
  min-height: 48px;
  border: 1px solid rgba(125, 232, 255, 0.46);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(125, 232, 255, 0.14);
  color: #e9fcff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.traj-finish:hover,
.traj-finish:focus-visible {
  background: rgba(125, 232, 255, 0.24);
  outline: 3px solid rgba(255, 214, 107, 0.72);
  outline-offset: 3px;
}

.scrapbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(5, 4, 20, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 32px;
  overflow-y: auto;
  gap: 14px;
  animation: sb-fadein 0.25s ease;
}

@keyframes sb-fadein {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scrapbook-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}
.scrapbook-close:hover {
  color: #fff;
}

.scrapbook-title {
  color: #ffd43b;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.scrapbook-progress {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.scrapbook-tip {
  max-width: 420px;
  color: #c8d6ff;
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.scrapbook-discovery-beat {
  min-height: 60px;
  width: min(420px, 100%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 9px 14px;
  border: 2px solid var(--card-color, #ffd43b);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.28), transparent 24%),
    color-mix(in srgb, var(--card-color, #ffd43b) 18%, rgba(5, 4, 20, 0.92));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  animation: sb-discovery-pop 0.34s ease-out both;
}

.scrapbook-discovery-emoji {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.65rem;
  line-height: 1;
}

.scrapbook-discovery-beat strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.scrapbook-discovery-beat span:last-child {
  color: rgba(232, 240, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

@keyframes sb-discovery-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.scrapbook-card {
  perspective: 800px;
  height: 160px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
}

.scrapbook-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 12px;
}

.scrapbook-card.flipped .scrapbook-card-inner {
  transform: rotateY(180deg);
}

.scrapbook-front,
.scrapbook-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.scrapbook-card.collected .scrapbook-front,
.scrapbook-card.collected .scrapbook-back {
  border-color: var(--card-color, #fff);
  background: color-mix(in srgb, var(--card-color, #fff) 10%, transparent);
}

.scrapbook-card:hover .scrapbook-front,
.scrapbook-card:hover .scrapbook-back {
  border-color: var(--card-color, #fff);
}

.scrapbook-back {
  transform: rotateY(180deg);
  background: color-mix(
    in srgb,
    var(--card-color, #fff) 15%,
    rgba(5, 4, 20, 0.97)
  );
  border-color: var(--card-color, #fff);
}

.scrapbook-emoji {
  font-size: 2rem;
  line-height: 1;
}
.scrapbook-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.scrapbook-year {
  color: #aaa;
  font-size: 0.75rem;
}
.scrapbook-target {
  color: #ccc;
  font-size: 0.72rem;
}

.scrapbook-new-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #ffd43b;
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.scrapbook-back-emoji {
  font-size: 1.4rem;
}
.scrapbook-fact {
  color: #e8f0ff;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  margin: 0;
}
.scrapbook-tap-hint {
  color: #777;
  font-size: 0.68rem;
  margin-top: auto;
}

.scrapbook-reset {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
}
.scrapbook-reset:hover {
  color: #ff5252;
  border-color: #ff5252;
}

@media (prefers-reduced-motion: reduce) {
  .scrapbook-discovery-beat {
    animation: none;
  }
}

/* AGENT_TARGET: constellation-spotlight — on-launch constellation spotlight overlay */

.const-spotlight-wrap {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Dim the hub while the spotlight owns the screen; without this its
     trace stars drew over the header panels and looked like a z-bug. */
  background: rgba(5, 4, 20, 0.5);
  animation: cs-fadein 0.5s ease;
}

@keyframes cs-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.const-spotlight-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.const-line {
  stroke-width: 0.4;
  opacity: 0.16;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition:
    opacity 0.4s,
    stroke-dashoffset 1.2s ease;
}

.const-line.traced {
  opacity: 0.88;
  stroke-width: 0.75;
  stroke-dashoffset: 0;
}

.const-star-tap {
  cursor: pointer;
  outline: none;
}

.const-star-hit {
  fill: rgba(255, 255, 255, 0.001);
  pointer-events: auto;
}

.const-star-dot {
  opacity: 0;
  transition: opacity 0.5s ease;
  r: 1.2;
}

.const-star-number {
  opacity: 0;
  fill: #fff;
  font-size: 3px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(5, 4, 20, 0.92);
  stroke-width: 0.8px;
  pointer-events: none;
}

.const-highlighted .const-line {
  stroke-dashoffset: 0;
}

.const-highlighted .const-star-dot {
  opacity: 1;
}

.const-highlighted .const-star-tap.next .const-star-dot {
  animation: cs-next-star-pulse 0.95s ease-in-out infinite;
  opacity: 1;
}

.const-star-tap.next .const-star-number,
.const-star-tap.traced .const-star-number {
  opacity: 1;
}

.const-star-tap.traced .const-star-dot {
  opacity: 1;
  r: 1.9;
}

.const-star-tap:focus-visible .const-star-hit {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 0.38;
}

@keyframes cs-next-star-pulse {
  0%,
  100% {
    r: 2.2;
    opacity: 1;
  }
  50% {
    r: 3.15;
    opacity: 0.86;
  }
}

.const-traced-complete .const-star-dot {
  animation: cs-traced-twinkle 0.56s ease-out both;
}

@keyframes cs-traced-twinkle {
  0% {
    r: 1.7;
  }
  50% {
    r: 3.3;
  }
  100% {
    r: 2;
  }
}

.const-spotlight-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  background: rgba(5, 4, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 18px 22px 16px;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  animation: cs-cardin 0.5s 0.3s both ease;
  align-self: flex-end;
  margin-bottom: max(24px, 6vh);
}

@keyframes cs-cardin {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.const-spotlight-label {
  color: #ffd43b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.const-spotlight-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.const-spotlight-goal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
}

.const-spotlight-goal span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 212, 59, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 212, 59, 0.08);
  color: #fff3c7;
  font-size: 0.72rem;
  font-weight: 800;
}

.const-spotlight-blurb {
  color: #c8d6ff;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.const-spotlight-trace-status {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 59, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 212, 59, 0.1);
  color: #fff7c8;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.const-spotlight-dismiss {
  /* PLAYTEST-FIX tap-target (2026-06-16): 31px tall -> 44px finger minimum. */
  margin-top: 4px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.const-spotlight-dismiss:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .const-highlighted .const-star-tap.next .const-star-dot,
  .const-traced-complete .const-star-dot {
    animation: none;
  }
}

/* AGENT_TARGET: gravity-jump-tester — gravity jump astronaut toy styles */
.gravity-jump-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-top: 14px;
}
.gravity-jump-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}
.gravity-jump-stage {
  position: relative;
  height: 210px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.gravity-jump-astronaut {
  position: absolute;
  font-size: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  line-height: 1;
}
.gravity-jump-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(
    to right,
    var(--planet-color, #4a8fff),
    rgba(255, 255, 255, 0.1)
  );
  opacity: 0.45;
  border-radius: 0 0 10px 10px;
}
.gravity-jump-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  pointer-events: none;
}
.gravity-jump-height-meter {
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.gravity-jump-height-meter span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
}
.gravity-jump-height-meter i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.gravity-jump-height-meter b {
  display: block;
  min-width: 12px;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--planet-color, #4a8fff) 72%, #ffd66b);
}
.gravity-jump-height-meter small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gravity-jump-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.gravity-jump-stats strong {
  font-size: 0.88rem;
  color: #fff;
}
.gravity-jump-stats span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* AGENT_TARGET: moon-phase-calendar — moon phase wheel overlay styles */
.moon-phase-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 20, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.moon-phase-panel {
  position: relative;
  background: linear-gradient(160deg, #0e0c2a 0%, #141230 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px 22px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
.moon-phase-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moon-phase-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.moon-phase-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.moon-phase-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.moon-phase-big-emoji {
  font-size: 3.2rem;
  line-height: 1;
}
.moon-phase-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}
.moon-phase-tonight-badge {
  font-size: 0.78rem;
  color: #ffd66b;
  margin-top: 2px;
}
.moon-phase-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 10px;
}
.moon-phase-countdown {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8d6ff;
  background: rgba(200, 214, 255, 0.08);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 14px;
}
.moon-phase-wheel-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-bottom: 10px;
}
.moon-phase-wheel-row::-webkit-scrollbar {
  display: none;
}
.moon-phase-pip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 6px 5px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.15s, border-color 0.15s;
  min-width: 44px;
}
.moon-phase-pip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.moon-phase-pip.tonight {
  border-color: rgba(255, 214, 107, 0.55);
}
.moon-phase-pip.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.moon-phase-pip-emoji {
  font-size: 1.5rem;
  line-height: 1;
}
.moon-phase-pip-label {
  font-size: 0.6rem;
  text-align: center;
  white-space: pre-line;
  line-height: 1.3;
}
.moon-phase-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* AGENT_TARGET: planet-thermo-card — planet temperature thermometer styles */
.planet-thermo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px 14px;
  margin-top: 14px;
}
.planet-thermo-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
.planet-thermo-tube {
  flex-shrink: 0;
  width: 28px;
  height: 160px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: ns-resize;
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
}
.planet-thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 14px 14px;
  transition: height 0.3s ease, background 0.3s ease;
}
.planet-thermo-marker {
  position: absolute;
  left: -2px;
  right: -2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 2px solid;
  border-right: 2px solid;
  border-radius: 2px;
  pointer-events: none;
  transition: bottom 0.3s ease;
}
.planet-thermo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.planet-thermo-temp {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s;
}
.planet-thermo-real {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.planet-thermo-comparison {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin-top: 4px;
}
.planet-thermo-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

/* ─── AGENT_TARGET: texture-quality-preset — CSS class reduces motion on low-end devices ─── */
.quality-low .orbit,
.quality-low .planet-ring {
  animation-duration: 0s !important;
}
.quality-low .star {
  animation: none !important;
}
.quality-low .planet-glow,
.quality-low .sun-glow {
  filter: none !important;
}

/* ─── AGENT_TARGET: gravity-slingshot — drag-rocket orbital mechanics overlay ─── */
.slingshot-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: rgba(4, 3, 18, 0.82);
  z-index: 520;
  backdrop-filter: blur(4px);
}
.slingshot-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(12, 10, 40, 0.97);
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: 18px;
  padding: 16px 14px 12px;
  max-width: 540px;
  width: calc(100vw - 28px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.slingshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.slingshot-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8e0ff;
  letter-spacing: 0.02em;
}
.slingshot-close {
  background: none;
  border: none;
  color: rgba(200, 220, 255, 0.55);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.slingshot-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.slingshot-planet-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.slingshot-planet-btn {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(120, 160, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(200, 220, 255, 0.7);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.slingshot-planet-btn.on,
.slingshot-planet-btn:hover {
  background: rgba(100, 150, 255, 0.2);
  color: #e8f0ff;
  border-color: rgba(120, 160, 255, 0.55);
}
.slingshot-physics-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid rgba(255, 229, 138, 0.26);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 229, 138, 0.1);
}
.slingshot-physics-card strong {
  grid-column: 1 / -1;
  color: #fff3bc;
  font-size: 0.84rem;
  letter-spacing: 0;
}
.slingshot-physics-card span {
  min-width: 0;
  color: rgba(232, 240, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.24;
}
.slingshot-pull-meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.slingshot-pull-meter small {
  overflow: hidden;
  color: rgba(255, 243, 188, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slingshot-pull-meter i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.slingshot-pull-meter b {
  display: block;
  min-width: 10px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(120, 160, 255, 0.72), rgba(255, 229, 138, 0.88));
}
.slingshot-physics-card button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffe58a;
  color: #241303;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}
.slingshot-canvas {
  display: block;
  border-radius: 10px;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}
.slingshot-flight-notice {
  justify-self: center;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143, 255, 191, 0.46);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(21, 82, 57, 0.86);
  color: #f0fff6;
  font-size: 0.84rem;
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  animation: slingshot-notice-pop 0.34s ease-out both;
}
.slingshot-hint {
  font-size: 0.75rem;
  color: rgba(180, 210, 255, 0.45);
  text-align: center;
  margin: 0;
}
@keyframes slingshot-notice-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 520px) {
  .slingshot-overlay {
    align-items: flex-start;
    padding: 12px 0 18px;
  }

  .slingshot-physics-card {
    grid-template-columns: 1fr;
  }

  .slingshot-physics-card button {
    width: 100%;
  }
}

/* ─── AGENT_TARGET: scavenger-checklist — corner solar system scavenger hunt ─── */
.scavenger-checklist {
  position: fixed;
  bottom: 72px;
  right: 12px;
  z-index: 310;
  background: rgba(8, 6, 30, 0.92);
  border: 1px solid rgba(120, 160, 255, 0.2);
  border-radius: 14px;
  padding: 0;
  max-width: 268px;
  width: max-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  overflow: hidden;
  transition: opacity 0.2s;
}
.scavenger-checklist.done {
  border-color: rgba(100, 255, 160, 0.4);
}
.scavenger-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: rgba(200, 220, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.scavenger-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}
.scavenger-chevron {
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.65rem;
}
.scavenger-now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
  padding: 8px 10px;
  border: 2px solid rgba(124, 233, 156, 0.9);
  border-radius: 12px;
  background: rgba(124, 233, 156, 0.18);
  color: #effff4;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}
.scavenger-now > span:nth-child(2) {
  flex: 1 1 138px;
}
.scavenger-now strong,
.scavenger-now small {
  display: block;
}
.scavenger-now small {
  margin-top: 3px;
  color: rgba(239, 255, 244, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}
.scavenger-show-next {
  min-width: 86px;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #ffe58a;
  color: #241303;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}
.scavenger-show-next:hover,
.scavenger-show-next:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
  background: #fff0ad;
}
.scavenger-guide-cue {
  margin: 0 8px 6px;
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(255, 229, 138, 0.13);
  color: #fff2b8;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.25;
}
.scavenger-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scavenger-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 8px;
  color: rgba(200, 220, 255, 0.55);
  transition: background 0.15s;
}
.scavenger-item.done {
  color: rgba(120, 255, 160, 0.85);
}
.scavenger-item.next {
  background: rgba(120, 160, 255, 0.1);
  color: rgba(220, 235, 255, 0.9);
}
.scavenger-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.scavenger-text {
  line-height: 1.25;
}
.scavenger-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px 10px;
  color: rgba(120, 255, 160, 0.9);
  font-size: 0.78rem;
}
.scavenger-reset {
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 255, 160, 0.4);
  background: none;
  color: rgba(120, 255, 160, 0.8);
  font-size: 0.75rem;
  cursor: pointer;
}
.scavenger-reset:hover {
  background: rgba(120, 255, 160, 0.1);
}
.scavenger-reset-small {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: rgba(200, 220, 255, 0.45);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: right;
}
.scavenger-reset-small:hover {
  color: rgba(200, 220, 255, 0.5);
}

/* ─── AGENT_TARGET: deuteranopia-mode — orange-blue color-blind palette for deuteranopia ─── */
/* Shifts red (0°) → orange-yellow (40°), green (120°) → cyan-teal (160°).
   Deuteranopes can't distinguish red from green; orange-cyan are well separated. */
.deuteranopia-mode .overview-stage,
.deuteranopia-mode .planet-marker,
.deuteranopia-mode .sun-anchor,
.deuteranopia-mode .planet-canvas,
.deuteranopia-mode .planet-canvas-detail {
  filter: hue-rotate(40deg) saturate(1.3);
}

.deuteranopia-mode .detail-planet-wrap canvas {
  filter: hue-rotate(40deg) saturate(1.3);
}

.deuteranopia-badge {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 600;
  background: rgba(0, 160, 255, 0.15);
  border: 1px solid rgba(0, 160, 255, 0.4);
  color: rgba(130, 210, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Name-tag floating above astronaut sprite */
/* AGENT_TARGET: astronaut-name-tag — name label above flying + home astronaut */
.astronaut-name-tag {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(12, 10, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 2px 8px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: nametag-fadein 0.4s ease;
}
@keyframes nametag-fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(2px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}

/* ─── AGENT_TARGET: night-sky-view — tonight's planet visibility from backyard ─── */
.night-sky-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(2, 1, 12, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.night-sky-panel {
  position: relative;
  background: linear-gradient(160deg, #060418 0%, #0b0828 100%);
  border: 1px solid rgba(100, 140, 255, 0.2);
  border-radius: 20px;
  padding: 22px 20px 20px;
  max-width: 420px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 140, 255, 0.3) transparent;
}
.night-sky-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.night-sky-close:hover { background: rgba(255, 255, 255, 0.14); }
.night-sky-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.night-sky-icon { font-size: 2rem; line-height: 1; }
.night-sky-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #c8d8ff;
}
.night-sky-subtitle {
  font-size: 0.78rem;
  color: rgba(180, 200, 255, 0.5);
  margin-top: 2px;
}
.night-sky-prompt { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.night-sky-prompt-text { color: rgba(200, 220, 255, 0.75); font-size: 0.92rem; text-align: center; margin: 0; }
.night-sky-locate-btn {
  padding: 10px 28px;
  border-radius: 24px;
  border: 1.5px solid rgba(100, 160, 255, 0.45);
  background: rgba(60, 100, 255, 0.12);
  color: #a8c8ff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.night-sky-locate-btn:hover { background: rgba(60, 100, 255, 0.22); }
.night-sky-loading {
  color: rgba(180, 210, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: 18px 0;
  animation: ns-pulse 1.4s ease-in-out infinite;
}
@keyframes ns-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.night-sky-approx-note {
  background: rgba(255, 200, 80, 0.08);
  border: 1px solid rgba(255, 200, 80, 0.2);
  border-radius: 8px;
  color: rgba(255, 220, 130, 0.7);
  font-size: 0.75rem;
  padding: 5px 10px;
  text-align: center;
}
.night-sky-compass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.night-sky-compass-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  overflow: visible;
}
.ns-compass-label {
  fill: rgba(150, 180, 255, 0.55);
  font-size: 8px;
  font-family: inherit;
}
.ns-planet-dot-label {
  fill: #fff;
  font-size: 8px;
  dominant-baseline: middle;
}
.ns-planet-dot-name {
  fill: rgba(220, 230, 255, 0.8);
  font-size: 6px;
}
.ns-compass-horizon-label {
  font-size: 0.68rem;
  color: rgba(150, 180, 255, 0.35);
  letter-spacing: 0.05em;
}
.night-sky-planet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.night-sky-reading-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 2px;
}
.night-sky-reading-guide span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(130, 165, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 18, 40, 0.6);
  color: rgba(190, 210, 255, 0.62);
  font-size: 0.68rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.night-sky-reading-guide strong {
  display: block;
  color: rgba(232, 240, 255, 0.9);
  font-size: 0.7rem;
  margin-bottom: 3px;
}
.ns-planet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
}
.ns-planet-emoji { font-size: 1.5rem; line-height: 1; }
.ns-planet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ns-planet-info strong { font-size: 0.9rem; color: #e8f0ff; }
.ns-planet-info span { font-size: 0.75rem; color: rgba(180, 200, 255, 0.55); }
.ns-planet-arrow {
  font-size: 1.2rem;
  color: rgba(180, 210, 255, 0.5);
  transition: transform 0.3s;
  width: 24px;
  text-align: center;
}
.night-sky-none {
  color: rgba(180, 210, 255, 0.6);
  font-size: 0.88rem;
  text-align: center;
  padding: 10px 0;
  line-height: 1.5;
}
.night-sky-hidden { display: flex; flex-direction: column; gap: 6px; }
.night-sky-hidden-label {
  font-size: 0.72rem;
  color: rgba(180, 200, 255, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.night-sky-hidden-list { display: flex; flex-wrap: wrap; gap: 6px; }
.night-sky-hidden-chip {
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(100, 130, 200, 0.25);
  color: rgba(160, 185, 255, 0.5);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}
.night-sky-refresh {
  align-self: center;
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid rgba(100, 140, 255, 0.3);
  background: rgba(60, 100, 255, 0.08);
  color: rgba(160, 200, 255, 0.7);
  font-size: 0.82rem;
  cursor: pointer;
}
.night-sky-refresh:hover { background: rgba(60, 100, 255, 0.16); }
.night-sky-denied {
  color: rgba(180, 210, 255, 0.6);
  font-size: 0.88rem;
  text-align: center;
  padding: 8px 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .night-sky-reading-guide {
    grid-template-columns: 1fr;
  }
}

/* AGENT_TARGET: sticker-book-completion — final reward overlay: fireworks + congrats card */
.sticker-book-complete {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(20, 12, 48, 0.82),
    rgba(6, 4, 20, 0.94)
  );
  animation: sticker-book-fade-in 0.4s ease both;
}
@keyframes sticker-book-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sticker-book-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sticker-book-firework {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: hsl(calc(var(--spark-index) * 40), 95%, 65%);
  box-shadow: 0 0 16px 4px hsla(calc(var(--spark-index) * 40), 95%, 70%, 0.8);
  transform: translate(-50%, -50%);
  animation: sticker-book-spark 1.6s ease-out infinite;
  animation-delay: calc(var(--spark-index) * 0.12s);
}
@keyframes sticker-book-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + cos(calc(var(--spark-index) * 40deg)) * 220px),
        calc(-50% + sin(calc(var(--spark-index) * 40deg)) * 220px)
      )
      scale(1.1);
  }
}
.sticker-book-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: min(92vw, 460px);
  text-align: center;
  padding: 28px 26px 24px;
  border-radius: 26px;
  background: linear-gradient(160deg, #fffaf0, #ffe9c7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 4px rgba(255, 255, 255, 0.6);
  color: #3a2a12;
  animation: sticker-book-pop 0.5s cubic-bezier(0.22, 1.2, 0.4, 1) both;
}
@keyframes sticker-book-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sticker-book-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #d2691e;
}
.sticker-book-message {
  margin: 0 0 16px;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  line-height: 1.4;
}
.sticker-book-page {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.sticker-book-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  border-radius: 50%;
  background: var(--sticker-color, #ffd66b);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25), inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}
.sticker-book-close {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff8a5c, #ff5f9e);
  box-shadow: 0 10px 24px rgba(255, 95, 158, 0.45);
}
.sticker-book-close:active {
  transform: translateY(1px);
}

/* Design audit 2026-07-06: 26px-tall chips are below kid tap-target floor */
.btn-galaxy-zoom {
  min-height: 38px;
  border: 1px solid rgba(154, 215, 255, 0.3);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(18, 16, 38, 0.76);
  color: #ccecff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-galaxy-zoom:hover,
.btn-galaxy-zoom:focus-visible {
  border-color: rgba(154, 215, 255, 0.6);
  background: rgba(154, 215, 255, 0.14);
}
