/* =============================================================================
   Alive · guest experience styles
   One stylesheet, three postures:
     body.web    — website "interactive mode" (desktop + mobile browsers)
     body.phone  — arrived from the kiosk QR (mobile-first, same as web)
     body.kiosk  — 20"w × 36"h portrait lobby screen, top edge ~6 ft off the floor
   Mobile-first; kiosk overrides live at the bottom.
   ========================================================================== */
:root {
  --bg-0: #0e0608;
  --bg-1: #1a0b10;
  --panel: rgba(255, 238, 226, 0.055);
  --panel-2: rgba(255, 238, 226, 0.09);
  --line: rgba(255, 232, 214, 0.13);
  --text: #f8efe7;
  --muted: rgba(248, 239, 231, 0.68);
  --faint: rgba(248, 239, 231, 0.42);
  --wine: #8c2239;
  --wine-hot: #c9405f;
  --amber: #e9a356;
  --gold: #f4cd82;
  --sage: #9fb47e;
  --sky: #7fb4c9;
  --ok: #7ed29b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --tap: 3.25rem;               /* min touch target */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  min-height: 100%; min-height: 100dvh;
  font-family: var(--sans); color: var(--text); background: var(--bg-0);
  line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- atmosphere -- */
/* Slow, cheap "living" background: transformed gradients, no filters (kiosk GPUs). */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, #2a0f18 0%, var(--bg-0) 60%); }
.sky i { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.sky i:nth-child(1) { background: radial-gradient(circle, rgba(201, 64, 95, .45), transparent 62%); left: -30vmax; top: -20vmax; animation: drift1 26s ease-in-out infinite alternate; }
.sky i:nth-child(2) { background: radial-gradient(circle, rgba(233, 163, 86, .32), transparent 60%); right: -35vmax; top: 10vmax; animation: drift2 31s ease-in-out infinite alternate; }
.sky i:nth-child(3) { background: radial-gradient(circle, rgba(127, 180, 201, .18), transparent 60%); left: 0; bottom: -45vmax; animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vmax, 10vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vmax, -12vmax) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
body.calm .sky i { animation-duration: 60s, 70s, 80s; }

/* ---------------------------------------------------------------- orb ---- */
/* The Alive guide. Breathes when idle, brightens when it "speaks", ripples on touch. */
.orb { --s: 64px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6e8 0%, var(--gold) 16%, var(--amber) 34%, var(--wine-hot) 62%, var(--wine) 82%, #3a0b17 100%);
  box-shadow: 0 0 calc(var(--s) * .45) rgba(233, 163, 86, .45), inset -6px -10px 22px rgba(60, 5, 20, .55);
  animation: breathe 4.8s ease-in-out infinite; }
.orb::before { content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 230, 190, .55) 70%, transparent 78% 100%);
  animation: spin 7s linear infinite; mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(244, 205, 130, .5); opacity: 0; }
.orb.speak { animation: breathe 1.6s ease-in-out infinite; }
.orb.ping::after { animation: ripple .9s var(--ease); }
body.calm .orb { animation-duration: 8s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* --------------------------------------------------------------- shell ---- */
.app { position: relative; z-index: 2; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1rem .6rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; letter-spacing: -.01em; }
.brand .orb { --s: 26px; }
.brand small { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); display: block; margin-top: -.15rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; transition: background .2s, transform .15s; }
.pill:active { transform: scale(.96); }
.pill.hot { background: var(--wine-hot); border-color: transparent; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(126, 210, 155, .18); }

.progress { display: flex; gap: .4rem; justify-content: center; padding: .2rem 0 .4rem; }
.progress i { width: 26px; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s, width .4s var(--ease); }
.progress i.on { background: var(--amber); width: 38px; }

