:root {
  --pink: #ff5ea8;
  --yellow: #ffd93d;
  --blue: #4dc3ff;
  --green: #7dd87d;
  --purple: #b388eb;
  --orange: #ff9e40;
  --cream: #fff8e7;
  --ink: #2b2b52;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Baloo 2', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,94,168,0.15) 0, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(77,195,255,0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(125,216,125,0.18) 0, transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(179,136,235,0.18) 0, transparent 40%);
  min-height: 100vh;
  overflow-x: hidden;
}

.confetti {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.confetti span {
  position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  opacity: 0.55;
  animation: floaty 9s ease-in-out infinite;
}
.confetti span:nth-child(1){left:5%;top:8%;background:var(--pink);animation-delay:0s}
.confetti span:nth-child(2){left:15%;top:70%;background:var(--yellow);width:22px;height:22px;border-radius:4px;animation-delay:-1s}
.confetti span:nth-child(3){left:80%;top:20%;background:var(--blue);animation-delay:-2s}
.confetti span:nth-child(4){left:90%;top:60%;background:var(--green);width:18px;height:18px;animation-delay:-3s}
.confetti span:nth-child(5){left:50%;top:5%;background:var(--purple);animation-delay:-4s}
.confetti span:nth-child(6){left:35%;top:85%;background:var(--orange);width:20px;height:20px;border-radius:4px;animation-delay:-5s}
.confetti span:nth-child(7){left:65%;top:40%;background:var(--pink);width:10px;height:10px;animation-delay:-6s}

@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-30px) rotate(180deg); }
}

main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

header {
  text-align: center;
  padding: 48px 16px 24px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0 0 8px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ink);
  text-shadow:
    3px 3px 0 var(--yellow),
    6px 6px 0 var(--pink);
}
h1 .wave { display:inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%,60%,100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin: 8px 0 0;
  color: #5a5a8a;
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 28px;
  margin: 24px 0;
  box-shadow: 0 10px 0 rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.05);
  border: 4px dashed transparent;
}
.card.pink   { border-color: var(--pink); }
.card.blue   { border-color: var(--blue); }
.card.green  { border-color: var(--green); }
.card.yellow { border-color: var(--yellow); }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--ink);
}
h2 .emoji { margin-right: 8px; }

p, li { font-size: 1.1rem; line-height: 1.55; }

ul.rules {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
ul.rules li {
  padding: 8px 0 8px 42px;
  position: relative;
}
ul.rules li::before {
  content: attr(data-emoji);
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 1.6rem;
}

.prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.prize {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s ease;
  border: 3px solid #fff;
}
.prize:hover { transform: rotate(-1.5deg) translateY(-4px); }
.prize img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.prize .body { padding: 14px 16px 18px; }
.prize h3 { margin: 0 0 6px; font-size: 1.25rem; }
.prize p  { margin: 0; font-size: 1rem; color: #505070; }

.prize.p1 { border-color: var(--yellow); }
.prize.p2 { border-color: var(--blue); }
.prize.p3 { border-color: var(--purple); }
.prize.p4 { border-color: var(--green); }

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.step {
  background: var(--cream);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,0.05);
}
.step .num {
  display: inline-block;
  width: 44px; height: 44px; border-radius: 50%;
  line-height: 44px; color: #fff; font-weight: bold; font-size: 1.3rem;
  margin-bottom: 8px;
}
.step:nth-child(1) .num { background: var(--pink); }
.step:nth-child(2) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--green); }
.step:nth-child(4) .num { background: var(--orange); }

footer {
  text-align: center;
  color: #555580;
  padding: 24px 12px 8px;
  position: relative; z-index: 1;
  font-size: 0.95rem;
}
footer .hearts { font-size: 1.3rem; }

@media (max-width: 480px) {
  .card { padding: 22px 18px; border-radius: 20px; }
  header { padding-top: 28px; }
}
