/* The kit's layout. Phone-first: one column, at most 440 px wide, centred on bigger screens. */
/* The colours and fonts are in each event's theme.css, loaded after this file. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }            /* hidden wins over any display rule below */
html, body { height: 100vh; }                      /* not 100%: iOS leaves a band at the bottom (Dracula lesson) */
body { margin: 0; background: var(--bg); color: var(--white); font: 400 16px/1.45 var(--body); -webkit-text-size-adjust: 100%; }
a { color: var(--orange); }
button, input { font: inherit; color: inherit; }

/* The prototype banner on every page */
.proto { position: sticky; top: 0; z-index: 10; background: #ffd23f; color: #241000; text-align: center;
  font: 700 11.5px/1.3 var(--body); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page { min-height: calc(100vh - 26px); max-width: 440px; margin: 0 auto; padding: 18px 20px 24px;
  display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.back { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
  text-decoration: none; color: var(--white); font-size: 20px; line-height: 1; }
.step { color: var(--muted); font-size: 13px; }

h1 { margin: 0; font: 900 clamp(30px, 9vw, 40px)/.98 var(--head); font-stretch: 72%; letter-spacing: -.01em;
  text-transform: uppercase; }
.lede { margin: 0; color: var(--lav); }
.small { font-size: 13px; color: var(--muted); }
.spacer { flex: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pill { align-self: flex-start; background: var(--purple-soft); color: var(--lav); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; }

.btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px 18px; background: var(--orange);
  color: #1c0a00; font-weight: 800; font-size: 17px; text-align: center; text-decoration: none; cursor: pointer; }
.btn:active { background: var(--orange-press); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: var(--card-2); color: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.error { background: #4a1630; border: 1px solid #a8325a; color: #ffd6e0; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.error[hidden] { display: none; }

/* Landing */
.hero { border-radius: 18px; padding: 26px 18px 22px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #5a1e8f 0%, #2a0f52 55%, var(--bg) 100%); }
.wordmark .tb { font: 800 14px/1 var(--head); letter-spacing: .32em; color: var(--lav); }
.wordmark .dm { margin-top: 6px; font: 900 44px/.9 var(--head); font-stretch: 62%; text-transform: uppercase;
  background: linear-gradient(180deg, #ffb347 0%, #ff5a1f 55%, #d9241b 100%); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #12041f); }
.facts { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--lav); }
.facts div { display: flex; gap: 10px; align-items: center; }
.facts svg { flex: none; width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 2; }

/* Pick your time */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border-radius: 12px; padding: 4px; }
.tabs button { border: 0; border-radius: 9px; padding: 10px; background: transparent; color: var(--lav); font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--white); color: #3a1270; }
.hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hours::-webkit-scrollbar { display: none; }
.hours button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--card);
  color: var(--lav); font-weight: 700; font-size: 14px; cursor: pointer; }
.hours button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.hours button.none { opacity: .45; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px 10px; background: var(--card); text-align: center;
  cursor: pointer; color: var(--white); }
.slot b { display: block; font-size: 18px; font-weight: 800; }
.slot span { font-size: 12px; color: var(--lav); }
.slot.few span { color: var(--orange); }
.slot.full, .slot.closed { background: var(--full); border-color: var(--full); color: var(--full-text); cursor: default; }
.slot.full b, .slot.closed b { text-decoration: line-through; font-weight: 600; }
.slot.full span, .slot.closed span { color: var(--full-text); }
.slot[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1c0a00; }
.slot[aria-pressed="true"] span { color: #3a1500; }
.foot { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 22%); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px; }
.foot .sel { display: flex; justify-content: space-between; font-size: 14px; color: var(--lav); }
.foot .sel b { color: var(--orange); font-weight: 700; }

/* Who's coming */
.party { display: flex; align-items: center; gap: 12px; }
.party .t { flex: 1; }
.party .t b { display: block; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2);
  font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button.plus { background: var(--purple); border-color: var(--purple); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-size: 22px; font-weight: 800; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--lav); }
label.f input { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px;
  color: var(--white); }
label.f input:focus { outline: none; border-color: var(--orange); }
.hint { font-size: 12px; color: var(--muted); }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--lav); line-height: 1.4; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.tick em { font-style: normal; color: var(--muted); }
.legal { text-align: center; font-size: 12px; color: var(--muted); }

/* The confirmation page */
.done { width: 54px; height: 54px; border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  margin: 4px auto 0; color: #1c0a00; font-size: 28px; font-weight: 900; }
.centre { text-align: center; }
.ticket { background: var(--white); color: #1d0b3a; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ticket .qr { width: 72%; margin: 0 auto; }
.ticket .qr svg { display: block; width: 100%; height: auto; }
.ticket .code { text-align: center; font: 600 14px var(--mono); letter-spacing: .08em; color: #6b2fd6; }
.ticket .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #e7e0f5; padding-top: 12px; }
.ticket .meta small { display: block; color: #7a6c99; font-size: 12px; }
.ticket .meta b { display: block; font-size: 15px; line-height: 1.25; }
.ticket.dim .qr { opacity: .15; }
.status { text-align: center; font-weight: 700; border-radius: 12px; padding: 10px; }
.status.ok { background: #123d2a; color: var(--good); }
.status.warn { background: #4a1630; color: #ffd6e0; }
.confirm-box { display: flex; flex-direction: column; gap: 10px; }
.confirm-box[hidden] { display: none; }
.linkbtn { background: none; border: 0; color: var(--orange); text-decoration: underline; cursor: pointer; padding: 6px; font-weight: 600; }

/* Walk-up line */
.tag { align-self: flex-start; background: var(--purple); color: var(--white); border-radius: 999px; padding: 4px 10px;
  font: 700 11px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat b.hot { color: var(--orange); }
.place { display: flex; gap: 16px; align-items: center; background: var(--purple-soft); }
.place .big { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--purple); display: grid;
  place-items: center; font: 900 24px var(--head); }
.centre { text-align: center; }

/* The pretend phone */
.phone { background: #0d0618; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: flex;
  flex-direction: column; min-height: 520px; }
.phone .ph-head { text-align: center; padding: 14px 10px 10px; border-bottom: 1px solid #241540; }
.phone .ph-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); display: grid;
  place-items: center; margin: 0 auto 4px; font-weight: 800; font-size: 14px; }
.phone .ph-head small { display: block; color: var(--muted); font-size: 11px; }
.msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 60vh; }
.msgs .when { align-self: center; color: var(--muted); font-size: 11px; margin: 6px 0 2px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; word-wrap: break-word; }
.bubble.out { align-self: flex-start; background: #2a2340; border-bottom-left-radius: 4px; }
.bubble.in { align-self: flex-end; background: var(--orange); color: #1c0a00; border-bottom-right-radius: 4px; font-weight: 700; }
.bubble.mail { align-self: stretch; max-width: none; background: #1d2a3f; border: 1px dashed #3d5a85; border-radius: 10px; }
.bubble.mail small { display: block; color: #8fb3e8; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.bubble a { color: inherit; }
.yn { display: flex; gap: 10px; padding: 0 12px 10px; }
.yn button { flex: 1; border: 0; border-radius: 12px; padding: 12px; font-size: 18px; font-weight: 900; cursor: pointer; }
.yn .y { background: var(--good); color: #062014; }
.yn .n { background: var(--bad); color: #2a0606; }
.compose { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid #241540; }
.compose input { flex: 1; min-width: 0; background: #1a1030; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; }
.compose button { flex: none; border: 0; border-radius: 999px; padding: 0 12px; background: var(--card-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }

/* Staff: the gate and admin, iPad-first. Bigger type and targets; two columns on a landscape iPad. */
.staff { max-width: 1180px; font-size: 17px; }
.staff .grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .staff .grid2 { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.staff .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hdr { display: flex; justify-content: space-between; align-items: center; }
.hdr small { display: block; color: var(--muted); font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; }
.hdr b { font-size: 20px; }
.live { border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; background: #123d2a; color: var(--good); }
.live.off { background: #3a2c55; color: var(--muted); }
.nowcard .top2 { display: flex; justify-content: space-between; align-items: baseline; }
.nowcard .top2 b { font: 900 34px/1 var(--head); font-stretch: 72%; text-transform: uppercase; }
.nowcard .top2 span { font-size: 20px; font-weight: 800; }
.bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 12px 0 10px; }
.bar i { height: 12px; border-radius: 99px; background: #3a2c55; }
.bar i.in { background: var(--orange); }
.bar i.held { background: var(--purple); }
.bar i.walkin { background: #ff4fa3; }
.bar i.called { background: transparent; border: 2px solid #ff4fa3; }
.key { font-size: 14px; color: var(--lav); }
.key b { color: var(--white); }
.key .open { color: var(--good); font-weight: 800; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acts .btn { padding: 16px 12px; font-size: 17px; }
.acts .wide { grid-column: 1 / -1; }
.btn.purple { background: var(--purple); color: var(--white); }
.btn.outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.drawer { display: flex; gap: 8px; }
.drawer input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 17px; }
.drawer .btn { width: auto; padding: 0 20px; }
.toast { border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.toast.ok { background: #123d2a; color: var(--good); }
.toast.bad { background: #4a1630; color: #ffd6e0; }
.list { display: flex; flex-direction: column; }
.list .it { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.list .it:last-child { border-bottom: 0; }
.list .it .num { width: 26px; height: 26px; border-radius: 50%; background: var(--purple-soft); display: grid; place-items: center;
  font-size: 13px; font-weight: 800; flex: none; }
.list .it .nm { flex: 1; min-width: 0; }
.list .it .rt { color: var(--lav); font-size: 14px; white-space: nowrap; }
.list .it .mini { border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 800; cursor: pointer; background: var(--orange); color: #1c0a00; }
.list .it .mini.ghost { background: var(--card-2); color: var(--white); }
.sect { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.upn .it b { width: 82px; flex: none; }

/* Staff pages: the form boxes and the sign-out button */
select, textarea { width: 100%; background: var(--card-2); color: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 15px/1.4 var(--body); }
.hdr .mini { background: var(--card-2); color: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 600 13px/1.2 var(--body); white-space: nowrap; }

/* The gate's camera: a line that moves while it's looking, so you can see it's looking */
.scanline { position: absolute; left: 8px; right: 8px; height: 3px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 8px; } to { top: calc(100% - 11px); } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 50%; } }

/* The gate's sessions board: one row an hour, one box a session */
.srow { display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.shr { flex: none; width: 44px; font-size: 12px; color: var(--muted); }
.scell { flex: 1 1 0; min-width: 0; height: 30px; padding: 0; border: 0; border-radius: 5px; font: 700 13px/1 var(--body); color: #10131a; background: #35b77a; cursor: pointer; }
.scell.none { background: var(--card-2); color: var(--muted); }
.scell.some { background: #35b77a; }
.scell.few { background: #ffb347; }
.scell.full { background: #ff6b6b; }
.scell.past { background: var(--full); color: var(--full-text); }
.scell.now { outline: 3px solid var(--white); outline-offset: 1px; }
.scell.picked { box-shadow: inset 0 0 0 3px #10131a; }
.slotsmall { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.slotsmall .mini { padding: 8px 4px; line-height: 1.25; }

/* Small buttons outside a list row: the day tabs, the filters, the times to move to */
#gDays .mini, #guestsCard [data-f], .slotsmall .mini { border: 1px solid transparent; border-radius: 10px; padding: 7px 11px; background: var(--orange); color: #1c0a36; font: 700 13px/1.25 var(--body); cursor: pointer; }
#gDays .mini.ghost, #guestsCard [data-f].ghost, .slotsmall .mini.ghost { background: var(--card-2); border-color: var(--line); color: var(--lav); }
.slotsmall .mini { background: var(--purple-soft); color: var(--white); border-color: var(--line); padding: 8px 4px; }
.hdr a.small { white-space: nowrap; }
