/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --violet: #a855f7;
  --violet-soft: #c084fc;
  --pink: #ec4899;
  --gold: #fbbf24;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0a0612;
  color: #fff;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Keep whole words on one line; wrap only between words */
.app,
.glass-card,
.gate-title,
.gate-sub,
.birthday-dost,
.birthday-line,
.letter-body,
.letter-body p,
.letter-body li,
.letter-body strong,
.letter-body em,
.letter-quote,
.letter-closing,
.btn-enter {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.word-keep,
.dost-word {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: bottom;
}

/* ── Background slideshow ── */
.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.9s var(--ease-out),
    visibility 0.9s var(--ease-out);
}

/* Step 1: private gate — no photos */
body.step-gate .bg-slideshow {
  opacity: 0;
  visibility: hidden;
}

/* ── Step 1 birthday animated background ── */
.gate-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s var(--ease-out),
    visibility 0.9s var(--ease-out);
}

body.step-gate .gate-bg {
  opacity: 1;
  visibility: visible;
}

body.step-celebration .gate-bg,
body.step-letter .gate-bg {
  opacity: 0;
  visibility: hidden;
}

.gate-bg-gradient {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    125deg,
    #1a0a2e 0%,
    #3b1a5c 25%,
    #5c2468 50%,
    #2d1548 75%,
    #12081f 100%
  );
  background-size: 200% 200%;
  animation: gateGradientShift 14s ease-in-out infinite alternate;
}

@keyframes gateGradientShift {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1);
  }
  100% {
    background-position: 100% 50%;
    filter: hue-rotate(18deg) brightness(1.08);
  }
}

.gate-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: gateGlowPulse 6s ease-in-out infinite;
}

.gate-bg-glow--a {
  width: 55vw;
  height: 55vw;
  max-width: 420px;
  max-height: 420px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, transparent 70%);
}

.gate-bg-glow--b {
  width: 50vw;
  height: 50vw;
  max-width: 380px;
  max-height: 380px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, transparent 70%);
  animation-delay: -3s;
}

@keyframes gateGlowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.55;
  }
}

.gate-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: gateConfettiDrift 7s linear infinite;
}

