:root {
  --bubblegum: #ff5fa2;
  --hot: #ff1e77;
  --cotton: #ffd9ec;
  --milk: #fff4fa;
  --cream: #fffaf5;
  --lilac: #c98bff;
  --mint: #7ff5d4;
  --lemon: #ffe27a;
  --ink: #4a0f30;
  --ink-soft: #8a3a63;
  --shadow: #ff1e77;
  --display: "Bagel Fat One", cursive;
  --body: "M PLUS Rounded 1c", sans-serif;
  --hand: "Gloria Hallelujah", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  color: var(--ink);
  background-color: var(--milk);
  background-image: radial-gradient(
      circle at 12% 8%,
      rgba(255, 226, 122, 0.55),
      transparent 42%
    ),
    radial-gradient(circle at 88% 12%, rgba(201, 139, 255, 0.5), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(127, 245, 212, 0.45), transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 95, 162, 0.08) 0 14px,
      transparent 14px 28px
    );
  background-attachment: fixed;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E%F0%9F%92%97%3C/text%3E%3C/svg%3E")
      4 4,
    auto;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow--a {
  width: 46vw;
  height: 46vw;
  left: -10vw;
  top: 20vh;
  background: rgba(255, 30, 119, 0.35);
}
.glow--b {
  width: 40vw;
  height: 40vw;
  right: -8vw;
  bottom: 5vh;
  background: rgba(201, 139, 255, 0.4);
  animation-delay: -7s;
}
@keyframes drift {
  to {
    transform: translate3d(6vw, -8vh, 0) scale(1.2);
  }
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.heart {
  position: absolute;
  bottom: -60px;
  font-size: 22px;
  animation: float-up linear forwards;
  opacity: 0;
}
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6);
  }
  12% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-115vh) rotate(360deg) scale(1.15);
  }
}

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-size: 14px;
  animation: sparkle-out 700ms ease-out forwards;
}
@keyframes sparkle-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(120deg);
  }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: var(--hot);
  color: var(--cream);
  border-block: 4px solid var(--ink);
  padding: 0.45rem 0;
  font-family: var(--display);
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(74, 15, 48, 0.5);
}
.marquee--top {
  position: sticky;
  top: 0;
  z-index: 60;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
.marquee__track--rev {
  animation-direction: reverse;
}
@keyframes scroll-left {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.reveal {
  opacity: 0;
  animation: pop-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94) rotate(-1.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.blink {
  color: #ff2f2f;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

h1 {
  font-family: var(--display);
  font-size: clamp(3.6rem, 15vw, 10.5rem);
  line-height: 0.85;
  margin: 0;
  color: var(--cream);
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--bubblegum),
    10px 10px 0 var(--lilac), 14px 14px 0 rgba(74, 15, 48, 0.25);
}
.title-line {
  display: inline-block;
  animation: sway 4.5s ease-in-out infinite;
}
.title-line--alt {
  animation-delay: -2.2s;
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-10px);
  }
}
.dot {
  display: inline-block;
  color: var(--lemon);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.3);
  }
}

.tagline {
  font-family: var(--hand);
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  color: var(--ink);
  margin: 1.8rem auto 0;
  max-width: 30ch;
  line-height: 1.6;
}
.tagline em {
  background: linear-gradient(transparent 62%, var(--lemon) 62%);
  font-style: italic;
  padding: 0 0.15em;
}
.wobble {
  display: inline-block;
  color: var(--hot);
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

/* ---------- mailbox ---------- */
.mailbox {
  position: relative;
  display: inline-block;
  margin: 3rem auto 0;
}
.mailbox__btn {
  font-family: inherit;
  cursor: inherit;
  display: block;
  padding: 1.4rem clamp(1.5rem, 6vw, 3.4rem);
  background: var(--cream);
  border: 5px solid var(--ink);
  border-radius: 32px;
  box-shadow: 10px 10px 0 var(--hot);
  transition: transform 0.18s cubic-bezier(0.2, 1.5, 0.4, 1),
    box-shadow 0.18s ease;
}
.mailbox__btn:hover {
  transform: translate(-4px, -4px) rotate(-1.5deg);
  box-shadow: 16px 16px 0 var(--lilac);
}
.mailbox__btn:active {
  transform: translate(6px, 6px);
  box-shadow: 2px 2px 0 var(--hot);
}
.mailbox__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mailbox__mail {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 3rem);
  color: var(--hot);
  margin: 0.35rem 0 0.2rem;
  word-break: break-all;
}
.mailbox__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.sticker {
  position: absolute;
  font-family: var(--display);
  color: var(--cream);
  border: 4px solid var(--ink);
  padding: 0.5rem 0.7rem;
  border-radius: 50%;
  line-height: 1.05;
  font-size: 0.8rem;
  text-align: center;
  pointer-events: none;
}
.sticker--new {
  top: -28px;
  left: -34px;
  background: var(--mint);
  color: var(--ink);
  transform: rotate(-18deg);
  animation: pulse 1.4s ease-in-out infinite;
}
.sticker--real {
  bottom: -26px;
  right: -38px;
  background: var(--lilac);
  transform: rotate(14deg);
  animation: pulse 1.4s ease-in-out infinite -0.7s;
}
@keyframes pulse {
  50% {
    transform: rotate(var(--r, 0deg)) scale(1.14);
  }
}
.sticker--new {
  --r: -18deg;
}
.sticker--real {
  --r: 14deg;
}

