/* Kora — design tokens and components.
   Ground: parchment and ink. Accents: monastic maroon, butter-lamp saffron, and three mineral
   pigments from thangka painting (malachite, azurite, vermilion), always flat, never glowing.
   The five prayer-flag colours appear only as the thin strip at the top of guest screens.
   Every text colour below passes WCAG AA (4.5:1) on the surface it is used on. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-bengali-bengali-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-bengali-bengali-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Tibetan"; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-tibetan-tibetan-400-normal.woff2") format("woff2"); }

@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

/* Kora — light. A quiet, luminous ground; colour is carried by the illustrations.
   Palette from Darjeeling itself: snow and mist, first-flush tea gold, tea-garden green,
   glacier blue, and door-lacquer red kept for the single moment your table is ready.
   Contrast (WCAG 2.x): ink 14.1:1 on snow · ink-soft 6.6:1 · tea 6.0:1 · gold-text 5.4:1 ·
   glacier 6.3:1 · white on tea 6.3:1 · lacquer 7.1:1. */

:root {
  --snow: #fbfaf6;
  --card: #ffffff;
  --mist: #eef2ef;
  --ink: #1e2a2f;
  --ink-soft: #4f5c60;
  --hair: #e2e0d8;
  --tea: #2f6b4f;
  --tea-dark: #245640;
  --tea-wash: #e4efe7;
  --gold: #a9771f;
  --gold-text: #86601a;
  --gold-wash: #f7eed9;
  --glacier: #2e6283;
  --glacier-wash: #e6eff5;
  --lacquer: #a3261e;
  --lacquer-wash: #fbeae6;
  --bead: #d9d4c7;
  --flag-blue: #2e5aac;
  --flag-white: #f4ecdc;
  --flag-red: #b8322a;
  --flag-green: #2f7d4f;
  --flag-yellow: #e2b23a;
  --e1: 0 1px 2px rgba(30, 42, 47, .06), 0 4px 12px rgba(30, 42, 47, .05);
  --e2: 0 12px 32px rgba(30, 42, 47, .08);
  --e3: 0 -8px 40px rgba(30, 42, 47, .10);
  --r-btn: 14px;
  --r-card: 20px;
  --r-photo: 24px;
  --r-sheet: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Noto Sans Devanagari", "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  --tibetan: "Noto Serif Tibetan", "Jomolhari", serif;
  /* names the staff screens share */
  --surface: var(--card); --stone: var(--ink-soft); --ivory: var(--ink); --line: var(--hair);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--snow); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; }
::selection { background: var(--gold-wash); }

.display, h1, h2, h3, .num-big, .price, .kpi b, .tk, .tno { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1.04; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 10vw, 3rem); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
.display { font-family: var(--display); font-weight: 600; }
.italic { font-family: var(--display); font-style: italic; font-weight: 500; }
.label, .eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.eyebrow .tib { letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 1rem; }
.muted { color: var(--ink-soft); }
.tib { font-family: var(--tibetan); color: var(--gold-text); }
.ne { font-family: "Noto Sans Devanagari", var(--body); }
.wordmark { font-size: 0.8rem; letter-spacing: 0.42em; font-weight: 800; color: var(--ink); text-decoration: none; }

.flags { height: 3px; display: grid; grid-template-columns: repeat(5, 1fr); }
.flags i:nth-child(1) { background: var(--flag-blue); }
.flags i:nth-child(2) { background: var(--flag-white); }
.flags i:nth-child(3) { background: var(--flag-red); }
.flags i:nth-child(4) { background: var(--flag-green); }
.flags i:nth-child(5) { background: var(--flag-yellow); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.brand b { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-weight: 700; }

/* ── guest layout ────────────────────────────────────────────────────────────────────────── */

.shell { max-width: 480px; margin: 0 auto; padding: 0 0 32px; position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.pad { padding-left: 20px; padding-right: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; flex-wrap: wrap; position: relative; z-index: 2; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rule { height: 1px; background: var(--hair); margin: 18px 0; border: 0; }
.above { position: relative; z-index: 1; }

.hero { position: relative; overflow: hidden; margin-top: -62px; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
.hero-bg { position: absolute; inset: 0; background: url("../img/photo/dawn.jpg") 50% 0 / cover no-repeat; animation: drift 26s ease-out forwards; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 1; background: linear-gradient(180deg, rgba(251, 250, 246, .72), rgba(251, 250, 246, 0)); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 250, 246, 0) 38%, rgba(251, 250, 246, .88) 70%, var(--snow) 88%); }
.hero-copy { position: relative; margin: 0 20px; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.hero-copy .italic { font-size: 1.25rem; line-height: 1.4; color: var(--ink-soft); }
.horizon { position: fixed; left: 0; right: 0; bottom: 0; height: 30dvh; background: url("../img/photo/street.jpg") 50% 70% / cover no-repeat; opacity: .16; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }

.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .86); border: 1px solid var(--hair); font-size: 0.88rem; font-weight: 600; color: var(--ink); box-shadow: var(--e1); }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--tea); animation: breathe 2.4s ease-in-out infinite; }

