/* Maza Ticket (माझं तिकिट) — v1.6 — Gramodyami Enterprises */

/* ---------- Fonts (self-hosted: works offline, no third-party calls) ---------- */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/mukta-devanagari-400-normal.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/mukta-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/mukta-devanagari-600-normal.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/mukta-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/mukta-devanagari-700-normal.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/mukta-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

@font-face { font-family: "Mukta"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/mukta-devanagari-800-normal.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/mukta-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- Tokens ---------- */
:root {
  /* Theatre maroon (curtain, velvet seats) carries the app; the logo's orange is the
     action colour; the logo itself sits on a white header. */
  --bg: #24050D;            /* dark velvet auditorium */
  --surface: #3A0916;       /* raised surfaces */
  --surface-2: #521024;
  --brand: #8E1B2B;         /* stage curtain maroon */
  --brand-hi: #B4283C;
  --brand-ink: #5E0D1C;
  --accent: #F7821E;        /* logo orange */
  --accent-soft: #FFD08A;
  --accent-deep: #C2560A;
  --leaf: #2E9E3E;          /* logo green */
  --paper: #F7E9CC;         /* ticket paper */
  --paper-2: #EFDBB4;
  --ink: #2B1810;           /* printed ink */
  --ink-soft: #6A4B39;
  --indigo: #24407C;        /* serial-number ink */
  --stamp: #B3121F;         /* rubber stamp */
  --ok: #1F7A4C;
  --warn: #B86A00;
  --on-dark: #F7E9DA;
  --on-dark-dim: #D4B5A2;
  --line-dark: rgba(247, 130, 30, .28);
  --radius-ticket: 10px;
  --radius-s: 6px;
  /* Display type is Mukta ExtraBold: it shapes every Marathi conjunct used in the app
     (checked with tools/check-marathi-font.py). Yatra One broke श्च, रू and others. */
  --font-display: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-display: 800;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --col: 34rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
/* wide screens: curtain folds frame the app column */
@media (min-width: 900px) {
  body {
    background:
      linear-gradient(90deg, transparent calc(50% - var(--col) / 2 - 1px), var(--bg) 0 calc(50% + var(--col) / 2 + 1px), transparent 0),
      repeating-linear-gradient(90deg, var(--brand-ink) 0 18px, #7A1426 18px 34px, #4A0915 34px 52px);
  }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Shell ---------- */
.stage { max-width: var(--col); margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 88px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--gutter) 9px;
  background: #fff;
  border-bottom: 3px solid var(--accent);
}
/* maroon curtain valance hanging under the header */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, var(--brand) 9px, transparent 9.5px) 0 0 / 22px 12px repeat-x;
}
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; min-width: 0; }
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 40px; width: auto; }
.brand-sub { display: block; font-size: .7rem; color: #6A4B39; margin-top: -2px; white-space: nowrap; }
@media (max-width: 360px) { .brand-mark { display: none; } }

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--brand); border-radius: 999px; overflow: hidden; flex: none;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--brand); padding: 4px 11px; font-size: .9rem; cursor: pointer; min-height: 32px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }

.notice {
  margin: 12px var(--gutter) 0; padding: 10px 14px; border-radius: var(--radius-s);
  background: rgba(247,130,30,.12); border: 1px solid var(--line-dark); color: var(--accent-soft); font-size: .95rem;
}
.offline-bar { background: #5C3B00; color: #FFE7B0; text-align: center; font-size: .88rem; padding: 6px var(--gutter); }

main { padding: 0 var(--gutter); }

.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--col); z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #18030A; border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px;
  color: var(--on-dark-dim); text-decoration: none; font-size: .82rem;
}
.bottomnav svg { width: 22px; height: 22px; }
.bottomnav a[aria-current="page"] { color: var(--accent); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-display); line-height: 1.2; margin: 0; }
.h-section { font-size: 1.35rem; color: var(--accent-soft); margin: 28px 0 12px; }
.muted { color: var(--on-dark-dim); }
.small { font-size: .9rem; }
p { margin: 0 0 .8em; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #2A0610; border-color: var(--accent); }
.btn-primary:hover:not([disabled]) { background: #FF953A; }
.btn-ghost { background: transparent; color: var(--accent-soft); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-danger { background: transparent; color: #FFB3B3; border-color: rgba(255,120,120,.4); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .92rem; color: var(--on-dark-dim); margin-bottom: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--radius-s);
  background: #1A0309; border: 1.5px solid var(--surface-2); color: var(--on-dark); font-size: 1.05rem;
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(247,130,30,.25); }
.input[aria-invalid="true"] { border-color: #E06464; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.err { color: #FFB0A8; font-size: .9rem; margin-top: 4px; }

/* ---------- Home: featured show ---------- */
.feature { margin: 16px 0 0; }
.feature-poster {
  display: block; position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-dark), 0 18px 40px -12px rgba(0,0,0,.7);
}
.feature-poster img { width: 100%; height: min(46vh, 460px); object-fit: cover; object-position: top center; }
.feature-poster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.spotlight {
  /* a single warm pool of stage light over the poster */
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255,214,160,.18), transparent 60%);
}
.feature-meta { padding: 10px 2px 0; }
.feature-meta .when { margin: 8px 0 14px; gap: 2px; }
.feature-title { font-size: 2rem; color: var(--accent-soft); }
.feature-line { color: var(--on-dark-dim); margin-top: 6px; }
.when { display: grid; gap: 6px; margin: 14px 0 16px; }
.when div { display: flex; gap: 10px; align-items: baseline; }
.when svg { width: 18px; height: 18px; flex: none; color: var(--accent); transform: translateY(3px); }

.show-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-dark);
  text-decoration: none; color: inherit;
}
.show-row img { width: 84px; height: 108px; object-fit: cover; border-radius: 3px; }
.show-row h3 { font-size: 1.15rem; color: var(--accent-soft); }

