/* ============================================================
   Annadhanam · design system
   Temple palette (maroon, saffron, gold) on warm cream.
   Motion: CSS-only + View Transitions; honours reduced motion.
   ============================================================ */
:root {
  --maroon-900: #3d0d0d;
  --maroon-800: #561313;
  --maroon-700: #6f1a1a;
  --maroon-600: #8a2323;
  --saffron-600: #d9620a;
  --saffron-500: #ef7d1a;
  --saffron-400: #f79a3e;
  --gold-500: #d4a017;
  --gold-300: #f1d27a;
  --cream-50: #fffaf3;
  --cream-100: #fbf1e3;
  --cream-200: #f3e3cc;
  /* Page sits a clear step darker than cards so white surfaces read as raised. */
  --page: #f1e2cb;
  --line: #e2cba9;
  --ink-900: #24140d;
  --ink-600: #5c4637;   /* 7:1 on page */
  --ink-400: #74604f;   /* 4.6:1 on page: minimum for small text */
  --ok-600: #157347;
  --ok-100: #e2f5ea;
  --err-600: #b42318;
  --err-100: #fdecea;
  --white: #fff;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(61, 13, 13, .08), 0 6px 16px -10px rgba(61, 13, 13, .28);
  --shadow-md: 0 8px 24px -10px rgba(61, 13, 13, .22), 0 2px 6px rgba(61, 13, 13, .06);
  --shadow-lg: 0 24px 48px -18px rgba(61, 13, 13, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Manrope", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-te: "Noto Sans Telugu", "Manrope", system-ui, sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html:lang(te) body { font-family: var(--font-te); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .12s ease-out both; }
::view-transition-new(root) { animation: vt-in .22s var(--ease-out) both; }
::view-transition-group(bottomnav), ::view-transition-group(topbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  background: radial-gradient(900px 380px at 50% -160px, #f8d9b0 0%, transparent 70%), var(--page);
  color: var(--ink-900); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
}
a { color: var(--maroon-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar {
  view-transition-name: topbar;
  position: sticky; top: 0; z-index: 30;
  background: rgba(86, 19, 19, .92); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: #fff; border-bottom: 1px solid rgba(241, 210, 122, .25);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.mark {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--saffron-500), var(--maroon-600));
  box-shadow: inset 0 0 0 1.5px rgba(241, 210, 122, .65); font-weight: 800; color: var(--gold-300);
  font-family: var(--font-te); font-size: 20px;
}
.brand { color: #fff; text-decoration: none; min-width: 0; flex: 1; line-height: 1.2; }
.brand b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { display: block; font-size: 12px; color: var(--gold-300); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-toggle {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 7px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); white-space: nowrap;
  transition: background .2s;
}
.lang-toggle:active { background: rgba(255, 255, 255, .15); }

/* ---------- bottom navigation ---------- */
.bottomnav {
  view-transition-name: bottomnav;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding-bottom: var(--safe-b);
  background: rgba(255, 250, 243, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(61, 13, 13, .25);
}
.bottomnav .wrap { display: grid; grid-template-columns: repeat(3, 1fr); height: var(--nav-h); }
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-400); text-decoration: none; font-size: 12px; font-weight: 700; position: relative;
  transition: color .2s;
}
.bottomnav svg { width: 24px; height: 24px; transition: transform .35s var(--ease-spring); }
.bottomnav a.on { color: var(--maroon-700); }
.bottomnav a.on svg { transform: translateY(-2px) scale(1.08); }
.bottomnav a.on::before {
  content: ""; position: absolute; top: 8px; width: 44px; height: 30px; border-radius: 999px;
  background: rgba(239, 125, 26, .14); z-index: -1; animation: navpill .4s var(--ease-spring);
}
@keyframes navpill { from { transform: scaleX(.4); opacity: 0; } }

main { padding: 18px 0 28px; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 14px; color: var(--maroon-800); }
h2 { font-size: 17px; letter-spacing: -.01em; margin: 26px 0 12px; color: var(--maroon-800); display: flex; align-items: center; gap: 8px; }
.muted { color: var(--ink-600); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-600); }

/* ---------- entrance motion ---------- */
/* Content is visible immediately (no opacity hold); it only settles into place. */
.reveal { animation: rise .45s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 6) * 40ms); }
@keyframes rise { from { opacity: .4; transform: translateY(10px); } }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin: 12px 0; box-shadow: var(--shadow-sm);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  border-radius: var(--radius-lg); padding: 26px 20px 22px; margin-top: 4px;
  background: linear-gradient(160deg, var(--maroon-700) 0%, var(--maroon-900) 70%);
  box-shadow: var(--shadow-lg);
}
.hero::before { /* slowly turning rays */
  content: ""; position: absolute; inset: -60%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(241, 210, 122, .10) 0deg 6deg, transparent 6deg 18deg);
  animation: spin 80s linear infinite;
}
.hero::after { /* sunrise glow */
  content: ""; position: absolute; left: 50%; top: -120px; width: 420px; height: 420px; z-index: -1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 154, 62, .55) 0%, rgba(239, 125, 26, .18) 40%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.08); opacity: .85; } }
