/* ============================================================
   YCT TWINS BIRTHDAY — SPIDER-VERSE EDITION
   Design System + Full Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;600;700;900&display=swap');

/* --- Design Tokens --- */
:root {
  /* Base */
  --bg-deep: #06060F;
  --bg-surface: #0D0D1A;
  --bg-card: rgba(15, 15, 30, 0.7);
  --text-primary: #F0F0FF;
  --text-secondary: rgba(240, 240, 255, 0.65);
  --text-muted: rgba(240, 240, 255, 0.4);

  /* Spider-Man — Yonas */
  --spidey-red: #DF1F2D;
  --spidey-red-glow: rgba(223, 31, 45, 0.4);
  --spidey-blue: #0047AB;
  --spidey-blue-glow: rgba(0, 71, 171, 0.4);

  /* Ghost-Spider — Yohanna */
  --ghost-white: #FFFFFF;
  --ghost-magenta: #FF4081;
  --ghost-magenta-glow: rgba(255, 64, 129, 0.4);
  --ghost-teal: #4FE0D2;
  --ghost-teal-glow: rgba(79, 224, 210, 0.35);

  /* Spin — Yohannes */
  --spin-black: #0A0A0A;
  --spin-red: #FF0000;
  --spin-red-glow: rgba(255, 0, 0, 0.35);
  --spin-electric: #2196F3;
  --spin-electric-glow: rgba(33, 150, 243, 0.35);

  /* Shared accents */
  --web-strand: rgba(255, 255, 255, 0.08);
  --web-node: rgba(255, 255, 255, 0.25);
  --glass-bg: rgba(15, 15, 30, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.04);

  /* Typography */
  --font-display: 'Bangers', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tech: 'Orbitron', monospace;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 7rem);
  --container-max: 1100px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-med: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Glass Card --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-shine);
}

/* --- Canvas Overlay (web cursor effect) --- */
#web-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   SECTION 0: LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-spider {
  width: 60px;
  height: 60px;
  animation: spider-drop 1.8s var(--ease-out-expo) infinite;
}
.loading-spider svg {
  width: 100%;
  height: 100%;
  fill: var(--spidey-red);
  filter: drop-shadow(0 0 20px var(--spidey-red-glow));
}
.loading-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.loading-web-line {
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--ghost-teal), transparent);
  animation: web-descend 1.8s var(--ease-out-expo) infinite;
}

@keyframes spider-drop {
  0%, 100% { transform: translateY(-20px); }
  50% { transform: translateY(10px); }
}
@keyframes web-descend {
  0% { height: 0; opacity: 0; }
  50% { height: 80px; opacity: 1; }
  100% { height: 0; opacity: 0; }
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* Animated background gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, var(--spidey-red-glow), transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 60%, var(--ghost-magenta-glow), transparent 70%),
    radial-gradient(ellipse 450px 300px at 50% 80%, var(--spin-electric-glow), transparent 70%);
  animation: hero-orbs 12s ease-in-out infinite alternate;
  z-index: 0;
  opacity: 0.5;
}

@keyframes hero-orbs {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(3deg); }
  66% { transform: translate(-20px, 15px) rotate(-2deg); }
  100% { transform: translate(10px, -10px) rotate(1deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-tech);
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ghost-teal);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero-title .gradient-text {
  background: linear-gradient(
    135deg,
    var(--spidey-red) 0%,
    var(--ghost-magenta) 40%,
    var(--ghost-teal) 70%,
    var(--spin-electric) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

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

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.1s forwards;
}

.hero-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--ghost-teal);
  text-shadow: 0 0 40px var(--ghost-teal-glow), 0 0 80px var(--ghost-teal-glow);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInScale 0.8s var(--ease-spring) 1.4s forwards;
}

.hero-date {
  font-family: var(--font-tech);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.7s forwards;
}

.hero-cta {
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 2s forwards;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--spidey-red) 0%, var(--ghost-magenta) 100%);
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 24px var(--spidey-red-glow);
}
.hero-cta a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px var(--spidey-red-glow);
}

/* Hero cityscape background */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(1px);
}
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 15, 0.3) 0%,
    rgba(6, 6, 15, 0.6) 50%,
    rgba(6, 6, 15, 0.95) 100%
  );
}

