/* Mandala Theatre — show page + booking. Builds on tokens.css and site.css. */

.wrap-x {
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
}

/* ---------- hero: one slide of the homepage template, a little shorter ---------- */
.show-hero { height: clamp(600px, 88svh, 900px); }
.show-hero .slide-text { bottom: clamp(56px, 10vh, 112px); }
.show-hero .slide-title { font-size: clamp(3.75rem, 1rem + 8vw, 9rem); }
.nav-links a[aria-current="page"], .menu-main a[aria-current="page"] { color: var(--saffron); }
button.nav-tickets { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; cursor: pointer; }
@media (max-width: 820px) { .show-hero .slide-text { bottom: 48px; } .show-hero .slide-desc { display: block; } }

/* ---------- facts strip ---------- */
.facts { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid #e6e3e4; }
.facts { padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); }
.facts-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px var(--gap); margin: 0; }
.facts-list > div { position: relative; padding-top: 18px; }
.facts-list > div::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 4px; background: var(--crimson); }
.facts-list dt { font-size: var(--t-small); color: var(--ink-soft); }
.facts-list dd { margin: 4px 0 0; font-size: var(--t-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.facts-list dd span { display: block; margin-top: 6px; font-size: var(--t-small); font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
@media (max-width: 1100px) { .facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .facts-list { grid-template-columns: 1fr 1fr; } }

/* ---------- book: the run as a strip of days, on the show's own colour ---------- */
.book {
  background: var(--show-ground); color: var(--on-show);
  padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(48px, 5vw, 80px);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  scroll-margin-top: 0;
}
.book-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.book-sub { margin-top: 16px; max-width: 52ch; color: var(--on-show-soft); font-size: var(--t-body); }
.book-note { margin-top: 28px; font-size: var(--t-small); color: var(--on-show-soft); }
.book-note a { color: var(--white); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--saffron); }

.quick { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.quick-date { display: grid; gap: 8px; }
.quick-date label { font-size: var(--t-small); font-weight: 600; color: var(--on-show-soft); }
.quick-date select {
  min-height: 56px; min-width: 260px; padding: 0 48px 0 16px; border: 0; border-radius: var(--btn-radius);
  font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b3122e' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.quick-times { display: flex; flex-wrap: wrap; gap: 12px; }
.time-chip {
  display: grid; align-content: center; justify-items: start; gap: 2px;
  min-height: 56px; padding: 6px 20px; border: 0; border-radius: var(--btn-radius);
  background: var(--saffron); color: var(--ink); font: inherit; font-size: var(--t-lead); font-weight: 750; line-height: 1; cursor: pointer;
  transition: background-color .18s, transform .18s var(--ease);
}
.time-chip small { font-size: .75rem; font-weight: 600; }
.time-chip:hover { background: #ffb829; transform: translateY(-2px); }
.time-chip[disabled] { background: rgba(255,255,255,.16); color: var(--on-show-soft); cursor: not-allowed; transform: none; }
@media (max-width: 620px) {
  .quick, .quick-date { width: 100%; }
  .quick-date select { min-width: 0; width: 100%; }
  .quick-times { width: 100%; }
  .time-chip { flex: 1; }
}

/* ---------- about the play ---------- */
.play {
  padding-top: var(--section); padding-bottom: var(--section);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start;
}
.play-poster { position: sticky; top: calc(var(--head-h) + 32px); }
.play-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 24px 60px rgba(23,10,13,.16); }
.lang-tabs { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; background: var(--soft); border-radius: 6px; }
.lang-tabs button {
  font: inherit; font-weight: 600; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--btn-radius);
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.lang-tabs button[aria-selected="true"] { background: var(--white); color: var(--crimson); box-shadow: 0 1px 4px rgba(23,10,13,.12); }
.synopsis { margin-top: 28px; max-width: 62ch; }
.synopsis p + p { margin-top: 16px; color: var(--ink-soft); }
.synopsis .lead { max-width: none; color: var(--ink); }
.synopsis[lang="ne"] { line-height: 1.75; }
.play-by { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e6e3e4; color: var(--ink-soft); max-width: 62ch; }
.play-by strong { color: var(--ink); }
@media (max-width: 820px) {
  .play { grid-template-columns: 1fr; }
  .play-poster { position: static; max-width: 360px; order: 2; }
}

/* ---------- credits ---------- */
.credits {
  background: var(--soft); padding-top: var(--section); padding-bottom: var(--section);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
}
.key-credits { margin: clamp(36px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.key-credits > div { background: var(--white); padding: clamp(24px, 2.5vw, 36px); }
.key-credits dt { font-size: var(--t-small); color: var(--ink-soft); }
.key-credits dt span { margin-left: 6px; }
.key-credits dd { margin: 10px 0 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.key-credits dd span { display: block; margin-top: 10px; font-size: var(--t-body); font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.crew-grid { margin-top: clamp(48px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); }
.crew-block h3 { font-size: var(--t-lead); font-weight: 750; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.crew-empty { margin-top: 18px; color: var(--ink-soft); }
.crew { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.crew > div { padding: 16px 0; border-bottom: 1px solid #dcd8d9; }
.crew dt { font-size: var(--t-small); color: var(--ink-soft); }
.crew dt span { margin-left: 4px; }
.crew dd { margin: 4px 0 0; font-weight: 650; line-height: 1.3; }
@media (max-width: 1100px) { .key-credits { grid-template-columns: 1fr; } .crew-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .crew { grid-template-columns: 1fr; } }

/* ---------- tickets ---------- */
.tickets {
  padding-top: var(--section); padding-bottom: calc(var(--section) * .75);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
}
.tickets-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.prices { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.price { display: grid; gap: 6px; align-content: start; padding: 24px 0 0; border-top: 2px solid var(--ink); }
.price-front { border-top-color: var(--saffron); border-top-width: 6px; padding-top: 20px; }
.price-name { font-weight: 600; color: var(--ink-soft); }
.price-amt { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.price-note { font-size: var(--t-small); color: var(--ink-soft); max-width: 32ch; }
.tickets-note { margin-top: 36px; color: var(--ink-soft); max-width: 70ch; }
@media (max-width: 820px) { .tickets-head, .prices { grid-template-columns: 1fr; } }

/* ---------- artwork ---------- */
.art {
  background: var(--soft); padding-top: calc(var(--section) * .75); padding-bottom: var(--section);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
}
.share { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; color: var(--ink-soft); }
.share-copy, .linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.art-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.art-row img { width: 100%; height: 100%; object-fit: cover; }
.art-row img:last-child { background: #e9e2d6; object-fit: contain; padding: 24px; }
@media (max-width: 620px) { .art-row { grid-template-columns: 1fr; } .art-row img:last-child { max-height: 420px; } }

/* ---------- getting there ---------- */
.show-visit {
  padding-top: var(--section); padding-bottom: var(--section);
  padding-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  padding-right: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
}
.show-visit .visit-facts { margin: clamp(32px, 4vw, 48px) 0 36px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.show-visit .visit-facts a { font-weight: 600; }
@media (max-width: 1100px) { .show-visit .visit-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .show-visit .visit-facts { grid-template-columns: 1fr; } }

/* ---------- sticky book bar on phones ---------- */
.book-bar { display: none; }
@media (max-width: 820px) {
  .book-bar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--margin) calc(12px + env(safe-area-inset-bottom));
    background: var(--white); box-shadow: 0 -8px 30px rgba(23,10,13,.14);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .book-bar.is-shown { transform: none; }
  .book-bar div { display: grid; line-height: 1.25; }
  .book-bar span { font-size: var(--t-small); color: var(--ink-soft); }
  .book-bar .btn { min-height: 48px; }
  .show-page .foot { padding-bottom: 104px; }
}

/* ======================================================
   BOOKING DIALOG
   ====================================================== */
body.bk-open { overflow: hidden; }
.bk {
  width: min(1120px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
}
.bk::backdrop { background: rgba(13, 7, 9, .72); backdrop-filter: blur(3px); }
.bk[open] { animation: bk-in .35s var(--ease); }
.bk[open]::backdrop { animation: fade-in .3s ease; }
@keyframes bk-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bk[open], .bk[open]::backdrop { animation: none; } }
.bk-frame { position: relative; height: 100%; display: flex; flex-direction: column; }

.bk-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(16px, 3vw, 32px); background: var(--show-ground); color: var(--white);
}
.bk-show { flex: 1; min-width: 0; }
.bk-title { font-weight: 750; font-size: var(--t-lead); line-height: 1.1; letter-spacing: -0.01em; }
.bk-title span { font-weight: 500; color: var(--on-show-soft); margin-left: 6px; }
.bk-when { margin-top: 2px; font-size: var(--t-small); color: var(--on-show-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-back, .bk-close {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--btn-radius); background: rgba(255,255,255,.1); color: var(--white);
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bk-back:hover, .bk-close:hover { background: rgba(255,255,255,.22); }
.bk-back[hidden] { display: none; }

.bk-steps {
  display: flex; gap: 0; margin: 0; padding: 0 clamp(16px, 3vw, 32px); list-style: none;
  border-bottom: 1px solid #e6e3e4; counter-reset: st;
}
.bk-steps li {
  counter-increment: st; flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 14px 0; font-size: var(--t-small); font-weight: 600; color: #8a8285;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.bk-steps li::before {
  content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft); color: var(--ink-soft); font-size: .75rem; font-weight: 700;
}
.bk-steps li[aria-current="step"] { color: var(--ink); border-bottom-color: var(--crimson); }
.bk-steps li[aria-current="step"]::before { background: var(--crimson); color: var(--white); }
.bk-steps li.is-done { color: var(--ink-soft); }
.bk-steps li.is-done::before { content: "✓"; background: var(--ink); color: var(--white); }
.bk-steps.is-hidden { display: none; }

.bk-step { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bk-step[hidden] { display: none; }
.bk-step.enter { animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .bk-step.enter { animation: none; } }
.bk-body { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(20px, 3vw, 36px); }
.bk-h { font-size: var(--t-lead); font-weight: 750; line-height: 1.15; letter-spacing: -0.01em; }
.bk-h:focus { outline: none; }

/* step 1: calendar + times */
.bk-body:has(.cal) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cal-head h3 { font-size: var(--t-lead); font-weight: 750; }
.cal-head p { font-size: var(--t-small); color: var(--ink-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.cal-day {
  position: relative; aspect-ratio: 1 / .92; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 6px; background: transparent; font: inherit; color: #b4adb0; padding: 0;
}
.cal-day .n { font-size: clamp(1rem, .9rem + .4vw, 1.25rem); font-weight: 700; line-height: 1; }
.cal-day .m { position: absolute; top: 5px; left: 7px; font-size: .625rem; font-weight: 700; color: var(--crimson); text-transform: none; }
.cal-day .dots { display: flex; gap: 3px; height: 6px; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); }
.cal-day .off { font-size: .625rem; font-weight: 600; color: #8a8285; line-height: 1; }
.cal-day.is-show { background: var(--soft); color: var(--ink); cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.cal-day.is-show:hover { background: #fbeef0; }
.cal-day.is-off { color: #8a8285; background: repeating-linear-gradient(135deg, transparent 0 6px, #f1eff0 6px 7px); }
.cal-day.is-today::after { content: ""; position: absolute; inset: 3px; border: 2px dashed #cfc9cb; border-radius: 4px; pointer-events: none; }
.cal-day[aria-pressed="true"], .cal-day[aria-pressed="true"]:hover { background: var(--crimson); color: var(--white); transform: scale(1.04); }
.cal-day[aria-pressed="true"] .dots i { background: var(--saffron); }
.cal-day[aria-pressed="true"] .m { color: var(--saffron); }
.cal-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: var(--t-small); color: var(--ink-soft); }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); display: inline-block; }
.cal-key i + i { margin-left: -3px; }

.times { position: sticky; top: calc(var(--head-h) + 16px); }
.times-empty { padding: 28px; background: var(--soft); color: var(--ink-soft); border-radius: 6px; }
.times-date { font-size: var(--t-lead); font-weight: 750; line-height: 1.15; }
.times-date span { display: block; margin-top: 4px; font-size: var(--t-small); font-weight: 500; color: var(--ink-soft); }
.times-list { display: grid; gap: 12px; margin-top: 18px; }
.show-opt {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  width: 100%; padding: 18px 20px; text-align: left; cursor: pointer;
  border: 2px solid #e2dedf; border-radius: 8px; background: var(--white); font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
  animation: here-in .4s var(--ease) both;
}
.show-opt:nth-child(2) { animation-delay: .06s; }
.show-opt:hover { border-color: var(--crimson); box-shadow: 0 8px 24px rgba(179,18,46,.12); transform: translateY(-2px); }
.show-opt .t { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.show-opt .lbl { grid-column: 1; font-size: var(--t-small); color: var(--ink-soft); }
.show-opt .go { grid-row: 1 / 3; grid-column: 2; font-weight: 700; color: var(--crimson); white-space: nowrap; }
.show-opt .meter { grid-column: 1 / -1; height: 4px; margin-top: 10px; background: #eeebec; border-radius: 2px; overflow: hidden; }
.show-opt .meter i { display: block; height: 100%; background: var(--saffron); }
.show-opt.is-low .lbl { color: var(--crimson); font-weight: 600; }
.show-opt[disabled] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; border-color: #e2dedf; }
@media (prefers-reduced-motion: reduce) { .show-opt { animation: none; } }

/* step 2: the hall */
.bk-body-seats { display: flex; flex-direction: column; gap: 18px; padding-bottom: 12px; }
.seat-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--ink-soft); }
.seat-key li { display: inline-flex; align-items: center; gap: 8px; }
.k { width: 18px; height: 18px; border-radius: 4px 4px 6px 6px; display: inline-block; }
.k-front { background: #fff1d1; box-shadow: inset 0 0 0 2px var(--saffron); }
.k-normal { background: var(--white); box-shadow: inset 0 0 0 2px #a9a1a4; }
.k-mine { background: var(--crimson); }
.k-sold { background: #d8d4d5; }

.hall-wrap { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 calc(-1 * clamp(20px, 3vw, 36px)); padding: 0 clamp(20px, 3vw, 36px); }
.hall {
  --seat: clamp(24px, min(2.6vw, 3.6dvh), 36px); --sg: clamp(4px, .5vw, 7px); --aisle: calc(var(--seat) * 1.1);
  width: max-content; margin: 0 auto; padding: 8px 0 4px;
}
.stage {
  position: relative; height: 54px; margin: 0 calc(var(--seat) + 10px) 36px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--show-ground), #1b2c63);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  color: var(--white); font-weight: 700; letter-spacing: .02em;
}
.stage::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -30px; height: 30px;
  background: radial-gradient(ellipse at top, rgba(245,164,0,.18), transparent 70%); pointer-events: none;
}
.rows { display: grid; gap: var(--sg); }
.row { display: flex; align-items: center; gap: 10px; }
.row-l { width: var(--seat); flex: none; text-align: center; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.row-seats { display: flex; gap: var(--sg); }
.row-seats.is-straight { width: calc(18 * var(--seat) + 18 * var(--sg) + var(--aisle)); justify-content: space-between; }
.row-seats .aisle { width: var(--aisle); flex: none; }
.row.gap-before { margin-top: calc(var(--seat) * .7); }
.row.is-front-last { margin-bottom: 0; }
.seat {
  width: var(--seat); height: var(--seat); flex: none; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 5px 5px 8px 8px; cursor: pointer;
  background: var(--white); box-shadow: inset 0 0 0 2px #a9a1a4; color: var(--ink-soft);
  font: inherit; font-size: clamp(.625rem, .55rem + .25vw, .8125rem); font-weight: 700; line-height: 1;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .15s, color .15s;
}
.seat.is-front { background: #fff1d1; box-shadow: inset 0 0 0 2px var(--saffron); color: #6b4700; }
.seat:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--crimson); color: var(--crimson); transform: translateY(-2px); }
.seat[aria-pressed="true"] { background: var(--crimson); box-shadow: none; color: var(--white); transform: translateY(-2px); }
.seat[aria-pressed="true"]:hover { color: var(--white); box-shadow: inset 0 0 0 2px var(--crimson-deep); }
.seat.pop { animation: pop .28s var(--ease); }
@keyframes pop { 50% { transform: translateY(-2px) scale(1.18); } }
.seat[disabled] { cursor: not-allowed; background: #d8d4d5; box-shadow: none; color: transparent; position: relative; }
.seat[disabled]::after { content: ""; width: 40%; height: 2px; background: #b3adaf; border-radius: 1px; }
.seat.is-void { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .seat, .seat.pop { transition: none; animation: none; } }
.hall-door { margin-top: 26px; text-align: center; font-size: var(--t-small); color: var(--ink-soft); }
.hall-door::before { content: ""; display: block; width: 72px; height: 3px; margin: 0 auto 10px; background: #d8d4d5; }
.scroll-hint { display: none; text-align: center; font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 720px) { .scroll-hint { display: block; } }

.bk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #e6e3e4; background: var(--white);
}
.pick { min-width: 0; }
.pick-seats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; color: var(--ink-soft); min-height: 30px; }
.pick-seats .chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px;
  border-radius: 15px; background: #fbeef0; color: var(--crimson); font-size: var(--t-small); font-weight: 700;
  border: 0; font-family: inherit; cursor: pointer;
}
.pick-seats .chip b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(179,18,46,.15); font-size: .75rem; }
.pick-seats .chip:hover b { background: var(--crimson); color: var(--white); }
.pick-total { margin-top: 4px; font-size: var(--t-small); color: var(--ink-soft); }
.pick-total strong { color: var(--ink); font-size: var(--t-lead); letter-spacing: -0.01em; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* step 3: details + pay */
.bk-body-pay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pay-form { max-width: 520px; }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 650; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: var(--t-small); margin-left: 4px; }
.field input, .phone {
  width: 100%; min-height: 54px; border: 2px solid #d4cfd1; border-radius: 6px; background: var(--white);
  font: inherit; font-size: 1.125rem; color: var(--ink);
}
.field input { padding: 0 16px; }
.field input:focus, .phone:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,164,0,.45); }
.phone { display: flex; align-items: stretch; overflow: hidden; }
.phone-cc { display: grid; place-items: center; padding: 0 14px; background: var(--soft); font-weight: 650; color: var(--ink-soft); border-right: 2px solid #e2dedf; }
.phone input { border: 0; min-height: 50px; border-radius: 0; letter-spacing: .04em; }
.phone input:focus { box-shadow: none; }
.field.has-err .phone { border-color: var(--crimson); }
.help { margin-top: 6px; font-size: var(--t-small); color: var(--ink-soft); }
.err { margin-top: 6px; font-size: var(--t-small); font-weight: 600; color: var(--crimson); }
.check { display: flex; align-items: center; gap: 12px; margin-top: 22px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--crimson); flex: none; margin: 0; }
.bk-h-pay { margin-top: 36px; padding-top: 28px; border-top: 1px solid #e6e3e4; }
.esewa {
  margin-top: 16px; width: 100%; min-height: 72px; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px; cursor: pointer;
  border: 2px solid #60bb46; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; text-align: left;
  transition: background-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.esewa:hover { background: #f2faef; box-shadow: 0 10px 28px rgba(65,161,36,.18); transform: translateY(-1px); }
.esewa:focus-visible { outline-color: #41a124; }
.esewa-logo { flex: none; display: grid; place-items: center; width: 120px; height: 44px; }
.esewa-logo img { max-width: 100%; max-height: 100%; }
.esewa-logo .esewa-fallback { font-weight: 800; font-size: 1.5rem; color: #41a124; letter-spacing: -0.02em; }
.esewa-text { flex: 1; font-size: var(--t-lead); font-weight: 600; line-height: 1.2; }
.esewa-text strong { font-weight: 800; }
.pay-help { margin-top: 10px; }

.summary-card { background: var(--soft); border-radius: 8px; padding: clamp(20px, 2.5vw, 28px); position: relative; overflow: hidden; }
.summary-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--show-ground); }
.summary-show { font-size: var(--t-lead); font-weight: 750; }
.summary-when { margin-top: 2px; color: var(--ink-soft); }
.summary-lines { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-small); }
.summary-lines li span:first-child { color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 2px dashed #cfc9cb; }
.summary-total strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.hold { margin-top: 14px; font-size: var(--t-small); color: var(--ink-soft); }
.hold strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hold.is-low strong { color: var(--crimson); }

.paying { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(255,255,255,.86); backdrop-filter: blur(4px); }
.paying[hidden] { display: none; }
.paying-card { display: grid; justify-items: center; gap: 18px; padding: 36px 44px; background: var(--white); border-radius: 10px; box-shadow: 0 24px 70px rgba(23,10,13,.18); text-align: center; }
.paying-card img { width: 140px; height: auto; }
.paying-card p { font-weight: 600; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #e3f2de; border-top-color: #41a124; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* step 4: ticket */
.bk-body-done { display: grid; justify-items: center; align-content: start; gap: 28px; text-align: center; padding-top: clamp(28px, 5vw, 56px); }
.done-head { display: grid; justify-items: center; gap: 10px; }
.done-head .bk-h { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
.done-head p { color: var(--ink-soft); }
.done-tick {
  width: 64px; height: 64px; border-radius: 50%; background: #41a124; position: relative; animation: pop-in .5s var(--ease);
}
.done-tick::after {
  content: ""; position: absolute; left: 23px; top: 15px; width: 14px; height: 26px;
  border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg);
}
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.ticket {
  width: min(100%, 680px); display: grid; grid-template-columns: 1fr auto; text-align: left;
  background: var(--show-ground); color: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10,22,54,.3);
  animation: here-in .6s .15s var(--ease) both;
}
.ticket-main { padding: clamp(20px, 3vw, 32px); }
.ticket-show { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ticket-show span { display: block; margin-top: 6px; font-size: var(--t-body); font-weight: 500; letter-spacing: 0; color: var(--on-show-soft); }
.ticket-facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.ticket-facts dt { font-size: .8125rem; color: var(--on-show-soft); }
.ticket-facts dd { margin: 2px 0 0; font-weight: 700; font-size: var(--t-body); line-height: 1.3; }
.ticket-where { margin-top: 20px; font-size: .8125rem; color: var(--on-show-soft); }
.ticket-stub {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 10px;
  padding: 24px; background: var(--white); color: var(--ink);
  border-left: 3px dashed var(--show-ground);
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--white);
}
.ticket-stub::before { top: -12px; } .ticket-stub::after { bottom: -12px; }
.qr { width: 132px; height: 132px; }
.ticket-ref { font-size: .8125rem; color: var(--ink-soft); }
.ticket-ref strong { color: var(--ink); letter-spacing: .06em; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
@media (prefers-reduced-motion: reduce) { .done-tick, .ticket { animation: none; } }

/* ---------- booking on phones: full screen ---------- */
@media (max-width: 820px) {
  .bk { width: 100vw; height: 100dvh; border-radius: 0; }
  .bk[open] { animation-name: bk-up; }
  @keyframes bk-up { from { transform: translateY(40px); opacity: 0; } }
  .bk-title span { display: none; }
  .bk-steps li { font-size: .8125rem; gap: 6px; }
  .bk-body:has(.cal), .bk-body-pay { grid-template-columns: 1fr; }
  .times { position: static; }
  .summary { order: -1; }
  .summary-card { padding: 16px 18px; }
  .summary-lines { margin-top: 10px; gap: 4px; }
  .summary-total { margin-top: 10px; padding-top: 10px; }
  .summary-total strong { font-size: 1.5rem; }
  .hold { margin-top: 8px; }
  .ticket-stub { gap: 6px 18px; padding: 18px 20px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 3px dashed var(--show-ground); grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .ticket-stub::before, .ticket-stub::after { top: -14px; bottom: auto; }
  .ticket-stub::before { left: -12px; } .ticket-stub::after { left: auto; right: -12px; }
  .qr { width: 96px; height: 96px; }
  .bk-foot .btn { padding: 0 20px; }
}

/* ---------- print: just the ticket ---------- */
@media print {
  body.bk-open > *:not(.bk) { display: none !important; }
  .bk { position: static; width: auto; height: auto; box-shadow: none; }
  .bk::backdrop { display: none; }
  .bk-top, .bk-steps, .done-actions, .bk-step:not([data-step="done"]) { display: none !important; }
  .ticket { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
