@font-face {
  font-family: 'Calista';
  src: url('fonts/Calista-.woff2') format('woff2'),
    url('fonts/Calista-.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background: linear-gradient(135deg, #EC5569 0%, #EC5569 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Calista', 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.onboarding-card {
  background: linear-gradient(180deg, #fb909e 0%, #f8f9ff 100%);
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgb(236 86 105);
  width: 340px;
  max-width: 90vw;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), border 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgb(236 86 105);
}

.onboarding-image {
  width: 320px;
  height: 320px;
  background: linear-gradient(145deg, #ec5669 0%, #ec5469 100%);
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgb(255 255 255);
  border: 1px solid rgb(255 175 185);
  transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), border 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-text {
  font-family: 'Calista', 'Inter', Arial, sans-serif;
  font-size: 1.6rem;
  color: #EC5569;
  text-align: center;
  margin-bottom: 2rem;
  min-height: 3.5rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.nav-btn {
  appearance: button;
  background: linear-gradient(145deg, #E63950 0%, #EC5569 100%);
  border: solid transparent;
  border-radius: 50%;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: din-round, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1;
  margin: 0 0.5rem;
  outline: none;
  overflow: visible;
  padding: 0;
  text-align: center;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s, box-shadow .2s, transform .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  width: 3rem;
  height: 3rem;
  box-shadow:
    0 8px 16px rgba(86, 171, 47, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-btn:hover {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
  transform: translateY(-3px) scale(1.08) rotate(-6deg);
  box-shadow:
    0 12px 24px rgba(86, 171, 47, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.nav-btn:active {
  transform: translateY(-1px) scale(0.98) rotate(0deg);
  background: linear-gradient(145deg, #E63950 0%, #E63950 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.10),
    inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.onboarding-dots {
  display: flex;
  gap: 0.4rem;
}

.onboarding-dots span {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.onboarding-dots span:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.onboarding-dots .active {
  background: linear-gradient(145deg, #E63950 0%, #E63950 100%);
  opacity: 1;
  transform: scale(1.2);
  box-shadow:
    0 4px 8px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* CSS */
.get-started-btn {
  font-family: 'Calista', 'Inter', Arial, sans-serif;
  appearance: button;
  background-color: #E63950;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
}

.get-started-btn:after {
  background-clip: padding-box;
  background-color: #EC5569;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.get-started-btn,
.get-started-btn:focus {
  user-select: auto;
}

.get-started-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.get-started-btn:disabled {
  cursor: auto;
}

.get-started-btn:active {
  border-width: 4px 0 0;
  background: none;
}

.get-started-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px rgba(86, 171, 47, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.get-started-btn:hover::before {
  left: 100%;
}

.get-started-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 6px 12px rgba(86, 171, 47, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

@media (max-width: 400px) {
  .onboarding-card {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    width: 98vw;
  }

  .onboarding-image {
    width: 120px;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
  }
}

.valentine-title {
  font-size: 2rem;
  background: linear-gradient(45deg, #E63950, #EC5569, #E63950);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.8s ease-in-out infinite;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.secret-msg-text {
  font-family: 'Calista', 'Inter', Arial, sans-serif;
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 1rem;
}

.secret-msg-text:focus {
  outline: none !important;
  border: 1px solid #E63950;
  box-shadow: 0 0 10px #E63950;
}

/* Heart Animation Styles */
.hearts {
  position: fixed;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 1000;
  /* center the small container exactly at the click point */
  transform: translate(-50%, -50%);
}

.hearts .heart {
  position: absolute;
  list-style: none;
  width: 40px;
  height: 40px;
  margin: 0;
  left: 0;
  top: 0;
  /* no translate here — hearts are positioned by left/top inside the container */
  transform: none;
  opacity: 1;
  will-change: transform, opacity, left, top, filter;
}

.hearts .heart:before,
.hearts .heart:after {
  position: absolute;
  content: "";
  left: 20px;
  top: 0;
  width: 20px;
  height: 30px;
  background: #E63950;
  border-radius: 20px 20px 0 0;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.hearts .heart:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.hearts.flying>.heart:nth-child(even) {
  animation: 1.5s flyingEven ease-out forwards;
}

.hearts.flying>.heart:nth-child(odd) {
  animation: 1.5s flyingOdd ease-out forwards;
}

.hearts.flying>.heart:nth-child(1) {
  animation-delay: 0s;
}

.hearts.flying>.heart:nth-child(2) {
  animation-delay: 0.05s;
}

.hearts.flying>.heart:nth-child(3) {
  animation-delay: 0.1s;
}

.hearts.flying>.heart:nth-child(4) {
  animation-delay: 0.15s;
}

.hearts.flying>.heart:nth-child(5) {
  animation-delay: 0.2s;
}

.hearts.flying>.heart:nth-child(6) {
  animation-delay: 0.25s;
}

@-moz-keyframes flyingEven {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -200%) scale(1.3);
    opacity: 0;
  }
}

@-webkit-keyframes flyingEven {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -200%) scale(1.3);
    opacity: 0;
  }
}

@keyframes flyingEven {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }

  30% {
    transform: translate(-30%, -100%) scale(1.15) rotate(15deg);
    opacity: 1;
  }

  100% {
    transform: translate(-10%, -250%) scale(1.3) rotate(30deg);
    opacity: 0;
  }
}

@keyframes flyingOdd {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }

  30% {
    transform: translate(-70%, -100%) scale(1.15) rotate(-15deg);
    opacity: 1;
  }

  100% {
    transform: translate(-90%, -250%) scale(1.3) rotate(-30deg);
    opacity: 0;
  }
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 99;
}

.x1 {
  left: 6%;
  transform: translateX(-8px) translateY(0px) scale(0.95) rotate(-2deg);
  opacity: 0.65;
  animation: moveclouds 16s linear infinite, floatAround 4.6s ease-in-out infinite alternate;
  animation-delay: -1.2s, -0.4s;
  will-change: transform;
}

.x2 {
  left: 22%;
  transform: translateX(12px) translateY(-6px) scale(0.62) rotate(1deg);
  opacity: 0.88;
  animation: moveclouds 28s linear infinite, floatAround 5.8s ease-in-out infinite alternate;
  animation-delay: -3.8s, -1.6s;
  will-change: transform;
}

.x3 {
  left: 54%;
  transform: translateX(-18px) translateY(8px) scale(0.78) rotate(-1.5deg);
  opacity: 0.78;
  animation: moveclouds 19s linear infinite, floatAround 6.2s ease-in-out infinite alternate;
  animation-delay: -2.4s, -0.9s;
  will-change: transform;
}

.x4 {
  left: 70%;
  transform: translateX(6px) translateY(-10px) scale(0.74) rotate(2deg);
  opacity: 0.92;
  animation: moveclouds 17s linear infinite, floatAround 3.8s ease-in-out infinite alternate;
  animation-delay: -1.8s, -0.2s;
  will-change: transform;
}

.x5 {
  left: 86%;
  transform: translateX(-28px) translateY(14px) scale(0.82) rotate(-3deg);
  opacity: 0.32;
  animation: moveclouds 9s linear infinite, floatAround 2.8s ease-in-out infinite alternate;
  animation-delay: -0.6s, -0.1s;
  will-change: transform;
}

.x6 {
  left: 34%;
  transform: translateX(10px) translateY(-4px) scale(1) rotate(0.5deg);
  opacity: 1;
  animation: moveclouds 11s linear infinite, floatAround 7.2s ease-in-out infinite alternate;
  animation-delay: -2.0s, -1.2s;
  will-change: transform;
}

.x7 {
  left: 12%;
  transform: translateX(4px) translateY(6px) scale(0.92) rotate(-1deg);
  opacity: 0.6;
  animation: moveclouds 14.5s linear infinite, floatAround 4.4s ease-in-out infinite alternate;
  animation-delay: -3.2s, -0.6s;
  will-change: transform;
}

.x8 {
  left: 46%;
  transform: translateX(-6px) translateY(-8px) scale(0.58) rotate(1.8deg);
  opacity: 0.9;
  animation: moveclouds 26s linear infinite, floatAround 5.4s ease-in-out infinite alternate;
  animation-delay: -4.6s, -2.2s;
  will-change: transform;
}

.x9 {
  left: 66%;
  transform: translateX(20px) translateY(10px) scale(0.82) rotate(-2.2deg);
  opacity: 0.79;
  animation: moveclouds 21s linear infinite, floatAround 3.6s ease-in-out infinite alternate;
  animation-delay: -1.0s, -0.3s;
  will-change: transform;
}

.x10 {
  left: 36%;
  transform: translateX(-14px) translateY(-12px) scale(0.73) rotate(0.6deg);
  opacity: 0.9;
  animation: moveclouds 18.5s linear infinite, floatAround 4.0s ease-in-out infinite alternate;
  animation-delay: -2.6s, -0.8s;
  will-change: transform;
}

.x11 {
  left: 9%;
  transform: translateX(30px) translateY(18px) scale(0.78) rotate(-4deg);
  opacity: 0.28;
  animation: moveclouds 8.2s linear infinite, floatAround 2.6s ease-in-out infinite alternate;
  animation-delay: -0.4s, -0.05s;
  will-change: transform;
}

.x12 {
  left: 2%;
  transform: translateX(-4px) translateY(4px) scale(1.02) rotate(0deg);
  opacity: 0.98;
  animation: moveclouds 12s linear infinite, floatAround 6.8s ease-in-out infinite alternate;
  animation-delay: -3.0s, -1.4s;
  will-change: transform;
}

.x13 {
  left: 52%;
  transform: translateX(8px) translateY(-6px) scale(0.96) rotate(1deg);
  opacity: 0.6;
  animation: moveclouds 15.2s linear infinite, floatAround 4.2s ease-in-out infinite alternate;
  animation-delay: -1.6s, -0.5s;
  will-change: transform;
}

.x14 {
  left: 42%;
  transform: translateX(-22px) translateY(12px) scale(0.64) rotate(-1.2deg);
  opacity: 0.9;
  animation: moveclouds 24.5s linear infinite, floatAround 5.6s ease-in-out infinite alternate;
  animation-delay: -4.0s, -2.0s;
  will-change: transform;
}

.x15 {
  left: 78%;
  transform: translateX(16px) translateY(-10px) scale(0.8) rotate(2.4deg);
  opacity: 0.82;
  animation: moveclouds 20.8s linear infinite, floatAround 3.9s ease-in-out infinite alternate;
  animation-delay: -2.2s, -0.7s;
  will-change: transform;
}

.x16 {
  left: 88%;
  transform: translateX(-10px) translateY(6px) scale(0.76) rotate(-0.8deg);
  opacity: 0.88;
  animation: moveclouds 17.9s linear infinite, floatAround 4.8s ease-in-out infinite alternate;
  animation-delay: -1.4s, -0.6s;
  will-change: transform;
}

.x17 {
  left: 11%;
  transform: translateX(26px) translateY(-16px) scale(0.8) rotate(3deg);
  opacity: 0.35;
  animation: moveclouds 7.6s linear infinite, floatAround 2.2s ease-in-out infinite alternate;
  animation-delay: -0.7s, -0.15s;
  will-change: transform;
}

.x18 {
  left: 40%;
  transform: translateX(-12px) translateY(10px) scale(1.01) rotate(-0.4deg);
  opacity: 0.97;
  animation: moveclouds 11.3s linear infinite, floatAround 6.6s ease-in-out infinite alternate;
  animation-delay: -2.8s, -1.1s;
  will-change: transform;
}

.x19 {
  left: 44%;
  transform: translateX(2px) translateY(-2px) scale(0.9) rotate(0.2deg);
  opacity: 0.62;
  animation: moveclouds 15.8s linear infinite, floatAround 4.1s ease-in-out infinite alternate;
  animation-delay: -1.0s, -0.45s;
  will-change: transform;
}

.x20 {
  left: 4.5%;
  transform: translateX(-34px) translateY(20px) scale(0.6) rotate(-5deg);
  opacity: 0.9;
  animation: moveclouds 26.2s linear infinite, floatAround 5.2s ease-in-out infinite alternate;
  animation-delay: -4.2s, -2.4s;
  will-change: transform;
}

@-webkit-keyframes moveclouds {
  0% {
    top: 500px;
  }

  100% {
    top: -500px;
  }
}

@keyframes moveclouds {
  0% {
    top: 500px;
  }

  100% {
    top: -500px;
  }
}

@-webkit-keyframes sideWays {
  0% {
    margin-left: 0px;
  }

  100% {
    margin-left: 50px;
  }
}

@keyframes sideWays {
  0% {
    margin-left: 0px;
  }

  100% {
    margin-left: 50px;
  }
}

@keyframes swayWays {
  0% {
    transform: rotate(12deg);
    left: -0.3%;
  }

  33% {
    transform: rotate(-2deg);
    left: 0.7%;
  }

  100% {
    transform: rotate(0deg);
    left: -12%;
  }
}

@keyframes floatAround {
  0% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateX(6px) translateY(-8px) rotate(1deg);
  }

  50% {
    transform: translateX(-6px) translateY(6px) rotate(-1deg);
  }

  75% {
    transform: translateX(10px) translateY(-4px) rotate(0.5deg);
  }

  100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
}

/* New heart float animations used by JS (smooth upward float, slight drift and fade) */
@keyframes heartFloatEven {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
  }
  40% {
    transform: translate3d(6px, -48px, 0) scale(1.02) rotate(3deg);
    opacity: 1;
  }
  80% {
    transform: translate3d(12px, -110px, 0) scale(1.05) rotate(6deg);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(18px, -160px, 0) scale(1.06) rotate(8deg);
    opacity: 0;
    filter: blur(0.6px);
  }
}

@keyframes heartFloatOdd {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
  }
  40% {
    transform: translate3d(10px, -40px, 0) scale(1.01) rotate(-4deg);
    opacity: 1;
  }
  80% {
    transform: translate3d(20px, -100px, 0) scale(1.04) rotate(-8deg);
    opacity: 0.96;
  }
  100% {
    transform: translate3d(32px, -140px, 0) scale(1.05) rotate(-10deg);
    opacity: 0;
    filter: blur(0.6px);
  }
}

.heart {
  position: absolute;
}

.heart:before,
.heart:after {
  position: absolute;
  content: "";
  left: 18px;
  top: 0;
  width: 18px;
  height: 30px;
  background: #CC2022;
  -moz-border-radius: 20px 50% 0 0;
  border-radius: 30px 30px 0 0;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  transform-origin: 0 100%;
}

.heart:after {
  left: 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

.full-viewport-height {
  height: 100vh;
}

@supports (height: 100dvh) {
  .full-viewport-height {
    height: 100dvh;
  }
}
