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

.fuel-travel-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: 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;
}

.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-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-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(255, 255, 255, 0.05);
  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(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.fuel-planet-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.fuel-planet-btn.fuel-origin {
  border-color: #ffd43b;
  background: rgba(255, 212, 59, 0.12);
}
.fuel-planet-btn.fuel-dest {
  border-color: #4cff9e;
  animation: ft-pulse 0.5s ease infinite alternate;
}

@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-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;
}

.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-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;
}

/* 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;
  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: none;
}

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

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

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

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

.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;
  margin-bottom: 15vh;
}

@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-blurb {
  color: #c8d6ff;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.const-spotlight-dismiss {
  margin-top: 4px;
  padding: 7px 22px;
  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);
}

/* 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;
  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-hint {
  font-size: 0.75rem;
  color: rgba(180, 210, 255, 0.45);
  text-align: center;
  margin: 0;
}
@media (max-width: 520px) {
  .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: 230px;
  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-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%;
  padding: 4px 12px 8px;
  background: none;
  border: none;
  color: rgba(200, 220, 255, 0.25);
  font-size: 0.72rem;
  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;
  }
}
