/* ============================================ */
/* DESIGN SYSTEM                                */
/* ============================================ */
:root {
  --bg: #0a0a0f;
  --bg-section: #0e0e14;
  --bg-card: #16162a;
  --gold: #ffd700;
  --gold-soft: #f5c842;
  --pink: #ff6b9d;
  --hot-pink: #ff2d55;
  --rose: #e91e63;
  --blue-star: #00bfff;
  --green-heart: #00e68a;
  --purple: #a855f7;
  --text: #f0ece4;
  --text-muted: rgba(240, 236, 228, 0.45);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-script: "Sacramento", cursive;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay for premium feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--hot-pink));
  border-radius: 3px;
}

/* Tinder gate: hide everything after tinder until completed */
body.tinder-locked .speedrun-section,
body.tinder-locked .house-section,
body.tinder-locked .dogs-section,
body.tinder-locked .scratch-section,
body.tinder-locked .slots-section,
body.tinder-locked .photos-section,
body.tinder-locked .finale-section {
  display: none;
}

/* ============================================ */
/* GLOBAL UTILITIES                             */
/* ============================================ */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

/* Decorative underline accent on section headings */
.section-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subheading {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.02em;
}

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

.heart-counter {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.heart-counter::before {
  content: "\2665 ";
  color: var(--hot-pink);
}
.heart-counter.visible {
  opacity: 1;
}

/* ============================================ */
/* SECTION 1: GRAND ENTRANCE                    */
/* ============================================ */
.entrance {
  background: var(--bg);
  overflow: hidden;
}

/* Animated aurora background */
.entrance::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(255, 45, 85, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(255, 215, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 80%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  animation: auroraShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraShift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-2%, 1%) rotate(1deg);
  }
  66% {
    transform: translate(1%, -1%) rotate(-0.5deg);
  }
  100% {
    transform: translate(-1%, 2%) rotate(0.5deg);
  }
}

.entrance-content {
  text-align: center;
  z-index: 2;
}

.title-container {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.main-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-soft) 25%,
    var(--pink) 50%,
    var(--hot-pink) 75%,
    var(--gold) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
  animation: shimmerTitle 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.15));
}

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

.title-cursor {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.8s var(--ease-out-expo) 0.5s;
  letter-spacing: 0.04em;
}
.subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.begin-btn {
  background: linear-gradient(135deg, var(--hot-pink), var(--rose));
  border: none;
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 52px;
  border-radius: 50px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-spring);
  position: relative;
  overflow: hidden;
  z-index: 2;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(255, 45, 85, 0.3);
}
.begin-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -100% 0;
  }
}
.begin-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.begin-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 40px rgba(255, 45, 85, 0.45);
}
.begin-btn:active {
  transform: scale(0.98);
}
.begin-btn .begin-heart {
  margin-left: 8px;
  display: inline-block;
  animation: pulse-heart 1.2s ease-in-out infinite;
}
@keyframes pulse-heart {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

/* ============================================ */
/* SECTION 2: TINDER                            */
/* ============================================ */
.tinder-section {
  background:
    radial-gradient(
      ellipse at 30% 80%,
      rgba(255, 68, 88, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 20%,
      rgba(168, 85, 247, 0.05) 0%,
      transparent 50%
    ),
    var(--bg);
  padding-top: 80px;
}

.phone-frame {
  width: 300px;
  max-width: 85vw;
  background: linear-gradient(145deg, #2a2a2e, #1a1a1e);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

/* Subtle side buttons on phone */
.phone-frame::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 100px;
  width: 3px;
  height: 30px;
  background: #333;
  border-radius: 0 2px 2px 0;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.tinder-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
}

.tinder-flame {
  filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.4));
}

.tinder-card-container {
  padding: 0 8px;
  position: relative;
  height: 320px;
  perspective: 800px;
}

.tinder-card {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  transition: none;
  transform-origin: center bottom;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  user-select: none;
  touch-action: none;
}
.tinder-card.resetting {
  transition: transform 0.4s var(--ease-out-back);
}
.tinder-card.swiping {
  transition:
    transform 0.5s ease-out,
    opacity 0.5s ease-out;
}

.tinder-photo {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}

.tinder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.tinder-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.tinder-photo-placeholder small {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

.tinder-info {
  background: white;
  padding: 12px 16px;
}

.tinder-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}
.tinder-age {
  font-weight: 400;
  color: #555;
}

.tinder-bio {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

.tinder-active {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}
.green-dot {
  width: 8px;
  height: 8px;
  background: #00e68a;
  border-radius: 50%;
}

/* Swipe overlays */
.swipe-overlay {
  position: absolute;
  top: 20px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 2px;
}
.swipe-left-overlay {
  right: 20px;
  border: 4px solid #ff4458;
  color: #ff4458;
  transform: rotate(20deg);
}
.swipe-right-overlay {
  left: 20px;
  border: 4px solid #00e68a;
  color: #00e68a;
  transform: rotate(-20deg);
}
.swipe-super-overlay {
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid var(--blue-star);
  color: var(--blue-star);
}

/* Tinder action buttons */
.tinder-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 18px;
  background: #fff;
}

.tinder-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #e8e8e8;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tinder-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.tinder-btn:active {
  transform: scale(0.92);
}

