/* ---------- reset & base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #2a0d10;
  font-family: 'Nunito', sans-serif;
  overscroll-behavior: none;
  touch-action: manipulation; /* blocks double-tap-to-zoom, still allows scroll/pan */
}
img { max-width: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ---------- block iOS's long-press "Save Image" / callout on everything ----------
   -webkit-touch-callout is Apple's own switch for the long-press menu; paired
   with user-select/user-drag none and touch-action none (belt-and-suspenders
   with the JS contextmenu/selectstart/dragstart handlers in app.js and the
   touchstart preventDefault on the hold target). The interactive hold target
   itself (the couple sprite) is rendered as a div background-image, not an
   <img>, so there is nothing for Safari to offer to save in the first place. */
img, .sprite, .phone, .phone * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

:root {
  --cream: #fdf3e2;
  --cream-dim: #f2e2c4;
  --maroon: #6e1220;
  --maroon-deep: #4a0c15;
  --red: #b3122a;
  --pink: #ff5f8f;
  --marigold: #f2a93b;
  --gold: #d9ab5c;
  --gold-bright: #ecc888;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Caveat', cursive;
}

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  overflow: hidden;
  background: #000;
  container-type: inline-size;
  container-name: phone;
  touch-action: none;
}

html.frame-desktop, html.frame-desktop body { height: 100%; }
html.frame-desktop body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 20%, #4a1a1c 0%, #2a0d10 60%, #180608 100%);
}
html.frame-desktop .phone {
  width: min(430px, 88vh);
  aspect-ratio: 9 / 16;
  border-radius: 46px;
  border: 12px solid #241210;
  box-shadow:
    0 40px 90px rgba(0,0,0,.55),
    0 0 0 2px rgba(255,255,255,.05) inset;
}
html.frame-mobile .phone {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

/* loading screen: covers everything until the screen-1 critical asset
   set has actually decoded, so nothing pops in sprite-by-sprite */
.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5cqw;
  background: radial-gradient(circle at 50% 40%, #5a141f 0%, #2a0d10 70%, #1a0709 100%);
  transition: opacity .4s ease;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-chip {
  display: flex; align-items: center; gap: .4em;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(110, 18, 32, .68), rgba(74, 12, 21, .68));
  padding: .5em 1.2em .5em .9em;
  border-radius: 999px;
  border: 1px solid rgba(217, 171, 92, .55);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 4.2cqw;
}
.loading-bar-track {
  width: 40%;
  height: 3px;
  background: rgba(217, 171, 92, .25);
  border-radius: 999px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 999px;
  transition: width .25s ease;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ---------- background ---------- */
.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-image: url('assets/opt/backdrop.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.bg-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,4,6,.58) 0%, rgba(20,4,6,.1) 26%, rgba(20,4,6,0) 45%, rgba(20,4,6,.22) 76%, rgba(20,4,6,.62) 100%);
  pointer-events: none;
  z-index: 2;
}

/* floral corner framing for screens 3 & 4, echoing the reference's
   bougainvillea clusters cascading in from the edges */
.floral-frame { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
/* screen 3 only now (screen 4 dropped corner florals per the user) — just
   two small petals tucked at opposite corners, behind all text */
.ff { position: absolute; opacity: .9; filter: drop-shadow(0 3px 6px rgba(20,4,6,.3)); }
.ff-tl { top: -2%; left: -3%; width: 11%; transform: rotate(-15deg); }
.ff-br { bottom: -2%; right: -3%; width: 10%; transform: rotate(20deg); }

.garland-top {
  position: absolute;
  top: -2cqw; left: 0; right: 0;
  height: 13cqw;
  background-image: url('assets/opt/parts/garland-strand.webp');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.35));
  z-index: 6;
  pointer-events: none;
}

.petals-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  width: 7cqw;
  aspect-ratio: 1 / 1;
  opacity: .9;
  will-change: transform;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
/* static petals resting on the floor, per the approved mockup */
.petal-floor { z-index: 3; opacity: .85; filter: drop-shadow(0 2px 3px rgba(20,4,6,.25)); }

.kicker {
  position: absolute;
  top: max(10px, 3cqw); left: max(10px, 3cqw);
  z-index: 40;
  display: flex; align-items: center; gap: .4em;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(110, 18, 32, .68), rgba(74, 12, 21, .68));
  padding: .4em 1em .4em .8em;
  border-radius: 999px;
  border: 1px solid rgba(217, 171, 92, .55);
  box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06) inset;
  backdrop-filter: blur(4px);
}
.kicker-chevron { font-size: 4cqw; line-height: 1; color: var(--gold-bright); font-weight: 700; }
.kicker-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 3cqw;
  letter-spacing: .01em;
}

