* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.celebration {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  animation: celebration-appear 1.2s ease both;
}

.fountain-container, .fountain-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fountain-container {
  background: linear-gradient(
    to bottom,
    #000 0%,
    #000 85.85%,
    rgba(130, 155, 160, .14) 86%,
    #030a10 86.15%,
    #02070c 100%
  );
}

.fountain-container canvas { display: block; }

.celebration-content {
  position: absolute;
  top: 9%;
  right: 20px;
  left: 20px;
  z-index: 1;
  opacity: 0;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .95);
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.celebration-content.is-revealed { opacity: 1; visibility: visible; }

.celebration-content h1 {
  margin: 0;
  color: #fff8e7;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 300;
  letter-spacing: .08em;
}

.celebration-content h1 span {
  display: block;
  margin-top: -4px;
  color: #f3d68e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 13vw, 128px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
}

.celebration-message {
  margin: 14px 0 0;
  color: #fff4df;
  font-size: clamp(20px, 3.2vw, 32px);
  letter-spacing: .2em;
}

.celebration-wish {
  width: min(640px, 88vw);
  margin: 12px auto 0;
  color: rgba(255, 249, 234, .84);
  font-size: clamp(13px, 2vw, 17px);
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@keyframes celebration-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
