/* NOVA LIVE seat picker · stage 8 — checkout and the tickets: the Checkout buttons and their "Paying…" spinner,
   the printer (a slot, a tray), the tickets fed out of the slot by a keyframe animation, fanned by translate and
   rotate, their stubs with a perforation that tear off along it.

   1 tokens: primitive → semantic → component     2 the page and the app window     3 the top bar
   4 the map and what floats over it              5 the section card and its seat chips
   6 the cart                                      7 the printer and the tickets     8 toast, tooltip, screen readers
   9 screens: compact desk, phone sheet          10 reduced motion */

/* ---- 1. TOKENS ---- */
:root {
  /* primitives: a warm cream paper, ink, one orange, the tier colours of the concept */
  --cream-50: #FDFAF4; --cream-100: #F8F0E3; --cream-150: #F3EADA; --cream-200: #EDE1CB; --cream-300: #E2D4BA; --cream-400: #CFC0A4;
  --ink-900: #1C1915; --ink-700: #3B352E; --ink-500: #6F675C; --ink-400: #91897C; --ink-300: #B5AD9F;
  --orange-300: #FFC08F; --orange-400: #FF9033; --orange-500: #F7760F; --orange-600: #E85D0C; --orange-700: #B9460A;
  --blue-500: #3A8CC4; --green-500: #58AC6B; --grey-500: #9B968E; --red-500: #D9480F;
  --white: #fff;

  /* semantic */
  --page: var(--cream-100); --page-edge: #EDE3D1;
  --surface: var(--cream-50); --surface-2: #F6F1E7; --surface-sunk: var(--cream-200);
  --line: rgb(60 45 25 / .1); --line-strong: rgb(60 45 25 / .18);
  --text: var(--ink-900); --text-2: var(--ink-700); --text-muted: var(--ink-500); --text-faint: var(--ink-400);
  --accent: var(--orange-500); --accent-strong: var(--orange-600); --on-accent: var(--white); --accent-text: var(--orange-600);
  --warn: var(--red-500);
  --focus: var(--ink-900);
  --tier-1: #F2802E; --tier-2: #3A8CC4; --tier-3: #58AC6B; --tier-4: #9B968E;

  /* the map's materials (read by the canvas) */
  --map-closed: #D9D3C9; --map-concrete: #DAD3C6; --map-riser: #CCC3B3; --map-tread: #E4DDD0; --map-concourse: #EEE8DC;
  --map-rim: #F4F0E8; --map-facade: #E6E0D5; --map-facade-dark: #C3BAA9; --map-field: #EADFCB; --map-plate: #D6CCBA;
  --map-dim: rgb(248 241 229 / .8); --map-label: #FFFFFF; --map-shadow: rgb(95 70 35 / .32);

  /* component */
  --bezel: #EFE7D9; --bezel-edge: #BDB3A4;
  --radius-app: 22px; --radius-card: 16px; --radius-btn: 10px;
  --bar-h: 64px; --side-w: 300px; --card-w: clamp(380px, 44%, 540px);
  --seat-free: #FCE7D6; --seat-free-edge: #F1A87A; --seat-taken: #D8D3CC; --seat-hover: #FFD4B2;
  --seat-sel: linear-gradient(180deg, var(--orange-400), var(--orange-600)); --seat-glow: rgb(247 118 15 / .45);
  --btn-grad: linear-gradient(180deg, #FF8A1F, var(--orange-500) 55%, var(--orange-600));
  --shadow-1: 0 1px 2px rgb(60 40 15 / .08), 0 6px 16px -6px rgb(60 40 15 / .18);
  --shadow-2: 0 2px 4px rgb(60 40 15 / .06), 0 18px 40px -16px rgb(60 40 15 / .35);
  --paper: #FFFEFB; --paper-2: #F4F1EA;

  --display: 'Anton', 'Oswald', Impact, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-fly: cubic-bezier(.65, 0, .2, 1); --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
}

/* ---- 2. the page and the app window ---- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 90% at 50% 0%, var(--cream-50), var(--page) 55%, var(--page-edge)); overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg { display: block; }
[hidden] { display: none !important; }

/* the app sits in a light bezel on wide screens, like the concept's device; a phone gets it edge to edge */
.nl { position: fixed; left: 50%; top: 50%; translate: -50% -50%; width: min(100vw - 36px, 1680px); height: min(100dvh - 36px, 1000px);
  display: grid; grid-template-rows: var(--bar-h) 1fr; border-radius: var(--radius-app); overflow: hidden;
  background: linear-gradient(180deg, #FBF6EC, var(--page)); border: 10px solid var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), inset 0 0 0 1px rgb(255 255 255 / .7), 0 40px 80px -40px rgb(70 50 20 / .45), 0 10px 30px -12px rgb(70 50 20 / .25); }

/* ---- 3. the top bar ---- */
.nl-bar { position: relative; z-index: 20; display: flex; align-items: center; gap: 24px; margin: 8px 8px 0; padding: 0 10px 0 18px;
  border-radius: 14px; background: rgb(255 255 255 / .72); box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, var(--shadow-1); }
.nl-logo { font-weight: 800; font-size: 27px; letter-spacing: -.02em; color: var(--accent); text-decoration: none; white-space: nowrap; }
.nl-tabs { display: flex; gap: 4px; margin: 0 auto; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nl-tabs a { padding: 8px 14px; border-radius: 9px; text-decoration: none; }
.nl-tabs a[aria-current] { color: var(--text); background: rgb(60 45 25 / .09); font-weight: 600; }
.nl-tabs a:hover { color: var(--text); }
.nl-bar-end { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nl-login { font-size: 14px; font-weight: 500; text-decoration: none; }
.nl-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius-btn);
  font-size: 13.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--on-accent); background: var(--btn-grad);
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 6px 14px -6px rgb(232 93 12 / .7); transition: transform .15s var(--ease-out), filter .15s; }
.nl-btn:hover:not(:disabled) { filter: brightness(1.05); }
.nl-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.nl-btn:disabled { filter: saturate(.6) opacity(.5); box-shadow: none; }
.nl-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--white); color: var(--accent-strong); font-size: 11.5px; display: grid; place-items: center; letter-spacing: 0; }