.gate-confetti span:nth-child(1) { left: 5%; background: #a855f7; animation-delay: 0s; width: 6px; height: 10px; }
.gate-confetti span:nth-child(2) { left: 12%; background: #ec4899; animation-delay: 0.8s; }
.gate-confetti span:nth-child(3) { left: 20%; background: #fbbf24; animation-delay: 1.6s; width: 10px; height: 6px; }
.gate-confetti span:nth-child(4) { left: 28%; background: #c084fc; animation-delay: 2.2s; }
.gate-confetti span:nth-child(5) { left: 35%; background: #fff; animation-delay: 0.4s; width: 5px; height: 5px; }
.gate-confetti span:nth-child(6) { left: 42%; background: #f472b6; animation-delay: 3s; }
.gate-confetti span:nth-child(7) { left: 50%; background: #fde68a; animation-delay: 1.2s; }
.gate-confetti span:nth-child(8) { left: 58%; background: #a855f7; animation-delay: 4s; }
.gate-confetti span:nth-child(9) { left: 65%; background: #ec4899; animation-delay: 2.8s; width: 7px; height: 9px; }
.gate-confetti span:nth-child(10) { left: 72%; background: #fbbf24; animation-delay: 0.6s; }
.gate-confetti span:nth-child(11) { left: 78%; background: #c084fc; animation-delay: 3.5s; }
.gate-confetti span:nth-child(12) { left: 85%; background: #fff; animation-delay: 1.8s; width: 5px; height: 7px; }
.gate-confetti span:nth-child(13) { left: 92%; background: #f472b6; animation-delay: 2.4s; }
.gate-confetti span:nth-child(14) { left: 8%; background: #fde68a; animation-delay: 5s; animation-duration: 8s; }
.gate-confetti span:nth-child(15) { left: 25%; background: #a855f7; animation-delay: 4.2s; animation-duration: 9s; }
.gate-confetti span:nth-child(16) { left: 48%; background: #ec4899; animation-delay: 1s; animation-duration: 6.5s; }
.gate-confetti span:nth-child(17) { left: 62%; background: #fbbf24; animation-delay: 3.8s; animation-duration: 7.5s; }
.gate-confetti span:nth-child(18) { left: 88%; background: #c084fc; animation-delay: 2s; animation-duration: 8.5s; }
.gate-confetti span:nth-child(19) { left: 38%; background: #fff; animation-delay: 5.5s; width: 6px; height: 6px; }
.gate-confetti span:nth-child(20) { left: 55%; background: #f472b6; animation-delay: 0.2s; animation-duration: 7s; }

@keyframes gateConfettiDrift {
  0% {
    opacity: 0;
    transform: translateY(-8vh) rotate(0deg);
  }
  8% {
    opacity: 0.85;
  }
  92% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(108vh) rotate(540deg);
  }
}

.gate-sparkles span {
  position: absolute;
  font-size: clamp(1.25rem, 3vw, 2rem);
  opacity: 0;
  animation: gateSparkleFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
}

.gate-sparkles span:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; }
.gate-sparkles span:nth-child(2) { left: 82%; top: 22%; animation-delay: 1.2s; }
.gate-sparkles span:nth-child(3) { left: 15%; top: 72%; animation-delay: 2.4s; }
.gate-sparkles span:nth-child(4) { left: 75%; top: 68%; animation-delay: 0.6s; }
.gate-sparkles span:nth-child(5) { left: 45%; top: 12%; animation-delay: 3s; }
.gate-sparkles span:nth-child(6) { left: 90%; top: 48%; animation-delay: 1.8s; }
.gate-sparkles span:nth-child(7) { left: 6%; top: 42%; animation-delay: 4s; }
.gate-sparkles span:nth-child(8) { left: 55%; top: 78%; animation-delay: 2s; }
.gate-sparkles span:nth-child(9) { left: 32%; top: 28%; animation-delay: 3.6s; }
.gate-sparkles span:nth-child(10) { left: 68%; top: 38%; animation-delay: 0.9s; }

@keyframes gateSparkleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.6) rotate(-8deg);
  }
  15%,
  85% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
    transform: translateY(-18px) scale(1.05) rotate(8deg);
  }
}

.bg-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
  pointer-events: none;
}

.bg-slide.active {
  opacity: 1;
  z-index: 2;
}

.bg-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.bg-slide.active .bg-slide-img {
  transform: scale(1.12);
}

.bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #1a0a2e 0%,
    #2d1b4e 35%,
    #4a1942 70%,
    #0f172a 100%
  );
  animation: fallbackShift 18s ease-in-out infinite alternate;
}

@keyframes fallbackShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(25deg);
  }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(5, 2, 12, 0.5) 0%,
    rgba(10, 5, 20, 0.55) 50%,
    rgba(5, 2, 12, 0.62) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet-soft);
  opacity: 0;
  animation: floatUp linear infinite;
  box-shadow: 0 0 8px var(--violet-soft);
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ── Screens ── */
.app {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
}

.screen {
  display: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: screenIn 0.9s var(--ease-out) both;
}

.screen.active {
  display: flex;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Glass card ── */
.glass-card {
  width: 100%;
  max-width: 820px;
  padding: 2.5rem 2rem;
  border-radius: 2.5rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

@media (min-width: 768px) {
  .glass-card {
    padding: 3.5rem 3.25rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.gate-title {
  font-size: clamp(1.65rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.gate-sub {
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Buttons ── */
.btn-enter {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  font-family: inherit;
}

.btn-enter:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

.btn-enter:active {
  transform: scale(0.98);
}

/* ── Celebration screen ── */
.celebration-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.birthday-dost {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  min-height: 1.3em;
  filter: drop-shadow(0 0 28px rgba(236, 72, 153, 0.45));
}

.dost-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(-4deg) scale(0.85);
  background: linear-gradient(
    120deg,
    #fef08a 0%,
    #fbbf24 35%,
    #f472b6 65%,
    #fde68a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    dostWordIn 0.85s var(--ease-out) forwards,
    dostShimmer 2.5s linear 0.85s infinite,
    dostPulse 2s ease-in-out 1.2s infinite;
}

.dost-word--dost {
  font-size: 1.15em;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.7));
}

@keyframes dostWordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes dostShimmer {
  to {
    background-position: 220% center;
  }
}

@keyframes dostPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.birthday-line {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0.75rem;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.birthday-line.visible {
  opacity: 1;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.birthday-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: charPop 0.5s var(--ease-out) forwards;
}

.birthday-line .birthday-char {
  background: linear-gradient(
    120deg,
    #fff 0%,
    var(--violet-soft) 40%,
    var(--pink) 70%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    charPop 0.5s var(--ease-out) forwards,
    shimmer 4s linear infinite;
}

@keyframes charPop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.celebration-sparkles {
  font-size: 2rem;
  margin-top: 1.25rem;
  opacity: 0;
}

.celebration-sparkles.visible {
  animation: fadeSparkle 1s var(--ease-out) forwards;
}

@keyframes fadeSparkle {
  to {
    opacity: 1;
  }
}

.btn-read {
  margin-top: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}

.btn-read.visible {
  opacity: 1;
  pointer-events: auto;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.45);
  }
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* ── Letter screen ── */
.screen-letter {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.letter-card {
  text-align: left;
}

.letter-body {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.letter-body p {
  margin-bottom: 1.35rem;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-body strong {
  color: #fff;
  font-weight: 600;
}

.letter-body em {
  font-style: italic;
  color: var(--violet-soft);
}

.letter-divider {
  text-align: center;
  font-size: 1.25rem;
  margin: 1.75rem 0;
  opacity: 0.7;
  letter-spacing: 0.5em;
}

.letter-list {
  list-style: none;
  margin: 0.5rem 0 1.35rem 0;
  padding: 0;
}

.letter-list li {
  margin-bottom: 0.35rem;
}

.letter-quote {
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin: 1.5rem 0 !important;
}

.letter-closing {
  text-align: center;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.letter-stay {
  margin-top: 1rem;
}

.letter-stay li {
  margin-bottom: 0.5rem;
}

.letter-body p,
.letter-body ul,
.letter-divider {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.letter-body p.visible,
.letter-body ul.visible,
.letter-divider.visible {
  opacity: 1;
  transform: translateY(0);
}

body.step-gate,
body.step-celebration {
  overflow: hidden;
}

/* ── Background music toggle ── */
.bg-music {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12) 0%,
    var(--card-bg) 100%
  );
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s,
    box-shadow 0.25s,
    opacity 0.4s;
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle:not([hidden]) {
  display: inline-flex;
  animation: musicToggleIn 0.6s var(--ease-out) both;
}

@keyframes musicToggleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.music-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.35);
}

.music-toggle.is-on {
  background: linear-gradient(
    155deg,
    rgba(168, 85, 247, 0.35) 0%,
    rgba(236, 72, 153, 0.28) 100%
  );
  border-color: rgba(192, 132, 252, 0.45);
}

.music-toggle.is-on .music-toggle-icon {
  animation: musicPulse 1.5s ease-in-out infinite;
}

.music-toggle.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.music-toggle-icon {
  font-size: 1.45rem;
  line-height: 1;
}

/* ── Page loader ── */
body.is-loading .app,
body.is-loading #particles,
body.is-loading #confetti-canvas,
body.is-loading .gate-bg {
  visibility: hidden;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1548 50%, #12081f 100%);
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-confetti span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  animation: loaderConfettiFall 3.2s linear infinite;
}

.loader-confetti span:nth-child(1) { left: 8%; background: #a855f7; animation-delay: 0s; }
.loader-confetti span:nth-child(2) { left: 18%; background: #ec4899; animation-delay: 0.4s; }
.loader-confetti span:nth-child(3) { left: 28%; background: #fbbf24; animation-delay: 0.8s; }
.loader-confetti span:nth-child(4) { left: 38%; background: #c084fc; animation-delay: 1.2s; }
.loader-confetti span:nth-child(5) { left: 48%; background: #f472b6; animation-delay: 0.2s; }
.loader-confetti span:nth-child(6) { left: 58%; background: #fde68a; animation-delay: 0.6s; }
.loader-confetti span:nth-child(7) { left: 68%; background: #a855f7; animation-delay: 1s; }
.loader-confetti span:nth-child(8) { left: 78%; background: #ec4899; animation-delay: 1.4s; }
.loader-confetti span:nth-child(9) { left: 88%; background: #fbbf24; animation-delay: 0.3s; }
.loader-confetti span:nth-child(10) { left: 12%; background: #fff; animation-delay: 0.9s; width: 6px; height: 6px; }
.loader-confetti span:nth-child(11) { left: 52%; background: #c084fc; animation-delay: 1.6s; }
.loader-confetti span:nth-child(12) { left: 72%; background: #f472b6; animation-delay: 0.5s; }
.loader-confetti span:nth-child(13) { left: 32%; background: #fde68a; animation-delay: 1.8s; }
.loader-confetti span:nth-child(14) { left: 92%; background: #ec4899; animation-delay: 1.1s; }
.loader-confetti span:nth-child(15) { left: 42%; background: #a855f7; animation-delay: 2s; }

@keyframes loaderConfettiFall {
  0% {
    opacity: 0;
    transform: translateY(-12vh) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(720deg);
  }
}

.loader-cake-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  z-index: 1;
}

.loader-cake {
  font-size: 4.5rem;
  line-height: 1;
  animation: loaderCakeBounce 1.1s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(236, 72, 153, 0.45));
}

.loader-candle {
  font-size: 1.5rem;
  animation: loaderCandleFlicker 0.8s ease-in-out infinite alternate;
}

.loader-candle--l {
  animation-delay: 0.1s;
}

.loader-candle--r {
  animation-delay: 0.35s;
}

@keyframes loaderCakeBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.05);
  }
}

@keyframes loaderCandleFlicker {
  from {
    opacity: 0.75;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.loader-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: #fff;
  z-index: 1;
  margin-top: 0.5rem;
}

.loader-progress {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  z-index: 1;
}

.loader-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.25rem;
  z-index: 1;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-soft);
  animation: loaderDotPulse 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--pink);
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--gold);
}

@keyframes loaderDotPulse {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
