.book-main {
  padding: 28px 0 64px;
  min-height: 52vh;
}

.book-state {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.book-state h2 {
  margin: 0;
  font-size: clamp(20px, 4.6vw, 26px);
}

.book-muted { color: var(--muted); margin: 0; line-height: 1.6; }

.book-spinner {
  width: 34px; height: 34px;
  border: 3px solid color-mix(in srgb, var(--muted) 35%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: book-spin .8s linear infinite;
}

@keyframes book-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .book-spinner { animation-duration: 2.4s; }
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 28px;
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.book-summary {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}

.book-eyebrow {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 700;
}

.book-title {
  margin: 0 0 18px;
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.2;
}

.book-facts { margin: 0; display: grid; gap: 12px; }

.book-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
  padding-bottom: 10px;
}

.book-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }

.book-facts dt { color: var(--muted); font-size: 13.5px; }

.book-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-size: 14.5px;
}

.book-scarcity {
  margin: 16px 0 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
}

.book-inline-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.book-inline-link:hover { text-decoration: underline; }

.book-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
  display: grid;
  gap: 16px;
}

.gl-book { display: grid; gap: 16px; }

.gl-book__title { margin: 0; font-size: 18px; }

.book-field { display: grid; gap: 6px; }

.book-field label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.book-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text-main);
  border: 1.5px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius: 10px;
  padding: 12px 14px;

  font: inherit;
  font-size: 16px;
}

.book-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.book-field input[aria-invalid="true"] { border-color: #ff6b6b; }

.book-hint { margin: 0; font-size: 12.5px; color: var(--muted); }

.book-error {
  margin: 0;
  font-size: 13px;
  color: #ff8080;
  font-weight: 600;
}

.book-error--form {
  padding: 11px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, #ff6b6b 14%, transparent);
  line-height: 1.5;
}

.book-phone { display: flex; align-items: stretch; }

.book-phone-cc {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.book-phone input { border-radius: 0 10px 10px 0; }

.book-stepper {
  display: inline-grid;
  grid-template-columns: 46px 74px 46px;
  align-items: stretch;
}

.book-step {
  background: var(--bg);
  color: var(--text-main);
  border: 1.5px solid color-mix(in srgb, var(--muted) 30%, transparent);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.book-step:first-child { border-radius: 10px 0 0 10px; }
.book-step:last-child { border-radius: 0 10px 10px 0; }
.book-step:hover { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.book-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.book-stepper input {
  border-radius: 0;
  text-align: center;
  border-left: 0;
  border-right: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.book-stepper input::-webkit-outer-spin-button,
.book-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Live seat count, so nobody has to guess how full a sitting is. */
.book-seats {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.book-seats::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ec27b;
  flex: 0 0 auto;
}

.book-seats--low { color: var(--accent); }
.book-seats--low::before { background: currentColor; }

.book-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent);
  font-size: 15px;
  color: var(--muted);
}

.book-total strong { font-size: clamp(22px, 5vw, 28px); color: var(--text-main); }

.book-pay {
  width: 100%;
  padding: 15px 20px;
  font-size: 16.5px;
  text-align: center;
}

.book-pay:disabled { opacity: .6; cursor: progress; }

.book-legal { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; text-align: center; }

.ticket-wrap { max-width: 560px; margin: 0 auto; }

.ticket-card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .5);
  text-align: center;
}

.ticket-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.ticket-heading { margin: 0 0 4px; font-size: clamp(23px, 5.4vw, 30px); }

.ticket-event { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }

.ticket-facts {
  display: grid;
  gap: 11px;
  text-align: left;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 12px;
  background: var(--bg);
}

.ticket-facts > div { display: flex; justify-content: space-between; gap: 14px; }
.ticket-facts dt { color: var(--muted); font-size: 13.5px; }
.ticket-facts dd { margin: 0; font-weight: 700; font-size: 14px; text-align: right; }

.ticket-codes { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }

.ticket-code {
  padding: 18px 15px 15px;
  border-radius: 12px;
  border: 2px dashed var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.ticket-code-seat {
  display: block;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.ticket-qr {
  width: min(190px, 62vw);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

.ticket-code-value {
  display: block;
  font-size: clamp(19px, 5vw, 24px);
  letter-spacing: .12em;
}

.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.book-btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent);
}

.book-btn--ghost:hover {
  background: color-mix(in srgb, var(--muted) 14%, transparent) !important;
  color: var(--text-main);
}

.ticket-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

@media print {
  .topbar, .topbar-bleed, .site-footer, .ticket-actions { display: none !important; }
  .ticket-card { box-shadow: none; border: 1px solid #999; }
  .ticket-qr { padding: 0; }
}

@media (prefers-color-scheme: light) {
  .book-summary, .book-card, .ticket-card { box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
  .book-error { color: #c0392b; }
}
