/* ============================================================
   Atrium — lobby kiosk
   One decision per screen. Nothing smaller than a thumb.
   ============================================================ */

html, body { height: 100%; overflow: hidden; }

body.kiosk {
  background:
    radial-gradient(1100px 700px at 88% -10%, #FFFDF8 0%, transparent 62%),
    radial-gradient(900px 620px at -8% 108%, #EDF2EF 0%, transparent 58%),
    var(--paper);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.k {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ------------------------------------------------------------------ header */

.k-head {
  display: flex; align-items: center; gap: 20px;
  padding: 18px clamp(20px, 3.4vw, 46px) 0;
}
.k-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-glyph {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--green-mid), var(--green-2));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(13,49,40,.28);
}
.k-pname { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.k-pcity { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.k-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.k-tool {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding-inline: 15px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.k-tool:hover { background: #fff; border-color: var(--line-2); }
.k-tool.on { background: var(--green); border-color: var(--green); color: #fff; }
.k-tool svg { flex: none; }

.k-langs { display: flex; gap: 3px; padding: 3px; background: rgba(255,255,255,.7);
  border: 1px solid var(--line); border-radius: var(--r-pill); backdrop-filter: blur(8px); }
.k-lang {
  height: 36px; padding-inline: 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.k-lang.on { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- progress */

.k-rail {
  display: flex; gap: 6px; align-items: center;
  padding: 16px clamp(20px, 3.4vw, 46px) 0;
}
.k-rail.hidden { display: none; }
.k-seg { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.k-seg::after {
  content: ""; position: absolute; inset: 0; transform-origin: left center;
  transform: scaleX(0); background: var(--green);
  transition: transform .55s var(--ease-out);
}
html[dir="rtl"] .k-seg::after { transform-origin: right center; }
.k-seg.done::after { transform: scaleX(1); }
.k-seg.now::after { transform: scaleX(1); background: linear-gradient(90deg, var(--green), var(--green-mid)); }
.k-steplabel {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-inline-start: 14px; white-space: nowrap;
}

/* ------------------------------------------------------------------- stage */

.k-stage {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(16px, 2.4vh, 34px) clamp(20px, 3.4vw, 46px);
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
/* auto margins centre the step when it fits and collapse when it does not,
   so tall content scrolls from the top instead of being clipped. */
.step.on { margin-block: auto; }
.k-stage::-webkit-scrollbar { width: 10px; }
.k-stage::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px;
  border: 3px solid var(--paper); }
.k-stage::-webkit-scrollbar-track { background: transparent; }
body.lowered .step.on { margin-block-start: auto; margin-block-end: 0; }
body.lowered .k-stage { padding-block-end: 8px; }
body.lowered .k-title { font-size: clamp(26px, 3.2vw, 38px); }
body.lowered .k-sub { display: none; }
body.lowered .attract-hero { padding-block: 0; }

.step { display: none; flex-direction: column; min-height: 0; }
.step.on { display: flex; animation: riseIn .42s var(--ease-out) both; }
.step[data-step="attract"].on { flex: 1 1 auto; }

.k-head-block { margin-block-end: clamp(10px, 1.9vh, 26px); max-width: 900px; }
.k-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -.028em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
}
.k-title em { font-style: normal; color: var(--green); }
.k-sub { font-size: clamp(15px, 1.35vw, 19px); color: var(--muted); margin-block-start: 12px; max-width: 62ch; }

/* ------------------------------------------------------------------ footer */

.k-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(20px, 3.4vw, 46px) clamp(18px, 2.4vh, 30px);
  border-block-start: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247,244,238,0), rgba(247,244,238,.9) 40%);
}
.k-foot.hidden { display: none; }
.k-back {
  display: inline-flex; align-items: center; gap: 9px;
  height: 60px; padding-inline: 26px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; color: var(--ink-2);
  border: 1.5px solid var(--line-2); background: rgba(255,255,255,.6);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.k-back:hover { background: #fff; border-color: var(--ink-2); }
.k-back svg { transition: transform .2s var(--ease); }
.k-back:hover svg { transform: translateX(-3px); }
html[dir="rtl"] .k-back svg { transform: scaleX(-1); }
html[dir="rtl"] .k-back:hover svg { transform: scaleX(-1) translateX(-3px); }

.k-cta {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 68px; min-width: 260px; padding-inline: 40px; border-radius: var(--r-pill);
  font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  background: var(--green); color: #fff;
  box-shadow: 0 4px 14px rgba(13,49,40,.26), 0 16px 34px rgba(13,49,40,.14);
  transition: transform .16s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease), opacity .2s;
}
.k-cta:hover { background: var(--green-2); box-shadow: 0 6px 20px rgba(13,49,40,.32), 0 22px 46px rgba(13,49,40,.18); }
.k-cta:active { transform: translateY(2px); }
.k-cta[disabled] { opacity: .35; pointer-events: none; box-shadow: none; }
.k-cta svg { transition: transform .2s var(--ease); }
.k-cta:hover svg { transform: translateX(4px); }
html[dir="rtl"] .k-cta svg { transform: scaleX(-1); }
html[dir="rtl"] .k-cta:hover svg { transform: scaleX(-1) translateX(4px); }
.k-skip { height: 60px; padding-inline: 22px; border-radius: var(--r-pill); font-size: 15px;
  font-weight: 600; color: var(--muted); }
.k-skip:hover { background: rgba(23,21,15,.05); color: var(--ink); }

.k-foot-note { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 7px; }

/* Running total, pinned in the action bar so it survives any screen size. */
.k-total {
  display: flex; align-items: baseline; gap: 10px; margin-inline-start: auto;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.k-total.hidden { display: none; }
.k-total .lab { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; }
.k-total .amt { font-size: 20px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.k-total .cur { font-size: 12px; font-weight: 600; color: var(--muted); }
.k-total + .k-cta { margin-inline-start: 14px; }

/* ----------------------------------------------------------------- attract */

.attract {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: clamp(24px, 4vw, 70px);
}
.attract-hero { max-width: 760px; }
.attract-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7.4vw, 104px); line-height: .96; letter-spacing: -.04em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 120;
}
.attract-title strong { font-weight: 600; color: var(--green); display: block; }
.attract-sub { font-size: clamp(17px, 1.6vw, 22px); color: var(--ink-2); margin-block-start: 22px; max-width: 46ch; }
.attract-actions { display: flex; gap: 16px; margin-block-start: clamp(24px, 4vh, 48px); flex-wrap: wrap; }
.big-action {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 34px 22px 26px; border-radius: var(--r-lg);
  background: var(--green); color: #fff; min-width: 290px;
  box-shadow: 0 6px 18px rgba(13,49,40,.24), 0 22px 50px rgba(13,49,40,.16);
  transition: transform .2s var(--ease), box-shadow .26s var(--ease);
}
.big-action:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(13,49,40,.3), 0 30px 66px rgba(13,49,40,.2); }
.big-action:active { transform: translateY(0); }
.big-action.alt { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2);
  box-shadow: var(--sh-2); }
.big-action.alt:hover { border-color: var(--ink-2); }
.ba-icon {
  width: 54px; height: 54px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.16);
}
.big-action.alt .ba-icon { background: var(--green-soft); color: var(--green); }
.ba-text { text-align: start; }
.ba-title { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.ba-sub { display: block; font-size: 13px; opacity: .78; margin-block-start: 3px; }

.attract-art { position: relative; height: 78%; min-height: 340px; display: grid; place-items: center; }
.keycard {
  position: absolute; width: min(340px, 78%); aspect-ratio: 1.586;
  border-radius: 20px; padding: 24px;
  background: linear-gradient(145deg, var(--green-2) 0%, var(--green) 48%, #17564a 100%);
  color: #fff; box-shadow: 0 24px 60px rgba(13,49,40,.34), inset 0 1px 0 rgba(255,255,255,.16);
  display: flex; flex-direction: column; justify-content: space-between;
  animation: floatCard 7s ease-in-out infinite;
}
.keycard::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 46%, transparent 60%);
  background-size: 240% 100%; animation: sheen 5.5s linear infinite;
}
.keycard.behind { transform: rotate(-9deg) translate(-34px, 26px); opacity: .34;
  filter: saturate(.55) blur(.4px); animation-delay: -3s; }
.keycard.behind2 { transform: rotate(6deg) translate(30px, -30px); opacity: .16;
  filter: saturate(.4) blur(1px); animation-delay: -5s; }
.kc-brand { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.kc-chip { width: 40px; height: 30px; border-radius: 6px;
  background: linear-gradient(140deg, #E8CF92, #B99442); opacity: .92; }
.kc-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; opacity: .78; }
@keyframes floatCard {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* -------------------------------------------------------------- the finder */

.finder { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(20px, 3vw, 46px); align-items: start; }
.f-tabs { display: flex; gap: 8px; margin-block-end: 22px; flex-wrap: wrap; }
.f-tab {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding-inline: 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.66); border: 1.5px solid var(--line);
  transition: all .2s var(--ease);
}
.f-tab:hover { border-color: var(--line-2); background: #fff; }
.f-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-pane { display: none; }
.f-pane.on { display: block; animation: fadeIn .3s var(--ease) both; }

.bigfield {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 2px solid var(--line-2); border-radius: var(--r-md);
  padding: 6px 6px 6px 22px; box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bigfield:focus-within, .bigfield.armed { border-color: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
/* A booking reference and an email address are Latin strings: keep them
   reading left-to-right even when the rest of the screen is Arabic. */
html[dir="rtl"] .bigfield { direction: ltr; padding: 6px 22px 6px 6px; }
html[dir="rtl"] .bigfield .clear { order: -1; }
html[dir="rtl"] .kb { direction: ltr; }
.bigfield .prefix {
  font-family: var(--font-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500;
  color: var(--faint); letter-spacing: .04em;
}
.bigfield input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: .06em;
  padding-block: 16px;
}
.bigfield input.email { font-family: var(--font-body); letter-spacing: 0; font-weight: 500; text-transform: none; }
.bigfield input.code { font-family: var(--font-mono); text-transform: uppercase; }
.bigfield input::placeholder { color: var(--line-2); letter-spacing: .04em; }
.bigfield .clear {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--faint);
}
.bigfield .clear:hover { background: var(--paper-2); color: var(--ink); }

/* on-screen keyboard — a kiosk has no keys of its own */
.kb { display: flex; flex-direction: column; gap: 8px; margin-block-start: 18px; }
.kb-row { display: flex; gap: 8px; justify-content: center; }
.kb-key {
  min-width: clamp(40px, 4.4vw, 52px); height: clamp(42px, 5.6vh, 56px);
  padding-inline: 10px; border-radius: 12px;
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 600;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1.5px 0 var(--line-2);
  transition: transform .1s var(--ease), background .14s var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
}
.kb-key:hover { background: var(--paper-2); }
.kb-key:active { transform: translateY(2px); box-shadow: none; background: var(--green-soft); }
.kb-key.wide { min-width: 96px; }
.kb-key.xwide { flex: 1; max-width: 260px; }
.kb-key.util { background: var(--paper-2); color: var(--ink-2); font-size: 14px; }
.kb-key.go { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 1.5px 0 var(--green-2); }
body.lowered .kb-key { height: 48px; min-width: 46px; font-size: 16px; }

/* scanner */
.scanbox {
  position: relative; width: 100%; aspect-ratio: 4/3; max-height: 46vh;
  border-radius: var(--r-lg); overflow: hidden;
  background: #12100C; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--sh-2);
}
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scan-reticle { position: absolute; inset: 12%; pointer-events: none; }
.scan-reticle span {
  position: absolute; width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.9);
  border-radius: 6px;
}
.scan-reticle span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-reticle span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-reticle span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-reticle span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scan-line {
  position: absolute; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #7BD3B4, transparent);
  box-shadow: 0 0 14px rgba(123,211,180,.8);
  animation: scanSweep 2.4s var(--ease) infinite;
}
@keyframes scanSweep { 0%,100% { top: 16%; } 50% { top: 84%; } }
.scan-placeholder { color: rgba(255,255,255,.6); text-align: center; padding: 30px; }

/* results / errors */
.f-msg {
  display: flex; align-items: center; gap: 12px; margin-block-start: 16px;
  padding: 14px 18px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  animation: riseIn .3s var(--ease-out) both;
}
.f-msg.err { background: var(--crit-soft); color: var(--crit); }
.f-msg.ok { background: var(--good-soft); color: var(--good); }
.f-msg.busy { background: var(--paper-2); color: var(--ink-2); }

.f-aside { width: min(320px, 30vw); }
.helper-card {
  background: linear-gradient(160deg, #fff, var(--paper));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--sh-1);
}
.helper-title { font-size: 13px; font-weight: 700; letter-spacing: .01em; margin-block-end: 10px; }
.helper-body { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.helper-mock {
  margin-block-start: 16px; padding: 14px; border-radius: var(--r-sm);
  background: #fff; border: 1px dashed var(--line-2); text-align: center;
}
.helper-mock .lbl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.helper-mock .val { font-family: var(--font-mono); font-size: 19px; font-weight: 600; letter-spacing: .1em; margin-block-start: 5px; }

/* ------------------------------------------------------------ option cards */

.opts { display: grid; gap: 14px; padding-block-start: 12px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .opts-3 { grid-template-columns: 1fr 1fr; } }

.opt {
  position: relative; text-align: start;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 18px; box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .24s var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.opt:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.opt.on { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft), var(--sh-2); }
.opt-check {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2);
  display: grid; place-items: center; color: transparent;
  transition: all .2s var(--ease);
}
.opt.on .opt-check { background: var(--green); border-color: var(--green); color: #fff; }
.opt-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  padding-inline-end: 38px; line-height: 1.15; }
.opt-blurb { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.opt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-price { margin-block-start: auto; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.opt-amount { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.opt-amount .cur { font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-end: 4px; }
.opt-per { font-size: 12.5px; color: var(--muted); }
.opt-was { font-size: 12.5px; color: var(--faint); text-decoration: line-through; }
.opt-flag {
  position: absolute; inset-block-start: -11px; inset-inline-start: 18px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brass); color: #fff; box-shadow: 0 2px 8px rgba(162,128,58,.3);
}

.opt-keep {
  background: transparent; border-style: dashed; box-shadow: none;
  justify-content: center; align-items: center; text-align: center; gap: 6px;
}
.opt-keep:hover { background: rgba(255,255,255,.5); }
.opt-keep.on { background: var(--card); border-style: solid; }

/* services list */
.svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 900px) { .svcs { grid-template-columns: 1fr; } }
.svc {
  display: flex; align-items: center; gap: 16px; text-align: start;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px 14px 14px; box-shadow: var(--sh-1);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.svc:hover { border-color: var(--line-2); transform: translateY(-1px); }
.svc.on { border-color: var(--green); background: linear-gradient(0deg, var(--green-soft), var(--green-soft)), #fff; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.svc.on .svc-icon { background: var(--green); color: #fff; }
.svc-body { flex: 1; min-width: 0; }
.svc-name { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.svc-blurb { display: block; font-size: 12.5px; color: var(--muted); margin-block-start: 2px; }
.svc-price { text-align: end; flex: none; }
.svc-amt { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.svc-unit { display: block; font-size: 11px; color: var(--muted); }
.svc-tick {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); flex: none;
  display: grid; place-items: center; color: transparent; transition: all .18s var(--ease);
}
.svc.on .svc-tick { background: var(--green); border-color: var(--green); color: #fff; }

/* ------------------------------------------------------------ stay summary */

.stay-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(18px, 2.6vw, 34px); align-items: start; }
@media (max-width: 1000px) { .stay-grid { grid-template-columns: 1fr; } }
.stay-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; }
.stay-head {
  padding: 22px 26px; background: linear-gradient(150deg, var(--green-2), var(--green));
  color: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.stay-guest { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.stay-code { font-family: var(--font-mono); font-size: 12.5px; opacity: .72; letter-spacing: .1em; margin-block-start: 4px; }
.stay-tier {
  padding: 5px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
}
.stay-body { display: grid; grid-template-columns: repeat(4, 1fr); }
.stay-cell { padding: 18px 22px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
.stay-cell:nth-child(4n) { border-inline-end: 0; }
.stay-cell .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stay-cell .val { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-block-start: 5px; }
.stay-cell .sub { font-size: 12px; color: var(--muted); margin-block-start: 2px; }
.stay-room { padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.stay-room-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; flex: none; }

.dates {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  background: var(--paper); border-block-end: 1px solid var(--line);
}
.date-blk { text-align: center; }
.date-day { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.date-mon { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-block-start: 4px; }
.date-line { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.date-line span {
  position: absolute; inset-block-start: -11px; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding-inline: 10px; font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}

/* basket */
.basket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-1); position: sticky; top: 0; }
.basket-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-block-end: 14px; }
.basket-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px;
  border-block-end: 1px dashed var(--line); font-size: 14px; animation: riseIn .3s var(--ease-out) both; }
.basket-line:last-of-type { border-block-end: 0; }
.basket-line .lab { color: var(--ink-2); }
.basket-line .det { font-size: 11.5px; color: var(--faint); }
.basket-line .amt { font-weight: 650; white-space: nowrap; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline;
  margin-block-start: 14px; padding-block-start: 14px; border-block-start: 2px solid var(--ink); }
.basket-total .lab { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.basket-total .amt { font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.basket-empty { font-size: 13.5px; color: var(--faint); padding-block: 10px; }

/* ------------------------------------------------------------------ id scan */

.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 34px); align-items: start; }
@media (max-width: 1000px) { .id-grid { grid-template-columns: 1fr; } }
.doc-bay {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #1B1913, #0E0D09);
  aspect-ratio: 1.5; display: grid; place-items: center;
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255,255,255,.07);
  /* keep the scanner bay from eating a portrait screen */
  max-width: min(100%, calc(26vh * 1.5)); margin-inline: auto; width: 100%;
}
.doc-sheet {
  width: 74%; aspect-ratio: 1.42; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #F4EFE4, #E5DDCB);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transform: rotate(-2deg);
}
.doc-sheet::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 30%;
  background: linear-gradient(160deg, #2A4A3F, #17332B);
}
.doc-mrz {
  position: absolute; inset-block-end: 9px; inset-inline: 12px;
  font-family: var(--font-mono); font-size: clamp(5px, .82vw, 8px); letter-spacing: .1em;
  color: #4A463C; line-height: 1.6; opacity: .75;
  white-space: pre; overflow: hidden;
}
.doc-photo { position: absolute; inset-block-start: 38%; inset-inline-start: 12px; width: 26%; aspect-ratio: .78;
  border-radius: 4px; background: linear-gradient(160deg,#C9BFA8,#A79C86); }
.doc-lines { position: absolute; inset-block-start: 40%; inset-inline-start: 44%; inset-inline-end: 12px; }
.doc-lines i { display: block; height: 5px; border-radius: 3px; background: #BFB4A0; margin-block-end: 6px; }
.doc-lines i:nth-child(2) { width: 70%; } .doc-lines i:nth-child(3) { width: 55%; }
.doc-beam {
  position: absolute; inset-inline: 0; height: 46%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(123,211,180,.28), transparent);
}
.doc-bay.reading .doc-beam { opacity: 1; animation: docSweep 1.5s var(--ease) infinite; }
@keyframes docSweep { 0% { top: -46%; } 100% { top: 100%; } }
.doc-bay.done .doc-sheet { transform: rotate(0deg) scale(1.02); transition: transform .5s var(--ease-out); }

/* live view + the still we captured, both inside the scanner bay */
.doc-bay video, .doc-bay img#docShot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.doc-guide { position: absolute; inset: 9% 7%; pointer-events: none; }
.doc-guide span {
  position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.9);
  border-radius: 5px;
}
.doc-guide span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.doc-guide span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.doc-guide span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.doc-guide span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.doc-guide-hint {
  position: absolute; inset-inline: 0; inset-block-end: -6px; text-align: center;
  font-size: 11.5px; color: rgba(255,255,255,.82);
}

/* Where a stored document came from — the guest's first question. */
.onfile {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border-radius: var(--r-md); margin-block-end: 12px;
  background: var(--green-soft); color: var(--green);
}
.onfile b { display: block; font-size: 13.5px; color: var(--ink); }
.onfile-body { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.5;
  margin-block-start: 3px; }
.onfile svg { flex: none; margin-block-start: 2px; }

/* Read, checked and matched are separate claims and look it. */
.doc-verdict {
  margin-block-start: 12px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
}
.verdict-title { font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-block-end: 8px; }
.verdict-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  padding-block: 3px; color: var(--ink-2); }
.verdict-dot { width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; }
.verdict-row.ok .verdict-dot { background: var(--good); }
.verdict-row.no .verdict-dot { background: var(--crit); }
.verdict-row.no { color: var(--crit); }
/* Neither pass nor fail: a fact about the document, not a verdict on the guest.
   Deliberately not red — this row is the normal state for a driving licence. */
.verdict-row.info .verdict-dot { background: var(--muted); }
.verdict-row.info { color: var(--muted); }
.verdict-note {
  margin-top: 9px; padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink-2);
  font-size: 11.5px; line-height: 1.5;
}

.doc-fields { display: grid; gap: 9px; }
.doc-field {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  opacity: .35; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out), border-color .3s;
}
.doc-field.in { opacity: 1; transform: none; }
.doc-field .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); width: 146px; flex: none; white-space: nowrap; }
.doc-field .val {
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0;
}
.doc-field .val.mono { font-family: var(--font-mono); letter-spacing: .08em; }
.doc-field .val::placeholder { color: var(--line-2); font-weight: 500; }
/* A field the guest must fill looks like one; a field we already hold does not. */
.doc-field .val:not([readonly]) {
  border-block-end: 1.5px dashed var(--line-2); padding-block-end: 2px;
}
.doc-field .val:not([readonly]):focus { border-block-end-color: var(--green); }
.doc-field:has(.val:not([readonly])) { border-color: var(--line-2); }
.doc-field .ok { margin-inline-start: auto; color: var(--good); flex: none; }

/* --------------------------------------------------------------- signature */

.reg-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(18px, 2.6vw, 34px); align-items: start; }
@media (max-width: 1000px) { .reg-grid { grid-template-columns: 1fr; } }
.regcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; box-shadow: var(--sh-1);
  max-height: min(30vh, 340px); overflow-y: auto; }
.regrow { display: flex; justify-content: space-between; gap: 14px; padding-block: 8px;
  border-block-end: 1px solid var(--line); font-size: 13.5px; }
.regrow:last-child { border-block-end: 0; }
.regrow .regk { color: var(--muted); }
.regrow .regv { font-weight: 600; text-align: end; }

.sigpad {
  position: relative; background: var(--card); border: 2px dashed var(--line-2);
  border-radius: var(--r-md); height: clamp(150px, 21vh, 250px); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.sigpad.signed { border-style: solid; border-color: var(--green); }
.sigpad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sig-baseline { position: absolute; inset-inline: 40px; inset-block-end: 54px; height: 1px; background: var(--line-2); }
.sig-hint { position: absolute; inset-inline-start: 40px; inset-block-end: 30px; font-size: 12px; color: var(--faint);
  letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.sigpad.signed .sig-hint, .sigpad.signed .sig-baseline { opacity: 0; transition: opacity .3s; }
.sig-clear {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
  height: 34px; padding-inline: 14px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--paper-2); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.sigpad.signed .sig-clear { opacity: 1; pointer-events: auto; }
.sig-clear:hover { background: var(--line); color: var(--ink); }

.consent { display: flex; align-items: flex-start; gap: 14px; margin-block-start: 16px;
  padding: 16px 18px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; transition: border-color .2s var(--ease); }
.consent.on { border-color: var(--green); background: linear-gradient(0deg, var(--green-soft), var(--green-soft)), #fff; }
.consent-box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line-2); flex: none;
  display: grid; place-items: center; color: transparent; transition: all .2s var(--ease); margin-block-start: 1px; }
.consent.on .consent-box { background: var(--green); border-color: var(--green); color: #fff; }
.consent-text { font-size: 14px; line-height: 1.5; }

/* ----------------------------------------------------------------- payment */

.pay-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(18px, 2.6vw, 34px); align-items: start; }
@media (max-width: 1000px) { .pay-grid { grid-template-columns: 1fr; } }
.reader {
  position: relative; border-radius: var(--r-lg); padding: clamp(18px, 2.6vh, 30px);
  background: linear-gradient(160deg, #23211A, #100F0B); color: #fff;
  box-shadow: var(--sh-3); text-align: center; cursor: pointer;
  transition: transform .16s var(--ease);
}
.reader:active { transform: scale(.995); }
.reader-slot {
  width: 78%; height: 8px; border-radius: 6px; margin: 0 auto clamp(14px, 2vh, 26px);
  background: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.08);
}
.reader-wave { display: grid; place-items: center; height: clamp(76px, 11vh, 128px); position: relative; }
.reader-wave i {
  position: absolute; border: 2.5px solid rgba(255,255,255,.5); border-radius: 50%;
  animation: waveOut 2.4s var(--ease) infinite;
}
.reader-wave i:nth-child(1) { width: 44px; height: 44px; animation-delay: 0s; }
.reader-wave i:nth-child(2) { width: 44px; height: 44px; animation-delay: .5s; }
.reader-wave i:nth-child(3) { width: 44px; height: 44px; animation-delay: 1s; }
@keyframes waveOut { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.reader-card { width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(140deg, #E8CF92, #B99442); z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.reader-title { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.reader-body { font-size: 13.5px; color: rgba(255,255,255,.62); margin-block-start: 6px; }
.reader.busy .reader-wave i { animation-duration: .8s; border-color: rgba(123,211,180,.7); }
.reader.ok { background: linear-gradient(160deg, #14483C, #0A2B23); }
.reader.bad { background: linear-gradient(160deg, #5A241B, #2C110C); }

.amounts { display: grid; gap: 10px; }
.amount-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: clamp(11px, 1.6vh, 18px) 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
}
.amount-row.hero { background: var(--ink); color: #fff; border-color: var(--ink); }
.amount-row .lbl { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.amount-row .amt { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.amount-row.hero .amt { font-size: clamp(26px, 3.4vh, 34px); }
.amount-row .cur { font-size: 14px; font-weight: 600; opacity: .6; margin-inline-end: 5px; }

.cardform { display: grid; gap: 12px; margin-block-start: 14px; }
.cardform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.testcards { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 10px; }
.testcard { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.testcard:hover { background: #fff; border-color: var(--line-2); }

/* --------------------------------------------------------------- assigning */

.assigning { display: grid; place-items: center; text-align: center; gap: 34px; padding-block: 4vh; }
.assign-ring { position: relative; width: 168px; height: 168px; }
.assign-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.assign-ring .track { stroke: var(--line); }
.assign-ring .prog { stroke: var(--green); stroke-linecap: round;
  transition: stroke-dashoffset .7s var(--ease-out); }
.assign-ring .core { position: absolute; inset: 0; display: grid; place-items: center; }
.assign-steps { display: grid; gap: 12px; text-align: start; min-width: 320px; }
.assign-step { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--faint);
  transition: color .35s var(--ease); }
.assign-step .bullet {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); flex: none;
  display: grid; place-items: center; color: transparent; transition: all .35s var(--ease);
}
.assign-step.now { color: var(--ink); font-weight: 600; }
.assign-step.now .bullet { border-color: var(--green); }
.assign-step.now .bullet::after { content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); animation: pulse 1s ease-in-out infinite; }
.assign-step.done { color: var(--ink-2); }
.assign-step.done .bullet { background: var(--green); border-color: var(--green); color: #fff; }

/* ------------------------------------------------------------- key handoff */

.key-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (max-width: 1000px) { .key-grid { grid-template-columns: 1fr; } }
.roomnum {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(80px, 12vw, 168px); color: var(--green);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}
.roomnum-sub { font-size: 17px; color: var(--muted); margin-block-start: 4px; }
.roomfeat { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 18px; }

/* Card estates: the kiosk writes a card on the hotel's existing lock system
   and pushes it out of the slot. */
.dispenser { margin-block-start: 22px; max-width: 380px; }
.dispenser-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; margin-block-end: 10px;
}
.dispenser-slot {
  position: relative; height: 142px; border-radius: var(--r-md);
  background: linear-gradient(160deg, #23211A, #100F0B);
  box-shadow: var(--sh-2); overflow: hidden;
}
.dispenser-slot::before {
  content: ""; position: absolute; inset-inline: 12%; inset-block-start: 16px;
  height: 6px; border-radius: 4px; background: #000;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.09);
}
.dispenser-card {
  position: absolute; inset-inline-start: 14%; width: 72%; height: 76px;
  inset-block-start: 8px; border-radius: 9px; padding: 10px 12px;
  background: linear-gradient(150deg, var(--green-2), var(--green) 55%, #17564a);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  transition: transform .9s var(--ease-out);
}
.dispenser.dispensed .dispenser-card { transform: translateY(44px); }
.dc-brand { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.dc-chip { width: 22px; height: 16px; border-radius: 3px;
  background: linear-gradient(140deg, #E8CF92, #B99442); }
.dc-ref { font-size: 10px; letter-spacing: .12em; opacity: .8; }
.dispenser-note { font-size: 12.5px; color: var(--muted); margin-block-start: 12px; line-height: 1.5; }

.vendorbox {
  display: flex; align-items: flex-start; gap: 12px; margin-block-start: 20px;
  padding: 14px 16px; max-width: 380px;
  background: var(--brass-soft); border-radius: var(--r-md); color: var(--brass-2);
}
.vendorbox b { color: var(--ink); font-size: 14px; }

.deliver { display: grid; gap: 12px; }
.deliver-opt {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-align: start;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease);
}
.deliver-opt.on { border-color: var(--green); background: linear-gradient(0deg, var(--green-soft), var(--green-soft)), #fff; }
.deliver-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2);
  display: grid; place-items: center; flex: none; }
.deliver-opt.on .deliver-icon { background: var(--green); color: #fff; }
.deliver-name { display: block; font-size: 16px; font-weight: 650; }
.deliver-to { display: block; font-size: 13px; color: var(--muted); font-family: var(--font-mono);
  overflow-wrap: anywhere; }

/* ------------------------------------------------------------------- done */

.done-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(22px, 3.4vw, 52px); align-items: center; }
@media (max-width: 1000px) { .done-grid { grid-template-columns: 1fr; } }
.qrcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; text-align: center; box-shadow: var(--sh-2); width: min(320px, 34vw);
}
.qrcard .qrbox { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qrcard svg { width: 100%; height: 100%; }
.qrcard .cap { font-size: 12.5px; color: var(--muted); margin-block-start: 12px; line-height: 1.45; }
/* Two QR codes exist in this product and only one opens a door. Name this one. */
.qr-for {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--green-soft); color: var(--green);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-block-start: 12px;
}
.pinbox {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--paper-2); border-radius: var(--r-sm); margin-block-start: 16px;
}
.pinbox .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pinbox .val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: .22em; }

.bye-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--sh-2); display: grid; justify-items: center; gap: 14px;
  width: min(320px, 100%); margin-inline: auto;
}
.bye-tick { width: 92px; height: 92px; border-radius: 50%; background: var(--good-soft);
  color: var(--good); display: grid; place-items: center; }
.bye-text { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }

.done-facts { display: grid; gap: 12px; margin-block-start: 22px; max-width: 560px; }
.fact { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.fact-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; flex: none; }

.sent-list { display: grid; gap: 8px; margin-block-start: 18px; }
.sent-row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink-2);
  animation: riseIn .4s var(--ease-out) both; }
.sent-row .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff;
  display: grid; place-items: center; flex: none; }

/* ------------------------------------------------------------------ folio */

.folio-wrap { width: min(720px, 100%); margin-inline: auto; display: flex; flex-direction: column; }
.folio-settle { display: flex; }
.folio-settle > div {
  flex: 1; padding: 13px 24px; border-inline-end: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.folio-settle > div:last-child { border-inline-end: 0; }
.folio-settle .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.folio-settle .amt { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.folio-settle .amt.due { color: var(--crit); }
.folio { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; }
.folio-head { padding: 18px 24px; border-block-end: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center; background: var(--paper); }
.folio-lines { max-height: min(34vh, 380px); overflow-y: auto; }
.folio-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 24px;
  border-block-end: 1px solid var(--line); font-size: 14.5px; }
.folio-row .desc { color: var(--ink-2); }
.folio-row .when { font-size: 11.5px; color: var(--faint); }
.folio-row .amt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.folio-row.tax { color: var(--muted); font-size: 13.5px; background: var(--paper); }
.folio-foot { padding: 18px 24px; background: var(--ink); color: #fff;
  display: flex; justify-content: space-between; align-items: baseline; }
.folio-foot .lbl { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.folio-foot .amt { font-size: 32px; font-weight: 650; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ modals */

.k-modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(23,21,15,.5); backdrop-filter: blur(6px);
}
.k-modal.on { display: flex; animation: fadeIn .22s var(--ease) both; }
.k-modal-box {
  background: var(--card); border-radius: var(--r-xl); padding: 40px;
  width: min(560px, 100%); text-align: center; box-shadow: var(--sh-3);
  animation: riseIn .32s var(--ease-out) both;
}
.k-modal-title { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.k-modal-body { font-size: 16px; color: var(--muted); margin-block-start: 12px; }
.k-modal-actions { display: flex; gap: 12px; justify-content: center; margin-block-start: 28px; flex-wrap: wrap; }

.countdown { font-family: var(--font-display); font-size: 64px; font-weight: 600; color: var(--crit);
  letter-spacing: -.04em; margin-block: 12px; }

/* toast */
.k-toast {
  position: fixed; inset-block-end: 110px; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; box-shadow: var(--sh-3); opacity: 0; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease-out); z-index: 70;
}
.k-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Long lists scroll inside themselves so the question stays on screen. */
.stage-scroll {
  overflow-y: auto; min-height: 0; max-height: min(54vh, 560px);
  padding-inline-end: 6px;
  /* a soft edge tells the guest there is more below */
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 22px), transparent 100%);
}
.stage-scroll::-webkit-scrollbar { width: 8px; }
.stage-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

/* Portrait kiosks (and the narrow preview pane) drop to one column. */
@media (max-width: 1000px) {
  .attract { grid-template-columns: 1fr; }
  .attract-art { display: none; }
  .stay-body { grid-template-columns: 1fr 1fr; }
  .stay-cell:nth-child(2n) { border-inline-end: 0; }
  .opts-3 { grid-template-columns: 1fr 1fr; }
  .key-grid, .done-grid, .stay-grid, .folio-grid, .pay-grid, .reg-grid, .id-grid {
    grid-template-columns: 1fr !important;
  }
  /* stacked: the key QR turns into a wide strip so the PIN stays on screen */
  .qrcard {
    width: 100%; display: grid; grid-template-columns: 148px 1fr;
    gap: 20px; align-items: center; text-align: start; padding: 18px;
  }
  .qrcard .qrbox { width: 148px; height: 148px; }
  .qrcard .cap { margin-block-start: 0; }
  .pinbox { margin-block-start: 12px; }
  /* the room panel below repeats this strip once the columns stack */
  .stay-room { display: none; }
  /* the running total lives in the action bar at this width instead */
  .basket-live { display: none; }
  /* the action bar belongs to Back / total / CTA once space is tight */
  #footNote { display: none; }
}
/* Below this the three finder tabs and the helper card cannot share a row.
   The field's own hint says the same thing, so the card goes rather than wrap. */
@media (max-width: 940px) {
  .finder { grid-template-columns: 1fr; }
  .f-aside { display: none; }
}
@media (max-width: 720px) {
  .opts-3, .opts-2 { grid-template-columns: 1fr; }
  .svcs { grid-template-columns: 1fr; }
}
