:root {
  --bg: #0b0d16;
  --ink: #f6efe3;
  --accent: #e2b866;
  --muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--bg);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  -webkit-text-size-adjust: 100%;
  padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}
main { max-width: 440px; margin: 0 auto; }
.card { display: grid; gap: 14px; }
.logo { max-height: 56px; max-width: 60%; object-fit: contain; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font: 400 34px/1.1 var(--serif); }
.tagline { margin: 0; color: var(--muted); }
form { display: grid; gap: 18px; margin-top: 6px; }
.field { display: grid; gap: 8px; }
.field > span, legend { font-size: 14px; font-weight: 600; color: var(--muted); }
input[type="text"], input:not([type]) {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; min-height: 56px;
}
input:focus-visible, button:focus-visible, .choices label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span {
  display: grid; place-items: center; min-width: 56px; min-height: 52px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 600; background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.choices input:checked + span { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.go, .again {
  font: 700 18px var(--sans); border: 0; border-radius: 16px; min-height: 58px; padding: 0 20px; cursor: pointer;
  background: var(--accent); color: var(--bg);
}
.go[disabled] { opacity: .6; }
.again { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; font-size: 15px; min-height: 48px; }
.error { margin: 0; color: #ff9c8a; font-weight: 600; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.fine a, .fine a:visited { color: var(--ink); }
.ticket { text-align: center; justify-items: center; }
.ticket .label { margin: 8px 0 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.code { margin: 0; font: 700 76px/1 var(--sans); letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.start { width: 100%; min-height: 92px; font-size: 26px; border-radius: 20px; }
.how { margin: 0; max-width: 30ch; }
.summary { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 15px; }
.status { margin: 0; font-weight: 700; color: var(--accent); }
.loading p { color: var(--muted); }

/* A guest's finished picture */
.picture-holder { margin: 0 0 1rem; }
.picture { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 1rem; }
.picture-wait { color: var(--accent); }
.has-picture .label, .has-picture .code, .has-picture .code + .fine, .has-picture .summary { display: none; }

/* The host's page: one column on a phone, the form beside the line on a tablet. */
.host main { max-width: 980px; }
.host-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .host-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: 36px; } }
.host .later { width: 100%; }
.line h2 { margin: 6px 0 0; font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line ul, .line ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: place; }
.line li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.line ol li { counter-increment: place; }
.line ol li .who strong::before { content: counter(place) ". "; color: var(--accent); }
.line .booth li { border-color: var(--accent); }
.who { display: grid; gap: 2px; min-width: 0; }
.who strong { font-size: 18px; overflow-wrap: anywhere; }
.who span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; gap: 6px; flex: none; }
.small { font: 600 14px var(--sans); min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--accent); color: var(--bg); cursor: pointer; }
.small.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.small[disabled] { opacity: .5; }
.sent { margin: 0; font-weight: 700; color: var(--accent); }
.questions { display: grid; gap: 18px; }