/* Hero character images */
.hero-characters {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}
.hero-char-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
}
.hero-char-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}
.hero-char-img:hover {
  transform: scale(1.1) translateY(-4px);
}
.hero-char-img:hover img {
  transform: scale(1.05);
}
.hero-char-img.spidey-img {
  border-color: var(--spidey-red);
  box-shadow: 0 0 24px var(--spidey-red-glow), 0 0 60px rgba(223, 31, 45, 0.15);
}
.hero-char-img.ghost-img {
  border-color: var(--ghost-magenta);
  box-shadow: 0 0 24px var(--ghost-magenta-glow), 0 0 60px rgba(255, 64, 129, 0.15);
}
.hero-char-img.spin-img {
  border-color: var(--spin-electric);
  box-shadow: 0 0 24px var(--spin-electric-glow), 0 0 60px rgba(33, 150, 243, 0.15);
}

@media (min-width: 768px) {
  .hero-char-img {
    width: 160px;
    height: 160px;
    border-width: 4px;
  }
}
@media (min-width: 1024px) {
  .hero-char-img {
    width: 200px;
    height: 200px;
  }
  .hero-characters {
    gap: 2.5rem;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 2.5s forwards;
}
.scroll-indicator span {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ghost-teal), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   SECTION 2: MISSION BRIEFING (Party Details)
   ============================================================ */
.mission {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ghost-teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mission-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast);
}
.mission-card:hover {
  transform: translateY(-4px);
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mission-card.card-date::before { background: var(--spidey-red); }
.mission-card.card-time::before { background: var(--ghost-magenta); }
.mission-card.card-location::before { background: var(--ghost-teal); }
.mission-card.card-dress::before { background: var(--spin-electric); }

.mission-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mission-card .card-label {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.mission-card .card-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.mission-card .card-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============================================================
   SECTION 3: MEET THE HEROES (Character Cards)
   ============================================================ */
.heroes {
  padding: var(--section-pad) 0;
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  perspective: 1000px;
  min-height: 420px;
}

.hero-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  transition: transform 0.6s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.hero-card:hover .hero-card-inner,
.hero-card.flipped .hero-card-inner {
  transform: rotateY(180deg);
}

.hero-card-front,
.hero-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.hero-card-front {
  justify-content: flex-end;
  overflow: hidden;
}
.hero-card-front .card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-card-front .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card-front .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-card-front .card-info {
  position: relative;
  z-index: 2;
}
.hero-card-front .card-character {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.hero-card-front .card-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
}
.hero-card-front .card-flip-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.hero-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.hero-card-back .back-emoji {
  font-size: 3rem;
}
.hero-card-back .back-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.hero-card-back .back-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-card-back .back-facts li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.hero-card-back .back-facts li::before {
  content: '🕸️ ';
}

/* Character-specific card themes */
.hero-card.spidey-card .card-overlay {
  background: linear-gradient(to top, rgba(6, 6, 15, 0.95) 0%, rgba(223, 31, 45, 0.15) 100%);
}
.hero-card.spidey-card .card-character { color: var(--spidey-red); }
.hero-card.spidey-card .hero-card-back {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(223, 31, 45, 0.15) 100%);
  border: 1px solid rgba(223, 31, 45, 0.2);
}

.hero-card.ghost-card .card-overlay {
  background: linear-gradient(to top, rgba(6, 6, 15, 0.95) 0%, rgba(255, 64, 129, 0.15) 100%);
}
.hero-card.ghost-card .card-character { color: var(--ghost-magenta); }
.hero-card.ghost-card .hero-card-back {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(255, 64, 129, 0.15) 100%);
  border: 1px solid rgba(255, 64, 129, 0.2);
}

.hero-card.spin-card .card-overlay {
  background: linear-gradient(to top, rgba(6, 6, 15, 0.95) 0%, rgba(33, 150, 243, 0.15) 100%);
}
.hero-card.spin-card .card-character { color: var(--spin-electric); }
.hero-card.spin-card .hero-card-back {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(33, 150, 243, 0.15) 100%);
  border: 1px solid rgba(33, 150, 243, 0.2);
}




/* ============================================================
   SECTION 4: TIMELINE
   ============================================================ */
.timeline-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Vertical web strand */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--web-strand) 10%,
    rgba(79, 224, 210, 0.15) 50%,
    var(--web-strand) 90%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem 2rem;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 3rem;
}

/* Timeline node (web dot) */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ghost-teal);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 16px var(--ghost-teal-glow);
  z-index: 2;
}
.timeline-item:nth-child(odd)::before {
  right: -7px;
}
.timeline-item:nth-child(even)::before {
  left: -7px;
}

/* Web strand from node */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 1.8rem;
  width: 2rem;
  height: 1px;
  background: var(--web-strand);
}
.timeline-item:nth-child(odd)::after {
  right: 0;
}
.timeline-item:nth-child(even)::after {
  left: 0;
}

.timeline-date {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost-teal);
  margin-bottom: 0.5rem;
}

