:root {
  --sky-top: #fff8d8;
  --sky-mid: #ffe7a3;
  --sky-bottom: #ffd166;
  --sun-core: #ffef7c;
  --sun-glow: rgba(255, 205, 86, 0.5);
  --petal: #ffd93d;
  --petal-dark: #ffb703;
  --leaf: #2dbf7a;
  --leaf-deep: #1d8f5f;
  --stem: #4caf50;
  --ground: #c6f28d;
  --ground-deep: #89c96b;
  --text: #5d2d1b;
  --card: rgba(255, 255, 255, 0.38);
  --shadow: rgba(120, 76, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Quicksand", sans-serif;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-mid), var(--sky-bottom));
  color: var(--text);
  overflow: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sun-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 222, 102, 0.95), rgba(255, 185, 0, 0.35) 45%, transparent 72%);
  border-radius: 50%;
  top: 50px;
  right: 120px;
  animation: pulseSun 3s ease-in-out infinite alternate;
}

.cloud {
  position: absolute;
  height: 52px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 40px;
  filter: blur(1px);
  animation: drift 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.cloud-1 {
  width: 150px;
  top: 100px;
  left: -200px;
  animation-delay: 0s;
}

.cloud-1::before { width: 55px; height: 55px; left: 18px; top: -18px; }
.cloud-1::after { width: 70px; height: 70px; right: 20px; top: -26px; }

.cloud-2 {
  width: 170px;
  top: 155px;
  left: -260px;
  animation-delay: -7s;
}

.cloud-2::before { width: 68px; height: 68px; left: 22px; top: -24px; }
.cloud-2::after { width: 72px; height: 72px; right: 26px; top: -30px; }

.cloud-3 {
  width: 130px;
  top: 75px;
  left: -180px;
  animation-delay: -12s;
}

.cloud-3::before { width: 50px; height: 50px; left: 16px; top: -18px; }
.cloud-3::after { width: 60px; height: 60px; right: 18px; top: -22px; }

.scene {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 30px 60px;
}

.message-box {
  width: min(420px, 42vw);
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 45px rgba(109, 67, 6, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  animation: floatCard 3.2s ease-in-out infinite alternate;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #bf6d1a;
}

h1 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 1.05;
  color: #8b431d;
}

.love-text {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.sunflower-wrap {
  position: relative;
  width: min(380px, 42vw);
  height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sunflower {
  position: relative;
  width: 280px;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: sway 4s ease-in-out infinite alternate;
}

.stem {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 330px;
  background: linear-gradient(to right, var(--stem), #73d072);
  border-radius: 18px;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.2);
}

.leaf {
  position: absolute;
  width: 110px;
  height: 62px;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep));
  border-radius: 100% 0 100% 0;
  bottom: 120px;
  box-shadow: inset -10px -8px 18px rgba(0,0,0,0.08);
}

.leaf-left {
  left: 10px;
  transform: rotate(-28deg) scaleX(-1);
  animation: leafWaveLeft 3.5s ease-in-out infinite alternate;
}

.leaf-right {
  right: 30px;
  transform: rotate(26deg);
  animation: leafWaveRight 3.2s ease-in-out infinite alternate;
}

.flower-head {
  position: absolute;
  width: 240px;
  height: 240px;
  bottom: 285px;
  left: 50%;
  transform: translateX(-50%);
  animation: bloom 2.5s ease-out forwards, rotateFlower 8s linear infinite;
}

.petals {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spinPetals 9s linear infinite;
}

.petals span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 90px;
  background: linear-gradient(to bottom, #ffe066, var(--petal), var(--petal-dark));
  border-radius: 55% 55% 60% 60%;
  box-shadow: inset 0 -10px 20px rgba(255, 146, 26, 0.2), 0 6px 10px rgba(120, 76, 25, 0.12);
  transform-origin: center 100%;
}

.petals span:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg) translateY(-10px); }
.petals span:nth-child(2) { transform: translate(-50%, -100%) rotate(24deg) translateY(-10px); }
.petals span:nth-child(3) { transform: translate(-50%, -100%) rotate(48deg) translateY(-10px); }
.petals span:nth-child(4) { transform: translate(-50%, -100%) rotate(72deg) translateY(-10px); }
.petals span:nth-child(5) { transform: translate(-50%, -100%) rotate(96deg) translateY(-10px); }
.petals span:nth-child(6) { transform: translate(-50%, -100%) rotate(120deg) translateY(-10px); }
.petals span:nth-child(7) { transform: translate(-50%, -100%) rotate(144deg) translateY(-10px); }
.petals span:nth-child(8) { transform: translate(-50%, -100%) rotate(168deg) translateY(-10px); }
.petals span:nth-child(9) { transform: translate(-50%, -100%) rotate(192deg) translateY(-10px); }
.petals span:nth-child(10) { transform: translate(-50%, -100%) rotate(216deg) translateY(-10px); }
.petals span:nth-child(11) { transform: translate(-50%, -100%) rotate(240deg) translateY(-10px); }
.petals span:nth-child(12) { transform: translate(-50%, -100%) rotate(264deg) translateY(-10px); }
.petals span:nth-child(13) { transform: translate(-50%, -100%) rotate(288deg) translateY(-10px); }
.petals span:nth-child(14) { transform: translate(-50%, -100%) rotate(312deg) translateY(-10px); }
.petals span:nth-child(15) { transform: translate(-50%, -100%) rotate(336deg) translateY(-10px); }

