:root {
  --fondo: #ffffff;
  --inchiostro: #121214;
  --grigio: #77777d;
  --linea: #e6e6ea;
  --accento: #f0531f;
  --accento-chiaro: #fff1eb;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}

.frame {
  width: max-content;
  min-width: min(340px, 92vw);
  max-width: 92vw;
  display: grid;
  gap: 16px;
}

.event { margin: 0; display: grid; gap: 3px; }
.event b { font-size: 15px; font-weight: 640; letter-spacing: -0.01em; }
.event span { font-size: 13px; color: var(--grigio); font-weight: 450; }

.row { display: flex; align-items: center; gap: 16px; }

.book {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px 0 16px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 580;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  flex: none;
}
.book:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }

.book__bg, .book__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}
.book__bg {
  background: var(--inchiostro);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px rgba(18, 18, 20, 0.5);
}
.book__fill {
  background: var(--accento);
  transform-origin: left center;
  transform: scaleX(0);
}

.ico { position: relative; width: 18px; height: 18px; flex: none; }
.ico svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico__spin, .ico__check, .ico__bell { opacity: 0; }

.labels { position: relative; display: block; height: 20px; overflow: hidden; }
.label {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 20px;
  white-space: nowrap;
  width: max-content;
  opacity: 0;
}
.label[data-l="book"] { opacity: 1; }

.seats { display: grid; gap: 7px; min-width: 64px; }
.seats__n { display: flex; align-items: center; height: 18px; line-height: 18px; font-size: 14px; font-weight: 560; white-space: nowrap; }
.roll {
  position: relative;
  display: inline-block;
  height: 18px;
  line-height: 18px;
  overflow: hidden;
}
.digit { display: inline-block; }
.word { margin-left: 0.28em; }
.digit + .digit { position: absolute; left: 0; top: 0; }
.seats.is-low .seats__n { color: var(--accento); }
.bar {
  position: relative;
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--linea);
  overflow: hidden;
}
.bar__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--inchiostro);
  transform-origin: left center;
}
.seats.is-low .bar__fill { background: var(--accento); }

.note { position: relative; margin: 0; height: 18px; font-size: 13px; color: var(--grigio); }
.note__t { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.note__t[data-note-t="book"] { opacity: 1; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  fill: #111113;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

@media (max-width: 400px) {
  .row { gap: 12px; }
  .book { padding: 0 16px 0 13px; font-size: 14px; height: 44px; }
  .note { font-size: 12px; }
}