.panel { background: var(--card); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 26px 20px 26px; position: relative; z-index: 1; box-shadow: var(--e3); }
.card { background: var(--card); border-radius: var(--r-card); padding: 20px; box-shadow: var(--e1); }
.card.quiet { box-shadow: none; border: 1px solid var(--hair); }

/* ── controls ────────────────────────────────────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: var(--r-btn); border: 1.5px solid transparent; background: var(--tea); color: #fff; font-weight: 800; letter-spacing: 0.01em; transition: transform .12s ease, background .2s ease; text-decoration: none; }
.btn:hover { background: var(--tea-dark); }
.btn:active { transform: scale(.985); }
.btn:disabled { background: var(--mist); color: var(--ink-soft); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.spread-btn { justify-content: space-between; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--tea); color: var(--tea); }
.btn.outline { background: var(--card); color: var(--tea); border-color: var(--tea); }
.btn.lacquer { background: var(--lacquer); color: #fff; }
.btn.lacquer-outline { background: var(--card); color: var(--lacquer); border-color: var(--lacquer); }
.btn.gold { background: var(--gold-wash); color: var(--gold-text); border-color: #ead9b0; }
.btn.small { min-height: 48px; padding: 0 18px; font-size: 0.98rem; }
.btn.danger { background: var(--card); color: var(--lacquer); border-color: #e6b8b2; }
.btn.confirm { background: var(--lacquer); color: #fff; border-color: var(--lacquer); }
.btn svg { flex: none; }
.link { background: none; border: 0; padding: 0 4px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; }
.link.confirm { color: var(--lacquer); }

.field { display: block; }
.field > span { display: block; margin-bottom: 8px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.input { width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1.5px solid #b9c2bd; background: transparent; color: var(--ink); font-family: var(--display); font-size: 1.75rem; }
.input::placeholder { color: #9aa5a1; }
.input:focus { outline: none; border-bottom-color: var(--tea); box-shadow: 0 1.5px 0 var(--tea); }
.input.box { border: 1.5px solid var(--hair); border-radius: var(--r-btn); padding: 0 16px; font-family: var(--body); font-size: 1.05rem; background: var(--card); }

.sizes { display: flex; justify-content: space-between; gap: 6px; }
.sizes button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #c9d0cc; background: var(--card); font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--ink); padding: 0; }
.sizes button[aria-pressed="true"] { background: var(--tea); border-color: var(--tea); color: #fff; font-weight: 700; }

.zones { display: grid; gap: 8px; }
.zones button { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; border-radius: var(--r-btn); border: 1.5px solid var(--hair); background: var(--card); text-align: left; font-weight: 600; }
.zones button small { color: var(--ink-soft); font-weight: 600; }
.zones button[aria-pressed="true"] { border-color: var(--tea); background: var(--tea-wash); color: var(--tea-dark); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--tea); border-radius: 999px; background: var(--card); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--tea); }
.stepper button:disabled { color: #b9c2bd; }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid var(--hair); box-shadow: var(--e1); }
.seg button { border: 0; background: none; min-height: 38px; min-width: 44px; padding: 0 11px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.chip.held { background: var(--gold-wash); color: var(--gold-text); }
.chip.queued { background: var(--glacier-wash); color: var(--glacier); }
.chip.cooking { background: var(--gold-wash); color: var(--gold-text); }
.chip.ready { background: var(--tea-wash); color: var(--tea); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.cooking .dot { animation: breathe 1.6s ease-in-out infinite; }

/* ── the mala ────────────────────────────────────────────────────────────────────────────── */