/* music toggle: same maroon-glass chip language as the kicker, mirrored
   to the top-right corner */
.sound-toggle {
  position: absolute;
  top: max(10px, 3cqw); right: max(10px, 3cqw);
  z-index: 40;
  width: 9cqw; height: 9cqw;
  min-width: 34px; min-height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(110, 18, 32, .68), rgba(74, 12, 21, .68));
  border-radius: 999px;
  border: 1px solid rgba(217, 171, 92, .55);
  box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06) inset;
  backdrop-filter: blur(4px);
}
.sound-toggle:active { transform: scale(.93); }
.sound-note { font-size: 4cqw; line-height: 1; color: var(--gold-bright); position: relative; }
.sound-slash {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 1.6px;
  background: var(--cream);
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
  transform-origin: center;
  transition: transform .15s ease;
  border-radius: 2px;
}
.sound-toggle.muted .sound-slash { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }

/* ---------- act (screens 1 & 2 share this rig) ---------- */
.act { position: absolute; inset: 0; z-index: 10; transition: opacity .25s ease; }
.act.hidden { opacity: 0; pointer-events: none; }

/* Sized and positioned to match the approved mockup: the couple fills
   ~60% of stage height from ~18% down to ~78%, which (given the fixed
   proportions of the source art) lands the bride's head just under the
   headline (~20%) and the open palm large in the lower-middle (~69%). */
.couple-wrap {
  position: absolute;
  left: 50%; top: 18%;
  width: 104%;
  aspect-ratio: 1122 / 1402;
  transform: translateX(-50%);
  z-index: 10;
}
/* rendered as background-image divs, not <img>, so there is nothing for
   iOS's long-press "Save Image" gesture to grab on the interactive sprite */
.couple-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .55s ease;
  filter: drop-shadow(0 18px 20px rgba(20,5,5,.35));
}
#coupleHook { background-image: url('assets/opt/couple-hook.webp'); } /* critical, eager */
/* #coupleStrain and #coupleExit are NOT set here on purpose — a static
   background-image on an always-present element is fetched immediately
   regardless of visibility, defeating the point of deferring it. app.js
   sets these once screen 1 is up (or on-demand as a fallback). */
.couple-img.show { opacity: 1; }

/* fixed 180px (90px radius) hit circle, centred on the groom's open right
   palm — coordinates (62.83%, 84.52%) measured directly on couple-hook.png's
   alpha channel, relative to couple-wrap so it always tracks the art. A tap
   anywhere within it starts the hold, independent of the sprite's alpha. */
.hand-hitbox {
  position: absolute;
  left: 62.83%; top: 84.52%;
  width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 20;
  padding: 0;
  -webkit-appearance: none;
}

/* pointing guest-hand: sprite stays pointing DOWN, exactly as drawn — a
   180deg flip made it read as a rude gesture. Positioned inside
   couple-wrap so it tracks the art: anchored at the measured palm centre
   (62.83%, 84.52%), shifted slightly left and translated up so the
   fingertip lands ON the palm from above, with the fist body overlapping
   the lower half of the palm, matching the mockup's tap icon. */
.hand-touch {
  position: absolute;
  left: 58%; top: 84.52%;
  transform: translate(-50%, -92%);
  z-index: 19;
  pointer-events: none;
}
.cue-hand {
  width: 25.5cqw; /* 1.7x, matching the mockup's larger tap cue */
  display: block;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
}
/* small tap-ripple: two thin arcs pulsing at the (downward-pointing)
   fingertip, echoing the mockup's tap-here icon */
