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

:root {
  --spidey-red: #e23636;
  --spidey-blue: #1b3fa0;
  --pink: #ff5c8a;
  --pink-deep: #d94577;
  --gold: #e8a13c;
  --bg-a: #fff5f8;
  --bg-b: #ffe0ec;
  --ink: #33202a;
  --sub-ink: #8a6b78;
  --card-bg: #ffffff;
  --card-border: rgba(217, 69, 119, 0.18);
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-a) 0%, var(--bg-b) 70%);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
}

#web-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

section { position: relative; z-index: 1; padding: 90px 20px; text-align: center; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--spidey-red), var(--pink-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub { color: var(--sub-ink); margin-bottom: 40px; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(226,54,54,0.05) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(-45deg, rgba(27,63,160,0.05) 0 2px, transparent 2px 40px);
}

.eyebrow { letter-spacing: 3px; color: var(--pink-deep); font-weight: 700; margin-bottom: 20px; }

.name-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.monkey-gif { width: 80px; height: auto; }

.hero-title {
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pink-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink-deep);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero-sub { font-size: clamp(1.1rem, 3vw, 1.6rem); margin-top: 16px; color: var(--ink); }
.highlight { color: var(--pink-deep); font-weight: 700; }

.hero-tag {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--sub-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.scroll-cue {
  margin-top: 50px;
  color: var(--sub-ink);
  animation: bob 2s infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.web-corner {
  position: absolute;
  width: 160px; height: 160px;
  border: 2px solid rgba(226,54,54,0.25);
  border-radius: 50%;
  opacity: 0.6;
}
.web-corner.top-left { top: -60px; left: -60px; }
.web-corner.top-right { top: -60px; right: -60px; }
.web-corner.bottom-left { bottom: -60px; left: -60px; }
.web-corner.bottom-right { bottom: -60px; right: -60px; }

/* THEME GIFS */
.spidey-rig {
  position: absolute;
  right: 4%;
  bottom: 20px;
  pointer-events: none;
}
.theme-gif { display: block; max-width: 220px; max-height: 190px; }

/* A thread for the crawling Spidey to hang off, flush against the left edge */
.web-thread {
  position: absolute;
  top: 0;
  left: 3px;
  width: 2px;
  height: 100vh;
  background: linear-gradient(rgba(226,54,54,0.45), rgba(226,54,54,0.15));
  z-index: 39;
  pointer-events: none;
}

/* Spidey climbing the LEFT EDGE OF THE PAGE ITSELF — absolute to the document,
   so it scrolls with the page instead of tracking the viewport. Positioned via JS
   (script.js) since it needs the real document height, not just vh. */
.spidey-crawler {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.count-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
  min-width: 90px;
  box-shadow: 0 6px 20px rgba(217,69,119,0.1);
}
.count-box span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pink-deep);
}
.count-box label { font-size: 0.8rem; color: var(--sub-ink); text-transform: uppercase; letter-spacing: 1px; }

/* STORY / TIMELINE */
.timeline {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 22px;
  width: 260px;
  box-shadow: 0 6px 20px rgba(217,69,119,0.08);
}
.timeline-icon { font-size: 2.4rem; margin-bottom: 10px; }
.timeline-item h3 { color: var(--pink-deep); margin-bottom: 8px; }
.timeline-item p { color: var(--sub-ink); font-size: 0.95rem; line-height: 1.5; }

/* JOKES */
.jokes-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.joke-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 22px;
  width: 260px;
  transition: transform 0.25s ease;
  box-shadow: 0 6px 20px rgba(217,69,119,0.08);
}
.joke-card:hover { transform: translateY(-6px) rotate(-1deg); }
.joke-emoji { font-size: 2.6rem; margin-bottom: 10px; }
.joke-card h3 { color: var(--gold); margin-bottom: 8px; }
.joke-card p { color: var(--sub-ink); font-size: 0.95rem; line-height: 1.5; }

/* MJ SECTION */
.mj-section {
  overflow: hidden;
  background: #0c0c0f;
}
.mj-section .section-title.mj-title {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dance-floor {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 480px;
  margin: 0 auto 20px;
  gap: 4px;
}
.tile {
  aspect-ratio: 1;
  background: #1c1c22;
  border-radius: 4px;
  animation: glow 2.4s infinite;
}
.tile:nth-child(odd) { animation-delay: 0.4s; }
.tile:nth-child(3n) { animation-delay: 0.9s; }
.tile:nth-child(4n) { animation-delay: 1.3s; }
@keyframes glow {
  0%, 100% { background: #1c1c22; }
  50% { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
}

.mj-rig {
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: moonwalk 6s linear infinite;
}
.mj-group {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.mj-rig .theme-gif { max-height: 160px; }

@keyframes moonwalk {
  0% { transform: translateX(-130px); }
  50% { transform: translateX(130px); }
  100% { transform: translateX(-130px); }
}

.mj-caption { color: #cfcfd6; margin-top: 16px; }
.mj-warning { font-weight: 700; color: var(--pink); margin-top: 6px; }

/* MEMORIES */
.memories-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.camera-gif { width: 160px; height: auto; display: block; margin-top: 2px; }

.camera-rig {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.camera-platform {
  width: 40px;
  height: 7px;
  margin-left: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--spidey-red), var(--pink-deep));
  box-shadow: 0 2px 6px rgba(217,69,119,0.3);
}
.gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.photo-slot {
  width: 240px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px dashed rgba(217,69,119,0.3);
  position: relative;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  font-size: 2.6rem;
  color: var(--sub-ink);
  background: #fff0f5;
}
.photo-fallback span { font-size: 0.9rem; color: var(--sub-ink); }

/* REASONS */
#reason-btn {
  background: linear-gradient(90deg, var(--spidey-red), var(--pink-deep));
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217,69,119,0.3);
  transition: transform 0.2s ease;
}
#reason-btn:hover { transform: scale(1.05); }
#reason-text {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--pink-deep);
  font-weight: 600;
  min-height: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  text-align: center;
  padding: 50px 20px 70px;
  color: var(--sub-ink);
  position: relative;
  z-index: 1;
}
.spideylove-gif {
  display: block;
  width: 140px;
  margin: 0 auto 20px;
  border-radius: 16px;
}
.footer-small { margin-top: 8px; font-size: 0.85rem; color: var(--sub-ink); }

/* MOBILE — she's almost certainly opening this on her phone */
@media (max-width: 600px) {
  section { padding: 60px 16px; }

  .hero { min-height: 100svh; }
  .hero-tag { max-width: 100%; }

  .spidey-rig {
    position: static;
    margin: 40px auto 0;
  }
  .theme-gif { max-width: 180px; max-height: 155px; }

  .spidey-crawler { width: 80px; left: 4px; }

  .countdown { gap: 10px; }
  .count-box { min-width: 68px; padding: 14px 10px; }
  .count-box span { font-size: 1.7rem; }

  .timeline, .jokes-grid { gap: 16px; }
  .timeline-item, .joke-card {
    width: 100%;
    max-width: 380px;
  }

  .gallery { gap: 14px; }
  .photo-slot { width: 100%; max-width: 380px; height: 210px; }

  #reason-text { max-width: 100%; }
}