.hero .eyebrow { color: var(--gold-300); }
.date-chip {
  display: inline-block; margin: 10px 0 2px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(241, 210, 122, .16); border: 1px solid rgba(241, 210, 122, .35); color: #fff;
}
.ticket-date { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .12); }
.hero-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 4px; }
.hero-sub { color: rgba(255, 255, 255, .82); margin: 0 0 16px; }
.state {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; font-size: 15px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-300); flex: none; position: relative; }
.dot.live { background: #4ade80; }
.dot.live::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #4ade80;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 14px 18px; margin: 12px 0 0;
  border: 0; border-radius: var(--radius-md); cursor: pointer; text-decoration: none;
  font: inherit; font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  color: var(--maroon-900);
  background: linear-gradient(180deg, var(--gold-300), #e9b949);
  box-shadow: 0 10px 24px -10px rgba(212, 160, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .18s var(--ease-out), box-shadow .2s, filter .2s;
}
.btn::after { /* sheen */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: sheen 3.6s ease-in-out infinite 1.2s;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: scale(.975); }
.btn.primary { color: #fff; background: linear-gradient(180deg, var(--saffron-500), var(--saffron-600));
  box-shadow: 0 12px 26px -12px rgba(217, 98, 10, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { color: var(--maroon-700); background: var(--white); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost::after, .btn.danger::after, .btn[disabled]::after { display: none; }
.btn.danger { color: var(--err-600); background: var(--white); border: 1.5px solid #f3c7c2; box-shadow: none; }
.btn[disabled] { color: var(--ink-400); background: var(--cream-100); box-shadow: none; cursor: not-allowed; }
.btn.small { display: inline-flex; width: auto; min-height: 38px; font-size: 14px; padding: 8px 14px; margin: 0; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: .9; }
.hero .btn { margin-top: 16px; }
.linkbtn { background: none; border: 0; color: var(--maroon-700); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }

/* ---------- toast (flash) ---------- */
.toast {
  position: fixed; left: 50%; top: 72px; z-index: 60; width: min(92vw, 520px);
  transform: translateX(-50%); display: flex; gap: 10px; align-items: center;
  padding: 14px 16px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow-lg);
  animation: toast-in .5s var(--ease-spring) both, toast-out .4s ease-in 5.5s forwards;
}
.toast.ok { background: var(--ok-600); color: #fff; }
.toast.error { background: var(--err-600); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -24px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -16px); visibility: hidden; } }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; font-weight: 600; font-size: 15px; animation: shake .45s var(--ease-out); }
.alert.error { background: var(--err-100); color: var(--err-600); border: 1px solid #f6cdc8; }
.alert.info { background: #fff3e2; color: var(--saffron-600); border: 1px solid #f8dcb8; animation: none; }
.alert.notice { background: var(--white); border: 1.5px dashed var(--gold-500); color: var(--maroon-700); animation: none; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 7px; color: var(--ink-900); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], textarea, select {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 14px; color: var(--ink-900);
  background: var(--cream-50); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--saffron-500); background: #fff; box-shadow: 0 0 0 4px rgba(239, 125, 26, .16); }
.field-prefix { display: flex; align-items: stretch; }
.field-prefix span {
  display: grid; place-items: center; padding: 0 14px; font-weight: 800; color: var(--ink-600);
  background: var(--cream-100); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.field-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; letter-spacing: .04em; }
.otp {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 30px !important; font-weight: 800;
  letter-spacing: .6em; text-align: center; padding-left: calc(14px + .6em) !important;
}
.check {
  display: flex; gap: 12px; align-items: center; margin: 18px 0 4px; padding: 14px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream-50); font-weight: 700;
  transition: border-color .2s, background .2s;
}
.check input { appearance: none; width: 26px; height: 26px; flex: none; margin: 0; border-radius: 8px; border: 2px solid var(--ink-400); background: #fff; display: grid; place-items: center; transition: all .25s var(--ease-spring); }
.check input:checked { background: var(--saffron-500); border-color: var(--saffron-500); transform: scale(1.06); }
.check input:checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:has(input:checked) { border-color: var(--saffron-500); background: #fff6ec; }

.steps { display: flex; gap: 6px; margin: 4px 0 12px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--cream-200); overflow: hidden; position: relative; }
.steps i.on::after { content: ""; position: absolute; inset: 0; background: var(--saffron-500); animation: fill .8s var(--ease-out) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

.member {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; margin-bottom: 10px;
  border-radius: var(--radius-md); background: var(--cream-50); border: 1px solid var(--line);
  animation: pop .45s var(--ease-spring) both;
}
.member.leaving { animation: unpop .25s ease-in forwards; }
.member .num { position: absolute; top: -9px; left: 12px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--maroon-700); color: #fff; }
.member input { font-size: 16px; padding: 12px; background: #fff; }
.member .rm { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-400); font-size: 22px; line-height: 1; cursor: pointer; }
.member .rm:active { background: var(--err-100); color: var(--err-600); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes unpop { to { opacity: 0; transform: scale(.95); height: 0; margin: 0; padding: 0; } }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 5; }

/* ---------- slot picker ---------- */
.slots { display: grid; gap: 10px; }
.slot {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time seats" "meta meta" "bar bar";
  gap: 2px 10px; margin: 0; padding: 14px 16px 12px 48px; cursor: pointer; font-weight: 400;
  border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--cream-50);
  transition: border-color .2s, background .2s, transform .25s var(--ease-spring), box-shadow .25s;
}
.slot input { position: absolute; left: 16px; top: 17px; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid var(--ink-400); background: #fff; transition: all .25s var(--ease-spring); }
.slot input:checked { border: 7px solid var(--saffron-500); }
.slot:has(input:checked) { border-color: var(--saffron-500); background: #fff6ec; box-shadow: 0 8px 20px -12px rgba(217, 98, 10, .7); transform: scale(1.015); }
.slot:active { transform: scale(.985); }
.slot-time { grid-area: time; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.slot-meta { grid-area: meta; font-size: 13px; color: var(--ink-600); }
.slot-seats { grid-area: seats; align-self: center; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--ok-100); color: var(--ok-600); white-space: nowrap; }
.slot-bar { grid-area: bar; height: 5px; border-radius: 9px; background: var(--cream-200); overflow: hidden; margin-top: 8px; }
.slot-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--saffron-500)); transform-origin: left; animation: fill 1s var(--ease-out) both .2s; }
.slot.off { cursor: not-allowed; opacity: .55; }
.slot.off .slot-seats { background: var(--cream-100); color: var(--ink-600); }

/* ---------- batches ---------- */
.batches { display: grid; gap: 10px; }
.batch {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.batch .badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; text-align: center;
  background: var(--cream-100); color: var(--maroon-700); font-weight: 800; line-height: 1;
}
.batch .badge small { display: block; font-size: 9px; letter-spacing: .1em; font-weight: 800; color: var(--ink-400); margin-bottom: 2px; }
.batch.is-called .badge { background: var(--saffron-500); color: #fff; }
.batch.is-called .badge small { color: rgba(255, 255, 255, .8); }
.batch .time { font-weight: 800; font-size: 16px; }
.meter { height: 7px; border-radius: 99px; background: var(--cream-100); overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-500), var(--saffron-500)); transform-origin: left; animation: fill 1.2s var(--ease-out) both .2s; }
.pill { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill.open { background: var(--ok-100); color: var(--ok-600); }
.pill.full { background: var(--cream-100); color: var(--ink-600); }
.pill.called { background: #fff0e0; color: var(--saffron-600); }

/* ---------- photos ---------- */
.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream-200); box-shadow: var(--shadow-md); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.gallery img.on { opacity: 1; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1); } }
.gallery .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery .dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .4s var(--ease-out), background .4s; }
.gallery .dots i.on { width: 20px; background: #fff; }
.gallery::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); pointer-events: none; }
.photo-ph {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; gap: 6px;
  color: var(--ink-400); font-size: 14px; font-weight: 600; padding: 16px;
  background: repeating-linear-gradient(135deg, #fff 0 12px, var(--cream-50) 12px 24px); border: 1.5px dashed var(--line);
}

/* ---------- how it works ---------- */
.how { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.how li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; color: var(--maroon-700); background: linear-gradient(145deg, #fff3df, var(--cream-100)); border: 1px solid var(--line);
}

/* ---------- token ticket ---------- */
.ticket {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(165deg, var(--maroon-600), var(--maroon-900)); box-shadow: var(--shadow-lg);
  animation: ticket-in .9s var(--ease-spring) both;
}
@keyframes ticket-in { from { opacity: 0; transform: translateY(24px) rotateX(18deg) scale(.96); } }
.ticket .top { padding: 22px 20px 26px; position: relative; isolation: isolate; }
.ticket .top::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background: repeating-conic-gradient(rgba(241, 210, 122, .08) 0deg 5deg, transparent 5deg 15deg); animation: spin 120s linear infinite;
}
.ticket .label { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.ticket .no { font-size: 84px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 10px 0 8px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket .when { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 800; }
.ticket .perf { position: relative; height: 0; border-top: 2px dashed rgba(241, 210, 122, .45); margin: 0 18px; }
.ticket .perf::before, .ticket .perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-50); }
.ticket .perf::before { left: -31px; } .ticket .perf::after { right: -31px; }
.ticket .bottom { padding: 16px 18px 20px; background: rgba(0, 0, 0, .12); }

.status {
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; font-size: 15px;
  transition: background .4s, color .4s;
}
.status .ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 18px; }
.status .txt { min-width: 0; }
.status .txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.status.swap .txt { animation: swap .5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.status.next { background: rgba(241, 210, 122, .22); border-color: rgba(241, 210, 122, .5); }
.status.missed { background: rgba(255, 255, 255, .92); color: var(--err-600); }
.status.turn { background: #16a34a; border-color: #4ade80; }

.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: var(--maroon-700); background: var(--cream-100); }
.people .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.people .tok { font-weight: 800; color: var(--maroon-700); font-variant-numeric: tabular-nums; }

/* ---------- "your turn" takeover ---------- */
.takeover {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center; text-align: center; padding: 24px; color: #fff;
  background: radial-gradient(circle at 50% 40%, #22c55e, #14532d 75%);
}
.takeover.show { display: grid; animation: fadein .35s ease both; }
.takeover .ring { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); position: relative; }
.takeover .ring::before, .takeover .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); animation: ripple 2s var(--ease-out) infinite; }
.takeover .ring::after { animation-delay: 1s; }
.takeover .ring b { font-size: 52px; font-weight: 800; letter-spacing: -.03em; }
.takeover h3 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.takeover p { margin: 0 0 24px; opacity: .9; }
.takeover .btn { max-width: 320px; margin: 0 auto; }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- celebration petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.petals i {
  position: absolute; top: -30px; width: 14px; height: 18px; border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, var(--saffron-400), var(--saffron-600));
  animation: fall var(--d, 3.2s) cubic-bezier(.3, .4, .6, 1) forwards; animation-delay: var(--delay, 0s); opacity: .95;
}
.petals i:nth-child(3n) { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }
.petals i:nth-child(4n) { background: linear-gradient(135deg, #f87171, #b91c1c); width: 11px; height: 14px; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  100% { transform: translate3d(var(--x, 40px), 110vh, 0) rotate(var(--r, 540deg)); opacity: .9; }
}

/* ---------- misc ---------- */
.empty { text-align: center; padding: 30px 18px; }
.empty .icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: var(--cream-100); font-size: 34px; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row .ic { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--cream-100); color: var(--maroon-700); }
.info-row .ic svg { width: 20px; height: 20px; }
footer { text-align: center; color: var(--ink-400); font-size: 12px; padding: 8px 20px 24px; }
footer .mantra { font-weight: 800; color: var(--maroon-700); font-size: 13px; margin-top: 6px; letter-spacing: .02em; }

