/* ─────────────────────────────────────────────────────────────────────────────
   Intake screens. Every size is expressed in DESIGN pixels off Alena's 393 x 852
   mockups via var(--u), so the whole flow scales with the phone frame instead of
   being pinned to one screen size.  32px in the design  ->  calc(32 * var(--u)).
   ───────────────────────────────────────────────────────────────────────────── */

.intake {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  overflow: hidden;
  /* Alena's background: UOB blue, a bright bloom out of the bottom-right corner, a soft
     lift in the top-left and a slightly deeper left edge. Sampled off the mockups. */
  background:
    radial-gradient(62% 38% at 103% 101%, rgba(238, 246, 255, .98) 0%, rgba(150, 186, 226, .8) 26%, rgba(0, 94, 184, 0) 68%),
    radial-gradient(58% 26% at 2% 1%, rgba(96, 156, 218, .5) 0%, rgba(0, 94, 184, 0) 72%),
    linear-gradient(90deg, #0047BA 0%, #005EB8 34%, #005EB8 100%);
  color: #fff;
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* 1 design pixel. 100cqw spans the 393px-wide mock. */
.intake__u {
  --u: min(0.254453cqw, 0.117371cqh); /* 1 design px: 393 wide, but never taller than 852 */
  position: absolute;
  inset: 0;
  /* A centred column at the design's 393 width: on a phone screen proportionally wider than the
     mock, every screen keeps its exact layout (the blue .intake background still fills the sides)
     instead of left-anchored text drifting away from centred avatars. Desktop: = full width. */
  width: calc(393 * var(--u));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── UOB lockup ───────────────────────────────────────────────────────────── */
/* the official artwork, never redrawn — height drives it, width follows the art */
.uob {
  display: block;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* the small top-left mark every screen after the splash carries (design: 31, 69) */
.topbar {
  position: absolute;
  top: calc(69 * var(--u));
  left: calc(31 * var(--u));
  z-index: 3;
}
/* on scrolling screens the mark lives INSIDE the scroll container so it scrolls with the
   content (its left/top come from the container's padding instead of being pinned) */
.topbar--flow { position: static; margin: 0 0 calc(26 * var(--u)); }
/* back arrow, sits just below the UOB mark on every screen except the splash */
.topbar__back {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0;
  color: #fff; display: block;
  width: calc(26 * var(--u)); height: calc(26 * var(--u));
  margin-top: calc(20 * var(--u));
}
.topbar__back svg { width: 100%; height: 100%; display: block; }
.topbar__back:active { transform: scale(.9); }

/* ── shared controls ──────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #0A56AF;
  font-family: inherit;
  font-weight: 400;
  height: calc(46 * var(--u));
  min-width: calc(97 * var(--u));
  padding: 0 calc(26 * var(--u));
  border-radius: calc(23 * var(--u));
  font-size: calc(15 * var(--u) * var(--fs));
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0, 30, 70, .18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(calc(1 * var(--u))) scale(.985); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible { outline: calc(2 * var(--u)) solid #fff; outline-offset: calc(3 * var(--u)); }

/* translucent white pill / card, the surface every option and input uses */
.surface {
  background: rgba(255, 255, 255, .25);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .22);
}

/* ── 1. splash ────────────────────────────────────────────────────────────── */
.splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* design: the lockup alone, centred, 330 → 382. The "Right by You" line under it was dropped
   in the 2026-09-28 splash — the mark stands on its own now. */
.splash__brand {
  position: absolute;
  top: calc(330 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash__lead {
  position: absolute;
  top: calc(482 * var(--u));
  font-size: calc(14 * var(--u) * var(--fs));
  color: #fff;
}
.splash__cta { position: absolute; top: calc(519 * var(--u)); }
/* "can't run here" message (Unsupported.tsx): same spot as the splash line, wrapped */
.splash__note {
  position: absolute;
  top: calc(462 * var(--u));
  left: calc(40 * var(--u));
  right: calc(40 * var(--u));
  font-size: calc(14 * var(--u) * var(--fs));
  line-height: 1.45;
  text-align: center;
  color: #fff;
}
.splash__cta--note { top: calc(560 * var(--u)); }

/* ── 2. avatar picker ─────────────────────────────────────────────────────── */
.pickTitle {
  position: absolute;
  top: calc(262 * var(--u));
  width: 100%;
  text-align: center;
  font-size: calc(15 * var(--u) * var(--fs));
}
.picker { position: absolute; inset: 0; }
/* The 3D canvases span the FULL screen width (100cqw = the .intake container), not just the centred
   393u column — otherwise the glow behind the avatars (and any avatar swiping off) is cut off in a
   hard vertical line at the column edge on wide phones. Centred, so the avatars don't move. */
.picker__canvas { position: absolute; top: 0; bottom: 0; left: 50%; width: 100cqw; transform: translateX(-50%); }
.picker__hit {
  position: absolute;
  top: 40%;
  /* sized + placed off the stage HEIGHT (cqh), like the avatars (the canvas zoom is height-based):
     centres ±11.08cqh (= X 0.41 / UNITS_HIGH 3.7) either side of the middle, on any screen ratio */
  width: 16.6cqh;
  height: 34%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-family: inherit;
  font-size: calc(15 * var(--u) * var(--fs));
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: calc(20 * var(--u));
  cursor: pointer;
}
.picker__hit:focus-visible { outline: calc(2 * var(--u)) solid #fff; outline-offset: 0; }
.picker__hit.is-chosen { background: rgba(255, 255, 255, .12); }
/* design: the names sit just under the avatars' feet (595) */
.picker__name { display: block; padding-bottom: calc(6 * var(--u)); }

/* ── the persistent 3D avatar layer (filler page onwards) ─────────────────── */
.avatarStage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100cqw; /* full screen width, centred — see .picker__canvas */
  z-index: 2;
  pointer-events: none;
  /* on the completion screen the avatar scrolls WITH the cards (0 everywhere else) */
  transform: translate(-50%, calc(-1 * var(--done-scroll, 0px)));
}

/* ── 4/5/7. speech screens ────────────────────────────────────────────────── */
.speech {
  position: absolute;
  left: calc(31 * var(--u));
  width: calc(200 * var(--u));
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.speech__text {
  font-size: calc(21 * var(--u)); /* fixed at the mockup's size: the global --fs scale made it a huge paragraph */
  line-height: 1.34;
  white-space: pre-line;
  margin: 0 0 calc(24 * var(--u));
}
/* "What brings you to our pavilion today?" (screens.tsx Purpose) */
.purpose__text { margin-bottom: calc(4 * var(--u)); }
.purpose__note { margin: 0 0 calc(34 * var(--u)); font-size: calc(11.5 * var(--u) * var(--fs)); line-height: 1.2; }
.purpose__btns { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.purpose__btn { width: calc(183 * var(--u)); padding: 0; font-size: calc(14 * var(--u)); font-weight: 700; white-space: nowrap; } /* fixed size: the global text scale made "Innovation Group Quiz" wrap */
/* ── 6. personal information ──────────────────────────────────────────────── */
.form {
  position: absolute;
  inset: 0;
  padding: calc(69 * var(--u)) calc(31 * var(--u)) calc(38 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(11 * var(--u));
  overflow-y: auto;
  z-index: 3;
  -webkit-overflow-scrolling: touch;
}
.field { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.field label { font-size: calc(17 * var(--u) * var(--fs)); }
.field input {
  height: calc(34 * var(--u));
  border-radius: calc(17 * var(--u));
  padding: 0 calc(16 * var(--u));
  font-family: inherit;
  font-size: calc(14 * var(--u) * var(--fs));
  color: #fff;
  background: rgba(255, 255, 255, .25);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .3);
}
.field input::placeholder { color: rgba(255, 255, 255, .55); }
.field input:focus { outline: calc(2 * var(--u)) solid rgba(255, 255, 255, .8); outline-offset: 0; }
.field select {
  height: calc(34 * var(--u));
  border-radius: calc(17 * var(--u));
  padding: 0 calc(40 * var(--u)) 0 calc(16 * var(--u));
  font-family: inherit;
  font-size: calc(14 * var(--u) * var(--fs));
  color: #fff;
  background: rgba(255, 255, 255, .25);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .3);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='9' fill='none' stroke='white' stroke-opacity='0.6' stroke-width='1.3'/%3E%3Cpath d='M7.5 9.5l3.5 3.5 3.5-3.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(9 * var(--u)) center;
}
.field select:focus { outline: calc(2 * var(--u)) solid rgba(255, 255, 255, .8); }
/* the native option list is drawn by the OS — keep it readable (dark on white) */
.field select option { color: #0A56AF; }
.field select:required:invalid { color: rgba(255, 255, 255, .55); }

.consent {
  margin-top: calc(9 * var(--u));
  border-radius: calc(12 * var(--u));
  padding: calc(13 * var(--u));
  display: grid;
  grid-template-columns: calc(16 * var(--u)) 1fr;
  gap: calc(10 * var(--u));
  align-items: start;
}
.consent input[type='checkbox'] {
  appearance: none;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  border-radius: calc(3 * var(--u));
  background: rgba(255, 255, 255, .85);
  border: 0;
  margin: calc(2 * var(--u)) 0 0;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input[type='checkbox']::after {
  content: '';
  width: calc(9 * var(--u));
  height: calc(5 * var(--u));
  border-left: calc(2 * var(--u)) solid #0A56AF;
  border-bottom: calc(2 * var(--u)) solid #0A56AF;
  transform: rotate(-45deg) translate(calc(0.5 * var(--u)), calc(-1 * var(--u)));
  opacity: 0;
}
.consent input[type='checkbox']:checked::after { opacity: 1; }
.consent__label { font-size: calc(13 * var(--u) * var(--fs)); line-height: 1.25; }
.consent__fine {
  grid-column: 2;
  font-size: calc(8.5 * var(--u) * var(--fs));
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
  margin-top: calc(6 * var(--u));
}
.consent__fine a { color: rgba(255, 255, 255, .92); }

/* pinned to the bottom of the screen, as in the updated design */
.form__actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: calc(20 * var(--u)); }

/* ── 8. questions ─────────────────────────────────────────────────────────── */
.quiz {
  position: absolute;
  inset: 0;
  padding: calc(69 * var(--u)) calc(31 * var(--u)) calc(24 * var(--u));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 3;
}
.quiz__count { font-size: calc(19 * var(--u) * var(--fs)); margin-bottom: calc(11 * var(--u)); }
.quiz__bar {
  height: calc(10 * var(--u));
  border-radius: calc(5 * var(--u));
  background: rgba(255, 255, 255, .5);
  overflow: hidden;
}
.quiz__bar i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width .35s ease; }
.quiz__q { font-size: calc(19 * var(--u) * var(--fs)); line-height: 1.24; margin: calc(23 * var(--u)) 0 0; }
.quiz__note { font-size: calc(11.5 * var(--u) * var(--fs)); margin: calc(8 * var(--u)) 0 0; color: rgba(255, 255, 255, .88); }
.quiz__opts { display: flex; flex-direction: column; gap: calc(15 * var(--u)); margin-top: calc(21 * var(--u)); }
.quiz__opts--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr; /* every box as tall as the tallest, so the grid stays uniform */
  gap: calc(13 * var(--u));
}

.opt {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  color: #fff;
  text-align: center;
  min-height: calc(51 * var(--u));
  padding: calc(9 * var(--u)) calc(14 * var(--u));
  border-radius: calc(20 * var(--u));
  font-size: calc(13.5 * var(--u) * var(--fs));
  line-height: 1.22;
  background: rgba(255, 255, 255, .25);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .22);
  transition: background .15s ease, transform .12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt:active { transform: scale(.99); }
.opt.is-on {
  background: rgba(255, 255, 255, .52);
  border-color: rgba(255, 255, 255, .85);
  color: #0A4E9E;
}
.opt:focus-visible { outline: calc(2 * var(--u)) solid #fff; outline-offset: calc(2 * var(--u)); }
.quiz__opts--grid .opt:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 13 * var(--u)) / 2); } /* a lone last option (No preference) sits centred */
.quiz__opts--grid .opt { min-height: calc(120 * var(--u)); border-radius: calc(26 * var(--u)); }

.quiz__done { display: flex; justify-content: flex-end; margin-top: calc(16 * var(--u)); }
/* Q5's Done sits centred below the grid (updated design), not in the empty last cell. */
.quiz__done--center { justify-content: center; margin-top: calc(30 * var(--u)); }

/* ── 9. completion ────────────────────────────────────────────────────────── */
.done {
  position: absolute;
  inset: 0;
  padding: calc(69 * var(--u)) calc(31 * var(--u)) calc(28 * var(--u));
  z-index: 3;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.done__grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(14 * var(--u)); }
/* the recommender's opening line, top-left — the curious avatar sits to its right */
.done__say {
  width: calc(210 * var(--u));
  font-size: calc(16 * var(--u) * var(--fs));
  line-height: 1.34;
  white-space: pre-line;
  margin-bottom: calc(8 * var(--u));
}
.done__list { display: flex; flex-direction: column; gap: calc(14 * var(--u)); margin-top: calc(14 * var(--u)); }
.rec {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0;
  font-family: inherit; width: 100%;
  display: flex; align-items: center; gap: calc(12 * var(--u));
}
.rec__n {
  flex: none; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%;
  background: #fff; color: #0A56AF; display: grid; place-items: center;
  font-size: calc(16 * var(--u) * var(--fs));
}
.rec__t {
  flex: 1; min-height: calc(64 * var(--u));
  display: grid; place-items: center; text-align: center;
  color: #fff; font-size: calc(15 * var(--u) * var(--fs)); line-height: 1.25;
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: calc(22 * var(--u));
  background: rgba(255, 255, 255, .22);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .22);
}
.rec:active .rec__t, .rec--alone:active { transform: scale(.99); }
.rec--alone {
  display: grid; place-items: center; text-align: center;
  margin-top: calc(16 * var(--u)); min-height: calc(74 * var(--u));
  color: #fff; font-size: calc(15 * var(--u) * var(--fs)); cursor: pointer;
  padding: calc(12 * var(--u)); font-family: inherit;
  border-radius: calc(22 * var(--u));
  background: rgba(255, 255, 255, .16);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .22);
}
.card {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  color: #fff;
  text-align: center;
  border-radius: calc(26 * var(--u));
  background: rgba(255, 255, 255, .25);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .22);
  font-size: calc(15 * var(--u) * var(--fs));
  line-height: 1.22;
  padding: calc(12 * var(--u));
  min-height: calc(132 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .12s ease;
}
.card:active { transform: scale(.99); }
.card:focus-visible { outline: calc(2 * var(--u)) solid #fff; outline-offset: calc(2 * var(--u)); }
.card--wide {
  grid-column: 1 / -1;
  min-height: calc(78 * var(--u));
  border-radius: calc(22 * var(--u));
  margin-top: calc(14 * var(--u));
}

/* ── transitions between screens ──────────────────────────────────────────── */
.fade { animation: intakeFade .38s ease both; }
@keyframes intakeFade { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
  .btn, .opt, .card { transition: none; }
}

/* Q1 "Which day are you visiting?": the consent box sits under the day buttons (Alena's design).
   Tapping a day before ticking it shakes + brightens the box instead of moving on. */
.quiz__consent { margin-top: calc(38 * var(--u)); }
.quiz__consent .consent__label { font-size: calc(14 * var(--u) * var(--fs)); }
.quiz__consent.is-needed { border-color: #fff; background: rgba(255, 255, 255, .34); animation: consentNudge .42s ease; }
@keyframes consentNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(calc(-7 * var(--u))); }
  40% { transform: translateX(calc(6 * var(--u))); }
  60% { transform: translateX(calc(-4 * var(--u))); }
  80% { transform: translateX(calc(2 * var(--u))); }
}

/* ── access screen (private test link) — same look as the dashboard sign-in ── */
.gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(46 * var(--u)); }
.gate__title { margin: calc(46 * var(--u)) 0 calc(22 * var(--u)); font-size: calc(16 * var(--u) * var(--fs)); text-align: center; }
.gate__in {
  width: 100%; height: calc(40 * var(--u)); margin-bottom: calc(14 * var(--u)); padding: 0 calc(17 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, .75); border-radius: calc(20 * var(--u));
  background: rgba(255, 255, 255, .25); color: #fff; font: inherit; font-size: calc(15 * var(--u) * var(--fs)); outline: none;
}
.gate__in::placeholder { color: #fff; opacity: 1; }
.gate__in:focus { border-color: #fff; background: rgba(255, 255, 255, .32); }
.gate__err { min-height: calc(20 * var(--u)); margin-bottom: calc(10 * var(--u)); font-size: calc(13 * var(--u) * var(--fs)); color: #FFD3E0; }
:root { color-scheme: light; --fs: 1.3; /* global font-size scale — raise/lower to resize ALL type */ }
* { box-sizing: border-box; }
/* dvh as well as %: on a phone browser the URL bar makes 100%/100vh TALLER than what you can
   actually see, which is why the deployed site framed up differently from the desktop preview.
   dvh tracks the visible viewport; the % line stays first as the fallback for old browsers. */
html, body, #root { height: 100%; height: 100dvh; margin: 0; }
body {
  overflow: hidden;
  overscroll-behavior: none;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* page backdrop behind the phone */
.devicebg {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 50% -12%, #2b3a4d, #10161f 62%);
}

/* Phone device frame. It WRAPS the screen rather than sizing it: the screen below owns the
   aspect ratio, and the frame is whatever that plus the bezel comes to. Sizing the frame here
   used to set `width` AND `aspect-ratio` AND `max-height` — on a short window `max-height` won
   and simply squashed the frame (the screen came out ~1.80 tall-to-wide instead of the design's
   2.17), so the desktop preview had vertical room a real phone does not and the deployed site
   laid out differently. Never re-introduce a max-height here. */
.phone {
  position: relative;
  display: grid;
  place-items: center;
  background: #0b0f14;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 44px 90px rgba(0, 0, 0, .55), inset 0 0 0 2px #232d39;
}

/* the phone screen — the world lives here, bleeding to every screen edge.
   It is the design-pixel container for everything drawn OVER the 3D scene: 100cqw spans the
   393px-wide mock, so `calc(n * var(--u))` is n design pixels no matter how big the frame is
   (the intake and the cards already work this way; the overlays below now do too). */
.stage {
  position: relative;
  /* ALWAYS the 393 x 852 design ratio — it fits inside the window on whichever axis runs out
     first (the 24px is the frame's bezel), so the layout is identical everywhere and only its
     scale changes. That is what keeps the deployed site matching this preview. */
  --w: min(calc(94vw - 24px), 378px, calc((96dvh - 24px) * 393 / 852));
  width: var(--w);
  height: calc(var(--w) * 852 / 393);
  container-type: size; /* cqw AND cqh, so --u can fit both ways on a real phone */
  --u: min(0.254453cqw, 0.117371cqh); /* 1 design px: 393 wide, but never taller than 852 */
  border-radius: 34px;
  overflow: hidden;
  touch-action: none;
  /* The floor colour all the way up, so wherever the 3D ground doesn't reach (zoomed right out,
     or the tutorial camera's far edges) it reads as the same dark floor — no light band (feedback). */
  background: #0A2A54;
}
/* On a real phone: no device frame — the game fills the whole screen, edge to edge. Design
   pixels (--u) scale to fit BOTH ways, so a shorter phone (or one with a browser bar) keeps every
   screen inside the view instead of cutting the bottom off. The desktop preview keeps the frame. */
@media (max-width: 600px) {
  .devicebg { background: #0A2A54; }
  .phone { display: block; width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: none; }
  .stage { width: 100%; height: 100%; border-radius: 0; }
}
.stage canvas {
  display: block;
  touch-action: none;
  cursor: grab;
}
.stage canvas:active { cursor: grabbing; }

/* bottom-right info button (opens the 3-day activities panel later; no-op for now) */
.info-btn {
  position: absolute;
  right: calc(16 * var(--u));
  bottom: calc(16 * var(--u));
  z-index: 20;
  width: calc(58 * var(--u)); /* was 44 — too small to tap on a phone */
  height: calc(58 * var(--u));
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #0A5AA6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.info-btn:hover { background: #fff; }
.info-btn:active { transform: scale(0.94); }
/* glow while the guide bubble is up, to draw the eye to it */
.info-btn--glow { animation: infoGlow 1.2s ease-in-out infinite; }
@keyframes infoGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(126, 194, 255, 0.55); }
  50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 18px 7px rgba(126, 194, 255, 0.9); }
}

/* Turn-the-booth button — same pill as the info button, stacked directly above it. */
.view-btn {
  position: absolute;
  right: calc(16 * var(--u));
  bottom: calc(100 * var(--u)); /* info button (16 + 58) + 26 of gap for the curved label */
  z-index: 20;
  width: calc(58 * var(--u)); /* was 44 — too small to tap on a phone */
  height: calc(58 * var(--u));
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #0A5AA6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.view-btn:hover { background: #fff; }
/* glows during its tutorial step, while the booth swings its 360 — same pulse as the info button */
.view-btn--glow { animation: infoGlow 1.2s ease-in-out infinite; }
.view-btn:active { transform: scale(0.94); }
.view-btn svg, .info-btn svg, .pass-btn svg, .quiz-btn svg { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
/* Quiz (gift) button — same round button, above Rotate */
.quiz-btn {
  position: absolute;
  right: calc(16 * var(--u));
  bottom: calc(184 * var(--u)); /* rotate button (100 + 58) + 26 of gap */
  z-index: 20;
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #0A5AA6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.quiz-btn:hover { background: #fff; }
.quiz-btn--glow { animation: infoGlow 1.2s ease-in-out infinite; }
.quiz-btn:active { transform: scale(0.94); }
/* the curved word over each round button (Game.tsx ArcLabel) */
button svg.arc-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100 * var(--u));
  height: calc(100 * var(--u));
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
button svg.arc-label text { fill: #fff; stroke: #000; stroke-width: 1px; paint-order: stroke; } /* thin black outline */

/* scripted instruction bubble, centred low above the info button */
.tipbubble {
  position: absolute;
  left: calc((100% - 77 * var(--u)) / 2); /* centred in the space left of the round buttons (right-anchored, ~88 wide), on any screen width (was 158u: off-centre when the phone is wider than 393u) */
  bottom: calc(74 * var(--u));
  transform: translateX(-50%);
  z-index: 19;
  width: max-content; /* sized by its text, max 280 wide (18 → 298) */
  padding: calc(14 * var(--u)) calc(20 * var(--u));
  border-radius: calc(20 * var(--u));
  text-align: center;
  color: #fff;
  font-family: inherit;
  font-size: calc(21 * var(--u)); /* fixed size (no global scale), at most 3 lines */
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, 0.25);
  animation: tipIn 0.3s ease both;
}
.tipbubble__text { max-width: calc(250 * var(--u)); text-align: center; }
/* "Next →" — skips the 3s auto-advance; underlined link, bottom-right of the bubble */
.tipbubble__next {
  display: block;
  width: 100%;
  margin-top: calc(8 * var(--u));
  padding: 0;
  text-align: right;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: calc(19 * var(--u));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tipbubble__next span { text-decoration: underline; }
.tipbubble__next:active { opacity: 0.7; }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, calc(8 * var(--u))); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── booth notification popup ─────────────────────────────────────────────────
   Sizes are in DESIGN pixels off Alena's 393-wide mockups via var(--u), same as the
   intake, so the card scales with the phone. Colours are sampled from the mockups —
   only the typeface is set (New Hero). */
.boothwrap {
  position: absolute;
  inset: 0;
  z-index: 30;
  container-type: inline-size;
  --u: min(0.254453cqw, 0.117371cqh); /* 1 design px: 393 wide, but never taller than 852 */
  display: grid;
  place-items: center;
  padding: calc(14 * var(--u));
  animation: boothFade 0.2s ease both;
}
@keyframes boothFade { from { opacity: 0; } to { opacity: 1; } }
.boothcard {
  width: calc(361 * var(--u));
  /* Same footprint as the GoH card (§ .gohcard) so every booth popup is one size.
     780 (was 670): taller cards, Alena 2026-10-19 — content that still doesn't fit scrolls, with the
     "Scroll for more" cue (ScrollCue.tsx). */
  height: calc(780 * var(--u));
  max-height: 100%;
  overflow: auto;
  border-radius: calc(20 * var(--u));
  background: #fff;
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(4, 20, 44, 0.42);
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: boothPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nextcard {
  width: calc(322 * var(--u));
  max-height: 100%;
  overflow: auto;
  border-radius: calc(22 * var(--u));
  background: #005EB8;
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(4, 20, 44, 0.42);
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(28 * var(--u));
  animation: boothPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.next__back {
  display: block;
  margin-top: calc(14 * var(--u));
  width: calc(27 * var(--u));
  height: calc(23 * var(--u));
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.next__back svg { width: 100%; height: 100%; }
.next__title { margin-top: calc(18 * var(--u)); color: #fff; font-size: calc(17 * var(--u) * var(--fs)); font-weight: 500; }
.next__opts { display: flex; flex-direction: column; gap: calc(16 * var(--u)); margin-top: calc(18 * var(--u)); }
.next__opt {
  width: 100%;
  min-height: calc(64 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  border: none;
  border-radius: calc(20 * var(--u));
  background: #fff;
  color: #14589E;
  font-family: inherit;
  font-size: calc(16 * var(--u) * var(--fs));
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(4, 20, 44, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.next__opt--solo { background: #E0D6CB; color: #000; box-shadow: none; }
.next__opt:active { transform: scale(0.98); }

@keyframes boothPop {
  from { opacity: 0; transform: translateY(calc(12 * var(--u))) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.booth__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: calc(73 * var(--u)); /* 60 → 73 … every value marked "2026-10 design" below follows Alena's
     new booth-card design (A*STAR / NTU mockups, measured pixel-for-pixel) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(20 * var(--u)) 0 calc(26 * var(--u));
  background: #005EB8;
}
.booth__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(31 * var(--u)) calc(29 * var(--u)) calc(43 * var(--u)); /* 2026-10 design (was 22 24 24) */
}
.booth__daypill {
  width: calc(244 * var(--u)); /* 2026-10 design (was 236 × 56) */
  height: calc(70 * var(--u));
  border-radius: calc(35 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(12 * var(--u));
  color: #fff;
}
.booth__arrow {
  flex: 0 0 auto;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  border: none;
  background: none;
  color: #fff;
  font-size: calc(26 * var(--u) * var(--fs));
  line-height: 1;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.booth__arrow:active { transform: scale(0.9); }
.booth__daytext { line-height: 1.05; text-align: center; } /* the title + subtitle both centred in the pill */
.booth__daytitle { font-size: calc(24 * var(--u) * var(--fs)); font-weight: 700; letter-spacing: 0.04em; margin-right: -0.04em; /* cancel the trailing letter-space so it centres truly */ }
.booth__daysub { font-size: calc(12.5 * var(--u) * var(--fs)); font-weight: 400; letter-spacing: 0.05em; margin-top: calc(2 * var(--u)); } /* 2026-10 design (was 12, inherited weight) */
.booth__org { align-self: flex-start; text-align: left; margin-top: calc(24 * var(--u)); color: #0047BA; font-size: calc(17 * var(--u) * var(--fs)); /* 15 → 17: Alena's 2026-10 card design (A*STAR, NTU) */ }
/* Quiz banner (Alena's button design): her avatar-with-gift picture + New Hero text */
.booth__quiz { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; margin-top: calc(17 * var(--u)); height: calc(108 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(100 * var(--u)); border: calc(2 * var(--u)) solid #062A5C; border-radius: calc(28 * var(--u)); background: #0057B8; color: #fff; font-family: 'New Hero', system-ui, sans-serif; cursor: pointer; box-shadow: 0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.35); -webkit-tap-highlight-color: transparent; }
.booth__quiz:active { transform: scale(0.98); }
.booth__quiz--glow { animation: quizGlow 1.6s ease-in-out infinite; } /* subtle: first visit to a quiz booth */
@keyframes quizGlow { 0%, 100% { box-shadow: 0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 200, 61, 0); } 50% { box-shadow: 0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.35), 0 0 calc(14 * var(--u)) calc(3 * var(--u)) rgba(255, 200, 61, 0.75); } }
.booth__quizav { position: absolute; left: calc(22 * var(--u)); bottom: calc(3 * var(--u)); height: calc(98 * var(--u)); width: auto; } /* stays inside the button */
.booth__quiztext { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.booth__quiztitle { font-size: calc(24 * var(--u)); /* fixed: the banner is a set design, the global text scale would push it under the avatar */ font-weight: 400; line-height: 1.2; }
.booth__quizsub { margin-top: calc(3 * var(--u)); white-space: nowrap; font-size: calc(14.5 * var(--u)); font-weight: 400; line-height: 1.05; }
.booth__quiz + .booth__project { margin-top: calc(40 * var(--u)); }
/* picture button under a project's blurb (Alena's "Level Up Your Workday"), slight shadow around its rounded shape */
/* caption + button sit as one group, the same gap above (last paragraph) and below (next title) */
.booth__imggroup { align-self: stretch; margin-top: calc(24 * var(--u)); }
.booth__imggroup + .booth__project--more { margin-top: calc(24 * var(--u)); }
.booth__imgcap { margin-bottom: calc(6 * var(--u)); color: #0047BA; font-size: calc(12 * var(--u) * var(--fs)); line-height: 1.1; text-align: left; }
.booth__imgbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.booth__imgbtn img { display: block; width: 100%; height: auto; filter: drop-shadow(0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.3)); }
.booth__imgbtn:active { transform: scale(0.98); }
/* the ³ in "M³+" (ui/withSup.tsx): small and raised, without opening up the line spacing */
.booth__details sup, .mini__tldesc sup { font-size: 0.65em; line-height: 0; vertical-align: 0.5em; }
/* that button's game, full screen over the card, ✕ top-right */
.levelup { position: absolute; inset: 0; z-index: 5; background: #fff; }
.levelup__frame { display: block; width: 100%; height: 100%; border: 0; }
.levelup .levelup__x { position: absolute; top: calc(20 * var(--u)); right: calc(17 * var(--u)); /* centred in the Level Up header, clear of the rounded screen corner */ width: calc(34 * var(--u)); height: calc(34 * var(--u)); padding: calc(8 * var(--u)); border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #0047BA; box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.3); }
/* Quiz card (ui/QuizCard.tsx) — all-blue popup, Alena's "WELCOME!" design */
.gohcard.quizcard { background: #005EB8; color: #fff; }
.quizcard .scrollcue { background: linear-gradient(rgba(0, 94, 184, 0), #005EB8 72%); } /* blue fade on the blue card */
.qz__body { display: flex; flex-direction: column; padding: calc(12 * var(--u)) calc(22 * var(--u)) calc(30 * var(--u)); }
.qz__title { text-align: center; font-size: calc(23 * var(--u) * var(--fs)); letter-spacing: 0.03em; }
.qz__intro { display: flex; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(14 * var(--u)); }
.qz__av { flex: 0 0 auto; width: calc(110 * var(--u)); height: auto; }
.qz__introtext { flex: 1; font-size: calc(15.5 * var(--u) * var(--fs)); line-height: 1.08; }
.qz__introtext p { margin: 0; }
.qz__introtext p + p { margin-top: calc(16 * var(--u)); }
.qz__count { margin-top: calc(10 * var(--u)); text-align: right; font-size: calc(13 * var(--u) * var(--fs)); }
.qz__track { position: relative; display: flex; justify-content: space-between; margin: calc(8 * var(--u)) calc(4 * var(--u)) 0; }
.qz__track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: calc(1.6 * var(--u)); background: #fff; transform: translateY(-50%); }
.qz__step { position: relative; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; border: calc(1.4 * var(--u)) dashed #fff; background: #005EB8; box-sizing: border-box; }
.qz__step.is-on { border-style: solid; background: #fff; }
.qz__hint { margin: calc(40 * var(--u)) 0 0; text-align: center; font-size: calc(13 * var(--u) * var(--fs)); line-height: 1.15; }
.qz__list { display: flex; flex-direction: column; gap: calc(10 * var(--u)); margin-top: calc(14 * var(--u)); }
.qz__row { display: flex; align-items: flex-start; }
.qz__dot { flex: 0 0 auto; width: calc(20 * var(--u)); height: calc(20 * var(--u)); margin: calc(12 * var(--u)) calc(8 * var(--u)) 0 calc(2 * var(--u)); /* 13 → 20: easier to see which are done; same centre line */ border-radius: 50%; border: calc(1.4 * var(--u)) dashed #fff; box-sizing: border-box; }
.qz__dot.is-done { border: none; background: #A8D5A2; }
.qz__visit { flex: 0 0 auto; padding: 0 calc(12 * var(--u)); height: calc(30 * var(--u)); white-space: nowrap; margin: calc(8 * var(--u)) calc(12 * var(--u)) 0 0; border: none; border-radius: calc(14 * var(--u)); background: #E0D6CB; color: #000; font-family: inherit; font-size: calc(13 * var(--u) * var(--fs)); font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qz__visit:active { transform: scale(0.95); }
.qz__box { flex: 1; min-width: 0; border-radius: calc(14 * var(--u)); background: #fff; color: #0047BA; box-shadow: 0 calc(4 * var(--u)) 0 #8FB3E6, 0 calc(7 * var(--u)) calc(14 * var(--u)) rgba(0, 20, 60, 0.35); transition: transform 0.1s ease, box-shadow 0.1s ease; } /* raised, like a button */
.qz__box:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(1 * var(--u)) 0 #8FB3E6, 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 20, 60, 0.3); }
.qz__head { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); width: 100%; min-height: calc(44 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)) calc(6 * var(--u)) calc(18 * var(--u)); border: none; background: none; color: inherit; font-family: inherit; font-size: calc(16.5 * var(--u) * var(--fs)); line-height: 1.05; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qz__head svg { flex: 0 0 auto; width: calc(20 * var(--u)); height: calc(20 * var(--u)); transition: transform 0.2s ease; }
.qz__box.is-open .qz__head svg { transform: rotate(180deg); }
.qz__panel { display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); padding: calc(2 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u)); }
.qz__q { align-self: flex-start; margin-bottom: calc(2 * var(--u)); font-size: calc(16.5 * var(--u) * var(--fs)); line-height: 1.1; }
/* one question on its own card (QuizCard: tapping a row) */
.qz__back { align-self: flex-start; display: flex; align-items: center; gap: calc(8 * var(--u)); font-family: inherit; padding: 0; border: none; background: none; color: #fff; font-size: calc(26 * var(--u)); cursor: pointer; }
.qz__backtxt { font-size: calc(15 * var(--u)); font-weight: 700; }
.qz__here { align-self: center; margin-top: calc(20 * var(--u)); color: #fff; font-size: calc(15 * var(--u)); font-weight: 700; }
.qz__qcard { display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); padding: calc(20 * var(--u)) calc(18 * var(--u)) calc(22 * var(--u)); border-radius: calc(18 * var(--u)); background: #fff; color: #0047BA; }
.qz__qproj { align-self: flex-start; font-size: calc(18 * var(--u) * var(--fs)); font-weight: 700; }
.qz__nextq { align-self: center; margin-top: calc(20 * var(--u)); height: calc(50 * var(--u)); padding: 0 calc(34 * var(--u)); border: none; border-radius: calc(25 * var(--u)); background: #fff; color: #005EB8; font-family: inherit; font-size: calc(15 * var(--u)); font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(4, 20, 44, 0.3); -webkit-tap-highlight-color: transparent; }
.qz__nextq:active { transform: scale(0.97); }
.qz__nextq--next { background: #E0D6CB; color: #000; }
.qz__opt { width: 100%; min-height: calc(34 * var(--u)); padding: calc(4 * var(--u)) calc(12 * var(--u)); border: 1px solid #BDBDBD; border-radius: calc(17 * var(--u)); background: #F0F0F0; color: #0047BA; font-family: inherit; font-size: calc(13 * var(--u) * var(--fs)); line-height: 1.1; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qz__opt.is-right { border-color: #5BAA52; background: #A8D5A2; }
.qz__opt.is-wrong { border-color: #7A7A7A; background: #F4B6C0; }
.qz__retry { margin-top: calc(4 * var(--u)); padding: 0 calc(22 * var(--u)); height: calc(40 * var(--u)); white-space: nowrap; border: none; border-radius: calc(20 * var(--u)); background: #005EB8; color: #fff; font-family: inherit; font-size: calc(14 * var(--u) * var(--fs)); font-weight: 700; cursor: pointer; box-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.25); -webkit-tap-highlight-color: transparent; }
.qz__opt:disabled { cursor: default; }
/* Quiz card, after the quiz: gift spin + Game Pass (QuizCard.tsx GiftView) */
.qzg__title { margin-top: calc(10 * var(--u)); font-size: calc(23 * var(--u) * var(--fs)); line-height: 1.15; }
.qzg__title--pass { margin-top: calc(34 * var(--u)); }
.qzg__sub { font-size: calc(15 * var(--u) * var(--fs)); line-height: 1.15; }
.qzg__spin { display: flex; align-items: center; gap: calc(18 * var(--u)); margin-top: calc(14 * var(--u)); }
.qzg__reelwrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); }
.qzg__reel { width: 100%; height: calc(210 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u)); border-radius: calc(18 * var(--u)); background: #fff; color: #0047BA; font-size: calc(16 * var(--u) * var(--fs)); font-weight: 700; overflow: hidden; }
.qzg__reel img { width: calc(170 * var(--u)); height: calc(150 * var(--u)); object-fit: contain; }
/* not spun yet: the Spin button glows so nobody misses it (user testing) */
.qzg__btn:not(:disabled) { animation: qzgGlow 1.4s ease-in-out infinite; }
@keyframes qzgGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 80, 0); } 50% { box-shadow: 0 0 calc(22 * var(--u)) calc(6 * var(--u)) rgba(255, 210, 80, 0.85); } }
.qzg__reel.is-spinning .qzg__prize { animation: qzgFlip 110ms ease-out; }
.qzg__reel.is-won { animation: qzgWin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
@keyframes qzgFlip { from { transform: translateY(-60%); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes qzgWin { from { transform: scale(0.8); } to { transform: none; } }
.qzg__btn { width: 100%; height: calc(54 * var(--u)); border: none; border-radius: calc(23 * var(--u)); background: #fff; color: #005EB8; font-family: inherit; font-size: calc(14 * var(--u) * var(--fs)); font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(4, 20, 44, 0.3); -webkit-tap-highlight-color: transparent; }
.qzg__btn:disabled { opacity: 0.75; cursor: default; }
.qzg__redeem { margin: calc(16 * var(--u)) 0 0; padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(255, 255, 255, 0.16); font-size: calc(16 * var(--u) * var(--fs)); line-height: 1.2; text-align: center; }
.qzg__where { display: block; margin: calc(12 * var(--u)) auto 0; height: calc(44 * var(--u)); padding: 0 calc(26 * var(--u)); border: none; border-radius: calc(22 * var(--u)); background: #fff; color: #005EB8; font-family: inherit; font-size: calc(15 * var(--u)); font-weight: 700; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qzg__where:active { transform: scale(0.97); }
.qzg__qr { margin-top: calc(6 * var(--u)); background: #fff; }
.qzg__qr svg { display: block; width: 100%; height: auto; }
.qzg__close { align-self: center; margin-top: calc(34 * var(--u)); width: calc(118 * var(--u)); height: calc(52 * var(--u)); border: none; border-radius: calc(26 * var(--u)); background: #fff; color: #005EB8; font-family: inherit; font-size: calc(14 * var(--u) * var(--fs)); font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(4, 20, 44, 0.3); -webkit-tap-highlight-color: transparent; }
.booth__project { align-self: flex-start; text-align: left; margin-top: calc(15.4 * var(--u)); color: #0047BA; font-size: calc(21.5 * var(--u) * var(--fs)); /* 24 → 21.5: same design */ font-weight: 700; line-height: 1.12; }
.booth__project--more { margin-top: calc(44 * var(--u)); } /* second project on the card (Data) */
.booth__pic {
  width: 100%;
  height: calc(120 * var(--u));
  margin-top: calc(3.4 * var(--u)); /* 2026-10 design (was 16) */
  background: #D3D3D3;
  color: #3B82C4;
  display: grid;
  place-items: center;
  font-size: calc(14 * var(--u) * var(--fs));
}
/* a real booth picture: the logo in its box, exactly as in Alena's card — the box border is part
   of the image, so nothing is redrawn or cropped (the grey "picture will be here" box only shows
   when a booth has no image yet). */
.booth__pic--img { height: auto; background: none; border: none; padding: 0; display: block; }
.booth__pic--img img { display: block; width: 100%; height: auto; }
/* a centred logo (e.g. a square) — shown smaller in the middle, not filling the card width.
   Keeps the base .booth__pic grid centring; sized to match Alena's collateral (~72% of the pic). */
.booth__pic--center { height: auto; background: none; }
.booth__pic--center img { width: 72%; height: auto; }
.booth__details { align-self: flex-start; margin-top: calc(7 * var(--u)); color: #0047BA; font-size: calc(14 * var(--u) * var(--fs)); line-height: 0.96; /* 2026-10 design (was 12, 1.35) */ text-align: left; white-space: pre-line; }
.booth__link { align-self: stretch; display: flex; flex-direction: column; align-items: center; margin-top: calc(14 * var(--u)); padding: calc(9 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u)); border-radius: calc(26 * var(--u)); background: #005EB8; color: #fff; text-decoration: none; text-align: center; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.25); -webkit-tap-highlight-color: transparent; }
.booth__link:active { transform: scale(0.97); }
.booth__linkpre { white-space: nowrap; font-size: calc(12 * var(--u) * var(--fs)); font-style: italic; line-height: 1.2; }
.booth__linktitle { margin-top: calc(1 * var(--u)); white-space: nowrap; font-size: calc(14.5 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.15; }
.booth__linksub { margin-top: calc(2 * var(--u)); font-size: calc(10.5 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.2; }
/* booth-challenge question (BoothCard.tsx Quiz, ui/challenge.ts) — sits under the details */
.bq { align-self: stretch; margin-top: calc(18 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #EEF5FC; text-align: left; }
.bq__tag { color: #1668B8; font-size: calc(11 * var(--u) * var(--fs)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bq__q { margin-top: calc(6 * var(--u)); color: #131313; font-size: calc(15 * var(--u) * var(--fs)); font-weight: 600; line-height: 1.3; }
.bq__opts { display: flex; flex-direction: column; gap: calc(8 * var(--u)); margin-top: calc(10 * var(--u)); }
.bq__opt {
  min-height: calc(40 * var(--u));
  padding: calc(8 * var(--u)) calc(14 * var(--u));
  border: calc(1.5 * var(--u)) solid #1668B8;
  border-radius: calc(20 * var(--u));
  background: #fff;
  color: #1668B8;
  font-family: inherit;
  font-size: calc(14 * var(--u) * var(--fs));
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bq__opt:disabled { cursor: default; opacity: 0.55; }
.bq__opt--right, .bq__opt--right:disabled { opacity: 1; border-color: #2BB673; background: #2BB673; color: #fff; }
.bq__opt--wrong { border-color: #D0021B; color: #D0021B; animation: bqShake 0.3s ease; }
@keyframes bqShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bq__msg { min-height: calc(18 * var(--u)); margin-top: calc(8 * var(--u)); color: #131313; font-size: calc(13 * var(--u) * var(--fs)); font-weight: 600; }
.booth__q { margin-top: calc(61 * var(--u)); color: #000; font-size: calc(13.2 * var(--u) * var(--fs)); font-weight: 600; line-height: 1; } /* 2026-10 design (was 26, 15, 1.3) */
.booth__actions { display: flex; gap: calc(17 * var(--u)); margin-top: calc(5 * var(--u)); } /* 2026-10 design (was 16 / 14) */
.booth__act {
  width: calc(137 * var(--u)); /* 2026-10 design (was 132 × 96) */
  height: calc(126 * var(--u));
  border: none;
  border-radius: calc(35 * var(--u)); /* 2026-10 design: radius 16 → 35, icon 28 → 44, text 14/600 → 12.7/400 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  font-family: inherit;
  font-size: calc(12.7 * var(--u) * var(--fs));
  font-weight: 400;
  line-height: 1.1;
  box-shadow: 0 calc(5 * var(--u)) calc(14 * var(--u)) rgba(4, 20, 44, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.booth__act svg { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.booth__act:active { transform: scale(0.97); }
.booth__act--pdf { background: #F7F7F7; color: #0047BA; }
.booth__act--visit { background: #E0D6CB; color: #000; }
.booth__done {
  margin-top: calc(28 * var(--u)); /* 2026-10 design (was 22, 150 × 48) */
  width: calc(117 * var(--u));
  height: calc(61 * var(--u));
  border: none;
  border-radius: calc(30.5 * var(--u));
  background: #005EB8;
  color: #fff;
  font-family: inherit;
  font-size: calc(15 * var(--u) * var(--fs)); /* 2026-10 design (was 17) */
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.booth__done:active { transform: scale(0.97); }

/* branded loader on the same gradient — no white flash */
.loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: calc(16 * var(--u));
  background: linear-gradient(180deg, #DCEBF9, #F6FAFE);
  transition: opacity .6s ease;
}
.loader--hidden { opacity: 0; pointer-events: none; }
.loader__rings { position: relative; width: calc(64 * var(--u)); height: calc(64 * var(--u)); }
.loader__rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: calc(4 * var(--u)) solid transparent; border-top-color: #3D7FD6;
  animation: spin 1.1s linear infinite;
}
.loader__rings span:nth-child(2) { inset: calc(9 * var(--u)); border-top-color: #0B4EA2; animation-duration: 1.5s; }
.loader__rings span:nth-child(3) { inset: calc(18 * var(--u)); border-top-color: #D8232A; animation-duration: .9s; }
.loader__label { color: #0B4EA2; font-weight: 700; font-size: calc(13 * var(--u) * var(--fs)); letter-spacing: .05em; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader__rings span { animation: none; } }

/* ── sign-off card ────────────────────────────────────────────────────────────
   Same blue panel + New Hero type as the "next adventure" chooser, with the picked
   avatar standing to the RIGHT of the text, waving (his own transparent canvas, so he
   is the same model at the same scale as the intake screens). */
.farecard {
  position: relative;
  width: calc(322 * var(--u));
  max-height: 100%;
  overflow: auto;
  border-radius: calc(22 * var(--u));
  background: #005EB8;
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(4, 20, 44, 0.42);
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(30 * var(--u));
  animation: boothPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fare__body { position: relative; margin-top: calc(20 * var(--u)); min-height: calc(210 * var(--u)); }
.fare__text { width: calc(158 * var(--u)); }
/* Thanks card (QuizThanks): the avatar sits level with the middle of the text, not the top */
.fare__body--mid { display: flex; align-items: center; }
.fare__body--mid .fare__avatar { top: 50%; transform: translateY(-50%); }
.fare__p {
  margin: 0 0 calc(18 * var(--u));
  color: #fff;
  font-size: calc(17 * var(--u) * var(--fs));
  font-weight: 500;
  line-height: 1.32;
}
.fare__p strong { -webkit-text-stroke: 0.035em currentColor; } /* New Hero ships one weight, so a plain bold would not show */
.fare__avatar {
  position: absolute;
  right: calc(-6 * var(--u));
  top: 0;
  /* wider than the avatar on purpose: the raised waving hand swings well left of his body, and
     this box is the canvas edge — it used to clip the hand off. The model is pushed back right
     inside the canvas by the same amount (see Farewell.tsx) so he does not shift on screen. */
  width: calc(175 * var(--u));
  height: calc(210 * var(--u));
  pointer-events: none;
}
.fare__ask, .fare__tag {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: calc(15 * var(--u) * var(--fs));
  font-weight: 500;
  line-height: 1.4;
}
.fare__tag { margin-top: calc(18 * var(--u)); }
.fare__done {
  display: block;
  margin: calc(26 * var(--u)) auto 0;
  width: calc(150 * var(--u));
  height: calc(48 * var(--u));
  border: none;
  border-radius: calc(24 * var(--u));
  background: #fff;
  color: #14589E;
  font-family: inherit;
  font-size: calc(17 * var(--u) * var(--fs));
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fare__done:active { transform: scale(0.97); }
/* quiz-only "Thanks for playing" card (ui/QuizThanks.tsx) — Farewell shell, two buttons */
.thx__yes, .thx__solo { display: block; margin: calc(14 * var(--u)) auto 0; width: auto; min-width: calc(230 * var(--u)); padding: 0 calc(26 * var(--u)); height: calc(46 * var(--u)); border: none; border-radius: calc(23 * var(--u)); font-family: inherit; font-size: calc(14 * var(--u) * var(--fs)); font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(4, 20, 44, 0.3); -webkit-tap-highlight-color: transparent; }
.thx__yes { margin-top: calc(26 * var(--u)); background: #fff; color: #005EB8; }
.thx__solo { background: #E0D6CB; color: #000; }
.thx__yes:active, .thx__solo:active { transform: scale(0.97); }

/* Game Pass (PassCard.tsx): same blue card as the farewell, QR as big as the card allows — the
   booth webcam reads it from the phone's screen, so bigger squares scan faster. */
.passcard {
  position: relative;
  width: calc(322 * var(--u));
  max-height: 100%;
  overflow: auto;
  border-radius: calc(22 * var(--u));
  background: #005EB8;
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(4, 20, 44, 0.42);
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(28 * var(--u));
  text-align: center;
  animation: boothPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.passcard .uob { display: block; }
.pass__title { margin: calc(18 * var(--u)) 0 0; color: #fff; font-size: calc(22 * var(--u) * var(--fs)); font-weight: 700; text-align: left; }
.pass__lead { margin: calc(8 * var(--u)) 0 0; color: #fff; font-size: calc(15 * var(--u) * var(--fs)); font-weight: 500; text-align: left; }
.pass__qr {
  margin: calc(18 * var(--u)) auto 0;
  width: calc(274 * var(--u));
  height: calc(274 * var(--u));
  border-radius: calc(12 * var(--u));
  overflow: hidden;
  background: #fff;
}
.pass__qr { display: block; padding: 0; border: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.pass__qr svg { display: block; width: 100%; height: 100%; }
/* tapped: the code fills the whole game screen on white (bigger squares = easier for a laptop webcam) */
.passbig { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: calc(14 * var(--u)); padding: calc(12 * var(--u)); border: none; background: #fff; cursor: zoom-out; -webkit-tap-highlight-color: transparent; font-family: 'New Hero', system-ui, sans-serif; }
.passbig svg { width: min(100cqw, 80cqh); height: min(100cqw, 80cqh); max-width: 100%; }
.passbig__hint { color: #555; font-size: calc(15 * var(--u) * var(--fs)); }
.pass__note { margin: calc(12 * var(--u)) 0 0; color: rgba(255, 255, 255, 0.85); font-size: calc(12 * var(--u) * var(--fs)); }

/* Game Pass button — same pill as the info + turn buttons, stacked above them. */
.pass-btn {
  position: absolute;
  right: calc(16 * var(--u));
  bottom: calc(268 * var(--u)); /* quiz button (184 + 58) + 26 of gap */
  z-index: 20;
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #0A5AA6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pass-btn:hover { background: #fff; }
.pass-btn:active { transform: scale(0.94); }

/* ── Guest-of-Honor stage card ────────────────────────────────────────────────
   Same footprint and day pill as the project-booth card; the line-up is long, so the
   card scrolls inside that footprint. Colours are Alena's card assets as-is — only the
   typeface is set (New Hero). */
.gohcard {
  width: calc(361 * var(--u));
  /* One popup size across all booths (matches .boothcard). Day 1 has more line-up, so it
     scrolls INSIDE this height instead of growing the card. */
  height: calc(780 * var(--u)); /* was 670 — see .boothcard */
  max-height: 100%; /* safety cap on very short screens */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: calc(20 * var(--u));
  background: #fff;
  box-shadow: 0 calc(18 * var(--u)) calc(48 * var(--u)) rgba(4, 20, 44, 0.42);
  font-family: 'New Hero', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: boothPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.goh__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: calc(60 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(20 * var(--u)) 0 calc(26 * var(--u));
  background: #005EB8;
}
.goh__x {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.goh__x svg { width: 100%; height: 100%; }
.goh__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(22 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u));
}
.goh__title {
  align-self: stretch;
  margin: calc(24 * var(--u)) 0 calc(10 * var(--u));
  padding-bottom: calc(10 * var(--u));
  border-bottom: 1px solid #C9C9C9;
  color: #131313;
  font-size: calc(24 * var(--u) * var(--fs));
  font-weight: 700;
  line-height: 1.1;
}
.goh__note { align-self: stretch; margin: calc(16 * var(--u)) 0 0; color: #5B5B5B; font-size: calc(12 * var(--u) * var(--fs)); font-style: italic; line-height: 1.3; }
.goh__note + .goh__title { margin-top: calc(6 * var(--u)); }
.goh__none { align-self: stretch; margin: calc(10 * var(--u)) 0 calc(14 * var(--u)); color: #1668B8; text-align: center; font-size: calc(15 * var(--u) * var(--fs)); }
.goh__slot { align-self: stretch; }
.goh__rule { border-top: 1px solid #C9C9C9; margin: calc(22 * var(--u)) 0 0; }
.goh__name { margin-top: calc(16 * var(--u)); color: #1668B8; font-size: calc(27 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.12; }
.goh__role { margin-top: calc(4 * var(--u)); color: #1668B8; font-size: calc(15 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.25; }
.goh__pic {
  width: 100%;
  height: calc(120 * var(--u));
  margin-top: calc(12 * var(--u));
  background: #D3D3D3;
  color: #3B82C4;
  display: grid;
  place-items: center;
  font-size: calc(14 * var(--u) * var(--fs));
}
.goh__pic--img { height: auto; background: none; display: block; }
.goh__pic--img img { display: block; width: 100%; height: auto; }
.goh__talk { margin-top: calc(10 * var(--u)); color: #1668B8; font-size: calc(15 * var(--u) * var(--fs)); font-weight: 600; line-height: 1.3; }
.goh__meta { display: flex; gap: calc(18 * var(--u)); margin-top: calc(12 * var(--u)); }
.goh__metaitem {
  flex: 1 1 0;
  display: flex;
  align-items: flex-start;
  gap: calc(7 * var(--u));
  color: #1668B8;
  font-size: calc(12 * var(--u) * var(--fs));
  line-height: 1.25;
  white-space: pre-line;
}
.goh__metaitem svg { flex: 0 0 auto; width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.goh__done {
  margin-top: calc(60 * var(--u)); /* 2026-10 design: same Done as the booth card, ~60 below the last paragraph */
  width: calc(117 * var(--u));
  height: calc(61 * var(--u));
  border: none;
  border-radius: calc(30.5 * var(--u));
  background: #005EB8;
  color: #fff;
  font-family: inherit;
  font-size: calc(15 * var(--u) * var(--fs));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(4, 20, 44, 0.2);
  -webkit-tap-highlight-color: transparent;
}
.goh__done:active { transform: scale(0.97); }

/* ── Mini-stage card ───────────────────────────────────────────────────────────
   UOB's own mini-stage programme. Reuses the GoH card shell (gohcard / goh__bar /
   goh__x / goh__body / goh__done) so it is one popup size with the rest; the body is a
   Time | Speaker table that scrolls inside the fixed height on the long days. */
.mini__title {
  align-self: stretch;
  margin: calc(22 * var(--u)) 0 calc(14 * var(--u));
  padding-bottom: calc(10 * var(--u));
  border-bottom: 1px solid #C9C9C9;
  color: #131313;
  font-size: calc(26 * var(--u) * var(--fs));
  font-weight: 700;
  line-height: 1.1;
}
.mini__table {
  align-self: stretch;
  border: 1px solid #BBD3EC;
  border-radius: calc(6 * var(--u));
  overflow: hidden;
}
.mini__row { display: grid; grid-template-columns: calc(140 * var(--u)) 1fr; } /* room for "10:00 - 10:45" at the bigger text size */
.mini__row + .mini__row { border-top: 1px solid #BBD3EC; }
.mini__cell { padding: calc(11 * var(--u)) calc(12 * var(--u)); }
.mini__cell + .mini__cell { border-left: 1px solid #BBD3EC; }
.mini__hcell { color: #2E7BC4; font-size: calc(19 * var(--u) * var(--fs)); font-weight: 600; text-align: center; }
/* nowrap + a column wide enough for the 0-heavy times (New Hero renders 0 wider than 1, so
   "10:00 - 10:45" is wider than "11:00 - 11:45") keeps every time on one line. */
.mini__time { display: flex; align-items: center; justify-content: center; white-space: nowrap; color: #0B2A5E; font-size: calc(12.5 * var(--u) * var(--fs)); font-weight: 600; line-height: 1.2; }
.mini__org { color: #1668B8; font-size: calc(16 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.15; overflow-wrap: break-word; } /* a long name ("LearningHub") never spills out of its cell */
.mini__desc { margin-top: calc(3 * var(--u)); color: #3B82C4; font-size: calc(12.5 * var(--u) * var(--fs)); line-height: 1.28; }

/* "View more details →" link (table view) + back arrow (timeline view) */
.mini__more { /* blue pill (user testing: the underlined link wasn't obvious enough) */
  align-self: center;
  margin: 0 0 calc(14 * var(--u));
  height: calc(46 * var(--u));
  padding: 0 calc(30 * var(--u));
  border: none;
  border-radius: calc(23 * var(--u));
  background: #005EB8;
  color: #fff;
  font-family: inherit;
  font-size: calc(15 * var(--u) * var(--fs));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(4, 20, 44, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.mini__more:active { transform: scale(0.97); }
.mini__back {
  align-self: flex-start;
  margin: 0 0 calc(8 * var(--u));
  background: none; border: none; cursor: pointer;
  color: #1668B8; font-size: calc(28 * var(--u) * var(--fs)); line-height: 1;
  padding: calc(2 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u)) 0;
}

/* "View more details" session timeline */
.mini__tl { align-self: stretch; }
.mini__tlhead { margin: 0 0 calc(10 * var(--u)) calc(116 * var(--u)); color: #1668B8; font-size: calc(17 * var(--u) * var(--fs)); font-weight: 700; }
.mini__tlrow { display: grid; grid-template-columns: calc(112 * var(--u)) minmax(0, 1fr); } /* wide enough for "10:00 - 10:45" at the bigger text size */
.mini__tltime { padding-top: calc(1 * var(--u)); color: #1668B8; font-size: calc(14 * var(--u)); /* fixed: must fit its column at any text scale */ font-weight: 700; white-space: nowrap; }
.mini__tlbody {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere; /* long titles wrap inside the card instead of running off it */
  margin-left: calc(5 * var(--u));
  padding: 0 0 calc(24 * var(--u)) calc(22 * var(--u));
  border-left: calc(2 * var(--u)) solid #1668B8;
}
.mini__tlrow:last-child .mini__tlbody { padding-bottom: calc(4 * var(--u)); }
.mini__tlbody::before { /* dot on the line */
  content: ''; position: absolute; left: calc(-6 * var(--u)); top: calc(2 * var(--u));
  width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: 50%; background: #1668B8;
}
.mini__tlbody::after { /* dashed connector to the content */
  content: ''; position: absolute; left: calc(8 * var(--u)); top: calc(7 * var(--u));
  width: calc(12 * var(--u)); border-top: calc(1.5 * var(--u)) dashed #1668B8;
}
.mini__tlorg { color: #1668B8; font-size: calc(18 * var(--u) * var(--fs)); font-weight: 700; line-height: 1.15; overflow-wrap: break-word; }
.mini__tltitle { margin-top: calc(2 * var(--u)); color: #1668B8; font-size: calc(15 * var(--u) * var(--fs)); font-weight: 600; line-height: 1.25; }
.mini__tldesc { white-space: pre-line; margin-top: calc(5 * var(--u)); color: #5B93CC; font-size: calc(12.5 * var(--u) * var(--fs)); line-height: 1.3; }

/* ── Full Information card (info button) ──────────────────────────────────────
   Reuses the GoH card shell (one popup size). A blue panel flips between Booths,
   Mini Stage and GOH via the translucent side tabs; every "Visit" walks the avatar. */
.info__panel {
  position: relative;
  align-self: stretch;
  margin-top: calc(6 * var(--u));
  padding-bottom: calc(22 * var(--u));
  border-radius: calc(26 * var(--u));
  background: #005EB8;
  color: #fff;
}
.info__head {
  margin: 0 calc(10 * var(--u)) calc(14 * var(--u));
  padding: calc(22 * var(--u)) 0 calc(10 * var(--u));
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  text-align: center;
  font-size: calc(22 * var(--u) * var(--fs));
  font-weight: 500;
  line-height: 1.1;
}
.info__side {
  flex: 0 0 auto;
  width: calc(34 * var(--u));
  height: calc(28 * var(--u));
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: calc(10 * var(--u));
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.info__side svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.info__side:active { transform: scale(0.94); }
.info__hint { margin: calc(4 * var(--u)) 0 calc(6 * var(--u)); text-align: center; color: #0047BA; font-size: calc(11.5 * var(--u) * var(--fs)); line-height: 1.2; }
.info__inner { padding: 0 calc(42 * var(--u)) 0 calc(40 * var(--u)); }
.info__inner--c { display: flex; flex-direction: column; align-items: center; padding: 0 calc(40 * var(--u)); }
.info__visit {
  flex: 0 0 auto;
  min-width: calc(62 * var(--u)); /* 52 × 28 → 62 × 32: user testing, Visit wasn't obvious enough */
  height: calc(32 * var(--u));
  padding: 0 calc(12 * var(--u));
  border: none;
  border-radius: calc(16 * var(--u));
  background: #fff;
  color: #005EB8;
  font-family: inherit;
  font-size: calc(13 * var(--u) * var(--fs));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(4, 20, 44, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.info__visit:active { transform: scale(0.95); }
.info__inner--c .info__visit { margin-top: calc(14 * var(--u)); }
.info__brow {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(6 * var(--u)) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.info__brow:last-child { border-bottom: none; }
.info__btext { flex: 1 1 auto; min-width: 0; }
.info__org { font-size: calc(16 * var(--u) * var(--fs)); font-weight: 500; line-height: 1.2; }
.info__proj { margin-top: calc(1 * var(--u)); font-size: calc(11.5 * var(--u) * var(--fs)); line-height: 1.2; }
.info__table { align-self: stretch; border: 1px solid rgba(255, 255, 255, 0.7); border-bottom: none; }
.info__trow { display: grid; grid-template-columns: calc(90 * var(--u)) 1fr; border-bottom: 1px solid rgba(255, 255, 255, 0.7); }
.info__tcell { padding: calc(6 * var(--u)) calc(8 * var(--u)); }
.info__tcell + .info__tcell { border-left: 1px solid rgba(255, 255, 255, 0.7); }
.info__th { text-align: center; font-size: calc(16 * var(--u) * var(--fs)); font-weight: 500; padding: calc(10 * var(--u)) calc(8 * var(--u)); }
.info__ttime { display: flex; align-items: center; font-size: calc(15 * var(--u) * var(--fs)); line-height: 1.2; }
.info__torg { font-size: calc(16 * var(--u) * var(--fs)); font-weight: 500; line-height: 1.2; overflow-wrap: break-word; } /* like .mini__org: a long name never spills out */
.info__tdesc { margin-top: calc(1 * var(--u)); font-size: calc(11 * var(--u) * var(--fs)); line-height: 1.2; }
.info__slot { align-self: stretch; }
.info__rule { border-top: 1px solid rgba(255, 255, 255, 0.55); margin: calc(16 * var(--u)) 0 calc(4 * var(--u)); }
.info__gname { margin-top: calc(10 * var(--u)); font-size: calc(16 * var(--u) * var(--fs)); font-weight: 500; line-height: 1.2; }
.info__grole { margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u) * var(--fs)); line-height: 1.2; }
.info__gpic { display: block; width: 100%; height: auto; margin-top: calc(10 * var(--u)); }
.info__gpic--empty { height: calc(130 * var(--u)); }
.info__gtalk { margin-top: calc(10 * var(--u)); font-size: calc(13.5 * var(--u) * var(--fs)); font-weight: 500; line-height: 1.25; }
.info__gmeta { display: flex; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); }
.info__gmetaitem { flex: 1 1 0; display: flex; align-items: center; gap: calc(4 * var(--u)); font-size: calc(11.5 * var(--u) * var(--fs)); line-height: 1.2; }
.info__gmetaitem svg { flex: 0 0 auto; width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

/* ── Mini-stage live banner + the bolded live row ─────────────────────────────── */
.livenote {
  position: absolute;
  left: 50%;
  top: calc(55 * var(--u));
  transform: translateX(-50%);
  z-index: 19;
  width: calc(300 * var(--u));
  max-width: 86%;
  padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u));
  border-radius: calc(22 * var(--u));
  text-align: center;
  color: #fff;
  font-size: calc(15.5 * var(--u) * var(--fs));
  line-height: 1.2;
  background: #005EB8;
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, 0.25);
  animation: tipIn 0.3s ease both; /* keeps the translate(-50%) centring */
}
.livenote__tag {
  margin: 0 calc(8 * var(--u)) calc(8 * var(--u));
  padding-bottom: calc(6 * var(--u));
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
.mini__row--live, .mini__row--live *, .info__trow--live, .info__trow--live * { font-weight: 700 !important; }
/* blinking "live" dot beside the org of the session on now (red) / starting soon (amber) */
.livedot {
  display: inline-block;
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
  margin-left: calc(7 * var(--u));
  vertical-align: middle;
  border-radius: 50%;
  background: #E4002B;
  box-shadow: 0 0 0 0 rgba(228, 0, 43, 0.6);
  animation: liveBlink 1.2s ease-in-out infinite;
}
.livedot--soon { background: #F2A24C; box-shadow: 0 0 0 0 rgba(242, 162, 76, 0.6); }
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(228, 0, 43, 0.55); }
  50% { opacity: 0.35; box-shadow: 0 0 0 calc(5 * var(--u)) rgba(228, 0, 43, 0); }
}

/* Full Information menu (what the info card opens on): three big blue buttons, label centred,
   a thin arrow at the right. Sized off Alena's collateral (296 x 111 design px, 30 apart). */
.info__menu { align-self: stretch; display: flex; flex-direction: column; gap: calc(31 * var(--u)); margin-top: calc(6 * var(--u)); }
/* quiz-only visitors: "Recommend me booths" under the menu, and its one-off tutorial */
.info__reco { align-self: stretch; margin-top: calc(6 * var(--u)); height: calc(54 * var(--u)); border: none; border-radius: calc(27 * var(--u)); background: #E0D6CB; color: #000; font-family: inherit; font-size: calc(16 * var(--u) * var(--fs)); font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.info__none { margin: calc(10 * var(--u)) 0 calc(14 * var(--u)); color: #fff; text-align: center; font-size: calc(15 * var(--u) * var(--fs)); }
.info__reco:active { transform: scale(0.98); }
.boothwrap--tip { background: rgba(4, 20, 44, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } /* dimmed too, so the corner buttons don't glow through */
/* the card is frosted too — only "Recommend me booths" stays sharp — and the tip sits on top of the frost */
.info--tip .goh__bar, .info--tip .booth__daypill, .info--tip .info__menubtn { filter: blur(5px); pointer-events: none; }
.boothwrap--tip .infotip { position: absolute; left: 50%; top: 66%; z-index: 2; width: 58%; max-width: none; margin: 0; transform: translate(-50%, -50%); padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(12 * var(--u)); border-radius: calc(22 * var(--u)); background: rgba(255, 255, 255, 0.82); border: none; color: #1A1A1A; font-size: calc(13 * var(--u) * var(--fs)); font-weight: 500; line-height: 1.15; } /* tutorial-bubble style, just above the button */
.infotip__next { display: block; margin: calc(8 * var(--u)) 0 0 auto; padding: 0; border: none; background: none; color: #1A1A1A; font-family: inherit; font-size: calc(13 * var(--u) * var(--fs)); cursor: pointer; }
.infotip__next span { text-decoration: underline; }
.info--tip .info__reco { animation: infoGlow 1.2s ease-in-out infinite; } /* only the button glows */
.infotip { max-width: 86%; margin-top: calc(12 * var(--u)); font-weight: 600; padding: calc(14 * var(--u)) calc(20 * var(--u)); border-radius: calc(20 * var(--u)); text-align: center; color: #fff; font-size: calc(15 * var(--u) * var(--fs)); line-height: 1.35; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); }
.info__menubtn {
  position: relative;
  height: calc(111 * var(--u));
  padding: 0 calc(52 * var(--u));
  border: none;
  border-radius: calc(30 * var(--u));
  background: #005EB8;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 calc(6 * var(--u)) calc(12 * var(--u)) rgba(4, 20, 44, 0.28);
  -webkit-tap-highlight-color: transparent;
}
.info__menubtn:active { transform: scale(0.98); }
.info__menulabel { display: block; white-space: pre-line; text-align: center; font-size: calc(21 * var(--u) * var(--fs)); line-height: 1.12; }
.info__menuarrow { position: absolute; right: calc(24 * var(--u)); top: 50%; transform: translateY(-50%); font-size: calc(22 * var(--u) * var(--fs)); line-height: 1; }
/* drawn arrows (ui/Arrow.tsx): 1em square, so the existing font-sizes still set their size */
.arrowicon { display: block; width: 1em; height: 1em; }

/* "Scroll for more" (ScrollCue.tsx): pinned to the bottom of a scrolling card while there's more below —
   a white fade + a bouncing arrow (phones hide scrollbars, so visitors missed the buttons). */
.scrollcue {
  position: sticky;
  bottom: 0;
  z-index: 3;
  height: calc(96 * var(--u));
  margin-top: calc(-96 * var(--u)); /* overlays the content instead of adding space */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(24 * var(--u)); /* sits higher, clear of the card edge */
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 72%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.scrollcue--on { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.scrollcue__btn {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  height: calc(42 * var(--u));
  padding: 0 calc(20 * var(--u));
  border: none;
  border-radius: calc(21 * var(--u));
  background: #1668B8;
  color: #fff;
  font-family: inherit;
  font-size: calc(16 * var(--u) * var(--fs));
  font-weight: 600;
  box-shadow: 0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: cueBob 1.4s ease-in-out infinite;
}
.scrollcue__btn svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
@keyframes cueBob { 50% { transform: translateY(calc(4 * var(--u))); } }
/* computers: an always-visible slim blue scrollbar on the cards */
.boothcard, .gohcard { scrollbar-width: thin; scrollbar-color: #1668B8 #E3EEF9; }
.boothcard::-webkit-scrollbar, .gohcard::-webkit-scrollbar { width: 6px; }
.boothcard::-webkit-scrollbar-track, .gohcard::-webkit-scrollbar-track { background: #E3EEF9; }
.boothcard::-webkit-scrollbar-thumb, .gohcard::-webkit-scrollbar-thumb { background: #1668B8; border-radius: 3px; }

/* locked while a "where is it" trail plays (Game.tsx `trailing`) */
.quiz-btn:disabled, .view-btn:disabled, .info-btn:disabled { opacity: 0.5; pointer-events: none; }
