:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #141210;
  --mute: #75706A;
  --rule: #E3DED6;
  --orange: #FF914C;
  --orange-ink: #C94E12; /* orange for small text, readable on white */
  --wash: #FFE9DB;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.noscript { padding: 24px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app {
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* Small mono labels everywhere: the "figure caption" voice. */
.meta, .step, .meta-row, .under, .hint, .caption, .now, small, .pill, .tracks summary, .field > span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.mark { font: 900 17px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; }
.meta { color: var(--mute); }
.pill {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
  animation: in .45s ease both;
}
.screen > form { display: flex; flex-direction: column; gap: 18px; flex: 1; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* Cover */
.title {
  font: 900 clamp(54px, 17.5vw, 88px)/.84 var(--display);
  font-stretch: 125%;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.lede { font-size: 18px; line-height: 1.35; font-weight: 500; max-width: 30ch; }
[data-screen="cover"] { gap: 14px; padding-top: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--mute); }

/* On the cover the button stays on screen while they read. */
[data-screen="cover"] .actions {
  position: sticky;
  bottom: 0;
  margin: 0 -18px;
  padding: 18px 18px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0), var(--paper) 22px);
}

/* Artists: a fanned deck of four headliners, then the rest billed in tiers like a festival flyer. */
.label { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.lineup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.lineup > .label { align-self: flex-start; }
.deck { list-style: none; position: relative; width: 100%; height: 214px; margin: 2px 0 4px; }
.card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --s: 1;
  position: absolute;
  top: 14px;
  left: calc(50% - 46px + var(--x));
  width: 92px;
  padding: 5px 5px 8px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 24px -16px rgba(20, 18, 16, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(var(--y)) rotate(var(--r)) scale(var(--s));
  transform-origin: 50% 100%;
}
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; background: var(--rule); margin-bottom: 6px; }
.card b { font: 900 12px/1.05 var(--display); font-stretch: 100%; text-transform: uppercase; }
.card span { font: 400 9px/1.5 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
/* Wizkid headlines: front, bigger, orange edge. The others fan out behind. */
.card.c1 { --x: -118px; --y: 14px; --r: -9deg; z-index: 2; }
.card.c2 { --x: -40px; --y: -6px; --r: -2deg; --s: 1.14; z-index: 4; }
.card.c3 { --x: 42px; --y: 4px; --r: 4deg; z-index: 3; }
.card.c4 { --x: 118px; --y: 16px; --r: 10deg; z-index: 1; }
.card.c2 img { outline: 3px solid var(--orange); outline-offset: -3px; }
.tier { max-width: 34ch; }
.tier.two { font: 800 19px/1.25 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; }
.tier.three { font: 500 14px/1.45 var(--display); color: var(--mute); }
.tier.three span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.tier.secret { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--orange-ink); }

.tracks summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tracks summary::-webkit-details-marker { display: none; }
.tracks ol {
  margin-top: 12px;
  list-style: none;
  counter-reset: t;
  font-size: 14px;
  line-height: 1.35;
}
.tracks li {
  counter-increment: t;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.tracks li::before {
  content: counter(t, decimal-leading-zero);
  grid-row: span 2;
  font: 400 12px/1.6 var(--mono);
  color: var(--mute);
}
.tracks li span { grid-column: 2; font-weight: 400; color: var(--mute); }
.tracks li.secret { color: var(--orange-ink); }
.tracks li.secret::before { color: var(--orange-ink); }

.player { padding: 8px 0 10px; border-bottom: 1px solid var(--rule); }
#wave { display: block; width: 100%; height: 44px; }
.now { color: var(--mute); margin-top: 4px; }
.now b { color: var(--orange-ink); font-weight: 500; }

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font: 800 17px/1.1 var(--display);
  font-stretch: 112%;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: scale(.985); }
.btn.line { background: none; border: 1.5px solid var(--ink); padding: 16.5px 20px; }
.btn[disabled] { opacity: .6; }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); } }
.btn:focus-visible, .choice:focus-visible, .quiet:focus-visible, .pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.under, .hint { color: var(--mute); text-align: center; }
.quiet {
  align-self: center;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 14px/1.4 var(--display);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px;
  cursor: pointer;
}

/* Questions */
.step { color: var(--orange-ink); }
h2 {
  font: 900 clamp(34px, 10vw, 46px)/.95 var(--display);
  font-stretch: 112%;
  letter-spacing: -.02em;
  text-transform: uppercase;
  outline: none;
}

.choices { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, padding .15s ease;
}
.choice b { font: 700 19px/1.2 var(--display); }
.choice span { font: 400 13px/1.3 var(--mono); color: var(--mute); }
.choice:hover { background: var(--wash); padding-left: 10px; }
.choice.picked { background: var(--orange); padding-left: 10px; }
.choice.picked span { color: var(--ink); }

/* The route line: two codes and a dashed flight path. */
.route {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 900 44px/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -.02em;
}
.route i { flex: 1; height: 0; border-top: 2px dashed var(--ink); position: relative; }
.route i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  border: 5px solid transparent;
  border-left: 8px solid var(--ink);
  border-right: 0;
}
.route.one i, .route.one #route-b { display: none; }
.route .empty { color: var(--rule); }

.leg { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--mute); }

input:not([type="checkbox"]), select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: 500 17px/1.25 var(--display);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input.city { border-color: var(--rule); font-size: 15px; padding: 11px 14px; }
input::placeholder { color: #A9A39B; }
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 0; }

.phone { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.dial select { padding-right: 30px; background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--orange); }

.err { font: normal 500 14px/1.3 var(--display); color: var(--orange-ink); }
.err:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Boarding pass */
.pass {
  background: var(--orange);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 14px 30px -14px rgba(201, 78, 18, .55);
}
.pass-top, .pass-foot { display: flex; justify-content: space-between; padding: 12px 16px; }
.pass-top { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid rgba(20, 18, 16, .25); }
.pass-route { display: flex; align-items: center; gap: 12px; padding: 18px 16px 16px; }
.pass-route > div { display: flex; flex-direction: column; min-width: 0; }
.pass-route > div:last-child { text-align: right; }
.pass-route b { font: 900 54px/1 var(--display); font-stretch: 125%; letter-spacing: -.03em; }
.pass-route em { font: normal 500 13px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-route i { flex: 1; border-top: 2px dashed var(--ink); }
.pass small { color: rgba(20, 18, 16, .7); display: block; font-size: 11px; }
.pass-foot {
  gap: 10px;
  border-top: 2px dashed rgba(20, 18, 16, .35);
  background: var(--card);
}
.pass-foot b { font: 800 17px/1.2 var(--display); }
.pass-foot > div:first-child { flex: 1; min-width: 0; }
.pass-foot > div:first-child b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caption { color: var(--mute); }

/* Story clip */
.clip { display: flex; flex-direction: column; gap: 14px; }
.clip-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  align-self: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
}
.clip-frame video, .clip-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-making {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.clip-making .bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.clip-making .bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s linear; }
.clip-actions { display: flex; flex-direction: column; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .btn .dot { animation: none; }
}
