/* themes/riso.css — surface styling for the "riso" kiosk theme.
   ---------------------------------------------------------------------------
   Theme TOKENS (colours, fonts, radii) are painted on :root by
   applyKioskTheme() from src/lib/kiosk/themes.ts; this file only holds the
   theme-specific SURFACE treatment (cards, dock, captions, ground texture)
   that tokens alone can't express. The presence motif lives in
   src/lib/components/motifs/.

   RULE: every selector here is scoped under :root[data-kuyil-theme="riso"]
   so the five theme sheets can all be linked at once without leaking.
   THE ONE LAW: no content: strings with words — styling only.
   STALE-CACHE: plain <link> from app.html, not fingerprinted (see app.html).

   RISO DNA (design refs F01–F10): a LIGHT newsprint-cream sheet with a fine
   paper grain, printed in two riso inks — the tenant accent (pink by default)
   and --kuyil-accent-2 (blue) — that overprint (mix-blend-mode: multiply /
   background-blend-mode) and sit slightly MIS-REGISTERED (a solid offset of
   the second ink). Fills are halftone dots (radial-gradient), rules are
   dotted, cards are stamped slips with a 3px blue keyline. Chunky Bricolage
   display, DM Mono for small Latin data (clock, prices, codes). Flat print:
   no glows, no blur, no glass.

   Contrast notes: text is --kuyil-text (#1B1F4A on #F7F1E3 ≈ 14:1); blue
   accent-2 headlines ≈ 6:1; anything sitting ON the tenant accent uses
   --kuyil-on-accent (the tenant accent can change). Indic safety: every
   element that can carry visitor/caption/tenant text keeps line-height ≥ 1.3
   and gets NO uppercase / negative tracking (several base components
   uppercase tenant labels — neutralised below). */

/* ---------------------------------------------------------------------------
   0. Theme-local knobs + state inks
   --state-listening/thinking/speaking default to glow hues tuned for a dark
   ground (mint/orchid/amber wash out on cream). Riso re-inks them from its
   own press: listening = blue ink, thinking = the pink×blue overprint
   (violet), speaking = pink ink. Motifs don't read these (verified), so the
   presence motif is untouched.
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] {
  --riso-pink: var(--kuyil-accent);
  --riso-blue: var(--kuyil-accent-2);
  --riso-paper: var(--kuyil-bg);
  /* the slip: a touch whiter than the sheet (#FBF7EC on the default bg) */
  --riso-slip: color-mix(in srgb, var(--kuyil-bg) 55%, #ffffff);
  --riso-keyline: 3px solid var(--kuyil-accent-2);
  --riso-rule: 2px dashed color-mix(in srgb, var(--kuyil-accent-2) 45%, transparent);
  /* mis-registered second ink: a solid pink plate offset under the slip */
  --riso-offset: 10px 10px 0 0 color-mix(in srgb, var(--kuyil-accent) 55%, transparent);
  --riso-offset-sm: 5px 5px 0 0 color-mix(in srgb, var(--kuyil-accent) 60%, transparent);
  --riso-dots-blue: radial-gradient(circle, var(--kuyil-accent-2) 1.8px, transparent 2.3px);
  --riso-dots-pink: radial-gradient(circle, var(--kuyil-accent) 2.6px, transparent 3.2px);
  /* static paper grain (one tile, never animated — zero per-frame cost) */
  --riso-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .106 0 0 0 0 .122 0 0 0 0 .29 0 0 0 -1.4 .9'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.28'/%3E%3C/svg%3E");

  --state-waiting: var(--kuyil-accent-2);
  --state-listening: var(--kuyil-accent-2);
  --state-thinking: #6a3fb5;
  --state-speaking: var(--kuyil-accent);
}

/* ---------------------------------------------------------------------------
   1. Ground — cream sheet + grain; a halftone dock band rises from the
      bottom edge (the refs' "dock band"). Both are paint under the layouts
      (layouts sit at --z-orb), no blend layer over content.
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] body {
  background-color: var(--riso-paper);
  background-image: var(--riso-grain);
  background-size: 220px 220px;
}
:root[data-kuyil-theme="riso"] body::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  height: 22vh;
  pointer-events: none;
  z-index: var(--z-bg);
  background: var(--riso-dots-blue) 0 0 / 12px 12px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5) 30%, #000);
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5) 30%, #000);
}
:root[data-kuyil-theme="riso"] ::selection {
  background: color-mix(in srgb, var(--kuyil-accent) 40%, transparent);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] :focus-visible {
  outline: 3px solid var(--kuyil-accent-2);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   2. Top bar — BrandLockup, LangChip
   --------------------------------------------------------------------------- */
/* Brand: chunky display wordmark, NO uppercase/tracking (tenant names may be
   Indic). The extra .fnb-layout/.fnb-brand hop out-ranks Marquee's tracked
   uppercase override. */
:root[data-kuyil-theme="riso"] .brand-lockup__name,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-brand .brand-lockup__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--kuyil-font-display);
  /* refs: 44px wordmark on the 1080 sheet */
  font-size: clamp(1.15rem, 0.6rem + 3vmin, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-indent: 0;
  text-transform: none;
  color: var(--kuyil-text);
}
/* the two-ink blob mark (pink + blue discs overprinting) — wordless glyph;
   skipped when the tenant ships a logo. */