.stage { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 1rem calc(1rem + var(--safe-b)); max-width: 640px; width: 100%; margin: 0 auto; }
.scene { flex: none; display: flex; flex-direction: column; gap: 1.1rem; animation: sceneIn .55s var(--ease) both; }
.scene.out { animation: sceneOut .28s ease-in both; pointer-events: none; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes sceneOut { to { opacity: 0; transform: translateY(-12px) scale(.985); } }

/* The guide's line: orb + question. */
.say { display: flex; gap: .9rem; align-items: flex-start; padding-top: .6rem; }
.say .orb { --s: 46px; margin-top: .2rem; }
.say h1, .say h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 6.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; font-variation-settings: "SOFT" 60; }
.say p { color: var(--muted); margin-top: .45rem; font-size: 1rem; }
.say em { font-style: italic; color: var(--gold); }
.type-in { display: inline; }
.type-in .w { display: inline-block; opacity: 0; transform: translateY(.3em); animation: wordIn .5s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.tiles.one { grid-template-columns: 1fr; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .2rem;
  min-height: 6.6rem; padding: .95rem 1rem; text-align: left; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  transition: transform .25s var(--spring), border-color .2s, background .2s, opacity .25s;
  animation: tileIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
.tile .ico { font-size: 1.75rem; line-height: 1; margin-bottom: auto; }
.tile b { font-weight: 650; font-size: 1.02rem; letter-spacing: -.005em; }
.tile span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.tile:active, .tile.picked { transform: scale(.965); border-color: var(--gold); background: linear-gradient(160deg, rgba(233, 163, 86, .22), rgba(201, 64, 95, .14)); }
.tile.picked::after { content: "✓"; position: absolute; top: .7rem; right: .8rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #2a0f18; font-weight: 800; font-size: .85rem; animation: pop .35s var(--spring); }
.tiles.chosen .tile:not(.picked) { opacity: .25; transform: scale(.97); }
.tile.wide { grid-column: 1 / -1; min-height: 4.4rem; flex-direction: row; align-items: center; justify-content: flex-start; gap: .85rem; }
.tile.wide .ico { margin: 0; }
.tile.ghost { background: transparent; border-style: dashed; }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes pop { from { transform: scale(0); } }

/* Chips (quick replies, departures, tangents) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: var(--tap); padding: .7rem 1.05rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; transition: transform .2s var(--spring), background .2s, border-color .2s; animation: tileIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--gold); color: #2a0f18; border-color: transparent; }
.chip.yes { border-color: rgba(126, 210, 155, .5); }
.chip.no { border-color: rgba(201, 64, 95, .5); }
.chip.tan { background: transparent; border-style: dashed; color: var(--gold); }

/* Primary CTA */
.cta { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 3.6rem; padding: .9rem 1.4rem;
  border-radius: 999px; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  background: linear-gradient(135deg, var(--amber), var(--wine-hot)); color: #fff; box-shadow: 0 14px 34px -14px rgba(201, 64, 95, .8);
  transition: transform .2s var(--spring); }
.cta:active { transform: scale(.97); }
.cta.alt { background: var(--panel-2); box-shadow: none; border: 1px solid var(--line); }
.cta[disabled] { opacity: .45; pointer-events: none; }
.row { display: flex; gap: .6rem; }
.row > * { flex: 1; }
.link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; padding: .6rem; align-self: center; }

/* Stepper (group size) */
.stepper { display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding: 1rem 0; }
.stepper button { width: 4.6rem; height: 4.6rem; border-radius: 50%; font-size: 2rem; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s; }
.stepper button:active { transform: scale(.9); }
.stepper output { font-family: var(--serif); font-size: 4.4rem; min-width: 3ch; text-align: center; line-height: 1; }
.stepper small { display: block; text-align: center; color: var(--muted); font-size: .8rem; }

/* Mini calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal .h { text-align: center; font-size: .7rem; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.cal button { aspect-ratio: 1; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.cal button small { font-size: .58rem; color: var(--faint); font-weight: 500; }
.cal button.on { background: var(--gold); color: #2a0f18; }
.cal button[disabled] { opacity: .25; }

/* ------------------------------------------------------- tour reveal ---- */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); animation: heroIn .8s var(--ease) both; }
.hero .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.hero .ph img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
.hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(14, 6, 8, .92)); }
.hero .badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; padding: .35rem .7rem; border-radius: 999px; background: var(--gold); color: #2a0f18; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero .match { position: absolute; top: .9rem; right: .9rem; z-index: 2; padding: .35rem .7rem; border-radius: 999px; background: rgba(14, 6, 8, .7); font-size: .72rem; font-weight: 700; }
.hero .body { position: relative; margin-top: -4.2rem; padding: 0 1.1rem 1.1rem; z-index: 2; display: flex; flex-direction: column; gap: .7rem; }
.hero h3 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.hero .tag { color: var(--gold); font-weight: 600; }
.hero .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--muted); }
.hero .price { font-family: var(--serif); font-size: 1.9rem; }
.hero .price small { font-family: var(--sans); font-size: .72rem; color: var(--faint); display: block; }
.why { display: flex; flex-direction: column; gap: .35rem; }
.why li { list-style: none; display: flex; gap: .55rem; align-items: baseline; font-size: .95rem; animation: tileIn .5s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 450ms); }
.why li::before { content: "✦"; color: var(--gold); font-size: .8rem; }
.alts { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; scrollbar-width: none; }
.alts::-webkit-scrollbar { display: none; }
.altcard { flex: 0 0 72%; scroll-snap-align: start; display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-align: left; }
.altcard img { width: 4.2rem; height: 4.2rem; border-radius: 14px; object-fit: cover; flex: none; }
.altcard b { display: block; font-size: .95rem; } .altcard span { font-size: .78rem; color: var(--muted); }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes kenburns { from { transform: scale(1.12); } }
.label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 700; }

