/* The Golden Ticket v3 — "ring jackpot" (owner 2026-11-12, round 3; LOCAL DRAFT) — the scratch layer (site/goldticket/goldticket.js)
   and this design's own touches on the gatefold hero / pages. Scoped to html.gt-on or html[data-gf="golden-ticket-ring"]. */

/* ───────── hero films ───────── */
html.gt-on .hero .gt-lv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
html.gt-on .hero .gt-lit { opacity: 0; }
html.gt-on .hero .gt-lit.on { opacity: 1; }
html.gt-on .hero .hint { display: none !important; }
/* the film's first frame IS the closed ticket (the still under it): no cross-fade needed — it just starts */
html.gt-on .hero.film .film-v { transition: none; }

/* ───────── the closed ticket (v4, owner 2026-11-14: full-bleed — the ticket IS the screen; the hero's column on desktop) ───────── */
.gt { position: fixed; inset: 0; z-index: 60; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.gt-safe { position: fixed; left: 0; top: 0; width: 0; height: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); visibility: hidden; pointer-events: none; }
/* desktop: dark mauve velvet around the column (the same colour as the hero background under it) */
.gt-vel { position: absolute; inset: 0; transition: opacity .5s ease;
  background: radial-gradient(ellipse 80% 55% at 50% 46%, rgba(160, 104, 108, .22), transparent 70%),
    radial-gradient(ellipse 120% 85% at 50% 50%, transparent 45%, rgba(10, 5, 8, .55)), #2c1f24; }
.gt-vel.gone { opacity: 0; }
.gt-vel i { position: absolute; left: 50%; top: 46%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 200, .1), transparent); }
/* v5: the print is its own layer from the start (promoting the 3× canvas at the hand-over cost a frame) */
.gt-card { position: absolute; pointer-events: none; will-change: transform, opacity; }
.gt-card .gt-art { position: absolute; left: 0; top: 0; pointer-events: none; }
/* the window: the foil, its sheen, the light sweep and the frame's inner shadow (the film shows through where the foil is gone) */
.gt-win { position: absolute; border-radius: var(--gt-wr, 14px); overflow: hidden; }
.gt-win canvas { position: absolute; pointer-events: none; }
.gt-foil { transition: opacity .25s linear; will-change: opacity; }
html:not(.gt-ready) .gt-foil { background: linear-gradient(135deg, #f0c8bb, #c98f80 55%, #e7b5a6); }
.gt-wsh { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(92, 44, 36, .38), inset 0 3px 7px rgba(70, 30, 24, .42), inset 2px 0 5px rgba(70, 30, 24, .16), inset 0 0 22px rgba(70, 30, 24, .12); }
.gt-sweep { position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen; will-change: transform, opacity;
  background: linear-gradient(105deg, transparent 0, rgba(255, 238, 222, .08) 30%, rgba(255, 246, 236, .5) 50%, rgba(255, 238, 222, .08) 70%, transparent 100%);
  transform: translateX(-130%) skewX(-10deg); }
.gt.sweep .gt-sweep { animation: gtSweep 1.5s cubic-bezier(.45, .05, .35, 1) both; }
@keyframes gtSweep { 0% { opacity: 0; transform: translateX(-130%) skewX(-10deg); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(260%) skewX(-10deg); } }
/* the finale: what is left of the foil melts into light (no hard cut), the hint and the fallback go with it */
.gt.dissolve .gt-foil { opacity: 0 !important; transition: opacity .9s cubic-bezier(.4, 0, .3, 1); }   /* v5: opacity only (an animated blur / brightness filter on the 3× foil dropped frames) */
.gt.dissolve .gt-sheen { opacity: 0; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) { .gt.dissolve .gt-foil { filter: none; transition-duration: .3s; } }
/* the printed words: the header stack (medallion, Jost small caps, Bodoni Moda italic, a fine divider) and the stub */
.gt-head { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none;
  color: #8a5a50; --gt-hs: 1; gap: calc(9px * var(--gt-hs)); overflow: visible; }
.gt-seal { position: relative; width: var(--gt-seal, 84px); height: var(--gt-seal, 84px); flex: none; margin-bottom: calc(6px * var(--gt-hs));
  filter: drop-shadow(0 1px 0 rgba(255, 246, 240, .7)) drop-shadow(0 2px 3px rgba(110, 56, 44, .16)); }
.gt-seal canvas { position: absolute; inset: 0; }
.gt-head.no-seal .gt-seal { display: none; }
.gt-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: italic 400 calc(var(--gt-seal, 84px) * .2)/1 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  color: #9c5e50; padding-bottom: .06em; background: linear-gradient(160deg, #b77866 10%, #e2a994 40%, #93564a 62%, #c58b78 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gt-mono i { font-style: italic; font-size: .62em; margin: 0 .1em; align-self: center; }
.gt-k, .gt-s { --gt-sc: 1; --gt-sc2: 1; }
.gt-k { font: 400 calc(12px * var(--gt-hs) * var(--gt-sc))/1 'Jost', 'Cormorant Garamond', sans-serif; text-transform: uppercase; letter-spacing: .34em; color: #9a6a5f; }
.gt-k span { padding-left: .34em; }
.gt-s { font: italic 400 calc(24px * var(--gt-hs) * var(--gt-sc2))/1.1 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif; white-space: nowrap; color: #8c5246;
  text-shadow: 0 1px 0 rgba(255, 250, 247, .55); }
.gt-div { width: calc(120px * var(--gt-hs)); height: auto; margin-top: calc(3px * var(--gt-hs)); flex: none; }
.gt-div path { fill: none; stroke: #b98172; stroke-width: .8; }
.gt-div path.d { fill: #f6dace; stroke-width: .9; }
.gt-div circle { fill: #b98172; }
.gt-foot { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; transition: opacity .3s ease;
  --gt-fsc: 1; font: 400 calc(max(11px, min(13px, var(--gt-fh) * .26)) * var(--gt-fsc))/1 'Jost', 'Cormorant Garamond', sans-serif; text-transform: uppercase; letter-spacing: .36em; white-space: nowrap; color: #9a6a5f; }
.gt-foot span { padding-left: .36em; }
/* "Keep going…" / "Almost there…": a quiet italic line under the window after a pause mid-scratch */
.gt-more { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(3px);
  font: italic 400 15px/1 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif; color: #8c5246; text-shadow: 0 1px 0 rgba(255, 250, 247, .6); transition: opacity .6s ease, transform .6s ease; }
.gt-more.on { opacity: 1; transform: none; }
.gt.dissolve .gt-more { opacity: 0; transition-duration: .2s; }
.gt-pad { position: absolute; touch-action: none; cursor: grab; border-radius: 4%; }
.gt-pad:active { cursor: grabbing; }
.gt-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
/* "scratch here": printed INTO the foil like real scratch-card print — small spaced Jost caps in a deeper rose gold, debossed, with a thin
   rose-gold coin outline that rubs a short zigzag every few seconds. Between the foil and its sheen. Fades at the first touch. */
.gt-hint { position: absolute; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; display: flex; align-items: center;
  gap: max(7px, calc(var(--gt-tw) * .02)); white-space: nowrap; transition: opacity .9s ease; }
.gt-hint.on { opacity: 1; }
.gt-hint.gone { opacity: 0; transition-duration: .35s; }
.gt-hint b { font: 500 max(11.5px, calc(var(--gt-tw) * .031))/1 'Jost', 'Cormorant Garamond', sans-serif; text-transform: uppercase; letter-spacing: .34em; margin-right: -.34em;
  color: rgba(118, 60, 48, .78); text-shadow: 0 1px 0 rgba(255, 240, 232, .62), 0 -.6px 0 rgba(70, 30, 24, .28); }
.gt-coin { width: max(20px, calc(var(--gt-tw) * .058)); height: auto; flex: none; fill: none; stroke: rgba(126, 64, 50, .8); stroke-width: 1.25; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 232, .6)); transform-origin: 50% 50%; animation: gtCoin 4.6s cubic-bezier(.45, 0, .35, 1) 1.2s infinite; }
.gt-coin .in { stroke-width: .8; stroke-dasharray: 1.2 1.6; }
.gt-coin .st { stroke-width: .9; }
@keyframes gtCoin { 0%, 62%, 100% { transform: none; } 66% { transform: translate(-3px, -1px) rotate(-14deg); } 71% { transform: translate(4px, 1px) rotate(10deg); }
  76% { transform: translate(-3px, 2px) rotate(-12deg); } 81% { transform: translate(3px, 0) rotate(8deg); } 87% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gt-coin { animation: none; } }
/* the fallback: appears only after a long idle (at once for reduced motion, and on keyboard focus) — small Jost on the stub's foot */
.gt-tap { position: absolute; transform: translateX(-50%); z-index: 5; appearance: none; border: 0; cursor: pointer;
  height: 44px; margin-top: -20px; /* a 44 px touch target (QA 2026-11-18: 40 px) */
  /* (QA 2026-11-18, fix G: the line sat ON the ticket's bottom frame line — 18 px higher it rests between "ONE NIGHT ONLY" and the
     frame, ≥ 10 px clear of both on 320×568 … 390×844) */
  padding: 0 14px; background: none; color: rgba(126, 72, 60, .82); font: 400 12px/1.2 'Jost', system-ui, sans-serif; letter-spacing: .08em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .8s ease, color .3s; }
.gt-tap::before, .gt-tap::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: rgba(176, 116, 103, .6); }
.gt-tap.on, .gt-tap:focus-visible { opacity: 1; pointer-events: auto; }
.gt-tap:hover, .gt-tap:active { color: rgba(96, 48, 40, .95); }
.gt-tap:focus-visible { outline: 1px solid rgba(140, 82, 70, .7); outline-offset: 2px; border-radius: 999px; }
.gt-tap.gone { opacity: 0 !important; pointer-events: none !important; transition-duration: .3s; }
/* after the hand-over the overlay lets every touch through; a film that will not play → the print fades where it is */
.gt.handed { pointer-events: none; }
.gt.handed .gt-pad { display: none; }
.gt.fading .gt-card { opacity: 0 !important; transform: scale(1.06); transition: opacity .65s ease, transform .9s cubic-bezier(.3, .1, .3, 1); }
.gt.left .gt-card { opacity: 0 !important; }

/* ───────── the hero after the reveal: names in the bokeh above the open lid ───────── */
html[data-gf="golden-ticket-ring"] .hero .hn-names .n, html[data-gf="golden-ticket-ring"] .hero .hn-names .amp { display: inline-block; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-names { text-shadow: 0 1px 0 rgba(96, 52, 40, .85), 0 -1px 0 rgba(255, 246, 236, .45), 0 2px 7px rgba(52, 26, 22, .5), 0 0 22px rgba(46, 22, 20, .45), 0 0 30px var(--h-glow) !important; }
html[data-gf="golden-ticket-ring"] .hero .hn-names[data-mode="one"] .amp { font-size: .64em; margin: 0 -.2em; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .nfx-sweep { inset: -10% -8%; border-radius: 0; -webkit-mask: radial-gradient(closest-side, #000 45%, transparent 100%); mask: radial-gradient(closest-side, #000 45%, transparent 100%); }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-date, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-city {
  color: #fff4ee; font-weight: 600; text-shadow: 0 1px 1px rgba(46, 22, 20, .85), 0 0 8px rgba(46, 22, 20, .7), 0 0 18px rgba(46, 22, 20, .5) !important; }
/* a soft dark-bokeh veil behind the names (no plaque): the bokeh above the lid is bright gold in places */
html[data-gf="golden-ticket-ring"] .hero #scene::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 75% 85% at 50% 30%, rgba(40, 20, 18, .42), rgba(40, 20, 18, .18) 55%, transparent 80%); opacity: 0; transition: opacity 1.2s ease; }
html[data-gf="golden-ticket-ring"] .hero.glide #scene::after { opacity: 1; }
html[data-gf="golden-ticket-ring"] .hero #hn { z-index: 2; }

/* ───────── pages: modern blush & rose gold (F3) ───────── */
html[data-gf="golden-ticket-ring"] .divider.ldiv svg path, html[data-gf="golden-ticket-ring"] .divider.ldiv svg circle { stroke: var(--accent); }
/* the pressed flowers ride on blush sections (cut with their own card, feathered) */
html[data-gf="golden-ticket-ring"] .decor.sprig { position: absolute; top: 18px; left: 0; width: min(15%, 64px); z-index: 0; }
html[data-gf="golden-ticket-ring"] .decor.flowers { position: absolute; right: 0; bottom: 0; width: min(46%, 200px); z-index: 0; }
html[data-gf="golden-ticket-ring"] .decor.sprig img, html[data-gf="golden-ticket-ring"] .decor.flowers img { opacity: 0; transition: opacity 1.4s ease; }
html[data-gf="golden-ticket-ring"] .decor.sprig img.in, html[data-gf="golden-ticket-ring"] .decor.flowers img.in { opacity: 1; }
/* photos (owner 2026-11-14 on his iPhone: "the photos have some highlight effect — they do not belong to the page"): no light overlay, no
   glass sweep — the photo sits INTO its thin rose-gold frame (the engine's pfx=h gilded edge + soft two-step drop shadow) with an inner
   shadow only, like the frame rule says */
html[data-gf="golden-ticket-ring"][data-pfx=h] .portrait.noframe .ph::after, html[data-gf="golden-ticket-ring"][data-pfx=h] .portrait.noframe.in .ph::after {
  background: none; animation: none;
  box-shadow: inset 0 0 0 1px rgba(60, 26, 22, .3), inset 0 5px 9px rgba(60, 26, 22, .36), inset 3px 0 6px rgba(60, 26, 22, .14), inset 0 0 22px rgba(60, 26, 22, .12); }
html[data-gf="golden-ticket-ring"][data-pfx=h] .gf-gal figure::after, html[data-gf="golden-ticket-ring"][data-pfx=h] .gf-gal figure.in::after { background: none; animation: none; }
html[data-gf="golden-ticket-ring"] .portrait .ph::before, html[data-gf="golden-ticket-ring"] .gf-gal figure::before { content: none !important; display: none !important; animation: none !important; }
/* the illustrations (coupes, ring box, roses, envelope) are printed INTO the paper: multiplied onto it, no drop shadow, no halo */
html[data-gf="golden-ticket-ring"] .decor.big { filter: none; mix-blend-mode: multiply; }

/* ───────── living-loop hook for page pictures ───────── */
.gt-live { position: relative; }
.gt-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; border-radius: inherit; }
.gt-live video.on { opacity: 1; }

/* round 3: the names need the room above the lid — the thin rule between the names and the date is left out */
html[data-gf="golden-ticket-ring"] .hero .hn-rule { display: none; }
/* the gallery prints clip their one-time glass sheen (it showed as faint slanted outlines around the prints) */
html[data-gf="golden-ticket-ring"][data-pfx=h] .gf-gal figure { overflow: hidden; }
/* the engine's shared gold wax seal on the RSVP page, warmed to rose gold for this design */
html[data-gf="golden-ticket-ring"] .rsvp .seal img { filter: hue-rotate(-14deg) saturate(.72) brightness(1.04) drop-shadow(0 6px 10px rgba(80, 40, 36, .22)); }
/* while the film grows from the ticket's rectangle to full screen, the space around it is the velvet's own dark mauve (the gatefold
   paints the scene box with the ivory page paper — it flashed light grey / white around the growing frame) */
html[data-gf="golden-ticket-ring"] .hero .scene-clip, html[data-gf="golden-ticket-ring"] .hero { background: #2c1f24; }

/* round 4 (owner 2026-11-12): the names in WARM gold — champagne highlights, a deeper honey edge — not silvery mauve; the small lines in
   warm ivory; the kicker smaller and kept to one line (tighter tracking, never wraps) so the names have room above the lid */
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-names { color: #f0cd86;
  text-shadow: 0 1px 0 rgba(120, 72, 22, .9), 0 -1px 0 rgba(255, 246, 214, .7), 0 2px 7px rgba(46, 22, 12, .5), 0 0 18px rgba(255, 206, 120, .22), 0 0 30px var(--h-glow) !important; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .nfx-sweep::before { background: linear-gradient(105deg, transparent 0, rgba(255, 240, 200, .16) 40%, rgba(255, 250, 228, .34) 50%, rgba(255, 240, 200, .16) 60%, transparent 100%); }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-date, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-city { color: #fff4e2; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k { font-size: calc(var(--hn-k, var(--hn-small)) * .86); letter-spacing: .2em; padding-left: .2em; white-space: nowrap; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-date, html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-city {
  color: #fdebc6; text-shadow: 0 1px 1px rgba(46, 22, 14, .7), 0 0 7px rgba(46, 22, 14, .45), 0 0 16px rgba(46, 22, 14, .3) !important; }
/* short phones (320 × 568 class): the kicker ran into the back circle and the date read as large as the names — the small lines step
   down and the block starts a little lower (the lid is close there: re-measured, no overlap) */
@media (max-height: 640px) {
  html[data-gf="golden-ticket-ring"] .hero #hn { margin-top: 7px; }
  html[data-gf="golden-ticket-ring"] .hero .hn-date { font-size: calc(var(--hn-small) * .98); }
  html[data-gf="golden-ticket-ring"] .hero .hn-city { font-size: calc(var(--hn-small) * .82); margin-top: .2em; }
  html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k { font-size: calc(var(--hn-k, var(--hn-small)) * .8); }
}

/* round 7: the stub's "ONE NIGHT ONLY" turns into the wedding date as the scratch completes — a soft blur cross-fade (the two lines
   share one cell, so fitHead() fits the longer one); the date stays through the hold, the first reveal of the date */
.gt-foot { display: grid; place-items: center; }
.gt-foot span { grid-area: 1 / 1; transition: opacity .55s ease, filter .55s ease, letter-spacing .7s ease; }
.gt-foot .b { opacity: 0; filter: blur(3px); letter-spacing: .46em; }
.gt.dated .gt-foot .a { opacity: 0; filter: blur(3px); }
.gt.dated .gt-foot .b { opacity: 1; filter: blur(0); letter-spacing: .34em; transition-delay: .12s; color: #8a4f43; }
@media (prefers-reduced-motion: reduce) { .gt-foot span { transition: opacity .3s ease; filter: none !important; } }

/* round 7 (owner: the names over the ring box are "not visible at all"): a heavier script (Great Vibes, from our letterings), larger,
   and two colour schemes measured for WCAG contrast against the real pixels behind them (goldticket.js sets html[data-nm]):
   a = deep plum ink on a soft light veil over the golden bokeh · b = bright ivory with a tight dark shadow on a darker veil.
   The kicker / date / city: bigger and heavier. No plaque — a soft gradient veil only. */
html[data-gf="golden-ticket-ring"] .hero #scene::after { height: 32%; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-k { font-size: var(--hn-k, var(--hn-small)); letter-spacing: .18em; padding-left: .18em; font-weight: 700; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-date { font-size: calc(var(--hn-small) * 1.32); font-weight: 700; }
html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-city { font-size: calc(var(--hn-small) * 1.08); font-weight: 700; }
html[data-gf="golden-ticket-ring"] .hero .nfx-sweep { display: none; }
/* a — plum ink on a light veil */
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero #scene::after {
  background: radial-gradient(ellipse 92% 100% at 50% 34%, rgba(255, 247, 240, .8) 0, rgba(255, 245, 238, .66) 46%, rgba(255, 244, 236, .32) 70%, rgba(255, 244, 236, 0) 92%); }
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-names { color: #4a1b29;
  text-shadow: 0 1px 0 rgba(255, 250, 245, .7), 0 0 8px rgba(255, 248, 242, .6), 0 0 18px rgba(255, 246, 238, .45) !important; }
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-k, html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-date,
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-city { color: #55212f; text-shadow: 0 0 6px rgba(255, 248, 242, .75), 0 0 14px rgba(255, 246, 238, .5) !important; }
/* b — ivory on a darker veil */
html[data-gf="golden-ticket-ring"][data-nm="b"] .hero #scene::after {
  background: radial-gradient(ellipse 92% 100% at 50% 34%, rgba(34, 14, 12, .7) 0, rgba(34, 14, 12, .55) 46%, rgba(34, 14, 12, .26) 70%, rgba(34, 14, 12, 0) 92%); }
html[data-gf="golden-ticket-ring"][data-nm="b"] .hero.nfx-gild .hn-names { color: #fff6e8;
  text-shadow: 0 1px 1px rgba(20, 8, 6, .9), 0 0 3px rgba(20, 8, 6, .75), 0 0 12px rgba(20, 8, 6, .5) !important; }
html[data-gf="golden-ticket-ring"][data-nm="b"] .hero.nfx-gild .hn-k, html[data-gf="golden-ticket-ring"][data-nm="b"] .hero.nfx-gild .hn-date,
html[data-gf="golden-ticket-ring"][data-nm="b"] .hero.nfx-gild .hn-city { color: #fffaf2; text-shadow: 0 1px 1px rgba(20, 8, 6, .9), 0 0 3px rgba(20, 8, 6, .75), 0 0 10px rgba(20, 8, 6, .5) !important; }

/* round 7: the header turns too, with the stub — "FEELING LUCKY?" → "YOU'VE WON…", "scratch to reveal your prize" → "a seat at our wedding"
   (the same soft blur cross-fade; each pair shares one cell, so fitHead() fits the longer line); it stays through the hold */
.gt-k, .gt-s { display: grid; place-items: center; }
.gt-k span, .gt-s span { grid-area: 1 / 1; transition: opacity .55s ease, filter .55s ease; }
.gt-k .b, .gt-s .b { opacity: 0; filter: blur(3px); }
.gt.dated .gt-k .a, .gt.dated .gt-s .a { opacity: 0; filter: blur(3px); }
.gt.dated .gt-k .b, .gt.dated .gt-s .b { opacity: 1; filter: blur(0); transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .gt-k span, .gt-s span { filter: none !important; } }
/* round 7, short phones (320 × 568 class): the bigger small lines ran into the lid — they step down here, the block is not pushed */
@media (max-height: 640px) {
  html[data-gf="golden-ticket-ring"] .hero #hn { margin-top: 4px; }
  /* no room for the small "Save the date" above the names here (it ran into the demo's Customize pill): names, date and city only */
  html[data-gf="golden-ticket-ring"] .hero .hn-k { display: none; }
  html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-date { font-size: var(--hn-small); }
  html[data-gf="golden-ticket-ring"] .hero.nfx-gild .hn-city { font-size: calc(var(--hn-small) * .84); margin-top: .12em; }
}

/* round 7 fix: the veil lives INSIDE #scene (over the films, under the names). On .scene-clip it covered the names once the engine's
   "breathe" animation made #scene its own stacking context — the names read pale lilac through the light veil. */
html[data-gf="golden-ticket-ring"] .hero #scene::after { z-index: 1; }
html[data-gf="golden-ticket-ring"] .hero #scene #hn { z-index: 3; }
/* the ampersand between the names (the engine colours it separately: it came out near-white on the light veil) — a lighter plum accent */
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-names .amp { color: #8e4c5a; -webkit-text-fill-color: #8e4c5a; }

/* 2026-11-13 (owner, live desktop screenshot): the veil behind the names ended in a STRAIGHT line across the lid (~32 % of the
   height: its radial gradient was cut by the box). Now a vertical eased fade (smoothstep, 20 stops — no banding) that reaches exactly 0
   at the box's own bottom (26 %): full under the names, ~.2 at the lid's top edge (22.7 %), 0 by 26 % (names end ≤ 22.3 % at every size); the sides
   soften through a horizontal mask, so there is no boundary in any direction, at any width — desktop's 9:16 column included. */
html[data-gf="golden-ticket-ring"] .hero #scene::after { height: var(--gt-veil-h, 26%); -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .55), #000 24%, #000 76%, rgba(0, 0, 0, .55));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .55), #000 24%, #000 76%, rgba(0, 0, 0, .55)); }
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero #scene::after { background: linear-gradient(180deg, rgba(255, 246, 238, 0.800) 0%, rgba(255, 246, 238, 0.800) 56%, rgba(255, 246, 238, 0.800) 60%, rgba(255, 246, 238, 0.778) 64%, rgba(255, 246, 238, 0.717) 68%, rgba(255, 246, 238, 0.627) 72%, rgba(255, 246, 238, 0.518) 76%, rgba(255, 246, 238, 0.400) 80%, rgba(255, 246, 238, 0.282) 84%, rgba(255, 246, 238, 0.173) 88%, rgba(255, 246, 238, 0.083) 92%, rgba(255, 246, 238, 0.022) 96%, rgba(255, 246, 238, 0.000) 100%); }
html[data-gf="golden-ticket-ring"][data-nm="b"] .hero #scene::after { background: linear-gradient(180deg, rgba(34, 14, 12, 0.700) 0%, rgba(34, 14, 12, 0.700) 56%, rgba(34, 14, 12, 0.700) 60%, rgba(34, 14, 12, 0.680) 64%, rgba(34, 14, 12, 0.627) 68%, rgba(34, 14, 12, 0.549) 72%, rgba(34, 14, 12, 0.454) 76%, rgba(34, 14, 12, 0.350) 80%, rgba(34, 14, 12, 0.246) 84%, rgba(34, 14, 12, 0.151) 88%, rgba(34, 14, 12, 0.073) 92%, rgba(34, 14, 12, 0.020) 96%, rgba(34, 14, 12, 0.000) 100%); }
/* …and the small lines (date / city sit lowest, where the veil starts to fade) carry the names' plum and a tighter, brighter halo:
   measured under the ink (halo included) ≥ 7:1 at 1440 / 1920 / 390 / 360 / 320 */
html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-date, html[data-gf="golden-ticket-ring"][data-nm="a"] .hero.nfx-gild .hn-city {
  color: #4a1b29; text-shadow: 0 0 3px rgba(255, 250, 245, .95), 0 0 8px rgba(255, 248, 242, .85), 0 0 18px rgba(255, 246, 238, .55) !important; }

/* v4 (owner 2026-11-14: "the box must stay fully in frame"): the hero keeps the whole ring box with air at both sides (art.maxCrop .1 —
   at most 10 % of the film's width is cropped per side); on a phone taller than the film the film sits on the bottom (focus y 1) and
   the room above it (art.fillTop: the engine grows the names box up into it) continues the film's own golden bokeh: its top strip,
   mirrored and softly blurred, so there is no seam — and the light veil behind the names reaches up to the screen's top edge. */
html[data-gf="golden-ticket-ring"] .hero.filltop .scene-clip { background: #e9cdb6; }
html[data-gf="golden-ticket-ring"] .hero.filltop .scene-clip::before { content: ''; position: absolute; left: -8%; right: -8%; top: -30px;
  height: calc(var(--fill-t, 0px) + 150px); pointer-events: none;
  background: var(--gt-ext, none) center top / var(--gt-ew, 125%) auto no-repeat; }   /* pre-blurred in goldticket.js (no live filter) */
/* the film's top edge melts into that room over ~90 px (no line where the film begins) */
html[data-gf="golden-ticket-ring"] .hero.filltop #scene > .scene-img, html[data-gf="golden-ticket-ring"] .hero.filltop #scene > video {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 30px, #000 90px); mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 30px, #000 90px); }
html[data-gf="golden-ticket-ring"] .hero.filltop .scene::after { left: 0; right: 0; top: calc(-1 * var(--fill-t, 0px)); height: calc(var(--fill-t, 0px) + var(--gt-veil-h, 26%)); }
html[data-gf="golden-ticket-ring"] .hero.filltop #scene::after { left: 0; right: 0; top: calc(-1 * var(--fill-t, 0px)); height: calc(var(--fill-t, 0px) + var(--gt-veil-h, 26%)); }

/* v5 (owner 2026-11-14 on his iPhone: "it seemed to hang / stutter a bit"): the names' pen writing re-painted the big script WITH its
   three soft halos on every frame (the engine also deepens the ink colour while it writes), and the small lines settled through an
   animated blur — WebKit dropped frames there (p95 ≈ 26 ms). Here the pen moves only the mask (the ink is at full colour from the
   first stroke — on the light veil it reads the same), and the small lines rise with opacity + transform only. */
@keyframes penWriteGt { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes gtInkSettle { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
html[data-gf="golden-ticket-ring"] .hero.penw.open .hn-names .n, html[data-gf="golden-ticket-ring"] .hero.penw.open .hn-names .amp { animation-name: penWriteGt; }
html[data-gf="golden-ticket-ring"] .hero.penw.open .hn-k, html[data-gf="golden-ticket-ring"] .hero.penw.open .hn-date,
html[data-gf="golden-ticket-ring"] .hero.penw.open .hn-city { animation-name: gtInkSettle; will-change: opacity, transform; }