:root[data-kuyil-theme="riso"] .brand-lockup__name::before {
  content: "";
  flex: 0 0 auto;
  width: 1.55em;
  height: 1em;
  background:
    radial-gradient(circle at 0.5em 50%, var(--kuyil-accent) 0.49em, transparent 0.5em),
    radial-gradient(circle at 1.05em 50%, var(--kuyil-accent-2) 0.49em, transparent 0.5em);
  background-blend-mode: multiply;
}
:root[data-kuyil-theme="riso"] .brand-lockup:has(.brand-lockup__logo) .brand-lockup__name::before {
  display: none;
}
:root[data-kuyil-theme="riso"] .brand-lockup__tagline {
  font-size: clamp(0.875rem, 0.5rem + 1.2vmin, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="riso"] .brand-lockup--dim {
  opacity: 0.88;
}

/* Language chip: blue keyline pill on the sheet, pink dot with a blue
   mis-registered plate. Label may be native script → no tracking. */
:root[data-kuyil-theme="riso"] .lang-chip {
  /* refs: 60px keyline pill, 26px label */
  min-height: clamp(2.75rem, 5.5vmin, 3.75rem);
  box-sizing: border-box;
  padding: 0 1.1rem 0 0.95rem;
  gap: 0.6rem;
  background: var(--riso-paper);
  border: var(--riso-keyline);
  border-radius: var(--radius-pill);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .lang-chip__dot {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--kuyil-accent);
  box-shadow: 0.22rem 0.12rem 0 0 color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .lang-chip__text {
  font-family: var(--kuyil-font-mono);
  font-size: clamp(1rem, 0.4rem + 1.8vmin, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--kuyil-text);
}

/* ---------------------------------------------------------------------------
   3. Captions (chat.css caption mode) — big chunky print
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .chat-panel--captions {
  background: none;
}
:root[data-kuyil-theme="riso"] .chat-panel--captions .chat-line.assistant .chat-bubble,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-chat .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-family: var(--kuyil-font-display);
  /* refs: 64–68px reply on the 1080 sheet; ~50px keeps a full reply +
     ask-list inside the layouts' caption caps */
  font-size: clamp(1.25rem, 0.7rem + 3.6vmin, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--kuyil-text);
  text-shadow: none;
}
/* Cinema keeps its one-step-down budget (the seat map / ticket share the
   hero's column — gallery's cinema scale); the extra .fnb-cinema hop
   out-ranks the poster size above and its landscape step-down. */
:root[data-kuyil-theme="riso"] .fnb-layout.fnb-cinema .fnb-chat .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-size: clamp(1.25rem, 0.9rem + 1.6vmin, 2rem);
}
:root[data-kuyil-theme="riso"] .fnb-layout.fnb-cinema .fnb-chat .chat-panel--captions .chat-asklist li {
  font-size: clamp(1rem, 0.8rem + 0.9vmin, 1.25rem);
}
/* The visitor's own words: a pink halftone marker stroke under the line —
   the visitor is the single pink ink (F03). Clone keeps it per-line. */
