:root {
  --bg: #030204;
  --text: #fff8ee;
  --muted: rgba(255, 248, 238, 0.72);
  --gold: #d8c08a;
  --pink: #e9b8c8;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(circle at center, #1a0c14 0%, #060307 42%, #000 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

#stars { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.app { position: relative; z-index: 2; width: 100vw; height: 100vh; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.screen::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(233,184,200,.14), transparent 65%);
  filter: blur(10px);
  z-index: -1;
}
.small-text {
  margin: 0;
  letter-spacing: 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}
h1, h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-shadow: 0 0 22px rgba(255, 248, 238, .28);
}
h1 { font-size: clamp(46px, 12vw, 92px); line-height: .92; max-width: 980px; }
h2 { font-size: clamp(42px, 11vw, 86px); line-height: .98; max-width: 1050px; }
.subtitle, .ending, .signature {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 3.8vw, 22px);
  max-width: 720px;
  line-height: 1.7;
}
.ending { color: var(--text); font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 7vw, 48px); }
.signature { color: var(--gold); }
.logo-wrap {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(216, 192, 138, .5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 34px rgba(216, 192, 138, .2), inset 0 0 24px rgba(255,255,255,.06);
  animation: floaty 3.5s ease-in-out infinite;
}
.logo { font-size: 52px; color: var(--gold); font-family: serif; }
button {
  border: 0;
  border-radius: 999px;
  padding: 15px 25px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  font-weight: 600;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 18px 55px rgba(0,0,0,.32);
}
.primary-btn { margin-top: 12px; }
.secondary-btn { margin-top: 10px; }
button:active { transform: scale(.98); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 180px));
  gap: 13px;
  width: min(680px, 92vw);
  margin-top: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
  transform: rotate(var(--r, 0deg));
}
.gallery img:nth-child(1) { --r: -3deg; }
.gallery img:nth-child(2) { --r: 2deg; margin-top: 24px; }
.gallery img:nth-child(3) { --r: -1deg; }
.progress {
  position: fixed;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 20px;
  background: rgba(255,255,255,.25);
  transition: .4s ease;
}
.dot.active { width: 26px; background: var(--gold); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .screen { padding: 20px; }
  .small-text { letter-spacing: 6px; }
}