.timeline-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}
.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.timeline-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mobile timeline */
@media (max-width: 640px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 3.5rem;
    padding-right: 1rem;
  }
  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 13px;
    right: auto;
  }
  .timeline-item::after,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 27px;
    right: auto;
  }
}

/* ============================================================
   SECTION 5: COUNTDOWN
   ============================================================ */
.countdown-section {
  padding: var(--section-pad) 0;
  text-align: center;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-value {
  font-family: var(--font-tech);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  min-width: 2.5ch;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.countdown-value::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--spidey-red), var(--ghost-magenta), var(--ghost-teal));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
}

.countdown-unit:nth-child(1) .countdown-value { color: var(--spidey-red); text-shadow: 0 0 30px var(--spidey-red-glow); }
.countdown-unit:nth-child(2) .countdown-value { color: var(--ghost-magenta); text-shadow: 0 0 30px var(--ghost-magenta-glow); }
.countdown-unit:nth-child(3) .countdown-value { color: var(--ghost-teal); text-shadow: 0 0 30px var(--ghost-teal-glow); }
.countdown-unit:nth-child(4) .countdown-value { color: var(--spin-electric); text-shadow: 0 0 30px var(--spin-electric-glow); }

.countdown-label {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 6: RSVP
   ============================================================ */
.rsvp-section {
  padding: var(--section-pad) 0;
}

.rsvp-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ghost-teal);
  box-shadow: 0 0 0 3px var(--ghost-teal-glow);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--spidey-red) 0%, var(--ghost-magenta) 100%);
  border-radius: 999px;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--spidey-red-glow);
}
.btn-submit:active {
  transform: translateY(0);
}

/* Success state */
.rsvp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
.rsvp-success.show {
  display: flex;
}
.rsvp-success .success-emoji {
  font-size: 4rem;
  animation: fadeInScale 0.5s var(--ease-spring);
}
.rsvp-success .success-title {
  font-family: var(--font-display);
  font-size: 2rem;
}
.rsvp-success .success-message {
  color: var(--text-secondary);
  max-width: 400px;
}

/* ============================================================
   SECTION 7: GIFT REGISTRY
   ============================================================ */
.registry-section {
  padding: var(--section-pad) 0;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.registry-card {
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.registry-card:hover {
  transform: translateY(-4px);
}

.registry-card .registry-icon {
  font-size: 2.5rem;
}
.registry-card .registry-store {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.registry-card .registry-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.registry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ghost-teal);
  border: 1px solid rgba(79, 224, 210, 0.3);
  border-radius: 999px;
  transition: all var(--transition-fast);
}
.registry-link:hover {
  background: rgba(79, 224, 210, 0.1);
  border-color: var(--ghost-teal);
  box-shadow: 0 0 20px var(--ghost-teal-glow);
}

/* ============================================================
   SECTION 8: FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-skyline {
  width: 100%;
  height: 120px;
  margin-bottom: 2rem;
  position: relative;
}
.footer-skyline svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.03);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.6rem);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--spidey-red), var(--ghost-magenta), var(--ghost-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   CONFETTI OVERLAY
   ============================================================ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  display: none;
}
#confetti-canvas.active {
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .heroes-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-card,
  .hero-card-inner {
    min-height: 360px;
  }
  .countdown-display {
    gap: 1rem;
  }
  .rsvp-form-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .registry-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FLOATING MUSIC PLAYER
   ============================================================ */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(79, 224, 210, 0.1);
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
  max-width: 52px;
}
.music-player:hover,
.music-player.expanded {
  max-width: 260px;
  gap: 0.75rem;
  padding-right: 1.2rem;
}

.music-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--spidey-red), var(--ghost-magenta));
  color: white;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.music-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--spidey-red-glow);
}

/* Equalizer bars (shown when playing) */
.music-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.music-eq .eq-bar {
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.music-eq .eq-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-eq .eq-bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.music-eq .eq-bar:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.music-eq .eq-bar:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Show eq bars when playing, hide play icon */
.music-player.playing .music-eq {
  display: flex;
}
.music-player.playing .music-play-icon {
  display: none;
}

/* Track info */
.music-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.music-player:hover .music-info,
.music-player.expanded .music-info {
  opacity: 1;
}
.music-track {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.music-status {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost-teal);
}

/* Pulse animation when playing */
.music-player.playing {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(79, 224, 210, 0.2);
  animation: player-pulse 3s ease-in-out infinite;
}
@keyframes player-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 224, 210, 0.15); }
  50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 64, 129, 0.2); }
}

/* Mobile position */
@media (max-width: 768px) {
  .music-player {
    bottom: 1rem;
    right: 1rem;
  }
}
