:root {
  --ink: #2c2630;
  --muted: #725f69;
  --pink: #ff7aa8;
  --rose: #ffd6e4;
  --mint: #c8f3df;
  --cream: #fff9f1;
  --yellow: #ffd86b;
  --shadow: 0 24px 60px rgba(126, 60, 91, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 107, 0.48), transparent 31rem),
    radial-gradient(circle at bottom right, rgba(200, 243, 223, 0.7), transparent 28rem),
    linear-gradient(135deg, #fff5f8 0%, #fffaf0 52%, #f0fff8 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.music-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(95, 62, 78, 0.16);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  background: white;
}

.music-toggle.is-muted {
  color: #fff;
  background: rgba(44, 38, 48, 0.78);
}

.web-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(44, 38, 48, 0.36);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.web-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 26px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 216, 107, 0.32), transparent 13rem),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(44, 38, 48, 0.28);
  transform: translateY(18px) scale(0.96);
  transition: transform 220ms cubic-bezier(0.2, 1.35, 0.35, 1);
}

.web-popup.is-open .popup-card {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 214, 228, 0.72);
  font-size: 1.35rem;
  line-height: 1;
}

.popup-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #ffd6e4;
  border-radius: 50%;
  font-size: 2.4rem;
  box-shadow: 0 14px 28px rgba(185, 75, 120, 0.16);
  animation: popupIconBounce 1100ms ease-in-out infinite;
}

.popup-card h2 {
  margin: 0;
  font-size: clamp(1.85rem, 7vw, 3rem);
}

.popup-card p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.app-shell {
  position: relative;
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  place-items: center;
}

.page {
  display: none;
  width: min(100%, 760px);
  min-height: min(680px, calc(100vh - 48px));
  padding: clamp(24px, 5vw, 54px);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: pageIn 520ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b94b78;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.typing-eyebrow {
  min-height: 1.3em;
}

.typing-eyebrow span {
  display: inline-block;
  min-width: 8ch;
}

.typing-eyebrow span::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.16em;
  background: currentColor;
  animation: caretBlink 760ms steps(1) infinite;
}

h1,
h2 {
  margin: 0;
  font-family: "Baloo 2", "Poppins", sans-serif;
  line-height: 1.04;
}

h1 {
  max-width: 680px;
  font-size: clamp(3.2rem, 12vw, 7.4rem);
}

h2 {
  max-width: 680px;
  font-size: clamp(2rem, 6vw, 4rem);
}

.choice-row,
.answer-form,
.option-grid,
.cake-layout {
  margin-top: 32px;
}

.choice-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.option-btn,
.side-btn {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #ff6699, #ff9671);
  box-shadow: 0 12px 26px rgba(255, 105, 148, 0.32);
}

.ghost-btn,
.option-btn {
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 22px rgba(95, 62, 78, 0.11);
}

.primary-btn:hover,
.ghost-btn:hover,
.option-btn:hover,
.side-btn:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:disabled:hover {
  transform: none;
}

.tiny-note,
.feedback {
  min-height: 28px;
  margin: 18px 0 0;
  color: #b94b78;
  font-weight: 700;
}

.answer-form {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.answer-form input {
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 122, 168, 0.28);
  border-radius: 999px;
  outline: none;
}

.answer-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(255, 122, 168, 0.14);
}

.burst-label {
  display: inline-grid;
  place-items: center;
  position: relative;
  z-index: 2;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 0 24px;
  color: #7d3f00;
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 800;
  transform: rotate(-5deg);
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(219, 148, 0, 0.22);
  animation: boomPop 920ms cubic-bezier(0.2, 1.35, 0.35, 1) both, boomWiggle 1900ms ease-in-out 950ms infinite;
}

.flower-page {
  background:
    linear-gradient(rgba(44, 38, 48, 0.05), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95), transparent 13rem),
    radial-gradient(circle at 22% 20%, rgba(255, 216, 107, 0.46), transparent 12rem),
    radial-gradient(circle at 82% 76%, rgba(255, 122, 168, 0.22), transparent 14rem),
    rgba(255, 255, 255, 0.72);
}