:root[data-kuyil-theme="riso"] .chat-panel--captions .chat-line.user .chat-bubble {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1rem, 0.6rem + 2vmin, 2.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .chat-panel--captions .chat-line.user .chat-bubble > span {
  padding: 0 0.15em;
  background:
    linear-gradient(
      transparent 55%,
      color-mix(in srgb, var(--kuyil-accent) 38%, transparent) 55%,
      color-mix(in srgb, var(--kuyil-accent) 38%, transparent) 92%,
      transparent 92%
    );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root[data-kuyil-theme="riso"] .listening-placeholder-bubble {
  font-style: normal;
  color: var(--kuyil-text) !important;
}
:root[data-kuyil-theme="riso"] .listening-placeholder-bubble span::after {
  background: var(--kuyil-accent);
}
/* Ask-list: questions in display weight, bullet = pink dot printed over a
   slightly offset blue dot. */
:root[data-kuyil-theme="riso"] .chat-asklist li,
:root[data-kuyil-theme="riso"] .chat-panel--captions .chat-asklist li,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-chat .chat-panel--captions .chat-asklist li {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.05rem, 0.6rem + 2.3vmin, 2.25rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--kuyil-text);
  text-shadow: none;
}
:root[data-kuyil-theme="riso"] .chat-asklist li::before {
  width: 0.5em;
  height: 0.5em;
  margin-top: 0.42em;
  background: var(--kuyil-accent);
  box-shadow: 0.16em 0.1em 0 0 color-mix(in srgb, var(--kuyil-accent-2) 75%, transparent);
}
/* Boxed fallback (captions={false}; no live call site) — slips, not glass. */
:root[data-kuyil-theme="riso"] .chat-panel:not(.chat-panel--captions) {
  background: var(--riso-slip);
  border: var(--riso-keyline);
  border-radius: var(--kuyil-radius-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--riso-offset);
}
:root[data-kuyil-theme="riso"] .chat-panel:not(.chat-panel--captions) .chat-bubble {
  background: var(--riso-paper);
  border: 2px solid color-mix(in srgb, var(--kuyil-accent-2) 55%, transparent);
  line-height: 1.4;
}
:root[data-kuyil-theme="riso"] .chat-panel:not(.chat-panel--captions) .chat-line.user .chat-bubble {
  background: color-mix(in srgb, var(--kuyil-accent) 22%, var(--riso-paper));
  border-color: color-mix(in srgb, var(--kuyil-accent) 60%, transparent);
  color: var(--kuyil-text);
}

/* Floating words — decorative only (aria-hidden): blue ink, faint. */
:root[data-kuyil-theme="riso"] .floating-word {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  color: color-mix(in srgb, var(--kuyil-accent-2) 30%, transparent);
  text-shadow: none;
}

/* ---------------------------------------------------------------------------
   4. Greetings / headlines — two-ink mis-registered print: blue letterforms
      over a pink offset plate (text-shadow = second ink, no blur).
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greet__headline,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greeting__text,
:root[data-kuyil-theme="riso"] .fnb-layout .duet-greet__text,
:root[data-kuyil-theme="riso"] .greeting-text,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greet .greeting-text,
:root[data-kuyil-theme="riso"] .start__greet-headline {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--kuyil-accent-2);
  text-shadow: 0.045em 0.035em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greet__headline,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greeting__text,
:root[data-kuyil-theme="riso"] .fnb-layout .duet-greet__text,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greet .greeting-text {
  font-size: clamp(2rem, 1rem + 4.4vmin, 4.6rem);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greet__sub,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greeting__sub,
:root[data-kuyil-theme="riso"] .fnb-layout .duet-greet__sub,
:root[data-kuyil-theme="riso"] .greeting-subtitle,
:root[data-kuyil-theme="riso"] .start__greet-sub {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(1rem, 0.8rem + 1.2vmin, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .greeting-card {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-kuyil-theme="riso"] .pill-dot,
:root[data-kuyil-theme="riso"] .welcome-card__dot {
  background: var(--kuyil-accent);
  box-shadow: 0.2rem 0.12rem 0 0 color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .instruction-pill {
  background: none;
  border: none;
  box-shadow: none;
}

/* WelcomeCard — rotating multilingual greeting: display weight, ink offset
   instead of the glow halo. */
:root[data-kuyil-theme="riso"] .welcome-card__word {
  font-family: var(--kuyil-font-display);
  font-size: clamp(2rem, 1rem + 4.4vmin, 4.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--kuyil-accent-2);
  text-shadow: 0.045em 0.035em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
}
:root[data-kuyil-theme="riso"] .welcome-card__invite {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.1rem, 0.8rem + 1.6vmin, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .welcome-card__sub {
  line-height: 1.4;
  color: var(--kuyil-ink-muted);
}

/* Identity plaques under the orb (tenant tagline): drop the tracked
   uppercase (Indic-unsafe) for a mono-ish quiet line. */
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-hero__identity,
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-idline,
:root[data-kuyil-theme="riso"] .fnb-layout .duet-identity {
  font-family: var(--kuyil-font-mono);
  font-size: clamp(0.875rem, 0.4rem + 1.5vmin, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  text-indent: 0;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}

/* Focus greeting re-enters on every rotation; its stock entry animates a
   6px blur filter each frame — riso swaps in a plain print-in (no filter). */
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-greeting {
  animation: riso-print-in 0.5s ease both;
}
@keyframes riso-print-in {
  from {
    opacity: 0;
    transform: translate(-6px, 8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-kuyil-theme="riso"] .fnb-layout .fnb-greeting {
    animation: none;
  }
}

/* OrbHint — flat print, no glow. */
:root[data-kuyil-theme="riso"] .orb-hint__line {
  font-family: var(--kuyil-font-display);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: none;
}

/* ---------------------------------------------------------------------------
   5. State rules (wordless) — seams become a dotted halftone rule, pills and
      pulses lose their glow and gain a blue offset plate.
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam,
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam {
  height: 8px;
  block-size: 8px;
  border-radius: 0;
  box-shadow: none;
  --seam-ink: color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
  background: radial-gradient(circle, var(--seam-ink) 2.4px, transparent 3px) 0 50% / 10px 8px repeat-x;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam[data-state],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state] {
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam[data-state="listening"],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state="listening"],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state="greeting"] {
  --seam-ink: var(--kuyil-accent);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam[data-state="processing"],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state="processing"] {
  --seam-ink: var(--state-thinking);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam[data-state="speaking"],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state="speaking"] {
  --seam-ink: var(--kuyil-accent-2);
  opacity: 1;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-seam[data-state="error"],
:root[data-kuyil-theme="riso"] .fnb-layout .duet-seam[data-state="error"] {
  --seam-ink: var(--state-error);
}

:root[data-kuyil-theme="riso"] .fnb-layout .fnb-state {
  block-size: 0.75rem;
  inline-size: 3.5rem;
  background: var(--fnb-state-ink);
  box-shadow: 0.3rem 0.22rem 0 0 color-mix(in srgb, var(--kuyil-accent-2) 45%, transparent);
  animation-name: none;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-state[data-state="listening"] {
  --fnb-state-ink: var(--kuyil-accent);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-state[data-state="idle"] {
  opacity: 0.25;
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-pulse {
  width: 0.9rem;
  height: 0.9rem;
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-pulse[data-state] {
  box-shadow: 0.2rem 0.14rem 0 0 color-mix(in srgb, var(--kuyil-accent-2) 55%, transparent);
}
:root[data-kuyil-theme="riso"] .fnb-layout .fnb-pulse[data-state="speaking"] {
  background: var(--kuyil-accent);
}

/* ---------------------------------------------------------------------------
   6. The dock — MicButton, RestartButton, MicMeter
   MicButton: a pink ink disc printed over by a mis-registered blue keyline
   ring (::after; the button's clip is lifted and the glass sheen dropped —
   flat print doesn't glisten). States stay hue-distinct without glow:
     ready     pink disc, ring offset
     arming    ring snaps into register, press-in
     live      disc flips to the blue ink + a pink halftone-ish halo that
               rides --mic-glow (the live level)
     sent      violet overprint flash
     discarded faded print
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .mic-button__btn {
  /* refs: a 160px ink disc on the 1080 sheet (base caps at 120px) */
  width: clamp(6rem, 15vmin, 10rem);
  height: clamp(6rem, 15vmin, 10rem);
  overflow: visible;
  border: none;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .mic-button__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--kuyil-accent-2);
  mix-blend-mode: multiply;
  transform: translate(7px, 5px);
  pointer-events: none;
  transition: transform 0.12s ease;
}
:root[data-kuyil-theme="riso"] .mic-button__sheen {
  display: none;
}
:root[data-kuyil-theme="riso"] .mic-button__mic {
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="riso"] .mic-button__btn::after {
  border-width: clamp(3px, 0.4vmin, 5px);
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="arming"] .mic-button__btn {
  background: var(--kuyil-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="arming"] .mic-button__btn::after,
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="live"] .mic-button__btn::after {
  transform: none;
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="live"] .mic-button__btn {
  background: var(--kuyil-accent-2);
  box-shadow: 0 0 0 calc(4px + var(--mic-glow, 24px) * 0.25) color-mix(in srgb, var(--kuyil-accent) 45%, transparent);
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="live"] .mic-button__btn::after {
  border-color: var(--kuyil-accent);
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="live"] .mic-button__mic {
  color: var(--riso-paper);
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="sent"] .mic-button__btn {
  background: var(--state-thinking);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="sent"] .mic-button__mic {
  color: var(--riso-paper);
}
:root[data-kuyil-theme="riso"] .mic-button[data-mic-state="discarded"] .mic-button__btn {
  background: color-mix(in srgb, var(--kuyil-accent) 35%, var(--riso-paper));
  box-shadow: none;
  opacity: 0.7;
}
:root[data-kuyil-theme="riso"] .mic-button__label {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1rem, 0.75rem + 1.3vmin, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--kuyil-text);
}
@media (prefers-reduced-motion: reduce) {
  :root[data-kuyil-theme="riso"] .mic-button__btn::after {
    transition: none;
  }
}

:root[data-kuyil-theme="riso"] .restart-btn {
  background: var(--riso-paper);
  border: var(--riso-keyline);
  color: var(--kuyil-accent-2);
  box-shadow: none;
}

:root[data-kuyil-theme="riso"] .mic-meter__fill {
  background: var(--kuyil-accent);
}

/* ---------------------------------------------------------------------------
   7. Stamped slips — every card surface: whiter slip, 3px blue keyline, the
      pink plate printed mis-registered underneath, a dotted perforation
      along the top edge. No glass (blur off), no glow.
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .order-dock,
:root[data-kuyil-theme="riso"] .order-placed,
:root[data-kuyil-theme="riso"] .reg-form,
:root[data-kuyil-theme="riso"] .reg-card,
:root[data-kuyil-theme="riso"] .reg-summary,
:root[data-kuyil-theme="riso"] .ticket-card,
:root[data-kuyil-theme="riso"] .menu-card,
:root[data-kuyil-theme="riso"] .menu-sheet__panel {
  background-color: var(--riso-slip);
  border: var(--riso-keyline);
  border-radius: var(--kuyil-radius-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--riso-offset);
}
/* perforation: a row of blue dots along the top inside edge */
:root[data-kuyil-theme="riso"] .order-placed,
:root[data-kuyil-theme="riso"] .reg-form,
:root[data-kuyil-theme="riso"] .reg-summary,
:root[data-kuyil-theme="riso"] .ticket-card {
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--kuyil-accent-2) 55%, transparent) 2.6px,
    transparent 3.2px
  );
  background-size: 16px 12px;
  background-position: 0 8px;
  background-repeat: repeat-x;
}
/* The celebrate/glow keyframes animate box-shadow (which would repaint the
   accent halo over our flat plate) — swap for a flat riso entry. */