.tinder-btn-nope,
.tinder-btn-like {
  width: 54px;
  height: 54px;
}

.tinder-btn-nope:hover {
  border-color: rgba(255, 68, 88, 0.4);
  box-shadow: 0 0 20px rgba(255, 68, 88, 0.15);
}
.tinder-btn-like:hover {
  border-color: rgba(0, 230, 138, 0.4);
  box-shadow: 0 0 20px rgba(0, 230, 138, 0.15);
}

.tinder-btn-superlike {
  border-color: rgba(0, 191, 255, 0.25);
}
.tinder-btn-superlike:hover {
  border-color: var(--blue-star);
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.3);
}

/* Tinder response */
.tinder-response {
  margin-top: 20px;
  min-height: 60px;
  text-align: center;
  font-size: 0.95rem;
  z-index: 2;
  max-width: 320px;
}
.tinder-response .response-text {
  animation: fadeInUp 0.4s var(--ease-out-expo);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 300;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Match screen */
.match-screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 191, 255, 0.2) 0%,
      transparent 50%
    ),
    rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out-expo);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.match-screen.active {
  opacity: 1;
  pointer-events: all;
}

.match-content {
  text-align: center;
}

.match-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  background: linear-gradient(135deg, var(--blue-star), #00e68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: matchPop 0.6s var(--ease-out-back);
}
@keyframes matchPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.match-subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
  font-weight: 300;
}

.match-continue {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--blue-star), #0099cc);
  border: none;
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
}
.match-continue:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.4);
}

/* Phone stolen sequence */
.phone-stolen-sequence {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.phone-stolen-sequence.active {
  opacity: 1;
  pointer-events: all;
}

.stolen-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.5s var(--ease-out-expo);
}
.stolen-step.active {
  display: flex;
}

.imessage-bubble {
  background: #007aff;
  color: white;
  padding: 12px 20px;
  border-radius: 20px 20px 4px 20px;
  font-size: 1.05rem;
  max-width: 260px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2);
}
.imessage-bubble.incoming {
  background: #e5e5ea;
  color: #111;
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.phone-crack {
  width: 80px;
  height: 80px;
  border: 3px solid var(--hot-pink);
  border-radius: 50%;
  position: relative;
  margin-bottom: 24px;
  animation: crackPulse 1s ease-out;
}
.phone-crack::before {
  content: "\274C";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}
@keyframes crackPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.police-report {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  max-width: 280px;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
.police-header {
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}
.red-text {
  color: var(--hot-pink);
  font-weight: bold;
}

.facebook-bubble {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  max-width: 280px;
  color: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.fb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fb-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}
.fb-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.fb-message {
  font-size: 0.95rem;
  line-height: 1.4;
}

.stolen-continue {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 10px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}
.stolen-continue:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* ============================================ */
/* SECTION 3: SPEED RUN                         */
/* ============================================ */
.speedrun-section {
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(0, 230, 138, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 215, 0, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
  gap: 24px;
}

.speedometer {
  width: 200px;
  text-align: center;
  z-index: 2;
}
.speed-svg {
  width: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 45, 85, 0.2));
}
.speed-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hot-pink);
  margin-top: -10px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.timeline {
  position: relative;
  z-index: 2;
  padding-left: 40px;
  max-width: 400px;
  width: 100%;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 157, 0.3),
    rgba(255, 215, 0, 0.3)
  );
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s var(--ease-out-expo);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.3);
}
.timeline-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
  animation: goldPulse 2s ease-in-out infinite;
}
@keyframes goldPulse {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.8);
  }
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.timeline-event {
  font-size: 1.05rem;
  margin-top: 4px;
  font-weight: 300;
  line-height: 1.4;
}

