:root {
  --bg-1: #050816;
  --bg-2: #0a0f24;
  --bg-3: #0d1430;
  --ink: #eef1ff;
  --muted: #98a0c8;
  --accent: #ffd86b;
  --line: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

/* Make the `hidden` attribute authoritative — otherwise display rules from
   classes like .cta override it and elements meant to be hidden still show. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse at top, var(--bg-3) 0%, var(--bg-2) 40%, var(--bg-1) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ==== AMBIENT BACKGROUND SKY ==== */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sky .a-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}
.nebula--1 {
  width: 600px; height: 600px;
  top: -100px; left: -200px;
  background: radial-gradient(circle, #5b3aa8 0%, transparent 70%);
}
.nebula--2 {
  width: 700px; height: 700px;
  bottom: -200px; right: -200px;
  background: radial-gradient(circle, #1e5a8a 0%, transparent 70%);
}

/* ==== HERO ==== */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 820px;
  margin: 0 auto;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 22px;
}

h1 .accent {
  background: linear-gradient(180deg, #ffd86b 0%, #ff9d6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 36px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats strong {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.cta {
  display: inline-block;
  background: linear-gradient(180deg, #ffd86b, #ff9d6b);
  color: #1a1208;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 15px 40px -10px rgba(255,157,107,0.5);
  font-family: inherit;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -10px rgba(255,157,107,0.7); }
.cta:active { transform: translateY(0); }
.cta--full { width: 100%; }
.cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
  margin-top: 14px;
  width: 100%;
}
.cta--secondary:hover { background: rgba(255,255,255,0.05); box-shadow: none; }

.hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.disclaimer {
  max-width: 480px;
  margin: 20px auto 0;
  color: rgba(152,160,200,0.7);
  font-size: 12px;
  line-height: 1.6;
}

/* ==== TOP BAR ==== */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 6px;
}
.topbar .brand { margin: 0; }
.cta--sm { padding: 10px 18px; font-size: 14px; }

/* ==== NAMED SKY ==== */
.named-sky-section {
  position: relative;
  z-index: 1;
  padding: 14px 24px 0;
  margin-bottom: 50px;
}
.sky-intro {
  max-width: 1100px;
  margin: 0 auto 16px;
  text-align: center;
}
.sky-intro h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.sky-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.sky-sub a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.sky-sub a:hover { text-decoration: underline; }

.named-sky {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: clamp(420px, 64vh, 640px);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(91,58,168,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(30,90,138,0.25) 0%, transparent 60%),
    #050816;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), inset 0 0 100px rgba(255,255,255,0.02);
  touch-action: pan-y; /* let the page scroll until zoomed in */
}
.named-sky.zoomed { touch-action: none; cursor: grab; }

/* Transformable layer that holds the stars; pan/zoom applies here */
.sky-layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.scene-layer, .stars-layer { position: absolute; inset: 0; }
.scene-layer { pointer-events: none; } /* planets never block star taps */

/* ==== SOLAR SYSTEM ==== */
.planet {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 45%),
    radial-gradient(circle at 50% 50%, var(--pcolor), rgba(0,0,0,0.65));
  box-shadow: 0 0 18px -2px var(--pcolor), inset -4px -4px 8px rgba(0,0,0,0.5);
  opacity: 0.92;
}
.planet-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 4px);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200,205,230,0.55);
  white-space: nowrap;
}
.planet--ring::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 185%; height: 48%;
  transform: translate(-50%, -50%) rotate(-18deg);
  border: 2px solid rgba(227,201,143,0.5);
  border-radius: 50%;
}
.planet--earth { box-shadow: 0 0 22px -2px #4aa3ff, inset -4px -4px 8px rgba(0,0,0,0.5); }

.starship {
  position: absolute;
  /* bottom-anchor: JS supplies corrected coordinates (star center, planet top) */
  transform: translate(-50%, -100%);
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255,190,110,0.75));
  transition: left 2.6s cubic-bezier(0.4, 0, 0.2, 1), top 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.starship svg { display: block; width: 6px; height: 18px; }
.ship-flame {
  transform-box: fill-box;
  transform-origin: center top;
  animation: flame 0.3s ease-in-out infinite alternate;
}
@keyframes flame {
  from { transform: scaleY(0.65); opacity: 0.7; }
  to   { transform: scaleY(1.15); opacity: 1; }
}
.starship.ship--home { animation: shipGlow 1.8s ease-in-out infinite; }
@keyframes shipGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,170,80,0.7)); }
  50% { filter: drop-shadow(0 0 16px rgba(255,140,50,1)); }
}

