* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #07030b;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.em,
.intro-fly,
.heart,
.title-fly {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  letter-spacing: 0;
}

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 62% at 50% 50%,
      #2a1237 0%,
      #1d0c27 38%,
      #0f0615 72%,
      #050207 100%);
}

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  top: 42%;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  filter: blur(.6px);
  background: linear-gradient(90deg,
      rgba(110, 130, 170, 0) 0%,
      rgba(110, 130, 170, .45) 18%,
      rgba(180, 110, 120, .45) 50%,
      rgba(255, 130, 70, .55) 82%,
      rgba(255, 130, 70, 0) 100%);
}

/* ---------- Canvas (butterflies, fireflies, petals) ---------- */
#fx {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  outline: none;
  transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}

.intro.hide {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
  pointer-events: none;
}

.intro-fly {
  position: relative;
  font-size: clamp(44px, 8vw, 58px);
  line-height: 1;
  animation: float 3.2s ease-in-out infinite;
}

.intro-fly::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 225, 255, .5) 0%, rgba(0, 225, 255, .15) 40%, rgba(0, 225, 255, 0) 68%);
  filter: blur(4px);
}

.intro-text {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 6.6vw, 48px);
  letter-spacing: .07em;
  color: #f6eef8;
  text-align: center;
  margin: 46px 0 52px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, .55),
    0 0 18px rgba(255, 140, 210, .35);
  animation: introIn 1.6s ease both;
}

.heart-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-wrap::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 117, .22) 0%, rgba(255, 45, 117, 0) 65%);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 117, .55);
  box-shadow: 0 0 12px rgba(255, 45, 117, .35), inset 0 0 12px rgba(255, 45, 117, .2);
  animation: ripple 2.6s ease-out infinite;
}

.ring.r2 {
  animation-delay: 1.3s;
}

.heart {
  position: relative;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 45, 117, .85));
  animation: beat 1.3s ease-in-out infinite;
}

.tap {
  margin-top: 46px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 2.2vw, 16px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(225, 220, 235, .55);
  text-align: center;
  animation: tapPulse 2.4s ease-in-out infinite;
}

/* ---------- Message card ---------- */
.card {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  overflow-y: auto;
  padding: 28px max(18px, 5vw);
  text-align: center;
}

.content {
  margin: auto;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-delay] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
}

[data-delay].show {
  opacity: 1;
  transform: none;
  filter: none;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 2.1vw, 15px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #3ef2ea;
  text-shadow: 0 0 10px rgba(0, 240, 255, .55);
  line-height: 1.7;
  text-wrap: balance;
}

.eyebrow .em {
  font-size: 1.15em;
  margin: 0 .9em;
  text-shadow: none;
  vertical-align: -.1em;
}

.lead {
  margin-top: .45em;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 4.4vw, 32px);
  letter-spacing: .07em;
  color: #ebe5ef;
  text-shadow: 0 0 12px rgba(255, 255, 255, .3);
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(62px, 14vw, 102px);
  line-height: 1.15;
}

.title .grad {
  padding: 0 .12em;
  background: linear-gradient(90deg, #8ffcff 0%, #b5ecff 28%, #c7a2ff 55%, #ff79cf 80%, #ff3d8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, .6)) drop-shadow(0 0 14px rgba(255, 45, 140, .35));
}

.title-fly {
  font-size: .48em;
  margin-left: -.05em;
  filter: drop-shadow(0 0 10px rgba(0, 230, 255, .9));
  animation: float 3s ease-in-out infinite;
}

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 20px;
  color: #ffd84a;
  font-size: 15px;
  text-shadow: 0 0 8px rgba(255, 210, 70, .9);
}

.divider i {
  display: block;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 207, 90, 0), #ffcf5a, rgba(255, 207, 90, 0));
}

.msg {
  font-weight: 500;
  font-size: clamp(15px, 2.65vw, 19px);
  line-height: 1.75;
  color: #f2edf5;
  max-width: 525px;
  margin-bottom: .55em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.gold {
  margin-top: .9em;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 3.2vw, 23px);
  line-height: 1.5;
  color: #f4c64e;
  text-shadow: 0 0 10px rgba(244, 198, 78, .55);
}

.gold .em {
  text-shadow: none;
}

.forever {
  margin-top: .45em;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(32px, 6.5vw, 47px);
  word-spacing: .1em;
  white-space: nowrap;
  color: #40f5ef;
  text-shadow:
    0 0 6px rgba(0, 240, 255, .85),
    0 0 20px rgba(0, 240, 255, .45);
}

.forever .babe {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: .62em;
  letter-spacing: .06em;
}

.forever .em {
  font-size: .55em;
  text-shadow: none;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.14); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes ripple {
  0% { transform: scale(.75); opacity: .95; }
  100% { transform: scale(1.65); opacity: 0; }
}

@keyframes tapPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@keyframes introIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 420px) {
  .eyebrow { letter-spacing: .14em; }
  .eyebrow .em { margin: 0 .5em; }
  .tap { letter-spacing: .16em; font-size: 11px; }
  .divider i { width: 70px; }
  .intro-text { margin: 36px 0 42px; }
}
