:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: #792b49;
  background: #f5bdcb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 280px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgb(255 255 255 / 93%) 0 2px, rgb(255 255 255 / 34%) 3px, transparent 12px),
    radial-gradient(circle at 83% 18%, rgb(255 255 255 / 91%) 0 2px, rgb(255 255 255 / 29%) 4px, transparent 14px),
    radial-gradient(circle at 91% 47%, rgb(255 255 255 / 80%) 0 3px, rgb(255 255 255 / 24%) 5px, transparent 15px),
    radial-gradient(circle at 9% 62%, rgb(255 255 255 / 85%) 0 2px, rgb(255 255 255 / 27%) 4px, transparent 13px),
    radial-gradient(circle at 72% 82%, rgb(255 255 255 / 92%) 0 2px, rgb(255 255 255 / 30%) 4px, transparent 13px),
    radial-gradient(circle at 36% 93%, rgb(255 255 255 / 83%) 0 2px, rgb(255 255 255 / 25%) 4px, transparent 12px),
    radial-gradient(ellipse at 47% 46%, rgb(255 255 255 / 61%), transparent 32%),
    radial-gradient(ellipse at 12% 15%, rgb(255 246 248 / 80%), transparent 31%),
    radial-gradient(ellipse at 90% 76%, rgb(255 226 235 / 79%), transparent 34%),
    radial-gradient(ellipse at 4% 72%, rgb(255 237 242 / 56%), transparent 27%),
    linear-gradient(155deg, #f9d1d8 0%, #f5b8c8 46%, #efacc2 100%);
}

.scene::before,
.scene::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.scene::before {
  top: 14%;
  left: 2%;
  width: 94vw;
  height: 42vh;
  max-width: 980px;
  background:
    radial-gradient(ellipse at 22% 58%, rgb(255 255 255 / 58%) 0 13%, transparent 38%),
    radial-gradient(ellipse at 43% 35%, rgb(255 255 255 / 48%) 0 16%, transparent 43%),
    radial-gradient(ellipse at 67% 58%, rgb(255 249 250 / 49%) 0 18%, transparent 42%),
    radial-gradient(ellipse at 88% 40%, rgb(255 255 255 / 38%) 0 12%, transparent 38%);
  filter: blur(30px);
}

.scene::after {
  right: -5%;
  bottom: -7%;
  width: 84vw;
  height: 40vh;
  max-width: 840px;
  background:
    radial-gradient(ellipse at 18% 54%, rgb(255 252 252 / 46%) 0 14%, transparent 38%),
    radial-gradient(ellipse at 45% 38%, rgb(255 245 248 / 48%) 0 18%, transparent 42%),
    radial-gradient(ellipse at 73% 58%, rgb(255 255 255 / 54%) 0 15%, transparent 40%);
  filter: blur(34px);
}

.ambient {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 13%, rgb(255 255 255 / 72%) 0 2px, transparent 9px),
    radial-gradient(circle at 68% 21%, rgb(255 255 255 / 77%) 0 3px, transparent 12px),
    radial-gradient(circle at 94% 31%, rgb(255 255 255 / 70%) 0 2px, transparent 10px),
    radial-gradient(circle at 6% 44%, rgb(255 255 255 / 72%) 0 3px, transparent 13px),
    radial-gradient(circle at 79% 58%, rgb(255 255 255 / 68%) 0 2px, transparent 10px),
    radial-gradient(circle at 25% 74%, rgb(255 255 255 / 74%) 0 2px, transparent 11px),
    radial-gradient(circle at 61% 91%, rgb(255 255 255 / 73%) 0 3px, transparent 12px);
  filter: blur(1px);
  content: "";
}

.ambient-heart,
.sparkle {
  position: absolute;
  display: block;
  user-select: none;
}

.ambient-heart {
  color: rgb(255 250 251 / 88%);
  font-family: Arial, sans-serif;
  line-height: 1;
  text-shadow:
    0 1px 2px rgb(255 255 255 / 88%),
    0 4px 9px rgb(173 61 98 / 13%),
    0 10px 24px rgb(255 255 255 / 40%);
  filter: drop-shadow(0 0 8px rgb(255 255 255 / 55%));
  animation: ambient-float 5.8s ease-in-out infinite alternate;
}

