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

body {
  font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  background: radial-gradient(circle at top, #2b0f1c, #12040a 65%, #070205);
  color: #ffe9f1;
  min-height: 100vh;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#fireworks-container {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.fireworks-active #fireworks-container {
  opacity: 1;
}

#app {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 48px 24px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view {
  width: min(1100px, 100%);
  min-height: 80vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.view--hidden {
  display: none;
}

.hero {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.title {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title--small {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #ffd1e1;
}

.subtitle--small {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
}

.button-row {
  position: relative;
  width: min(420px, 90%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 12px 0;
}

.btn {
  border: none;
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-yes {
  background: #ff5a8b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 90, 139, 0.35);
}

.btn-no {
  background: transparent;
  color: #ffd1e1;
  border: 2px solid #ffd1e1;
  position: absolute;
  right: 0;
  top: 0;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.marquee {
  width: min(700px, 90vw);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
}

.marquee--secondary {
  width: min(600px, 90vw);
}

.marquee span {
  display: inline-block;
  white-space: nowrap;
  padding-right: 40px;
}

.yes-header {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.memory-collage {
  position: relative;
  width: min(900px, 100%);
  height: clamp(320px, 50vw, 520px);
}

.photo {
  position: absolute;
  max-width: clamp(140px, 28vw, 260px);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.photo--1 {
  left: 5%;
  top: 8%;
  transform: rotate(-6deg);
  z-index: 2;
}

.photo--2 {
  left: 38%;
  top: 0%;
  transform: rotate(4deg);
  z-index: 5;
}

.photo--3 {
  right: 4%;
  top: 12%;
  transform: rotate(7deg);
  z-index: 3;
}

.photo--4 {
  left: 8%;
  bottom: 8%;
  transform: rotate(3deg);
  z-index: 6;
}

.photo--5 {
  left: 35%;
  bottom: 10%;
  transform: rotate(-3deg);
  z-index: 4;
}

.photo--6 {
  right: 8%;
  bottom: 4%;
  transform: rotate(6deg);
  z-index: 7;
}

.photo--7 {
  left: 22%;
  top: 38%;
  transform: rotate(-2deg);
  z-index: 1;
}

.photo--8 {
  right: 24%;
  top: 42%;
  transform: rotate(2deg);
  z-index: 8;
}

.photo--9 {
  right: 42%;
  bottom: 28%;
  transform: rotate(-8deg);
  z-index: 9;
}

.photo--10 {
  left: 50%;
  top: 22%;
  transform: rotate(9deg);
  z-index: 2;
}

.love-note {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #ffd1e1;
  max-width: 520px;
}

.trail-heart {
  position: fixed;
  width: 20px;
  height: 20px;
  background-image: radial-gradient(circle at 30% 30%, #fff2f7, #ff5a8b);
  border-radius: 50% 50% 40% 40%;
  transform: rotate(45deg);
  opacity: 0.9;
  z-index: 25;
  pointer-events: none;
}

.trail-heart::before,
.trail-heart::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: inherit;
  border-radius: 50%;
}

.trail-heart::before {
  top: -10px;
  left: 0;
}

.trail-heart::after {
  left: -10px;
  top: 0;
}

@media (max-width: 768px) {
  #app {
    padding: 32px 16px 64px;
  }

  .button-row {
    justify-content: center;
  }

  .btn-no {
    position: relative;
  }

  .memory-collage {
    height: clamp(360px, 80vw, 520px);
  }

  .photo {
    max-width: clamp(120px, 36vw, 220px);
  }
}