.empty { text-align: center; padding: 48px 12px; color: var(--on-dark-dim); }
.empty h2 { color: var(--accent-soft); font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- Ticket stubs (categories) ---------- */
.stubs { display: grid; gap: 12px; }
.stub {
  --c: var(--accent);
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: stretch;
  background: var(--paper); color: var(--ink); border-radius: var(--radius-ticket);
  /* side notches */
  -webkit-mask: radial-gradient(11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.stub-main { padding: 14px 16px 14px 22px; border-left: 8px solid var(--c); border-radius: var(--radius-ticket) 0 0 var(--radius-ticket); }
.stub-name { font-weight: 700; font-size: 1.05rem; }
.stub-price { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.stub-left { font-size: .88rem; color: var(--ink-soft); }
.stub-left.low { color: var(--stamp); font-weight: 600; }
.stub-side {
  display: flex; align-items: center; padding: 10px 18px 10px 16px;
  border-left: 2px dashed rgba(43,24,16,.35);
}
.stub.soldout { filter: grayscale(.7); opacity: .75; }
.stub.soldout .stub-side { font-weight: 700; color: var(--stamp); }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.25rem; }

/* sticky checkout bar */
.paybar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 25;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--col) - 2 * var(--gutter));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: var(--radius-s);
  background: var(--accent); color: #2A0610; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.paybar strong { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.4rem; font-weight: var(--weight-display); display: block; line-height: 1.1; }
.paybar .btn { background: #2A0610; color: var(--accent-soft); min-height: 44px; }

/* ---------- Show page ---------- */
.show-hero { display: grid; gap: 14px; margin-top: 16px; }
.show-hero img { border-radius: 4px; box-shadow: 0 0 0 1px var(--line-dark); }
.show-title { font-size: 2.1rem; color: var(--accent-soft); }
.presenter { color: var(--accent); font-weight: 600; }
.award { font-size: .9rem; color: var(--on-dark-dim); border-left: 3px solid var(--accent); padding-left: 10px; margin: 10px 0; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; }
.credits dt { color: var(--on-dark-dim); }
.credits dd { margin: 0; font-weight: 600; }
.prose { white-space: pre-line; }
.status-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(247,130,30,.16); color: var(--accent-soft); border: 1px solid var(--line-dark);
}
.status-pill.bad { background: rgba(179,18,31,.2); color: #FFB3B3; border-color: rgba(255,120,120,.4); }

/* ---------- Sheet (booking details) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,0,3,.72); z-index: 40; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 41;
  width: 100%; max-width: var(--col); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-top: 3px solid var(--accent); border-radius: 14px 14px 0 0;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  animation: sheet-in .22s ease-out;
}
@keyframes sheet-in { from { transform: translate(-50%, 30px); opacity: 0; } }
.sheet h2 { color: var(--accent-soft); font-size: 1.4rem; margin-bottom: 12px; }
.summary { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .98rem; }
.summary td { padding: 5px 0; border-bottom: 1px dashed var(--line-dark); }
.summary td:last-child { text-align: right; }
.summary tr.total td { border-bottom: 0; font-weight: 700; font-size: 1.15rem; color: var(--accent-soft); padding-top: 8px; }

/* ---------- Ticket page ---------- */
.ticket {
  position: relative; margin: 18px 0; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-ticket); overflow: hidden;
  -webkit-mask: radial-gradient(13px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(13px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(13px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(13px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket-head { background: linear-gradient(120deg, var(--brand-ink), var(--brand)); color: #fff; padding: 14px 18px; }
.ticket-head h2 { font-size: 1.5rem; }
.ticket-head .small { color: rgba(255,255,255,.82); }
.ticket-body { padding: 14px 18px 18px; position: relative; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ticket-grid .lbl { font-size: .8rem; color: var(--ink-soft); }
.ticket-grid .val { font-weight: 700; }
.serial { font-family: var(--font-display); font-weight: var(--weight-display); color: var(--indigo); font-size: 1.35rem; letter-spacing: .06em; }
.perf { border: 0; border-top: 2px dashed rgba(43,24,16,.35); margin: 16px -18px; }
.qr-box { display: grid; justify-items: center; gap: 8px; padding-bottom: 4px; }
.qr-box svg, .qr-box img { width: min(64vw, 230px); height: auto; background: #fff; padding: 10px; border-radius: 6px; }
.items-list { margin: 10px 0 0; padding: 0; list-style: none; }
.items-list li { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(43,24,16,.3); padding: 4px 0; }

.stamp {
  position: absolute; right: 14px; top: 10px; transform: rotate(-12deg);
  border: 3px solid var(--stamp); color: var(--stamp); border-radius: 8px;
  padding: 2px 10px; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.15rem; opacity: .88;
  mix-blend-mode: multiply; pointer-events: none;
  animation: stamp-down .5s cubic-bezier(.2,1.6,.4,1) both .15s;
}
.stamp.green { border-color: var(--ok); color: var(--ok); }
@keyframes stamp-down { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }

.state-card {
  margin: 18px 0; padding: 18px; border-radius: var(--radius-ticket);
  background: var(--surface); border: 1px solid var(--line-dark);
}
.state-card h2 { font-size: 1.4rem; color: var(--accent-soft); margin-bottom: 6px; }
.timer { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 1.6rem; color: var(--accent); }
.timer.late { color: #FF8A8A; }
.upi-qr { background: #fff; border-radius: 8px; padding: 12px; width: min(70vw, 240px); margin: 10px auto; }
.upi-qr svg { width: 100%; height: auto; display: block; }
.amount-big { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 2.4rem; color: var(--accent-soft); line-height: 1.1; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.row-actions .btn { flex: 1 1 140px; }
.steps { margin: 10px 0 14px; padding-left: 1.3em; }
.steps li { margin-bottom: 4px; }
.copyline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #1A0309; border: 1px dashed var(--line-dark); border-radius: var(--radius-s); padding: 8px 10px; margin: 8px 0;
  font-weight: 600; word-break: break-all;
}
.copyline button { flex: none; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 4px; padding: 4px 10px; cursor: pointer; }

/* ---------- Sponsors ---------- */
.sponsor {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 16px 0;
  border: 1px solid var(--line-dark); border-radius: var(--radius-s); background: linear-gradient(180deg, rgba(247,130,30,.08), transparent);
  text-decoration: none; color: inherit;
}
.sponsor img { width: 52px; height: 52px; object-fit: contain; border-radius: 4px; background: #fff; flex: none; }
.sponsor .s-kicker { font-size: .78rem; color: var(--on-dark-dim); }
.sponsor .s-name { font-weight: 700; color: var(--accent-soft); }
.sponsor-on-paper { color: var(--ink-soft); font-size: .88rem; text-align: center; margin-top: 10px; }

/* ---------- Info pages ---------- */
.page { padding-top: 8px; }
.page h1 { font-size: 1.8rem; color: var(--accent-soft); margin: 18px 0 6px; }
.page h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--accent); margin: 22px 0 6px; }
.page p, .page li { color: var(--on-dark); }
.page ol, .page ul { padding-left: 1.3em; }
.page li { margin-bottom: 6px; }
.page .updated { color: var(--on-dark-dim); font-size: .88rem; }
.link-list { list-style: none; padding: 0; margin: 12px 0; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line-dark);
  text-decoration: none; color: var(--on-dark); font-weight: 600;
}
.link-list a::after { content: "›"; color: var(--accent); font-size: 1.4rem; line-height: 1; }

footer.site-foot { padding: 28px var(--gutter) 12px; color: var(--on-dark-dim); font-size: .85rem; border-top: 1px solid var(--line-dark); margin-top: 32px; }
footer.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
footer.site-foot a { color: var(--on-dark-dim); }

/* ---------- Toast & update banner ---------- */
.toast {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60;
  max-width: min(92vw, 30rem); padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: sheet-in .2s ease-out;
}
.toast.bad { background: #FFD9D4; color: #6B0D0D; }

.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.version { opacity: .7; }

/* ---------- Install banner & share appeal ----------
   Instagram-style sunset gradient: the one loud element, used only for
   "install the app" and "tell your friends". */
:root { --insta: linear-gradient(120deg, #F58529 0%, #DD2A7B 42%, #8134AF 72%, #515BD4 100%); }
.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 35;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: calc(var(--col) - 24px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px; border-radius: 18px;
  background: var(--insta); color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .18);
  animation: banner-up .5s cubic-bezier(.2, .9, .3, 1.15) both;
}
.ib-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.ib-text { min-width: 0; flex: 1; line-height: 1.3; }
.ib-text strong { display: block; font-weight: 800; font-size: 1.02rem; }
.ib-text span { display: block; font-size: .85rem; opacity: .95; }
.ib-btn {
  flex: none; border: 0; border-radius: 999px; padding: 9px 16px; min-height: 42px; cursor: pointer;
  background: #fff; color: #C13584; font-weight: 800; font-size: .95rem;
}
.ib-btn:disabled { opacity: .6; }
.ib-close {
  position: absolute; top: -10px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; background: #8134AF; color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
body.has-banner .stage { padding-bottom: 170px; }
@keyframes banner-up { from { opacity: 0; transform: translate(-50%, 24px); } }

.share-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0;
  padding: 16px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--insta) border-box;
}
.share-copy { flex: 1 1 14rem; min-width: 0; }
.share-copy strong { display: block; font-weight: 800; font-size: 1.1rem; color: var(--on-dark); }
.share-copy p { margin: 4px 0 0; font-size: .95rem; color: var(--on-dark-dim); }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border: 0; border-radius: 999px; padding: 10px 20px; min-height: 46px; cursor: pointer;
  background: var(--insta); color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 20px rgba(221, 42, 123, .35);
}
.share-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }

/* ---------- Print: only the ticket ---------- */
@media print {
  body { background: #fff !important; color: #000; }
  .topbar, .bottomnav, .no-print, footer.site-foot, .sponsor, .paybar, .install-banner { display: none !important; }
  .stage { max-width: none; padding: 0; background: #fff; }
  .ticket { -webkit-mask: none; mask: none; border: 2px solid #000; }
  .stamp { animation: none; }
}

/* ---------- Splash screen ----------
   Painted by HTML+CSS before any script runs, so it appears instantly.
   A ticket card with the logo sits on a closed maroon curtain; when the app is
   ready JS adds .done and the curtain parts. If scripts ever fail, the CSS
   fallback below still fades it out after 5 s. */
.splash {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px var(--gutter);
  animation: splash-fallback .4s ease 5s forwards;
}
.splash-curtain {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 18%, transparent 82%, rgba(0,0,0,.28)),
    repeating-linear-gradient(90deg, var(--brand-ink) 0 16px, var(--brand) 16px 30px, #6E1222 30px 44px);
  transition: transform .8s cubic-bezier(.7, 0, .25, 1);
}
.splash-curtain.l { left: 0; }
.splash-curtain.r { right: 0; }
.splash-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: min(82vw, 340px); padding: 22px 20px 18px;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border-top: 4px solid var(--accent);
  animation: splash-in .7s cubic-bezier(.2, .9, .3, 1.15) both;
  transition: opacity .25s ease, transform .25s ease;
}
.splash-logo { width: 100%; height: auto; }
.splash-bar { width: 62%; height: 4px; border-radius: 4px; background: #F1E2CF; overflow: hidden; }
.splash-bar span {
  display: block; width: 40%; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  animation: splash-sweep 1.1s ease-in-out infinite;
}
.splash-tag { margin: 0; font-size: 1rem; color: #4A2A1C; text-align: center; }
.splash-foot {
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0;
  font-size: .8rem; color: var(--accent-soft); text-align: center;
}
.splash.done { visibility: hidden; transition: visibility 0s linear .85s; }
.splash.done .splash-card, .splash.done .splash-foot { opacity: 0; transform: scale(.96); }
.splash.done .splash-curtain.l { transform: translateX(-101%); }
.splash.done .splash-curtain.r { transform: translateX(101%); }
@keyframes splash-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@keyframes splash-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes splash-fallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .splash-card { animation: none; }
  .splash-bar span { animation: none; width: 100%; }
  .splash.done { opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
  .splash.done .splash-curtain.l, .splash.done .splash-curtain.r { transform: none; }
}
@media print { .splash { display: none !important; } }