:root[data-kuyil-theme="riso"] .order-placed,
:root[data-kuyil-theme="riso"] .ticket-card {
  animation: riso-slip-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
:root[data-kuyil-theme="riso"] .order-placed::after {
  background: none;
  animation: none;
}
:root[data-kuyil-theme="riso"] .order-placed--failed,
:root[data-kuyil-theme="riso"] .ticket-card--failed {
  border-color: var(--state-error);
  box-shadow: 10px 10px 0 0 color-mix(in srgb, var(--state-error) 30%, transparent);
}
:root[data-kuyil-theme="riso"] .ticket-card--pay {
  box-shadow: var(--riso-offset);
}
@keyframes riso-slip-in {
  from {
    opacity: 0;
    transform: translate(-10px, -14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-kuyil-theme="riso"] .order-placed,
  :root[data-kuyil-theme="riso"] .ticket-card {
    animation: none;
  }
}

/* ---- OrderDock — the cart strip ---------------------------------------- */
:root[data-kuyil-theme="riso"] .order-dock {
  box-shadow: var(--riso-offset-sm);
  padding: var(--space-2) var(--space-5);
}
:root[data-kuyil-theme="riso"] .order-dock__glyph {
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .order-dock__name {
  font-family: var(--kuyil-font-display);
  font-size: clamp(0.95rem, 0.7rem + 1.1vmin, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .order-dock__amount {
  font-family: var(--kuyil-font-mono);
  font-size: clamp(0.85rem, 0.65rem + 0.9vmin, 1.3rem);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .order-dock__thumb--swatch {
  background: var(--riso-dots-pink) 0 0 / 8px 8px, var(--riso-paper);
  border: 2px solid var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .order-dock__total {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.25rem, 0.8rem + 2.4vmin, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--kuyil-accent-2);
  text-shadow: 0.05em 0.04em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
  font-variant-numeric: tabular-nums;
}
/* Portrait kiosk: 88px steppers can't share one strip with several lines —
   let the lines wrap into a stacked slip instead of hiding behind the total
   (landscape keeps the single scrolling strip; it has the width). */
@media (orientation: portrait) and (min-width: 600px) {
  :root[data-kuyil-theme="riso"] .order-dock__lines {
    flex-wrap: wrap;
    row-gap: var(--space-1);
    column-gap: var(--space-5);
    overflow-x: visible;
  }
}
/* Steppers: kiosk ≥ 88px, widget/phone ≥ 44px (8.2vmin crosses 88px at a
   1080-wide portrait kiosk). Minus = blue keyline on the sheet; plus = solid
   blue ink with paper glyph (≈ 6:1). */
:root[data-kuyil-theme="riso"] .order-dock__btn,
:root[data-kuyil-theme="riso"] .menu-card__line-btn,
:root[data-kuyil-theme="riso"] .menu-sheet__qtybtn {
  width: clamp(2.75rem, 8.2vmin, 5.5rem);
  height: clamp(2.75rem, 8.2vmin, 5.5rem);
  box-sizing: border-box;
  border: var(--riso-keyline);
  background: var(--riso-paper);
  color: var(--kuyil-accent-2);
  font-family: var(--kuyil-font-mono);
  font-size: clamp(1rem, 0.6rem + 1.6vmin, 2rem);
  font-weight: 500;
}
:root[data-kuyil-theme="riso"] .order-dock__step .order-dock__btn:last-child,
:root[data-kuyil-theme="riso"] .menu-card__line-step .menu-card__line-btn:last-child {
  background: var(--kuyil-accent-2);
  color: var(--riso-paper);
}
:root[data-kuyil-theme="riso"] .order-dock__line.is-rejected,
:root[data-kuyil-theme="riso"] .menu-card__line.is-rejected {
  background: color-mix(in srgb, var(--state-error) 10%, transparent);
  box-shadow: inset 0 0 0 2px var(--state-error);
}

/* ---- OrderPlacedCard ---------------------------------------------------- */
:root[data-kuyil-theme="riso"] .order-placed {
  padding-top: calc(var(--space-6) + 10px);
}
:root[data-kuyil-theme="riso"] .order-placed__check,
:root[data-kuyil-theme="riso"] .reg-summary__check,
:root[data-kuyil-theme="riso"] .ticket-card__check {
  color: var(--state-success);
  text-shadow: 0.06em 0.05em 0 color-mix(in srgb, var(--kuyil-accent) 45%, transparent);
}
:root[data-kuyil-theme="riso"] .order-placed__cross,
:root[data-kuyil-theme="riso"] .ticket-card__cross {
  color: var(--state-error);
  text-shadow: none;
}
:root[data-kuyil-theme="riso"] .order-placed__number,
:root[data-kuyil-theme="riso"] .ticket-card__ref {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--kuyil-accent-2);
  text-shadow: 0.05em 0.04em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
}
:root[data-kuyil-theme="riso"] .order-placed__token {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  color: var(--kuyil-accent-2);
  background: var(--riso-paper);
  border: var(--riso-keyline);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--kuyil-accent) 60%, transparent);
}
:root[data-kuyil-theme="riso"] .order-placed__line {
  font-family: var(--kuyil-font-display);
  font-weight: 600;
  line-height: 1.35;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .order-placed__amount {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .order-placed__mods {
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="riso"] .order-placed__row--total {
  border-top: 0;
  padding-top: calc(var(--space-2) + 6px);
  background: linear-gradient(var(--kuyil-accent-2), var(--kuyil-accent-2)) 0 0 / 100% 4px no-repeat;
}
:root[data-kuyil-theme="riso"] .order-placed__row--total .order-placed__amount {
  font-family: var(--kuyil-font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--kuyil-accent-2);
  text-shadow: 0.05em 0.04em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
}
:root[data-kuyil-theme="riso"] .order-placed--failed .order-placed__line,
:root[data-kuyil-theme="riso"] .order-placed--failed .order-placed__amount,
:root[data-kuyil-theme="riso"] .order-placed--failed .order-placed__row--total .order-placed__amount {
  color: var(--kuyil-ink-muted);
  text-shadow: none;
}

/* ---- Registration (form / card / summary) ------------------------------- */
:root[data-kuyil-theme="riso"] .reg-form {
  padding-top: calc(var(--space-4) + 12px);
}
:root[data-kuyil-theme="riso"] .reg-form__divider,
:root[data-kuyil-theme="riso"] .reg-card__divider {
  height: 0;
  background: none;
  border-top: var(--riso-rule);
}
:root[data-kuyil-theme="riso"] .reg-form__row,
:root[data-kuyil-theme="riso"] .reg-card__row,
:root[data-kuyil-theme="riso"] .reg-summary__row {
  border-bottom: var(--riso-rule);
  border-radius: 0;
}
:root[data-kuyil-theme="riso"] .reg-form__row:last-child,
:root[data-kuyil-theme="riso"] .reg-card__row:last-child {
  border-bottom: none;
}
/* labels are tenant-config text (any script) → no uppercase/tracking */
:root[data-kuyil-theme="riso"] .reg-form__label,
:root[data-kuyil-theme="riso"] .reg-card__label,
:root[data-kuyil-theme="riso"] .reg-summary__label {
  font-family: var(--kuyil-font-ui);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .reg-form__value,
:root[data-kuyil-theme="riso"] .reg-card__value,
:root[data-kuyil-theme="riso"] .reg-summary__value {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--kuyil-text);
}
/* the field being filled: pink halftone marker swipe under it */
:root[data-kuyil-theme="riso"] .reg-form__row.is-active {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--kuyil-accent) 30%, transparent) 2.2px, transparent 2.8px) 0 0 / 10px 10px,
    color-mix(in srgb, var(--kuyil-accent) 8%, var(--riso-slip));
  box-shadow: inset 5px 0 0 0 var(--kuyil-accent);
  border-radius: 6px;
}
:root[data-kuyil-theme="riso"] .reg-form__row.is-active .reg-form__label {
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .reg-form__row.is-rejected {
  background: color-mix(in srgb, var(--state-error) 10%, transparent);
  box-shadow: inset 0 0 0 2px var(--state-error);
}
:root[data-kuyil-theme="riso"] .reg-form__arrow {
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .reg-form__input {
  border: var(--riso-keyline);
  border-radius: var(--kuyil-radius-control);
  background: var(--riso-paper);
  padding-inline: var(--space-4);
  font-family: var(--kuyil-font-display);
  font-weight: 600;
  line-height: 1.35;
}

/* ---------------------------------------------------------------------------
   8. Menu surfaces — MenuListPanel (the printed bill of fare), MenuCard tiles,
      the options sheet.
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .menu-list {
  opacity: 1;
}
:root[data-kuyil-theme="riso"] .menu-list--receded {
  opacity: 0.7;
}
:root[data-kuyil-theme="riso"] .menu-list__heading {
  font-family: var(--kuyil-font-display);
  font-size: clamp(0.85rem, 0.6rem + 1vmin, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--kuyil-accent-2);
  padding-bottom: 0.2em;
  border-bottom: var(--riso-rule);
}
:root[data-kuyil-theme="riso"] .menu-list__items li {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(0.85rem, 0.6rem + 0.9vmin, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .menu-list__items li::before {
  background: var(--kuyil-accent);
}

:root[data-kuyil-theme="riso"] .menu-card__cat {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .menu-tile {
  background: var(--riso-slip);
  border: var(--riso-keyline);
  border-radius: var(--kuyil-radius-card);
}
:root[data-kuyil-theme="riso"] .menu-tile.is-focused {
  box-shadow: var(--riso-offset);
}
:root[data-kuyil-theme="riso"] .menu-tile.is-carted {
  border-width: 5px;
  background: var(--riso-slip);
  box-shadow: var(--riso-offset-sm);
}
:root[data-kuyil-theme="riso"] .menu-tile__photo,
:root[data-kuyil-theme="riso"] .menu-tile__img--fallback {
  background: var(--riso-dots-pink) 0 0 / 11px 11px, var(--riso-paper);
  border: none;
}
:root[data-kuyil-theme="riso"] .menu-tile__name,
:root[data-kuyil-theme="riso"] .menu-card__line-name,
:root[data-kuyil-theme="riso"] .menu-sheet__title {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .menu-tile__price,
:root[data-kuyil-theme="riso"] .menu-sheet__price,
:root[data-kuyil-theme="riso"] .menu-sheet__chip-delta,
:root[data-kuyil-theme="riso"] .menu-card__subtotal,
:root[data-kuyil-theme="riso"] .menu-card__tax {
  font-family: var(--kuyil-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .menu-tile__badge,
:root[data-kuyil-theme="riso"] .concession-card__badge {
  background: var(--kuyil-accent-2);
  color: var(--riso-paper);
  font-family: var(--kuyil-font-mono);
  box-shadow: 4px 3px 0 0 color-mix(in srgb, var(--kuyil-accent) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .menu-card__total {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  color: var(--kuyil-accent-2);
  text-shadow: 0.05em 0.04em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="riso"] .menu-sheet__chip {
  min-height: 2.75rem;
  background: var(--riso-paper);
  border: var(--riso-keyline);
  color: var(--kuyil-text);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .menu-sheet__chip.is-selected {
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: 4px 3px 0 0 color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .menu-sheet__chip.is-selected .menu-sheet__chip-delta,
:root[data-kuyil-theme="riso"] .menu-sheet__chip.is-selected .menu-sheet__chip-desc {
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="riso"] .menu-sheet__add {
  background: var(--kuyil-accent-2);
  color: var(--riso-paper);
  border: none;
  box-shadow: 6px 5px 0 0 color-mix(in srgb, var(--kuyil-accent) 70%, transparent);
}

/* ---------------------------------------------------------------------------
   9. Cinema — posters, showtimes, hall, snacks, summary strip, ticket
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .poster-card__art,
:root[data-kuyil-theme="riso"] .concession-card__art {
  border: var(--riso-keyline);
  border-radius: calc(var(--kuyil-radius-card) * 0.6);
  box-shadow: var(--riso-offset-sm);
}
:root[data-kuyil-theme="riso"] .poster-card.is-selected .poster-card__art,
:root[data-kuyil-theme="riso"] .concession-card.is-selected .concession-card__art {
  border: 5px solid var(--kuyil-accent-2);
  box-shadow: 10px 9px 0 0 var(--kuyil-accent);
}
:root[data-kuyil-theme="riso"] .poster-card__title,
:root[data-kuyil-theme="riso"] .concession-card__name {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .poster-card.is-selected .poster-card__title,
:root[data-kuyil-theme="riso"] .concession-card.is-selected .concession-card__name {
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .poster-card__meta,
:root[data-kuyil-theme="riso"] .concession-card__price {
  font-family: var(--kuyil-font-mono);
  line-height: 1.35;
  color: var(--kuyil-ink-muted);
}

:root[data-kuyil-theme="riso"] .fnb-layout .cinema-showtime {
  background: var(--riso-paper);
  border: var(--riso-keyline);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-showtime.is-selected {
  border-color: var(--kuyil-accent-2);
  background: var(--riso-slip);
  box-shadow: 6px 5px 0 0 var(--kuyil-accent);
}
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-showtime__when {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-showtime.is-selected .cinema-showtime__when {
  color: var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-showtime__meta {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-ink-muted);
}
/* Idle cinema marquee name: flat two-ink print instead of the gold sweep. */
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-idle__name,
:root[data-kuyil-theme="riso"] .attract__name,
:root[data-kuyil-theme="riso"] .start__name {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--kuyil-accent-2);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0.045em 0.035em 0 color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
  animation: none;
}
:root[data-kuyil-theme="riso"] .attract__tagline,
:root[data-kuyil-theme="riso"] .start__tagline,
:root[data-kuyil-theme="riso"] .fnb-layout .cinema-idle__tagline {
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .attract__dot,
:root[data-kuyil-theme="riso"] .start__dot {
  background: var(--kuyil-accent);
  box-shadow: 0.35rem 0.25rem 0 0 color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .aw {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
}
:root[data-kuyil-theme="riso"] .start__button {
  background: var(--kuyil-accent);
  border: none;
  box-shadow: 10px 8px 0 0 color-mix(in srgb, var(--kuyil-accent-2) 80%, transparent);
}
:root[data-kuyil-theme="riso"] .start__label {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="riso"] .start__ring {
  border-color: var(--kuyil-accent-2);
}

/* Seat map — keyline seats, pink-ink picks, taken = halftone print. */
:root[data-kuyil-theme="riso"] .seat-map__screen {
  border-top: 5px solid var(--kuyil-accent-2);
  filter: none;
}
:root[data-kuyil-theme="riso"] .seat {
  border-color: color-mix(in srgb, var(--kuyil-accent-2) 70%, transparent);
  background: var(--riso-paper);
}
:root[data-kuyil-theme="riso"] .seat__id,
:root[data-kuyil-theme="riso"] .seat-map__letter {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .seat[data-state="taken"] {
  border-color: transparent;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--kuyil-accent-2) 45%, transparent) 1.6px, transparent 2.1px) 0 0 / 6px 6px,
    color-mix(in srgb, var(--kuyil-text) 6%, var(--riso-paper));
}
:root[data-kuyil-theme="riso"] .seat[data-state="selected"] {
  border-color: var(--kuyil-accent-2);
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: 3px 3px 0 0 var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .seat[data-state="selected"] .seat__id {
  color: var(--kuyil-on-accent);
}

:root[data-kuyil-theme="riso"] .booking-strip {
  font-family: var(--kuyil-font-ui);
  line-height: 1.35;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .booking-strip__movie {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .booking-strip__when,
:root[data-kuyil-theme="riso"] .booking-strip__qty {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .booking-strip__seat {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-text);
  background: var(--riso-paper);
  border: 2px solid var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .booking-strip__snack {
  background: color-mix(in srgb, var(--kuyil-accent) 18%, var(--riso-paper));
  border: 2px solid color-mix(in srgb, var(--kuyil-accent) 70%, transparent);
}

/* Ticket — ref + seats as stamped figures, QR on a white inset keylined blue */
:root[data-kuyil-theme="riso"] .ticket-card__seat {
  font-family: var(--kuyil-font-mono);
  font-weight: 500;
  color: var(--kuyil-text);
  background: var(--riso-paper);
  border: var(--riso-keyline);
}
:root[data-kuyil-theme="riso"] .ticket-card__movie {
  font-family: var(--kuyil-font-display);
  font-weight: 800;
  line-height: 1.3;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .ticket-card__when,
:root[data-kuyil-theme="riso"] .ticket-card__ref--small {
  font-family: var(--kuyil-font-mono);
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="riso"] .ticket-card__qr {
  border: var(--riso-keyline);
  box-shadow: none;
}
:root[data-kuyil-theme="riso"] .ticket-card__tap-wave {
  border-top-color: var(--kuyil-accent-2);
}

/* ---------------------------------------------------------------------------
   10. Duet's counter sheet — the second material becomes a halftone-washed
       slip edged with the blue rule (no dark throw on a light sheet).
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .fnb-layout .duet-sheet {
  border-block-start: 4px solid var(--kuyil-accent-2);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--kuyil-accent-2) 13%, transparent) 1.6px, transparent 2.1px) 0 0 / 12px 12px,
    var(--riso-slip);
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
   11. Kiosk scale — the refs print at poster size on the 1080×1920 sheet
       (26px field labels, 46–64px values, ~460px motif pair). The base
       components are tuned for an 820px iPad; on a real kiosk-class screen
       (both edges ≥ 1000px) riso lifts the type and the presence stage.
   --------------------------------------------------------------------------- */

/* Registration form: labels/values grow on a tall PORTRAIT kiosk only —
   landscape kiosks and iPads keep the base sizes because the dense 14-field
   form must fit row 3 whole (a hold-to-talk visitor cannot scroll; verified
   1920×1080 / 1280×1024 overflow at any larger size). Labels are tenant text
   in any script → line-height ≥ 1.3, no tracking. */
/* Portrait kiosk: the form owns a tall row — print it at near-ref size. */
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1600px) {
  :root[data-kuyil-theme="riso"] .reg-form {
    width: min(960px, 100%);
    padding-inline: var(--space-6);
  }
  :root[data-kuyil-theme="riso"] .reg-form__arrow {
    font-size: 1rem;
    line-height: 1.8;
  }
  :root[data-kuyil-theme="riso"] .reg-form__input {
    font-size: 1.5rem;
    min-height: 3.5rem;
  }
  :root[data-kuyil-theme="riso"] .reg-form__label,
  :root[data-kuyil-theme="riso"] .reg-form--dense .reg-form__label {
    font-size: 1.125rem;
    line-height: 1.35;
  }
  :root[data-kuyil-theme="riso"] .reg-form__value,
  :root[data-kuyil-theme="riso"] .reg-form--dense .reg-form__value {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  :root[data-kuyil-theme="riso"] .reg-form__row {
    padding-block: 0.45rem;
  }
}

/* Compact companion (guided form open): the riso discs only fill ~45% of
   their stage, so the stock min(8rem, 18vmin) reads as a speck. The size is
   an inline custom property on the stage (PresenceMotif) — !important is the
   only CSS route over it; scoped to riso + the compact container only. */
:root[data-kuyil-theme="riso"] .orb-container--compact .aura-stage {
  --orb-size: min(13rem, 24vmin) !important;
}

/* Hero stages on a tall portrait kiosk: the dead band between the brand row
   and the captions takes a bigger print (motif internals untouched — it is
   laid out in container units of this box). */
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1600px) {
  :root[data-kuyil-theme="riso"] .fnb-atelier .fnb-hero__stage {
    --orb-size: clamp(12rem, 44vw, 30rem);
  }
  :root[data-kuyil-theme="riso"] .fnb-focus .fnb-orb {
    --orb-size: clamp(220px, min(46vw, 30vh), 500px);
  }
  :root[data-kuyil-theme="riso"] .fnb-marquee .fnb-orb {
    --orb-size: clamp(160px, 32vw, 360px);
  }
}

/* OrderDock (portrait wrap mode): each line takes the full row and its
   steppers pin to the end, so the − / + pairs stack in one column instead of
   drifting with the name length. Names may wrap (long / Indic item names). */
@media (orientation: portrait) and (min-width: 600px) {
  :root[data-kuyil-theme="riso"] .order-dock__line {
    flex: 1 1 100%;
    min-width: 0;
  }
  :root[data-kuyil-theme="riso"] .order-dock__name {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  :root[data-kuyil-theme="riso"] .order-dock__step {
    margin-inline-start: auto;
  }
}

/* Caption columns sized for the riso print scale: Focus's 44ch reading
   column (ch of the 16px panel ≈ 370px) and Duet's half-width voice column
   would push a full reply past their caps and the auto-scroll hides the
   opening line. Focus gets a wider, slightly taller column on big screens;
   Duet keeps the previous, smaller caption size. */
@media (min-width: 1000px) and (min-height: 1000px) {
  :root[data-kuyil-theme="riso"] .fnb-focus .fnb-captions .chat-panel--captions {
    width: min(58rem, 100%);
    max-height: 32dvh;
  }
}
:root[data-kuyil-theme="riso"] .fnb-duet .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-size: clamp(1.25rem, 0.9rem + 2.4vmin, 2.75rem);
}
:root[data-kuyil-theme="riso"] .fnb-duet .chat-panel--captions .chat-line.user .chat-bubble {
  font-size: clamp(1rem, 0.8rem + 1.3vmin, 1.75rem);
}
:root[data-kuyil-theme="riso"] .fnb-duet .chat-panel--captions .chat-asklist li {
  font-size: clamp(1.05rem, 0.8rem + 1.5vmin, 2rem);
}

/* Portrait kiosk registration: ONE stamped column of label | value rows
   (F06) — long values (e-mail addresses) never break mid-word, and 14
   fields still fit the 42dvh row-3 cap at this height. */
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1600px) {
  :root[data-kuyil-theme="riso"] .reg-form,
  :root[data-kuyil-theme="riso"] .reg-form--dense {
    grid-template-columns: minmax(0, 1fr);
    --reg-label-w: 30%;
  }
}
/* Landscape: the stamped slip's perforation band and rows tighten so the
   7-row dense card fits the short form row whole. */
@media (orientation: landscape) {
  :root[data-kuyil-theme="riso"] .reg-form--dense {
    padding-top: calc(var(--space-2) + 12px);
  }
  :root[data-kuyil-theme="riso"] .reg-form--dense .reg-form__row {
    padding-block: 0.12rem;
  }
}

/* Small print on kiosk-class screens: poster / snack captions, the booking
   strip and the bill of fare were tuned for the iPad (≈12–14px) and read as
   lint on a 1080-wide sheet. Names may be tenant text in any script → they
   wrap (line-height ≥ 1.3), never tracked or uppercased. */
@media (min-width: 1000px) and (min-height: 1000px) {
  :root[data-kuyil-theme="riso"] .poster-card__title,
  :root[data-kuyil-theme="riso"] .concession-card__name {
    font-size: 1.15rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  :root[data-kuyil-theme="riso"] .poster-card__meta,
  :root[data-kuyil-theme="riso"] .concession-card__price {
    font-size: 0.95rem;
    line-height: 1.35;
  }
  :root[data-kuyil-theme="riso"] .booking-strip {
    font-size: 1.2rem;
  }
}
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1600px) {
  :root[data-kuyil-theme="riso"] .menu-list__heading {
    font-size: 1.5rem;
  }
  :root[data-kuyil-theme="riso"] .menu-list__items li {
    font-size: 1.3rem;
  }
}

/* Landscape: the caption column is half the sheet wide and height-capped,
   so the poster-size reply would scroll its opening line away — print it a
   size down (still ≥ 40px on a 1080-tall kiosk). */
@media (orientation: landscape) {
  :root[data-kuyil-theme="riso"] .chat-panel--captions .chat-line.assistant .chat-bubble,
  :root[data-kuyil-theme="riso"] .fnb-layout .fnb-chat .chat-panel--captions .chat-line.assistant .chat-bubble {
    font-size: clamp(1.25rem, 0.8rem + 2.2vmin, 2.5rem);
  }
  :root[data-kuyil-theme="riso"] .chat-panel--captions .chat-line.user .chat-bubble {
    font-size: clamp(1rem, 0.7rem + 1.5vmin, 1.75rem);
  }
  :root[data-kuyil-theme="riso"] .chat-asklist li,
  :root[data-kuyil-theme="riso"] .chat-panel--captions .chat-asklist li,
  :root[data-kuyil-theme="riso"] .fnb-layout .fnb-chat .chat-panel--captions .chat-asklist li {
    font-size: clamp(1.05rem, 0.7rem + 1.7vmin, 1.9rem);
  }
}
@media (orientation: landscape) and (min-height: 1000px) {
  /* Atelier's side-by-side voice column: a little more cap so reply +
     ask-list fit without the auto-scroll eating the first line. */
  :root[data-kuyil-theme="riso"] .fnb-atelier .fnb-chat {
    max-height: 42dvh;
  }
}

/* ---------------------------------------------------------------------------
   Control dock (.kiosk-dock) — the dotted-rule band (F03–F10): a 4px blue
   rule over a faint halftone field that deepens toward the bottom; restart
   at the start, talk centred, the end slot balancing it. The halftone is a
   z -1 pseudo so it prints UNDER the controls (and the orb plate above).
   --------------------------------------------------------------------------- */
:root[data-kuyil-theme="riso"] .kiosk-dock {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) auto minmax(5.5rem, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: var(--space-5);
  position: relative;
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
  padding: clamp(var(--space-4), 3vmin, 3rem) var(--space-3) var(--space-3);
  border-top: 4px solid var(--kuyil-accent-2);
}
:root[data-kuyil-theme="riso"] .kiosk-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--riso-dots-blue) 0 0 / 12px 12px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.45), #000);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.45), #000);
}
:root[data-kuyil-theme="riso"] .kiosk-dock > .mic-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-inline: 0;
}
:root[data-kuyil-theme="riso"] .kiosk-dock > .restart-btn {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  inset: auto;
  width: 5.5rem;
  height: 5.5rem;
  opacity: 1;
}
/* Top-bar clock (F03): the mono face, ink colour, tabular figures. */
:root[data-kuyil-theme="riso"] .kiosk-clock {
  font-family: var(--kuyil-font-mono);
  font-size: clamp(var(--text-base), 0.6rem + 1.1vmin, 1.65rem);
  font-weight: 500;
  color: var(--kuyil-text);
}