.mala { position: relative; width: min(76vw, 288px); aspect-ratio: 1; margin: 0 auto; }
.mala svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mala .bead { fill: var(--bead); }
.mala .bead.lit { fill: var(--gold); }
.mala .guru { fill: var(--gold); stroke: var(--gold-wash); stroke-width: 4; paint-order: stroke; }
.mala .centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.num-big { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(6rem, 32vw, 8rem); line-height: .88; color: var(--ink); }
.status-line { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; text-align: center; }
.status-sub { font-size: 1.05rem; color: var(--ink-soft); text-align: center; font-weight: 600; }

/* the five-minute heads-up: the page warms to tea-gold; no red until the call */
body.heads-up { background: var(--gold-wash); transition: background 1.2s ease; }
.heads-up-band { background: var(--card); border-radius: var(--r-card); box-shadow: var(--e2); padding: 18px 20px; margin-top: 16px; border-left: 6px solid var(--gold); }
.heads-up-band .display { font-size: 1.6rem; line-height: 1.15; }

/* ── called: the one lacquer moment, on a light page ─────────────────────────────────────── */

.called-screen { position: fixed; inset: 0; z-index: 50; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 30px 20px 24px; gap: 12px; background: var(--snow); color: var(--ink); text-align: center; animation: rise .45s ease both; }
.called-screen > * { position: relative; flex-shrink: 0; }
.called-screen .rays { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 760px; height: 520px; pointer-events: none; }
.window { position: relative; width: 236px; height: 276px; margin-top: 8px; filter: drop-shadow(0 14px 28px rgba(163, 38, 30, .16)); }
.window svg { position: absolute; inset: 0; }
.window .inside { position: absolute; left: 0; right: 0; top: 76px; display: flex; flex-direction: column; align-items: center; }
.window .label { color: var(--gold-text); font-size: .62rem; }
.window .big { font-family: var(--display); font-weight: 700; font-size: 8rem; line-height: .95; color: var(--lacquer); font-variant-numeric: lining-nums; }
.called-screen h1 { font-size: 2.5rem; margin-top: 12px; }
.called-screen .italic { font-size: 1.2rem; color: var(--ink-soft); max-width: 360px; }
.stub { width: 100%; max-width: 420px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--e2); display: flex; text-align: left; overflow: hidden; margin-top: 8px; }
.stub .main { flex: 1; padding: 14px 18px; }
.stub .main .display { font-size: 1.55rem; }
.stub .side { width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 2px dashed var(--hair); margin: 10px 0; }
.stub .side b { font-family: var(--display); font-size: 2rem; color: var(--lacquer); line-height: 1; display: block; margin-bottom: 4px; }