.flower-page::before,
.flower-page::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0.65;
}

.flower-page::before {
  width: 360px;
  height: 360px;
  top: 46%;
  left: 50%;
  border: 2px dashed rgba(185, 75, 120, 0.24);
  transform: translate(-50%, -50%);
  animation: slowSpin 18s linear infinite;
}

.flower-page::after {
  width: 560px;
  height: 150px;
  left: 50%;
  bottom: 78px;
  background: radial-gradient(ellipse, rgba(185, 75, 120, 0.18), transparent 70%);
  transform: translateX(-50%);
}

.media-stage {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(70, 119, 91, 0.22);
}

.flower-showcase {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  display: grid;
  place-items: center;
}

.flower-card {
  position: relative;
  transform-origin: 50% 88%;
  animation: flowerEntrance 1050ms cubic-bezier(0.18, 1.25, 0.42, 1) both, flowerSway 4200ms ease-in-out 1150ms infinite;
}

.flower-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: conic-gradient(from 10deg, rgba(255, 122, 168, 0), rgba(255, 216, 107, 0.7), rgba(126, 221, 181, 0.7), rgba(255, 122, 168, 0));
  border-radius: 36px;
  filter: blur(14px);
  opacity: 0.9;
  animation: glowPulse 2400ms ease-in-out infinite;
}

.flower-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.52) 45%, transparent 66%);
  transform: translateX(-125%);
  animation: romanticShine 3400ms ease-in-out 1200ms infinite;
}

.flower-card img {
  animation: imageBreathe 3600ms ease-in-out infinite;
}

.flower-note {
  position: relative;
  z-index: 2;
  margin: 22px 0 8px;
  padding: 9px 18px;
  color: #9d3f6b;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 122, 168, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(185, 75, 120, 0.1);
  animation: noteFloat 2900ms ease-in-out infinite;
}

.flower-spark {
  position: absolute;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 78%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 22% 50%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 78% 50%, #fff 0 12%, transparent 13%),
    radial-gradient(circle, #ffd6e4 0 30%, transparent 31%);
  filter: drop-shadow(0 10px 18px rgba(185, 75, 120, 0.16));
  opacity: 0.88;
  animation: orbitFloat 4600ms ease-in-out infinite;
}

.spark-a {
  top: 18px;
  left: 2px;
}

.spark-b {
  right: 2px;
  top: 42%;
  width: 62px;
  animation-delay: -1500ms;
}

.spark-c {
  left: 30px;
  bottom: 18px;
  width: 54px;
  animation-delay: -2800ms;
}

.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal-field span {
  position: absolute;
  top: -28px;
  width: 14px;
  height: 22px;
  border-radius: 14px 14px 14px 2px;
  background: rgba(255, 122, 168, 0.62);
  animation: petalFall 5200ms linear infinite;
}

.petal-field span:nth-child(1) {
  left: 12%;
  animation-delay: -400ms;
}

.petal-field span:nth-child(2) {
  left: 27%;
  width: 12px;
  height: 19px;
  background: rgba(255, 216, 107, 0.72);
  animation-delay: -2100ms;
}

.petal-field span:nth-child(3) {
  left: 43%;
  animation-delay: -1200ms;
}

.petal-field span:nth-child(4) {
  left: 61%;
  width: 11px;
  height: 18px;
  background: rgba(200, 243, 223, 0.9);
  animation-delay: -3100ms;
}

.petal-field span:nth-child(5) {
  left: 76%;
  animation-delay: -1700ms;
}

.petal-field span:nth-child(6) {
  left: 89%;
  width: 13px;
  height: 20px;
  background: rgba(255, 216, 107, 0.7);
  animation-delay: -3900ms;
}

.heart-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart-field span {
  position: absolute;
  bottom: 16%;
  width: 16px;
  height: 16px;
  background: rgba(255, 122, 168, 0.62);
  transform: rotate(45deg);
  animation: heartRise 4400ms ease-in-out infinite;
}

.heart-field span::before,
.heart-field span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 999px;
}

.heart-field span::before {
  left: -8px;
}

.heart-field span::after {
  top: -8px;
}

