/* Not My Event: the look of "The Christmas Eve Wish" (public/templates/christmas-eve-wish.html). One page that scrolls DOWN through five scenes of one Christmas Eve. Each scene
   is a section with a pinned picture behind it (.stage, drawn by evewish-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 evewish.js writes only transform and opacity on a few layers.
   Twilight blue-violet, indigo snow, golden windows, candle gold. */
:root { --ac: #E6B95A; --ac2: #FFE9A8; --night: #14143C; --dusk: #3B2F73; --plum: #2A1C3A; --cran: #C8414E; --cream: #FFF8EA; --ink: #241A2E; --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(--night); 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, 248, 234, .4); background: rgba(20, 20, 60, .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(20, 20, 60, .98); border: 1px solid rgba(255, 248, 234, .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, 248, 234, .45); background: rgba(20, 20, 60, .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(20, 20, 60, .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(--night); }
.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%; overflow: visible; }
.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: 15vh; }
.beat.top { justify-content: flex-start; padding-top: 84px; }
.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(20, 20, 60, .9); 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(20, 20, 60, .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: .85; }
.fine.light { padding: 4px 12px; border-radius: 12px; background: rgba(20, 20, 60, .8); }
.plate { font-weight: 900; letter-spacing: .16em; font-size: clamp(11px, 3.1vw, 14px); padding: 8px 16px; border-radius: 20px; background: rgba(20, 20, 60, .9); color: var(--ac2); border: 1px solid var(--ac); }
.pre { font-family: var(--ed); font-weight: 600; letter-spacing: .5em; font-size: clamp(14px, 4vw, 20px); color: var(--ac2); margin-bottom: -10px; padding-left: .5em; }
.order { font-family: var(--ed); font-weight: 700; font-size: clamp(44px, 13vw, 104px); line-height: .98; max-width: 8em; color: var(--ac2); text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 34px rgba(255, 217, 138, .55); overflow-wrap: anywhere; }
/* the storyteller's lines */
.narr { font-family: var(--ed); font-style: italic; font-weight: 500; font-size: clamp(19px, 5.2vw, 26px); line-height: 1.25; max-width: 24em; padding: 9px 16px; border-radius: 14px; background: rgba(20, 20, 60, .8); color: var(--cream); overflow-wrap: anywhere; }
.narr.big { font-size: clamp(24px, 6.8vw, 40px); font-weight: 600; line-height: 1.15; max-width: 16em; }
.narr:empty { display: none; }
body.nonarr .narr:not(.key) { display: none; }
.btn-big { min-height: 56px; padding: 10px 26px; border-radius: 30px; border: 2px solid var(--ac2); background: linear-gradient(180deg, #4A3A8A, #2A2460); color: #fff; font-weight: 900; font-size: clamp(15px, 4.2vw, 19px); line-height: 1.2; letter-spacing: .05em; box-shadow: 0 5px 0 #14143C, 0 0 24px rgba(255, 217, 138, .35); touch-action: manipulation; max-width: 100%; }
.btn-big:active { transform: translateY(3px); box-shadow: 0 2px 0 #14143C; }
.btn-big.champ { background: linear-gradient(180deg, #FFE9A8, #E6B95A); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 #7A5A2A; }
.unit { width: 100%; max-width: 520px; padding: 20px 14px 14px; border-radius: 20px; display: grid; gap: 12px; justify-items: center; }
.unit h2 { font-family: var(--ed); font-weight: 700; font-size: clamp(25px, 6.6vw, 34px); line-height: 1.1; color: var(--ac2); }
.unit.glass { background: linear-gradient(180deg, rgba(42, 36, 96, .92), rgba(20, 20, 60, .96)); border: 1px solid rgba(255, 233, 168, .5); box-shadow: 0 16px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- 1. the falling stars and the lantern ---------- */
/* the whole screen is the sky: the stars fall from the top edge down to the lantern, which waits at the bottom */
.beat.skybeat { padding: 0 0 96px; justify-content: flex-start; gap: 18px; }
.beat.skybeat > .unit { width: calc(100% - 28px); }
.beat.skybeat > .narr { margin: 0 14px; }
.skywrap { position: relative; width: 100%; min-height: 100vh; min-height: 100svh; --fall: calc(100vh - 290px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 78px 14px 0; pointer-events: none; }
@supports (height: 100svh) { .skywrap { --fall: calc(100svh - 290px); } }
.skywrap > * { pointer-events: auto; }
.lanbox { margin-top: auto; height: 190px; padding-bottom: 14px; display: grid; align-content: end; justify-items: center; gap: 6px; }
.lanbox .yourwish { padding: 4px 14px; border-radius: 14px; background: rgba(20, 20, 60, .8); }
.skyfield { position: absolute; left: 0; right: 0; top: 0; bottom: 190px; pointer-events: none; }
.star { position: absolute; top: 0; width: 19%; min-width: 58px; max-width: 150px; pointer-events: auto; padding: 4px 0; border: 0; background: none; display: grid; justify-items: center; gap: 2px; animation: fall var(--t, 14s) linear var(--d, 0s) infinite; touch-action: manipulation; }
@keyframes fall { from { transform: translateY(-80px); opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } to { transform: translateY(var(--fall, 60vh)); opacity: 0; } }
.star:hover, .star:focus-visible { animation-play-state: paused; }
.star .s-pic { width: 46px; filter: drop-shadow(0 0 8px currentColor); } .star svg { display: block; width: 100%; height: auto; }
.star .s-lab { font-size: 11.5px; font-weight: 700; line-height: 1.15; color: #fff; padding: 2px 6px; border-radius: 8px; background: rgba(20, 20, 60, .8); overflow-wrap: anywhere; }
.star.caught { animation: none; top: auto; bottom: 0; }
.star.caught .s-pic { width: 56px; }
.lan { width: 66px; color: #8A86B8; transition: color .6s ease; } .lan svg { display: block; width: 100%; height: auto; overflow: visible; }
.lan .lglow { opacity: .12; transition: opacity .6s ease; } .lan.full .lglow { opacity: .5; animation: breathe 3.4s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .3; } to { opacity: .6; } }
#lan1 { margin-top: -6px; } #lan1.catch { animation: catch .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes catch { 30% { transform: scale(1.25); } }
.yourwish { font-family: var(--ed); font-weight: 700; font-size: clamp(21px, 5.8vw, 27px); line-height: 1.15; overflow-wrap: anywhere; }
.wishlist { width: 100%; display: grid; gap: 7px; }
.wl { min-height: 46px; padding: 8px 14px; border-radius: 23px; border: 1px solid rgba(255, 248, 234, .35); background: rgba(20, 20, 60, .6); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; text-align: left; overflow-wrap: anywhere; }
.wl i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.wl[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: rgba(255, 255, 255, .12); }

/* ---------- 2. the delivery map ---------- */
/* the neighborhood fills the screen: the homes are buttons laid over the drawing, each at its own share of the screen */
.beat.hoodbeat { padding: 0 0 96px; justify-content: flex-start; gap: 14px; }
.beat.hoodbeat > .narr { margin: 0 14px; }
.map { position: relative; width: 100%; height: max(100vh, 620px); touch-action: manipulation; overflow: hidden; }
@supports (height: 100svh) { .map { height: max(100svh, 620px); } }
.map-art, .map-art svg { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.map-head { position: absolute; left: 0; right: 0; top: 74px; z-index: 4; display: grid; justify-items: center; gap: 7px; padding: 0 14px; pointer-events: none; }
.map-head .progress { padding: 4px 12px; border-radius: 12px; background: rgba(20, 20, 60, .82); }
.hb { position: absolute; z-index: 2; border: 2px dashed transparent; border-radius: 14px; background: transparent; cursor: pointer; }
.hb:not(.on):hover, .hb:focus-visible { border-color: var(--ac2); background: rgba(255, 233, 168, .12); }
.map.all .hb:not(.on) { cursor: default; border-color: transparent; background: transparent; }
.map .glowed { opacity: 0; transition: opacity 1s ease .5s; }
.map.lit1 .h1 .glowed, .map.lit2 .h2 .glowed, .map.lit3 .h3 .glowed, .map.lit4 .h4 .glowed, .map.lit5 .h5 .glowed, .map.lit6 .h6 .glowed, .map.lit7 .h7 .glowed, .map.lit8 .h8 .glowed { opacity: 1; }
.mo { position: absolute; z-index: 3; width: clamp(62px, 8.5vw, 104px); transform: translate(-50%, -104%); pointer-events: none; opacity: 0; transition: opacity .8s ease 1s; }
.mo svg { display: block; width: 100%; height: auto; } .mo.on { opacity: 1; }
.map .cstar { opacity: .16; transition: opacity .9s ease .6s; } .map.g1 .c1, .map.g2 .c2, .map.g3 .c3 { opacity: 1; }
.map .cline { opacity: 0; transition: opacity 1.2s ease 1.1s; } .map.all .cline { opacity: .9; }
#lan2 { position: absolute; left: 50%; top: 72%; width: 46px; margin: -50px 0 0 -23px; z-index: 3; pointer-events: none; transition: left 1s ease, top 1s ease; animation: bobl 3s ease-in-out infinite alternate; }
.map .moment { position: absolute; left: 50%; bottom: 14px; z-index: 4; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); min-height: 0; padding: 8px 16px; border-radius: 14px; background: rgba(20, 20, 60, .88); pointer-events: none; }
@keyframes bobl { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.progress { font-weight: 900; font-size: 14px; color: var(--ac2); }
.moment { font-family: var(--ed); font-style: italic; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.25; min-height: 2.5em; max-width: 22em; overflow-wrap: anywhere; }
.moment:empty { min-height: 0; }

/* ---------- 3. the letters ---------- */
.letters { width: 100%; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; align-items: start; padding-top: 18px; }
.lt { position: relative; display: grid; gap: 8px; justify-items: center; }
.lt::before { content: ''; position: absolute; left: 50%; top: -22px; width: 2px; height: 24px; background: var(--ac); opacity: .7; }
.lt-b { width: 100%; min-height: 84px; padding: 12px 10px; border: 0; border-radius: 4px; background: linear-gradient(180deg, #FFF8EA, #F0E2C6); color: var(--ink); display: grid; gap: 3px; justify-items: center; align-content: center; box-shadow: 0 10px 20px rgba(0, 0, 0, .45); transform-origin: 50% -22px; animation: sway 6s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -1.3s); }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.lt-b[aria-expanded="true"] { animation: none; }
.lt-top { font-family: var(--ed); font-weight: 700; font-size: 20px; } .lt-tap { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.lt.mine .lt-b { box-shadow: 0 0 0 3px var(--ac2), 0 0 26px rgba(255, 233, 168, .7), 0 10px 20px rgba(0, 0, 0, .45); }
.lt-in { width: 100%; padding: 14px 12px; border-radius: 4px; background: #FFFDF6; color: var(--ink); box-shadow: 0 10px 20px rgba(0, 0, 0, .4); animation: unfold .45s ease both; transform-origin: 50% 0; text-align: left; border-top: 4px solid var(--c, var(--ac)); }
@keyframes unfold { from { opacity: 0; transform: scaleY(.2); } }
.lt-t { font-family: var(--ed); font-style: italic; font-weight: 600; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.22; overflow-wrap: anywhere; }
.lt-f { margin-top: 8px; font-size: 12.5px; font-weight: 700; opacity: .75; overflow-wrap: anywhere; }

/* ---------- 4. the wish comes true ---------- */
#s4 .coats, #s4 .people, #s4 .setting, #s4 .arrivals, #s4 .extra, #s4 .glow { opacity: 0; transition: opacity 1.1s ease; }
#s4.true .setting { opacity: 1; transition-delay: .2s; } #s4.true .coats { opacity: 1; transition-delay: 1s; } #s4.true .people { opacity: 1; transition-delay: 1.7s; }
#s4.true .arrivals { opacity: 1; transition-delay: 2.5s; } #s4.true .glow { opacity: 1; transition-duration: 2.2s; transition-delay: 2.6s; } #s4.true .extra { opacity: 1; transition-delay: 3.2s; }
#lan4 { position: absolute; left: 0; top: 0; width: 70px; margin: -56px 0 0 -35px; z-index: 2; transform: translate(var(--sx, 50vw), var(--sy, 40vh)); transition: transform 2.4s cubic-bezier(.5, 0, .3, 1) 3.4s, opacity .5s ease 5.5s; }
#s4.true #lan4 { transform: translate(var(--lx, 80vw), var(--ly, 40vh)) scale(.35); opacity: 0; }
.topstar { position: absolute; left: 0; top: 0; width: 46px; margin: -30px 0 0 -23px; z-index: 2; color: #FFE9A8; transform: translate(var(--lx, 80vw), var(--ly, 40vh)); opacity: 0; transition: opacity .7s ease 5.6s; filter: drop-shadow(0 0 12px #FFE9A8); }
.topstar svg { display: block; width: 100%; height: auto; }
#s4.true .topstar { opacity: 1; }
#s4 .dark { background: var(--night); }
#l-pay, #l-wishline, #l-chance, #b-reveal { display: none; }
#s4.true #b-true { display: none; }
#s4.true #l-pay { display: block; animation: fadeup 1.2s ease 1.2s both; }
#s4.true #l-wishline:not(:empty) { display: block; animation: fadeup 1s ease 3.2s both; }
#s4.true #l-chance { display: block; animation: fadeup 1s ease 4.6s both; }
#s4.true #b-reveal { display: inline-block; animation: fadeup .8s ease 5.8s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }
/* shown without the performance: a reload, reduced motion, the editor, or a guest who scrolled past */
#s4.quiet *, #s4.quiet { transition: none !important; } #s4.quiet #l-pay, #s4.quiet #l-wishline, #s4.quiet #l-chance, #s4.quiet #b-reveal { animation: none !important; }
.slowhand { animation: turn 180s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- 5. the invitation ---------- */
#s5 .beat { padding-top: 120px; }
.invite { position: relative; width: 100%; max-width: 600px; padding: clamp(50px, 11vw, 62px) clamp(16px, 5vw, 40px) clamp(20px, 5vw, 34px); display: grid; gap: 11px; justify-items: center; color: var(--ink); background: linear-gradient(180deg, #FFFDF6, #F4E8CE); border-radius: 8px; box-shadow: inset 0 0 0 2px #FFFDF6, inset 0 0 0 4px #E6B95A, inset 0 0 0 7px #FFFDF6, inset 0 0 0 8px #C8414E, 0 26px 50px rgba(0, 0, 0, .55); }
.s-seal { position: absolute; left: 50%; top: -62px; width: 92px; margin-left: -46px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); transform-origin: 50% 0; } .s-seal svg { display: block; width: 100%; height: auto; }
#s5.open .s-seal { animation: hang 1.8s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes hang { from { transform: translateY(-120px) rotate(-18deg); opacity: 0; } 55% { transform: rotate(8deg); opacity: 1; } 80% { transform: rotate(-4deg); } to { transform: none; } }
#s5.open .invite { animation: bloom 1.1s ease .2s both; }
@keyframes bloom { from { opacity: 0; transform: scale(.94); } }
.s-top { font-weight: 900; font-size: clamp(11px, 3.1vw, 13px); letter-spacing: .22em; color: var(--cran); }
#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, #E6B95A, 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 .note { font-family: var(--ed); font-style: italic; font-size: clamp(17px, 4.6vw, 20px); line-height: 1.3; max-width: 26em; 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(--plum); background: var(--plum); color: var(--cream); } .invite .btn.ghost { background: transparent; color: var(--plum); }
.btn:disabled { opacity: .5; }

/* ---------- the details, the reply, the wish card ---------- */
.after { position: relative; z-index: 2; background: #1A1846; 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, 248, 234, .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: #DCDCF4; }
.f input[type="text"], .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 248, 234, .5); background: var(--night); 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, 248, 234, .35); background: var(--night); font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
.ans label:has(input:checked) { border-color: var(--ac); background: #2A2460; 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: #DCDCF4; } #err.err { color: #FFB0B8; }
#done { display: grid; gap: 8px; padding: 18px; border-radius: 14px; border: 1px solid var(--ac); background: var(--night); justify-items: start; }
#done-t { font-family: var(--ed); font-weight: 700; font-size: 28px; color: var(--ac2); } #done-t:focus { outline: none; }
#r-closed { padding: 14px; border-radius: 10px; background: var(--night); }
#card { text-align: center; justify-items: center; padding: 24px 16px; border-radius: 22px; background: var(--night); border: 1px solid var(--ac); }
#card .c-top { font-weight: 900; letter-spacing: .2em; font-size: 12.5px; color: var(--ac); }
.after .c-h { font-family: var(--ed); font-style: italic; font-weight: 700; font-size: clamp(28px, 8vw, 40px); line-height: 1.1; color: #fff; max-width: 12em; 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) ---------- */
.twk { animation: twk 3.2s ease-in-out infinite alternate; } .twk.t1 { animation-delay: -.8s; } .twk.t2 { animation-delay: -1.6s; } .twk.t3 { animation-delay: -2.4s; }
@keyframes twk { from { opacity: 1; } to { opacity: .25; } }
.fl { animation: snowfall 12s linear infinite; }
@keyframes snowfall { to { transform: translate(24px, 108vh); } }
.flame { animation: shimmer 2.2s ease-in-out infinite alternate; } .flame.d { animation-delay: -1.1s; }
.lamp { animation: shimmer 4s ease-in-out infinite alternate; } .lamp.l1 { animation-delay: -1.3s; } .lamp.l2 { animation-delay: -2.6s; }
.orn { animation: shimmer 2.8s ease-in-out infinite alternate; } .orn.o1 { animation-delay: -.9s; } .orn.o2 { animation-delay: -1.8s; }
@keyframes shimmer { from { opacity: 1; } to { opacity: .55; } }
.rib { animation: drift 9s ease-in-out infinite alternate; } .rib.r1 { animation-duration: 11s; animation-delay: -3s; } .rib.r2 { animation-duration: 13s; animation-delay: -6s; }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.steam { animation: steam 4s ease-in-out infinite; } .steam.s1 { animation-delay: -2s; }
@keyframes steam { from { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } to { opacity: 0; transform: translateY(-8px); } }
/* 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 falling, the snow and the performances go (the stars wait in a row) ---------- */
body.rm *, body.rm *::before, body.rm *::after { animation: none !important; transition: none !important; }
body.rm .ov, body.rm .flakes { display: none; }
body.rm .beat.tall { min-height: 100vh; }
body.rm .skywrap { min-height: 0; }
body.rm .lanbox { height: auto; margin-top: 0; }
body.rm .skyfield { position: static; order: 1; width: 100%; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 6px; }
body.rm .star { position: static; width: 30%; max-width: none; }
body.rm .lanbox { order: 2; }
@media (max-width: 420px) { .beat { padding-left: 10px; padding-right: 10px; } .unit { padding: 16px 10px 12px; } .letters { grid-template-columns: 1fr; gap: 28px; } .star .s-lab { font-size: 10.5px; padding: 2px 4px; } }
