/* Not My Event: the look of "Thanksgiving: The Family Group Chat Has Leaked" (public/templates/family-group-chat-has-leaked.html). One page that scrolls DOWN through five
   scenes of one family group chat. Each scene is a section with a pinned picture behind it (.stage, drawn by leaked-art.js for the size of the screen) and its words and toys
   in front (.flow), which simply scroll: nothing is clipped on a small phone and nothing has to be finished to go on. The scroll frame in leaked.js writes only transform and
   opacity on a few layers. The chat is our own design (forest green, cream, pumpkin, cranberry, harvest gold); it copies no real app. */
:root { --ac: #F08A3C; --ac2: #FFD9A8; --cran: #B8541A; --forest: #2B1608; --deep: #1A0C04; --bub: #5C3317; --cream: #FFF4DF; --ink: #1B120A; --ed: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--cream); font-family: var(--sans); line-height: 1.45; overflow-x: clip; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 9100; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #7FD4F5; outline-offset: 3px; }

/* ---------- the two controls at the top, the details pill, the sound hint ---------- */
#menu-wrap { position: fixed; left: 10px; top: 10px; z-index: 9040; }
#b-menu { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255, 244, 223, .4); background: rgba(43, 22, 8, .92); color: #fff; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
#menu { margin-top: 8px; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(43, 22, 8, .98); border: 1px solid rgba(255, 244, 223, .25); min-width: 230px; }
#menu button { min-height: 44px; text-align: left; padding: 0 12px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; }
#menu button[aria-pressed="true"] { background: var(--ac); color: var(--ink); }
#ev-pill { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9030; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid rgba(255, 244, 223, .45); background: rgba(43, 22, 8, .94); color: #fff; font-size: 13px; letter-spacing: .04em; }
#snd-hint { position: fixed; left: 50%; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 48px); transform: translateX(-50%); z-index: 9030; padding: 6px 12px; border-radius: 14px; background: rgba(43, 22, 8, .94); color: #fff; font-size: 12px; white-space: nowrap; transition: opacity .4s; pointer-events: none; }
#snd-hint.gone { opacity: 0; }

/* ---------- a scene: a pinned picture, and the words in front ---------- */
.sc { position: relative; background: var(--deep); }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0; }
.flow { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100lvh; }
.flow, .beat { pointer-events: none; }
.beat > * { pointer-events: auto; }
.ly, .ov { position: absolute; inset: 0; pointer-events: none; }
.ly svg { display: block; width: 100%; height: 100%; }
.ov { opacity: 0; z-index: 4; }
.beat { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 76px 16px 96px; text-align: center; }
.beat.tall { min-height: 120vh; justify-content: flex-start; padding-top: 16vh; }
/* scene 1 opens on the chat itself: a small title, then the phone, all on the first screen */
.beat.first { justify-content: flex-start; padding-top: 70px; gap: 10px; }
.beat.first .notif { padding: 8px 14px; font-size: 13.5px; border-radius: 16px; }
.beat.first .order { font-size: clamp(21px, 6vw, 38px); max-width: 14em; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.beat.first .tagline { font-size: clamp(14.5px, 3.9vw, 18px); padding: 5px 12px; }
.beat.out { min-height: 70vh; justify-content: flex-end; padding-bottom: 24vh; }
.cue { font-weight: 900; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 16px; background: rgba(43, 22, 8, .92); color: #fff; }
.cue::after { content: '  ↓'; }
.linkish { background: none; border: 0; padding: 10px 8px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; color: inherit; opacity: .9; }
.linkish.light { color: #fff; background: rgba(43, 22, 8, .85); border-radius: 12px; }
.minor { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.fine { font-size: 12.5px; opacity: .8; }
.status { font-weight: 700; font-size: 14px; color: #fff; background: rgba(43, 22, 8, .9); padding: 4px 12px; border-radius: 12px; }
.status:empty { display: none; }
.plate { font-weight: 900; letter-spacing: .16em; font-size: clamp(11px, 3.1vw, 14px); padding: 8px 16px; border-radius: 20px; background: var(--cran); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.head { font-family: var(--ed); font-weight: 700; font-size: clamp(32px, 9vw, 62px); line-height: 1.04; max-width: 12em; color: var(--cream); text-shadow: 0 3px 12px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.order { font-weight: 900; font-size: clamp(34px, 10vw, 80px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; max-width: 9.5em; color: var(--cream); text-shadow: 0 4px 0 rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
.tagline { font-family: var(--ed); font-style: italic; font-weight: 500; font-size: clamp(19px, 5.2vw, 27px); line-height: 1.25; max-width: 24em; padding: 8px 14px; border-radius: 12px; background: rgba(43, 22, 8, .85); overflow-wrap: anywhere; }
.btn-big { min-height: 56px; padding: 10px 26px; border-radius: 30px; border: 3px solid var(--ac2); background: var(--cran); color: #fff; font-weight: 900; font-size: clamp(15px, 4.2vw, 20px); line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 5px 0 #6A2C0C; touch-action: manipulation; max-width: 100%; }
.btn-big:active { transform: translateY(3px); box-shadow: 0 2px 0 #6A2C0C; }
.btn-big.champ { background: linear-gradient(180deg, #FFE2A0, #E0B35A); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 #7A5A2A; }
.done-line { font-weight: 700; font-size: 15px; }
.unit { width: 100%; max-width: 560px; padding: 20px 16px 12px; border-radius: 16px; display: grid; gap: 12px; justify-items: center; }
.unit h2 { font-family: var(--ed); font-weight: 700; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.1; }

/* ---------- the chat (our own design: a rounded panel, a header, bubbles, coloured circles with initials) ---------- */
.notif { display: flex; align-items: center; gap: 10px; max-width: min(100%, 440px); padding: 12px 16px; border-radius: 20px; background: rgba(255, 244, 223, .96); color: var(--forest); font-size: 15px; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); animation: drop .7s cubic-bezier(.2, 1.3, .4, 1) .3s both; overflow-wrap: anywhere; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } }
.n-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cran); }
.phone { width: 100%; max-width: 480px; padding: 0 12px 14px; border-radius: 28px; display: grid; gap: 10px; text-align: left; background: rgba(34, 17, 6, .95); border: 1px solid rgba(255, 244, 223, .2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.phone.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 12px 2px 10px; border-bottom: 1px solid rgba(255, 244, 223, .15); }
.ph-av { flex: none; width: 42px; height: 42px; } .ph-av svg { display: block; width: 100%; height: 100%; }
.ph-nm { flex: 1; min-width: 0; }
.ph-nm h2 { font-size: clamp(15px, 4.2vw, 17px); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.ph-nm p { font-size: 12.5px; color: #E8C28A; }
.badge { flex: none; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--cran); color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.msgs { display: grid; gap: 10px; }
.msgs:empty { display: none; }
.m { display: flex; gap: 8px; align-items: flex-end; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.m.in { opacity: 1; transform: none; }
.m.pop { animation: popin .45s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
@keyframes popin { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.m.me { justify-content: flex-end; }
.m:has(.rx) { margin-bottom: 9px; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c, #E0B35A); color: var(--forest); font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.bub { position: relative; max-width: 84%; padding: 8px 12px 9px; border-radius: 18px 18px 18px 6px; background: var(--bub); color: var(--cream); }
.m.me .bub { background: var(--ac); color: var(--ink); border-radius: 18px 18px 6px 18px; }
.bub .who { display: block; font-size: 12.5px; font-weight: 900; }
.bub p { font-size: clamp(15px, 4.2vw, 17px); line-height: 1.32; overflow-wrap: anywhere; }
.tm { display: block; text-align: right; font-size: 10.5px; opacity: .6; }
.rx { position: absolute; right: 10px; bottom: -13px; padding: 1px 8px; border-radius: 12px; background: var(--forest); border: 1px solid rgba(255, 244, 223, .3); font-size: 12.5px; color: var(--cream); white-space: nowrap; }
.sys { justify-self: center; padding: 3px 12px; border-radius: 12px; background: rgba(255, 244, 223, .1); font-size: 12.5px; font-style: italic; opacity: 0; transition: opacity .5s ease; text-align: center; }
.sys.in { opacity: .85; }
.typing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #E8C28A; }
.dots { display: inline-flex; gap: 4px; padding: 9px 11px; border-radius: 14px; background: var(--bub); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); animation: dot 1.2s ease-in-out infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.reply { display: grid; gap: 8px; padding: 12px 10px; border-radius: 18px; background: rgba(255, 244, 223, .08); }
.r-lab { font-size: 13px; font-weight: 700; color: var(--ac2); }
.choices { display: grid; gap: 8px; }
.choice { min-height: 50px; padding: 10px 14px; text-align: left; border-radius: 18px 18px 6px 18px; border: 2px solid var(--ac); background: rgba(240, 138, 60, .1); color: var(--cream); font-weight: 700; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.3; overflow-wrap: anywhere; }
.choice:active { background: var(--ac); color: var(--ink); }
.m.solo { width: 100%; max-width: 480px; padding: 12px; border-radius: 22px; background: rgba(34, 17, 6, .94); text-align: left; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }

/* ---------- 2. the potluck sign-up sheet ---------- */
.unit.card { background: linear-gradient(180deg, #FFFAF0, #F6E8CC); color: #2A1710; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); border-radius: 8px; border-top: 14px solid var(--cran); }
.dishes { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dish { position: relative; z-index: 2; min-height: 96px; padding: 8px 4px 6px; border-radius: 14px; border: 2px solid #E4CFA8; background: #fff; color: #2A1710; display: grid; gap: 2px; justify-items: center; align-content: start; touch-action: none; cursor: grab; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); }
.dish .d-pic { width: 58px; pointer-events: none; } .dish svg { display: block; width: 100%; height: auto; }
.dish .d-nm { font-weight: 900; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; pointer-events: none; }
.dish .d-to { font-size: 11px; font-weight: 700; color: var(--cran); overflow-wrap: anywhere; pointer-events: none; } .dish .d-to::before { content: '→ '; }
.dish[aria-pressed="true"] { border-color: var(--cran); box-shadow: 0 0 0 3px var(--cran); transform: translateY(-4px); }
.dish.gone { border-style: dashed; background: #FBF3E2; }
.dish.drag { z-index: 9; cursor: grabbing; box-shadow: 0 18px 22px rgba(0, 0, 0, .4); }
.people { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.person { min-height: 66px; padding: 8px 10px; border-radius: 14px; border: 2px dashed #C9A97A; background: #FFF4DF; color: #2A1710; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; text-align: left; }
.person .av { grid-row: span 2; }
.person .p-nm { font-weight: 900; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.person .p-has { font-size: 12.5px; opacity: .8; overflow-wrap: anywhere; }
.person.hot { border-style: solid; border-color: var(--cran); background: #FFE6C8; }
#pl-chat { width: 100%; text-align: left; }
#pl-chat .sys { background: #2A1710; color: var(--cream); font-style: normal; font-weight: 700; }
.sys.pop { animation: popin .45s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.rank { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; background: var(--forest); color: var(--cream); }
.rank small { font-weight: 900; font-size: 11px; letter-spacing: .18em; color: var(--ac); }
.rank b { font-weight: 900; font-size: clamp(17px, 5vw, 23px); line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- 3. the voice note ---------- */
/* the voice note is not in a box: the player sits in the middle of the screen, large, with her words under it */
#voice { justify-content: center; padding-bottom: 96px; }
#vn { max-width: 640px; padding: 0 4px; gap: 14px; background: none; border: 0; box-shadow: none; border-radius: 0; }
#vn .bub.audio { padding: 14px 16px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
#vn .script { background: rgba(26, 12, 4, .82); }
#s3 .pic { opacity: 0; transform: scale(.7) rotate(-6deg); transition: opacity .12s linear, transform .3s cubic-bezier(.2, 1.5, .4, 1); }
#s3 .pic.on { opacity: 1; transform: none; }
.bub.audio { flex: 1; max-width: none; }
.a-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vplay { flex: none; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--ac); color: var(--ink); font-size: 20px; display: grid; place-items: center; }
.vplay:disabled { opacity: .5; }
.wave { flex: 1; height: 38px; display: flex; align-items: center; gap: 2px; min-width: 0; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #E8C28A; transform-origin: 50% 50%; }
.playing .wave i { background: var(--ac); animation: wv .45s ease-in-out infinite alternate; }
@keyframes wv { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.a-time { flex: none; font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.prog { height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255, 244, 223, .2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ac); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s ease; }
.cut { min-height: 1.3em; text-align: center; font-family: 'Courier New', ui-monospace, monospace; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--ac); }
.cut:not(:empty)::before { content: '✂ JUMP TO '; }
.cap { min-height: 3.6em; display: grid; place-items: center; text-align: center; padding: 6px 12px; border-radius: 14px; background: rgba(26, 12, 4, .6); font-family: var(--ed); font-weight: 700; font-size: clamp(21px, 6vw, 29px); line-height: 1.16; overflow-wrap: anywhere; }
.cap:empty::before { content: 'Press play.'; opacity: .5; font-style: italic; font-weight: 500; }
.jump { animation: jump .3s steps(3) both; }
@keyframes jump { from { opacity: 0; transform: translateX(-14px) skewX(-8deg); } }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--ac); background: transparent; color: var(--ac2); font-weight: 900; font-size: 14px; } .chip::after { content: ' ⏩'; }
.script { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 244, 223, .08); }
.script li { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; } .script b { color: var(--ac); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* ---------- 4. the meltdown, and the dining room behind the chat ---------- */
.glass { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, rgba(74, 39, 16, .98), rgba(26, 12, 4, .99)); transform-origin: 0 0; transition: transform 1.5s cubic-bezier(.6, 0, .3, 1) .55s, opacity .5s ease 1.7s; }
.glass::after { content: ''; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%); transform: translateX(-70%); }
#s4.warm .glass { transform: translateY(-106%) rotate(-5deg); opacity: 0; }
#s4.warm .glass::after { animation: sheen .7s ease-in both; }
@keyframes sheen { to { transform: translateX(70%); } }
.storm { position: absolute; inset: 0; }
.sb { position: absolute; max-width: 48%; padding: 9px 13px 10px; border-radius: 18px 18px 18px 6px; background: var(--bub); color: var(--cream); text-align: left; font-weight: 900; font-size: clamp(13px, 3.7vw, 19px); line-height: 1.2; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transform: rotate(var(--r)); overflow-wrap: anywhere; }
.sb b { display: block; font-size: .72em; }
#s4.go .sb { animation: fly .5s cubic-bezier(.2, 1.3, .4, 1) var(--d) both; }
@keyframes fly { from { opacity: 0; transform: translateX(var(--from)) scale(.6); } }
#s4.hold .sb { animation-play-state: paused; opacity: .45; transition: opacity .3s ease; }
#s4 .ly.back, #s4 .ly.chairs, #s4 .ly.table { transform: scale(1.1); transition: transform 2.6s cubic-bezier(.3, 0, .2, 1) .7s; }
#s4.warm .ly.back, #s4.warm .ly.chairs, #s4.warm .ly.table { transform: none; }
#s4 .ly.glow { opacity: 0; transition: opacity 1.6s ease 1.6s; } #s4.warm .ly.glow { opacity: 1; }
#s4 .dark { background: var(--deep); }
.dev { font-weight: 900; font-size: clamp(22px, 6.6vw, 44px); line-height: 1.05; letter-spacing: .02em; padding: 8px 18px; border-radius: 12px; background: var(--cran); color: #fff; transform: rotate(-2deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.meter { width: min(100%, 420px); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(34, 17, 6, .95); border: 1px solid rgba(255, 244, 223, .2); }
.m-lab { font-weight: 900; font-size: 11px; letter-spacing: .14em; }
.m-bar { height: 10px; border-radius: 5px; background: rgba(255, 244, 223, .2); overflow: hidden; }
.m-bar i { display: block; height: 100%; background: linear-gradient(90deg, #E0B35A, #F08A3C); transform-origin: 0 50%; transform: scaleX(.43); transition: transform .2s linear; }
.m-num { min-width: 2.6em; text-align: right; font-weight: 900; font-size: 18px; color: #FF9AA0; font-variant-numeric: tabular-nums; }
.meter.jolt { animation: shake .4s; }
#mom-msg, .warmline, #b-reveal { display: none; }
#s4.hold #mom-msg { display: flex; }
#s4.hold #b-mom, #s4.warm #b-mom, #s4.warm .dev, #s4.warm .meter { display: none; }
.mom-big { width: 100%; max-width: 560px; justify-content: center; }
.mom-big.slam { animation: slam .45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes slam { from { opacity: 0; transform: scale(1.6); } }
.mom-big .bub { max-width: 100%; padding: 16px 20px 18px; border-radius: 28px 28px 28px 8px; background: var(--cream); color: var(--forest); box-shadow: 0 0 0 4px var(--ac), 0 22px 44px rgba(0, 0, 0, .55); text-align: left; }
.mom-big .who { color: var(--cran); font-size: 14px; }
.mom-big p { font-weight: 900; font-size: clamp(23px, 6.8vw, 40px); line-height: 1.1; }
#s4.warm .warmline { display: block; animation: fadeup 1.2s ease 2.1s both; }
#s4.warm #b-reveal { display: inline-block; animation: fadeup .8s ease 3s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }
.warmline { font-family: var(--ed); font-style: italic; font-weight: 600; font-size: clamp(28px, 8vw, 54px); line-height: 1.1; max-width: 13em; padding: 14px 20px; border-radius: 18px; background: rgba(30, 14, 10, .78); color: var(--cream); overflow-wrap: anywhere; }

/* ---------- 5. the invitation ---------- */
#s5 .beat { padding-top: 110px; }
.invite { position: relative; width: 100%; max-width: 600px; padding: clamp(40px, 9vw, 54px) clamp(16px, 5vw, 40px) clamp(20px, 5vw, 34px); display: grid; gap: 11px; justify-items: center; color: #2A1710; background: linear-gradient(180deg, #FFFAF0, #F6E8CC); border-radius: 6px; box-shadow: inset 0 0 0 2px #FFFAF0, inset 0 0 0 5px var(--cran), inset 0 0 0 7px #FFFAF0, inset 0 0 0 8px #E0B35A, 0 26px 50px rgba(0, 0, 0, .55); }
.s-seal { position: absolute; left: 50%; top: -38px; width: 76px; margin-left: -38px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); } .s-seal svg { display: block; width: 100%; height: auto; }
.s-top { font-weight: 900; font-size: clamp(11px, 3.1vw, 13px); letter-spacing: .22em; color: var(--cran); margin-top: 6px; }
#t-title { font-family: var(--ed); font-style: italic; font-weight: 700; font-size: clamp(27px, 7.6vw, 42px); line-height: 1.08; overflow-wrap: anywhere; }
.invite .rule { width: 60%; height: 3px; background: linear-gradient(90deg, transparent, #E0B35A, transparent); }
.invite .event { font-family: var(--ed); font-weight: 700; font-size: clamp(22px, 6vw, 30px); line-height: 1.15; overflow-wrap: anywhere; min-height: 1.1em; }
.invite .when { font-weight: 900; font-size: clamp(16px, 4.6vw, 20px); }
.invite .where { font-size: clamp(15px, 4.3vw, 18px); overflow-wrap: anywhere; }
.invite .dress, .invite .with { font-size: 15px; overflow-wrap: anywhere; }
.invite .closing { font-family: var(--ed); font-style: italic; font-weight: 600; font-size: clamp(18px, 5vw, 22px); color: var(--cran); overflow-wrap: anywhere; }
.acts, .row-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; border-radius: 24px; border: 2px solid var(--ac); background: var(--ac); color: var(--ink); font-weight: 900; font-size: 15px; letter-spacing: .03em; }
.btn.ghost { background: transparent; color: var(--ac); }
.invite .btn { border-color: var(--forest); background: var(--forest); color: var(--cream); } .invite .btn.ghost { background: transparent; color: var(--forest); }
.btn:disabled { opacity: .5; }

/* ---------- the details, the reply, the status card ---------- */
.after { position: relative; z-index: 2; background: var(--forest); color: var(--cream); padding: 30px 16px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 34px; justify-items: center; }
.after section { width: 100%; max-width: 560px; display: grid; gap: 14px; }
.after h2 { font-family: var(--ed); font-weight: 700; font-size: 30px; color: var(--ac); }
.det { display: grid; gap: 11px; }
.det div { display: grid; gap: 1px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 244, 223, .2); }
.det dt { font-weight: 900; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ac); }
.det dd { font-size: 17px; overflow-wrap: anywhere; }
.row-acts { justify-content: flex-start; }
.going { font-size: 14px; color: var(--ac2); }
#rsvp-form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; font-size: 14px; color: #F3E3C8; }
.f input[type="text"], .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 244, 223, .5); background: var(--deep); color: #fff; font: inherit; font-size: 16px; }
.ans { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ans label { display: flex; gap: 10px; align-items: center; min-height: 54px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(255, 244, 223, .35); background: var(--deep); font-size: 15px; cursor: pointer; }
.ans label:has(input:checked) { border-color: var(--ac); background: var(--bub); box-shadow: inset 0 0 0 1px var(--ac); }
.ans input { width: 20px; height: 20px; accent-color: var(--ac); flex: none; }
.ans b { color: var(--ac2); }
.step { display: flex; align-items: center; gap: 14px; }
.step button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ac); background: transparent; color: var(--ac); font-size: 22px; }
.step output { min-width: 1.5em; text-align: center; font-size: 20px; color: #fff; }
#err { min-height: 1.3em; font-size: 14px; color: #F3E3C8; } #err.err { color: #FFB0B8; }
#done { display: grid; gap: 8px; padding: 18px; border-radius: 14px; border: 1px solid var(--ac); background: var(--deep); justify-items: start; }
.r-stamp span { display: inline-block; font-weight: 900; font-size: clamp(15px, 4.6vw, 22px); letter-spacing: .06em; line-height: 1.15; color: var(--ac2); border: 3px solid var(--ac2); border-radius: 8px; padding: 5px 12px; transform: rotate(-3deg); animation: slam .4s cubic-bezier(.2, 1.5, .4, 1) both; }
#done-t { font-family: var(--ed); font-weight: 700; font-size: 26px; color: var(--ac2); } #done-t:focus { outline: none; }
#r-closed { padding: 14px; border-radius: 10px; background: var(--deep); }
#card { text-align: center; justify-items: center; padding: 24px 16px; border-radius: 22px; background: var(--deep); border: 2px solid var(--ac); }
#card .c-top { font-weight: 900; letter-spacing: .06em; font-size: clamp(16px, 4.6vw, 20px); line-height: 1.2; max-width: 18em; overflow-wrap: anywhere; }
#card .c-pre { font-family: var(--ed); font-style: italic; font-size: 18px; }
.after .c-h { font-family: var(--sans); font-weight: 900; font-size: clamp(20px, 5.8vw, 28px); line-height: 1.2; color: var(--ac); max-width: 16em; overflow-wrap: anywhere; }
#card-cv { display: block; width: min(100%, 300px); height: auto; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.c-acts { justify-content: center; }
.foot { font-size: 12px; opacity: .65; text-align: center; max-width: 30em; }

/* ---------- the small motion in the pictures (slow, and never a strobe) ---------- */
.flame { animation: shimmer 2.2s ease-in-out infinite alternate; } .flame.d { animation-delay: -1.1s; }
@keyframes shimmer { from { opacity: 1; } to { opacity: .6; } }
.steam { animation: steam 4s ease-in-out infinite; } .steam.s1 { animation-delay: -1.3s; } .steam.s2 { animation-delay: -2.6s; }
@keyframes steam { from { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } to { opacity: 0; transform: translateY(-14px); } }
.ring { animation: ring 3.6s ease-in-out infinite alternate; } .ring.r1 { animation-delay: -1.2s; } .ring.r2 { animation-delay: -2.4s; }
@keyframes ring { from { opacity: 1; } to { opacity: .35; } }
/* a scene off the screen rests */
.sc.off .stage *, .sc.off .flow * { animation-play-state: paused !important; }

/* ---------- reduced motion: every word and control stays; the camera, the arriving bubbles, the storm, the jump cuts and the peel go ---------- */
body.rm *, body.rm *::before, body.rm *::after { animation: none !important; transition: none !important; }
body.rm .ov { display: none; }
body.rm .beat.tall { min-height: 100vh; }
body.rm .m, body.rm .sys { opacity: 1; transform: none; } body.rm .sys { opacity: .85; }
@media (max-width: 400px) { .beat { padding-left: 10px; padding-right: 10px; } .unit { padding: 16px 10px 10px; } .dishes { grid-template-columns: 1fr 1fr; } .dish { min-height: 88px; } .phone { padding: 0 9px 12px; border-radius: 22px; } .sb { max-width: 56%; } }