.tap-arc {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 9cqw; height: 4.5cqw;
  transform: translateX(-50%);
  border: 3.5px solid rgba(179, 18, 42, .95);
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 1px 1px rgba(255,255,255,.7));
  animation: tapArcPulse 1.4s ease-out infinite;
}
.tap-arc.arc-b { animation-delay: .45s; }
@keyframes tapArcPulse {
  0%   { transform: translateX(-50%) scale(.6); opacity: .95; }
  80%  { opacity: .1; }
  100% { transform: translateX(-50%) scale(1.7); opacity: 0; }
}

/* pill, unchanged position — directly under the palm */
.press-cue {
  position: absolute;
  left: 63.3%; top: 70.2%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.cue-pill {
  background: var(--cream);
  color: var(--maroon-deep);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 4.1cqw; /* 1.4x, matching the mockup's larger pill */
  line-height: 1.15;
  padding: .5em .8em;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  position: relative;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.press-cue.grip .cue-pill { opacity: 0; }
.cue-pill::after {
  content: "";
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--cream) transparent;
}
.press-cue.hide { opacity: 0; transform: translateX(-50%) translateY(6px); }
/* the hand itself only fully hides on snap (it stays, scaled down via
   GSAP — see app.js — to read as "gripping" during the hold) */
.hand-touch.hide { opacity: 0; transition: opacity .25s ease; }

/* ---------- fx layer ---------- */
.fx-layer { position: absolute; inset: 0; z-index: 14; pointer-events: none; }
.fx { position: absolute; opacity: 0; width: 16%; }
.dust-a { left: 24%; top: 68%; width: 14%; }
.dust-b { left: 50%; top: 78%; width: 20%; }
.dust-c { left: 38%; top: 85%; width: 18%; }
.sweat-a { left: 44%; top: 8%; width: 8%; }
.sweat-b { left: 60%; top: 14%; width: 7%; }
.speed-a { left: 8%; top: 40%; width: 16%; transform: scaleX(-1); }
.speed-b { left: 70%; top: 55%; width: 16%; }
.fx.spark { left: 30%; top: 70%; width: 26%; z-index: 16; }

.snap-burst {
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%) scale(0);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 11cqw;
  color: var(--red);
  -webkit-text-stroke: 2px var(--cream);
  paint-order: stroke fill;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
}

/* ---------- headline ---------- */
.headline {
  position: absolute;
  left: 0; right: 0; top: max(46px, 12cqw);
  z-index: 25;
  text-align: center;
  padding: 0 6%;
  pointer-events: none;
}
/* soft dark radial shade behind the headline text so it stays readable
   over any part of the backdrop, regardless of what's behind it */
.headline::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 230%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(20,4,6,.5) 0%, rgba(20,4,6,.24) 45%, rgba(20,4,6,0) 75%);
  z-index: -1;
}
.h-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 11.5cqw;
  line-height: 1.08;
  overflow-wrap: break-word;
  color: var(--red);
  text-shadow: 0 0 2px rgba(255,255,255,.6), 0 3px 10px rgba(0,0,0,.4);
}
.h-sub {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 5.6cqw;
  color: var(--cream);
  margin-top: .3em;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.nudge {
  position: absolute;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%) scale(.8);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 6.5cqw;
  color: var(--cream);
  background: rgba(179, 18, 42, .88);
  padding: .35em .8em;
  border-radius: 14px;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- progress bar ---------- */
.progress-wrap {
  position: absolute;
  left: 50%; top: 89%;
  width: 70%;
  transform: translateX(-50%);
  z-index: 22;
  opacity: 0;
  transition: opacity .3s ease;
}
.progress-wrap.show { opacity: 1; }
.progress-track {
  width: 100%;
  height: 6.5cqw;
  background: rgba(74,12,21,.45);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9fbb 0%, var(--pink) 55%, #d63e6f 100%);
}

/* ---------- signpost ---------- */
.signpost {
  position: absolute;
  right: 2%; top: 40%;
  width: 27%;
  z-index: 24;
  transform: rotate(-4deg);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.3));
}
.signpost img { width: 100%; display: block; }
.signpost-text {
  position: absolute;
  left: 8%; right: 7%; top: 32%; bottom: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 2.35cqw;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #5c3517;
  text-align: center;
}

