:root {
  --plum-900: #1f0a24;
  --plum-700: #3b1240;
  --rose: #ff4d8d;
  --rose-deep: #e64980;
  --blush: #ffd6e3;
  --gold: #ffd166;
  --cream: #fff8f1;
  --ink: #4a1d3f;
  --script: 'Great Vibes', cursive;
  --sans: 'Quicksand', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; touch-action: manipulation; }

body {
  background: radial-gradient(120% 80% at 50% 0%, var(--plum-700), var(--plum-900) 70%);
  color: var(--blush);
  font-family: var(--sans);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

#hearts-bg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

#app { position: relative; z-index: 2; height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3dvh, 28px);
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
}
.screen[hidden] { display: none; }

.script { font-family: var(--script); font-weight: 400; color: var(--cream); margin: 0; line-height: 1.1; }
h1.script { font-size: clamp(3rem, 15vw, 4.5rem); min-height: 1.2em; text-shadow: 0 0 24px rgba(255, 77, 141, .55); }
h2.script { font-size: clamp(2.2rem, 10vw, 3.2rem); text-shadow: 0 0 18px rgba(255, 77, 141, .45); }

.wish { margin: 0; font-size: clamp(1.3rem, 6vw, 1.7rem); font-weight: 700; color: var(--gold); }

.btn {
  font: 700 1.1rem var(--sans);
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  min-height: 52px;
  box-shadow: 0 8px 24px rgba(255, 77, 141, .45);
  touch-action: manipulation;
  cursor: pointer;
}
.btn:active { scale: .96; }
.btn[hidden] { display: none; }

.hint { margin: 0; font-size: 1rem; opacity: .85; }
.hint[hidden] { display: none; }

#wish-text, #btn-start, #heart-photo { visibility: hidden; }

.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 1.3rem;
  text-align: center;
  background: var(--plum-900);
}
@media (orientation: landscape) and (max-height: 500px) {
  .rotate-hint { display: flex; }
  #app { visibility: hidden; }
}