/* ---- 4. the map and what floats over it ---- */
.nl-body { position: relative; display: grid; grid-template-columns: 1fr var(--side-w); min-height: 0; }
.nl-map { position: relative; min-width: 0; min-height: 0; overflow: hidden; contain: layout style; }
.nl-rig { position: absolute; inset: var(--rig-inset, 0); transform-origin: 0 0; transition: transform .8s var(--ease-fly); will-change: transform; }
.nl-rig canvas, .nl-hits, .nl-veil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.nl-base, .nl-marks { opacity: 0; transition: opacity .7s var(--ease-out), translate .9s var(--ease-out); translate: 0 14px; }
.nl.is-ready .nl-base, .nl.is-ready .nl-marks { opacity: 1; translate: 0 0; }
.nl-veil { background: rgb(248 241 229 / .28); opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none; }
.nl[data-mode="section"] .nl-veil { opacity: 1; }
.nl-lift { width: auto; height: auto; pointer-events: none; opacity: 0; translate: 0 0; transition: translate .28s var(--ease-pop), opacity .18s linear; }
.nl-lift.is-up { opacity: 1; translate: 0 calc(var(--lift, 10px) * -1); }
.nl-lift { filter: drop-shadow(0 0 9px var(--glow, #F2802E)) drop-shadow(0 var(--lift, 10px) 5px rgb(60 40 20 / .3)); }
.nl-stage { pointer-events: none; }
.nl-stage-glow { position: absolute; width: 0; height: 0; pointer-events: none; }
.nl-stage-glow::before { content: ''; position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 190 100 / .5), rgb(255 150 60 / .18) 50%, transparent); animation: nl-throb 2.6s ease-in-out infinite; }
@keyframes nl-throb { 0%, 100% { opacity: .75; scale: .96; } 50% { opacity: 1; scale: 1.04; } }
.nl-hits { overflow: visible; }
.nl-hits path { fill: transparent; stroke: transparent; cursor: pointer; outline: none; }
.nl-hits path.is-closed { cursor: default; }
.nl-pins { position: absolute; inset: 0; pointer-events: none; }
.nl-pin { position: absolute; translate: -50% -100%; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px 99px 99px 4px;
  rotate: -45deg; background: var(--btn-grad); color: var(--white); font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px -4px rgb(232 93 12 / .6); animation: nl-pin .45s var(--ease-pop); }
.nl-pin span { rotate: 45deg; }
@keyframes nl-pin { from { scale: .2; opacity: 0; } }

.nl-k { margin: 0 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.nl-intro { position: absolute; left: 26px; top: 20px; z-index: 3; pointer-events: none; }
.nl-intro > * { pointer-events: auto; }
.nl-intro, .nl-group .nl-k, .nl-filter { text-shadow: 0 0 10px var(--page), 0 0 4px var(--page), 0 0 2px var(--page); }
.nl-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.6vw, 44px); line-height: .95; letter-spacing: .005em; text-transform: uppercase; color: var(--text); max-width: 9.5em; }
.nl-sub { margin: 6px 0 22px; font-size: 14px; color: var(--text-2); }
.nl-sub span { color: var(--text-muted); }
.nl-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.nl-tiers li { display: grid; grid-template-columns: 15px auto auto; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); justify-content: start; }
.nl-tiers i { width: 15px; height: 15px; border-radius: 4px; background: var(--c); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.nl-tiers b { font-weight: 600; color: var(--text); }

.nl-filter { position: absolute; right: 26px; top: 18px; z-index: 3; width: 230px; }
.nl-filter .nl-k { text-align: center; }
.nl-range { position: relative; height: 26px; touch-action: none; cursor: pointer; }
.nl-range-track { position: absolute; left: 0; right: 0; top: 11px; height: 5px; border-radius: 99px; background: rgb(60 45 25 / .14); }
.nl-range-fill { position: absolute; top: 0; bottom: 0; left: var(--a, 0%); right: calc(100% - var(--b, 100%)); border-radius: inherit; background: linear-gradient(90deg, var(--orange-400), var(--orange-600)); }
.nl-thumb { position: absolute; top: 2px; left: var(--p); width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 1px rgb(60 45 25 / .15), 0 3px 8px rgb(60 40 15 / .25); transition: scale .15s var(--ease-out); touch-action: none; }
.nl-thumb:hover, .nl-thumb.is-drag { scale: 1.12; }
.nl-thumb::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; }   /* a bigger place to grab */
.nl-range-v { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 0; font-size: 11.5px; color: var(--text-faint); }
.nl-range-v b { font-size: 14.5px; color: var(--text); font-weight: 750; }

