* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
  color: #1b1b1b;
  background: linear-gradient(135deg, #ff9ff3, #feca57, #48dbfb, #1dd1a1);
  background-size: 400% 400%;
  animation: bg 12s ease infinite;
  min-height: 100vh;
}

@keyframes bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.marquee {
  background: #111;
  color: #fff200;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-weight: bold;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 18s linear infinite;
}
@keyframes scroll { to { transform: translateX(-100%); } }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  text-align: center;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin: 8px 0;
  color: #fff;
  text-shadow: 3px 3px 0 #e84393, 6px 6px 0 #6c5ce7;
  animation: wobble 2s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.05); }
}

h2 { font-size: 2.2rem; margin: 40px 0 0; text-shadow: 2px 2px 0 #fff; }
.sub { font-size: 1.2rem; margin: 4px 0 20px; }

.photo-wrap {
  position: relative;
  display: inline-block;
  transform: rotate(-3deg);
  border: 10px solid #fff;
  border-radius: 12px;
  box-shadow: 8px 8px 0 #111;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}
.photo-wrap img {
  display: block;
  width: min(340px, 80vw);
  height: auto;
  border-radius: 4px;
}

.sticker {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
}
.s1 { top: -18px; left: -30px; background: #55efc4; transform: rotate(-12deg); }
.s2 { top: 30%; right: -40px; background: #ff7675; color: #fff; transform: rotate(10deg); }
.s3 { bottom: -16px; left: 10px; background: #ffeaa7; transform: rotate(-5deg); }

#lick {
  display: block;
  margin: 36px auto 0;
  padding: 18px 32px;
  font: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background: #e84393;
  border: 4px solid #111;
  border-radius: 999px;
  box-shadow: 6px 6px 0 #111;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
}
#lick:hover { background: #6c5ce7; }
#lick:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #111; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

#gifts:not([hidden]) { animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop {
  from { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: #fff;
  border: 4px solid #111;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #111;
  transition: transform 0.15s;
}
.card:nth-child(odd) { transform: rotate(-2deg); }
.card:nth-child(even) { transform: rotate(2deg); }
.card:hover { transform: rotate(0) scale(1.06); }
.card h3 { margin: 0; font-size: 1.4rem; }
.card p { margin: 0 0 8px; }
.emoji { font-size: 3.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