/* ---------- Love notes ---------- */
.envelope {
  position: relative;
  width: min(82vw, 330px);
  aspect-ratio: 3 / 2;
  margin-top: clamp(70px, 18dvh, 130px);
  perspective: 900px;
  cursor: pointer;
  touch-action: none;
}
.env-back, .env-front, .env-flap { position: absolute; left: 0; right: 0; border-radius: 10px; }
.env-back { inset: 0; background: #c2255c; }
.env-front {
  inset: 0;
  z-index: 3;
  background: linear-gradient(160deg, #ff8fb1, #f06595);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.env-flap {
  top: 0;
  height: 60%;
  z-index: 4;
  background: linear-gradient(#ff6b9e, #e64980);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
}
.env-seal { position: absolute; z-index: 5; left: 50%; top: 52%; translate: -50% -50%; font-size: 2rem; }
/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  font-size: 1.3rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  touch-action: manipulation;
  cursor: pointer;
}
.music-toggle[hidden] { display: none; }

/* ---------- Gift box ---------- */
.hearts-progress { display: flex; gap: 10px; font-size: 1.7rem; color: var(--blush); }
.hearts-progress .heart { display: inline-block; transition: transform .2s, color .2s; }
.hearts-progress .heart.filled { color: var(--rose); transform: scale(1.25); }

.gift {
  position: relative;
  width: min(58vw, 230px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gift-body, .gift-lid {
  position: absolute;
  background:
    linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%),
    linear-gradient(#ff6b9e, #d6336c);
}
.gift-body { left: 6%; right: 6%; bottom: 0; height: 66%; border-radius: 8px; box-shadow: 0 18px 36px rgba(0, 0, 0, .4); }
.gift-lid { left: 0; right: 0; top: 20%; height: 18%; z-index: 2; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.gift-bow { position: absolute; left: 50%; bottom: 88%; width: 46%; height: 90%; translate: -50% 0; }
.gift-bow::before, .gift-bow::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
  border: 7px solid var(--gold);
  border-radius: 50%;
}
.gift-bow::before { left: 0; rotate: -25deg; }
.gift-bow::after { right: 0; rotate: 25deg; }

/* ---------- Finale ---------- */
#screen-finale h2.script { font-size: clamp(2.8rem, 13vw, 4rem); }
.signoff { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--blush); }
.signoff .script { display: inline-block; margin-top: 6px; font-size: clamp(2.4rem, 11vw, 3.2rem); color: var(--gold); }

/* ---------- Night sky scenery ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff8e7;
  box-shadow: 0 0 6px 1px rgba(255, 248, 231, .8);
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .28;
  animation: drift ease-in-out infinite alternate;
}
.bokeh.rose { background: #ff4d8d; }
.bokeh.gold { background: #ffd166; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, -60px); } }

.garland {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 3;
  pointer-events: none;
}
.bulb { animation: glow 2.4s ease-in-out infinite; }
.bulb ellipse { filter: drop-shadow(0 0 5px rgba(255, 220, 150, .95)); }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Opening (detailed) ---------- */
#screen-opening { padding-top: max(64px, env(safe-area-inset-top)); }
#screen-opening > :not(.pen) { position: relative; z-index: 1; }

.balloons { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; display: none; }
body.show-balloons .balloons { display: block; }
.balloon {
  position: absolute;
  bottom: -160px;
  width: 54px;
  height: 66px;
  border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 6%, transparent 14%),
    radial-gradient(circle at 50% 45%, var(--c1), var(--c2) 75%);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .18);
}
.balloon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  translate: -50% 0;
  border: 5px solid transparent;
  border-bottom-color: var(--c2);
}
.balloon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: 1px;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, .6), transparent);
}
.balloon.gold { --c1: #ffe9a8; --c2: #d4a017; }
.balloon.rose { --c1: #ffb3c7; --c2: #e64980; }
.balloon.blush { --c1: #fff0f5; --c2: #f3a5bf; }
.balloon.lavender { --c1: #ecd9ff; --c2: #9f6bd6; }

.heart-photo {
  width: min(46vw, 190px, 28dvh);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 18px rgba(255, 77, 141, .7)) drop-shadow(0 0 40px rgba(255, 209, 102, .3));
}
.heart-photo::before, .heart-photo img {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'><path d='M50 92C50 92 2 62 2 30A24 24 0 0 1 50 18A24 24 0 0 1 98 30C98 62 50 92 50 92Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'><path d='M50 92C50 92 2 62 2 30A24 24 0 0 1 50 18A24 24 0 0 1 98 30C98 62 50 92 50 92Z'/></svg>") center / contain no-repeat;
}
.heart-photo::before {
  content: '';
  position: absolute;
  inset: -7px;
  background: linear-gradient(135deg, #fff3c4, #d4a017 40%, #ffe9a8 60%, #c99a2e);
}
.heart-photo img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }

.greeting { margin: 0; font-weight: 400; line-height: 1; }
.greeting .hey { display: block; min-height: 1.1em; font-size: clamp(2rem, 9vw, 2.6rem); color: var(--cream); }
.greeting .name {
  display: inline-block;
  padding: 0 .15em;
  font-size: clamp(3.3rem, 16vw, 5rem);
  line-height: 1.2;
  background: linear-gradient(110deg, #c99a2e 0%, #ffe9a8 25%, #d4a017 45%, #fff6d6 55%, #e0b04a 75%, #c99a2e 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 209, 102, .45));
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

.pen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8dc;
  box-shadow: 0 0 12px 5px #ffd166;
  pointer-events: none;
}

#screen-opening .wish { white-space: nowrap; font-size: clamp(1rem, 5.2vw, 1.6rem); }
.wish::before, .wish::after { content: '✦'; margin: 0 .4em; font-size: .8em; opacity: .8; }

.heart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border: 0;
  background: none;
  color: var(--blush);
  font: 600 1rem var(--sans);
  cursor: pointer;
  touch-action: manipulation;
}
.heart-btn svg {
  width: 64px;
  height: 58px;
  fill: var(--rose);
  filter: drop-shadow(0 0 14px rgba(255, 77, 141, .85));
  animation: heartbeat 1.3s ease-in-out infinite;
}
.heart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 66px;
  height: 66px;
  margin-left: -33px;
  border: 2px solid rgba(255, 143, 177, .7);
  border-radius: 50%;
  animation: ripple 1.3s ease-out infinite;
  pointer-events: none;
}
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 28% { transform: scale(1.05); } 33% { transform: scale(1.15); } }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .star, .bokeh, .bulb, .greeting .name, .heart-btn svg, .heart-btn::before { animation: none; }
}