.ambient-heart--1 { top: 8%; left: 9%; font-size: clamp(26px, 7vw, 54px); animation-delay: -1.7s; }
.ambient-heart--2 { top: 14%; right: 12%; font-size: clamp(32px, 8vw, 62px); animation-delay: -3.2s; }
.ambient-heart--3 { top: 28%; left: 2%; font-size: 24px; opacity: .7; animation-delay: -.6s; }
.ambient-heart--4 { top: 42%; right: 4%; font-size: 21px; opacity: .72; animation-delay: -2.6s; }
.ambient-heart--5 { bottom: 22%; left: 8%; font-size: clamp(24px, 6vw, 42px); animation-delay: -4s; }
.ambient-heart--6 { right: 9%; bottom: 12%; font-size: clamp(30px, 7vw, 50px); animation-delay: -1.2s; }
.ambient-heart--7 { top: 56%; left: 17%; font-size: 18px; opacity: .64; animation-delay: -3.7s; }
.ambient-heart--8 { top: 4%; left: 48%; font-size: 16px; opacity: .65; animation-delay: -2.2s; }
.ambient-heart--9 { right: 27%; bottom: 6%; font-size: 19px; opacity: .65; animation-delay: -.9s; }
.ambient-heart--10 { top: 34%; right: 23%; font-size: 14px; opacity: .55; animation-delay: -4.4s; }

.sparkle {
  color: rgb(255 255 255 / 88%);
  font-family: Arial, sans-serif;
  text-shadow: 0 0 12px rgb(255 255 255 / 95%);
  animation: twinkle 2.4s ease-in-out infinite alternate;
}

.sparkle--1 { top: 18%; left: 49%; font-size: 29px; }
.sparkle--2 { top: 36%; left: 7%; font-size: 22px; animation-delay: -.8s; }
.sparkle--3 { top: 55%; right: 10%; font-size: 26px; animation-delay: -1.4s; }
.sparkle--4 { bottom: 24%; left: 30%; font-size: 18px; animation-delay: -.3s; }
.sparkle--5 { top: 10%; right: 31%; font-size: 17px; animation-delay: -1.8s; }
.sparkle--6 { bottom: 10%; right: 45%; font-size: 24px; animation-delay: -1.1s; }

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    max(24px, env(safe-area-inset-top))
    clamp(18px, 5vw, 38px)
    max(24px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.985);
  transition:
    opacity 480ms ease,
    transform 560ms cubic-bezier(.2, .75, .25, 1),
    visibility 560ms;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.page.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.page.is-leaving {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  transform: translateY(-22px) scale(1.015);
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: auto;
}

.page-content--intro {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.2svh, 30px);
}

.glass-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgb(255 255 255 / 82%);
  background:
    radial-gradient(ellipse at 24% 4%, rgb(255 255 255 / 58%), transparent 40%),
    linear-gradient(145deg, rgb(255 255 255 / 47%), rgb(255 250 244 / 40%)),
    rgb(255 249 250 / 28%);
  box-shadow:
    0 26px 56px rgb(127 47 73 / 12%),
    0 0 34px 13px rgb(255 255 255 / 40%),
    0 6px 14px rgb(133 54 74 / 7%),
    inset 0 2px 3px rgb(255 255 255 / 98%),
    inset 0 -5px 14px rgb(228 194 182 / 17%);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  text-align: center;
}

