/* One Light Tonight — mobile-first, canvas sky behind a quiet stage. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #eef1fa;
  --soft: #9aa6c4;
  --faint: rgba(154, 166, 196, 0.72);
  --glow: #ffdd9e;
  --accent: #8ab4ff;
  --glass: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.09);
}

html, body { height: 100%; }

body.sky-page {
  font-family: "Inter", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #05070f;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- the sky (canvas) ---- */
.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ---- stage ---- */
.stage {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4ead4;
  text-shadow: 0 0 24px rgba(255, 214, 150, 0.25);
}

.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--soft);
  max-width: 36ch;
}

/* ---- counter ---- */
.counter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 2.4rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  min-width: 230px;
}
.counter .num {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 214, 150, 0.35);
}
.counter .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--soft);
}

/* ---- the button ---- */
.big-btn {
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #191206;
  background: radial-gradient(120% 160% at 50% 0%, #ffe9bb 0%, #ffc87b 60%, #f4a95c 100%);
  box-shadow:
    0 8px 34px rgba(255, 197, 116, 0.35),
    0 2px 8px rgba(255, 197, 116, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease;
}
.big-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 44px rgba(255, 197, 116, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.big-btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.big-btn:disabled { cursor: default; }
.big-btn.done {
  background: rgba(255, 224, 170, 0.08);
  color: var(--glow);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 142, 0.35);
  letter-spacing: 0.04em;
}

.after {
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.7;
  animation: fadeUp 0.9s ease;
}
.after a { color: var(--accent); text-decoration: none; }
.after a:hover { text-decoration: underline; }

/* ---- wish chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 32rem;
}
.chip {
  font: inherit;
  font-size: 0.94rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(4px);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.chip:hover:not(:disabled) {
  background: rgba(255, 224, 170, 0.10);
  border-color: rgba(255, 217, 142, 0.45);
  color: #ffe9bd;
  transform: translateY(-1px);
}
.chip:disabled { opacity: 0.35; cursor: default; }

.wish-log { min-height: 3.4rem; display: grid; place-items: center; }
.log-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--glow);
  animation: fadeUp 0.9s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

#quota { color: var(--faint); font-size: 0.85rem; }

/* ---- prose pages (about / privacy) ---- */
.prose {
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.85;
  color: #c6d0e4;
  max-width: 52ch;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* ---- nav + footer ---- */
.sub-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--faint);
  font-size: 0.9rem;
  margin-top: 0.7rem;
}
.sub-nav a { color: var(--accent); text-decoration: none; }
.sub-nav a:hover { text-decoration: underline; }

.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.4rem 1rem 2.2rem;
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.7;
}
.foot a { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .after, .log-line { animation: none; }
  .big-btn, .chip { transition: none; }
}