/* ---------- generic screen (3 & 4) ---------- */
.screen {
  position: absolute; inset: 0;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.screen.show { opacity: 1; pointer-events: auto; }

/* ---------- screen 3 reveal ---------- */
.reveal-headline {
  position: absolute;
  left: 0; right: 0; top: 8%;
  text-align: center;
  padding: 0 6%;
  z-index: 20;
}
.rh-line1 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 8cqw;
  color: var(--red);
  text-shadow: 0 0 2px rgba(255,255,255,.5), 0 3px 14px rgba(0,0,0,.5);
}
.rh-line2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 6.5cqw;
  color: var(--cream);
  margin-top: .15em;
  text-shadow: 0 3px 14px rgba(0,0,0,.6), 0 0 22px rgba(0,0,0,.35);
}

.card {
  position: absolute;
  filter: drop-shadow(0 20px 28px rgba(20,4,4,.5));
}
/* direct-child combinator only — a descendant selector here would also
   match the small decorative <img> hearts nested deep inside .card-text
   (e.g. .rule-heart) and, at higher specificity than a single class,
   blow them up to full card width */
.card > img { width: 100%; display: block; aspect-ratio: 1 / 1; }
/* card-arch.png's blank centre, measured off the art: roughly x 22-78%,
   y 32-72%. Kept clear of the palace/elephants/flowers baked into the art. */
.card-text {
  position: absolute;
  left: 22%; right: 22%; top: 32%; bottom: 28%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3em;
  text-align: center;
  color: var(--maroon-deep);
}
/* safety net for unusually long names/cities so a single long word wraps
   instead of spilling past the card's text box */
.card-text > div {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.ct-names {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 7.2cqw;
  line-height: 1.08;
  white-space: nowrap; /* fit-to-width shrinks this via JS, see app.js */
}
.ct-names .amp {
  font-style: italic;
  font-weight: 600;
  color: var(--red);
  padding: 0 .05em;
}
.ct-date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.4cqw;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: .15em;
  white-space: nowrap; /* fit-to-width shrinks this via JS, see app.js */
}
.ct-rule {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 60%;
  margin: .2em 0;
}
.rule-heart { width: 3.2cqw; flex-shrink: 0; }
.ct-city {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.8cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maroon-deep);
}
.ct-tag {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.95cqw;
  letter-spacing: .06em;
  color: #a8712c;
  margin-top: .35em;
  line-height: 1.4;
}

.card-reveal {
  left: 50%; top: 42%;
  width: 84%;
  transform: translateX(-52%) rotate(-6deg);
  z-index: 21;
}
.card-reveal .ct-names { font-size: 6.6cqw; }

.tap-hint {
  position: absolute;
  left: 50%; bottom: 5%;
  transform: translateX(-50%);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 3cqw;
  color: var(--cream-dim);
  opacity: .85;
  z-index: 20;
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100%{opacity:.5} 50%{opacity:.95} }