/* --------------------------------------------------------- offer card ---- */
.offer { position: relative; padding: 1.3rem 1.2rem; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(140deg, #3a1420, #23101a 60%); border: 1px solid rgba(244, 205, 130, .35); }
.offer::before { content: ""; position: absolute; width: 18rem; height: 18rem; right: -6rem; top: -8rem; border-radius: 50%; background: radial-gradient(circle, rgba(244, 205, 130, .35), transparent 65%); }
.offer h3 { position: relative; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.offer p { position: relative; color: var(--muted); margin-top: .5rem; }
.offer .perk { position: relative; display: inline-flex; gap: .5rem; align-items: center; margin-top: .9rem; padding: .55rem .9rem; border-radius: 999px; background: var(--gold); color: #2a0f18; font-weight: 800; font-size: .88rem; }
.terms { margin-top: .9rem; display: flex; flex-direction: column; gap: .3rem; font-size: .76rem; color: var(--faint); position: relative; }
.terms li { list-style: none; padding-left: 1rem; position: relative; } .terms li::before { content: "·"; position: absolute; left: .2rem; }

/* ------------------------------------------------------ host messages ---- */
.convo { display: flex; flex-direction: column; gap: .9rem; padding-bottom: .5rem; }
.msg-host { display: flex; gap: .75rem; align-items: flex-start; animation: sceneIn .5s var(--ease) both; }
.msg-host .orb { --s: 38px; }
.msg-host .card { flex: 1; padding: 1rem 1.1rem; border-radius: 6px var(--r) var(--r) var(--r); background: var(--panel-2); border: 1px solid var(--line); }
.msg-host .who { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .35rem; }
.msg-host .txt { font-size: 1.08rem; line-height: 1.45; }
.msg-host .chips { margin-top: .8rem; }
.msg-host.system .card { background: transparent; border-style: dashed; }
.msg-guest { align-self: flex-end; max-width: 82%; padding: .65rem 1rem; border-radius: var(--r) var(--r) 6px var(--r); background: var(--wine); font-size: .98rem; animation: sceneIn .35s var(--ease) both; }
.typing { display: inline-flex; gap: 4px; padding: .5rem .2rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.composer { position: sticky; bottom: 0; display: flex; gap: .5rem; align-items: flex-end; padding: .6rem 0 calc(.4rem + var(--safe-b)); background: linear-gradient(transparent, var(--bg-0) 30%); }
.composer textarea { flex: 1; min-height: 3.2rem; max-height: 8rem; resize: none; padding: .85rem 1rem; border-radius: 22px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 1rem; }
.composer .send { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--wine-hot); font-size: 1.2rem; flex: none; }
.preds { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.preds .chip { white-space: nowrap; flex: none; }
.preds::-webkit-scrollbar { display: none; }

/* Inline fields on web/phone (native keyboard with the right mode) */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.field input { min-height: 3.4rem; padding: .8rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 1.1rem; }
.field input:focus { border-color: var(--gold); outline: none; }
.field .fake { min-height: 3.4rem; padding: .8rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); font-size: 1.15rem; text-align: left; display: flex; align-items: center; gap: .6rem; }
.field .fake .ph { color: var(--faint); }
.field .fake::after { content: "⌨"; margin-left: auto; color: var(--faint); }

/* QR card (phone handoff / pay on phone) */
.qrcard { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--r); background: #fff8ef; color: #2a0f18; }
.qrcard .qr { width: 9rem; height: 9rem; flex: none; }
.qrcard .qr svg { width: 100%; height: 100%; }
.qrcard b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; display: block; line-height: 1.1; }
.qrcard span { font-size: .85rem; opacity: .75; }

/* Celebration */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

.toast { position: fixed; left: 50%; bottom: calc(1.2rem + var(--safe-b)); transform: translateX(-50%); z-index: 70; padding: .8rem 1.2rem; border-radius: 999px; background: #fff3e4; color: #2a0f18; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); animation: sceneIn .3s var(--ease); }

/* Sheet (Xola fallback / demo) */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; background: rgba(8, 3, 5, .6); animation: fade .2s; }
.sheet .panel { background: var(--bg-1); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.4rem 1.2rem calc(1.4rem + var(--safe-b)); display: flex; flex-direction: column; gap: .9rem; animation: up .35s var(--ease); max-width: 640px; width: 100%; margin: 0 auto; border: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: 0; } }

.xola-holder { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ------------------------------------------------- web: wider screens ---- */
@media (min-width: 760px) {
  .stage { max-width: 720px; padding-top: 1rem; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .say h1, .say h2 { font-size: 2.7rem; }
  .altcard { flex-basis: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =============================================================================
   KIOSK — portrait 20"w × 36"h, top edge ≈ 72" off the floor.
   Vertical zones (percent of screen height, measured from the top edge):
     0–22%   Carousel band — sits at standing eye level (≈ 64–72" high)
     22–26%  Majesty tour ticker
     26–82%  Alive stage — the comfortable reach zone (≈ 42–63")
     ~44–76% on-screen keyboard docks HERE, never at the bottom edge
     82–100% QR dock — phone-height for scanning (≈ 36–42")
   Sizes use vh so the same CSS fits any portrait panel resolution.
   ========================================================================== */
body.kiosk { overflow: hidden; height: 100vh; user-select: none; -webkit-user-select: none; cursor: default; }
body.kiosk html, html.kiosk { font-size: clamp(16px, 1.42vh, 34px); }
body.kiosk .app { height: 100vh; min-height: 0; }
body.kiosk .topbar { display: none; }

.band { display: none; }
body.kiosk .band { display: flex; flex-direction: column; justify-content: space-between; height: 20vh; padding: 3.2vh 4.5vw 2vh; position: relative; z-index: 2;
  background: linear-gradient(180deg, #f7efe3, #efe3d0); color: #2a160e; overflow: hidden; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.4vh; background: radial-gradient(60% 100% at 50% 100%, var(--bg-0), transparent 70%); opacity: .0; }
.band .kick { font-size: 1.5vh; letter-spacing: .3em; text-transform: uppercase; opacity: .65; font-weight: 700; }
.band h1 { font-family: var(--serif); font-weight: 400; font-size: 6vh; line-height: .95; letter-spacing: -.025em; font-style: italic; color: #4a1220; }
.band .tagline { font-size: 1.7vh; opacity: .75; margin-top: .6vh; }
.band .feature { display: flex; gap: 2vw; align-items: flex-end; justify-content: space-between; }
.band .feature .rot { position: relative; flex: 1; height: 5.2vh; }
.band .feature .rot div { position: absolute; inset: 0; opacity: 0; transform: translateY(1vh); transition: opacity .8s, transform .8s var(--ease); }
.band .feature .rot div.on { opacity: 1; transform: none; }
.band .feature b { display: block; font-size: 2vh; } .band .feature span { font-size: 1.6vh; opacity: .75; }
.band .clock { text-align: right; font-family: var(--serif); font-size: 3.2vh; line-height: 1; }
.band .clock small { display: block; font-family: var(--sans); font-size: 1.3vh; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-top: .4vh; }
.band .deco { position: absolute; right: -6vh; top: -6vh; width: 26vh; height: 26vh; border-radius: 50%; border: 1px solid rgba(74, 18, 32, .15); }
.band .deco::after { content: ""; position: absolute; inset: 3vh; border-radius: 50%; border: 1px dashed rgba(74, 18, 32, .18); animation: spin 90s linear infinite; }

.ticker { display: none; }
body.kiosk .ticker { display: flex; align-items: center; height: 4vh; overflow: hidden; background: var(--wine); position: relative; z-index: 2; white-space: nowrap; }
.ticker .lbl { position: relative; z-index: 2; flex: none; height: 100%; display: flex; align-items: center; gap: .8vh; padding: 0 2.4vw; background: var(--gold); color: #2a0f18; font-weight: 800; font-size: 1.45vh; letter-spacing: .14em; text-transform: uppercase; }
.ticker .lbl img { height: 2.4vh; filter: brightness(0) saturate(100%) invert(9%) sepia(37%) saturate(2400%) hue-rotate(320deg); }
.ticker .lane { display: inline-flex; animation: tick 48s linear infinite; }
.ticker .run { display: inline-flex; gap: 5vw; padding-left: 5vw; font-size: 1.7vh; font-weight: 600; }
.ticker .run b { color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

body.kiosk .stage { max-width: none; height: 53vh; padding: 2.4vh 6vw 1vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
body.kiosk .stage::-webkit-scrollbar { display: none; }
body.kiosk .progress { position: relative; z-index: 2; padding-top: 1.2vh; }
body.kiosk .say h1, body.kiosk .say h2 { font-size: 4.2vh; }
body.kiosk .say p { font-size: 1.9vh; }
body.kiosk .say .orb { --s: 6vh; }
body.kiosk .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4vh; }
body.kiosk .tile { min-height: 11vh; padding: 1.8vh 2.2vh; border-radius: 2.6vh; }
body.kiosk .tile .ico { font-size: 4vh; }
body.kiosk .tile b { font-size: 2.2vh; } body.kiosk .tile span { font-size: 1.55vh; }
body.kiosk .tile.wide { min-height: 7.5vh; }
body.kiosk .chip { min-height: 6vh; padding: 1.4vh 2.6vh; font-size: 1.9vh; }
body.kiosk .cta { min-height: 7vh; font-size: 2.2vh; }
body.kiosk .hero .ph { aspect-ratio: 16/8.5; }
body.kiosk .hero h3 { font-size: 4.6vh; } body.kiosk .hero .price { font-size: 3.6vh; }
body.kiosk .why li { font-size: 1.9vh; } body.kiosk .hero .meta { font-size: 1.6vh; }
body.kiosk .msg-host .txt { font-size: 2.2vh; }
body.kiosk .msg-guest { font-size: 2vh; }
body.kiosk .altcard { flex-basis: 48%; }
body.kiosk .stepper button { width: 9vh; height: 9vh; font-size: 4vh; }
body.kiosk .stepper output { font-size: 9vh; }
body.kiosk .cal button { border-radius: 1.6vh; font-size: 2vh; }
body.kiosk .composer { display: none; }

/* Corner controls inside the reach zone */
.kctl { display: none; }
body.kiosk .kctl { display: flex; align-items: center; justify-content: space-between; gap: 1.4vw; position: relative; z-index: 3; height: 7vh; padding: 0 6vw; border-top: 1px solid var(--line); }
body.kiosk .kctl .pill { min-height: 5.2vh; font-size: 1.6vh; padding: 0 1.8vh; white-space: nowrap; }
body.kiosk .kctl .pill[data-act=host] { flex: 1; justify-content: center; }
body.kiosk .kctl .pill.reach { padding: 0 1.8vh; font-size: 2.2vh; }
body.kiosk.attract-on .kctl, body.kiosk.attract-on .progress { visibility: hidden; }

/* QR dock */
.dock { display: none; }
body.kiosk .dock { display: flex; align-items: center; gap: 3vw; height: 16vh; padding: 2vh 6vw; position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(14, 6, 8, 0), rgba(14, 6, 8, .85) 30%); border-top: 1px solid var(--line); }
.dock .qr { width: 12vh; height: 12vh; flex: none; padding: 1vh; border-radius: 1.6vh; background: #fff; }
.dock .qr svg { width: 100%; height: 100%; display: block; }
.dock h4 { font-family: var(--serif); font-weight: 400; font-size: 3vh; line-height: 1.05; }
.dock p { color: var(--muted); font-size: 1.7vh; margin-top: .6vh; max-width: 40ch; }
.dock .arrow { margin-left: auto; font-size: 5vh; color: var(--gold); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-1.2vh); } }

/* Attract (idle) */
.attract { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; text-align: center; padding: 4vh 8vw; cursor: pointer; animation: fade .6s; }
.attract .orb { --s: 22vh; }
.attract .k { font-size: 1.6vh; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.attract h2 { font-family: var(--serif); font-weight: 400; font-size: 5.4vh; line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; }
.attract .rot { min-height: 3vh; color: var(--muted); font-size: 2vh; transition: opacity .5s; }
.attract .go { display: inline-flex; gap: 1.2vh; align-items: center; padding: 1.8vh 4vh; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 2vh; animation: breathe 2.6s ease-in-out infinite; }
.attract .hand { font-size: 3vh; }
body:not(.kiosk) .attract { position: relative; min-height: 70vh; }
body:not(.kiosk) .attract .orb { --s: 140px; }
body:not(.kiosk) .attract h2 { font-size: 2.4rem; }
body:not(.kiosk) .attract .k { font-size: .72rem; }
body:not(.kiosk) .attract .go { font-size: 1rem; padding: 1rem 1.6rem; }

/* Idle warning */
.idle { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8, 3, 5, .72); animation: fade .25s; }
.idle .box { text-align: center; padding: 4vh 6vw; border-radius: 3vh; background: var(--bg-1); border: 1px solid var(--line); }
.idle h3 { font-family: var(--serif); font-weight: 400; font-size: 4vh; } .idle p { color: var(--muted); font-size: 2vh; margin: 1vh 0 3vh; }
.idle .n { font-family: var(--serif); font-size: 8vh; color: var(--gold); }

/* Kiosk: progress floats so the vh budget stays exactly 100 */
body.kiosk .progress { position: absolute; top: 24.6vh; left: 0; right: 0; z-index: 3; padding: 0; }
body.kiosk .progress i { height: .45vh; width: 3vh; } body.kiosk .progress i.on { width: 4.6vh; }
body.kiosk .stage { padding-top: 3vh; padding-bottom: 2vh; }

.scene > * { flex-shrink: 0; }

/* Low-reach mode (♿ button): ADA forward reach tops out at 48" — on this unit
   that is the bottom ~third of the screen. Collapse the band and float the
   interaction down so every target sits at or below ~48". */
body.kiosk.low .band { height: 0; padding: 0; overflow: hidden; }
body.kiosk.low .ticker { height: 3vh; }
body.kiosk.low .progress { top: 48vh; }
body.kiosk.low .stage { height: 88vh; padding-top: 50vh; }   /* first tap targets land at ≈48″ */
body.kiosk.low .dock { height: 0; padding: 0; overflow: hidden; border: 0; }
body.kiosk.low .kctl { height: 9vh; }
.osk.reach.low { top: 52vh; }
.osk.reach.low .keys { height: 30vh; }

/* Kiosk attract fits the stage; primary CTA pins to the bottom of the stage while scrolling */
body.kiosk .attract { gap: 2vh; padding: 2vh 8vw; }
body.kiosk .attract .orb { --s: 14vh; }
body.kiosk .attract h2 { font-size: 4.8vh; }
body.kiosk .stick { position: sticky; bottom: -2vh; z-index: 3; padding: 1.5vh 0 2vh; background: linear-gradient(rgba(14, 6, 8, 0), var(--bg-0) 45%); }
body.kiosk .hero .ph { aspect-ratio: 16/7; }
body.kiosk.low .app::before { content: "♿  Controls lowered for easier reach · tap ♿ again to restore"; position: absolute; left: 6vw; right: 6vw; top: 18vh; z-index: 1; text-align: center; color: var(--faint); font-size: 2vh; }

/* ===================================================== checkout + invoice == */
.loading-line { color: var(--muted); font-size: .95rem; animation: blink 1.4s infinite; }
.chip[disabled] { opacity: .35; text-decoration: line-through; pointer-events: none; }
.chip small.left { font-weight: 500; opacity: .75; }
.stepper.sm { justify-content: flex-start; gap: 1rem; padding: .2rem 0; }
.stepper.sm button { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; }
.stepper.sm output { font-size: 2.6rem; min-width: 2ch; }
.err { color: #ffb0a8; font-size: .9rem; min-height: 1.2em; }
.err:empty { min-height: 0; }
.hint { font-size: .8rem; color: var(--faint); margin-top: -.6rem; }
.field textarea { min-height: 5rem; padding: .8rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; resize: vertical; }
.field textarea:focus { border-color: var(--gold); outline: none; }
.agree { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.agree input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; accent-color: var(--amber); flex: none; }
.agree span { display: flex; flex-direction: column; gap: .2rem; }
.agree small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sumline { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding: 0 .2rem .6rem; }
.sumline b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.sumline span { color: var(--muted); font-size: .88rem; }
.stick { position: sticky; bottom: 0; z-index: 3; padding: .8rem 0 calc(.6rem + var(--safe-b)); background: linear-gradient(rgba(14, 6, 8, 0), var(--bg-0) 35%); display: flex; flex-direction: column; }
.bill { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.1rem; font-variant-numeric: tabular-nums; }
.bill .who { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.bill .who span { color: var(--muted); font-size: .86rem; }
.bill .ln { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .95rem; }
.bill .ln span:first-child { color: var(--muted); min-width: 0; }
.bill .ln.tot { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .6rem; font-weight: 700; }
.bill .ln.tot span:first-child { color: var(--text); }
.bill .ln.due { color: var(--gold); font-weight: 700; }
.bill .ln.due span:first-child { color: var(--gold); }
.bill .ln.paid span:first-child { color: var(--sage); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
.inv-head b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3rem; display: block; }
.inv-head small { font-size: .75rem; color: var(--faint); display: block; }
.inv-ref { text-align: right; font-weight: 800; letter-spacing: .06em; }
.spill { align-self: flex-start; margin-top: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--panel-2); }
.spill.st-paid, .spill.st-completed { background: rgba(126, 210, 155, .18); color: var(--ok); }
.spill.st-confirmed { background: rgba(244, 205, 130, .18); color: var(--gold); }
.spill.st-balance_failed, .spill.st-cancelled { background: rgba(201, 64, 95, .22); color: #ff9fb0; }
.refbig { margin-top: .6rem; font-family: var(--serif); font-size: 2rem; letter-spacing: .08em; }
.refbig small { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.paybox { min-height: 3rem; }
.row.actions { flex-wrap: wrap; }
.row.stick, body.kiosk .row.stick { background: transparent; }   /* owner, 2026-10-27: no background behind a lone Book button */
a.cta { text-decoration: none; }

@media print {
  body { background: #fff !important; color: #1b1210 !important; }
  .sky, .grain, .topbar, .progress, .kctl, .dock, .band, .ticker, .say .orb, .paybox, .cta, .link, .label, .err, .composer, .toast { display: none !important; }
  .stage { max-width: none; padding: 0; }
  .say h2 { color: #1b1210; font-size: 20pt; } .say p { color: #555; }
  .bill { background: #fff; border-color: #ccc; color: #1b1210; }
  .bill .ln span:first-child, .bill .who span, .inv-head small { color: #444 !important; }
  .bill .ln.due, .bill .ln.due span:first-child { color: #6b1e2c !important; }
}

/* ♿ low-reach mode: QR moves to the top so the visitor can continue on their phone */
body.kiosk.low .app::before { content: none; }
body.kiosk.low .dock { position: absolute; top: 0; left: 0; right: 0; height: 22vh; padding: 3vh 6vw; overflow: visible; z-index: 4; border: 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1a0b10, rgba(14, 6, 8, .9)); }
body.kiosk.low .dock .qr { width: 15vh; height: 15vh; }
body.kiosk.low .dock .arrow { display: none; }
body.kiosk.low .ticker { position: absolute; top: 22vh; left: 0; right: 0; }
body.kiosk.low .stage { padding-top: 48vh; height: 88vh; }

/* ======================================================= terms + review == */
.bill .ln.disc span { color: var(--sage) !important; }
.hint.ok { color: var(--ok); }
.terms-panel { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border-radius: var(--r-lg); background: #fff8ef; color: #2a160e; }
.terms-panel .tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-bottom: .5rem; border-bottom: 1px solid #ead9c4; }
.terms-panel .tp-head b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.terms-panel .tp-head small { color: #7a6658; font-size: .72rem; }
.tp-clause { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 12px; background: #fff; border: 1px solid #ead9c4; cursor: pointer; }
.tp-clause.req { border-left: 4px solid #8c2239; }
.tp-clause input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; flex: none; accent-color: #8c2239; }
.tp-clause span { display: flex; flex-direction: column; gap: .15rem; }
.tp-clause b { font-size: .95rem; } .tp-clause b em { font-style: normal; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #8c2239; margin-left: .3rem; }
.tp-text { font-size: .9rem; line-height: 1.45; color: #3b2a20; }
.terms-panel .field label { color: #7a6658; }
.terms-panel input.sig { min-height: 3.2rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid #c9b49c; background: #fff; color: #1c0d10; font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.terms-panel .hint { color: #7a6658; margin-top: -.3rem; }
.tp-stamp { font-size: .75rem; color: #7a6658; text-align: right; }
