/* ═══════════════════════════════════════════════════════════════
   LOVE WRAPPED — Styles
   Mobile-first, iPhone 16 Pro optimized (393×852 CSS px)
   v3 — iOS Safari performance optimized
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --accent: #FF6B9D;
  --accent-glow: rgba(255, 107, 157, 0.4);
  --accent-2: #c084fc;
  --accent-3: #FF9A56;
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #0a0015;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Progress Bar ─────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(var(--safe-top) + 8px) 8px 0;
  pointer-events: none;
}

.progress-segments {
  display: flex;
  gap: 4px;
  height: 3px;
}

.progress-segment {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-segment__fill {
  position: absolute;
  inset: 0;
  background: var(--text);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.progress-segment--active .progress-segment__fill {
  transform: scaleX(1);
}

.progress-segment--done .progress-segment__fill {
  transform: scaleX(1);
  transition: none;
}

/* ── Slides Container ─────────────────────────────────────────── */
.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 40px) 28px calc(var(--safe-bottom) + 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.93) translateY(15px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.slide--active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.slide--exit-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.9);
}

.slide--exit-right {
  opacity: 0;
  transform: translateX(50px) scale(0.9);
}

/* ── Sparkle Particles ────────────────────────────────────────── */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: sparkleFloat 6s ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 0.3;
    transform: translateY(-80px) scale(0.5);
  }
}

/* ── Slide Inner Content ──────────────────────────────────────── */
.slide__content {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ── Emoji ────────────────────────────────────────────────────── */
.slide__emoji {
  font-size: 52px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
}

.slide--active .slide__emoji {
  animation: emojiBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both,
             emojiHover 3s ease-in-out 1s infinite;
}

@keyframes emojiBurst {
  0%   { opacity: 0; transform: scale(0.3) rotate(-15deg); }
  50%  { transform: scale(1.25) rotate(5deg); }
  70%  { transform: scale(0.92) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes emojiHover {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}

/* ── Label ────────────────────────────────────────────────────── */
.slide__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(16px);
}

.slide--active .slide__label {
  animation: fadeSlideUp 0.5s ease 0.2s both;
}

/* ── Title ────────────────────────────────────────────────────── */
.slide__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
}

.slide--active .slide__title {
  animation: fadeSlideUp 0.5s ease 0.3s both;
}

/* ── Shimmer Text Effect ──────────────────────────────────────── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent) 25%,
    var(--text) 50%,
    var(--accent-2) 75%,
    var(--text) 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

/* ── Cover Slide ──────────────────────────────────────────────── */
.cover {
  gap: 20px;
}

.cover__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0;
}

