:root {
  color-scheme: dark;
  --bg: #000;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 247, 235, .14);
  --line-strong: rgba(255, 247, 235, .24);
  --text: #fff8ef;
  --muted: rgba(255, 248, 239, .68);
  --soft: rgba(255, 248, 239, .45);
  --gold: #d6bd82;
  --accent: #e50922;
  --accent-soft: rgba(229, 9, 34, .08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 248, 235, .055), transparent 31%),
    radial-gradient(circle at 12% 18%, var(--accent-soft), transparent 22%),
    #000;
  font-family: var(--font-ui);
  font-weight: 500;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.is-published {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 78px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(214, 189, 130, .64);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, .18), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(214, 189, 130, .075)),
    #010101;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .035),
    0 0 24px rgba(214, 189, 130, .12);
  color: #fff4d4;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.nav-links a,
.topbar-cta {
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.topbar-cta,
.button,
.mini-button,
.sound-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.topbar-cta {
  padding: 10px 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover,
.topbar-cta:hover {
  border-color: rgba(216, 179, 106, .48);
  background: rgba(216, 179, 106, .07);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(216, 179, 106, .54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(214, 189, 130, .09)),
    #050505;
  box-shadow: 0 0 30px rgba(214, 189, 130, .1);
}

.button.secondary {
  color: var(--muted);
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 102px);
  padding: 66px 0 58px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1,
.section-heading h2,
.creator-intro h2,
.pricing-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(56px, 8.4vw, 114px);
}

.hero-lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-facts div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hero-facts dt {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}

.device-shell {
  position: relative;
  min-height: 734px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    #030303;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, .7),
    0 0 70px rgba(216, 179, 106, .06);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 9px 10px;
  color: var(--soft);
  font-size: 11px;
}

.mini-button {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
}

.wish-preview {
  --scene-a: #e50922;
  --scene-b: #5c000a;
  --scene-c: #ff7a82;
  --scene-ink: #fff7f4;
  position: relative;
  display: grid;
  min-height: 654px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 248, 239, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--scene-a), transparent 91%), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, .025), transparent 18%),
    #000;
  isolation: isolate;
}

.wish-preview::before,
.wish-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wish-preview::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 47%, transparent 0 39%, rgba(0, 0, 0, .56) 74%, #000 100%),
    linear-gradient(180deg, #000 0%, transparent 20%, transparent 70%, #000 100%);
}

.wish-preview::after {
  z-index: 2;
  opacity: .14;
  background-image: radial-gradient(circle, rgba(255, 248, 239, .7) 0 1px, transparent 1.3px);
  background-size: 240px 240px;
  animation: starDrift 64s linear infinite;
}

.scene-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.wish-copy {
  position: relative;
  z-index: 4;
  width: min(88%, 610px);
  align-self: end;
  margin-bottom: clamp(44px, 8vh, 72px);
  text-align: center;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--scene-a), transparent 55%),
    0 18px 34px rgba(0, 0, 0, .86);
  animation: copyFloat 18s ease-in-out 25s infinite;
}

.occasion-label,
.wish-copy h1,
.wish-copy h2 {
  opacity: 0;
}