.glass-card::before,
.glass-card::after {
  position: absolute;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.glass-card::before {
  z-index: -1;
  inset: -11px -9px;
  background:
    radial-gradient(ellipse at 10% 47%, rgb(255 255 255 / 88%) 0 8%, transparent 33%),
    radial-gradient(ellipse at 35% 2%, rgb(255 255 255 / 82%) 0 12%, transparent 34%),
    radial-gradient(ellipse at 73% 0%, rgb(255 255 255 / 76%) 0 10%, transparent 32%),
    radial-gradient(ellipse at 94% 52%, rgb(255 255 255 / 83%) 0 9%, transparent 34%),
    radial-gradient(ellipse at 38% 100%, rgb(255 245 249 / 88%) 0 12%, transparent 35%);
  filter: blur(17px);
  opacity: .95;
}

.glass-card::after {
  z-index: 0;
  inset: 7px;
  border: 1px solid rgb(255 255 255 / 56%);
  background:
    linear-gradient(118deg, transparent 10%, rgb(255 255 255 / 34%) 24%, transparent 38% 72%, rgb(255 255 255 / 16%)),
    linear-gradient(180deg, rgb(255 255 255 / 19%), transparent 34%);
  box-shadow:
    inset 0 1px 3px rgb(255 255 255 / 76%),
    inset 0 -1px 2px rgb(255 255 255 / 27%);
  background-size: 220% 100%, 100% 100%;
  animation: glass-sheen 8s ease-in-out infinite;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.greeting-card {
  display: grid;
  min-height: min(56svh, 520px);
  place-items: center;
  padding: clamp(32px, 7svh, 68px) 20px;
  border-radius: clamp(48px, 12vw, 76px);
  box-shadow:
    0 28px 58px rgb(127 47 73 / 13%),
    0 0 30px 12px rgb(255 255 255 / 31%),
    inset 0 2px 3px rgb(255 255 255 / 98%),
    inset 0 -7px 18px rgb(235 207 198 / 19%);
  animation: card-arrive 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.greeting-card h1,
.quiz-card h1,
.heart-title-card h1,
.years-question-card h1,
.player-heading-card h1 {
  margin: 0;
  color: #812c4b;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgb(255 255 255 / 58%);
}

.greeting-card h1 {
  font-size: clamp(54px, 13vw, 88px);
  line-height: 1.08;
}

.slider-card {
  display: grid;
  min-height: clamp(168px, 22svh, 205px);
  align-content: center;
  gap: clamp(16px, 2.2svh, 23px);
  padding: 18px clamp(22px, 7vw, 42px) 21px;
  border-color: rgb(255 255 255 / 70%);
  border-radius: clamp(30px, 8vw, 48px);
  background:
    radial-gradient(ellipse at 25% 0%, rgb(255 255 255 / 71%), transparent 48%),
    linear-gradient(145deg, rgb(255 255 248 / 62%), rgb(250 248 231 / 52%));
  box-shadow:
    0 20px 38px rgb(116 50 59 / 11%),
    0 0 30px 11px rgb(255 255 255 / 39%),
    inset 0 2px 3px rgb(255 255 255 / 98%),
    inset 0 -4px 9px rgb(191 166 143 / 11%);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  backdrop-filter: blur(26px) saturate(1.45);
  animation: card-arrive 900ms 100ms cubic-bezier(.2, .8, .2, 1) both;
}

.question-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 4vw, 26px);
  color: #88465c;
}

.question-row p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(19px, 5.4vw, 27px);
  line-height: 1.18;
}

.question-heart {
  padding-top: 1px;
  color: #a33c60;
  font-family: Arial, sans-serif;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1;
  filter: drop-shadow(0 3px 3px rgb(128 37 71 / 15%));
}

