/* ==========================================================================
   Happy Birthday, My Love — styles
   --------------------------------------------------------------------------
   1. Base reset
   2. Base + component styles
   3. Utility classes (same values Tailwind generated for the original design)
   4. Custom animations and effects
   ========================================================================== */

/* ---------- 1. Base reset ---------- */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Montserrat, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

[hidden] {
  display: none;
}

/* ---------- 2. Base + component styles ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #120a0d;
  font-family: Montserrat, system-ui, sans-serif;
  color: #fdf8f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 175, 55, 0.4);
  color: #fdf8f0;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.gold-text {
  background: linear-gradient(120deg, #f3e5ab 0%, #d4af37 45%, #f6d3d6 75%, #f3e5ab 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 6s linear infinite;
}

.glass-frame {
  background: linear-gradient(145deg, rgba(253, 248, 240, 0.12), rgba(253, 248, 240, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.12), inset 0 0 24px rgba(212, 175, 55, 0.06);
}

/* ---------- 3. Utility classes ---------- */
.pointer-events-none {
  pointer-events: none;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.inset-2 {
  inset: 0.5rem;
}

.inset-x-\[4\%\] {
  left: 4%;
  right: 4%;
}

.inset-x-0 {
  left: 0px;
  right: 0px;
}

.-top-4 {
  top: -1rem;
}

.top-\[12\%\] {
  top: 12%;
}

.top-\[20\%\] {
  top: 20%;
}

.top-\[30\%\] {
  top: 30%;
}

.top-\[52\%\] {
  top: 52%;
}

.top-\[62\%\] {
  top: 62%;
}

.top-0 {
  top: 0px;
}

.top-1\/2 {
  top: 50%;
}

.top-1\/3 {
  top: 33.333333%;
}

.top-10 {
  top: 2.5rem;
}

.top-2 {
  top: 0.5rem;
}

.top-4 {
  top: 1rem;
}

.-right-3 {
  right: -0.75rem;
}

.right-\[14\%\] {
  right: 14%;
}

.right-\[20\%\] {
  right: 20%;
}

.right-10 {
  right: 2.5rem;
}

.right-2 {
  right: 0.5rem;
}

.right-4 {
  right: 1rem;
}

.bottom-\[28\%\] {
  bottom: 28%;
}

.bottom-0 {
  bottom: 0px;
}

.bottom-16 {
  bottom: 4rem;
}

.-left-4 {
  left: -1rem;
}

.left-\[12\%\] {
  left: 12%;
}

.left-\[18\%\] {
  left: 18%;
}

.left-1\/2 {
  left: 50%;
}

.left-2 {
  left: 0.5rem;
}

.left-4 {
  left: 1rem;
}

.z-\[1\] {
  z-index: 1;
}

.z-\[60\] {
  z-index: 60;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.ml-auto {
  margin-left: auto;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.inline-flex {
  display: inline-flex;
}

.hidden {
  display: none;
}

.aspect-\[1\/1\] {
  aspect-ratio: 1 / 1;
}

.aspect-\[3\/4\] {
  aspect-ratio: 3 / 4;
}

.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.h-\[200px\] {
  height: 200px;
}

.h-\[460px\] {
  height: 460px;
}

.h-\[60vmin\] {
  height: 60vmin;
}

.h-\[80vmin\] {
  height: 80vmin;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-1\/2 {
  height: 50%;
}

.h-10 {
  height: 2.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-56 {
  height: 14rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-9 {
  height: 2.25rem;
}

.h-full {
  height: 100%;
}

.max-h-\[60vh\] {
  max-height: 60vh;
}

.min-h-\[60px\] {
  min-height: 60px;
}

.min-h-0 {
  min-height: 0px;
}

.min-h-screen {
  min-height: 100vh;
}

.w-\[200px\] {
  width: 200px;
}

.w-\[60vmin\] {
  width: 60vmin;
}

.w-\[80vmin\] {
  width: 80vmin;
}

.w-\[min\(82vw\,400px\)\] {
  width: min(82vw,400px);
}

.w-\[min\(88vw\,560px\)\] {
  width: min(88vw,560px);
}

.w-10 {
  width: 2.5rem;
}

.w-11 {
  width: 2.75rem;
}

.w-12 {
  width: 3rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-9 {
  width: 2.25rem;
}

.w-full {
  width: 100%;
}

.w-px {
  width: 1px;
}

.min-w-0 {
  min-width: 0px;
}

.max-w-\[920px\] {
  max-width: 920px;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xl {
  max-width: 36rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

.origin-top {
  transform-origin: top;
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-6 {
  --tw-translate-y: -1.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-x-px {
  --tw-translate-x: 1px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-\[30\%\] {
  --tw-translate-y: 30%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-4 {
  --tw-translate-y: 1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-rotate-1 {
  --tw-rotate: -1deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-rotate-2 {
  --tw-rotate: -2deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.rotate-1 {
  --tw-rotate: 1deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.rotate-2 {
  --tw-rotate: 2deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.animate-\[drift_4s_ease-in-out_infinite_0\.5s\] {
  animation: drift 4s ease-in-out infinite 0.5s;
}

.animate-\[drift_5s_ease-in-out_infinite\] {
  animation: drift 5s ease-in-out infinite;
}

.animate-\[drift_6s_ease-in-out_infinite_1s\] {
  animation: drift 6s ease-in-out infinite 1s;
}

.animate-\[fade-in_0\.5s_ease-out\] {
  animation: fade-in 0.5s ease-out;
}

.animate-\[glow-pulse_4s_ease-in-out_infinite\] {
  animation: glow-pulse 4s ease-in-out infinite;
}

.animate-\[lightbox-in_0\.6s_cubic-bezier\(0\.22\,1\,0\.36\,1\)\] {
  animation: lightbox-in 0.6s cubic-bezier(0.22,1,0.36,1);
}

.animate-\[lightbox-in_0\.7s_cubic-bezier\(0\.22\,1\,0\.36\,1\)\] {
  animation: lightbox-in 0.7s cubic-bezier(0.22,1,0.36,1);
}

.animate-\[twinkle_2\.6s_ease-in-out_infinite\] {
  animation: twinkle 2.6s ease-in-out infinite;
}

.animate-\[twinkle_3\.2s_ease-in-out_infinite_0\.8s\] {
  animation: twinkle 3.2s ease-in-out infinite 0.8s;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cursor-pointer {
  cursor: pointer;
}

.appearance-none {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.columns-1 {
  columns: 1;
}

.break-inside-avoid {
  break-inside: avoid;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-16 {
  gap: 4rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-16>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(4rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(4rem * var(--tw-space-y-reverse));
}

.space-y-5>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.rounded-\[1\.25rem\] {
  border-radius: 1.25rem;
}

.rounded-\[1\.5rem\] {
  border-radius: 1.5rem;
}

.rounded-\[1rem\] {
  border-radius: 1rem;
}

.rounded-\[2\.5rem\] {
  border-radius: 2.5rem;
}

.rounded-\[2rem\] {
  border-radius: 2rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
}

.border-gold-400 {
  border-color: #d4af37;
}

.border-gold-400\/20 {
  border-color: rgb(212 175 55 / 0.2);
}

.border-gold-400\/40 {
  border-color: rgb(212 175 55 / 0.4);
}

.border-gold-400\/60 {
  border-color: rgb(212 175 55 / 0.6);
}

.border-gold-400\/70 {
  border-color: rgb(212 175 55 / 0.7);
}

.border-gold-400\/80 {
  border-color: rgb(212 175 55 / 0.8);
}

.border-gold-600\/40 {
  border-color: rgb(168 134 42 / 0.4);
}

.bg-gold-400 {
  background-color: #d4af37;
}

.bg-gold-400\/20 {
  background-color: rgb(212 175 55 / 0.2);
}

.bg-ink-800\/70 {
  background-color: rgb(28 17 22 / 0.7);
}

.bg-ink-800\/80 {
  background-color: rgb(28 17 22 / 0.8);
}

.bg-ink-800\/95 {
  background-color: rgb(28 17 22 / 0.95);
}

.bg-ink-900 {
  background-color: #120a0d;
}

.bg-ink-900\/95 {
  background-color: rgb(18 10 13 / 0.95);
}

.bg-ivory {
  background-color: #fdf8f0;
}

.bg-wine-500\/25 {
  background-color: rgb(142 31 53 / 0.25);
}

.bg-wine-700 {
  background-color: #5e1123;
}

.bg-wine-700\/60 {
  background-color: rgb(94 17 35 / 0.6);
}

.bg-wine-900 {
  background-color: #3a0a16;
}

.bg-wine-900\/80 {
  background-color: rgb(58 10 22 / 0.8);
}

.bg-\[radial-gradient\(circle_at_50\%_40\%\,rgba\(142\,31\,53\,0\.55\)\,transparent_60\%\)\] {
  background-image: radial-gradient(circle at 50% 40%,rgba(142,31,53,0.55),transparent 60%);
}

.bg-\[radial-gradient\(circle_at_50\%_45\%\,rgba\(142\,31\,53\,0\.45\)\,transparent_65\%\)\] {
  background-image: radial-gradient(circle at 50% 45%,rgba(142,31,53,0.45),transparent 65%);
}

.bg-\[radial-gradient\(ellipse_at_top\,rgba\(142\,31\,53\,0\.35\)\,transparent_60\%\)\,radial-gradient\(ellipse_at_bottom_right\,rgba\(212\,175\,55\,0\.12\)\,transparent_55\%\)\] {
  background-image: radial-gradient(ellipse at top,rgba(142,31,53,0.35),transparent 60%),radial-gradient(ellipse at bottom right,rgba(212,175,55,0.12),transparent 55%);
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-blush-100 {
  --tw-gradient-from: #fbe9ea;
  --tw-gradient-to: rgb(251 233 234 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blush-300 {
  --tw-gradient-from: #eeb4ba;
  --tw-gradient-to: rgb(238 180 186 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-ink-900\/70 {
  --tw-gradient-from: rgb(18 10 13 / 0.7);
  --tw-gradient-to: rgb(18 10 13 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-ivory {
  --tw-gradient-from: #fdf8f0;
  --tw-gradient-to: rgb(253 248 240 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-transparent {
  --tw-gradient-from: transparent;
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-wine-300 {
  --tw-gradient-from: #c2586a;
  --tw-gradient-to: rgb(194 88 106 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-wine-500 {
  --tw-gradient-from: #8e1f35;
  --tw-gradient-to: rgb(142 31 53 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-wine-700 {
  --tw-gradient-from: #5e1123;
  --tw-gradient-to: rgb(94 17 35 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-wine-900\/60 {
  --tw-gradient-from: rgb(58 10 22 / 0.6);
  --tw-gradient-to: rgb(58 10 22 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-blush-200 {
  --tw-gradient-to: rgb(246 211 214 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), #f6d3d6, var(--tw-gradient-to);
}

.via-gold-400\/70 {
  --tw-gradient-to: rgb(212 175 55 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(212 175 55 / 0.7), var(--tw-gradient-to);
}

.via-transparent {
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to);
}

.to-blush-100 {
  --tw-gradient-to: #fbe9ea;
}

.to-blush-200 {
  --tw-gradient-to: #f6d3d6;
}

.to-ink-800 {
  --tw-gradient-to: #1c1116;
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.to-wine-300 {
  --tw-gradient-to: #c2586a;
}

.to-wine-700 {
  --tw-gradient-to: #5e1123;
}

.to-wine-900 {
  --tw-gradient-to: #3a0a16;
}

.object-cover {
  object-fit: cover;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-7 {
  padding: 1.75rem;
}

.p-8 {
  padding: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-28 {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-32 {
  padding-bottom: 8rem;
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.pl-12 {
  padding-left: 3rem;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-sans {
  font-family: Montserrat, system-ui, sans-serif;
}

.font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.leading-\[1\.1\] {
  line-height: 1.1;
}

.leading-\[1\.7\] {
  line-height: 1.7;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-snug {
  line-height: 1.375;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}

.tracking-\[0\.14em\] {
  letter-spacing: 0.14em;
}

.tracking-\[0\.25em\] {
  letter-spacing: 0.25em;
}

.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}

.tracking-\[0\.35em\] {
  letter-spacing: 0.35em;
}

.text-blush-200 {
  color: #f6d3d6;
}

.text-blush-200\/70 {
  color: rgb(246 211 214 / 0.7);
}

.text-blush-200\/80 {
  color: rgb(246 211 214 / 0.8);
}

.text-blush-300 {
  color: #eeb4ba;
}

.text-blush-300\/80 {
  color: rgb(238 180 186 / 0.8);
}

.text-gold-200 {
  color: #f3e5ab;
}

.text-gold-400 {
  color: #d4af37;
}

.text-gold-400\/80 {
  color: rgb(212 175 55 / 0.8);
}

.text-ivory {
  color: #fdf8f0;
}

.text-wine-300 {
  color: #c2586a;
}

.text-wine-300\/90 {
  color: rgb(194 88 106 / 0.9);
}

.text-wine-500 {
  color: #8e1f35;
}

.text-wine-700 {
  color: #5e1123;
}

.text-wine-900 {
  color: #3a0a16;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.shadow-\[0_0_18px_rgba\(212\,175\,55\,0\.9\)\] {
  --tw-shadow: 0 0 18px rgba(212,175,55,0.9);
  --tw-shadow-colored: 0 0 18px rgba(212,175,55,0.9);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_24px_rgba\(212\,175\,55\,0\.5\)\] {
  --tw-shadow: 0 0 24px rgba(212,175,55,0.5);
  --tw-shadow-colored: 0 0 24px rgba(212,175,55,0.5);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_30px_rgba\(142\,31\,53\,0\.4\)\] {
  --tw-shadow: 0 0 30px rgba(142,31,53,0.4);
  --tw-shadow-colored: 0 0 30px rgba(142,31,53,0.4);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_30px_rgba\(212\,175\,55\,0\.3\)\] {
  --tw-shadow: 0 0 30px rgba(212,175,55,0.3);
  --tw-shadow-colored: 0 0 30px rgba(212,175,55,0.3);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_30px_rgba\(212\,175\,55\,0\.35\)\] {
  --tw-shadow: 0 0 30px rgba(212,175,55,0.35);
  --tw-shadow-colored: 0 0 30px rgba(212,175,55,0.35);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_40px_rgba\(212\,175\,55\,0\.2\)\] {
  --tw-shadow: 0 0 40px rgba(212,175,55,0.2);
  --tw-shadow-colored: 0 0 40px rgba(212,175,55,0.2);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_0_40px_rgba\(212\,175\,55\,0\.3\)\] {
  --tw-shadow: 0 0 40px rgba(212,175,55,0.3);
  --tw-shadow-colored: 0 0 40px rgba(212,175,55,0.3);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_20px_50px_rgba\(0\,0\,0\,0\.5\)\] {
  --tw-shadow: 0 20px 50px rgba(0,0,0,0.5);
  --tw-shadow-colored: 0 20px 50px rgba(0,0,0,0.5);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_30px_80px_rgba\(0\,0\,0\,0\.5\)\,0_0_60px_rgba\(212\,175\,55\,0\.2\)\] {
  --tw-shadow: 0 30px 80px rgba(0,0,0,0.5),0 0 60px rgba(212,175,55,0.2);
  --tw-shadow-colored: 0 30px 80px rgba(0,0,0,0.5),0 0 60px rgba(212,175,55,0.2);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.blur-3xl {
  filter: blur(64px);
}

.drop-shadow-\[0_0_18px_rgba\(246\,211\,214\,0\.7\)\] {
  filter: drop-shadow(0 0 18px rgba(246,211,214,0.7));
}

.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.backdrop-blur-xl {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.transition-\[height\] {
  transition-property: height;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.delay-\[900ms\] {
  transition-delay: 900ms;
}

.duration-\[1100ms\] {
  transition-duration: 1100ms;
}

.duration-\[1200ms\] {
  transition-duration: 1200ms;
}

.duration-\[1500ms\] {
  transition-duration: 1500ms;
}

.duration-\[900ms\] {
  transition-duration: 900ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.\[perspective\:1000px\] {
  perspective: 1000px;
}

.\[transform-style\:preserve-3d\] {
  transform-style: preserve-3d;
}

.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:-translate-y-1:hover {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:-translate-y-2:hover {
  --tw-translate-y: -0.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:rotate-0:hover {
  --tw-rotate: 0deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:rotate-90:hover {
  --tw-rotate: 90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:border-gold-400\/60:hover {
  border-color: rgb(212 175 55 / 0.6);
}

.hover\:bg-wine-700:hover {
  background-color: #5e1123;
}

.hover\:bg-wine-700\/60:hover {
  background-color: rgb(94 17 35 / 0.6);
}

.hover\:text-ivory:hover {
  color: #fdf8f0;
}

.hover\:shadow-\[0_0_40px_rgba\(212\,175\,55\,0\.2\)\]:hover {
  --tw-shadow: 0 0 40px rgba(212,175,55,0.2);
  --tw-shadow-colored: 0 0 40px rgba(212,175,55,0.2);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-\[0_0_50px_rgba\(212\,175\,55\,0\.45\)\]:hover {
  --tw-shadow: 0 0 50px rgba(212,175,55,0.45);
  --tw-shadow-colored: 0 0 50px rgba(212,175,55,0.45);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-\[0_0_50px_rgba\(212\,175\,55\,0\.6\)\]:hover {
  --tw-shadow: 0 0 50px rgba(212,175,55,0.6);
  --tw-shadow-colored: 0 0 50px rgba(212,175,55,0.6);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.focus-visible\:outline:focus-visible {
  outline-style: solid;
}

.focus-visible\:outline-2:focus-visible {
  outline-width: 2px;
}

.focus-visible\:outline-gold-400:focus-visible {
  outline-color: #d4af37;
}

.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-gold-400:focus-visible {
  --tw-ring-color: #d4af37;
}

.active\:scale-95:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.disabled\:cursor-default:disabled {
  cursor: default;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:opacity-40:disabled {
  opacity: 0.4;
}

.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:shadow-\[0_0_50px_rgba\(212\,175\,55\,0\.35\)\] {
  --tw-shadow: 0 0 50px rgba(212,175,55,0.35);
  --tw-shadow-colored: 0 0 50px rgba(212,175,55,0.35);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

@media (min-width: 640px) {
  .sm\:top-\[45\%\] {
    top: 45%;
  }

  .sm\:right-6 {
    right: 1.5rem;
  }

  .sm\:-left-8 {
    left: -2rem;
  }

  .sm\:left-6 {
    left: 1.5rem;
  }

  .sm\:mt-12 {
    margin-top: 3rem;
  }

  .sm\:mt-14 {
    margin-top: 3.5rem;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:h-\[240px\] {
    height: 240px;
  }

  .sm\:h-\[560px\] {
    height: 560px;
  }

  .sm\:max-h-\[66vh\] {
    max-height: 66vh;
  }

  .sm\:columns-2 {
    columns: 2;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:gap-5 {
    gap: 1.25rem;
  }

  .sm\:p-4 {
    padding: 1rem;
  }

  .sm\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:pb-28 {
    padding-bottom: 7rem;
  }

  .sm\:pb-5 {
    padding-bottom: 1.25rem;
  }

  .sm\:pb-8 {
    padding-bottom: 2rem;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 768px) {
  .md\:left-1\/2 {
    left: 50%;
  }

  .md\:col-start-2 {
    grid-column-start: 2;
  }

  .md\:grid {
    display: grid;
  }

  .md\:-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:gap-16 {
    gap: 4rem;
  }

  .md\:pl-0 {
    padding-left: 0px;
  }

  .md\:text-right {
    text-align: right;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .lg\:mx-0 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .lg\:max-w-none {
    max-width: none;
  }

  .lg\:columns-3 {
    columns: 3;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:gap-20 {
    gap: 5rem;
  }

  .lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .lg\:text-left {
    text-align: left;
  }

  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}

@media (min-width: 1280px) {
  .xl\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* ---------- 4. Custom animations and effects ---------- */
@keyframes shimmer-text {
  to {
    background-position: 200% center;
  }
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(0, 112vh, 0) rotate(540deg);
  }
}

@keyframes petal-sway {
  0%,
  100% {
    transform: translateX(-30px);
  }
  50% {
    transform: translateX(30px);
  }
}

@keyframes heart-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, -115vh, 0) scale(1.1);
    opacity: 0;
  }
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.35), 0 0 80px rgba(142, 31, 53, 0.35);
  }
  50% {
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.6), 0 0 120px rgba(142, 31, 53, 0.55);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.06);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.04);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes gift-float {
  0%,
  100% {
    transform: rotateX(-14deg) rotateY(-18deg) translateY(0);
  }
  50% {
    transform: rotateX(-9deg) rotateY(-10deg) translateY(-14px);
  }
}

@keyframes phrase-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes phrase-glow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.5), 0 0 28px rgba(142, 31, 53, 0.6);
  }
  50% {
    text-shadow: 0 0 22px rgba(243, 229, 171, 0.9), 0 0 48px rgba(246, 211, 214, 0.6);
  }
}

@keyframes ray-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cta-sheen {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(220%) skewX(-20deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.ambient-petal {
  position: absolute;
  top: -10vh;
  will-change: transform;
  animation: petal-fall var(--fall, 14s) linear var(--delay, 0s) infinite;
}

.ambient-petal > span {
  display: block;
  width: var(--size, 14px);
  height: calc(var(--size, 14px) * 1.4);
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #fbe9ea, #eeb4ba 55%, #c2586a);
  opacity: var(--opacity, 0.6);
  animation: petal-sway var(--sway, 5s) ease-in-out infinite;
}

.ambient-heart {
  position: absolute;
  bottom: -10vh;
  color: #eeb4ba;
  animation: heart-rise var(--fall, 16s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.ambient-glitter {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 9999px;
  background: #f3e5ab;
  box-shadow: 0 0 8px 2px rgba(243, 229, 171, 0.7);
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}

.burst-particle {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform, opacity;
  display: block;
}

.burst-confetti {
  border-radius: 2px;
}

.burst-petal {
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #fbe9ea, #c2586a);
}

.burst-glitter {
  border-radius: 9999px;
  box-shadow: 0 0 10px 2px currentColor;
}

.burst-heart,
.burst-star {
  filter: drop-shadow(0 0 6px rgba(243, 229, 171, 0.8));
}

.animated-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) scale(0.92);
  filter: blur(10px);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.3s ease-out;
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity, filter;
}

.animated-word.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gift-stage {
  perspective: 1000px;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-stage.is-open {
  transform: scale(1.12);
}

.gift-box {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-18deg);
  animation: gift-float 4.5s ease-in-out infinite;
}

.gift-box.is-open {
  animation: none;
}

.gift-body {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 96px;
  bottom: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, #8e1f35 0%, #5e1123 55%, #3a0a16 100%);
  border: 2px solid #d4af37;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45), 0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 175, 55, 0.25);
}

.gift-lid {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(160deg, #a02a44 0%, #722034 60%, #4a1020 100%);
  border: 2px solid #d4af37;
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.34, 1.2, 0.5, 1) 0.9s;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.gift-box.is-open .gift-lid {
  transform: rotateX(-112deg) translateY(-6px);
}

.gift-ribbon {
  position: absolute;
  background: linear-gradient(90deg, #a8862a, #f3e5ab 50%, #a8862a);
  box-shadow: 0 0 12px rgba(243, 229, 171, 0.5);
  transition: transform 1.1s cubic-bezier(0.5, 0, 0.8, 0.4), opacity 0.9s ease-in 0.3s;
}

.gift-ribbon-v {
  left: 88px;
  top: 0;
  width: 24px;
  height: 200px;
  transform-origin: center;
}

.gift-ribbon-h {
  left: 0;
  top: 128px;
  width: 200px;
  height: 20px;
}

.gift-box.is-open .gift-ribbon-v {
  transform: translate3d(-40px, -360px, 120px) rotate(-38deg);
  opacity: 0;
}

.gift-box.is-open .gift-ribbon-h {
  transform: translate3d(260px, -280px, 80px) rotate(64deg);
  opacity: 0;
}

.gift-bow {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 92px;
  height: 56px;
  margin-left: -46px;
  transition: transform 1s cubic-bezier(0.5, 0, 0.8, 0.4) 0.1s, opacity 0.8s ease-in 0.4s;
}

.gift-bow::before,
.gift-bow::after {
  content: '';
  position: absolute;
  top: 0;
  width: 44px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  border: 8px solid #d4af37;
  box-shadow: 0 0 14px rgba(243, 229, 171, 0.6);
}

.gift-bow::before {
  left: 0;
  transform: rotate(-30deg);
}

.gift-bow::after {
  right: 0;
  border-radius: 50% 0 50% 50%;
  transform: rotate(30deg);
}

.gift-box.is-open .gift-bow {
  transform: translate3d(-120px, -420px, 160px) rotate(-70deg) scale(0.6);
  opacity: 0;
}

.gift-light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.95) 0%, rgba(243, 214, 220, 0.6) 22%, rgba(212, 175, 55, 0.25) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.8s ease-out, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gift-light.is-on {
  opacity: 1;
  transform: scale(1);
}

.light-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  border-radius: 9999px;
  background: repeating-conic-gradient(from 0deg, rgba(243, 229, 171, 0.22) 0deg 6deg, transparent 6deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 65%);
  mask-image: radial-gradient(circle, #000 10%, transparent 65%);
  opacity: 0;
  transition: opacity 1.2s ease-out;
  pointer-events: none;
  animation: ray-spin 18s linear infinite;
}

.light-rays.is-on {
  opacity: 1;
}

.phrase-pulse {
  display: inline-block;
  animation: phrase-float 3.6s ease-in-out infinite, phrase-glow 3.6s ease-in-out infinite;
}

.love-text-reveal {
  animation: love-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes love-reveal {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(60px) scale(0.7);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.music-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #f3e5ab;
  box-shadow: 0 0 10px rgba(243, 229, 171, 0.8);
}

.music-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 9999px;
  background: #f3e5ab;
  box-shadow: 0 0 10px rgba(243, 229, 171, 0.8);
}

.heartbeat {
  animation: heartbeat 1.8s ease-in-out infinite;
}

/* ==========================================================================
   Envelope component (used by the intro and by the letter section)
   --------------------------------------------------------------------------
   Layers, back to front:
     .env-shadow  glow            z0
     .env-back    inside of it    z1   (open flap also sits at z1)
     .env-clip    letter/note     z2   (slides up through the opening)
     .env-front   pocket + lines  z3
     .env-flap    3D flap         z4   (drops to z1 once it has opened)
     .env-seal    gold wax seal   z5
     .env-hit     click target    z6
   Everything is driven by one class: .is-open on the .env element.
   ========================================================================== */
.env {
  --flap: 56%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: var(--env-w);
  height: var(--env-h);
  isolation: isolate;
  transition: transform 1.1s var(--ease-out), opacity 0.9s ease;
}

/* Intro envelope: the note peeks out of the top, then the whole thing fades away */
.env-intro {
  --env-w: min(86vw, 440px);
  --env-h: calc(var(--env-w) / 1.7);
  --paper-h: calc(var(--env-h) * 0.9);
  --paper-rise: calc(var(--env-h) - var(--paper-h) * 0.5);
  --paper-inset: calc(var(--env-w) * 0.13);
}

/* Letter envelope: bigger, the letter rises fully out and rests on top */
.letter-stage {
  --env-w: min(92vw, 600px);
  --env-h: max(calc(var(--env-w) / 1.85), 250px);
  --paper-h: min(58vh, 440px);
  --paper-rise: calc(var(--env-h) - 14px);
  --paper-inset: calc(var(--env-w) * 0.14);
  position: relative;
  width: var(--env-w);
  height: var(--env-h);
  margin-left: auto;
  margin-right: auto;
  transition: height 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.85s;
}

.letter-stage.is-open {
  height: calc(var(--paper-rise) + var(--paper-h) + 18px);
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.env-letter {
  position: absolute;
  left: 0;
  bottom: 0;
}

.env-aura {
  position: absolute;
  left: 50%;
  top: 28%;
  z-index: 0;
  width: calc(var(--env-w) * 1.7);
  aspect-ratio: 1;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 240, 190, 0.5) 0%, rgba(212, 175, 55, 0.18) 38%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.9s ease 0.5s, transform 1.5s var(--ease-out) 0.5s;
  pointer-events: none;
}

.env.is-open .env-aura {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes env-glow {
  0%,
  100% {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(212, 175, 55, 0.28);
  }
  50% {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 48px rgba(212, 175, 55, 0.6);
  }
}

.env-shadow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  animation: env-glow 3s ease-in-out infinite;
  pointer-events: none;
}

.env-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  background: linear-gradient(160deg, #8e1f35 0%, #5e1123 55%, #3a0a16 100%);
  box-shadow: inset 0 22px 30px -10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Clip window: letter is only visible above the bottom edge of the envelope */
.env-clip {
  position: absolute;
  z-index: 2;
  left: calc(var(--env-w) * -0.1);
  right: calc(var(--env-w) * -0.1);
  bottom: 0;
  height: calc(var(--paper-h) + var(--paper-rise) + 80px);
  overflow: hidden;
  pointer-events: none;
}

.env-paper {
  position: absolute;
  left: var(--paper-inset);
  right: var(--paper-inset);
  bottom: var(--paper-rise);
  height: var(--paper-h);
  transform: translateY(calc(var(--paper-h) + var(--paper-rise) + 30px));
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.env.is-open .env-paper {
  transform: translateY(0);
  transition: transform 1.2s var(--ease-out) 0.6s;
  pointer-events: auto;
}

.env-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 8px;
  background: linear-gradient(170deg, #fbe9ea 0%, #f6d3d6 30%, #eeb4ba 65%, #c2586a 100%);
  clip-path: polygon(0 0, 50% var(--flap), 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

.env-front::before,
.env-front::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.env-front::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
  clip-path: polygon(0 0, 50% var(--flap), 0 100%);
}

.env-front::after {
  background: linear-gradient(270deg, rgba(120, 20, 40, 0.18), rgba(120, 20, 40, 0) 70%);
  clip-path: polygon(100% 0, 50% var(--flap), 100% 100%);
}

.env-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.env-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.env-flap-shadow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--flap);
  z-index: 3;
  filter: drop-shadow(0 7px 7px rgba(30, 0, 10, 0.4));
  pointer-events: none;
  transition: opacity 0.3s ease 0.45s;
}

.env-flap-shadow span {
  display: block;
  width: 100%;
  height: 100%;
  background: #5e1123;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.env.is-open .env-flap-shadow {
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
}

/* Flap: two faces so the inside is visible once it has flipped open */
.env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--flap);
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(0deg);
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1) 0.35s, z-index 0s linear 0.8s;
  pointer-events: none;
}

.env-flap-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.env-flap-out {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #c2586a 0%, #d9737f 45%, #f6d3d6 100%);
}

.env-flap-in {
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  transform: rotateX(180deg);
  background: linear-gradient(180deg, #e7a0aa 0%, #f6d3d6 45%, #fbe9ea 100%);
}

.env.is-open .env-flap {
  z-index: 1;
  transform: perspective(1100px) rotateX(-180deg);
  transition: transform 0.85s cubic-bezier(0.5, 0, 0.2, 1) 0.18s, z-index 0s linear 0.55s;
}

@media (hover: hover) {
  .env:not(.is-open):hover .env-flap {
    transform: perspective(1100px) rotateX(-16deg);
    transition: transform 0.35s ease 0s;
  }
}

/* Gold wax seal */
.env-seal {
  position: absolute;
  left: 50%;
  top: var(--flap);
  z-index: 5;
  width: clamp(42px, calc(var(--env-w) * 0.125), 62px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.3s ease 0.5s;
}

.env-seal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: radial-gradient(circle at 32% 28%, #fff3c4 0%, #e6c85a 28%, #d4af37 55%, #8a6a14 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(90, 60, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 0 22px rgba(212, 175, 55, 0.55);
  animation: seal-beat 2.4s ease-in-out infinite;
}

.env-seal-body::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 9999px;
  border: 1px solid rgba(110, 78, 10, 0.55);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.env-seal-body svg {
  position: relative;
  width: 42%;
  height: 42%;
  fill: #5e1123;
  filter: drop-shadow(0 1px 0 rgba(255, 235, 170, 0.7));
}

@keyframes seal-beat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.09);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.06);
  }
  55% {
    transform: scale(1);
  }
}

.env.is-open .env-seal {
  transform: translate(-50%, -75%) scale(1.8) rotate(-14deg);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease 0.1s;
}

/* Click target */
.env-hit {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.env-hit:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 5px;
}

.env-hit:disabled {
  cursor: default;
}

/* When open, only the pocket is clickable so the letter above stays easy to read and scroll */
.env.is-open .env-hit {
  clip-path: polygon(0 0, 50% var(--flap), 100% 0, 100% 100%, 0 100%);
}

/* Particles from the celebration burst, drawn above the envelope */
.env > .burst-particle {
  z-index: 8;
}

/* The small note that peeks out of the intro envelope */
.env-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: 7%;
  border-radius: 10px;
  background: linear-gradient(180deg, #fdf8f0 0%, #fbe9ea 100%);
  box-shadow: 0 -10px 34px rgba(212, 175, 55, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #3a0a16;
  text-align: center;
}

.env-note::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(168, 134, 42, 0.5);
  border-radius: 7px;
  pointer-events: none;
}

.env-note-heart {
  width: 1.1rem;
  height: 1.1rem;
  fill: #8e1f35;
}

.env-note-title {
  margin-top: 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, calc(var(--env-w) * 0.062), 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.env-note-sub {
  margin-top: 0.15rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.95rem, calc(var(--env-w) * 0.045), 1.3rem);
  font-style: italic;
  color: #8e1f35;
}

/* While the intro lifts away, the envelope drifts up and grows a little */
.intro-leaving .env-intro {
  transform: translateY(-16px) scale(1.07);
}

.cta-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}

.cta-sheen:hover::after {
  animation: cta-sheen 0.9s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .ambient-petal,
  .ambient-heart,
  .ambient-glitter,
  .light-rays {
    display: none;
  }

  .env,
  .env *,
  .letter-stage {
    transition-delay: 0s !important;
  }
}

/* ---------- Gift heading: breathing room before the heart ---------- */
.heart-gap {
  display: inline-block;
  margin-left: 0.35em;
  -webkit-text-fill-color: initial;
}

/* ---------- "I LOVE YOU" text: centred without a transform, so the rise animation goes straight up ---------- */
.love-text-top {
  left: 0;
  right: 0;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.footer-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7));
}

.footer-divider span:last-child {
  background: linear-gradient(270deg, transparent, rgba(212, 175, 55, 0.7));
}

.footer-divider svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: #eeb4ba;
  filter: drop-shadow(0 0 8px rgba(238, 180, 186, 0.7));
  animation: heartbeat 1.8s ease-in-out infinite;
}

.footer-title {
  font-size: clamp(1.9rem, 6vw, 2.75rem);
}

.footer-line {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

.footer-top {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 9999px;
  color: #f3e5ab;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-top:hover {
  background: rgba(94, 17, 35, 0.7);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 639px) {
  #love-text p {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
  }
}

/* ---------- Pink heart after "Happy Birthday, My Love" ---------- */
.hero-pink-heart {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 1.4s ease-out 1.6s;
}
.hero-pink-heart.is-visible { opacity: 1; }

/* ==========================================================================
   Added sections: Days Together counter, Quiz, Birthday cake
   ========================================================================== */
.x-btn {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: 999px;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #8e1f35, #5e1222);
  color: #f3e5ab;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.x-btn:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(212, 175, 55, 0.6); }
.x-btn:focus-visible { outline: 2px solid #d4af37; outline-offset: 3px; }

/* ----- Counter ----- */
.x-counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}
.x-count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(253, 248, 240, 0.1), rgba(253, 248, 240, 0.02));
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}
.x-count-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 7vw, 3.75rem);
  line-height: 1;
  color: #f3e5ab;
  font-variant-numeric: tabular-nums;
}
.x-count-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4af37;
}
@media (min-width: 640px) {
  .x-counter { gap: 1.5rem; }
  .x-count-label { font-size: 0.7rem; letter-spacing: 0.3em; }
}

/* ----- Quiz ----- */
.x-quiz {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 1.25rem 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.5rem;
  background: rgba(30, 12, 18, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(142, 31, 53, 0.25);
}
@media (min-width: 640px) { .x-quiz { padding: 2.5rem 2.5rem 2.75rem; } }
.x-quiz-progress {
  height: 4px;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  background: rgba(253, 248, 240, 0.12);
  overflow: hidden;
}
.x-quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d4af37, #f6d3d6);
  transition: width 0.6s ease;
}
.x-quiz-step {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d4af37;
}
.x-quiz-question {
  margin-top: 0.75rem;
  font-size: 1.75rem;
  color: #fdf8f0;
}
@media (min-width: 640px) { .x-quiz-question { font-size: 2.1rem; } }
.x-quiz-options { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.x-quiz-option {
  width: 100%;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 0.9rem;
  background: rgba(253, 248, 240, 0.05);
  color: #f6d3d6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  text-align: left;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.x-quiz-option:hover:not(:disabled) { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.8); transform: translateY(-1px); }
.x-quiz-option:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.x-quiz-option:disabled { cursor: default; }
.x-quiz-option.is-correct { background: rgba(212, 175, 55, 0.28); border-color: #f3e5ab; color: #fdf8f0; box-shadow: 0 0 24px rgba(212, 175, 55, 0.45); }
.x-quiz-option.is-wrong { background: rgba(142, 31, 53, 0.5); border-color: #c2586a; color: #f6d3d6; animation: x-shake 0.45s ease; }
.x-quiz-feedback {
  min-height: 1.75rem;
  margin-top: 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #f3e5ab;
}
.x-quiz-result { padding-top: 0.5rem; }
.x-quiz-result[hidden] { display: none; }
.x-quiz-score { font-size: 3.5rem; }
.x-quiz-result p.font-serif { margin-top: 0.75rem; font-size: 1.35rem; font-style: italic; color: #f6d3d6; }
.x-quiz.is-done .x-quiz-step,
.x-quiz.is-done .x-quiz-question,
.x-quiz.is-done .x-quiz-options,
.x-quiz.is-done .x-quiz-feedback { display: none; }
@keyframes x-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ----- Birthday cake ----- */
.x-cake-stage { position: relative; margin: 3.5rem auto 0; width: 100%; max-width: 360px; }
.x-cake { display: flex; flex-direction: column; align-items: center; padding-top: 2.5rem; }
.x-candles {
  display: flex;
  justify-content: space-between;
  width: 130px;
  margin-bottom: -2px;
  position: relative;
  z-index: 3;
}
.x-candle {
  position: relative;
  width: 10px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #fdf8f0 0 6px, #eeb4ba 6px 12px);
  box-shadow: 0 0 8px rgba(246, 211, 214, 0.35);
}
.x-candle::after { content: ""; position: absolute; inset: -26px -9px 0; }
.x-candle:focus-visible { outline: 2px solid #d4af37; outline-offset: 4px; }
.x-wick { position: absolute; top: -5px; left: 50%; width: 2px; height: 6px; transform: translateX(-50%); background: #3a2a22; }
.x-flame {
  position: absolute;
  top: -27px;
  left: 50%;
  width: 13px;
  height: 22px;
  margin-left: -6.5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff6c9 0%, #ffd45a 40%, #ff9a2e 80%, rgba(255, 120, 30, 0) 100%);
  box-shadow: 0 0 14px 5px rgba(255, 190, 70, 0.6);
  transform-origin: 50% 100%;
  animation: x-flicker 1.1s ease-in-out infinite alternate;
  transition: opacity 0.25s ease;
}
.x-candle:nth-child(2n) .x-flame { animation-duration: 0.9s; }
.x-candle:nth-child(3n) .x-flame { animation-duration: 1.3s; }
.x-smoke {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(220, 210, 215, 0.7);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.x-candle.is-out .x-flame { opacity: 0; animation: none; }
.x-candle.is-out .x-smoke { animation: x-smoke 2s ease-out forwards; }
@keyframes x-flicker {
  0% { transform: scale(1, 1) rotate(-2deg); }
  100% { transform: scale(0.92, 1.08) rotate(2deg); }
}
@keyframes x-smoke {
  0% { opacity: 0.8; transform: translateY(0) scale(0.6); }
  100% { opacity: 0; transform: translateY(-48px) scale(2.2); }
}
.x-tier {
  position: relative;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #f6d3d6 0%, #eeb4ba 100%);
  box-shadow: inset 0 -10px 16px rgba(142, 31, 53, 0.18);
}
.x-tier-top { z-index: 2; width: 170px; height: 74px; }
.x-tier-bottom { z-index: 1; width: 260px; height: 96px; margin-top: -4px; background: linear-gradient(180deg, #eeb4ba 0%, #c2586a 100%); }
.x-drip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 12% 100%, #fdf8f0 9px, transparent 10px),
    radial-gradient(circle at 37% 100%, #fdf8f0 11px, transparent 12px),
    radial-gradient(circle at 63% 100%, #fdf8f0 9px, transparent 10px),
    radial-gradient(circle at 88% 100%, #fdf8f0 11px, transparent 12px),
    linear-gradient(#fdf8f0, #fdf8f0) top / 100% 14px no-repeat;
}
.x-cake-heart { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fdf8f0; font-size: 1.6rem; animation: heartbeat 1.8s ease-in-out infinite; }
.x-plate {
  width: 310px;
  max-width: 100%;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3e5ab, #b8942c);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}
.x-wish { margin-top: 1.5rem; animation: fade-in 1s ease both; }
.x-wish[hidden] { display: none; }
.x-wish-title { font-size: 2rem; }
.x-wish p.font-serif { margin-top: 0.5rem; font-size: 1.3rem; font-style: italic; color: #f6d3d6; }
@media (min-width: 640px) { .x-wish-title { font-size: 2.75rem; } }
@media (max-width: 380px) {
  .x-tier-bottom { width: 230px; }
  .x-plate { width: 270px; }
}

/* ---------- Mobile fix: letter envelope's clip window was wider than the screen ---------- */
#letter { overflow-x: clip; }
@supports not (overflow: clip) { #letter { overflow-x: hidden; } }
