/* NOVA LIVE seat picker · stage 3 — the view from your seat: a small picture card in the map's corner (a canvas,
   or a photo when assets/incoming/views.json lists one), fading in again each time it changes.

   1 tokens: primitive → semantic → component     2 the page and the app window     3 the top bar
   4 the map and what floats over it              8 the tooltip
   9 screens: compact desk, phone                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; }

/* ---- 4. the map and what floats over it ---- */
.nl-body { position: relative; display: grid; grid-template-columns: 1fr; 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); }
.nl-rig canvas, .nl-hits { 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-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-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 { 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); }

/* 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; } }

/* ---- 8. the tooltip ---- */
.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); }

/* ---- 9. screens ---- */
/* the compact desk: small laptops and phones on their side — everything a size smaller */
@media (max-width: 1180px), (max-height: 760px) {
  :root { --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-height: 600px) and (orientation: landscape) {
  :root { --bar-h: 54px; }
  .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-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-view { width: 150px; right: 14px; bottom: 10px; border-width: 2px; } .nl-view figcaption span { display: none; } .nl-view figcaption b { font-size: 11.5px; }
}

/* the phone (and a tablet held upright): the map fills the screen */
@media (max-width: 699px), (orientation: portrait) and (max-width: 1100px) {
  :root { --bar-h: 52px; }
  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 { display: none !important; }
  .nl-bar-end { margin-left: auto; }
  .nl-body { grid-template-columns: 1fr; }
  .nl-map { --rig-inset: 132px 0 0 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-view { width: 128px; right: 12px; bottom: 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; }
}
@media (max-width: 380px) {
  .nl-title { font-size: 22px; }
}

/* ---- 10. reduced motion: things simply appear ---- */
@media (prefers-reduced-motion: reduce) {
  .nl-stage-glow::before { animation: none; }
  .nl-lift { transition-duration: .01s; }
}

/* ---- touch: every control a fingertip can hit (the map's sections are areas of a drawing, not buttons) ---- */
@media (pointer: coarse) {
  .nl-tabs a, .nl-login, .nl-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}