/* ---------- staff ---------- */
body.staff { padding-bottom: 24px; }
.staff-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; }
.staff-nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.staff-nav a.on { background: var(--gold-300); color: var(--maroon-900); }
.staff .topbar .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.now-card { background: linear-gradient(160deg, var(--maroon-700), var(--maroon-900)); color: #fff; border: 0; }
.now-card .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.callbtn { min-height: 70px; flex-direction: column; gap: 2px; }
.callbtn small { font-weight: 600; font-size: 13px; opacity: .85; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-600); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; font-size: 13px; }
.thumbs img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.thumbs form { display: inline; }
.scroll { overflow-x: auto; }

@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .ticket .no { font-size: 68px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
  .petals { display: none; }
}

img.mark { background: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); border-radius: 12px; }

img.mark { object-fit: cover; }

/* ---------- home hero (v2) ---------- */
.hero { padding: 18px 18px 18px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.hero-date { font-size: 14px; font-weight: 800; letter-spacing: .01em; color: var(--gold-300); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap;
}
.live-pill.is-open { background: rgba(74, 222, 128, .14); border-color: rgba(74, 222, 128, .45); color: #d9fbe6; }
.hero-mantra { font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
html:lang(te) .hero-mantra { font-size: 26px; line-height: 1.35; }
.hero .hero-sub { margin: 6px 0 16px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.slot-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.mini-slot {
  padding: 10px 8px; border-radius: 14px; text-align: center; line-height: 1.25;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.mini-slot b { display: block; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.mini-slot span { display: block; font-size: 12px; font-weight: 700; color: #bff0cf; margin-top: 2px; }
.mini-slot.is-off { opacity: .55; }
.mini-slot.is-off span { color: rgba(255, 255, 255, .8); }
.mini-slot.is-called { background: rgba(239, 125, 26, .28); border-color: rgba(247, 154, 62, .6); }
.mini-slot.is-called span { color: #ffe0bf; }
.hero-foot { text-align: center; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-top: 10px; }
.hero-closed { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; text-align: center; background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .9); }
.my-booking {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label token" "when token"; align-items: center;
  gap: 2px 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--maroon-900);
  background: linear-gradient(180deg, var(--gold-300), #e9b949); box-shadow: 0 10px 24px -10px rgba(212, 160, 23, .9);
}
.my-booking .mb-label { grid-area: label; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.my-booking .mb-when { grid-area: when; font-weight: 800; }
.my-booking .mb-token { grid-area: token; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.hero-top { flex-wrap: wrap; row-gap: 8px; }
.hero-date { white-space: nowrap; }

img.mark { border-radius: 50%; border: 2px solid var(--gold-300); box-shadow: 0 0 0 3px rgba(241, 210, 122, .18), 0 2px 8px rgba(0, 0, 0, .3); }
