﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Edwardian Script ITC';
  src: url('assets/fonts/edwardian-script-itc-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-1: #f8f8fb;
  --bg-2: #f3e8ec;
  --bg-3: #e9edf7;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text-main: #1d1d1f;
  --text-soft: #4f4f56;
  --accent: #e14f72;
  --accent-deep: #c5385b;
  --title-color: #765f64;
  --shadow: 0 20px 44px rgba(34, 34, 52, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --space: clamp(1rem, 2vw, 1.6rem);
  --transition: 360ms ease;
  --wreath-opacity: 1;
  --flower-scene-scale: 0.92;
  --header-safe-height: 96px;
  --flower-top-guard: 18px;
  --flower-top-offset: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 10% 10%, var(--bg-2), transparent 42%),
    radial-gradient(circle at 88% 18%, var(--bg-3), transparent 44%),
    linear-gradient(164deg, var(--bg-1) 0%, #ffffff 100%);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

main,
.topbar {
  position: relative;
  z-index: 2;
}

#hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -60px;
  width: var(--size);
  height: var(--size);
  background: rgba(225, 79, 114, var(--alpha));
  transform: rotate(45deg);
  border-radius: 4px;
  will-change: transform, opacity;
  animation: heartFloat var(--dur) linear var(--delay) forwards;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: inherit;
}

.heart::before { left: calc(var(--size) * -0.5); }
.heart::after { top: calc(var(--size) * -0.5); }

@keyframes heartFloat {
  0% { transform: translate3d(0, 0, 0) rotate(45deg) scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate3d(var(--drift), -118vh, 0) rotate(45deg) scale(1.1); opacity: 0; }
}

.background-orb {
  position: fixed;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}

.orb-one { top: -16vmax; left: -12vmax; background: #f7a6bc; }
.orb-two { right: -14vmax; bottom: -16vmax; background: #b6c8ff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 0.65rem clamp(1rem, 4vw, 3.2rem);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  overflow: hidden;
}

.header-wreath {
  position: absolute;
  inset: 8px 0 8px;
  z-index: 1;
  opacity: var(--wreath-opacity);
  background-image: url('assets/wreath.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  pointer-events: none;
}

#recipient-name {
  position: relative;
  z-index: 2;
  font-family: 'Edwardian Script ITC', 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2rem, 5vw, 4rem);
  font-style: normal;
  font-weight: 400;
  color: var(--title-color);
  transform: scale(var(--recipient-scale, 1.08));
  transform-origin: center;
  text-align: center;
  letter-spacing: 0.02em;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(248, 244, 245, 0.62);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.scene {
  min-height: 180vh;
  position: relative;
}

.scene-flowers {
  min-height: 225vh;
}

.scene-flowers .scene-sticky {
  padding-top: calc(var(--header-safe-height) + var(--flower-top-guard) + var(--flower-top-offset));
  align-content: end;
}

.scene-sticky {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  padding: clamp(2.4rem, 7vw, 6rem) clamp(1rem, 4vw, 3.2rem);
}

.hero { text-align: center; }

.hero-content {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: clamp(2.2rem, 8vw, 5.2rem);
  backdrop-filter: blur(7px);
}

.eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#hero-title { font-size: clamp(2.1rem, 6vw, 4.7rem); }

.subtitle {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.cta {
  display: inline-flex;
  margin-top: 1.8rem;
  border: none;
  border-radius: 999px;
  padding: 0.78rem 1.36rem;
  text-decoration: none;
  background: linear-gradient(130deg, var(--accent), var(--accent-deep));
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 24px rgba(197, 56, 91, 0.28);
  font-weight: 700;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(197, 56, 91, 0.36);
}

.cta.secondary {
  background: linear-gradient(130deg, #f196ae, #d24f71);
}

.card,
.section-heading,
.gallery,
.flowers-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.card {
  background: var(--surface-strong);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.story-card {
  width: min(1120px, 100%);
  padding: clamp(1.8rem, 5.8vw, 3.1rem);
}

.story-card h3 {
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  margin-bottom: 0.8rem;
}

#story-text {
  max-width: 75ch;
  font-size: clamp(1rem, 1.9vw, 1.26rem);
  line-height: 1.82;
}

.section-heading { margin-bottom: 1.35rem; }

.section-heading h3,
.counter-card h3,
.music-card h3,
.surprise-card h3 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin-bottom: 0.6rem;
}

.flowers-wrap {
  margin-top: 0;
  height: clamp(620px, calc(100vh - var(--header-safe-height) - 18px), 980px);
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border: none;
  transform: scale(var(--flower-scene-scale));
  transform-origin: center bottom;
}

.fx-flowers {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: min(98vw, 1320px);
  height: 120%;
  transform: translateX(-50%) translateY(22px) scale(1.14);
  transform-origin: bottom center;
}

.fx-flower {
  position: absolute;
  bottom: 8vmin;
  transform-origin: bottom center;
  z-index: 10;
  --fl-speed: 0.8s;
}

.fx-flower--1 { left: 34%; animation: fx-moving-flower-1 4s linear infinite; }
.fx-flower--2 { left: 50%; transform: rotate(20deg); animation: fx-moving-flower-2 4s linear infinite; }
.fx-flower--3 { left: 62%; transform: rotate(-15deg); animation: fx-moving-flower-3 4s linear infinite; }

.fx-flower__leafs { position: relative; animation: fx-blooming-flower 2s backwards; }
.fx-flower__leafs--1 { animation-delay: 1.1s; }
.fx-flower__leafs--2 { animation-delay: 1.4s; }
.fx-flower__leafs--3 { animation-delay: 1.7s; }

.fx-flower__leafs::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 8vmin;
  height: 8vmin;
  background-color: #ffd4e3;
  filter: blur(6vmin);
}

.fx-flower__leaf {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8vmin;
  height: 11vmin;
  border-radius: 51% 49% 47% 53%/44% 45% 55% 69%;
  background-image: linear-gradient(to top, #d34b76, #ffb4cc);
  transform-origin: bottom center;
  opacity: 0.94;
  box-shadow: inset 0 0 2vmin rgba(255, 255, 255, 0.4);
}

.fx-flower__leaf--1 { transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg); }
.fx-flower__leaf--2 { transform: translate(-50%, -4%) rotateX(40deg); }
.fx-flower__leaf--3 { transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg); }

.fx-flower__leaf--4 {
  width: 8vmin;
  height: 8vmin;
  transform-origin: bottom left;
  border-radius: 4vmin 10vmin 4vmin 4vmin;
  transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
  background-image: linear-gradient(to top, #e26490, #ffc6da);
  z-index: 1;
  opacity: 0.9;
}

.fx-flower__white-circle {
  position: absolute;
  left: -3.5vmin;
  top: -3vmin;
  width: 9vmin;
  height: 4vmin;
  border-radius: 50%;
  background: linear-gradient(90deg, #ffd887, #ffc25e);
}

.fx-flower__line {
  height: 55vmin;
  width: 1.5vmin;
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent, rgba(255, 255, 255, 0.2)), linear-gradient(to top, transparent 10%, #2a8755, #52b77a);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
  animation: fx-grow-flower-tree 4s backwards;
}

.fx-flower--1 .fx-flower__line { height: 70vmin; animation-delay: 0.3s; }
.fx-flower--2 .fx-flower__line { height: 60vmin; animation-delay: 0.6s; }
.fx-flower--3 .fx-flower__line { animation-delay: 0.9s; }

.fx-flower__line__leaf {
  --w: 7vmin;
  --h: calc(var(--w) + 2vmin);
  position: absolute;
  top: 20%;
  left: 90%;
  width: var(--w);
  height: var(--h);
  border-top-right-radius: var(--h);
  border-bottom-left-radius: var(--h);
  background-image: linear-gradient(to top, rgba(45, 117, 74, 0.4), #59c283);
}

.fx-flower__line__leaf--1 { transform: rotate(70deg) rotateY(30deg); }
.fx-flower__line__leaf--2 { top: 45%; transform: rotate(70deg) rotateY(30deg); }

.fx-flower__line__leaf--3,
.fx-flower__line__leaf--4,
.fx-flower__line__leaf--6 {
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: var(--h);
  border-bottom-right-radius: var(--h);
  left: -460%;
  top: 12%;
  transform: rotate(-70deg) rotateY(30deg);
}

.fx-flower__line__leaf--4 { top: 40%; }
.fx-flower__line__leaf--5 { top: 0; transform-origin: left; transform: rotate(70deg) rotateY(30deg) scale(0.6); }
.fx-flower__line__leaf--6 { top: -2%; left: -450%; transform-origin: right; transform: rotate(-70deg) rotateY(30deg) scale(0.6); }

.fx-flower__light {
  position: absolute;
  bottom: 0;
  width: 1vmin;
  height: 1vmin;
  background: #ffd0df;
  border-radius: 50%;
  filter: blur(0.2vmin);
  animation: fx-light-ans 4s linear infinite backwards;
}

.fx-flower__light:nth-child(odd) { background: #f497b8; }
.fx-flower__light--1 { left: -2vmin; animation-delay: 1s; }
.fx-flower__light--2 { left: 3vmin; animation-delay: 0.5s; }
.fx-flower__light--3 { left: -6vmin; animation-delay: 0.3s; }
.fx-flower__light--4 { left: 6vmin; animation-delay: 0.9s; }
.fx-flower__light--5 { left: -1vmin; animation-delay: 1.5s; }
.fx-flower__light--6 { left: -4vmin; animation-delay: 3s; }
.fx-flower__light--7 { left: 3vmin; animation-delay: 2s; }
.fx-flower__light--8 { left: -6vmin; animation-delay: 3.5s; }

.fx-flower__grass {
  --c: #3f9564;
  --line-w: 1.5vmin;
  position: absolute;
  bottom: 12vmin;
  left: 35%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 20;
  transform-origin: bottom center;
  transform: rotate(-48deg) rotateY(40deg);
}

.fx-flower__grass--1 { animation: fx-moving-grass 2s linear infinite; }

.fx-flower__grass--2 {
  left: 58%;
  bottom: 10vmin;
  transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
  opacity: 0.8;
  z-index: 0;
  animation: fx-moving-grass-2 1.5s linear infinite;
}

.fx-flower__grass--top {
  width: 7vmin;
  height: 10vmin;
  border-top-right-radius: 100%;
  border-right: var(--line-w) solid var(--c);
  transform-origin: bottom center;
  transform: rotate(-2deg);
}

.fx-flower__grass--bottom {
  margin-top: -2px;
  width: var(--line-w);
  height: 25vmin;
  background-image: linear-gradient(to top, transparent, var(--c));
}

.fx-flower__grass__leaf {
  --size: 10vmin;
  position: absolute;
  width: calc(var(--size) * 2.1);
  height: var(--size);
  border-top-left-radius: var(--size);
  border-top-right-radius: var(--size);
  background-image: linear-gradient(to top, transparent, transparent 30%, var(--c));
}

.fx-flower__grass__leaf--1 { top: -6%; left: 30%; --size: 6vmin; transform: rotate(-20deg); }
.fx-flower__grass__leaf--2 { top: -5%; left: -110%; --size: 6vmin; transform: rotate(10deg); }
.fx-flower__grass__leaf--3 { top: 5%; left: 60%; --size: 8vmin; transform: rotate(-18deg) rotateX(-20deg); }
.fx-flower__grass__leaf--4 { top: 6%; left: -135%; --size: 8vmin; transform: rotate(2deg); }
.fx-flower__grass__leaf--5 { top: 20%; left: 60%; --size: 10vmin; transform: rotate(-24deg) rotateX(-20deg); }
.fx-flower__grass__leaf--6 { top: 22%; left: -180%; --size: 10vmin; transform: rotate(10deg); }
.fx-flower__grass__leaf--7 { top: 39%; left: 70%; --size: 10vmin; transform: rotate(-10deg); }
.fx-flower__grass__leaf--8 { top: 40%; left: -215%; --size: 11vmin; transform: rotate(10deg); }

.fx-flower__grass__overlay {
  position: absolute;
  top: -10%;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.08);
  filter: blur(1.2vmin);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space);
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 34, 52, 0.14);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 34px rgba(34, 34, 52, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(197, 56, 91, 0.35);
}

.counter-subtitle { margin-bottom: 1rem; }

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.counter-item {
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 0.85rem 0.4rem;
  border: 1px solid rgba(29, 29, 31, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.counter-item span {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.95rem);
  color: var(--accent-deep);
  font-weight: 700;
}

.counter-note { margin-top: 0.9rem; font-size: 0.92rem; }

.counter-card { animation: counterGlow 3s ease-in-out infinite alternate; }

@keyframes counterGlow {
  from { box-shadow: var(--shadow); }
  to { box-shadow: 0 22px 48px rgba(197, 56, 91, 0.24); }
}

.surprise-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(225, 79, 114, 0.12);
  color: var(--text-main);
}

#spotify-player-wrap {
  margin-top: 1rem;
  width: min(760px, 100%);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height 320ms ease, opacity 260ms ease, transform 260ms ease;
}

#spotify-player-wrap.is-active {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

#spotify-player-wrap iframe {
  width: 100%;
  height: var(--spotify-height, 152px);
  border: 0;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 28px rgba(29, 29, 31, 0.14);
}

.spotify-message {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(197, 56, 91, 0.35);
  color: var(--text-soft);
}

.scene-layer {
  opacity: 0.14;
  transform: translate3d(0, 42px, 0) scale(0.96);
  will-change: transform, opacity;
  transition: opacity 0.18s linear, transform 0.18s linear;
}

#hero-title,
.section-heading p,
.counter-note,
.surprise-panel,
.spotify-message {
  overflow-wrap: anywhere;
  word-break: normal;
}

@keyframes fx-moving-flower-1 { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
@keyframes fx-moving-flower-2 { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(14deg); } }
@keyframes fx-moving-flower-3 { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(-20deg) rotateY(-10deg); } }
@keyframes fx-light-ans {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(-5vmin) translateX(-2vmin); }
  50% { opacity: 1; transform: translateY(-15vmin) translateX(2vmin); }
  75% { transform: translateY(-20vmin) translateX(-2vmin); }
  100% { transform: translateY(-30vmin); opacity: 0; filter: blur(1vmin); }
}
@keyframes fx-grow-flower-tree { 0% { height: 0; border-radius: 1vmin; } }
@keyframes fx-blooming-flower { 0% { transform: scale(0); } }
@keyframes fx-moving-grass { 0%, 100% { transform: rotate(-48deg) rotateY(40deg); } 50% { transform: rotate(-50deg) rotateY(40deg); } }
@keyframes fx-moving-grass-2 {
  0%, 100% { transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg); }
  50% { transform: scale(0.5) rotate(79deg) rotateX(10deg) rotateY(-200deg); }
}