.wish-copy h1,
.wish-copy h2 {
  margin: 0;
  color: var(--scene-ink);
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 82px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.wish-copy .occasion-label + h1,
.wish-copy .occasion-label + h2 {
  margin-top: 10px;
}

.wish-copy p:not(.occasion-label) {
  opacity: 0;
  max-width: 460px;
  margin: 16px auto 0;
  color: rgba(255, 248, 239, .72);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 500;
}

.occasion-label {
  margin-bottom: 12px;
  color: rgba(255, 248, 239, .95);
  font-size: clamp(13px, 1.5vw, 16px);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.wish-preview.text-ready .occasion-label,
.wish-preview.text-ready .wish-copy h1,
.wish-preview.text-ready .wish-copy h2 {
  animation: primaryTextReveal 3.2s cubic-bezier(.19, 1, .22, 1) forwards;
}

.wish-preview.message-ready .wish-copy p:not(.occasion-label) {
  animation: messageTextReveal 3s cubic-bezier(.19, 1, .22, 1) forwards;
}

.sound-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  padding: 8px 11px;
  color: rgba(255, 248, 239, .72);
  background: rgba(0, 0, 0, .5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sound-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.template-action {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(148px, 24vh, 228px);
  transform: translateX(-50%);
  min-width: 156px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--scene-a), #fff 20%);
  border-radius: 999px;
  color: color-mix(in srgb, var(--scene-c), #fff 36%);
  background: rgba(0, 0, 0, .58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--scene-a), transparent 72%),
    inset 0 0 14px rgba(255, 255, 255, .03);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
}

.wish-preview.has-template-action .template-action {
  opacity: 1;
  pointer-events: auto;
}

.wish-preview.awaiting-interaction .scene-layer * {
  animation-play-state: paused !important;
}

.wish-preview.awaiting-interaction .wish-copy .occasion-label,
.wish-preview.awaiting-interaction .wish-copy h1,
.wish-preview.awaiting-interaction .wish-copy h2,
.wish-preview.awaiting-interaction .wish-copy p:not(.occasion-label) {
  opacity: 0 !important;
  animation: none !important;
}

.template-action:hover {
  border-color: color-mix(in srgb, var(--scene-a), #fff 36%);
  transform: translateX(-50%) translateY(-1px);
}

.template-action[hidden] {
  display: none;
}

.templates-section,
.creator-section,
.pricing-section {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .22);
}

.templates-section,
.creator-section {
  padding: clamp(22px, 4vw, 38px);
}

.section-heading,
.creator-intro {
  display: grid;
  max-width: 780px;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2,
.creator-intro h2,
.pricing-section h2 {
  font-size: clamp(40px, 5.4vw, 76px);
}

.section-heading p,
.creator-intro p,
.pricing-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.template-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.template-card {
  display: block;
  width: 100%;
  min-height: 258px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--card-accent), transparent 82%), transparent 36%),
    #030303;
  text-align: left;
  cursor: pointer;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.template-card:hover,
.template-card.is-active {
  border-color: color-mix(in srgb, var(--card-accent), #fff 25%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--card-accent), transparent 78%);
}

.template-card:hover {
  transform: translateY(-2px);
}

.template-thumb {
  height: 174px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.template-thumb .scene-svg {
  width: 78%;
  height: 100%;
  max-width: 260px;
}

.template-thumb .scene-line,
.template-thumb .ring-line,
.template-thumb .calligraphy-line,
.template-thumb .steam-line,
.template-thumb .mist,
.template-thumb .music-note {
  animation-duration: 7s;
}

.template-thumb .wish-copy {
  opacity: 1;
  animation: none;
}

.template-thumb .occasion-label,
.template-thumb .wish-copy h1,
.template-thumb .wish-copy h2,
.template-thumb .wish-copy p {
  opacity: 1;
  animation: none;
}

.template-thumb .scene-fill,
.template-thumb .moon-disc {
  animation-delay: 5.2s;
}

.template-thumb + div {
  padding: 14px;
}

.template-card span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.template-card h3 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 28px;
  align-items: start;
}

.creator-form {
  display: grid;
  gap: 18px;
}

fieldset,
label {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
textarea,
select,
.slug-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, .42);
  outline: none;
}

input,
textarea,
select {
  padding: 13px 14px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.slug-field:focus-within {
  border-color: rgba(216, 179, 106, .55);
  box-shadow: 0 0 0 4px rgba(216, 179, 106, .08);
}

.slug-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slug-field span {
  padding-left: 14px;
  color: var(--soft);
  white-space: nowrap;
}

.slug-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-template-select {
  display: none;
}

.picker-button,
.swatch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .032);
  cursor: pointer;
}

.picker-button {
  gap: 8px;
  padding: 0 12px 0 8px;
  font-size: 12px;
}

.picker-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 16px color-mix(in srgb, var(--dot), transparent 45%);
}

.picker-button.is-active,
.swatch.is-active {
  color: var(--text);
  border-color: rgba(216, 179, 106, .5);
  background: rgba(216, 179, 106, .055);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  gap: 8px;
  padding: 0 13px 0 8px;
  font-size: 12px;
}

.swatch::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
}

.swatch[data-theme="prismatic"]::before {
  background: conic-gradient(
    from 225deg,
    #7ebbb8 0deg,
    #ab9ac9 82deg,
    #d3a58f 164deg,
    #b7c58c 246deg,
    #9b8eb7 328deg,
    #7ebbb8 360deg
  );
}

.music-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.music-choice input {
  width: auto;
}

.field-hint {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.slug-status {
  display: block;
  margin-top: 8px;
}

.slug-status.is-warning {
  color: #e8bf86;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-panel {
  border: 1px solid rgba(216, 179, 106, .28);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 179, 106, .12), transparent 36%),
    rgba(255, 255, 255, .035);
}

.result-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}

.generated-link {
  display: flex;
  gap: 10px;
}

.generated-link input {
  min-width: 0;
}

.creator-device {
  position: sticky;
  top: 94px;
  min-height: 662px;
}

.creator-device .wish-preview {
  min-height: 582px;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(0, 0, 0, .36);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-row strong {
  font-size: 30px;
}

.checkout-row.muted {
  color: var(--muted);
}

.checkout-summary {
  margin: 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .02);
}

.checkout-summary-title {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.checkout-summary dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.checkout-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.checkout-summary dt {
  margin: 0;
}

.checkout-summary dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.published-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
}