/* Mechazilla chopstick tower — appears wherever the ship lands */
.ship-tower {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.ship-tower.tower--visible { opacity: 0.95; }
.ship-tower svg { display: block; width: 18px; height: 27px; }

.ship-cta { text-align: center; margin-top: 12px; }

.ship-status {
  text-align: center;
  color: var(--accent);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 620px;
  margin: 10px auto 0;
}
.ship-status strong { color: var(--ink); }

.tip-ship-btn {
  margin-top: 6px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.tip-ship-btn:hover { background: rgba(255,255,255,0.14); }

/* Zoom controls (also usable on desktop) */
.sky-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 30;
}
.sky-controls button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8,11,28,0.72);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s;
}
.sky-controls button:hover { background: rgba(36,42,59,0.9); }
.sky-controls button:active { transform: scale(0.94); }

.named-star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: twinkle-slow 3s ease-in-out infinite;
}
.named-star::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  filter: blur(4px);
  opacity: 0.8;
  z-index: -1;
}
/* Enlarged transparent hit area so tiny stars are easy to tap on touch screens */
.named-star::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}
.named-star:hover {
  transform: scale(2.5);
  z-index: 10;
}

.named-star--gold { background: #ffd86b; box-shadow: 0 0 12px #ffd86b, 0 0 24px rgba(255,216,107,0.6); }
.named-star--blue { background: #9bd8ff; box-shadow: 0 0 12px #9bd8ff, 0 0 24px rgba(155,216,255,0.6); }
.named-star--pink { background: #ffb3d9; box-shadow: 0 0 12px #ffb3d9, 0 0 24px rgba(255,179,217,0.6); }
.named-star--violet { background: #c9a8ff; box-shadow: 0 0 12px #c9a8ff, 0 0 24px rgba(201,168,255,0.6); }
.named-star--white { background: #ffffff; box-shadow: 0 0 12px #ffffff, 0 0 24px rgba(255,255,255,0.6); }

.named-star--mine {
  width: 12px; height: 12px;
  animation: pulse-mine 2s ease-in-out infinite;
  z-index: 5;
}

/* Star opened via a shared deep link */
.named-star--focus {
  width: 14px; height: 14px;
  animation: pulse-mine 1.5s ease-in-out infinite;
  z-index: 6;
}

/* Permanent name label under user's own star */
.my-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: #ffd86b;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.9);
  pointer-events: none;
  animation: pulse-mine 2s ease-in-out infinite;
}

/* "YOUR STAR" callout that briefly appears after birth */
.my-callout {
  position: absolute;
  background: linear-gradient(180deg, #ffd86b, #ff9d6b);
  color: #1a1208;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(255,157,107,0.5), 0 0 0 1px rgba(255,255,255,0.2);
  animation: calloutPop 5s ease-out forwards;
  transform: translate(-50%, calc(-100% - 18px));
}
.my-callout::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, transparent 50%, #ff9d6b 50%);
}
@keyframes calloutPop {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 4px)) scale(0.8); }
  10% { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1.05); }
  20% { transform: translate(-50%, calc(-100% - 18px)) scale(1); }
  85% { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-100% - 30px)) scale(0.95); }
}
@keyframes pulse-mine {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

@keyframes twinkle-slow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Tooltip */
.star-tooltip {
  position: fixed;
  background: rgba(8,11,28,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
  pointer-events: none;
  z-index: 100;
  max-width: 240px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  transform: translate(-50%, calc(-100% - 12px));
}
.star-tooltip.interactive { pointer-events: auto; }
.star-tooltip strong { display: block; color: var(--accent); margin-bottom: 2px; }
.star-tooltip em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 4px; }
.tip-card-btn {
  margin-top: 8px;
  width: 100%;
  background: linear-gradient(180deg, #ffd86b, #ff9d6b);
  color: #1a1208;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ==== CLAIM SECTION ==== */
.claim {
  position: relative;
  z-index: 2;
  padding: 60px 24px 80px;
}
.claim-inner {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(13,20,48,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}

.claim-head { text-align: center; margin-bottom: 28px; }
.claim-head h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.claim-head p { color: var(--muted); margin: 0; font-size: 15px; }

.star-form { display: flex; flex-direction: column; gap: 18px; }

.star-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.star-form label em {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7385;
}
.star-form input {
  background: rgba(5,8,22,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.star-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(5,8,22,0.9);
}

.color-picker { display: flex; gap: 10px; }
.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: var(--accent); transform: scale(1.15); }

/* Pay section */
.pay-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.preview-area {
  text-align: center;
  padding: 30px 20px;
  background: radial-gradient(ellipse at center, rgba(91,58,168,0.2), transparent 70%), #050816;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.preview-star {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: pulse-mine 2s ease-in-out infinite;
}
.preview-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.preview-label em { display: block; color: var(--muted); font-weight: 400; font-style: normal; font-size: 13px; margin-top: 4px; }

.pay-text {
  text-align: center;
  color: var(--muted);
  margin: 0 0 16px;
}
.pay-text strong { color: var(--accent); font-size: 18px; }

.pay-slot { display: flex; justify-content: center; min-height: 56px; margin-bottom: 4px; }
.pay-slot form { display: inline-block; }
.secure { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.secure a { color: var(--accent); text-decoration: none; }
.secure a:hover { text-decoration: underline; }

/* ==== BIRTH OVERLAY ==== */
.birth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,22,0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
}
.birth-overlay.is-active {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.birth-stage {
  text-align: center;
  padding: 40px;
  position: relative;
}

.birth-flash {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  animation: flash 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes flash {
  0% { width: 4px; height: 4px; opacity: 0; box-shadow: 0 0 0 rgba(255,255,255,0.8); }
  30% { width: 8px; height: 8px; opacity: 1; box-shadow: 0 0 200px 80px rgba(255,255,255,0.6); }
  100% { width: 4px; height: 4px; opacity: 0; box-shadow: 0 0 400px 200px rgba(255,255,255,0); }
}

.birth-star {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 32px;
  animation: birthGrow 1.5s ease-out forwards;
  opacity: 0;
}
@keyframes birthGrow {
  0% { transform: scale(0); opacity: 0; }
  40% { transform: scale(3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.birth-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  background: linear-gradient(180deg, #ffd86b 0%, #ff9d6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.birth-msg {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}
#openCardBtn { opacity: 0; animation: fadeInUp 0.8s ease 1.3s forwards; }
.birth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.birth-actions .cta--secondary { width: auto; margin-top: 0; }
.birth-link {
  display: inline-block;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.6s forwards;
}
.birth-link:hover { color: var(--ink); }

/* Ghost button (e.g. "Your card" in the top bar) */
.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: none;
}
.cta--ghost:hover { background: rgba(255,255,255,0.06); box-shadow: none; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* ==== CARD MODAL ==== */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(5,8,22,0.95);
  backdrop-filter: blur(16px);
}
.card-modal.is-active { display: flex; animation: fadeIn 0.25s ease; }
.card-modal-inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #050816;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
  display: block;
}
.card-hint { color: var(--muted); font-size: 13px; margin: 0; }
.card-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8,11,28,0.85);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== ABOUT ==== */
.about {
  position: relative;
  z-index: 2;
  padding: 60px 24px 40px;
}
.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.about p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ==== FOOTER ==== */
.foot {
  position: relative;
  z-index: 2;
  padding: 28px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot-inner { max-width: 720px; margin: 0 auto; }
.foot a { color: var(--muted); text-decoration: none; margin: 0 6px; transition: color 0.15s; }
.foot a:hover { color: var(--accent); }
.foot-links { margin: 0 0 8px; }
.foot-meta { margin: 0; font-size: 12px; opacity: 0.75; }

/* ==== DOC PAGES (terms, privacy, refund, contact) ==== */
.doc {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.doc .doc-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.doc .doc-back:hover { text-decoration: underline; }
.doc h1 {
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.doc .doc-updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 18px;
  margin: 32px 0 10px;
  color: var(--ink);
}
.doc p, .doc li {
  color: #c5cbe0;
  font-size: 15px;
  line-height: 1.7;
}
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }
.doc strong { color: var(--ink); }
.doc .placeholder {
  background: rgba(255,216,107,0.12);
  color: #ffd86b;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, monospace;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 640px) {
  .topbar { padding: 12px 16px 2px; }
  .cta--sm { padding: 9px 14px; font-size: 13px; }
  .named-sky-section { padding: 6px 12px 0; }
  .sky-intro { margin-bottom: 10px; }
  .sky-intro h1 { font-size: 23px; margin-bottom: 4px; }
  .sky-sub { font-size: 13px; }
  /* Fit the whole sky in the remaining viewport so every star is visible without
     scrolling. dvh accounts for the mobile address bar; vh is the fallback. */
  .named-sky {
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
    min-height: 360px;
    border-radius: 18px;
  }
  .named-star { width: 9px; height: 9px; }          /* larger = easier to see + tap */
  .named-star--mine { width: 15px; height: 15px; }
  .my-label { font-size: 12px; top: 16px; }
  .claim-inner { padding: 28px 20px; }
  .birth-name { font-size: 26px; }
}
