/* ================= Invite page — standalone ================= */

:root {
  --navy-900: #080B1F;
  --navy-800: #10163A;
  --navy-700: #1A2352;
  --navy-600: #253072;
  --gold: #E8B84B;
  --gold-soft: #F4D488;
  --gold-deep: #B9852A;
  --cream: #F5EFE0;
  --ink: #F5EFE0;
  --ink-soft: rgba(245, 239, 224, 0.68);
  --border-soft: rgba(232, 184, 75, 0.22);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.45);
  --radius-lg: 26px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(37, 48, 114, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 100%, rgba(232, 184, 75, 0.14), transparent 65%),
    linear-gradient(180deg, var(--navy-900) 0%, #0C1130 55%, var(--navy-900) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  margin: 0;
  font-weight: 600;
  color: var(--gold-soft);
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(16, 22, 58, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.music-toggle:hover { transform: scale(1.06); border-color: var(--gold); }
.music-toggle svg { width: 19px; height: 19px; }
.music-toggle .icon-muted { display: none; }
.music-toggle.is-muted .icon-playing { display: none; }
.music-toggle.is-muted .icon-muted { display: block; }

/* ---------- Starfield (static, twinkling) ---------- */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation-name: star-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity;
}

@keyframes star-twinkle {
  0%, 100% { opacity: var(--star-min, 0.15); }
  50% { opacity: var(--star-max, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.5; }
}

/* ---------- Layout: full screen, no scroll ---------- */
.invite-main {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vh, 24px) 16px;
}

.invite-card {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.8vh, 18px);
  overflow: hidden;
}

.shooting-star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  left: -10%;
  width: 70px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-soft), rgba(244, 212, 136, 0));
  z-index: 0;
  opacity: 0;
  animation: shoot 1s ease-in 1 forwards;
}

@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(18deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(230px, 74px) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
}

.dome-icon {
  position: relative;
  z-index: 1;
  width: clamp(56px, 11vh, 92px);
  height: clamp(56px, 11vh, 92px);
  margin: 0 auto clamp(4px, 1vh, 10px);
  color: var(--gold-soft);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
}

.night-title {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 3.6vh, 32px);
  line-height: 1.28;
  color: var(--cream);
  margin-top: 6px;
}

.night-subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(12px, 1.8vh, 14px);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: -4px;
}

/* ---------- Detail list ---------- */
.detail-list {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(6px, 1.2vh, 10px) 0;
  text-align: left;
}

.detail-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon svg { width: 16px; height: 16px; color: var(--gold-soft); }

.detail-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  min-width: 84px;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  text-align: right;
  margin-left: auto;
}

/* ---------- Countdown ---------- */
.countdown-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.countdown-cell {
  flex: 1;
  padding: clamp(4px, 0.8vh, 8px) 6px;
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.8vh, 26px);
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
  display: block;
}

/* ---------- Text + signature ---------- */
.invite-note {
  font-size: clamp(11.5px, 1.7vh, 14px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 420px;
  flex-shrink: 0;
}

.signature {
  font-family: 'Parisienne', 'Cormorant Garamond', cursive;
  font-size: clamp(18px, 2.8vh, 22px);
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-900);
  font-size: clamp(14px, 1.9vh, 16px);
  font-weight: 700;
  padding: clamp(12px, 2vh, 16px) 30px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  min-height: 46px;
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* ---------- Small-height fallback ---------- */
@media (max-height: 700px) {
  .invite-note { display: none; }
}