/* ---------- screen 4 confirm ---------- */
.screen-confirm { background: rgba(20, 5, 7, .42); }
.confirm-scroll {
  position: absolute; inset: 0;
  z-index: 10; /* above .floral-frame (4) so the corner flowers sit behind content */
  overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 16cqw 6cqw 4cqw;
  gap: .7cqw;
}
.confirm-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 2.6cqw;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: .9;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.confirm-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11.5cqw;
  line-height: 1.05;
  color: var(--cream);
  margin: .08em 0 0;
  text-shadow: 0 0 18px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.5);
}
.gold-divider {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  width: 46%;
  margin: .1em 0;
}
.gold-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.divider-heart { width: 3.6cqw; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.confirm-subtag {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 2.5cqw;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.card-confirm {
  position: relative;
  width: 84%;
  transform: none;
  flex-shrink: 0;
  margin-top: 1.6cqw;
}
.card-confirm .ct-names { font-size: 6.4cqw; line-height: 1.05; }
.card-confirm .ct-date { font-size: 3.6cqw; }
.card-confirm .rule-heart { width: 2.6cqw; }
.card-confirm .ct-city { font-size: 3.2cqw; }
.card-confirm .ct-tag { font-size: 1.85cqw; }

.btn-calendar {
  width: 90%;
  margin-top: 2.4cqw;
  padding: 3.8cqw 0;
  background: linear-gradient(180deg, #9c2036, var(--maroon-deep) 70%);
  color: var(--cream);
  border: 2px solid var(--gold);
  font-size: 4.4cqw;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 0 1.5px rgba(255,255,255,.1) inset;
  display: flex; align-items: center; justify-content: center; gap: .55em;
  flex-shrink: 0;
}
.btn-cal-icon { width: 1.1em; height: 1.1em; color: var(--gold-bright); flex-shrink: 0; }
.btn-cal-label { font-family: var(--serif); font-weight: 700; }
.btn-cal-chevron { font-size: 1.3em; color: var(--gold-bright); line-height: 1; }
.btn-calendar:active { transform: scale(.97); }

.second-tap-divider {
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  margin-top: .6cqw;
}
.stl-row {
  display: flex; align-items: center; justify-content: center; gap: .7em;
  width: 60%;
}
.stl-row .gold-line { height: 1px; }
.stl-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 2.5cqw;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}
.stl-sub {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 2.9cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.share-row {
  width: 92%;
  margin-top: 1.5cqw;
  background: rgba(253, 243, 226, .97);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 2.8cqw 3cqw;
  display: flex; align-items: center; gap: 2.8cqw;
  box-shadow: 0 10px 22px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.share-avatar-wrap { position: relative; flex-shrink: 0; width: 20cqw; }
.share-avatar {
  width: 20cqw; height: 20cqw;
  object-fit: cover;
  border-radius: 22%;
  display: block;
  box-shadow: 0 0 0 2px var(--marigold);
}
/* three short gold motion strokes fanned above-left of the avatar,
   replacing the old single elongated speedlines sprite */
.speed-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 80%);
  border-radius: 3px;
  transform-origin: 100% 50%;
  pointer-events: none;
}
.sl-1 { top: 10%; left: -13%; width: 10px; transform: rotate(-55deg); }
.sl-2 { top: -3%; left: -15%; width: 13px; transform: rotate(-30deg); }
.sl-3 { top: -14%; left: -7%; width: 11px; transform: rotate(-5deg); }
.share-heart {
  position: absolute; top: 8%; right: -14%;
  width: 5.5cqw;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.share-text {
  flex: 1;
  font-family: var(--script);
  font-weight: 700;
  font-size: 5.4cqw;
  line-height: 1.15;
  color: var(--maroon-deep);
}
.share-btns { display: flex; flex-direction: column; gap: 1.6cqw; }
.share-btn-col { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.btn-icon {
  width: 8cqw; height: 8cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9c2036, var(--maroon-deep));
  color: var(--cream);
  font-size: 3.6cqw;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.btn-icon:active { transform: scale(.92); }
.share-btn-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 2cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon);
}

.confirm-footer {
  display: flex; flex-direction: column; align-items: center; gap: .5em;
  margin-top: 1.4cqw;
  padding-bottom: 2cqw;
}
.footer-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 2.6cqw;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.toast {
  position: absolute;
  left: 50%; bottom: 6%;
  transform: translate(-50%, 20px);
  background: rgba(20,5,7,.9);
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 3.2cqw;
  padding: .7em 1.3em;
  border-radius: 999px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .tap-arc { animation: none; opacity: .5; transform: translateX(-50%) scale(1.1); }
}
