/* Not My Event: the look of "The Grand Thanksgiving Hotel" (public/templates/grand-thanksgiving-hotel.html), an Art Deco hotel treated with absurdly serious hospitality.
   Deep teal, champagne gold, burgundy, ivory and walnut; brass elevator doors that close between the scenes. The drawings are /assets/hotel-art.js.
   Moving things use only transform and opacity. */
:root {
  --teal: #142F32; --teal2: #0e2224; --gold: #C5A268; --goldL: #e8d29e; --burg: #702D38; --ivory: #F0E5D2; --ivory2: #e2d3b3; --walnut: #31231F; --ink: #F0E5D2; --ink2: #c9b894; --dark: #2a1c14;
  --accent: #C5A268; --tint: rgba(0, 0, 0, 0);
  --serif: "Playfair Display", "Bodoni Moda", Georgia, serif; --ui: "Josefin Sans", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
[data-theme="burgundy"] { --accent: #d4a05a; --tint: rgba(112, 45, 56, .3); }
[data-theme="midnight"] { --accent: #aebfe0; --tint: rgba(20, 40, 120, .28); }
[data-theme="ivory"] { --accent: #e8d29e; --tint: rgba(240, 229, 210, .1); }
* { box-sizing: border-box; }
html, body { background: #0b1b1d; color: var(--ink); }
body { margin: 0; font-family: var(--ui); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.modal { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--accent); color: #1a1405; font-weight: 700; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---------- The stage: the hotel, behind everything ---------- */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0e2224; touch-action: pan-y; }
#ext, #int { position: absolute; inset: 0; }
#extwrap { position: absolute; inset: 0; transform-origin: 50% 78%; }
.lyr { position: absolute; inset: 0; }
.lyr svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#int { visibility: hidden; background: #0e2224; }
#int.on { visibility: visible; }
#strip, #nearstrip { position: absolute; left: 0; top: 0; }
.floor { position: absolute; left: 0; }
.floor svg { display: block; width: 100%; height: 100%; }
.nearit { position: absolute; bottom: 0; pointer-events: none; }
.nearit svg { display: block; width: 100%; height: 100%; }
.lite #strip, .lite #nearstrip { transition: transform 1s cubic-bezier(.5, 0, .2, 1); }
.lite #extwrap { transition: transform 1s ease, opacity 1s ease; }
.peek #strip { transition: transform 1.1s cubic-bezier(.5, 0, .2, 1); }
.grade { position: absolute; inset: 0; pointer-events: none; transition: opacity 1.4s ease; }
.g-warm { background: radial-gradient(120% 90% at 50% 55%, rgba(255, 190, 90, .12), rgba(8, 4, 3, .5) 100%); }
.g-candle { background: radial-gradient(90% 70% at 50% 60%, rgba(255, 190, 90, .06), rgba(4, 2, 2, .7) 100%); opacity: 0; }
.g-tint { background: var(--tint); }
#stage[data-mood="dining"] .g-candle, #stage[data-mood="lounge"] .g-candle, #stage[data-mood="suite"] .g-candle { opacity: 1; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* things in the drawings that move, and the tap hints */
.flm { transform-origin: 0 0; animation: flick .9s ease-in-out infinite alternate; }
.flm.fb { animation-duration: 1.3s; animation-delay: -.4s; } .flm.fc { animation-duration: 1.1s; animation-delay: -.7s; }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.93, 1.08) skewX(2deg); } 100% { transform: scale(1.05, .94) skewX(-2deg); } }
.pulse { animation: glowp 3.4s ease-in-out infinite alternate; }
@keyframes glowp { from { opacity: .7; } to { opacity: 1; } }
.drift { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(120px); } }
.steam path { animation: steam 3.2s ease-out infinite; }
@keyframes steam { 0% { opacity: .55; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-16px); } }
.hot { cursor: pointer; pointer-events: all; }
.hit { pointer-events: all; }
.ping { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; pointer-events: none; }
#stage[data-scene="arrival"] #xm .ping, #stage[data-scene="lobby"] .fl1 .ping, #stage[data-scene="dining"] .fl2 .ping { animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { opacity: .85; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.25); } }
.sdl { transform: translateX(calc(var(--slide, 0) * -1px)); }
.sdr { transform: translateX(calc(var(--slide, 0) * 1px)); }
.lite .sdl, .lite .sdr { transition: transform 1.1s ease; }
/* the gags */
.hat-g { transform-box: fill-box; transform-origin: 20% 100%; }
.hot.act .hat-g { animation: tip 1.3s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes tip { 0% { transform: none; } 30% { transform: translate(-6px, -18px) rotate(-26deg); } 70% { transform: translate(-6px, -18px) rotate(-26deg); } 100% { transform: none; } }
.lid { transform-box: fill-box; transform-origin: 0 100%; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.pants { transition: transform .7s ease .15s; }
.hot.open .lid { transform: rotate(-78deg) translateY(-4px); }
.hot.open .pants { transform: translateY(-26px); }
.hot.act .bob { animation: hop .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-12px) scale(1.04, .96); } 100% { transform: translateY(0); } }
.chead { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(8deg) translateY(10px); transition: transform .5s ease; }
.ceyes { transform: translateY(5px); transition: transform .5s ease; }
.fl1.looked .chead { transform: none; }
.fl1.looked .ceyes { transform: none; }
.hot.act .keyg { animation: keyspin 1.3s ease-in-out; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes keyspin { 0% { transform: scaleX(1) translate(0, 0); } 25% { transform: scaleX(-1) translate(0, -12px) scale(1.15); } 50% { transform: scaleX(1) translate(0, -16px) scale(1.2); } 75% { transform: scaleX(-1) translate(0, -12px) scale(1.15); } 100% { transform: scaleX(1) translate(0, 0); } }
.cl { transition: transform .9s cubic-bezier(.3, 1.2, .4, 1); transform-box: fill-box; }
.hot.lifted .cl { transform: translateY(-100px) rotate(-12deg); }
.hot .steam { opacity: 0; transition: opacity .4s; }
.hot.lifted .steam { opacity: 1; }
.warm { transform-box: fill-box; transform-origin: 50% 90%; }
#stage.serve .warm { animation: raise 1.6s ease-in-out; }
@keyframes raise { 0%, 100% { transform: rotate(0); } 25%, 70% { transform: rotate(-40deg); } }
#menu-lines text { animation: ink .8s ease-out both; }
@keyframes ink { from { opacity: 0; } }
#pchair .chair { transition: transform 1.3s cubic-bezier(.5, 0, .2, 1); }
#pchair[data-s="in"] .chair { transform: translateX(46px); }
#pchair[data-s="half"] .chair { transform: translateX(22px); }
#bhop .bhw { transform: translateX(1500px); }
#stage.deliver #bhop .bhw { animation: deliver 6s cubic-bezier(.4, 0, .3, 1) both; }
@keyframes deliver { 0% { transform: translateX(1500px); } 40%, 72% { transform: translateX(330px); } 100% { transform: translateX(1500px); } }
#stage.deliver .tray { animation: trayoff 6s linear both; }
@keyframes trayoff { 0%, 38% { opacity: 1; } 56%, 100% { opacity: 1; } }
#placecard { opacity: 0; transition: opacity .8s ease; }
#placecard.shown { opacity: 1; }

/* ---------- The elevator: brass doors that close between floors ---------- */
#elev { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.ed { position: absolute; top: 0; bottom: 0; width: 50.4%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 3px, transparent 3px 16px), linear-gradient(90deg, #8c6f3c, #e8d29e 22%, #fff0c0 40%, #c5a268 62%, #8c6f3c); box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); }
.ed::after { content: ""; position: absolute; inset: 14px; border: 3px solid rgba(255, 240, 192, .55); }
.ed.l { left: 0; transform: translateX(calc((1 - var(--c, 0)) * -100%)); border-right: 3px solid #31231F; }
.ed.r { right: 0; transform: translateX(calc((1 - var(--c, 0)) * 100%)); border-left: 3px solid #31231F; }
.lite .ed { transition: transform .9s cubic-bezier(.5, 0, .2, 1); }
#dial { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; z-index: 31; display: flex; gap: 4px; padding: 5px 8px; border-radius: 999px; background: rgba(8, 20, 22, .82); border: 1px solid rgba(197, 162, 104, .5); pointer-events: none; }
#dial span { min-width: 30px; text-align: center; padding: 2px 6px; border-radius: 999px; font: 600 12px var(--ui); letter-spacing: .08em; color: rgba(240, 229, 210, .45); transition: all .4s; }
#dial span.on { background: var(--accent); color: #1a1405; }
@media (max-width: 760px) { #dial { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 12px; translate: 0 0; } }

/* ---------- Heads-up display ---------- */
.hud { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; background: linear-gradient(180deg, rgba(5, 14, 15, .72), transparent); }
.hud > * { pointer-events: auto; }
.brand { font: 600 12px var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--goldL); }
.hud-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hbtn { min-height: 44px; padding: 0 14px; border: 1px solid rgba(197, 162, 104, .6); border-radius: 999px; background: rgba(8, 20, 22, .86); font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hbtn:hover { border-color: var(--accent); }
.hbtn.solid { background: var(--accent); color: #1a1405; border-color: var(--accent); }
.nme-edit .hud { top: 56px; }
.dots { position: fixed; right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; z-index: 30; display: grid; gap: 2px; }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dots button i { width: 9px; height: 9px; transform: rotate(45deg); border: 2px solid var(--ink2); transition: all .25s; }
.dots button[aria-current="true"] i { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(1.3); }
.dots button span { position: absolute; right: 30px; padding: 3px 9px; border-radius: 6px; background: rgba(8, 20, 22, .92); font: 600 11px var(--ui); letter-spacing: .08em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots button:hover span, .dots button:focus-visible span { opacity: 1; }
@media (max-width: 760px) { .brand { display: none; } .dots { right: 2px; } .hbtn { padding: 0 11px; } }

/* ---------- The caption bar ---------- */
#cap { position: fixed; z-index: 35; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: min(92vw, 620px); padding: 12px 20px 14px; border-radius: 4px; background: rgba(8, 20, 22, .95); border: 1px solid rgba(197, 162, 104, .6); box-shadow: 0 0 0 4px rgba(8, 20, 22, .95), 0 0 0 5px rgba(197, 162, 104, .35), 0 18px 40px -12px rgba(0, 0, 0, .8); pointer-events: none; text-align: center; }
#cap b { display: block; font: 600 10px var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
#cap span { font: italic 500 19px/1.4 var(--serif); color: var(--ink); }
#cap.in { animation: capin .35s ease-out; }
@keyframes capin { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { #cap { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- The story: text and tools over the hotel ---------- */
#story { position: relative; z-index: 5; pointer-events: none; }
#story .card, #story button, #story a, #story input, #story textarea, #story label, #story .tags, #story .opts { pointer-events: auto; }
.scene { position: relative; }
.beat { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 96px max(18px, env(safe-area-inset-right, 0px)) 64px max(18px, env(safe-area-inset-left, 0px)); }
.beat.spacer { min-height: 90svh; align-content: end; justify-items: center; padding-bottom: 12svh; }
/* the first lines of a scene sit in a dark panel at the top, so the doorway, the desk and the table stay visible below it and the words never have to be read against the art */
.beat.top { align-content: start; padding-top: 88px; }
.intro { display: grid; gap: 10px; width: min(100%, 580px); padding: 20px 22px 22px; border-radius: 4px; background: rgba(8, 20, 22, .84); border: 1px solid rgba(197, 162, 104, .5); box-shadow: 0 0 0 4px rgba(8, 20, 22, .84), 0 0 0 5px rgba(197, 162, 104, .3), 0 24px 50px -22px rgba(0, 0, 0, .9); }
.intro h1, .intro h2 { font-size: clamp(28px, 4.6vw, 46px); max-width: none; text-shadow: none; }
.intro .lead { max-width: none; font-size: clamp(18px, 2.2vw, 22px); text-shadow: none; }
.intro .kick, .intro .tagline { text-shadow: none; }
.hint { font: 600 11px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding: 8px 14px; border-radius: 999px; background: rgba(8, 20, 22, .84); border: 1px solid rgba(197, 162, 104, .4); }
.kick { font: 600 12px var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.kick::before { content: "◆"; margin-right: 10px; font-size: 9px; }
h1, h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6.2vw, 68px); line-height: 1.06; letter-spacing: -.005em; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .9); }
h1 em, h2 em { font-style: italic; color: var(--goldL); }
.lead { font: italic 500 clamp(20px, 2.8vw, 27px)/1.4 var(--serif); max-width: 34ch; color: var(--ink); text-shadow: 0 1px 16px rgba(0, 0, 0, .95); }
.tagline { font: 600 11px var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--ink2); text-shadow: 0 1px 8px #000; }
.cue { font: 600 11px var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); animation: bobcue 2s ease-in-out infinite; }
@keyframes bobcue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.card { width: min(100%, 520px); padding: 20px 20px 22px; border-radius: 4px; background: rgba(8, 20, 22, .88); border: 1px solid rgba(197, 162, 104, .5); box-shadow: 0 0 0 4px rgba(8, 20, 22, .88), 0 0 0 5px rgba(197, 162, 104, .3), 0 24px 50px -22px rgba(0, 0, 0, .9); display: grid; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; }
.tag { position: relative; min-height: 48px; padding: 6px 18px; border: 1px solid var(--accent); border-radius: 999px; background: rgba(8, 20, 22, .88); color: var(--ink); font: 600 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; transition: all .2s; }
.tag:hover, .tag:focus-visible { background: var(--accent); color: #1a1405; }
.btn { min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #e8d29e, #b08a4a); color: #1a1405; font: 700 13px var(--ui); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 5px 0 #6b5026, 0 16px 26px -12px rgba(0, 0, 0, .8); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #6b5026; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(197, 162, 104, .7); }
.btn[disabled] { opacity: .6; cursor: default; }
.linkish { border: 0; background: none; padding: 10px 4px; min-height: 44px; color: var(--goldL); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sheets: the guest registry and event details ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 12, 13, .82); overflow: auto; }
.sheet { position: relative; width: min(100%, 560px); max-height: calc(100svh - 32px); overflow: auto; padding: 28px 24px 24px; border-radius: 4px; background: var(--ivory); color: var(--dark); box-shadow: 0 0 0 6px #31231F, 0 0 0 7px var(--gold), 0 40px 80px -20px rgba(0, 0, 0, .95); display: grid; gap: 14px; animation: sheetin .5s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheetin { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.sheet h2 { font: 700 clamp(26px, 5vw, 34px)/1.1 var(--serif); max-width: none; text-shadow: none; text-align: center; }
.sheet .x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(42, 28, 20, .1); font-size: 22px; line-height: 1; color: var(--dark); }
.sheet .btn.ghost { color: var(--dark); box-shadow: inset 0 0 0 2px rgba(42, 28, 20, .5); }
.f-rows { margin: 0; display: grid; gap: 2px; }
.f-rows > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(140, 111, 60, .45); align-items: baseline; }
.f-rows > div:first-child { border-top: 0; }
.f-rows dt { font: 600 10px var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--burg); }
.f-rows dd { margin: 0; font: 500 17px/1.4 var(--serif); overflow-wrap: anywhere; }
.brief-inline { width: min(100%, 520px); padding: 18px; border-radius: 4px; background: var(--ivory); color: var(--dark); display: grid; gap: 10px; box-shadow: 0 0 0 4px #31231F, 0 0 0 5px var(--gold); pointer-events: auto; }

/* ---------- Paper forms: the dish sign-up (the shared board reads these variables), the assessment, the reply ---------- */
.paper { position: relative; width: min(100%, 560px); --accent: #8c6f3c; --accent-d: #6b5026; --cream: var(--dark); --muted: #5b4a3a; --line: rgba(42, 28, 20, .3); --f-bg: #fff; --f-ink: var(--dark); --f-shadow: none; --chip-bg: rgba(42, 28, 20, .06); --row-bg: rgba(42, 28, 20, .07); --ok: #1f6b3a; --bad: #a3301f;
  color: var(--dark); background: var(--ivory); border-radius: 4px; padding: 26px 20px; box-shadow: 0 0 0 5px #31231F, 0 0 0 6px var(--gold), 0 34px 60px -26px rgba(0, 0, 0, .95); display: grid; gap: 14px; pointer-events: auto; }
@media (min-width: 600px) { .paper { padding: 32px 30px; } }
.paper h3 { font: 700 clamp(22px, 4vw, 28px)/1.15 var(--serif); }
.paper .db-sr, .paper label { font-family: var(--ui); }
.paper .note { font: italic 500 16px var(--serif); color: #5b4a3a; }
.q-count { font: 600 10px var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--burg); }
.confirm { padding: 12px 14px; border-radius: 4px; background: rgba(31, 107, 58, .12); border-left: 4px solid #1f6b3a; font: italic 500 17px/1.4 var(--serif); }
.opts { display: grid; gap: 10px; }
.opt { min-height: 56px; padding: 8px 16px; border: 1.5px solid rgba(42, 28, 20, .4); border-radius: 4px; background: #fffaf0; color: var(--dark); text-align: left; font: 500 17px/1.35 var(--serif); transition: all .2s; }
.opt:hover:not([disabled]) { border-color: var(--burg); }
.opt.picked { background: #ecd9a8; border-color: var(--burg); }
.opt[disabled] { cursor: default; opacity: .65; } .opt.picked[disabled] { opacity: 1; }
.react { min-height: 2.8em; font: italic 500 17px/1.4 var(--serif); color: var(--burg); }
.qnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qwrap { display: grid; gap: 14px; animation: qin .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes qin { from { opacity: 0; transform: translateY(18px); } }
.cert { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 16px; border: 2px solid var(--gold); outline: 6px double rgba(140, 111, 60, .55); outline-offset: 5px; animation: qin .5s ease-out; }
.cert .emb { font: 700 clamp(22px, 5vw, 32px)/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; color: #8c6f3c; text-shadow: 1px 1px 0 #fff, -1px -1px 0 rgba(0, 0, 0, .25); }
.cert p { font: italic 500 18px/1.45 var(--serif); max-width: 32ch; }

/* ---------- The reply ---------- */
.placecard { position: relative; width: min(100%, 300px); padding: 20px 16px 16px; background: linear-gradient(135deg, #f1dfb0, #c5a268 60%, #e8d29e); color: var(--dark); border-radius: 3px; text-align: center; box-shadow: 0 20px 36px -14px rgba(0, 0, 0, .9); border: 2px solid #8c6f3c; }
.placecard small { font: 600 10px var(--ui); letter-spacing: .3em; text-transform: uppercase; color: #6b5026; }
.placecard b { display: block; min-height: 1.3em; font: italic 700 clamp(26px, 6vw, 34px)/1.15 var(--serif); overflow-wrap: anywhere; }
.placecard.set { animation: cardin .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cardin { from { transform: rotate(-5deg) scale(.9); } }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .flabel { font: 600 10px var(--ui); letter-spacing: .24em; text-transform: uppercase; color: #5b4a3a; padding: 0; }
.field input[type="text"], .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid rgba(42, 28, 20, .4); border-radius: 4px; background: #fffaf0; color: var(--dark); font: 500 18px var(--serif); }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--burg); box-shadow: 0 0 0 3px rgba(112, 45, 56, .2); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; place-items: center; text-align: center; min-height: 54px; padding: 8px; border: 1.5px solid rgba(42, 28, 20, .4); border-radius: 4px; background: #fffaf0; font: 600 12px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--burg); border-color: var(--burg); color: var(--ivory); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(42, 28, 20, .45); background: #fffaf0; color: var(--dark); font-size: 22px; line-height: 1; }
.stepper output { min-width: 1.6ch; text-align: center; font: 700 28px var(--serif); }
.err { padding: 10px 12px; border-radius: 4px; background: rgba(163, 48, 31, .12); border-left: 4px solid #a3301f; color: #7a2316; font: 500 16px/1.4 var(--serif); }
.result { display: grid; gap: 12px; }
.result h3 { font: italic 700 clamp(24px, 5vw, 32px)/1.2 var(--serif); }
.chair-note { font: italic 500 17px var(--serif); color: var(--ink2); text-shadow: 0 1px 8px #000; max-width: 34ch; }

@media (prefers-reduced-motion: reduce) {
  .flm, .pulse, .drift, .steam path, .ping, .cue, .qwrap, .cert, .sheet, .placecard.set, #cap.in, #menu-lines text { animation: none !important; }
  .cl, .lid, .pants, .chead, .ceyes, #pchair .chair { transition: none; }
  #stage.deliver #bhop .bhw { animation: none; transform: translateX(330px); }
}