.slide--active .cover__badge {
  animation: badgeDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes badgeDrop {
  0%   { opacity: 0; transform: translateY(-25px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cover__heart {
  width: 80px;
  height: 80px;
  position: relative;
  opacity: 0;
}

.slide--active .cover__heart {
  animation: heartReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.cover__heart-svg {
  width: 100%;
  height: 100%;
  animation: heartBeat 1.5s ease-in-out 1.5s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  5%       { transform: scale(1.15); }
  10%      { transform: scale(1); }
  15%      { transform: scale(1.1); }
  20%      { transform: scale(1); }
}

.cover__heart-pulse {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

.cover__names {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  opacity: 0;
}

.slide--active .cover__names {
  animation: namesReveal 0.7s ease 0.5s both;
}

@keyframes namesReveal {
  0%   { opacity: 0; transform: translateY(25px) scale(0.9); letter-spacing: 8px; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: normal; }
}

.cover__names span {
  color: var(--accent);
  display: inline-block;
}

.slide--active .cover__names span {
  animation: ampersandSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

@keyframes ampersandSpin {
  0%   { opacity: 0; transform: rotate(-180deg) scale(0); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

.cover__date {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0;
}

.slide--active .cover__date {
  animation: fadeSlideUp 0.5s ease 0.7s both;
}

.cover__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
}

.slide--active .cover__cta {
  animation: fadeSlideUp 0.5s ease 1s both,
             ctaPulse 2s ease-in-out 2s infinite;
}

.cover__cta svg {
  animation: arrowBounce 1.5s ease-in-out 2s infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.cover__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  opacity: 0;
}

.slide--active .cover__photo {
  animation: photoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes photoReveal {
  0%   { opacity: 0; transform: scale(0) rotate(-10deg); }
  60%  { transform: scale(1.1) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Big Number ───────────────────────────────────────────────── */
.big-number {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(0.3);
}

.slide--active .big-number {
  animation: numberExplode 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes numberExplode {
  0%   { opacity: 0; transform: scale(0.3) translateY(30px); }
  60%  { transform: scale(1.12) translateY(-5px); }
  80%  { transform: scale(0.96) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.big-number--medium {
  font-size: 54px;
}

.big-number__unit {
  font-size: 28px;
  font-weight: 700;
  -webkit-text-fill-color: var(--text-dim);
  margin-left: 4px;
}

/* ── Stat Cards ───────────────────────────────────────────────── */
.stat-card {
  width: 100%;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  opacity: 0;
}

.slide--active .stat-card {
  animation: fadeSlideUp 0.5s ease 0.4s both;
}

.stat-card__icon { font-size: 32px; margin-bottom: 8px; }
.stat-card__value { font-size: 36px; font-weight: 800; color: var(--accent); }
.stat-card__label { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-top: 4px; }

/* ── Quote / Phrase ───────────────────────────────────────────── */
.phrase-block {
  width: 100%;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  text-align: left;
  opacity: 0;
  transform: translateX(-30px);
}

.slide--active .phrase-block {
  animation: phraseSlideIn 0.6s ease 0.35s both;
}

@keyframes phraseSlideIn {
  0%   { opacity: 0; transform: translateX(-30px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.phrase-block__text {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.phrase-block__text .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

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

.phrase-block__count {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
}

.slide--active .phrase-block__count {
  animation: fadeSlideUp 0.5s ease 0.9s both;
}

/* ── Comment / Subtitle ───────────────────────────────────────── */
.slide__comment {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px);
}

.slide--active .slide__comment {
  animation: fadeSlideUp 0.5s ease 0.6s both;
}

.slide__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0;
}

.slide--active .slide__subtitle {
  animation: fadeSlideUp 0.5s ease 0.15s both;
}

/* ── Score Bar ────────────────────────────────────────────────── */
.score-display {
  width: 100%;
  max-width: 280px;
  opacity: 0;
}

.slide--active .score-display {
  animation: fadeSlideUp 0.5s ease 0.4s both;
}

.score-display__bar-bg {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 12px;
}

.score-display__bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.7s;
}

.slide--active .score-display__bar-fill {
  transform: scaleX(var(--score-percent, 0));
}

.score-display__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Love Language Bars ───────────────────────────────────────── */
.lang-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
}

.slide--active .lang-list {
  animation: fadeSlideUp 0.5s ease 0.3s both;
}

.lang-item {
  text-align: left;
  opacity: 0;
  transform: translateX(-16px);
}

.slide--active .lang-item {
  animation: langItemSlide 0.4s ease both;
}

.slide--active .lang-item:nth-child(1) { animation-delay: 0.35s; }
.slide--active .lang-item:nth-child(2) { animation-delay: 0.45s; }
.slide--active .lang-item:nth-child(3) { animation-delay: 0.55s; }
.slide--active .lang-item:nth-child(4) { animation-delay: 0.65s; }
.slide--active .lang-item:nth-child(5) { animation-delay: 0.75s; }

@keyframes langItemSlide {
  0%   { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 1; transform: translateX(0); }
}

.lang-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.lang-item__name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lang-item__percent { font-size: 14px; font-weight: 700; color: var(--accent); }

.lang-item__bar-bg {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lang-item__bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide--active .lang-item__bar-fill {
  transform: scaleX(var(--lang-percent, 0));
}

.slide--active .lang-item:nth-child(1) .lang-item__bar-fill { transition-delay: 0.55s; }
.slide--active .lang-item:nth-child(2) .lang-item__bar-fill { transition-delay: 0.65s; }
.slide--active .lang-item:nth-child(3) .lang-item__bar-fill { transition-delay: 0.75s; }
.slide--active .lang-item:nth-child(4) .lang-item__bar-fill { transition-delay: 0.85s; }
.slide--active .lang-item:nth-child(5) .lang-item__bar-fill { transition-delay: 0.95s; }

/* ── Summary Grid ─────────────────────────────────────────────── */
.summary-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-cell {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
}

.slide--active .summary-cell {
  animation: cellBounceIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.slide--active .summary-cell:nth-child(1) { animation-delay: 0.25s; }
.slide--active .summary-cell:nth-child(2) { animation-delay: 0.35s; }
.slide--active .summary-cell:nth-child(3) { animation-delay: 0.45s; }
.slide--active .summary-cell:nth-child(4) { animation-delay: 0.55s; }
.slide--active .summary-cell:nth-child(5) { animation-delay: 0.65s; }
.slide--active .summary-cell:nth-child(6) { animation-delay: 0.75s; }

@keyframes cellBounceIn {
  0%   { opacity: 0; transform: scale(0.6) translateY(15px); }
  60%  { transform: scale(1.06) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.summary-cell__icon { font-size: 24px; margin-bottom: 6px; }
.summary-cell__value { font-size: 22px; font-weight: 800; color: var(--accent); }
.summary-cell__label { font-size: 11px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }

/* ── Finale ────────────────────────────────────────────────────── */
.finale { gap: 24px; }

.finale__message {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre-line;
  max-width: 320px;
  opacity: 0;
}

.slide--active .finale__message {
  animation: fadeSlideUp 0.7s ease 0.4s both;
}

.finale__signature {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
}

.slide--active .finale__signature {
  animation: fadeSlideUp 0.5s ease 0.8s both;
}

.finale__hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.15);
  letter-spacing: 0.3px;
}

.slide--active .finale__hint {
  animation: fadeSlideUp 0.6s ease 2.5s both, hintGlow 3s ease-in-out 3.5s infinite;
}

@keyframes hintGlow {
  0%, 100% { border-color: rgba(255, 107, 157, 0.15); }
  50%      { border-color: rgba(255, 107, 157, 0.5); }
}

.finale__photo {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
}

.slide--active .finale__photo {
  animation: finalePhotoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes finalePhotoReveal {
  0%   { opacity: 0; transform: scale(0) rotate(-15deg); border-radius: 50%; }
  50%  { border-radius: 30px; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); border-radius: 20px; }
}

.finale__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -30px;
  font-size: 20px;
  opacity: 0;
  animation: floatHeart 4s ease-in-out infinite;
}

/* ── Photo in slides ──────────────────────────────────────────── */
.slide__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.slide--active .slide__photo {
  animation: fadeSlideUp 0.6s ease 0.5s both;
}

/* ── Navigation ───────────────────────────────────────────────── */
.nav-touch {
  position: fixed;
  top: 60px;
  bottom: 0;
  width: 35%;
  z-index: 50;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-touch--left { left: 0; }
.nav-touch--right { right: 0; width: 65%; }
.nav-touch:focus-visible { outline: none; }
.nav-touch:active { background: rgba(255, 255, 255, 0.03); }

/* ── Confetti Canvas ──────────────────────────────────────────── */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
}

/* ── Decorative Elements ──────────────────────────────────────── */
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  animation: decoRingSpin 25s linear infinite;
}

@keyframes decoRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.deco-ring--reverse {
  animation-name: decoRingSpinReverse;
  animation-duration: 30s;
}

@keyframes decoRingSpinReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

.deco-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

/* ── Inline Detail Row ────────────────────────────────────────── */
.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0;
}

.slide--active .detail-row {
  animation: fadeSlideUp 0.5s ease 0.4s both;
}

.detail-row__icon { font-size: 18px; }

/* ── Mini Stats Row ───────────────────────────────────────────── */
.mini-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.slide--active .mini-stats {
  animation: fadeSlideUp 0.4s ease 0.5s both;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: scale(0.7);
}

.slide--active .mini-stat {
  animation: miniStatPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.slide--active .mini-stat:nth-child(1) { animation-delay: 0.55s; }
.slide--active .mini-stat:nth-child(2) { animation-delay: 0.65s; }
.slide--active .mini-stat:nth-child(3) { animation-delay: 0.75s; }

@keyframes miniStatPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(8px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.mini-stat__value { font-size: 20px; font-weight: 800; color: var(--accent); }
.mini-stat__label { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* ── Core Keyframes ───────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heartReveal {
  from { opacity: 0; transform: scale(0) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.3; }
  50%      { transform: scale(1.2); opacity: 0.1; }
}

@keyframes floatHeart {
  0%   { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(-50vh) scale(0.8) rotate(15deg); }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1) rotate(25deg); }
}

/* ── Ripple effect on tap ─────────────────────────────────────── */
.tap-ripple {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleExpand 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 60;
}

@keyframes rippleExpand {
  to { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* ── Responsive: Larger screens ───────────────────────────────── */
@media (min-width: 500px) {
  .slide { padding-left: 40px; padding-right: 40px; }
  .slide__content { max-width: 420px; }
  .big-number { font-size: 88px; }
  .cover__names { font-size: 38px; }
}

@media (min-width: 768px) {
  .slide__content { max-width: 480px; }
  .big-number { font-size: 96px; }
  .nav-touch--left { width: 30%; }
  .nav-touch--right { width: 70%; }
}

@media (min-width: 1024px) {
  .slide__content { max-width: 520px; }
}

/* ── Prefers reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::-webkit-scrollbar { width: 0; height: 0; }