/* ---------- Letter (detailed) ---------- */
.env-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 14px;
  z-index: 5;
  background: linear-gradient(#ffe9a8, #d4a017 60%, #b8860b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.wax-seal {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0485f, #9b1b30 60%, #6d0f20);
  box-shadow: 0 0 0 4px #8a1628, 0 0 0 6px rgba(138, 22, 40, .45), 0 6px 14px rgba(0, 0, 0, .45), inset 0 -4px 8px rgba(0, 0, 0, .35);
  color: #f7c9a5;
  font: 400 2.2rem var(--script);
  text-shadow: 0 1px 0 #5a0b18, 0 -1px 0 #ff8a9a;
}

.petals { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; display: none; }
body.show-petals .petals { display: block; }
.petal {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 20px;
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #ff8fb1, #e64980 70%, #b82659);
  opacity: .85;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .15);
}

.letter {
  position: relative;
  width: min(88vw, 380px);
  max-height: calc(100dvh - 190px);
  overflow-y: auto;
  margin: 0;
  padding: 22px 22px 18px 40px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 28px, rgba(230, 73, 128, .35) 28px 30px, transparent 30px),
    repeating-linear-gradient(transparent 0 31px, rgba(160, 120, 180, .22) 31px 32px),
    linear-gradient(160deg, #fffdf6, #fbf0dc);
  background-attachment: local;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), inset 0 0 40px rgba(210, 160, 110, .25);
  color: var(--ink);
  font: 500 clamp(1.3rem, 5.6vw, 1.55rem) / 32px 'Caveat', cursive;
  text-align: left;
  cursor: pointer;
  scrollbar-width: none;
}
.letter::-webkit-scrollbar { display: none; }
.letter[hidden] { display: none; }
.letter::after { content: '🌹'; position: absolute; top: 4px; right: 8px; font-size: 1.5rem; rotate: 20deg; }
.letter p { margin: 0 0 8px; }
.letter-greeting { color: var(--rose-deep); font-weight: 600; font-size: 1.15em; }
.letter-sign { text-align: right; color: var(--rose-deep); font-weight: 600; }
.letter .writing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: var(--rose-deep);
  animation: blink .8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.gift-cta { animation: cta-glow 1.6s ease-in-out infinite; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 77, 141, .45); }
  50% { box-shadow: 0 8px 36px rgba(255, 209, 102, .9), 0 0 0 6px rgba(255, 209, 102, .25); }
}
@media (prefers-reduced-motion: reduce) { .gift-cta, .letter .writing::after { animation: none; } }

/* ---------- Gift box (detailed) ---------- */
#screen-gift > :not(.gift-fx) { position: relative; z-index: 1; }
.gift-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gift-fx > * { position: absolute; left: 50%; top: 50%; }
.gift-glow {
  width: min(90vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, .6), rgba(255, 77, 141, .3) 45%, transparent 70%);
  opacity: .25;
}
.gift-rays {
  width: 900px;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 233, 168, .55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 15%, transparent 55%);
  mask: radial-gradient(circle, #000 0 15%, transparent 55%);
  opacity: 0;
}