.married-event {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.speed-badge {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.08),
    rgba(255, 45, 85, 0.08)
  );
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 20px 32px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s var(--ease-spring);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.speed-badge.visible {
  opacity: 1;
  transform: scale(1);
}
.badge-number {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.badge-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 4px;
}

.keep-going {
  z-index: 2;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s var(--ease-out-expo);
  cursor: default;
  letter-spacing: 0.02em;
}
.keep-going.visible {
  opacity: 1;
  transform: translateY(0);
}
.keep-going-arrow {
  display: block;
  font-size: 1.4rem;
  margin-top: 4px;
  animation: bounceArrow 1.5s ease-in-out infinite;
}
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ============================================ */
/* SECTION 4: THE HOUSE                         */
/* ============================================ */
.house-section {
  background:
    radial-gradient(
      ellipse at 50% 70%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 30% 30%,
      rgba(168, 85, 247, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
}

.house-scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.house-graphic-wrapper {
  position: relative;
  z-index: 2;
}

.house-svg {
  width: 420px;
  max-width: 85vw;
  border-radius: 18px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
  background: #87ceeb;
}
.house-svg:hover {
  transform: scale(1.02);
}

.doorbell-btn {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.doorbell-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
  transform: translateY(-2px);
}

.sold-sign {
  position: absolute;
  top: -30px;
  right: -60px;
  opacity: 0;
  transform: translateY(-100px) rotate(-10deg);
  transition: all 0.8s var(--ease-spring);
  z-index: 3;
}
.sold-sign.visible {
  opacity: 1;
  transform: translateY(0) rotate(-5deg);
}
.sold-post {
  width: 5px;
  height: 90px;
  background: linear-gradient(180deg, #999, #666);
  margin: 0 auto;
  border-radius: 2px;
}
.sold-board {
  background: linear-gradient(135deg, #cc0000, #aa0000);
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 8px 20px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 4px;
  box-shadow:
    0 4px 16px rgba(204, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.house-message {
  margin-top: 36px;
  max-width: 500px;
  text-align: center;
  z-index: 2;
  min-height: 80px;
}

.house-typewriter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* ============================================ */
/* SECTION 5: OLIVER & THOMAS                   */
/* ============================================ */
.dogs-section {
  background:
    radial-gradient(
      ellipse at 60% 40%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 30% 70%,
      rgba(255, 107, 157, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
}

.dogs-runway {
  display: flex;
  gap: 60px;
  margin-bottom: 24px;
  z-index: 2;
}

.dog {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-back);
}
.dog:hover {
  transform: scale(1.1) translateY(-4px);
}

.dog-svg {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.dog-tail {
  animation: wagTail 0.35s ease-in-out infinite alternate;
  transform-origin: left center;
}
@keyframes wagTail {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(12deg);
  }
}

.dog-name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.paw-trail {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  z-index: 2;
  max-width: 400px;
}

.paw-print {
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.25;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}
.paw-print:hover {
  opacity: 0.8;
  transform: scale(1.15);
}
.paw-print.clicked {
  opacity: 1;
  color: var(--hot-pink);
  filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.4));
}
.paw-heart {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--hot-pink);
  font-size: 1rem;
  animation: floatUp 0.8s var(--ease-out-expo) forwards;
  pointer-events: none;
}
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-35px) scale(0.6);
  }
}

.dog-photos {
  display: flex;
  gap: 24px;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
}

.dog-photo-frame {
  width: 160px;
  text-align: center;
}

.dog-photo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.dog-photo-img:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.dog-nametag {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  display: inline-block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* ============================================ */
/* SECTION 6: SCRATCH-OFF                       */
/* ============================================ */
.scratch-section {
  background:
    radial-gradient(
      ellipse at 40% 60%,
      rgba(255, 215, 0, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(233, 30, 99, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  max-width: 800px;
  width: 100%;
  z-index: 2;
}

.scratch-card {
  position: relative;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-out-expo);
}
.scratch-card:hover {
  transform: translateY(-2px);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 14px;
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-card), #2a1a3e);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
}
.scratch-reveal p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
  color: var(--gold);
}

/* ============================================ */
/* SECTION 7: SLOT MACHINE                      */
/* ============================================ */
.slots-section {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(204, 0, 0, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(255, 215, 0, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
}

.slot-machine {
  z-index: 2;
  text-align: center;
}

.slot-top {
  background: linear-gradient(135deg, #8b0000, #cc0000, #8b0000);
  padding: 14px 36px;
  border-radius: 18px 18px 0 0;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
/* Light bulb dots across top */
.slot-top::before {
  content: "* * * * * * * * *";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  font-size: 8px;
  letter-spacing: 6px;
  text-align: center;
  color: var(--gold);
  animation: bulbFlash 1s ease-in-out infinite alternate;
}
@keyframes bulbFlash {
  0% {
    opacity: 0.4;
    text-shadow: 0 0 4px var(--gold);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 8px var(--gold);
  }
}

.slot-marquee {
  overflow: hidden;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  animation: marqueeFlash 2s ease-in-out infinite;
}
@keyframes marqueeFlash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.slot-body {
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a, #222);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 0 0 18px 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slot-display {
  display: flex;
  gap: 6px;
}

.slot-reel {
  width: 70px;
  height: 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8, #fff, #f8f8f8);
  border-radius: 10px;
  border: 2px solid #666;
  position: relative;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
/* Glare effect on reels */
.slot-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
}

.slot-strip {
  display: flex;
  flex-direction: column;
}

.slot-item {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #e91e63;
}

.slot-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.slot-lever-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slot-lever {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s var(--ease-out-expo);
}
.slot-lever:hover {
  transform: scale(1.08);
}
.slot-lever:active .lever-ball {
  transform: translateY(20px);
}

.lever-stick {
  width: 6px;
  height: 50px;
  background: linear-gradient(90deg, #666, #999, #666);
  border-radius: 3px;
}
.lever-ball {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 35% 35%, #ff6666, #cc0000, #880000);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.slot-result {
  margin-top: 24px;
  min-height: 60px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  max-width: 300px;
  line-height: 1.5;
}
.slot-result.winner {
  animation: winnerBounce 0.5s var(--ease-out-back);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
@keyframes winnerBounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================ */
/* SECTION 8: PHOTO WALL                        */
/* ============================================ */
.photos-section {
  background:
    radial-gradient(
      ellipse at 60% 30%,
      rgba(168, 85, 247, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
  padding: 80px 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 700px;
  width: 100%;
  z-index: 2;
}

.photo-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 600px;
}
.photo-card:hover {
  transform: scale(1.03);
}
.photo-card.tall {
  grid-row: span 2;
}
.photo-card.wide {
  grid-column: span 2;
}

.photo-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.photo-card.tall .photo-img {
  min-height: 380px;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================ */
/* SECTION 9: GRAND FINALE                      */
/* ============================================ */
.finale-section {
  background: #050508;
  position: relative;
  min-height: 100vh;
}

.finale-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(
    ellipse,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 107, 157, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  transition:
    width 2.5s var(--ease-out-expo),
    height 2.5s var(--ease-out-expo);
}
.finale-spotlight.active {
  width: 160vmax;
  height: 160vmax;
}

.finale-content {
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-out-expo) 1s;
}
.finale-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.finale-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-soft),
    var(--pink),
    var(--hot-pink)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 36px;
  font-weight: 400;
  animation: shimmerTitle 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.2));
}

.finale-message {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.9;
  color: rgba(240, 236, 228, 0.7);
  font-style: italic;
  margin-bottom: 36px;
}

.finale-hearts-collected {
  font-size: 0.9rem;
  color: var(--pink);
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s var(--ease-out-expo) 2.5s;
  font-weight: 300;
}
.finale-hearts-collected.visible {
  opacity: 1;
  transform: translateY(0);
}

.finale-signature {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1.4;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}
.signature-name {
  font-size: 2.4rem;
}

#finale-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ============================================ */
/* KONAMI EASTER EGG                            */
/* ============================================ */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 215, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.konami-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.konami-content {
  text-align: center;
}
.giant-frenchie {
  width: 200px;
  height: auto;
  animation: konamiBounce 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}
@keyframes konamiBounce {
  from {
    transform: translateY(0) rotate(-2deg);
  }
  to {
    transform: translateY(-20px) rotate(2deg);
  }
}
.konami-content p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #111;
  margin-top: 16px;
}
.konami-content small {
  color: #555;
  font-size: 0.8rem;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

/* Tablet */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .photo-card.tall .photo-img {
    min-height: 300px;
  }
  .photos-section {
    padding: 60px 16px;
  }
  .slot-body {
    padding: 16px;
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section {
    padding: 50px 16px;
  }
  .section-heading {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .section-subheading {
    font-size: 0.85rem;
    margin-bottom: 28px;
  }

  /* Entrance */
  .main-title {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }
  .title-cursor {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }
  .subtitle {
    margin-bottom: 36px;
  }
  .begin-btn {
    padding: 14px 40px;
    font-size: 1rem;
  }

  /* Tinder */
  .phone-frame {
    width: 270px;
  }
  .tinder-card-container {
    height: 280px;
  }
  .tinder-photo {
    height: 200px;
  }
  .tinder-actions {
    gap: 8px;
  }
  .tinder-btn-nope,
  .tinder-btn-like {
    width: 48px;
    height: 48px;
  }
  .tinder-btn {
    width: 40px;
    height: 40px;
  }
  .tinder-response {
    max-width: 270px;
    font-size: 0.85rem;
  }

  /* Phone stolen sequence */
  .police-report {
    max-width: 250px;
    font-size: 0.8rem;
    padding: 16px;
  }
  .facebook-bubble {
    max-width: 250px;
  }
  .imessage-bubble {
    max-width: 230px;
    font-size: 0.95rem;
  }

  /* Speedrun */
  .speedometer {
    width: 160px;
  }
  .speed-label {
    font-size: 1.2rem;
  }
  .timeline {
    padding-left: 32px;
  }
  .badge-number {
    font-size: 2.6rem;
  }
  .speed-badge {
    padding: 16px 24px;
  }

  /* House */
  .house-svg {
    max-width: 90vw;
  }
  .sold-sign {
    right: -15px;
    top: -15px;
  }
  .sold-post {
    height: 50px;
  }
  .sold-board {
    font-size: 0.9rem;
    padding: 6px 12px;
    letter-spacing: 2px;
  }
  .house-typewriter {
    font-size: 0.9rem;
  }

  /* Dogs */
  .dogs-runway {
    gap: 30px;
  }
  .dog-svg {
    width: 90px;
  }
  .dog-photo-frame {
    width: 130px;
  }
  .dog-photo-img {
    width: 130px;
    height: 130px;
    border-radius: 14px;
  }

  /* Scratch */
  .scratch-grid {
    grid-template-columns: 1fr;
  }

  /* Slots */
  .slot-reel {
    width: 60px;
    height: 60px;
  }
  .slot-item {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  .slot-body {
    padding: 14px 10px;
    gap: 10px;
  }
  .slot-top {
    padding: 12px 20px;
  }
  .marquee-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
  .lever-stick {
    height: 40px;
  }
  .slot-result {
    font-size: 0.9rem;
    max-width: 260px;
  }

  /* Photos */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .photo-card.tall {
    grid-row: span 1;
  }
  .photo-card.tall .photo-img {
    min-height: 180px;
  }
  .photo-card.wide {
    grid-column: span 2;
  }
  .photo-img {
    min-height: 140px;
  }
  .photo-caption {
    font-size: 0.7rem;
    padding: 8px;
  }

  /* Finale */
  .finale-message {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .finale-signature {
    font-size: 1.4rem;
  }
  .signature-name {
    font-size: 1.8rem;
  }

  /* Keep going prompts */
  .keep-going {
    margin-top: 18px;
    font-size: 0.85rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .phone-frame {
    width: 250px;
  }
  .tinder-card-container {
    height: 250px;
  }
  .tinder-photo {
    height: 175px;
  }
  .slot-reel {
    width: 50px;
    height: 50px;
  }
  .slot-item {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .dog-photo-frame {
    width: 110px;
  }
  .dog-photo-img {
    width: 110px;
    height: 110px;
  }
  .photo-grid {
    gap: 6px;
  }
}