.love-slider {
  position: relative;
  width: 100%;
  height: 58px;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.love-slider:active {
  cursor: grabbing;
}

.love-slider:focus-visible {
  border-radius: 22px;
  outline: 3px solid rgb(172 50 96 / 42%);
  outline-offset: 7px;
}

.slider-rail {
  position: absolute;
  top: 50%;
  right: 27px;
  left: 27px;
  height: 19px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 99px;
  background: #f3d9d9;
  box-shadow:
    inset 0 3px 6px rgb(150 67 78 / 19%),
    0 1px 2px rgb(255 255 255 / 88%);
  transform: translateY(-50%);
}

.slider-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d74e77, #f27b9a);
  box-shadow: inset 0 2px 3px rgb(255 255 255 / 31%);
  transition: width 80ms linear;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  left: 27px;
  display: grid;
  width: 64px;
  height: 58px;
  place-items: center;
  padding-bottom: 5px;
  color: #fff3f5;
  font-family: Arial, sans-serif;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 2px 2px rgb(130 23 65 / 34%);
  background:
    radial-gradient(ellipse at 34% 22%, rgb(255 255 255 / 76%) 0 5%, transparent 29%),
    radial-gradient(ellipse at 32% 25%, #f895aa 0%, transparent 49%),
    linear-gradient(145deg, #ed7892 0%, #c73565 55%, #a62253 100%);
  clip-path: polygon(50% 94%, 8% 57%, 1% 43%, 2% 28%, 10% 16%, 23% 10%, 36% 13%, 50% 28%, 64% 13%, 77% 10%, 90% 16%, 98% 28%, 99% 43%, 92% 57%);
  filter: drop-shadow(0 7px 7px rgb(120 37 67 / 31%));
  transform: translate(-50%, -50%);
  transition: left 65ms linear, filter 160ms ease, scale 180ms ease;
  pointer-events: none;
}

.love-slider:active .slider-thumb {
  scale: 1.08;
  filter: drop-shadow(0 10px 9px rgb(120 37 67 / 34%));
}

.page-content--quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3svh, 28px);
}

.quiz-card {
  display: grid;
  width: 100%;
  min-height: clamp(250px, 38svh, 350px);
  place-items: center;
  padding: 34px clamp(22px, 6vw, 44px);
  border-radius: clamp(42px, 10vw, 64px);
  animation: card-arrive 750ms cubic-bezier(.2, .8, .2, 1) both;
}

.quiz-card h1 {
  font-size: clamp(34px, 8.3vw, 54px);
  line-height: 1.17;
}

.answers {
  display: grid;
  width: min(100%, 390px);
  gap: clamp(13px, 2.2svh, 19px);
}

.answer {
  position: relative;
  min-height: clamp(68px, 9svh, 82px);
  padding: 12px 19px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 83%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 22% 0%, rgb(255 255 255 / 83%), transparent 44%),
    linear-gradient(145deg, rgb(255 254 244 / 74%) 0%, rgb(249 246 232 / 64%) 100%);
  box-shadow:
    0 12px 23px rgb(119 53 62 / 12%),
    0 0 25px 8px rgb(255 255 255 / 38%),
    inset 0 2px 3px rgb(255 255 255 / 99%),
    inset 0 -4px 8px rgb(193 171 145 / 11%);
  color: #80364f;
  font-size: clamp(25px, 6.7vw, 34px);
  line-height: 1.15;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.answer::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 62%) 48%, transparent 65%);
  content: "";
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 180ms ease, transform 500ms ease;
  pointer-events: none;
}

.answer:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px rgb(119 53 62 / 17%),
    inset 0 2px 2px rgb(255 255 255 / 98%);
}

.answer:hover::after,
.answer:focus-visible::after {
  opacity: 1;
  transform: translateX(45%);
}

.answer:focus-visible,
.big-love-heart:focus-visible,
.send-button:focus-visible,
.player-controls button:focus-visible {
  outline: 3px solid rgb(164 50 91 / 52%);
  outline-offset: 4px;
}

.answer:active {
  transform: scale(.97);
}

.answer.is-wrong {
  color: #a95368;
  animation: wrong-wiggle 480ms ease;
}