/* ── menu sheet ──────────────────────────────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(30, 42, 47, .28); display: flex; align-items: flex-end; animation: fade .2s ease both; }
.sheet-body { background: var(--card); width: 100%; max-width: 640px; margin: 0 auto; height: 96dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--e3); display: flex; flex-direction: column; overflow: hidden; animation: slide .32s var(--ease) both; position: relative; }
.sheet-head { padding: 22px 20px 0; }
.sheet-head h2 { font-size: 2.4rem; }
.sheet-note { padding: 8px 20px 0; color: var(--ink-soft); font-size: .92rem; }
.close-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--hair); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; }
.tabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 20px; margin-top: 16px; scrollbar-width: none; border-bottom: 1px solid var(--hair); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 46px; border: 0; border-bottom: 2.5px solid transparent; background: none; padding: 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.tabs button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--tea); font-weight: 800; }
.menu-scroll { overflow-y: auto; padding: 4px 20px 150px; flex: 1; }
.cat-title { padding: 26px 0 8px; }
.cat-title h3 .ne, .cat-photo h3 .ne { font-family: "Noto Sans Devanagari", var(--body); font-size: .95rem; color: var(--ink-soft); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.cat-title .italic, .cat-photo .italic { font-size: 1.1rem; color: var(--ink-soft); display: block; margin-top: 2px; }
.cat-photo { margin: 22px 0 6px; }
.cat-photo .art { height: 190px; border-radius: var(--r-photo); background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: var(--e1); }
.cat-photo .cap { padding: 14px 2px 0; }
.cat-photo .steam { position: absolute; bottom: 42%; width: 24px; height: 80px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .9), transparent 70%); filter: blur(7px); opacity: 0; animation: steam 4.5s ease-in infinite; }
.cat-photo .steam:nth-child(1) { left: 36%; }
.cat-photo .steam:nth-child(2) { left: 44%; animation-delay: 1.4s; }
.cat-photo .steam:nth-child(3) { left: 52%; animation-delay: 2.6s; }
.item { padding: 16px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.item .head { display: flex; align-items: baseline; gap: 10px; }
.item .name { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.item .name .ne { font-family: "Noto Sans Devanagari", var(--body); font-weight: 400; color: var(--ink-soft); font-size: .85rem; margin-left: 8px; }
.item .leader { flex: 1; border-bottom: 1.5px dotted rgba(169, 119, 31, .55); transform: translateY(-5px); min-width: 20px; }
.item .price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--gold-text); }
.item .body { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.item .desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.item.out .name { color: #8a9692; text-decoration: line-through; }
.item .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--tea); }
.add { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tea); background: var(--card); color: var(--tea); font-size: 1.35rem; flex: none; padding: 0; }
.finished { font-size: .68rem; letter-spacing: .16em; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.slipbar { position: absolute; left: 16px; right: 16px; bottom: 16px; min-height: 68px; padding: 8px 8px 8px 22px; background: var(--tea); color: #fff; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--e2); }
.slipbar small { display: block; font-size: .8rem; font-weight: 700; color: #d9ebe0; }
.slipbar b { font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.slipbar .btn { background: #fff; color: var(--tea-dark); min-height: 50px; border-radius: 12px; }
.slipbar .btn:disabled { background: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); }

/* the slip — a paper order slip, as Kunga has always used */
.slip { position: relative; background: var(--card); border-radius: 4px 4px var(--r-card) var(--r-card); padding: 20px 20px 18px; box-shadow: var(--e2); margin-top: 14px; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 9px; background: radial-gradient(circle at 6px 9px, var(--card) 6px, transparent 6.5px) -6px 0 / 12px 9px repeat-x; }
.slip .line { display: flex; align-items: baseline; gap: 8px; font-size: 1rem; line-height: 1.9; }
.slip .line b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--gold-text); min-width: 14px; }
.slip .line .lead { flex: 1; border-bottom: 1.5px dotted #d6c7a5; transform: translateY(-4px); }
.slip .total { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 6px; font-weight: 800; }
.slip .state { font-size: .8rem; font-weight: 700; color: var(--gold-text); }
.slip .state.cooking { color: var(--gold-text); }
.slip .state.queued { color: var(--glacier); }
.slip .state.ready, .slip .state.served { color: var(--tea); }
.slip .note { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }
.slip + .slip { margin-top: 22px; }
.order-cta { margin-top: 14px; }

.notice { padding: 14px 16px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--e1); font-size: .98rem; line-height: 1.5; }
.notice.warm { background: var(--gold-wash); box-shadow: none; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 8px 8px 18px; border-radius: 16px; z-index: 90; font-weight: 700; display: flex; align-items: center; gap: 12px; animation: rise .25s ease both; max-width: calc(100vw - 32px); min-height: 52px; box-shadow: var(--e2); }
.toast button { min-height: 44px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font-weight: 800; padding: 0 16px; }

.story { border-radius: var(--r-photo); overflow: hidden; position: relative; margin-top: 28px; background: var(--card); box-shadow: var(--e1); }
.story .art { height: 190px; background-size: cover; background-position: center; }
.story p { margin: 0; padding: 16px 18px 18px; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.38; color: var(--ink); }

.foot { text-align: center; color: var(--ink-soft); font-size: .8rem; padding: 30px 20px 0; position: relative; z-index: 1; }
.foot .italic { display: block; font-size: 1.05rem; color: var(--ink-soft); margin-top: 2px; }

/* ── onboarding ──────────────────────────────────────────────────────────────────────────── */