.heart-field span:nth-child(1) {
  left: 16%;
  animation-delay: -900ms;
}

.heart-field span:nth-child(2) {
  left: 34%;
  width: 12px;
  height: 12px;
  opacity: 0.72;
  animation-delay: -2300ms;
}

.heart-field span:nth-child(2)::before,
.heart-field span:nth-child(2)::after {
  width: 12px;
  height: 12px;
}

.heart-field span:nth-child(2)::before {
  left: -6px;
}

.heart-field span:nth-child(2)::after {
  top: -6px;
}

.heart-field span:nth-child(3) {
  right: 28%;
  animation-delay: -1500ms;
}

.heart-field span:nth-child(4) {
  right: 12%;
  width: 13px;
  height: 13px;
  opacity: 0.78;
  animation-delay: -3200ms;
}

.heart-field span:nth-child(4)::before,
.heart-field span:nth-child(4)::after {
  width: 13px;
  height: 13px;
}

.heart-field span:nth-child(4)::before {
  left: -6.5px;
}

.heart-field span:nth-child(4)::after {
  top: -6.5px;
}

.media-stage img,
.cake-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.flower-page h2 {
  margin-top: 24px;
}

.flower-page .primary-btn {
  margin-top: 22px;
}

.option-grid {
  width: min(100%, 580px);
  display: grid;
  gap: 12px;
}

.option-btn {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  padding: 12px 18px;
}

.cake-page h2 {
  margin-bottom: 8px;
}

.cake-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) auto;
  align-items: center;
  gap: 24px;
}

.cake-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 32px;
  background: white;
  box-shadow: 0 24px 48px rgba(138, 75, 84, 0.22);
}

.candle-set,
.smoke-set {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.candle {
  position: absolute;
  bottom: 58%;
  width: 18px;
  height: 62px;
  border-radius: 8px 8px 4px 4px;
  background:
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.9) 0 7px, rgba(255, 122, 168, 0.95) 7px 13px);
  box-shadow: inset 0 -7px 0 rgba(44, 38, 48, 0.08), 0 10px 18px rgba(44, 38, 48, 0.16);
  transform-origin: 50% 100%;
  animation: candleBob 2600ms ease-in-out infinite;
}

.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 216, 107, 0.72);
  transform: translateX(-50%);
}

.candle i {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 18px;
  height: 26px;
  border-radius: 50% 50% 50% 8px;
  background: radial-gradient(circle at 50% 68%, #fff7b0 0 22%, #ffb43d 45%, #ff6d4a 72%);
  box-shadow: 0 0 18px rgba(255, 150, 60, 0.78), 0 0 34px rgba(255, 216, 107, 0.52);
  transform: translateX(-50%) rotate(45deg);
  animation: flameFlicker 560ms ease-in-out infinite alternate;
}

.candle-one {
  left: 36%;
  transform: rotate(-7deg);
}

.candle-two {
  left: 49%;
  bottom: 62%;
  height: 70px;
  animation-delay: -900ms;
}

.candle-three {
  left: 62%;
  transform: rotate(7deg);
  animation-delay: -1500ms;
}

.cake-page.cake-blown .candle i {
  animation: flameOut 420ms ease forwards;
}

.smoke-set span {
  position: absolute;
  bottom: 67%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(120, 113, 119, 0.32);
  filter: blur(3px);
  opacity: 0;
}

.smoke-set span:nth-child(1) {
  left: 36%;
}

.smoke-set span:nth-child(2) {
  left: 50%;
}

.smoke-set span:nth-child(3) {
  left: 63%;
}

.cake-page.cake-blown .smoke-set span {
  animation: smokeRise 1800ms ease-out forwards;
}

.cake-page.cake-blown .smoke-set span:nth-child(2) {
  animation-delay: 120ms;
}

.cake-page.cake-blown .smoke-set span:nth-child(3) {
  animation-delay: 220ms;
}

.cake-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.cake-actions p {
  min-height: 28px;
  margin: 0;
  color: #b94b78;
  font-weight: 800;
  display: none;
}

.blow-btn {
  min-width: 150px;
  display: none;
}

.side-btn {
  width: 132px;
  min-height: 132px;
  padding: 16px;
  color: #fff;
  line-height: 1.15;
  background: #2f8c6f;
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(47, 140, 111, 0.28);
}

.cake-page.cake-blown .side-btn {
  opacity: 1;
  cursor: pointer;
  animation: secretPulse 1300ms ease-in-out infinite;
}

.message-page {
  width: min(100%, 940px);
  text-align: left;
}

.message-page.is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.message-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(210px, 340px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}

.message-slide.is-current {
  display: grid;
  animation: messageSlideIn 520ms ease both;
}

.message-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(72, 44, 61, 0.2);
}