.published-preview {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

.published-preview .wish-copy {
  margin-bottom: clamp(74px, 12vh, 142px);
}

.published-preview .wish-copy h1 {
  font-size: clamp(64px, 12vw, 138px);
}

.published-sound {
  top: 22px;
  right: 22px;
}

.back-link {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 90;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px);
  font-size: 12px;
}

.scene-svg {
  position: relative;
  z-index: 3;
  width: min(78%, 390px);
  height: min(58%, 420px);
  overflow: visible;
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--scene-a), transparent 62%))
    drop-shadow(0 0 22px color-mix(in srgb, var(--scene-a), transparent 82%));
  animation: sceneFloat 24s ease-in-out infinite;
}

.scene-line,
.ring-line,
.calligraphy-line,
.steam-line,
.mist,
.music-note,
.letter-body,
.letter-flap,
.letter-page {
  fill: none;
  stroke: var(--line-color, var(--scene-a));
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 8;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: drawScene 20s cubic-bezier(.42, 0, .16, 1) forwards;
}

.scene-fill,
.moon-disc {
  fill: color-mix(in srgb, var(--fill-color, var(--scene-a)), #000 42%);
  opacity: 0;
  animation: fillScene 8.2s ease 16s forwards;
}

.rose-fill {
  opacity: 0;
  animation: roseFillBloom 9.6s cubic-bezier(.2, .7, .2, 1) 14s forwards;
}

.rose-line {
  stroke-width: 2.15;
}

.rose-tap-burst {
  fill: color-mix(in srgb, var(--scene-c), transparent 62%);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.wish-preview.rose-bloom-boost .rose-tap-burst {
  animation: roseTapBurst 1.2s cubic-bezier(.21, 1, .31, 1) forwards;
}

.wish-preview.rose-bloom-boost .rose-aura {
  filter:
    blur(8px)
    drop-shadow(0 0 24px color-mix(in srgb, var(--scene-a), transparent 38%));
}

.rose-aura {
  fill: color-mix(in srgb, var(--scene-a), #000 72%);
  opacity: 0;
  filter: blur(8px);
  transform-origin: 126px 78px;
  animation:
    roseAuraBloom 8.8s cubic-bezier(.2, .7, .2, 1) 10.5s forwards,
    roseAuraPulse 10s ease-in-out 20s infinite;
}

.rose-bloom-overlay {
  fill: none;
  stroke: color-mix(in srgb, var(--scene-c), #fff 14%);
  stroke-width: 1.2;
  opacity: 0;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--scene-c), transparent 58%));
  animation: roseOverlayReveal 6.5s ease 16.4s forwards;
}

.rose-dew {
  fill: color-mix(in srgb, var(--scene-c), #fff 32%);
  opacity: 0;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--scene-c), transparent 35%));
  transform-box: fill-box;
  transform-origin: center;
  animation:
    roseDewAppear .7s ease var(--dew-delay, 18s) forwards,
    roseDewTwinkle 5.8s ease-in-out calc(var(--dew-delay, 18s) + .7s) infinite;
}

.delay-2 {
  animation-delay: 0s;
}

.delay-3 {
  animation-delay: 0s;
}