.not-loaded #scene-flowers .fx-flowers * {
  animation-play-state: paused !important;
}

body[data-wreath='soft'] { --wreath-opacity: 0.65; }
body[data-wreath='normal'] { --wreath-opacity: 0.85; }
body[data-wreath='rich'] { --wreath-opacity: 1; }

@media (max-width: 880px) {
  :root {
    --header-safe-height: 82px;
    --flower-top-guard: 12px;
  }
  .topbar {
    min-height: 74px;
  }

  #recipient-name {
    transform: none;
    font-size: clamp(1.8rem, 7vw, 2.9rem);
    padding: 0 0.35rem;
  }

  .header-wreath {
    inset: 10px 0;
  }
}

@media (max-width: 760px) {
  .scene { min-height: clamp(112vh, 120vh, 128vh); }
  .scene-flowers { min-height: clamp(132vh, 146vh, 158vh); }

  .scene-sticky {
    padding: 1.15rem 0.9rem 1.9rem;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 0.7rem;
  }

  #recipient-name {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    line-height: 1;
    padding: 0 0.22rem;
  }

  .hero-content {
    padding: clamp(1.35rem, 5.8vw, 2rem);
    border-radius: 20px;
  }

  #hero-title {
    font-size: clamp(1.72rem, 8.2vw, 2.42rem);
  }

  .subtitle {
    font-size: clamp(0.95rem, 4.2vw, 1.08rem);
  }

  .card {
    padding: 1rem;
    border-radius: 18px;
  }

  .story-card {
    padding: 1.2rem;
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .counter-item span { font-size: clamp(1.1rem, 6.2vw, 1.45rem); }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .gallery-item img {
    height: 166px;
  }

  .flowers-wrap {
    height: clamp(390px, calc(100vh - var(--header-safe-height) - 26px), 610px);
  }

  .fx-flowers {
    width: min(108vw, 740px);
    transform: translateX(-50%) translateY(28px) scale(0.84);
  }

  #spotify-player-wrap {
    width: 100%;
    margin-top: 0.85rem;
  }

  #spotify-player-wrap.is-active {
    max-height: 390px;
  }

  #spotify-player-wrap iframe {
    border-radius: 14px;
  }

  .cta,
  #music-toggle-btn,
  #surprise-btn {
    min-height: 44px;
    justify-content: center;
  }

  .music-card .cta.secondary {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-safe-height: 72px;
    --flower-top-guard: 18px;
  }

  .scene { min-height: clamp(108vh, 116vh, 124vh); }
  .scene-flowers { min-height: clamp(126vh, 138vh, 150vh); }

  .scene-sticky {
    padding: 0.9rem 0.7rem 1.55rem;
  }

  .topbar {
    min-height: 64px;
  }

  #recipient-name {
    font-size: clamp(1.34rem, 7.8vw, 1.86rem);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  #hero-title {
    font-size: clamp(1.52rem, 8.4vw, 2.1rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .card {
    padding: 0.85rem;
  }

  .story-card h3,
  .section-heading h3,
  .counter-card h3,
  .music-card h3,
  .surprise-card h3 {
    font-size: clamp(1.4rem, 8vw, 1.85rem);
  }

  .gallery {
    gap: 0.55rem;
  }

  .gallery-item img {
    height: 148px;
  }

  .counter-grid {
    gap: 0.52rem;
  }

  .counter-item {
    padding: 0.68rem 0.35rem;
  }

  .flowers-wrap {
    height: clamp(350px, calc(100vh - var(--header-safe-height) - 30px), 500px);
  }

  .fx-flowers {
    width: min(112vw, 640px);
    transform: translateX(-50%) translateY(30px) scale(0.76);
  }

  #spotify-player-wrap.is-active {
    max-height: 360px;
  }
}

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

  .scene-layer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .counter-card { animation: none; }

  .heart,
  .fx-flowers * {
    animation: none !important;
  }

  #spotify-player-wrap {
    transition: none;
  }
}