.gift-body, .gift-lid {
  background:
    linear-gradient(90deg, transparent 43%, #b8860b 43%, #ffe9a8 50%, #d4a017 57%, transparent 57%),
    radial-gradient(circle, rgba(255, 233, 168, .45) 2px, transparent 2.5px) 0 0 / 18px 18px,
    linear-gradient(#ff6b9e, #d6336c);
}
.gift-body {
  background:
    linear-gradient(90deg, transparent 43%, #b8860b 43%, #ffe9a8 50%, #d4a017 57%, transparent 57%),
    linear-gradient(transparent 40%, #b8860b 40%, #ffe9a8 47%, #d4a017 54%, transparent 54%),
    radial-gradient(circle, rgba(255, 233, 168, .45) 2px, transparent 2.5px) 0 0 / 18px 18px,
    linear-gradient(#ff6b9e, #d6336c);
}
.gift-bow::before, .gift-bow::after {
  border: 0;
  background: radial-gradient(circle at 35% 40%, #fff3c4, #d4a017 55%, #a87b0f);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), inset 6px 0 10px rgba(255, 255, 255, .25);
}
.gift-bow .knot {
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 1;
  width: 24%;
  height: 40%;
  translate: -50% 0;
  border-radius: 40%;
  background: linear-gradient(#ffe9a8, #c99a2e);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.gift-tag {
  position: absolute;
  right: -16%;
  top: 30%;
  z-index: 3;
  padding: 4px 9px 4px 16px;
  background: #fff8f1;
  color: var(--ink);
  font: 700 .8rem var(--sans);
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  rotate: 14deg;
}
.gift-tag::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--rose-deep);
}

/* ---------- Photo slideshow on a fairy-light clothesline ---------- */
#stack-hint, #btn-finale { visibility: hidden; }
.line-wrap {
  position: relative;
  width: calc(100% + 40px);
  height: 104px;
  margin: 0 -20px;
  overflow: hidden;
  flex-shrink: 0;
}
.line-track { position: absolute; top: 0; left: 0; height: 100%; }
.line-string { position: absolute; top: 0; left: 0; overflow: visible; }
.line-bulb { filter: drop-shadow(0 0 4px rgba(255, 220, 150, .95)); animation: glow 2.4s ease-in-out infinite; }
.line-photo {
  position: absolute;
  top: 16px;
  width: 62px;
  padding: 4px 4px 10px;
  border: 0;
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
  transform-origin: 50% -10px;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow .3s;
}
.line-photo img { display: block; width: 54px; height: 62px; object-fit: cover; background: #f3d9e3; pointer-events: none; }
.line-photo::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 8px;
  height: 18px;
  margin-left: -4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d8b07c, #a0764a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.line-photo.active { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 209, 102, .85); }
.line-photo.broken img { visibility: hidden; }

.feature {
  position: relative;
  margin: 0;
  width: min(78vw, 320px);
  width: min(78vw, 320px, calc((100dvh - 370px) * .78));
  padding: 10px 10px 0;
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  touch-action: none;
  cursor: grab;
}
.feature-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #f3d9e3 center / cover no-repeat;
}
.feature-img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.feature.broken .feature-img img { visibility: hidden; }
.feature.broken .feature-img::before {
  content: '💗';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: 3rem;
}
.feature figcaption {
  padding: 6px 4px 12px;
  font-family: var(--script);
  font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.slide-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(230, 73, 128, .15);
}
#slide-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform-origin: left center;
  transform: scaleX(0);
}
.btn-small { min-height: 48px; padding: 10px 22px; font-size: 1rem; }
@media (max-height: 640px) { #screen-reveal h2 { display: none; } }

/* ---------- Finale (detailed) ---------- */
#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
body.show-fireworks #fireworks { display: block; }

.photo-heart {
  position: relative;
  flex-shrink: 0;
  width: min(80vw, 300px);
  width: min(80vw, 300px, 40dvh);
  aspect-ratio: 1;
}
.photo-heart img {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  margin: -8.5% 0 0 -8.5%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff3c4;
  background: #f3d9e3;
  box-shadow: 0 0 12px rgba(255, 209, 102, .6), 0 4px 10px rgba(0, 0, 0, .4);
}
.photo-heart img.broken { visibility: hidden; }
.heart-initials {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  font: 400 clamp(2rem, 10vw, 2.8rem) / 1.2 var(--script);
  text-align: center;
}

.gold-text {
  background: linear-gradient(110deg, #c99a2e 0%, #ffe9a8 25%, #d4a017 45%, #fff6d6 55%, #e0b04a 75%, #c99a2e 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, .45));
  animation: shimmer 4s linear infinite;
}
.gold-text .emoji { color: initial; -webkit-text-fill-color: initial; }
#screen-finale h2.script {
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.15;
  color: #ffe3a3;
  text-shadow: 0 0 2px #7a4b00, 0 0 18px rgba(255, 209, 102, .75), 0 0 36px rgba(255, 77, 141, .45);
}
@media (max-height: 640px) {
  #screen-finale h2.script { font-size: 2.1rem; }
  .signoff .script { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .gold-text { animation: none; } }