.message-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.message-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.message-box h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.message-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.8;
}

.message-count {
  margin-bottom: 12px;
  color: #b94b78;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.message-box .signature {
  color: var(--ink);
  font-weight: 800;
}

.sparkle {
  position: absolute;
  width: 130px;
  aspect-ratio: 1;
  background: var(--mint);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 64%, 50% 100%, 38% 64%, 0 50%, 38% 35%);
  opacity: 0.58;
}

.sparkle.one {
  top: 40px;
  left: 42px;
}

.sparkle.two {
  right: 42px;
  bottom: 48px;
  width: 92px;
  background: var(--rose);
}

.confetti {
  position: fixed;
  top: -12px;
  width: 9px;
  height: 15px;
  border-radius: 3px;
  pointer-events: none;
  animation: fall 1100ms linear forwards;
  z-index: 20;
}

.dramatic-close .app-shell {
  animation: blinkClose 600ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fall {
  to {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes boomPop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-18deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.14) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(-5deg);
  }
}

@keyframes boomWiggle {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-4px);
  }
}

@keyframes flowerEntrance {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.62) rotate(-9deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-8px) scale(1.04) rotate(4deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes flowerSway {
  0%,
  100% {
    transform: rotate(-1.8deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-9px);
  }
}

@keyframes imageBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes romanticShine {
  0%,
  42% {
    transform: translateX(-125%);
  }
  70%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes noteFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, -18px) rotate(16deg);
  }
}

@keyframes petalFall {
  0% {
    transform: translateY(-40px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(760px) translateX(70px) rotate(380deg);
    opacity: 0;
  }
}

@keyframes heartRise {
  0% {
    opacity: 0;
    transform: translateY(30px) translateX(0) rotate(45deg) scale(0.55);
  }
  18% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-360px) translateX(34px) rotate(45deg) scale(1.05);
  }
}

@keyframes blinkClose {
  0%,
  100% {
    filter: none;
    transform: scale(1);
  }
  45% {
    filter: brightness(0.45) grayscale(0.7);
    transform: scale(0.97);
  }
}

@keyframes popupIconBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes candleBob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

@keyframes flameFlicker {
  from {
    transform: translateX(-50%) rotate(38deg) scale(0.9);
  }
  to {
    transform: translateX(-50%) rotate(50deg) scale(1.08);
  }
}

@keyframes flameOut {
  to {
    opacity: 0;
    transform: translateX(-50%) rotate(45deg) scale(0.2) translateY(-10px);
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  18% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(22px, -96px) scale(2.4);
  }
}

@keyframes secretPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .page {
    min-height: calc(100vh - 28px);
    border-radius: 24px;
  }

  .answer-form,
  .cake-layout,
  .message-slide.is-current {
    grid-template-columns: 1fr;
  }

  .answer-form .primary-btn {
    width: 100%;
  }

  .cake-layout {
    justify-items: center;
  }

  .candle {
    bottom: 56%;
    width: 14px;
    height: 50px;
  }

  .candle i {
    bottom: 45px;
    width: 15px;
    height: 22px;
  }

  .cake-actions {
    width: 100%;
  }

  .side-btn {
    width: auto;
    min-width: 168px;
    min-height: 54px;
    border-radius: 999px;
  }

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

  .message-slide {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .message-controls {
    width: 100%;
  }

  .message-controls button {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .primary-btn,
  .ghost-btn,
  .option-btn {
    width: 100%;
  }

  .choice-row {
    width: 100%;
  }

  .sparkle {
    display: none;
  }
}