.answer.is-correct {
  color: #fff8f8;
  background: linear-gradient(145deg, #ec7397, #bd3b69);
  box-shadow: 0 12px 25px rgb(153 43 84 / 30%), inset 0 2px 2px rgb(255 255 255 / 40%);
  animation: correct-pop 500ms cubic-bezier(.2, .8, .2, 1);
}

.quiz-card.shake {
  animation: card-shake 500ms ease;
}

.quiz-feedback {
  min-height: 26px;
  margin: -8px 0 0;
  color: #9c3e60;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 4vw, 18px);
  text-align: center;
  text-shadow: 0 1px 0 rgb(255 255 255 / 75%);
}

.page-content--hearts {
  display: grid;
  width: min(100%, 480px);
  grid-template-rows: auto minmax(330px, min(52svh, 485px));
  align-content: center;
  gap: clamp(14px, 2svh, 22px);
}

.heart-title-card {
  display: grid;
  min-height: clamp(150px, 22svh, 208px);
  place-items: center;
  padding: 25px 20px;
  border-radius: clamp(36px, 9vw, 54px);
  animation: card-arrive 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.heart-title-card h1 {
  font-size: clamp(39px, 9vw, 59px);
  line-height: 1.14;
}

.heart-field {
  position: relative;
  min-width: 0;
}

.pop-heart {
  position: absolute;
  display: grid;
  width: clamp(100px, 30vw, 138px);
  aspect-ratio: 120 / 110;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter:
    drop-shadow(0 13px 10px rgb(126 36 73 / 19%))
    drop-shadow(0 0 14px rgb(255 255 255 / 44%));
  transform-origin: center;
  animation: heart-hover 3.8s ease-in-out infinite;
  transition: filter 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pop-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 180ms ease, filter 180ms ease;
}

.heart-shine {
  fill: none;
  stroke: rgb(255 255 255 / 78%);
  stroke-linecap: round;
  stroke-width: 8;
  filter: blur(1.6px);
}

.pop-heart:hover svg,
.pop-heart:focus-visible svg {
  filter: brightness(1.08);
  transform: scale(1.08) rotate(-3deg);
}

.pop-heart:focus-visible {
  outline: 3px solid rgb(163 43 88 / 56%);
  outline-offset: 3px;
  border-radius: 42%;
}

.pop-heart:active svg {
  transform: scale(.94);
}

.pop-heart--1 { top: 2%; left: 2%; animation-delay: -.7s; }
.pop-heart--2 { top: 2%; right: 2%; animation-delay: -2.1s; }
.pop-heart--3 { top: 40%; left: calc(50% - clamp(50px, 15vw, 69px)); animation-delay: -1.4s; }
.pop-heart--4 { bottom: 1%; left: 2%; animation-delay: -2.8s; }
.pop-heart--5 { right: 2%; bottom: 1%; animation-delay: -.2s; }

.pop-heart.is-popping {
  z-index: 3;
  animation: heart-pop 520ms cubic-bezier(.2, .7, .3, 1) forwards;
  pointer-events: none;
}

.burst-particle {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  color: var(--particle-color, #e34f83);
  font-family: Arial, sans-serif;
  font-size: var(--particle-size, 20px);
  line-height: 1;
  text-shadow: 0 2px 7px rgb(164 43 90 / 24%);
  animation: burst 700ms ease-out forwards;
  pointer-events: none;
}

.page-content--love-note,
.page-content--years,
.page-content--player {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.4svh, 22px);
}

.page-content--love-note {
  width: min(100%, 500px);
}

.love-note-card {
  display: grid;
  min-height: clamp(220px, 32svh, 290px);
  place-items: center;
  padding: clamp(26px, 7vw, 40px);
  border-radius: clamp(38px, 10vw, 60px);
  animation: card-arrive 750ms cubic-bezier(.2, .8, .2, 1) both;
}

.love-note-card p {
  margin: 0;
  color: #743047;
  font-size: clamp(22px, 5.8vw, 32px);
  line-height: 1.42;
  text-wrap: pretty;
}

.big-love-heart {
  position: relative;
  display: grid;
  width: clamp(160px, 48vw, 215px);
  aspect-ratio: 120 / 110;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 14px 16px rgb(164 16 48 / 25%));
  cursor: pointer;
  animation: heartbeat 1.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.big-love-heart svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.big-heart-shine,
.big-heart-reflection {
  fill: none;
  stroke: rgb(255 255 255 / 76%);
  stroke-linecap: round;
}

.big-heart-shine {
  stroke-width: 6;
}

.big-heart-reflection {
  stroke-width: 3;
  opacity: .56;
}

.big-love-heart.is-tapped {
  animation: heart-tap 420ms cubic-bezier(.2, .7, .3, 1);
}

.big-love-heart:disabled {
  cursor: default;
}

.tap-hint {
  min-height: 1.5em;
  margin: 0;
  color: #853752;
  font-size: clamp(19px, 5vw, 25px);
  text-align: center;
  text-shadow: 0 1px 0 rgb(255 255 255 / 60%);
}

.page-content--years {
  width: min(100%, 500px);
}

.years-question-card {
  display: grid;
  width: 100%;
  min-height: clamp(260px, 40svh, 355px);
  place-items: center;
  padding: 30px 24px;
  border-radius: clamp(40px, 10vw, 64px);
  animation: card-arrive 750ms cubic-bezier(.2, .8, .2, 1) both;
}

.years-question-card h1,
.player-heading-card h1 {
  font-size: clamp(37px, 9.2vw, 57px);
  line-height: 1.08;
}

.years-control-card {
  width: 100%;
  padding: 25px clamp(22px, 7vw, 38px) 20px;
  border-radius: 34px;
  animation: card-arrive 750ms 80ms cubic-bezier(.2, .8, .2, 1) both;
}

.years-range,
.track-seek {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.years-range::-webkit-slider-runnable-track,
.track-seek::-webkit-slider-runnable-track {
  height: 10px;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #d94f83 0 var(--progress, 0%),
    rgb(255 255 255 / 78%) var(--progress, 0%) 100%
  );
  box-shadow: inset 0 2px 4px rgb(130 48 73 / 12%), 0 2px 5px rgb(255 255 255 / 35%);
}

.years-range::-moz-range-track,
.track-seek::-moz-range-track {
  height: 10px;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  box-shadow: inset 0 2px 4px rgb(130 48 73 / 12%), 0 2px 5px rgb(255 255 255 / 35%);
}

.years-range::-moz-range-progress,
.track-seek::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #d94f83;
}

.years-range::-webkit-slider-thumb,
.track-seek::-webkit-slider-thumb {
  width: 29px;
  height: 29px;
  margin-top: -10px;
  border: 2px solid rgb(255 255 255 / 96%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 27%, #fff 0 7%, #ffe1eb 28%, #de5b89 100%);
  box-shadow: 0 3px 9px rgb(125 40 70 / 31%), inset 0 1px 3px #fff;
  -webkit-appearance: none;
  appearance: none;
}

.years-range::-moz-range-thumb,
.track-seek::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border: 2px solid rgb(255 255 255 / 96%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 27%, #fff 0 7%, #ffe1eb 28%, #de5b89 100%);
  box-shadow: 0 3px 9px rgb(125 40 70 / 31%), inset 0 1px 3px #fff;
}

.track-seek:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.years-labels,
.track-times {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #875068;
  font-family: Arial, Helvetica, sans-serif;
}

.years-labels {
  margin-top: 5px;
  font-size: clamp(15px, 4vw, 19px);
}

.send-button {
  min-height: 58px;
  padding: 12px 34px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 999px;
  background: linear-gradient(145deg, #ed789e, #bd3b69);
  box-shadow: 0 12px 24px rgb(148 40 82 / 23%), inset 0 2px 2px rgb(255 255 255 / 42%);
  color: #fff9fa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.send-button:hover {
  box-shadow: 0 15px 28px rgb(148 40 82 / 29%), inset 0 2px 2px rgb(255 255 255 / 42%);
  transform: translateY(-2px);
}

.page-content--player {
  width: min(100%, 500px);
  gap: clamp(12px, 2svh, 19px);
}

.player-heading-card {
  display: grid;
  width: 100%;
  min-height: clamp(150px, 24svh, 210px);
  place-items: center;
  padding: 24px 18px;
  border-radius: clamp(36px, 9vw, 56px);
  animation: card-arrive 750ms cubic-bezier(.2, .8, .2, 1) both;
}

.music-player {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 14px;
  padding: clamp(20px, 5vw, 28px);
  border-radius: clamp(34px, 9vw, 52px);
  animation: card-arrive 750ms 80ms cubic-bezier(.2, .8, .2, 1) both;
}

.album-cover {
  display: block;
  width: clamp(160px, 46vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgb(107 36 61 / 20%), 0 0 22px rgb(255 255 255 / 55%);
}

.track-caption h2,
.track-caption p {
  margin: 0;
}

.track-caption h2 {
  color: #71304a;
  font-size: clamp(27px, 7vw, 34px);
  font-weight: 600;
}

.track-caption p {
  margin-top: 3px;
  color: #92576c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
}

.player-progress {
  width: 100%;
  margin-top: 2px;
}

.track-seek {
  height: 25px;
}

.track-seek::-webkit-slider-runnable-track {
  height: 7px;
}

.track-seek::-moz-range-track,
.track-seek::-moz-range-progress {
  height: 7px;
}

.track-seek::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
}

.track-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
}

.track-times {
  margin-top: -1px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 10vw, 48px);
}

.player-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.skip-button {
  width: 38px;
  height: 42px;
  color: #875068;
  transition: transform 150ms ease, opacity 150ms ease;
}

.skip-button svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.skip-button:active:not(:disabled) {
  transform: scale(.88);
}

.skip-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.player-heart-button {
  position: relative;
  width: 88px;
  height: 78px;
}

.player-heart-art {
  color: #d74175;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 76px;
  line-height: 1;
  filter: drop-shadow(0 6px 6px rgb(164 43 90 / 24%));
  transition: transform 180ms ease;
}

.player-heart-button:active .player-heart-art {
  transform: scale(.9);
}

.player-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff8fa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgb(115 28 58 / 40%);
  transform: translate(-43%, -50%);
}

