/* Not My Event: the look of "Regret Loading..." (public/templates/regret-loading.html). A retro computer in a dark room: phosphor green and amber on
   near-black, beige plastic, cream paper for what it prints. Terminal capitals, dot-matrix readouts, a mono italic narrator; then a warm serif when a person takes over.
   The frame (controls, scenes, invitation, details, reply) is shared with the other five-scene invitations; this design's own pieces are at the end. */
:root { --ac: #6CFF8F; --ac2: #FFB000; --night: #07110B; --dusk: #1B2019; --plum: #1B2019; --cran: #B3261E; --red: #D8362B; --cream: #FBF3E0; --ink: #07110B; --ed: 'Young Serif', Georgia, serif; --sans: 'Oxanium', 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(7, 17, 11, .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(7, 17, 11, .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(7, 17, 11, .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(7, 17, 11, .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: 26vh; justify-content: flex-end; padding-top: 0; padding-bottom: 9vh; } /* the next scene begins just under the cue: no empty screen between scenes */
.cue { font-weight: 900; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 16px; background: rgba(7, 17, 11, .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(7, 17, 11, .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(7, 17, 11, .8); }
.plate { font-weight: 900; letter-spacing: .16em; font-size: clamp(11px, 3.1vw, 14px); padding: 8px 16px; border-radius: 20px; background: rgba(7, 17, 11, .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(108, 255, 143, .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(7, 17, 11, .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, #2A3028, #1B2019); color: #fff; font-weight: 900; font-size: clamp(15px, 4.2vw, 19px); line-height: 1.2; letter-spacing: .05em; box-shadow: 0 5px 0 #07110B, 0 0 24px rgba(108, 255, 143, .35); touch-action: manipulation; max-width: 100%; }
.btn-big:active { transform: translateY(3px); box-shadow: 0 2px 0 #07110B; }
.btn-big.champ { background: linear-gradient(180deg, #FFB000, #6CFF8F); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 #2A3028; }
.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(27, 32, 25, .92), rgba(7, 17, 11, .96)); border: 1px solid rgba(108, 255, 143, .5); box-shadow: 0 16px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- 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 #6CFF8F, inset 0 0 0 7px #FFFDF6, inset 0 0 0 8px #B3261E, 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, #6CFF8F, 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 keepsake card ---------- */
.after { position: relative; z-index: 2; background: #050B07; 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: #F1E4C8; }
.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: #1B2019; 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: #F1E4C8; } #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; }


/* ---------- pieces shared with the other five-scene invitations ---------- */
.mono { font-family: 'Doto', 'Courier New', monospace; font-weight: 500; font-size: clamp(13px, 3.6vw, 16px); line-height: 1.4; max-width: 34em; padding: 6px 12px; border-radius: 6px; background: rgba(7, 17, 11, .88); color: var(--cream); overflow-wrap: anywhere; }
.mono.lime { color: var(--ac); }
.mono.pre { white-space: pre-line; background: none; padding: 0; }
.mono:empty { display: none; }
.huge { font-family: 'Workbench', 'Courier New', monospace; font-weight: 400; font-size: clamp(38px, 12vw, 92px); line-height: 1; letter-spacing: .01em; color: #fff; text-shadow: 0 3px 0 var(--night), 0 0 30px rgba(7, 17, 11, .9); max-width: 12em; overflow-wrap: anywhere; }
.huge.sm { font-size: clamp(28px, 8vw, 56px); line-height: 1.05; max-width: 15em; }
.huge .fr { color: var(--ac); }
.huge .el { display: inline-block; animation: ell 1.4s steps(4, end) infinite; clip-path: inset(0 0 0 0); }
@keyframes ell { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 -10% 0 0); } }
.ticker { font-weight: 900; font-size: clamp(11px, 3.1vw, 13.5px); letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; background: var(--ac); color: var(--ink); border-radius: 3px; }
.narr { font-family: 'Xanh Mono', 'Courier New', monospace; font-style: italic; font-weight: 600; font-size: clamp(17px, 4.7vw, 24px); line-height: 1.3; max-width: 24em; padding: 8px 14px; border-radius: 8px; background: rgba(7, 17, 11, .86); color: var(--cream); overflow-wrap: anywhere; }
body.nonarr .narr { display: none; }
.plate.warm { color: #FFE9B0; border-color: #F2B45A; }
.btn-big { background: linear-gradient(180deg, #8BFFA8, #6CFF8F); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 #1F7A3A, 0 0 24px rgba(108, 255, 143, .35); }
.btn-big:active { box-shadow: 0 2px 0 #1F7A3A; }
.btn-big:disabled { opacity: .5; }
.beat.short { min-height: 56vh; }

/* ---------- a scene whose picture fills the screen, with what can be touched laid over it exactly where it is drawn ---------- */
.full { position: relative; width: 100%; height: max(100vh, 640px); overflow: hidden; pointer-events: auto; }
.full-art, .full-art svg { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.full-head { position: absolute; left: 0; right: 0; top: 70px; z-index: 4; display: grid; justify-items: center; gap: 8px; padding: 0 14px; pointer-events: none; text-align: center; }
.full-head > * { pointer-events: auto; }

/* 1. the three dots: the bubble on the phone is the thing to touch */
.dotsbtn { position: absolute; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; transform: translate(-50%, -50%); min-width: 96px; }
.dotsbtn svg, .msgbtn svg { display: block; width: 100%; height: auto; overflow: visible; }
.ty-d { transform-box: fill-box; transform-origin: 50% 50%; animation: dot 1.2s ease-in-out infinite; }
.ty-d.d1 { animation-delay: .18s; } .ty-d.d2 { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-22%); opacity: 1; } }
.dotsbtn.checked { animation: nudge .5s ease; }
@keyframes nudge { 30% { transform: translate(-50%, -50%) scale(1.08); } }
.prog { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: max(86px, 12vh); width: min(78vw, 300px); display: grid; gap: 6px; justify-items: center; }
.bar { width: 100%; height: 12px; border-radius: 6px; background: rgba(7, 17, 11, .9); border: 1px solid rgba(255, 255, 255, .4); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--ac); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.bar.big { height: 20px; border-radius: 10px; max-width: 560px; }
.bar.big i { transition: none; }
.prog .mono { text-align: center; }
.ty-const { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
#sky.grown .ty-const { transform: scale(1.22); }
.ty-star { animation: shimmer 3.2s ease-in-out infinite alternate; } .ty-star.s1 { animation-delay: .8s; } .ty-star.s2 { animation-delay: 1.6s; }
@keyframes shimmer { from { opacity: 1; } to { opacity: .55; } }

/* 2. the forecast center */
.answers { width: 100%; max-width: 560px; display: grid; gap: 9px; }
@media (min-width: 700px) { .answers { grid-template-columns: 1fr 1fr; } }
.ansb { min-height: 54px; padding: 10px 14px; border-radius: 22px 22px 22px 6px; border: 2px solid rgba(108, 255, 143, .55); background: rgba(7, 17, 11, .94); color: #fff; font-weight: 700; font-size: clamp(15px, 4.3vw, 18px); line-height: 1.25; text-align: left; touch-action: manipulation; }
.ansb[aria-pressed="true"] { background: var(--ac); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 2px var(--ac); }
.ansb:disabled { opacity: .55; }
.ansb[aria-pressed="true"]:disabled { opacity: 1; }
.dash { width: 100%; max-width: 560px; display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(5, 11, 7, .96); border: 2px solid var(--ac); text-align: left; animation: bloom .5s ease both; }
@keyframes bloom { from { opacity: 0; transform: translateY(16px); } }
.dash-prop svg { display: block; width: 92px; height: 92px; }
.dash-body { display: grid; gap: 6px; }
.dash .mono { background: none; padding: 0; }
.dash-wx { font-family: 'Workbench', 'Courier New', monospace; font-size: clamp(20px, 5.6vw, 28px); line-height: 1.08; color: #fff; }
.ty-scr0 { animation: shimmer 2.6s steps(2) infinite alternate; } .ty-scr1 { animation: shimmer 3.4s steps(2) .6s infinite alternate; }

/* 3. life support for three dots */
.life { display: flex; gap: clamp(14px, 5vw, 34px); padding: clamp(18px, 5vw, 30px) clamp(26px, 8vw, 54px); border-radius: 999px 999px 999px 40px; background: #E2DCCB; border: 5px solid var(--ink); box-shadow: 0 0 60px rgba(108, 255, 143, .35); }
.ld { display: block; width: clamp(40px, 13vw, 84px); height: clamp(40px, 13vw, 84px); border-radius: 50%; background: var(--ink); will-change: transform, opacity; }
.life.idle .ld { animation: dot 1.2s ease-in-out infinite; } .life.idle .d1 { animation-delay: .18s; } .life.idle .d2 { animation-delay: .36s; }
.vitals { width: 100%; max-width: 560px; display: grid; gap: 6px; justify-items: center; }
.interrupt { min-height: 2.9em; font-family: 'Workbench', 'Courier New', monospace; font-size: clamp(19px, 5.4vw, 30px); line-height: 1.1; color: #FFB4A8; text-shadow: 0 2px 0 #07110B; max-width: 16em; }
.interrupt.pop { animation: slam .35s ease both; }
@keyframes slam { from { opacity: 0; transform: scale(1.6); } }
.title-won { font-family: 'Workbench', 'Courier New', monospace; font-size: clamp(22px, 6.4vw, 36px); line-height: 1.1; padding: 12px 18px; background: var(--ac); color: var(--ink); border-radius: 4px; transform: rotate(-1.5deg); max-width: 16em; }

/* 4. the message: the great sealed bubble on the stage is the thing to touch */
.msgbtn { position: absolute; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; transform: translate(-50%, -100%); }
.msgbtn .msg-art { display: block; }
.msg-words { position: absolute; left: 8%; right: 8%; top: 12%; height: 58%; display: grid; place-items: center; font-family: 'Oxanium', system-ui, sans-serif; font-weight: 900; font-size: clamp(40px, 12vw, 76px); line-height: 1; color: var(--ink); opacity: 0; overflow-wrap: anywhere; text-align: center; }
.msg-words.long { font-size: clamp(22px, 6.4vw, 38px); }
#hallm.sent .msg-words { opacity: 1; } #hallm.sent .ty-seal { display: none; }
#hallm:not(.sent):not(.counting) .msgbtn { animation: breathe 2.4s ease-in-out infinite alternate; }
@keyframes breathe { from { filter: drop-shadow(0 0 0 rgba(108, 255, 143, 0)); } to { filter: drop-shadow(0 0 16px rgba(108, 255, 143, .95)); } }
.count { font-family: 'Workbench', 'Courier New', monospace; font-size: clamp(64px, 22vw, 170px); line-height: .9; color: var(--ac); text-shadow: 0 4px 0 var(--night); }
.count.word { font-size: clamp(24px, 7vw, 46px); line-height: 1.1; color: #fff; max-width: 12em; }
.count.pop { animation: slam .3s ease both; }
.bub2 { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: max(26px, 5vh); max-width: min(86vw, 420px); padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: #E2DCCB; color: var(--ink); font-weight: 900; font-size: clamp(18px, 5.2vw, 26px); border: 3px solid var(--ink); animation: bloom .4s ease both; }
.ty-beam { animation: sway 7s ease-in-out infinite alternate; } .ty-beam.b1, .ty-beam.b3 { animation-direction: alternate-reverse; animation-duration: 9s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
#hallm.counting .ty-beam { animation-duration: 1.2s; }
.posterwrap { pointer-events: auto; display: grid; justify-items: center; gap: 16px; padding: 30px 14px 70px; background: linear-gradient(180deg, #101A12, #07110B 30%); text-align: left; }
#poster-cv { display: block; width: min(92vw, 440px); height: auto; border: 4px solid #F4EFE3; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.charges { width: 100%; max-width: 560px; display: grid; gap: 10px; }
.charges div { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.charges dt { font-weight: 900; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ac); }
.charges dd { font-family: 'Doto', 'Courier New', monospace; font-size: clamp(15px, 4.2vw, 18px); overflow-wrap: anywhere; }
.s-field { width: 100%; max-width: 440px; display: grid; gap: 8px; font-size: 13.5px; color: var(--cream); }
.s-field input { width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 10px; background: rgba(255, 255, 255, .08); font: inherit; font-size: 18px; color: #fff; }

/* 5. the invitation: one clean message that actually sent */
.plate { border-radius: 3px; }
.invite { background: #F4EFE3; border-radius: 26px 26px 26px 6px; box-shadow: inset 0 0 0 3px var(--ink), 0 26px 50px rgba(0, 0, 0, .5); }
.invite .s-top { font-family: 'Doto', monospace; font-weight: 700; letter-spacing: .14em; font-size: 12px; background: var(--ac); color: var(--ink); padding: 5px 12px; border-radius: 3px; }
.invite h1 { font-family: 'Workbench', 'Courier New', monospace; font-weight: 400; font-size: clamp(34px, 10vw, 58px); line-height: 1; overflow-wrap: anywhere; }
.invite .msg { font-family: 'Xanh Mono', 'Courier New', monospace; font-style: italic; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.3; max-width: 26em; }
.invite .msg:empty { display: none; }
.invite .rule { background: var(--ink); height: 3px; }
.invite .closing { font-family: 'Doto', monospace; font-style: normal; font-weight: 700; font-size: clamp(13px, 3.7vw, 15px); color: #5A6B5E; }
.invite .btn { border-color: var(--ink); background: var(--ink); color: #fff; } .invite .btn.ghost { background: transparent; color: var(--ink); }
.tiny-typing { font-size: 12px; opacity: .7; display: flex; gap: 4px; align-items: center; }
.tiny-typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; } .tiny-typing i:nth-child(3) { animation-delay: .18s; } .tiny-typing i:nth-child(4) { animation-delay: .36s; }
.tiny-typing .fr { margin-right: 0; }
.ty-lt0 { animation: shimmer 2.8s ease-in-out infinite alternate; } .ty-lt1 { animation: shimmer 3.6s ease-in-out .9s infinite alternate; }

/* ---------- paused when off screen; reduced motion: every word and control stays, the performances go ---------- */
.sc.off .stage *, .sc.off .flow * { animation-play-state: paused !important; }
body.rm *, body.rm *::before, body.rm *::after { animation: none !important; transition: none !important; }
body.rm .ov { display: none; }
body.rm .huge .el { clip-path: none; }
@media (max-width: 420px) { .beat { padding-left: 10px; padding-right: 10px; } .full-head { top: 62px; gap: 6px; } .dash { grid-template-columns: 64px 1fr; } .dash-prop svg { width: 64px; height: 64px; } }

/* ---------- Regret Loading...: the screen, the loading bar, the question cards, the timeline, the printer ---------- */
/* the lettering: Workbench (a terminal's own capitals), Doto (dot-matrix, for every readout), Xanh Mono italic (the calm synthetic narrator), Oxanium (everything else),
   Young Serif (the warm, human invitation at the end), Libre Barcode 39 (a real barcode that spells its own joke) */
.huge, .count, .title-won, .dash-wx { font-weight: 400; text-transform: uppercase; }
.huge { font-size: clamp(30px, 8.6vw, 74px); line-height: 1; letter-spacing: .01em; color: var(--ac); text-shadow: 0 0 18px rgba(108, 255, 143, .55); max-width: 13em; }
.huge.sm { font-size: clamp(22px, 6vw, 44px); line-height: 1.08; color: var(--ac2); text-shadow: 0 0 16px rgba(255, 176, 0, .5); }
.narr { font-style: italic; font-weight: 400; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.35; color: var(--ac); background: rgba(7, 17, 11, .9); border: 1px solid rgba(108, 255, 143, .4); }
.mono, .charges dd { font-weight: 700; font-size: clamp(14px, 3.9vw, 18px); letter-spacing: .02em; }
.mono.pop, .readout.pop { animation: slam .3s ease both; }
.plate { font-family: 'Doto', 'Courier New', monospace; font-weight: 900; }
.btn-big { font-family: 'Workbench', 'Courier New', monospace; font-weight: 400; font-size: clamp(18px, 5vw, 24px); letter-spacing: .06em; border-radius: 6px; background: linear-gradient(180deg, #8BFFA8, #6CFF8F); box-shadow: 0 5px 0 #1F7A3A, 0 0 26px rgba(108, 255, 143, .45); }
.btn-big:active { box-shadow: 0 2px 0 #1F7A3A; }
/* 1. the loading bar, stuck at 99% */
.loadbar { width: min(84vw, 460px); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.loadbar .bar { height: 26px; border-radius: 0; border: 3px solid var(--ac); background: transparent; padding: 3px; }
.loadbar .bar i { background: repeating-linear-gradient(90deg, var(--ac) 0 10px, transparent 10px 14px); transition: transform .5s steps(6); }
.loadbar b { font-family: 'Doto', 'Courier New', monospace; font-weight: 900; font-size: clamp(22px, 6vw, 34px); color: var(--ac2); min-width: 3.4em; text-align: right; }
.rg-sweep { animation: sweep 5s linear infinite; }
@keyframes sweep { from { transform: translateY(-20%); } to { transform: translateY(760%); } }
.rg-reel { animation: reel 3.4s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }
.rg-l0 { animation: shimmer 1.2s steps(2) infinite alternate; } .rg-l1 { animation: shimmer 1.9s steps(2) .4s infinite alternate; }
.rg-w0 { animation: shimmer 2.8s ease-in-out infinite alternate; } .rg-w1 { animation: shimmer 3.6s ease-in-out .9s infinite alternate; } .rg-heart { animation: shimmer 1.4s ease-in-out infinite alternate; }
/* 2. three question cards, like punched cards */
.qcard { position: relative; width: 100%; max-width: 620px; display: grid; gap: 8px; padding: 12px 14px 14px; border-radius: 4px 18px 4px 4px; background: #F4EFE3; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 12px 26px rgba(0, 0, 0, .5); text-align: left; overflow: hidden; }
.qcard h3 { font-family: 'Workbench', 'Courier New', monospace; font-weight: 400; font-size: clamp(19px, 5.2vw, 25px); line-height: 1.05; text-transform: uppercase; }
.qcard.scan::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(108, 255, 143, .55), transparent); animation: scanq .6s linear; pointer-events: none; }
@keyframes scanq { from { transform: translateY(-110%); } to { transform: translateY(360%); } }
.opts { display: grid; gap: 6px; } @media (min-width: 640px) { .opts { grid-template-columns: repeat(3, 1fr); } }
.opt { min-height: 48px; padding: 8px 10px; border-radius: 2px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: 'Oxanium', system-ui, sans-serif; font-weight: 600; font-size: clamp(14px, 3.8vw, 16px); line-height: 1.2; text-align: left; touch-action: manipulation; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--ac); }
.readout { font-family: 'Doto', 'Courier New', monospace; font-weight: 700; font-size: clamp(14px, 3.9vw, 17.5px); line-height: 1.3; padding: 8px 10px; background: var(--ink); color: var(--ac); }
/* 3. the evening, line by line */
.timeline { list-style: none; width: 100%; max-width: 640px; display: grid; gap: 8px; text-align: left; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 4px; background: rgba(7, 17, 11, .94); color: var(--cream); border: 2px solid rgba(108, 255, 143, .5); font-size: clamp(15px, 4.1vw, 18px); line-height: 1.3; animation: bloom .4s ease both; }
.timeline li b { grid-column: 2; display: block; font-family: 'Doto', 'Courier New', monospace; font-weight: 900; font-size: 13px; letter-spacing: .06em; color: var(--ac2); }
.timeline .tl-pic { grid-row: 1 / span 2; width: 52px; } .timeline .tl-pic svg { display: block; width: 100%; height: auto; }
.timeline li:not(:has(.tl-pic)) { grid-template-columns: 1fr; } .timeline li:not(:has(.tl-pic)) b { grid-column: 1; }
.timeline li.combo { border-color: var(--ac2); } .timeline li.acc { border-style: dashed; font-family: 'Xanh Mono', 'Courier New', monospace; font-style: italic; color: var(--ac); }
/* 4. the printer is the thing to touch: the paper feeds out of the top */
.printbtn { position: absolute; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; transform: translate(-50%, -50%); min-width: 120px; }
.printbtn svg { display: block; width: 100%; height: auto; overflow: visible; }
.rg-paper { transform: translateY(44%); transition: transform 1s steps(10); }
#printroom.printed .rg-paper { transform: none; }
.printbtn.feed { animation: feed .5s steps(4); }
@keyframes feed { 50% { translate: 0 2px; } }
#printroom:not(.printed) .printbtn { animation: breathe 2.4s ease-in-out infinite alternate; }
.mono.big { font-size: clamp(16px, 4.6vw, 22px); font-weight: 900; color: var(--ac2); }
#poster-cv { border-color: #1B2019; }
/* 5. the invitation: the machine goes quiet and a person takes over. Warm paper, a serif, one barcode */
.invite { border-radius: 4px; background: #FBF3E0; box-shadow: inset 0 0 0 3px var(--ink), 0 26px 50px rgba(0, 0, 0, .5); }
.invite .s-top { font-family: 'Doto', 'Courier New', monospace; font-weight: 900; letter-spacing: .1em; font-size: 12.5px; background: var(--ink); color: var(--ac); padding: 5px 12px; border-radius: 0; }
.invite h1 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(30px, 8.6vw, 48px); line-height: 1.06; }
.invite .msg { font-family: 'Young Serif', Georgia, serif; font-style: normal; font-size: clamp(16px, 4.4vw, 20px); }
.invite .closing { font-family: 'Xanh Mono', 'Courier New', monospace; font-style: italic; font-weight: 400; font-size: clamp(15px, 4.2vw, 18px); color: var(--ink); }
/* under the last line, a barcode: only a decoration (the words are above it, readable) */
.invite .closing::after { content: 'NO REGRETS'; display: block; margin-top: 6px; font-family: 'Libre Barcode 39', 'Courier New', monospace; font-style: normal; font-size: clamp(40px, 11vw, 56px); line-height: 1; overflow: hidden; white-space: nowrap; }
.invite .btn { border-color: var(--ink); background: var(--ink); color: var(--ac); } .invite .btn.ghost { background: transparent; color: var(--ink); }
body.rm .rg-paper { transition: none; }
@media (max-width: 420px) { .timeline li { grid-template-columns: 40px 1fr; } .timeline .tl-pic { width: 40px; } }