.onboard { position: fixed; inset: 0; z-index: 70; background: var(--snow); overflow: hidden; color: var(--ink); }
.onboard .slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.1s ease; }
.onboard .slide.on { opacity: 1; }
.onboard .art { position: absolute; left: 0; right: 0; top: 0; height: 64%; background-size: cover; background-position: center top; transform: scale(1.04); }
.onboard .slide.on .art { animation: drift 10s ease-out forwards; }
.onboard .art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 1; background: linear-gradient(180deg, rgba(251, 250, 246, .7), rgba(251, 250, 246, 0)); }
.onboard .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 250, 246, 0) 55%, var(--snow) 98%); }
.onboard .copy { position: absolute; left: 24px; right: 24px; bottom: 124px; display: flex; flex-direction: column; gap: 12px; }
.onboard .copy > * { opacity: 0; transform: translateY(16px); }
.onboard .slide.on .copy > * { animation: rise-in 1s var(--ease) forwards; }
.onboard .slide.on .copy > *:nth-child(2) { animation-delay: .22s; }
.onboard .slide.on .copy > *:nth-child(3) { animation-delay: .44s; }
.onboard h1 { font-size: clamp(2.5rem, 10.5vw, 3rem); }
.onboard .copy .italic { font-size: 1.2rem; line-height: 1.42; color: var(--ink-soft); }
.onboard .copy .label { color: var(--gold-text); }
.onboard .beads { position: absolute; left: 24px; bottom: 96px; display: flex; gap: 8px; z-index: 2; }
.onboard .beads i { width: 9px; height: 9px; border-radius: 50%; background: var(--bead); transition: background .4s ease, transform .4s ease; }
.onboard .beads i.on { background: var(--gold); transform: scale(1.25); }
.onboard .top-row { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.onboard .skip { background: rgba(255, 255, 255, .8); border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); font-size: .74rem; letter-spacing: .18em; font-weight: 800; min-height: 40px; padding: 0 14px; }
.onboard .actions { position: absolute; left: 24px; right: 24px; bottom: 28px; z-index: 2; }
.onboard .tap { position: absolute; inset: 0 0 110px 0; z-index: 1; background: none; border: 0; }

/* ── motion: slow, like mist; all of it stops under prefers-reduced-motion ──────────────── */

.mist { position: absolute; left: -20%; right: -20%; height: 26%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55), transparent 65%); filter: blur(12px); animation: mist 22s ease-in-out infinite alternate; z-index: 0; }
.panel.rise { animation: panel-in .9s var(--ease) both; }
.hero-copy > * { animation: rise-in 1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.mala .bead, .mala .guru { opacity: 0; animation: bead-in .5s ease forwards; }
.mala .guru { animation: bead-in .5s ease forwards, guru 2.8s ease-in-out 1.6s infinite; }
.num-big { animation: rise-in 1s var(--ease) both .2s; }
.called-screen .rays { animation: spin 90s linear infinite; transform-origin: 50% 48%; }
.window { animation: window-in 1s var(--ease) both; }
.called-screen h1, .called-screen .italic, .called-screen .stub { animation: rise-in .9s var(--ease) both .35s; }
.called-screen .stub { animation-delay: .55s; }
.item, .slip { animation: rise-in .7s var(--ease) both; }
.slipbar.bump { animation: bump .35s ease; }
.heads-up-band { animation: rise-in .9s var(--ease) both; }

@keyframes drift { from { transform: scale(1.1) translate3d(0, 1.2%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateY(40px); opacity: .4; } }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes mist { from { transform: translateX(-6%); opacity: .5; } to { transform: translateX(6%); opacity: .9; } }
@keyframes panel-in { from { transform: translateY(60px); opacity: 0; } }
@keyframes bead-in { to { opacity: 1; } }
@keyframes guru { 50% { stroke-width: 8; } }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes window-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(18px) scaleX(.8); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-64px) scaleX(1.6); } }
@keyframes bump { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .mala .bead, .mala .guru, .onboard .copy > * { opacity: 1; transform: none; } }

/* ── staff shell ─────────────────────────────────────────────────────────────────────────── */

.wide { max-width: 1440px; margin: 0 auto; padding: 22px 28px 60px; }
.pin-gate { max-width: 400px; margin: 14vh auto; text-align: center; padding: 32px 28px; background: var(--card); border-radius: 24px; box-shadow: var(--e2); }
.pin-gate .input { text-align: center; letter-spacing: .5em; font-size: 2rem; }

/* Devanagari and Bengali must never be letter-spaced or upper-cased: it breaks the conjuncts */
html[lang="ne"] .label, html[lang="ne"] .eyebrow, html[lang="hi"] .label, html[lang="hi"] .eyebrow,
html[lang="bn"] .label, html[lang="bn"] .eyebrow { letter-spacing: .01em; text-transform: none; font-size: .9rem; }