.center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe28a 0%, #f6bf00 18%, #d78d00 55%, #9d5d00 100%);
  box-shadow: inset -8px -8px 18px rgba(85, 46, 0, 0.2), 0 0 30px rgba(255, 174, 0, 0.7);
  transform: translate(-50%, -50%);
  animation: centerPulse 1.3s ease-in-out infinite alternate;
}

.floating-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-petals span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: rgba(255, 219, 74, 0.95);
  text-shadow: 0 0 10px rgba(255, 202, 60, 0.8);
  animation: petalFloat 7s ease-in-out infinite;
}

.floating-petals span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.floating-petals span:nth-child(2) { left: 24%; top: 52%; animation-delay: 1.2s; }
.floating-petals span:nth-child(3) { left: 35%; top: 70%; animation-delay: 2.4s; }
.floating-petals span:nth-child(4) { left: 52%; top: 14%; animation-delay: 0.8s; }
.floating-petals span:nth-child(5) { left: 66%; top: 48%; animation-delay: 1.9s; }
.floating-petals span:nth-child(6) { left: 74%; top: 26%; animation-delay: 2.9s; }
.floating-petals span:nth-child(7) { left: 82%; top: 60%; animation-delay: 1.7s; }
.floating-petals span:nth-child(8) { left: 90%; top: 76%; animation-delay: 0.4s; }

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(140vw); }
}

@keyframes pulseSun {
  0% { transform: scale(0.96); opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes sway {
  0% { transform: rotate(-3deg) translateY(0); }
  100% { transform: rotate(4deg) translateY(-8px); }
}

@keyframes leafWaveLeft {
  0% { transform: rotate(-28deg) scaleX(-1); }
  100% { transform: rotate(-36deg) scaleX(-1); }
}

@keyframes leafWaveRight {
  0% { transform: rotate(26deg); }
  100% { transform: rotate(34deg); }
}

@keyframes bloom {
  0% { transform: translateX(-50%) scale(0.5) rotate(-18deg); opacity: 0.1; }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes rotateFlower {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes spinPetals {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
  0% { transform: translate(-50%, -50%) scale(0.97); }
  100% { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes petalFloat {
  0% { transform: translateY(0) rotate(0deg) scale(0.9); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translateY(-26px) rotate(14deg) scale(1.1); }
  100% { transform: translateY(-60px) rotate(-12deg) scale(0.8); opacity: 0; }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .scene {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px 80px;
  }

  .message-box,
  .sunflower-wrap {
    width: min(90vw, 420px);
  }

  .sunflower-wrap {
    height: 420px;
  }

  .sunflower {
    transform: scale(0.9);
  }
}
