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

:root {
  --pink: #ff4d6d;
  --pink-light: #ffe5ec;
  --pink-soft: #ff8fa3;
  --rose: #e5183a;
  --white: #ffffff;
  --cream: #fff5f7;
  --dark: #0e0e0e;
  --dark-subtle: #161616;
  --text: #1a1a1a;
  --text-light: #6a6a6a;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
  touch-action: none;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}

body {
  font-family:
    "Quicksand",
    -apple-system,
    sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.welcome-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  padding: 40px;
}

.welcome-heart {
  font-size: 60px;
  color: var(--pink);
  margin-bottom: 28px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.welcome-content h1 {
  font-family: "Satisfy", cursive;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--rose);
  margin-bottom: 12px;
  font-weight: 400;
}

.welcome-content > p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  color: var(--white);
  background: var(--pink);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.welcome-btn:hover {
  background: var(--rose);
}

.welcome-btn i {
  font-size: 0.85rem;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.12);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  60% {
    transform: scale(1);
  }
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.float-heart {
  position: absolute;
  color: var(--pink-soft);
  opacity: 0;
  animation: floatUp 12s linear forwards;
}

.float-flag {
  position: absolute;
  font-size: 14px;
  opacity: 0;
  animation: floatUpFlag 18s linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.13;
  }
  90% {
    opacity: 0.13;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatUpFlag {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  90% {
    opacity: 0.08;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.section-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    background 0.4s ease,
    border-color 0.4s ease;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-nav.visible {
  opacity: 1;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-dot.active {
  background: var(--pink);
  width: 20px;
  border-radius: 10px;
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px 8px;
  border-radius: 4px;
}

.nav-dot:hover::after {
  opacity: 1;
}

body.dark-active .section-nav {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-active .nav-dot {
  background: rgba(255, 255, 255, 0.18);
}

body.dark-active .nav-dot.active {
  background: var(--pink);
}

body.dark-active .nav-dot::after {
  background: rgba(20, 20, 20, 0.95);
  color: #ccc;
}

.scroll-hint {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.scroll-hint-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--pink-soft);
  border-radius: 11px;
  position: relative;
}

.scroll-hint-wheel {
  width: 3px;
  height: 7px;
  background: var(--pink);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

@keyframes scrollWheel {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(10px);
  }
}

.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  overflow: hidden;
}

.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  display: flex;
  overflow: hidden;
  transform: translateZ(0);

  background: linear-gradient(
    180deg,
    #9e1b3c 0%,
    #b5244a 8%,
    #a01e3e 20%,
    #8a1835 60%,
    #6e1230 90%,
    #55102a 100%
  );
}

.curtain-left {
  left: 0;
  transform: translateX(-101%);
  flex-direction: row;
}

.curtain-right {
  left: 50%;
  transform: translateX(101%);
  flex-direction: row-reverse;
}

.curtain-fold {
  flex: 1;
  height: 100%;
  position: relative;
}

.curtain-left .curtain-fold {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    transparent 45%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.curtain-right .curtain-fold {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    transparent 45%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.curtain-fold:nth-child(odd) {
  opacity: 0.9;
}

.curtain-fold:nth-child(even) {
  opacity: 1;
}

.curtain-fold:nth-child(2)::after,
.curtain-fold:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 5%;
  left: 30%;
  width: 40%;
  height: 90%;
  background: rgba(255, 200, 200, 0.03);
  pointer-events: none;
}

.curtain-edge {
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.curtain-left .curtain-edge {
  right: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.curtain-right .curtain-edge.right {
  left: 0;
  background: linear-gradient(
    270deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.curtain-valance {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 60px;
  z-index: 3;
  background: linear-gradient(180deg, #7a1430 0%, #8e1a38 40%, #6e122e 100%);
  border-bottom: 3px solid #d4a843;
  opacity: 0;
  transform: translateY(-100%);

  mask-image: radial-gradient(
    ellipse 28px 12px at 28px 100%,
    transparent 97%,
    black 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 28px 12px at 28px 100%,
    transparent 97%,
    black 100%
  );
  mask-size: 56px 100%;
  -webkit-mask-size: 56px 100%;
}

.curtain-valance::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #d4a843 0px,
    #d4a843 4px,
    transparent 4px,
    transparent 10px
  );
}

.curtain-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

.curtain-confetti-heart {
  position: absolute;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
}

.curtain-love-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.curtain-love-word {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  pointer-events: none;
  text-shadow:
    0 2px 12px rgba(255, 77, 109, 0.35),
    0 0 20px rgba(255, 77, 109, 0.15);
  letter-spacing: 1px;
}

.curtain-love-word-falling {
  position: absolute;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  will-change: transform;
  pointer-events: none;
  text-shadow:
    0 2px 12px rgba(255, 77, 109, 0.35),
    0 0 20px rgba(255, 77, 109, 0.15);
  letter-spacing: 1px;
}

.panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: 0;
  overflow: hidden;
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 800px;
}

.section-icon {
  font-size: 32px;
  color: var(--pink);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Satisfy", cursive;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--rose);
  margin-bottom: 6px;
  font-weight: 400;
}

.section-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hero-panel .panel-bg {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 40%, #fff0f3 100%);
}

.hero-heart {
  font-size: 52px;
  color: var(--pink);
  margin-bottom: 28px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.hero-panel h1 {
  font-family: "Satisfy", cursive;
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--rose);
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 400;
}

.hero-panel h2 {
  font-family: "Satisfy", cursive;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--pink);
  font-weight: 400;
  margin-bottom: 28px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-divider span {
  width: 50px;
  height: 1px;
  background: var(--pink-soft);
}

.hero-divider i {
  color: var(--pink);
  font-size: 12px;
}

.photo-panel .panel-bg {
  background: radial-gradient(
    ellipse at 50% 40%,
    #1a0a1e 0%,
    #0e0515 40%,
    #080210 100%
  );
}

.photo-panel .panel-bg::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65vmin;
  height: 65vmin;
  background: radial-gradient(
    circle,
    rgba(255, 77, 109, 0.2) 0%,
    rgba(200, 40, 90, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: photoGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.photo-panel .panel-bg::after {
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 35vh;
  background: radial-gradient(
    ellipse,
    rgba(180, 60, 120, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

@keyframes photoGlow {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.photo-content {
  position: absolute !important;
  inset: 0;
  padding: 0 !important;
  max-width: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.heart-flip-container {
  width: min(55vh, 72vw);
  height: min(55vh, 72vw);
  perspective: 1200px;
  flex-shrink: 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.heart-flip-container:active {
  cursor: grabbing;
}

.heart-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: none;
}

.heart-flip-front,
.heart-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: url(#heart-clip);
}

.heart-flip-front {
  z-index: 2;
}

.heart-flip-back {
  transform: rotateY(180deg);
  background: #e5183a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-flip-back-content {
  text-align: center;
  padding: 20%;
}

.heart-flip-back-content h3 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: white;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.heart-flip-back-content .flip-heart {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: white;
  display: block;
  margin-top: 10px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.photo-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-caption-box {
  margin-top: 28px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  padding: 0 20px;
}

.photo-caption {
  font-family: "Satisfy", cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 400;
}

.photo-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.photo-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--twinkle-dur, 3s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.heartbeat-panel .panel-bg {
  background: linear-gradient(
    135deg,
    #1a0a1e 0%,
    #2d1233 30%,
    #1e0f28 60%,
    #160a1c 100%
  );
}

.heartbeat-panel .section-title,
.heartbeat-panel .section-sub {
  color: rgba(255, 255, 255, 0.9);
}

.heartbeat-panel .section-icon i {
  color: var(--pink);
}

.heartbeat-panel .ecg-endpoint span {
  color: rgba(255, 255, 255, 0.6);
}

.heartbeat-panel .ecg-circle {
  background: #1e0f28;
  border-color: var(--pink);
  box-shadow:
    0 0 0 6px rgba(255, 77, 109, 0.15),
    0 0 30px rgba(255, 77, 109, 0.1);
}

.heartbeat-panel .ecg-number {
  color: var(--pink);
}

.heartbeat-panel .ecg-unit {
  color: rgba(255, 255, 255, 0.5);
}

.ecg-wrapper {
  position: relative;
  margin: 28px auto 16px;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ecg-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 50px;
}

.ecg-endpoint i {
  font-size: 24px;
  color: var(--pink);
  animation: pulse 1s ease-in-out infinite;
}

.ecg-endpoint.right i {
  animation-delay: 0.5s;
}

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

.ecg-endpoint span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.ecg-track {
  flex: 1;
  height: 80px;
  overflow: hidden;
}

.ecg-svg {
  width: 100%;
  height: 100%;
}

.ecg-trace {
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.ecg-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.9);
}

.ecg-number {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.65rem, 2.2vw, 0.82rem);
  font-weight: 700;
  color: var(--rose);
  line-height: 1.2;
}

.ecg-unit {
  font-size: 0.6rem;
  color: var(--text-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heartbeat-rate {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.heartbeat-rate i {
  color: var(--pink);
}

.reasons-panel .panel-bg {
  background: linear-gradient(135deg, #1a0a12 0%, #200e18 50%, #150810 100%);
}

.reasons-panel .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.reasons-panel .section-sub {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 20px auto 0;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  transition:
    transform 0.3s,
    border-color 0.3s;
  position: relative;
}

.reason-num {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 77, 109, 0.2);
  font-family: "Quicksand", sans-serif;
}

.reason-item i {
  font-size: 20px;
  color: var(--pink);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 109, 0.1);
  border-radius: 10px;
}

.reason-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  font-weight: 500;
}

.countdown-panel .panel-bg {
  background: linear-gradient(
    135deg,
    #1a0a12 0%,
    #2d0a1e 30%,
    #1e0818 60%,
    #150710 100%
  );
}

.countdown-panel .section-title,
.countdown-panel .section-sub {
  color: rgba(255, 255, 255, 0.9);
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 24px auto;
  max-width: 560px;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 14px 10px 10px;
  backdrop-filter: blur(4px);
}

.cd-value {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}

.cd-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.cd-sep {
  font-size: 1.3rem;
  color: rgba(255, 77, 109, 0.4);
  font-weight: 300;
  padding-top: 12px;
}

.countdown-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-soft), var(--rose));
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-fill::after {
  display: none;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.progress-date i {
  color: var(--pink);
  font-size: 0.65rem;
}

.progress-percent {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
}

.messages-panel .panel-bg {
  background: linear-gradient(135deg, #fff8f0 0%, #fff5f7 50%, #fef0f5 100%);
}

.messages-wrapper {
  max-width: 480px;
  margin: 24px auto 0;
  text-align: center;
  position: relative;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.msg-quote-mark {
  font-family: "Satisfy", cursive;
  font-size: 3rem;
  color: var(--pink-light);
  line-height: 1;
  user-select: none;
}

.msg-quote-mark.top {
  align-self: flex-start;
  margin-bottom: -8px;
}

.msg-quote-mark.bottom {
  align-self: flex-end;
  margin-top: -8px;
}

.msg-text {
  font-family: "Satisfy", cursive;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  line-height: 1.8;
  color: var(--text);
  padding: 8px 0;
  height: 100px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.msg-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.msg-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
  color: var(--pink);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-controls button:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.msg-progress {
  flex: 1;
  height: 3px;
  background: var(--pink-light);
  border-radius: 3px;
  overflow: hidden;
}

.msg-progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.dreams-panel .panel-bg {
  background: linear-gradient(135deg, #180808 0%, #240e10 50%, #120606 100%);
}

.dreams-panel .panel-bg::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(
    circle,
    rgba(220, 50, 60, 0.12) 0%,
    rgba(160, 30, 40, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: dreamsGlow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.dreams-panel .panel-bg::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 30vh;
  background: radial-gradient(
    ellipse,
    rgba(180, 40, 50, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

@keyframes dreamsGlow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.dreams-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 24px auto 0;
}

.dream-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: left;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.dream-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dream-item-icon i {
  font-size: 18px;
  color: var(--pink);
}

.dream-item-text h4 {
  font-family: "Satisfy", cursive;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 400;
}

.dream-item-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.letters-panel .panel-bg {
  background: linear-gradient(135deg, #1a0a10 0%, #260e1a 50%, #180810 100%);
}

.letters-panel .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.letters-panel .section-sub {
  color: rgba(255, 255, 255, 0.4);
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 440px;
  margin: 16px auto 0;
}

.letter-card {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.letter-front,
.letter-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.letter-front {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.12);
}

.letter-front i {
  font-size: 24px;
  color: var(--pink);
  margin-bottom: 6px;
}

.letter-front span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.letter-back {
  background: var(--pink);
  color: var(--white);
  transform: rotateY(180deg);
}

.letter-back p {
  font-size: 0.75rem;
  line-height: 1.5;
}

.letter-card.flipped .letter-front {
  transform: rotateY(180deg);
}

.letter-card.flipped .letter-back {
  transform: rotateY(0);
}

.timeline-panel .panel-bg {
  background: linear-gradient(135deg, #140810 0%, #1e0c16 50%, #100608 100%);
}

.timeline-panel .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 380px;
  margin: 20px auto 0;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 77, 109, 0.2);
}

.timeline-dot i {
  font-size: 14px;
  color: var(--pink);
}

.timeline-content {
  padding-top: 5px;
  text-align: left;
}

.timeline-content h4 {
  font-family: "Satisfy", cursive;
  font-size: 1.2rem;
  color: var(--pink);
  margin-bottom: 3px;
  font-weight: 400;
}

.timeline-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.stars-panel .panel-bg {
  background: #050510;
}

.stars-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.stars-poem {
  font-family: "Satisfy", cursive;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 2.4;
  max-width: 480px;
  margin: 16px auto;
  font-weight: 400;
}

.stars-heart {
  font-size: 40px;
  color: var(--pink);
  margin-top: 16px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.distance-panel .panel-bg {
  background: linear-gradient(160deg, #120610 0%, #1c0a14 50%, #0e0508 100%);
}

.distance-panel .panel-bg::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vmin;
  height: 50vmin;
  background: radial-gradient(
    circle,
    rgba(255, 77, 109, 0.08) 0%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.distance-panel .section-title {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
}

.dist-sub {
  color: rgba(255, 255, 255, 0.35) !important;
  font-family: "Satisfy", cursive;
  font-size: 1rem;
  margin-bottom: 8px;
}

.dist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 20px auto 24px;
  max-width: 260px;
  width: 100%;
}

.dist-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dist-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.08);
  border: 2px solid rgba(255, 77, 109, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dist-avatar i {
  font-size: 20px;
  color: var(--pink);
}

.dist-person-name {
  font-family: "Satisfy", cursive;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.dist-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 0;
  position: relative;
}

.dist-dotted-line {
  width: 2px;
  height: 32px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 77, 109, 0.3) 0px,
    rgba(255, 77, 109, 0.3) 4px,
    transparent 4px,
    transparent 10px
  );
}

@keyframes heartFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4px) scale(1.15);
    opacity: 1;
  }
}

.dist-km-badge {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 20px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.15);
  border-radius: 20px;
  margin: 6px 0;
}

.dist-km-number {
  font-family: "Quicksand", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.5px;
}

.dist-km-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dist-footer-quote {
  font-family: "Satisfy", cursive;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
}

.loveme-panel .panel-bg {
  background: linear-gradient(135deg, #1c0610 0%, #2a0c1a 40%, #180510 100%);
}

.loveme-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.loveme-panel .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.loveme-panel .section-icon i {
  color: var(--pink);
}

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

.loveme-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.loveme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.loveme-yes {
  background: var(--pink);
  color: var(--white);
  position: relative;
  z-index: 3;
}

.loveme-yes:hover {
  background: var(--rose);
}

.loveme-no {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.no-explosion-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
}

.yes-shout {
  position: fixed;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 40;
  white-space: nowrap;
}

.loveme-result {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
}

.loveme-result.visible {
  display: flex;
}

.loveme-result-title {
  font-family: "Satisfy", cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--pink);
  margin-bottom: 12px;
  font-weight: 400;
}

.loveme-result-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.loveme-result-img {
  width: min(280px, 70vw);
  border-radius: 16px;
  overflow: hidden;
}

.loveme-result-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.promise-panel .panel-bg {
  background: var(--cream);
}

.promise-title {
  font-family: "Satisfy", cursive;
  font-size: clamp(2rem, 6vw, 2.75rem);
  color: var(--rose);
  margin-bottom: 20px;
  font-weight: 400;
}

.promise-text {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  line-height: 2;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.promise-signature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--white);
  margin-bottom: 36px;
}

.promise-signature i {
  font-size: 14px;
  color: var(--pink);
  animation: pulse 1.5s ease-in-out infinite;
}

.promise-signature span {
  font-family: "Satisfy", cursive;
  font-size: 1.3rem;
  color: var(--rose);
}

.footer-text {
  margin-top: 16px;
}

.footer-hearts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--pink);
}

.footer-hearts i:nth-child(1) {
  animation: pulse 1.5s ease-in-out infinite;
}
.footer-hearts i:nth-child(2) {
  animation: pulse 1.5s ease-in-out infinite 0.2s;
}
.footer-hearts i:nth-child(3) {
  animation: pulse 1.5s ease-in-out infinite 0.4s;
}

.footer-text p {
  color: var(--text-light);
  font-size: 0.8rem;
}

.click-effect {
  display: none;
}

.confetti-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  color: var(--pink);
  font-size: 14px;
  will-change: transform;
}

@media (max-width: 768px) {
  .section-nav {
    bottom: 16px;
    gap: 8px;
    padding: 6px 12px;
  }

  .nav-dot {
    width: 5px;
    height: 5px;
  }

  .nav-dot.active {
    width: 16px;
  }

  .panel-content {
    padding: 28px 16px;
  }

  .section-icon {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .hero-heart {
    font-size: 42px;
    margin-bottom: 20px;
  }

  .photo-frame {
    width: 210px;
    height: 260px;
    margin-bottom: 18px;
  }

  .ecg-wrapper {
    max-width: 420px;
  }
  .ecg-track {
    height: 60px;
  }
  .ecg-circle {
    width: 100px;
    height: 100px;
  }
  .ecg-number {
    font-size: 0.65rem;
  }
  .ecg-unit {
    font-size: 0.55rem;
  }

  .countdown-grid {
    gap: 4px;
  }
  .cd-item {
    min-width: 48px;
    padding: 10px 6px 8px;
  }
  .cd-sep {
    font-size: 1rem;
    padding-top: 8px;
  }

  .reasons-grid {
    gap: 8px;
  }

  .reason-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .reason-item i {
    font-size: 16px;
    width: 32px;
    height: 32px;
  }
  .reason-item span {
    font-size: 0.78rem;
  }

  .dreams-list {
    gap: 10px;
    max-width: 360px;
  }
  .dream-item {
    padding: 14px 16px;
    gap: 14px;
  }
  .dream-item-icon {
    width: 40px;
    height: 40px;
  }
  .dream-item-icon i {
    font-size: 15px;
  }
  .dream-item-text h4 {
    font-size: 0.95rem;
  }

  .letters-grid {
    gap: 10px;
    max-width: 340px;
  }

  .letter-front i {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .letter-front span {
    font-size: 0.68rem;
  }
  .letter-back p {
    font-size: 0.62rem;
    line-height: 1.4;
  }

  .timeline {
    gap: 18px;
  }
  .timeline-dot {
    width: 36px;
    height: 36px;
  }
  .timeline-dot i {
    font-size: 13px;
  }
  .timeline-content h4 {
    font-size: 1.05rem;
  }
  .timeline-content p {
    font-size: 0.8rem;
  }

  .dist-avatar {
    width: 52px;
    height: 52px;
  }
  .dist-avatar i {
    font-size: 18px;
  }
  .dist-km-number {
    font-size: 1.4rem;
  }
  .dist-footer-quote {
    font-size: 0.88rem;
    padding: 0 12px;
  }

  .promise-signature {
    padding: 10px 20px;
  }
  .promise-signature span {
    font-size: 1.1rem;
  }

  .scroll-hint {
    bottom: 24px;
  }
  .scroll-hint-mouse {
    width: 18px;
    height: 28px;
  }

  .loveme-buttons {
    gap: 18px;
  }
  .loveme-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

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

  .letters-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 240px;
  }

  .ecg-circle {
    width: 86px;
    height: 86px;
  }
  .ecg-number {
    font-size: 0.58rem;
  }
  .ecg-track {
    height: 50px;
  }
  .heart-pulse i {
    font-size: 22px;
  }
  .heartbeat-visual {
    gap: 16px;
  }

  .cd-item {
    min-width: 42px;
    padding: 8px 4px 6px;
  }
  .cd-sep {
    font-size: 0.85rem;
  }
  .cd-label {
    font-size: 0.55rem;
  }

  .dreams-list {
    max-width: 280px;
  }

  .dist-avatar {
    width: 48px;
    height: 48px;
  }
  .dist-avatar i {
    font-size: 16px;
  }
  .dist-km-badge {
    padding: 6px 16px;
  }
  .dist-km-number {
    font-size: 1.3rem;
  }
  .dist-dotted-line {
    height: 24px;
  }

  .loveme-buttons {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .loveme-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
  .loveme-result-img {
    width: min(240px, 80vw);
  }
}

@media (max-width: 380px) {
  .hero-panel h1 {
    font-size: 1.75rem;
  }
  .hero-panel h2 {
    font-size: 1.25rem;
  }

  .photo-frame {
    width: 170px;
    height: 210px;
  }

  .ecg-circle {
    width: 76px;
    height: 76px;
  }
  .ecg-number {
    font-size: 0.52rem;
  }
}
