/* The premiere, v5: the live gift page's soft rose-to-apricot stage, gradient play button and handwritten note,
   with emoji stickers floating and confetti when the credits roll. Their name first, then the music video, then the end card. */
.stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; isolation: isolate;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: linear-gradient(168deg, #FFE7EC 0%, #FFF1E0 58%, var(--bg) 100%); }
.amb { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.amb img, .amb video { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(70px) saturate(1.4); opacity: .06; transition: opacity 1s; }
.amb video { opacity: 0; }
.stage[data-state="film"] .amb video { opacity: .42; }
.stage[data-state="film"] .amb img { opacity: 0; }
.blobs i { position: absolute; z-index: 0; border-radius: 50%; filter: blur(12px); pointer-events: none; }
.blobs i:nth-child(1) { width: 300px; height: 300px; background: #FFC9D8; top: 4%; left: -7%; opacity: .6; }
.blobs i:nth-child(2) { width: 340px; height: 340px; background: #FFD9A8; bottom: 2%; right: -9%; opacity: .5; }
.stage .floaties, .blobs { transition: opacity .6s; }
.stage[data-state="film"] .floaties, .stage[data-state="film"] .blobs { opacity: 0; }
.g-top { display: flex; justify-content: space-between; align-items: center; height: 56px; position: relative; z-index: 5; }
.g-top .brand { font-size: 22px; }
.g-top-r { font: 600 13.5px/1 var(--display); color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); padding: 9px 14px; border-radius: 999px; box-shadow: 0 4px 12px -7px rgba(34, 16, 25, .25); }
.g-title, .g-film, .g-credits, .g-thanks { position: relative; z-index: 5; display: grid; justify-items: center; align-content: center; text-align: center; padding-block: 16px; }
.g-title[hidden], .g-film[hidden], .g-credits[hidden], .g-thanks[hidden] { display: none !important; }

/* title card */
.g-k { margin: 0 0 24px; color: var(--pink); font-weight: 600; animation: gIn 1s var(--spring) .1s both; }
.g-title h1 { margin-bottom: 10px; animation: gIn 1.1s var(--spring) .3s both; }
.g-from { margin: 0 0 40px; font: 700 clamp(17px, 1.6vw, 20px)/1.4 var(--sans); color: var(--ink-2); animation: gIn 1.1s var(--spring) .5s both; }
.g-from b { display: block; margin-top: 4px; font: 700 clamp(30px, 3vw, 38px)/1.05 var(--hand); color: var(--pink); }
.g-play { width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; position: relative;
  box-shadow: 0 24px 44px -16px rgba(255, 45, 85, .7); transition: transform .35s var(--spring); animation: gIn 1.1s var(--spring) .7s both; margin-bottom: 16px; }
.g-play::before, .g-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 45, 85, .35); animation: ring 2.4s ease-out infinite; }
.g-play::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.g-play:hover { transform: scale(1.06); }
.g-play svg { width: 30px; height: 30px; margin-left: 6px; }
.g-hint { margin: 0; font: 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); animation: gIn 1.1s var(--spring) .85s both; }
@keyframes gIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* music video */
.g-reel { width: auto; }
.g-reel .reel-frame { width: min(calc(100vw - 2 * var(--gutter) - 24px), calc((100svh - 210px) * 9 / 16), 450px); }
.g-skip { margin-top: 24px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font: 600 14px/1 var(--display); cursor: pointer; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 12px -7px rgba(34, 16, 25, .25); }
.g-skip:hover { color: var(--pink); }

/* end card */
.card { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 50px); width: min(680px, 100%); }
.roll { display: grid; justify-items: center; animation: gIn 1s var(--spring) both; }
.roll h2 { margin: 10px 0 30px; }
.cr { margin: 0 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; }
.cr dt { font: 600 11.5px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cr dd { margin: 0; font: 600 20px/1.3 var(--display); }
.note { margin: 0 0 30px; padding: 22px 28px 24px; border-radius: 22px; background: var(--butter); width: 100%; position: relative; }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 210, 160, .75); border-radius: 3px; }
.note-k { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.note blockquote { margin: 12px 0 0; font: 600 clamp(25px, 2.5vw, 30px)/1.3 var(--hand); color: var(--ink); text-wrap: balance; }
.g-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.g-toast { margin: 18px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* thank-you */
.thx, .thx-done { display: grid; justify-items: center; gap: 18px; }
.thx h2, .thx-done h2 { margin: 0 0 6px; }
.thx-in { height: auto; min-height: 140px; padding: 16px 18px; line-height: 1.5; resize: vertical; font: 600 18px/1.5 var(--sans); }
.big-emo { font-size: 66px; line-height: 1; animation: pop .7s var(--spring) both; filter: drop-shadow(0 14px 18px rgba(255, 45, 85, .3)); }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* confetti when the credits roll (the live site's falling confetti) */
.confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .85; } }

.g-foot { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 14px; }
.g-note { margin: 0; max-width: 52ch; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.g-foot a { display: inline-block; text-align: center; color: var(--ink-3); font: 600 14px/1.6 var(--sans); text-decoration: none; }
.g-foot a b { color: var(--pink); font: 600 14.5px/1.6 var(--display); }
.g-foot svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-left: 6px; color: var(--pink); }
.stage[data-state="film"] .g-foot, .stage[data-state="film"] .g-top-r { opacity: 0; pointer-events: none; }
.g-foot, .g-top-r { transition: opacity .5s; }
@media (max-width: 560px) {
  .g-title h1 { font-size: clamp(52px, 15vw, 64px); }
  .cr { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .note { padding: 20px; }
  .g-acts .btn { width: 100%; }
  .g-top-r { display: none; }
}
@media (prefers-reduced-motion: reduce) { .g-k, .g-title h1, .g-from, .g-play, .g-hint, .roll, .big-emo { animation: none; } .g-play::before, .g-play::after { animation: none; opacity: 0; } .confetti { display: none; } }