.disclaimer {
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 3.2rem auto 0;
  max-width: 34ch;
  line-height: 1.8;
}

/* ---------- counter ---------- */
.counter-band {
  margin: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}
.counter-card {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2.4rem;
  background: var(--ink);
  color: var(--cotton);
  border-radius: 28px;
  box-shadow: 0 0 0 5px var(--cotton), 12px 14px 0 rgba(74, 15, 48, 0.3);
  transform: rotate(-1.5deg);
}
.counter-num {
  font-family: var(--display);
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--lemon);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 226, 122, 0.7);
}
.counter-label {
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
}
.counter-note {
  font-family: var(--hand);
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 1.2rem;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.6rem);
}
.card {
  position: relative;
  background: var(--cream);
  border: 5px solid var(--ink);
  border-radius: 26px;
  padding: 1.8rem 1.6rem;
  box-shadow: 9px 9px 0 var(--bubblegum);
  transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1),
    box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 74px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 226, 122, 0.75);
  border: 2px solid rgba(74, 15, 48, 0.25);
}
.card--1 {
  transform: rotate(-1.4deg);
}
.card--2 {
  transform: rotate(1.2deg);
  box-shadow: 9px 9px 0 var(--lilac);
}
.card--3 {
  transform: rotate(0.8deg);
  box-shadow: 9px 9px 0 var(--mint);
}
.card--4 {
  transform: rotate(-1deg);
  box-shadow: 9px 9px 0 var(--lemon);
}
.card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 14px 18px 0 var(--hot);
  z-index: 20;
}
.card h2 {
  font-family: var(--display);
  color: var(--hot);
  font-size: 1.3rem;
  margin: 0.4rem 0 0.9rem;
}
.card p {
  margin: 0;
  line-height: 1.75;
  font-weight: 500;
  font-size: 1rem;
}

/* ---------- testimonials ---------- */
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  text-align: center;
  margin: clamp(3.5rem, 9vw, 6rem) 0 2.4rem;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink), 5px 5px 0 var(--bubblegum);
}
.section-title small {
  display: block;
  font-family: var(--hand);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-shadow: none;
  margin-top: 0.7rem;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.quote {
  margin: 0;
  background: var(--cotton);
  border: 4px dashed var(--hot);
  border-radius: 22px;
  padding: 1.4rem;
  text-align: center;
}
.quote:nth-child(2) {
  transform: rotate(-2deg);
}
.quote:nth-child(3) {
  transform: rotate(1.6deg);
}
.quote p {
  font-family: var(--hand);
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}
.quote cite {
  font-size: 0.78rem;
  font-style: normal;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ---------- plea ---------- */
.plea {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  background: linear-gradient(160deg, var(--bubblegum), var(--lilac));
  border: 5px solid var(--ink);
  border-radius: 34px;
  padding: clamp(2rem, 6vw, 3.4rem);
  box-shadow: 14px 14px 0 var(--ink);
  text-align: center;
  color: var(--cream);
}
.plea__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 3rem);
  margin: 0 0 1.6rem;
  text-shadow: 3px 3px 0 var(--ink);
}
.plea__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.4rem;
  max-width: 44ch;
  text-align: left;
}
.plea__list li {
  background: rgba(255, 250, 245, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(74, 15, 48, 0.35);
}

.big-btn {
  font-family: var(--display);
  cursor: inherit;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  padding: 1rem 2.4rem;
  color: var(--ink);
  background: var(--lemon);
  border: 5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 9px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.3s ease;
}
.big-btn:hover {
  background: var(--mint);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 12px 0 var(--ink);
}
.big-btn:active {
  transform: translateY(7px);
  box-shadow: 0 2px 0 var(--ink);
}
.big-btn__sub {
  font-family: var(--hand);
  font-size: 0.9rem;
  margin: 1rem 0 0;
  min-height: 1.4em;
}

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer__tiny {
  font-family: var(--hand);
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translate(-50%, 120%);
  z-index: 9999;
  background: var(--ink);
  color: var(--cotton);
  font-family: var(--display);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--lemon);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.3s ease;
  max-width: 88vw;
  text-align: center;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.shake {
  animation: shake 0.45s ease;
}
@keyframes shake {
  25% {
    transform: translateX(-9px) rotate(-2deg);
  }
  50% {
    transform: translateX(9px) rotate(2deg);
  }
  75% {
    transform: translateX(-5px);
  }
}

@media (max-width: 520px) {
  .counter-card {
    flex-direction: column;
    gap: 0.6rem;
  }
  .counter-label {
    text-align: center;
  }
  .sticker--new {
    left: -14px;
  }
  .sticker--real {
    right: -14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
  }
}