.nl-group { position: absolute; left: 26px; bottom: 22px; z-index: 3; }
.nl-step { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / .75); box-shadow: var(--shadow-1); }
.nl-step-b { width: 36px; height: 36px; border-radius: 9px; font-size: 20px; font-weight: 500; color: var(--text-2); }
.nl-step-b:hover:not(:disabled) { background: rgb(60 45 25 / .07); }
.nl-step-b:disabled { opacity: .35; }
.nl-step-v { display: inline-flex; align-items: baseline; gap: 5px; min-width: 76px; justify-content: center; font-size: 13px; color: var(--text-muted); }
.nl-step-v b { font-size: 18px; color: var(--text); font-weight: 800; }
.nl-best { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--text);
  background: rgb(255 255 255 / .8); box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgb(60 40 15 / .08); transition: background .15s, box-shadow .15s; white-space: nowrap; }
.nl-best:hover { background: var(--white); box-shadow: 0 0 0 1px var(--accent), 0 4px 12px -4px rgb(232 93 12 / .4); }
.nl-best-map { margin-left: 8px; height: 44px; vertical-align: top; }

/* the view from the seat: a small picture card */
.nl-view { position: absolute; right: 26px; bottom: 22px; z-index: 3; width: 260px; aspect-ratio: 16 / 9.4; margin: 0; border-radius: 14px; overflow: hidden;
  background: #120E0C; border: 3px solid var(--white); box-shadow: var(--shadow-2); transition: right .6s var(--ease-fly), opacity .3s; }
.nl-view-c, .nl-view-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-view figcaption { position: absolute; left: 12px; bottom: 10px; display: grid; color: var(--white); text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.nl-view figcaption span { font-size: 10.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.nl-view figcaption b { font-size: 14px; font-weight: 550; }
.nl-view.is-swap .nl-view-c { animation: nl-swap .35s var(--ease-out); }
@keyframes nl-swap { from { opacity: .35; } }
.nl[data-mode="section"] .nl-view { width: 220px; right: calc(22px + var(--card-w) - 220px); }
.nl[data-mode="section"] .nl-card { max-height: calc(100% - 92px - 22px - 136px); }

/* ---- 5. the section card and its seat chips ---- */
.nl-card { contain: layout style; position: absolute; z-index: 6; right: 22px; top: 92px; max-height: calc(100% - 114px); width: var(--card-w); display: flex; flex-direction: column;
  border-radius: var(--radius-card); background: rgb(252 249 243 / .96); box-shadow: 0 0 0 1px rgb(255 255 255 / .9) inset, var(--shadow-2);
  opacity: 0; translate: 24px 0; scale: .98; visibility: hidden; transition: opacity .35s var(--ease-out), translate .5s var(--ease-out), scale .5s var(--ease-out); }
.nl-card.is-open { visibility: visible; }
.nl-card.is-in { opacity: 1; translate: 0 0; scale: 1; }
.nl-card-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.nl-back { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nl-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nl-back:hover { background: rgb(60 45 25 / .07); }
.nl-card-t { min-width: 0; margin-right: auto; }
.nl-card-t h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.nl-card-t p { margin: 1px 0 0; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.nl-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 12px 18px 4px; font-size: 13px; color: var(--text-2); }
.nl-legend li { display: inline-flex; align-items: center; gap: 7px; }
.nl-legend i { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; }
.k-taken { background: var(--seat-taken); } .k-free { background: var(--seat-free); box-shadow: inset 0 0 0 1.5px var(--seat-free-edge); }
.k-acc { background: var(--seat-free); box-shadow: inset 0 0 0 1.5px var(--seat-free-edge); color: var(--accent-strong); }
.k-acc svg { width: 12px; height: 12px; fill: currentColor; }
.k-sel { background: var(--seat-sel); box-shadow: 0 2px 6px var(--seat-glow); }
.nl-note { margin: 6px 18px 0; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; background: rgb(247 118 15 / .1); color: var(--orange-700); }
.nl-seats-wrap { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 14px; overscroll-behavior: contain; }
.nl-stage-mark { position: relative; margin: 8px auto 12px; width: 70%; height: 22px; text-align: center; }
.nl-stage-mark::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 3px solid var(--orange-400); opacity: .8; }
.nl-stage-mark span { position: relative; top: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: var(--orange-700); }
.nl-seats { display: grid; gap: var(--gap, 4px); justify-content: center; width: max-content; min-width: 100%; contain: layout style; }
.nl-row { contain: layout style; display: flex; align-items: center; justify-content: center; gap: var(--gap, 4px); }
.nl-rl { width: 18px; flex: none; font-size: 10.5px; font-weight: 700; color: var(--text-faint); text-align: center; }
.nl-sp { width: var(--chip); flex: none; }
.seat { contain: size layout style; position: relative; width: var(--chip, 22px); height: var(--chip, 22px); flex: none; border-radius: 32%; background: var(--seat-free);
  box-shadow: inset 0 0 0 1.5px var(--seat-free-edge); color: var(--accent-strong); display: grid; place-items: center; font-size: calc(var(--chip) * .42); font-weight: 750;
  transition: background .15s, box-shadow .15s, translate .15s var(--ease-out); }
.seat:hover:not([data-s="taken"]) { background: var(--seat-hover); translate: 0 -1px; }
.seat[data-s="taken"] { background: var(--seat-taken); box-shadow: none; cursor: not-allowed; }
.seat svg { width: 64%; height: 64%; fill: currentColor; pointer-events: none; }
.seat[aria-pressed="true"] { background: var(--seat-sel); box-shadow: 0 0 0 1px rgb(255 255 255 / .4) inset, 0 3px 10px var(--seat-glow); color: var(--white); z-index: 1; }
.seat.is-pop { animation: nl-seat-pop .42s var(--ease-pop); }
.seat.is-pop::after { content: ''; position: absolute; inset: -2px; border-radius: 34%; border: 2px solid var(--orange-500); animation: nl-ripple .6s var(--ease-out) forwards; pointer-events: none; }
@keyframes nl-seat-pop { 0% { scale: .8; } 55% { scale: 1.2; } 100% { scale: 1; } }
@keyframes nl-ripple { from { opacity: .9; scale: 1; } to { opacity: 0; scale: 2.3; } }
.seat.is-nope { animation: nl-nope .32s linear; }
@keyframes nl-nope { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.nl-seats[data-dim="true"] .seat:not([aria-pressed="true"]) { opacity: .6; }
.nl-price-chip { position: absolute; z-index: 4; translate: -50% -100%; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 750; white-space: nowrap; pointer-events: none;
  color: var(--white); background: var(--ink-900); box-shadow: 0 6px 14px -4px rgb(0 0 0 / .4); animation: nl-chip 1.5s var(--ease-out) forwards; }
@keyframes nl-chip { 0% { opacity: 0; translate: -50% -70%; } 12%, 70% { opacity: 1; translate: -50% -100%; } 100% { opacity: 0; translate: -50% -120%; } }
.nl-card-foot { contain: layout style; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 64px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.nl-foot-k { font-size: 13px; font-weight: 600; color: var(--text-2); }
.nl-chip { display: inline-grid; place-items: center; min-width: 38px; height: 36px; padding: 0 9px; border-radius: 9px; font-size: 14.5px; font-weight: 700;
  color: var(--white); background: var(--btn-grad); box-shadow: 0 5px 12px -5px rgb(232 93 12 / .75); }
.nl-chip svg { width: 18px; height: 18px; fill: currentColor; }
.nl-chip-sec { margin-right: 8px; }
.nl-foot-seats { display: flex; gap: 6px; flex-wrap: wrap; }
.nl-foot-seats:empty::before { content: 'Pick seats in the grid'; font-size: 13px; color: var(--text-faint); }

/* ---- 6. the cart ---- */
.nl-side { contain: layout style; position: relative; z-index: 8; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 14px 14px 14px 12px;
  border-left: 1px solid var(--line); background: linear-gradient(180deg, rgb(237 225 203 / .55), rgb(237 225 203 / .8)); }
.nl-sheet-grip { display: none; }
.nl-cart { contain: layout style; display: flex; flex-direction: column; flex: none; padding: 14px 16px 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px rgb(255 255 255 / .8) inset, var(--shadow-1); }
.nl-cart-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.nl-cart-h h2 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.nl-x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-muted); }
.nl-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nl-x:hover:not(:disabled) { background: rgb(60 45 25 / .07); color: var(--text); }
.nl-x:disabled { opacity: .35; }
.nl-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.nl-sum-k { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 0; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.nl-sum-k span + span { font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.nl-sum-line { margin: 2px 0 0; font-size: 14.5px; color: var(--text); }
.nl-sum-total { display: none; margin: 0; font-size: 18px; font-weight: 800; }
.nl-lines { contain: layout style; list-style: none; margin: 8px 0 0; padding: 0; max-height: 128px; overflow: auto; }
.nl-lines li { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 6px; height: 30px; font-size: 13px; color: var(--text-2); animation: nl-line .3s var(--ease-out); }
.nl-lines li b { font-weight: 650; color: var(--text); }
.nl-lines .nl-x { width: 28px; height: 28px; }
@keyframes nl-line { from { opacity: 0; translate: 0 -4px; } }
.nl-money { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.nl-money div { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.nl-money dt, .nl-money dd { margin: 0; }
.nl-money .nl-total { margin-top: 4px; font-size: 16px; color: var(--text); }
.nl-money .nl-total dt { font-weight: 500; } .nl-money .nl-total dd { font-weight: 800; font-size: 18px; }
.nl-hold { margin: 12px 0 10px; text-align: center; }
.nl-hold-k { margin: 0; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.nl-hold-v { margin: 2px 0 0; font-size: 15px; color: var(--orange-500); }
.nl-hold-v b { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgb(255 160 60 / .45); }
.nl-hold[data-state="idle"] .nl-hold-v { color: var(--text-faint); } .nl-hold[data-state="idle"] b { text-shadow: none; }
.nl-hold[data-state="warn"] .nl-hold-v { color: var(--warn); animation: nl-warn 1s ease-in-out infinite; }
.nl-hold[data-state="paid"] .nl-hold-v { color: var(--green-500); }
@keyframes nl-warn { 50% { opacity: .55; } }
.nl-extend { margin-top: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--orange-700); background: rgb(247 118 15 / .1); }
.nl-checkout { height: 50px; font-size: 15px; border-radius: 12px; }
.nl-checkout.is-busy { pointer-events: none; }
.nl-checkout.is-busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: var(--white); animation: nl-spin .7s linear infinite; }
@keyframes nl-spin { to { rotate: 1turn; } }
.nl-paid { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--text-2); background: rgb(88 172 107 / .1); }
.nl.is-paid .nl-lines, .nl.is-paid .nl-money > div:not(.nl-total), .nl.is-paid .nl-hold { display: none; }
.nl.is-paid .nl-money { border-top: 0; margin-top: 0; }
.nl-paid b { color: var(--text); }
.nl-paid button { margin-left: 4px; font-weight: 700; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 7. the printer and the tickets ---- */
.nl-printer { contain: layout style; position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; border-radius: 16px;
  background: linear-gradient(180deg, var(--cream-150), var(--cream-200)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), inset 0 0 0 1px rgb(60 45 25 / .06); }
.nl-slot { position: relative; z-index: 3; flex: none; width: 82%; height: 12px; margin-top: 14px; border-radius: 99px; background: linear-gradient(180deg, #57514A, #8E877D);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / .45), 0 1px 0 rgb(255 255 255 / .8); }
.nl-tickets { position: relative; flex: 1; width: 100%; min-height: 0; margin-top: -6px; clip-path: inset(0 -60px -400px -60px); }
.nl-printer-hint { position: absolute; top: 46%; left: 0; right: 0; margin: 0; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.nl-printer.has-tickets .nl-printer-hint { display: none; }
.nl-printer:not(.has-tickets) .nl-tickets::before { content: ''; position: absolute; left: 50%; top: 0; width: min(150px, 60%); height: min(250px, 78%); translate: -50% 0;
  border: 2px dashed rgb(60 45 25 / .13); border-top: 0; border-radius: 0 0 14px 14px; }
.nl-tray { flex: none; width: 92%; height: 34px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(180deg, #E9DFCD, #DCD0BB);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 -1px 0 rgb(60 45 25 / .08); -webkit-mask: radial-gradient(22px 16px at 50% 100%, transparent 98%, #000); mask: radial-gradient(22px 16px at 50% 100%, transparent 98%, #000); }
.nl-ticket-nav { position: absolute; bottom: 9px; z-index: 5; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--text-2);
  padding: 3px; border-radius: 99px; background: rgb(255 255 255 / .85); box-shadow: var(--shadow-1); }
.nl-tn { width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; }
.nl-tn:hover { background: rgb(60 45 25 / .08); }

.tk { --w: min(196px, 76%); position: absolute; left: 50%; top: 0; width: var(--w); margin-left: calc(var(--w) / -2); transform-origin: 50% 0;
  display: flex; flex-direction: column; filter: drop-shadow(0 10px 14px rgb(60 40 15 / .22)); transition: rotate .5s var(--ease-out), translate .5s var(--ease-out), scale .5s var(--ease-out); cursor: pointer; }
.tk.is-front { cursor: default; }
.tk.is-waiting { visibility: hidden; pointer-events: none; }
.tk.is-printing .tk-body, .tk.is-printing .tk-stub { animation: nl-feed 1.15s cubic-bezier(.4, 0, .3, 1) both; }
@keyframes nl-feed { 0% { translate: 0 -105%; } 30% { translate: 0 -62%; } 38% { translate: 0 -60%; } 70% { translate: 0 -18%; } 76% { translate: 0 -16%; } 100% { translate: 0 0; } }
.tk-body { position: relative; padding: 16px 16px 12px; text-align: center; background: linear-gradient(180deg, var(--paper), var(--paper-2));
  -webkit-mask: radial-gradient(9px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(9px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(9px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(9px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tk-qr { width: 108px; height: 108px; margin: 2px auto 10px; }
.tk-qr canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.tk-brand { margin: 0; padding-top: 9px; border-top: 1px solid rgb(0 0 0 / .1); font-family: var(--display); font-size: 33px; line-height: 1; letter-spacing: .01em; color: var(--ink-900); }
.tk-tour { margin: 4px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tk-date { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgb(0 0 0 / .1); font-family: var(--display); font-size: 22px; letter-spacing: .02em; color: var(--ink-900); }
.tk-small { margin: 2px 0 0; font-size: 10.5px; color: var(--text-muted); }
.tk-order { white-space: nowrap; }
.tk-stub { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; padding: 12px 12px 12px; text-align: center; touch-action: none; cursor: grab;
  background: linear-gradient(180deg, var(--paper-2), #EEEAE1);
  -webkit-mask: radial-gradient(9px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(9px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(9px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(9px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
  transform-origin: 0 0; transition: translate .45s var(--ease-pop), rotate .45s var(--ease-pop); }
.tk-stub::before { content: ''; position: absolute; left: 10px; right: 10px; top: 0; border-top: 2px dashed rgb(0 0 0 / .22); }
.tk-stub span { display: grid; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.tk-stub b { font-size: 15px; font-weight: 800; letter-spacing: 0; color: var(--ink-900); }
.tk-stub i { grid-column: 1 / -1; margin-top: 4px; font-style: normal; font-size: 9.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-700); }
.tk-stub.is-drag { transition: none; cursor: grabbing; }
.tk-stub.is-torn { pointer-events: none; transition: translate .9s cubic-bezier(.5, 0, .8, .4), rotate .9s ease-in, opacity .9s ease-in; opacity: 0; }
.tk.is-torn .tk-body { -webkit-mask: none; mask: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 95% calc(100% - 3px), 90% 100%, 85% calc(100% - 3px), 80% 100%, 75% calc(100% - 3px), 70% 100%, 65% calc(100% - 3px), 60% 100%, 55% calc(100% - 3px), 50% 100%, 45% calc(100% - 3px), 40% 100%, 35% calc(100% - 3px), 30% 100%, 25% calc(100% - 3px), 20% 100%, 15% calc(100% - 3px), 10% 100%, 5% calc(100% - 3px), 0 100%); }
.tk-kept { display: none; margin: 8px auto 0; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-500); background: rgb(88 172 107 / .12); }
.tk.is-torn .tk-kept { display: block; }

/* ---- 8. toast, tooltip, screen readers ---- */
.nl-tip { position: absolute; z-index: 9; left: 0; top: 0; padding: 9px 12px; border-radius: 12px; pointer-events: none; white-space: nowrap; font-size: 13px; color: var(--text-2);
  background: var(--white); box-shadow: var(--shadow-2); opacity: 0; translate: -50% calc(-100% - 6px); transition: opacity .15s; }
.nl-tip.is-on { opacity: 1; }
.nl-tip b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.nl-tip i { font-style: normal; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: var(--c); }
.nl-tip em { font-style: normal; font-weight: 650; color: var(--text); }
.nl-toast { position: absolute; z-index: 30; left: 50%; top: 82px; translate: -50% -10px; max-width: min(440px, 90%); padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 550;
  background: var(--ink-900); color: var(--cream-50); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--ease-out); }
.nl-toast.is-on { opacity: 1; translate: -50% 0; }
.nl-toast[data-tone="warn"] { background: var(--warn); color: var(--white); }
.nl-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 9. screens ---- */
/* the compact desk: small laptops and phones on their side — the card covers the map, everything a size smaller */
@media (max-width: 1180px), (max-height: 760px) {
  :root { --side-w: 270px; --bar-h: 56px; }
  .nl-logo { font-size: 23px; }
  .nl-title { font-size: 28px; }
  .nl-sub { margin-bottom: 14px; font-size: 13px; }
  .nl-view { width: 210px; }
}
@media (max-width: 1180px) and (min-width: 700px), (max-height: 600px) and (orientation: landscape) {
  .nl-card { left: 14px; right: 14px; top: 14px; bottom: 14px; width: auto; }
  .nl[data-mode="section"] .nl-view, .nl[data-mode="section"] .nl-filter, .nl[data-mode="section"] .nl-group, .nl[data-mode="section"] .nl-intro { opacity: 0; visibility: hidden; }
}
@media (max-height: 600px) and (orientation: landscape) {
  :root { --bar-h: 54px; --side-w: 250px; }
  .nl { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .nl-bar { margin: 4px 6px 0; border-radius: 10px; }
  .nl-logo { font-size: 19px; }
  .nl-tabs, .nl-login { display: none !important; }
  .nl-btn.nl-bar-checkout { height: 34px; }
  .nl-intro { left: 14px; top: 10px; }
  .nl-title { font-size: 20px; }
  .nl-sub { margin: 3px 0 8px; font-size: 11px; } .nl-sub span { display: none; }
  .nl-intro .nl-k { display: none; }
  .nl-tiers { gap: 3px; } .nl-tiers li { font-size: 11.5px; gap: 6px; grid-template-columns: 11px auto auto; } .nl-tiers i { width: 11px; height: 11px; }
  .nl-filter { right: 14px; top: 8px; width: 170px; } .nl-filter .nl-k { margin-bottom: 2px; }
  .nl-group { left: 14px; bottom: 10px; } .nl-group .nl-k { display: none; }
  .nl-view { width: 150px; right: 14px; bottom: 10px; border-width: 2px; } .nl-view figcaption span { display: none; } .nl-view figcaption b { font-size: 11.5px; }
  .nl-side { padding: 8px; gap: 8px; overflow: auto; }
  .nl-cart { padding: 10px 12px 12px; }
  .nl-cart-h { padding-bottom: 4px; margin-bottom: 6px; } .nl-cart-h h2 { font-size: 16px; }
  .nl-money { margin-top: 4px; padding-top: 4px; } .nl-money div { line-height: 1.5; }
  .nl-hold { margin: 6px 0; } .nl-hold-v b { font-size: 18px; }
  .nl-checkout { height: 44px; }
  .nl-printer { flex: none; height: 380px; }
}

/* the phone (and a tablet held upright): the map fills the screen, the cart is a sheet you pull up */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1100px) {
  :root { --bar-h: 52px; --peek: 172px; }
  body { background: var(--page); }
  .nl { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; grid-template-rows: var(--bar-h) 1fr; }
  .nl-bar { margin: 0; padding: 0 8px; border-radius: 0; background: transparent; box-shadow: none; justify-content: center; }
  .nl-logo { position: absolute; left: 50%; translate: -50% 0; font-size: 24px; }
  .nl-tabs, .nl-login, .nl-bar-checkout { display: none !important; }
  .nl-bar-end { margin-left: auto; }
  .nl-body { grid-template-columns: 1fr; }
  .nl-map { --rig-inset: 132px 0 var(--peek) 0; }
  .nl-intro { left: 16px; right: 16px; top: 0; }
  .nl-title { font-size: 25px; max-width: none; }
  .nl-sub { margin: 3px 0 0; font-size: 12px; }
  .nl-intro .nl-k { display: none; }
  .nl-tiers { position: absolute; top: 140px; left: 0; display: flex; gap: 10px; }
  .nl-tiers li { font-size: 12px; gap: 5px; grid-template-columns: 11px auto; } .nl-tiers li span { display: none; } .nl-tiers i { width: 11px; height: 11px; }
  .nl-filter { left: 16px; right: auto; top: 58px; width: calc(100% - 32px - 168px); min-width: 130px; }
  .nl-filter .nl-k { display: none; }
  .nl-range { height: 44px; } .nl-range-track { top: 20px; } .nl-thumb { top: 11px; }
  .nl-range-v { margin-top: -6px; } .nl-range-end { display: none; } .nl-range-v b { font-size: 13px; margin: 0 auto; }
  .nl-group { left: auto; right: 16px; top: 58px; bottom: auto; display: flex; align-items: center; }
  .nl-group .nl-k { display: none; }
  .nl-step { padding: 2px; } .nl-step-b { width: 44px; height: 44px; } .nl-step-v { min-width: 58px; font-size: 11px; } .nl-step-v b { font-size: 16px; }
  .nl-best-map { display: none; }
  .nl-view { width: 128px; right: 12px; bottom: calc(var(--peek) + 12px); border-width: 2px; border-radius: 12px; }
  .nl-view figcaption { left: 8px; bottom: 6px; } .nl-view figcaption span { display: none; } .nl-view figcaption b { font-size: 11px; }
  .nl[data-mode="section"] .nl-view, .nl[data-mode="section"] .nl-intro, .nl[data-mode="section"] .nl-filter, .nl[data-mode="section"] .nl-group { opacity: 0; visibility: hidden; }
  .nl-card { left: 8px; right: 8px; top: 8px; bottom: calc(var(--peek) + 8px); width: auto; }
  .nl-card-top { padding: 8px 8px 8px; }
  .nl-back { width: 44px; height: 44px; }
  .nl-card .nl-best { height: 44px; }
  .nl-legend { padding: 8px 12px 2px; gap: 4px 12px; font-size: 12px; }
  .nl-card-foot { min-height: 56px; padding: 8px 12px; }
  .nl-toast { top: 64px; }

  .nl-side { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; height: min(88%, 760px); padding: 0 14px calc(14px + env(safe-area-inset-bottom)); gap: 10px; border: 0;
    border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -1px 0 rgb(60 45 25 / .08), 0 -18px 40px -18px rgb(60 40 15 / .35);
    translate: 0 calc(100% - var(--peek)); transition: translate .5s var(--ease-out); overflow: hidden; }
  .nl-side.is-open { translate: 0 0; overflow: auto; }
  .nl-side.is-drag { transition: none; }
  .nl-sheet-grip { display: grid; place-items: center; flex: none; height: 26px; margin: 0 -14px; cursor: grab; touch-action: none; }
  .nl-sheet-grip i { width: 40px; height: 5px; border-radius: 99px; background: rgb(60 45 25 / .2); }
  .nl-cart { padding: 0; background: none; box-shadow: none; }
  .nl-cart > * { order: 5; }
  .nl-sum { order: 1; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .nl-checkout { order: 2; margin-top: 10px; }
  .nl-cart-h { order: 3; margin: 14px 0 0; }
  .nl-sum-total { display: block; align-self: end; }
  .nl-sum-line { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nl-lines { max-height: none; }
  .nl-printer { flex: none; height: 400px; }
  /* what is below the peek is out of reach until the sheet opens */
  .nl-side:not(.is-open) .nl-cart > :not(.nl-sum):not(.nl-checkout), .nl-side:not(.is-open) .nl-printer { visibility: hidden; transition: visibility 0s .5s; }
  /* …and not even laid out: a closed sheet costs nothing when the cart changes */
  .nl-side:not(.is-open):not(.is-drag) .nl-lines { content-visibility: hidden; }
}
@media (max-width: 380px) {
  .nl-title { font-size: 22px; }
  .nl-filter { width: calc(100% - 32px - 152px); min-width: 110px; }
  .nl-step-v { min-width: 44px; } .nl-step-v span { display: none; }
}

/* ---- 10. reduced motion: no flying, popping or printing — things simply appear ---- */
@media (prefers-reduced-motion: reduce) {
  .nl-rig { transition: none; }
  .nl-stage-glow::before { animation: none; }
  .seat.is-pop, .seat.is-pop::after, .nl-pin, .nl-lines li, .nl-hold[data-state="warn"] .nl-hold-v { animation: none; }
  .tk.is-printing, .tk.is-printing .tk-body, .tk.is-printing .tk-stub { animation: none; }
  .nl-card, .nl-side, .tk, .tk-stub, .nl-lift { transition-duration: .01s; }
  .nl-price-chip { animation-duration: 2.4s; }
}

/* ---- touch: every control a fingertip can hit (the map's sections are areas of a drawing, not buttons) ---- */
@media (pointer: coarse) {
  .nl-step-b, .nl-x, .nl-back, .nl-tn { min-width: 44px; min-height: 44px; }
  .nl-btn, .nl-best, .nl-extend { min-height: 44px; }
  .nl-tabs a, .nl-login, .nl-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .nl-sheet-grip { height: 44px !important; margin-bottom: -18px !important; position: relative; z-index: 1; }
  .nl-paid button { min-height: 44px; }
}