.flame-shape {
  fill: #ffd99a;
  stroke: #fff2c8;
  stroke-width: 1.3;
  transform-origin: center;
  filter: drop-shadow(0 0 16px #d9a441);
  animation: flameSway 7.4s ease-in-out infinite, fillScene 3.8s ease forwards;
}

.flame-1 { animation-delay: .3s; }
.flame-2 { animation-delay: 1s; }
.flame-3 { animation-delay: 1.8s; }

.wish-preview[data-template="candles"] .flame-shape {
  opacity: 0;
  transform: translateY(14px) scale(.55);
  animation:
    flameIgnite .95s cubic-bezier(.2, .9, .2, 1) var(--ignite-delay, 0s) forwards,
    flameSway 7.4s ease-in-out calc(var(--ignite-delay, 0s) + .95s) infinite;
  animation-play-state: paused, paused;
}

.wish-preview[data-template="candles"] .flame-1 { --ignite-delay: .25s; }
.wish-preview[data-template="candles"] .flame-2 { --ignite-delay: .8s; }
.wish-preview[data-template="candles"] .flame-3 { --ignite-delay: 1.35s; }

.wish-preview[data-template="candles"].candles-lit .flame-shape {
  animation-play-state: running, running;
}

.wish-preview[data-template="candles"].candles-lit .lit-candles {
  animation: candleClusterLift 5.6s ease-in-out 1.1s infinite;
  transform-origin: 120px 115px;
}

.moon-disc {
  fill: color-mix(in srgb, var(--scene-c), var(--scene-a) 28%);
  opacity: .9;
  animation: moonGlow 24s ease-in-out infinite;
}

.moon-cut {
  fill: #000;
}

.moon-orbit {
  stroke: color-mix(in srgb, var(--scene-c), #fff 18%);
  opacity: .7;
}

.moon-orbit-soft {
  opacity: .46;
}

.moon-shooting {
  stroke: color-mix(in srgb, var(--scene-c), #fff 28%);
  opacity: .65;
}

.wish-preview[data-template="moon"].moon-awake .moon-disc {
  filter: drop-shadow(0 0 36px color-mix(in srgb, var(--scene-a), transparent 42%));
}

.spark,
.firefly,
.scene-dot,
.star-node {
  fill: var(--spark-color, var(--scene-c));
  filter: drop-shadow(0 0 10px var(--spark-glow, var(--scene-a)));
  opacity: .78;
  animation: sparkPulse 14s ease-in-out var(--delay, 0s) infinite;
}

.firefly {
  fill: var(--firefly-color, var(--scene-a));
  filter: drop-shadow(0 0 12px var(--firefly-glow, var(--spark-glow, var(--scene-a))));
  animation-duration: 16s;
}

.firefly-loop {
  stroke: color-mix(in srgb, var(--trail-color, var(--line-color, var(--scene-a))), #fff 18%);
  opacity: .74;
}

.firefly-loop-soft {
  stroke: color-mix(in srgb, var(--trail-soft-color, var(--accent-color, var(--scene-c))), #fff 12%);
  opacity: .62;
}

.wish-preview[data-template="fireflies"].fireflies-awake .firefly {
  animation-duration: 11.5s;
}

.falling-petal {
  fill: color-mix(in srgb, var(--scene-a), #000 20%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--scene-a), transparent 52%));
  animation: petalFall 26s linear var(--delay, 0s) infinite;
}

.letter-body,
.letter-flap {
  stroke-width: 2;
}

.letter-note {
  fill: rgba(255, 248, 239, .1);
  opacity: 0;
  transform: translateY(15px);
}

.letter-note-line {
  stroke: color-mix(in srgb, var(--scene-c), #fff 24%);
}

.letter-seal {
  fill: color-mix(in srgb, var(--scene-a), #000 22%);
  opacity: 0;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--scene-a), transparent 42%));
}

.wish-preview[data-template="letter"].letter-opened .letter-note {
  animation: letterNoteReveal 2.2s cubic-bezier(.2, .82, .2, 1) 1.5s forwards;
}

.wish-preview[data-template="letter"].letter-opened .letter-seal {
  animation: letterSealPop 1s ease 1.2s forwards;
}

.mist,
.steam-line,
.music-note {
  stroke: var(--accent-color, var(--scene-c));
  stroke-width: 2;
  opacity: .76;
}

.perfume-body-fill {
  opacity: 0;
}

.perfume-cutline {
  stroke: color-mix(in srgb, var(--scene-c), #fff 16%);
  opacity: .7;
}

.mist-1 { animation-delay: .22s; }
.mist-2 { animation-delay: .72s; }
.mist-3 { animation-delay: 1.1s; }

.wish-preview[data-template="perfume"] .mist {
  opacity: .15;
  transform-origin: center;
  animation:
    drawScene 20s cubic-bezier(.42, 0, .16, 1) forwards,
    mistPulse 8.6s ease-in-out 2.2s infinite;
}

.wish-preview[data-template="perfume"].perfume-misted .mist {
  opacity: .82;
}

.wish-preview[data-template="cake"] .cake-flame {
  opacity: .1;
}

.wish-preview[data-template="cake"].cake-lit .cake-flame {
  opacity: 1;
}

.firefly-trail-main {
  stroke: var(--trail-color, var(--line-color, var(--scene-a)));
}

.firefly-trail-soft {
  stroke: var(--trail-soft-color, var(--accent-color, var(--scene-c)));
}

.petals-scene {
  transform-origin: 116px 122px;
}

.wish-preview[data-template="petals"].petals-awake .petals-scene {
  animation: petalBranchSway 10s ease-in-out 1.2s infinite;
}

.blossom-scene .scene-line,
.blossom-scene .scene-fill,
.blossom-scene .falling-petal {
  animation-duration: 24s;
}

.blossom-branch {
  stroke-width: 2.8;
}

.blossom-branch-soft {
  stroke-width: 2.1;
  opacity: .84;
}

.blossom-petal {
  stroke: color-mix(in srgb, var(--line-color, var(--scene-a)), #fff 10%);
  stroke-width: 2.05;
}

.blossom-core {
  fill: color-mix(in srgb, var(--scene-c), #fff 20%);
  opacity: .84;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--scene-a), transparent 32%));
  animation: sparkPulse 11s ease-in-out infinite;
}

.blossom-flower-a { animation: blossomSwayA 10.8s ease-in-out 1.1s infinite; transform-origin: 92px 113px; }
.blossom-flower-b { animation: blossomSwayB 12.2s ease-in-out 1.4s infinite; transform-origin: 145px 81px; }
.blossom-flower-c { animation: blossomSwayA 11.3s ease-in-out 1.9s infinite; transform-origin: 63px 139px; }

.constellation-scene .scene-line,
.constellation-scene .star-node {
  animation-duration: 24s;
}

.constellation-heart-main {
  stroke-width: 3;
}

.constellation-link {
  opacity: .58;
  stroke-width: 1.65;
}

.constellation-link-soft {
  opacity: .42;
  stroke-width: 1.35;
}

.constellation-thread {
  opacity: .58;
  stroke-width: 1.7;
  stroke-dasharray: 5 7;
}

.constellation-heart-echo {
  fill: none;
  stroke: color-mix(in srgb, var(--accent-color, var(--scene-c)), #fff 22%);
  stroke-width: 1.45;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: constellationEcho 11.5s ease-in-out var(--echo-delay, 0s) infinite;
}

.constellation-heart-echo.echo-1 { --echo-delay: 2s; }
.constellation-heart-echo.echo-2 { --echo-delay: 4.4s; }

.constellation-node {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--spark-glow, var(--scene-a)), #fff 8%));
}

.calligraphy-scene .scene-line,
.calligraphy-scene .calligraphy-line,
.calligraphy-scene .scene-dot {
  animation-duration: 25s;
}

.calligraphy-main {
  stroke-width: 3.35;
}

.calligraphy-tail,
.calligraphy-paper {
  opacity: .62;
  stroke-width: 1.8;
}

.calligraphy-tail {
  stroke: color-mix(in srgb, var(--accent-color, var(--scene-c)), #fff 14%);
}

.quill-stem {
  stroke-width: 2.1;
  opacity: .88;
}

.quill-feather {
  stroke: color-mix(in srgb, var(--line-color, var(--scene-a)), #fff 8%);
  stroke-width: 2.1;
}

.quill-feather.vein,
.quill-barbs {
  stroke: color-mix(in srgb, var(--scene-c), #fff 18%);
  stroke-width: 1.3;
  opacity: .66;
}

.quill-nib {
  stroke-width: 1.9;
}

.ink-dot {
  fill: color-mix(in srgb, var(--scene-c), #fff 18%);
  opacity: .78;
}

.fireworks-scene .burst-line-1 {
  stroke-width: 2.9;
  opacity: .96;
  filter: drop-shadow(0 0 7px var(--burst1-color, var(--line-color, var(--scene-a))));
}

.fireworks-scene .burst-line-2 {
  stroke-width: 2.9;
  opacity: .94;
  filter: drop-shadow(0 0 7px var(--burst2-color, var(--accent-color, var(--scene-c))));
}

.fireworks-scene .burst-line-3 {
  stroke-width: 2.6;
  stroke: color-mix(in srgb, var(--burst3-color, var(--scene-c)), #fff 12%);
  opacity: .88;
  filter: drop-shadow(0 0 7px var(--burst3-color, var(--spark-glow, var(--scene-a))));
}

.fireworks-scene .burst-line-4 {
  stroke-width: 2.2;
  stroke: color-mix(in srgb, var(--burst4-color, var(--scene-a)), #fff 9%);
  opacity: .78;
  filter: drop-shadow(0 0 8px var(--burst4-color, var(--spark-glow, var(--scene-a))));
}

.fireworks-scene .burst-base {
  stroke: color-mix(in srgb, var(--burst-base-color, var(--line-color, var(--scene-a))), transparent 28%);
  stroke-width: 1.45;
  opacity: .28;
  stroke-dasharray: 10 12;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--burst-base-color, var(--scene-a)), transparent 72%));
}

.fireworks-scene .burst-base-1 {
  stroke: color-mix(in srgb, var(--burst1-color, var(--scene-a)), transparent 22%);
}

.fireworks-scene .burst-base-2 {
  stroke: color-mix(in srgb, var(--burst2-color, var(--scene-c)), transparent 22%);
}

.fireworks-scene .burst-base-3 {
  stroke: color-mix(in srgb, var(--burst3-color, var(--scene-c)), transparent 30%);
}

.fireworks-scene .burst-ring {
  stroke-width: 2;
  fill: none;
  opacity: .8;
}

.fireworks-scene .burst-ring-1 {
  stroke: color-mix(in srgb, var(--burst1-color, var(--line-color, var(--scene-a))), #fff 12%);
}

.fireworks-scene .burst-ring-2 {
  stroke: color-mix(in srgb, var(--burst2-color, var(--accent-color, var(--scene-c))), #fff 10%);
}

.fireworks-scene .burst-ring-3 {
  stroke: color-mix(in srgb, var(--burst3-color, var(--scene-c)), #fff 12%);
}

.fireworks-scene .comet-trail {
  stroke-width: 1.65;
  opacity: .52;
  stroke: color-mix(in srgb, var(--accent-color, var(--scene-c)), #fff 20%);
}

.firework-ember {
  fill: color-mix(in srgb, var(--spark-color, var(--scene-c)), #fff 10%);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--spark-glow, var(--scene-a)), transparent 24%));
  animation: emberFall 7.6s linear var(--fall-delay, 0s) infinite;
}

.wish-preview[data-template="fireworks"] .fireworks-scene {
  transform-origin: 120px 120px;
}

.wish-preview[data-template="fireworks"].fireworks-launched .fireworks-scene {
  animation: fireworksLift 9.8s ease-in-out .8s infinite;
}

.wish-preview[data-template="fireworks"] .fireworks-scene .scene-line,
.wish-preview[data-template="fireworks"] .fireworks-scene .scene-fill,
.wish-preview[data-template="fireworks"] .fireworks-scene .spark {
  animation-duration: 25s;
}

.wish-preview[data-template="fireworks"].fireworks-launched .burst-ring {
  animation:
    drawScene 20s cubic-bezier(.42, 0, .16, 1) forwards,
    ringPulse 8.4s ease-in-out 2.8s infinite;
}

.fireworks-sparks .spark:nth-child(4n + 1) {
  fill: var(--burst1-color, var(--spark-color, var(--scene-c)));
  filter: drop-shadow(0 0 8px var(--burst1-color, var(--spark-glow, var(--scene-a))));
}

.fireworks-sparks .spark:nth-child(4n + 2) {
  fill: var(--burst2-color, var(--spark-color, var(--scene-c)));
  filter: drop-shadow(0 0 8px var(--burst2-color, var(--spark-glow, var(--scene-a))));
}

.fireworks-sparks .spark:nth-child(4n + 3) {
  fill: var(--burst3-color, var(--spark-color, var(--scene-c)));
  filter: drop-shadow(0 0 8px var(--burst3-color, var(--spark-glow, var(--scene-a))));
}

.fireworks-sparks .spark:nth-child(4n) {
  fill: var(--burst4-color, var(--spark-color, var(--scene-c)));
  filter: drop-shadow(0 0 8px var(--burst4-color, var(--spark-glow, var(--scene-a))));
}

.music-note {
  animation: noteFloat 18s ease-in-out infinite;
}

.polaroid-scene .scene-line,
.polaroid-scene .scene-fill {
  animation-duration: 24s;
}

.polaroid-base {
  opacity: .72;
}

.photo-1 { transform: rotate(-8deg); transform-origin: 74px 115px; }
.photo-2 { transform: rotate(2deg); transform-origin: 122px 104px; }
.photo-3 { transform: rotate(8deg); transform-origin: 170px 116px; }

.wish-preview[data-template="polaroid"].polaroid-revealed .photo-1 {
  animation: photoSwayLeft 11s ease-in-out 1.2s infinite;
}

.wish-preview[data-template="polaroid"].polaroid-revealed .photo-2 {
  animation: photoSwayCenter 10s ease-in-out 1.5s infinite;
}

.wish-preview[data-template="polaroid"].polaroid-revealed .photo-3 {
  animation: photoSwayRight 12s ease-in-out 1.1s infinite;
}

.lantern-scene .scene-line,
.lantern-scene .scene-fill {
  animation-duration: 24s;
}

.wish-preview[data-template="lanterns"] .lantern {
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--scene-a), transparent 56%));
}

.lantern-1,
.lantern-2,
.lantern-3 {
  animation: lanternFloat 24s ease-in-out infinite;
}

.lantern-2 { animation-delay: 2.4s; }
.lantern-3 { animation-delay: 4.2s; }

.wish-preview[data-template="lanterns"].lanterns-lifted .lantern-1 {
  animation-duration: 16s;
}

.wish-preview[data-template="lanterns"].lanterns-lifted .lantern-2 {
  animation-duration: 17.4s;
}

.wish-preview[data-template="lanterns"].lanterns-lifted .lantern-3 {
  animation-duration: 15.6s;
}

.musicbox-scene .scene-line,
.musicbox-scene .scene-fill,
.musicbox-scene .music-note {
  animation-duration: 26s;
}

.musicbox-outline {
  stroke-width: 2.7;
}

.musicbox-cylinder {
  stroke: color-mix(in srgb, var(--line-color, var(--scene-a)), #fff 14%);
}

.musicbox-comb {
  stroke-width: 2.1;
}

.musicbox-note {
  opacity: .62;
}

.wish-preview[data-template="musicbox"].musicbox-awake .musicbox-note.note-a {
  animation: noteFloat 10.6s ease-in-out .8s infinite;
}

.wish-preview[data-template="musicbox"].musicbox-awake .musicbox-note.note-b {
  animation: noteFloat 9.7s ease-in-out 1.25s infinite;
}

.baby-scene .scene-line,
.baby-scene .scene-fill,
.baby-scene .scene-dot {
  animation-duration: 25s;
}

.baby-cloud-line {
  stroke-width: 2.55;
}

.baby-cloud-fill {
  opacity: 0;
}

.baby-moon {
  stroke: color-mix(in srgb, var(--accent-color, var(--scene-c)), #fff 12%);
  stroke-width: 2.35;
}

.baby-mobile {
  opacity: .66;
  stroke-width: 1.8;
}

.baby-star {
  stroke-width: 2.05;
  stroke: color-mix(in srgb, var(--scene-c), #fff 12%);
}

.baby-cradle {
  opacity: .58;
  stroke-width: 1.8;
}

.baby-dot {
  fill: color-mix(in srgb, var(--scene-c), #fff 20%);
  opacity: .72;
}

.wish-preview[data-template="baby"].baby-dreaming .baby-star {
  animation:
    drawScene 25s cubic-bezier(.42, 0, .16, 1) forwards,
    babyStarFloat 8.8s ease-in-out 2.4s infinite;
}

.wish-preview[data-template="baby"].baby-dreaming .baby-clouds {
  animation: dreamyFloat 13s ease-in-out 1.1s infinite;
  transform-origin: 120px 120px;
}

.ring-line {
  stroke-width: 3.15;
}

.rings-scene .scene-line,
.rings-scene .ring-line {
  animation-duration: 25s;
}

.ring-left,
.ring-right {
  opacity: .94;
  transform-box: fill-box;
  transform-origin: center;
}

.ring-highlight {
  opacity: .5;
  stroke-width: 1.65;
}

.diamond-crown {
  stroke: color-mix(in srgb, var(--scene-c), #fff 18%);
  stroke-width: 2.35;
}

.diamond-band {
  opacity: .64;
  stroke-width: 1.9;
}

.ring-spark {
  stroke: color-mix(in srgb, var(--scene-c), #fff 24%);
  stroke-width: 2;
  opacity: .72;
}

.ring-shadow {
  opacity: .35;
  stroke-width: 1.7;
}

.wish-preview[data-template="rings"].rings-entwined .ring-left {
  animation:
    drawScene 25s cubic-bezier(.42, 0, .16, 1) forwards,
    ringBreathLeft 9.6s ease-in-out 2.2s infinite;
}

.wish-preview[data-template="rings"].rings-entwined .ring-right {
  animation:
    drawScene 25s cubic-bezier(.42, 0, .16, 1) forwards,
    ringBreathRight 9.6s ease-in-out 2.2s infinite;
}

.coffee-scene .scene-line,
.coffee-scene .scene-fill,
.coffee-scene .steam-line {
  animation-duration: 25s;
}

.coffee-cup {
  stroke-width: 2.75;
}

.coffee-cup-fill {
  opacity: 0;
}

.coffee-rim,
.coffee-saucer {
  opacity: .68;
  stroke-width: 1.95;
}

.coffee-handle {
  stroke-width: 2.35;
}

.latte-art {
  stroke: color-mix(in srgb, var(--scene-c), #fff 20%);
  stroke-width: 1.95;
  opacity: .8;
}

.latte-line {
  stroke: color-mix(in srgb, var(--scene-c), #fff 28%);
  stroke-width: 1.45;
  opacity: .64;
}

.coffee-scene .steam-line {
  stroke-width: 2.25;
  opacity: .72;
}

.wish-preview[data-template="coffee"].coffee-warm .steam-line {
  animation:
    drawScene 25s cubic-bezier(.42, 0, .16, 1) forwards,
    steamDrift 8.8s ease-in-out 2.1s infinite;
}

.calligraphy-line {
  stroke-width: 3.4;
}

@keyframes drawScene {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillScene {
  to {
    opacity: .42;
  }
}

@keyframes roseFillBloom {
  0% {
    opacity: 0;
  }
  35% {
    opacity: .26;
  }
  100% {
    opacity: .54;
  }
}

@keyframes roseAuraBloom {
  0% {
    opacity: 0;
    transform: scale(.72);
  }
  100% {
    opacity: .42;
    transform: scale(1);
  }
}

@keyframes roseAuraPulse {
  0%, 100% {
    opacity: .34;
  }
  50% {
    opacity: .52;
  }
}

@keyframes roseOverlayReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: .92;
  }
}

@keyframes roseDewAppear {
  from {
    opacity: 0;
  }
  to {
    opacity: .9;
  }
}

@keyframes roseDewTwinkle {
  0%, 100% {
    opacity: .38;
    transform: scale(.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes roseTapBurst {
  0% {
    opacity: 0;
    transform: scale(.32);
  }
  30% {
    opacity: .72;
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes moonGlow {
  0%, 100% {
    opacity: .78;
    filter: drop-shadow(0 0 18px var(--scene-a));
  }
  50% {
    opacity: .95;
    filter: drop-shadow(0 0 34px var(--scene-a));
  }
}

@keyframes flameSway {
  0%, 100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.08);
  }
}

@keyframes flameIgnite {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.5);
  }
  65% {
    opacity: .92;
    transform: translateY(0) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes sparkPulse {
  0%, 100% {
    opacity: .24;
    transform: translateY(0) scale(.9);
  }
  50% {
    opacity: .95;
    transform: translateY(-8px) scale(1.15);
  }
}

@keyframes petalFall {
  from {
    transform: translateY(-40px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: .72;
  }
  to {
    transform: translateY(285px) rotate(270deg);
    opacity: 0;
  }
}

@keyframes letterOpen {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
    opacity: .16;
  }
  45%, 65% {
    transform: translateY(-24px) rotateX(18deg);
    opacity: .42;
  }
}

@keyframes letterNoteReveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  70% {
    opacity: .86;
    transform: translateY(-6px);
  }
  100% {
    opacity: .94;
    transform: translateY(-3px);
  }
}

@keyframes letterSealPop {
  0% {
    opacity: 0;
    transform: scale(.62);
  }
  70% {
    opacity: .95;
    transform: scale(1.08);
  }
  100% {
    opacity: .84;
    transform: scale(1);
  }
}

@keyframes petalBranchSway {
  0%, 100% {
    transform: rotate(-1.2deg);
  }
  50% {
    transform: rotate(1.3deg);
  }
}

@keyframes blossomSwayA {
  0%, 100% {
    transform: rotate(-1.1deg) translateY(0);
  }
  50% {
    transform: rotate(1.2deg) translateY(-1px);
  }
}

@keyframes blossomSwayB {
  0%, 100% {
    transform: rotate(1deg) translateY(0);
  }
  50% {
    transform: rotate(-1.3deg) translateY(-1px);
  }
}

@keyframes constellationEcho {
  0%, 100% {
    opacity: 0;
    transform: scale(.82);
  }
  20% {
    opacity: .62;
    transform: scale(1);
  }
  55% {
    opacity: .32;
    transform: scale(1.12);
  }
}

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

@keyframes photoSwayLeft {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-2px);
  }
}

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

@keyframes photoSwayRight {
  0%, 100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-2px);
  }
}

@keyframes mistPulse {
  0%, 100% {
    opacity: .36;
    transform: translateY(0);
  }
  50% {
    opacity: .92;
    transform: translateY(-4px);
  }
}

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

@keyframes ringPulse {
  0%, 100% {
    opacity: .44;
    transform: scale(.96);
  }
  50% {
    opacity: .88;
    transform: scale(1.08);
  }
}

@keyframes emberFall {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(.75);
  }
  15% {
    opacity: .82;
  }
  70% {
    opacity: .4;
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(1.06);
  }
}

@keyframes dreamyFloat {
  0%, 100% {
    transform: translateY(0) rotate(-.35deg);
  }
  50% {
    transform: translateY(-5px) rotate(.45deg);
  }
}

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

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

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

@keyframes steamDrift {
  0%, 100% {
    opacity: .46;
    transform: translateY(0);
  }
  50% {
    opacity: .9;
    transform: translateY(-7px);
  }
}

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

@keyframes sceneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-.5deg);
  }
  50% {
    transform: translateY(-9px) rotate(.5deg);
  }
}

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

@keyframes primaryTextReveal {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes messageTextReveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes starDrift {
  to {
    background-position: 180px -240px;
  }
}

@media (max-width: 1080px) {
  .hero,
  .creator-layout,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .creator-device {
    position: relative;
    top: auto;
  }

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero > .device-shell {
    display: none;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 82px);
  }

  .hero-facts,
  .form-grid,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .device-shell {
    min-height: 560px;
    border-radius: 28px;
    padding: 10px;
  }

  .wish-preview,
  .creator-device .wish-preview {
    min-height: 500px;
    border-radius: 20px;
  }

  .template-showcase {
    grid-template-columns: 1fr;
  }

  .template-picker {
    display: none;
  }

  .mobile-template-select {
    display: grid;
    gap: 8px;
    margin-top: 4px;
  }

  .templates-section,
  .creator-section,
  .pricing-section {
    padding: 18px;
  }

  .generated-link {
    flex-direction: column;
  }

  .wish-copy h1,
  .wish-copy h2 {
    font-size: clamp(42px, 12vw, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