.player-heart-button.is-playing .player-play-icon {
  font-size: 18px;
  transform: translate(-50%, -50%);
}

.player-status {
  min-height: 1.4em;
  margin: 0;
  color: #88546a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.player-capability-note {
  margin: -4px 0 0;
  color: #88546a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-align: center;
}

.track-audio {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes ambient-float {
  to { transform: translate3d(5px, -15px, 0) rotate(9deg); }
}

@keyframes twinkle {
  from { opacity: .36; transform: scale(.8) rotate(-8deg); }
  to { opacity: 1; transform: scale(1.15) rotate(8deg); }
}

@keyframes card-arrive {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glass-sheen {
  0%, 15% { background-position: 130% 0, 0 0; }
  70%, 100% { background-position: -70% 0, 0 0; }
}

@keyframes wrong-wiggle {
  20%, 60% { transform: translateX(-7px) rotate(-1deg); }
  40%, 80% { transform: translateX(7px) rotate(1deg); }
}

@keyframes card-shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

@keyframes correct-pop {
  40% { transform: scale(1.06); }
  70% { transform: scale(.98); }
}

@keyframes heart-hover {
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes heart-pop {
  30% { opacity: 1; transform: scale(1.28) rotate(-10deg); }
  100% { opacity: 0; transform: scale(.12) rotate(24deg); }
}

@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.35); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0) rotate(var(--rotation));
  }
}

@keyframes heartbeat {
  50% { transform: scale(1.12); }
}

@keyframes heart-tap {
  35% { transform: scale(.84) rotate(-8deg); }
  68% { transform: scale(1.13) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 380px) {
  .page {
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-content--hearts {
    grid-template-rows: auto minmax(315px, min(49svh, 430px));
  }

  .pop-heart {
    width: clamp(94px, 29vw, 112px);
  }
}

@media (max-height: 690px) {
  .page {
    align-items: flex-start;
  }

  .page-content--intro,
  .page-content--quiz,
  .page-content--hearts,
  .page-content--love-note,
  .page-content--years,
  .page-content--player {
    margin-top: auto;
    margin-bottom: auto;
  }

  .greeting-card {
    min-height: 360px;
  }

  .quiz-card {
    min-height: 220px;
  }

  .page-content--hearts {
    grid-template-rows: auto minmax(290px, 1fr);
  }

  .heart-title-card {
    min-height: 128px;
  }

  .love-note-card {
    min-height: 190px;
  }

  .years-question-card {
    min-height: 230px;
  }

  .album-cover {
    width: clamp(135px, 30svh, 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
