/* ---------- Base & Reset ---------- */
:root {
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --white: #f5f3ff;
  --white-dim: rgba(245, 243, 255, 0.72);
  --bg-deep: #0a0714;
  --bg-panel: rgba(255, 255, 255, 0.045);
  --border-soft: rgba(167, 139, 250, 0.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Quicksand', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(ellipse at top, #17102b 0%, #0a0714 55%, #050310 100%);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* ---------- Starfield ---------- */
.stars,
.stars--small {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.9;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 120px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #e9defc, transparent),
    radial-gradient(2px 2px at 300px 40px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 180px, #fff, transparent),
    radial-gradient(2px 2px at 260px 220px, #e9defc, transparent);
  background-size: 340px 260px;
  animation: drift 90s linear infinite;
}

.stars--small {
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 160px 20px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 240px 120px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 320px 200px, rgba(255,255,255,0.6), transparent);
  background-size: 220px 200px;
  animation: drift 140s linear infinite reverse;
  opacity: 0.6;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: -1000px 600px; }
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 620px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet-bright);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow__moon {
  font-size: 2.6rem;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.55));
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--white-dim);
  margin: 0 auto;
  max-width: 60ch;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .intro {
    max-width: 700px;
  }
  .intro-text {
    max-width: 66ch;
  }
}

/* ---------- Ad Slots ---------- */
.ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(167, 139, 250, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 243, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.ad-slot--leaderboard {
  max-width: 728px;
  height: 90px;
}

.ad-slot--mobile {
  max-width: 320px;
  height: 50px;
}

/* ---------- Moon Card ---------- */
.moon-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}

.moon-card__icon {
  font-size: 4.2rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.55));
}

.moon-card__phase {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--white);
}

.moon-card__detail {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--white-dim);
  margin: 0 0 14px;
}

.moon-card__illumination {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 16px;
}

.moon-card__date {
  font-size: 0.82rem;
  color: rgba(245, 243, 255, 0.45);
  margin: 0;
  letter-spacing: 0.03em;
}

/* ---------- Meaning ---------- */
.meaning {
  max-width: 520px;
  text-align: center;
}

.meaning p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--white-dim);
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  margin-top: 8px;
}

.footer p {
  font-size: 0.78rem;
  color: rgba(245, 243, 255, 0.35);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .moon-card {
    padding: 32px 22px;
  }
  .moon-card__phase {
    font-size: 1.6rem;
  }
  .moon-card__icon {
    font-size: 3.6rem;
  }
}
