/* Kazebra — built for a dark auditorium.
   Nothing here glows. Contrast is high enough to read at low brightness,
   but no surface is bright enough to light up the row behind you. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* The auditorium, not pure black — #000 causes halation against light text */
  --stage:  #14100F;
  --velvet: #211A18;
  --edge:   #322724;
  --bone:   #EDE4D8;   /* 14.7:1 on stage */
  --dust:   #A2958C;   /* 6.5:1 on stage  */
  --brass:  #C89B3C;   /* 7.2:1 on stage — house lights */
  --curtain:#8C2F39;

  --display: 'Instrument Serif', Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --num: ui-monospace, 'SF Mono', Menlo, monospace;

  --dim: 0;  /* brightness scrim, 0–0.55 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--stage);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Brightness scrim — sits above everything, ignores pointer events */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: #000;
  opacity: var(--dim);
  pointer-events: none;
  z-index: 999;
  transition: opacity .25s ease;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px 128px; }

/* ---------------------------------------------------------------- top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--edge);
}

.venue {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dust);
}

.dimmer {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--dust);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dimmer[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }

/* ------------------------------------------------------- the row indicator
   The signature element. Renders the actual row you're sitting in, one bar
   per seat, yours lit. It confirms the QR resolved to the right place —
   which is the failure mode that matters most in a dark room. */

.seatblock { padding: 30px 0 26px; }

.row-marks {
  display: flex;
  gap: 3px;
  height: 30px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.row-marks i {
  flex: 1;
  height: 12px;
  background: var(--edge);
  border-radius: 1px;
}
.row-marks i.me {
  height: 30px;
  background: var(--brass);
}
@media (prefers-reduced-motion: no-preference) {
  .row-marks i.me { animation: rise .5s cubic-bezier(.2,.8,.3,1); }
  @keyframes rise { from { height: 12px; } to { height: 30px; } }
}

.seat-label {
  font-family: var(--display);
  font-size: 58px;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
}
.seat-sub { color: var(--dust); font-size: 14px; margin: 8px 0 0; }

/* ---------------------------------------------------------------- menu */

.cat {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dust);
  margin: 30px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--edge);
}

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--edge);
  color: var(--bone);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.item:disabled { opacity: .38; cursor: default; }
.item:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.item-name { flex: 1; }
.item-age {
  display: block;
  font-size: 12px;
  color: var(--dust);
  margin-top: 2px;
}
.item-price { font-family: var(--num); font-size: 15px; color: var(--dust); }

.qty {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--stage);
  font-family: var(--num);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.qty.zero { display: none; }

.remove {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--dust);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.remove.hidden { visibility: hidden; }

/* ---------------------------------------------------------------- checkout */

.checkout {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--velvet);
  border-top: 1px solid var(--edge);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
  z-index: 50;
}
.checkout.show { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .checkout { transition: none; } }

.checkout-inner { max-width: 560px; margin: 0 auto; }

.agenote {
  font-size: 13px;
  color: var(--dust);
  margin: 0 0 10px;
}

.pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--brass);
  color: var(--stage);
  border: none;
  border-radius: 4px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.pay:disabled { opacity: .5; cursor: default; }
.pay:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.pay .total { font-family: var(--num); }

/* ---------------------------------------------------------------- states */

.msg { padding: 60px 0; text-align: center; color: var(--dust); }
.msg h1 { font-family: var(--display); font-size: 34px; color: var(--bone); margin: 0 0 10px; }

.notice {
  background: var(--velvet);
  border-left: 2px solid var(--brass);
  padding: 12px 14px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--dust);
}

.foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  font-size: 12px;
  color: var(--dust);
  line-height: 1.6;
}
