/* ==========================================================================
   Who's Up — shared look for every page
   Same one-ink poster look as the main site: cream paper, maroon ink.
   The display (/lineup) runs with the lights off.
   ========================================================================== */

:root {
  --paper: #f3e8cf;
  --paper-2: #eadbb9;
  --card: #f9f1de;
  --ink: #5a0f1f;
  --text: #3b1119;
  --muted: #76564e;
  --rule: rgba(90, 15, 31, .26);
  --rule-soft: rgba(90, 15, 31, .12);
  --btn-bg: #7b1730;
  --btn-fg: #f8f0da;
  --btn-edge: #4a0d1a;
  --shadow: rgba(70, 25, 10, .2);
  --focus: #7b1730;
  --gold: #b78d3a;
  --ok: #3f6b2f;
  --warn: #9a5a10;
  --live: #c22a46;

  --display: "Bevan", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --script: "Oleo Script", "Brush Script MT", cursive;
  --body: "Zilla Slab", Rockwell, Georgia, serif;

  color-scheme: light;
}

html[data-lights="off"] {
  --paper: #180a0e;
  --paper-2: #231018;
  --card: #26121b;
  --ink: #f3e3c4;
  --text: #ecdcc0;
  --muted: #b9a092;
  --rule: rgba(243, 227, 196, .22);
  --rule-soft: rgba(243, 227, 196, .1);
  --btn-bg: #a8243f;
  --btn-fg: #fff4de;
  --btn-edge: #5a0f1f;
  --shadow: rgba(0, 0, 0, .55);
  --focus: #f6d77c;
  --gold: #f6d77c;
  --ok: #9cc77f;
  --warn: #f0b45a;
  --live: #ff5a75;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 1.0625rem/1.5 var(--body);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(130% 90% at 50% 0%, transparent 55%, rgba(120, 70, 20, .1) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .18  0 0 0 0 .08  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ layout ------------------------------ */

.wrap { width: min(100% - 32px, 34rem); margin-inline: auto; padding: 28px 0 calc(48px + env(safe-area-inset-bottom)); }
.wrap--wide { width: min(100% - 32px, 64rem); }

.masthead { text-align: center; margin-bottom: 22px; }
.masthead__brand {
  display: inline-block; font: 400 1.15rem/1 var(--script); color: var(--ink); text-decoration: none;
  transform: rotate(-3deg);
}
.masthead__title {
  margin-top: 10px;
  font: italic 400 clamp(1.7rem, 8vw, 2.6rem)/1.02 var(--display); letter-spacing: .01em; text-transform: uppercase;
  color: var(--ink);
}
.masthead__meta { margin-top: 8px; font-style: italic; color: var(--muted); }

.eyebrow {
  font: 700 .74rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------ cards ------------------------------ */

.card {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--rule), 0 14px 30px -18px var(--shadow);
}
.card + .card { margin-top: 18px; }
.card__title { font: italic 400 1.35rem/1.15 var(--display); text-transform: uppercase; color: var(--ink); }
.card__sub { margin-top: 4px; color: var(--muted); font-style: italic; }

.note-pin {
  margin: 0 0 18px; padding: 12px 16px;
  border-left: 4px solid var(--ink); background: var(--rule-soft);
  font-style: italic;
}

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .72em 1.35em .66em;
  font: italic 400 .95rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-edge); border-radius: 999px;
  box-shadow: 0 4px 0 var(--btn-edge);
  cursor: pointer; user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn--ghost { color: var(--ink); background: transparent; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover, .btn--ghost:active { box-shadow: none; }
.btn--block { display: flex; width: 100%; }
.btn--big { min-height: 58px; font-size: 1.1rem; }
.btn--sm { min-height: 38px; padding: .5em 1em .45em; font-size: .78rem; box-shadow: 0 3px 0 var(--btn-edge); }
.btn--sm.btn--ghost { box-shadow: none; }

.linkish {
  background: none; border: 0; padding: .45em .2em; cursor: pointer; color: var(--ink);
  font: 400 .95rem var(--body); text-decoration: underline; text-underline-offset: .2em;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row--center { justify-content: center; }

/* ------------------------------ forms ------------------------------ */

.field { display: grid; gap: 6px; margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field__label { font: 700 .95rem/1.2 var(--body); color: var(--ink); }
.field__hint { font-size: .88rem; color: var(--muted); font-style: italic; }
.field__opt { font-weight: 400; font-style: italic; color: var(--muted); }

.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 1.15rem; line-height: 1.3;
  background: var(--paper); color: var(--text);
  border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 2px 0 var(--rule-soft);
  appearance: none;
}
.input::placeholder { color: var(--muted); opacity: .7; font-style: italic; }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.input--name { font: 400 1.6rem/1.2 var(--script); min-height: 60px; }
textarea.input { min-height: 84px; resize: vertical; }
.input--sm { min-height: 40px; padding: 7px 10px; font-size: 1rem; }

.prefix { position: relative; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; pointer-events: none; }
.prefix > .input { padding-left: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-grid; place-items: center; min-width: 64px; min-height: 46px; padding: 0 14px;
  font: italic 400 1rem/1 var(--display); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  transition: background .15s, color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--btn-bg); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin-top: 14px; padding: 10px 14px; border: 2px dashed var(--live); border-radius: 6px;
  color: var(--live); font-weight: 600;
}

/* ------------------------------ ticket (you're in) ------------------------------ */

.ticket {
  position: relative; overflow: hidden;
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--rule);
  text-align: center;
}
.ticket__top { padding: 22px 20px 18px; }
.ticket__stamp {
  display: inline-block; padding: .3em .7em .22em;
  font: italic 400 .9rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border: 2px solid currentColor; border-radius: 4px;
  transform: rotate(-4deg);
}
.ticket__stamp--wait { color: var(--warn); }
.ticket__name { margin-top: 14px; font: 400 clamp(2rem, 11vw, 3rem)/1.05 var(--script); color: var(--ink); overflow-wrap: anywhere; }
.ticket__ig { margin-top: 4px; color: var(--muted); }
.ticket__perf {
  position: relative; height: 0; border-top: 2px dashed var(--rule); margin: 0 14px;
}
.ticket__perf::before, .ticket__perf::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.ticket__perf::before { left: -28px; }
.ticket__perf::after { right: -28px; }
.ticket__bottom { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 12px 20px; }
.ticket__stat + .ticket__stat { border-left: 2px solid var(--rule); }
.ticket__big { font: italic 400 2.2rem/1.1 var(--display); color: var(--ink); }
.ticket__small { font-size: .85rem; color: var(--muted); }
.ticket__foot { padding: 0 20px 20px; color: var(--muted); font-style: italic; font-size: .95rem; }

.mini-list { margin-top: 18px; padding: 0; list-style: none; counter-reset: n; }
.mini-list li {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 2px;
  border-bottom: 1px solid var(--rule-soft); font-size: 1.05rem;
}
.mini-list li::before { counter-increment: n; content: counter(n) "."; min-width: 1.8em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-list li.is-me { font-weight: 700; color: var(--ink); }
.mini-list .t { margin-left: auto; padding-left: 10px; font-size: .9rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-list li.is-done { text-decoration: line-through; color: var(--muted); }
.mini-list li.is-break { font-style: italic; color: var(--muted); }
.mini-list--plain li::before { content: "·"; }

/* ------------------------------ toast ------------------------------ */

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 32px); padding: 12px 18px;
  font-weight: 600; color: var(--btn-fg); background: var(--btn-edge);
  border-radius: 8px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast.is-bad { background: #8a1328; }

.livedot { display: inline-block; width: .55em; height: .55em; margin-right: .35em; border-radius: 50%; background: var(--ok); vertical-align: .08em; }
.livedot.is-off { background: var(--muted); }

.foot { margin-top: 28px; text-align: center; font-size: .9rem; color: var(--muted); font-style: italic; }

/* ------------------------------ show-night nav ------------------------------
   The three guest pages, one tap apart: sign up, the lineup, send pics to the TV. */

.guestnav {
  display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 4px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--rule);
}
.guestnav a {
  padding: .5em .95em .42em; border-radius: 999px; white-space: nowrap; text-decoration: none;
  font: italic 400 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.guestnav a:hover { background: var(--rule-soft); }
.guestnav a[aria-current="page"] { color: var(--btn-fg); background: var(--btn-bg); }
/* On the lineup display it only shows on phones; the TV across the room doesn't need it. */
.guestnav--phone { display: none; }
@media (max-width: 760px) {
  .guestnav--phone { display: flex; position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; z-index: 40; margin: 0; transform: translateX(-50%); }
  body:has(.guestnav--phone) .stage { padding-top: calc(64px + env(safe-area-inset-top)); }
  .hide-phone { display: none !important; }
}

/* ------------------------------ reaction bar (react.js) ------------------------------ */

/* A little pad of twelve: two rows of six on a phone, one row where there's room. */
.reactbar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(6, 44px); justify-content: center; gap: 0 4px; max-width: calc(100% - 16px); padding: 6px 8px 4px;
  background: var(--btn-edge); border-radius: 22px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55), 0 0 0 2px rgba(246, 215, 124, .35);
  animation: reactbar-in .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.reactbar[hidden] { display: none; }
.reactbar__label { grid-column: 1 / -1; margin: 0 0 2px; text-align: center; font: 700 .6rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #f6d77c; white-space: nowrap; }
@media (min-width: 640px) { .reactbar { grid-template-columns: repeat(12, 44px); } }
.reactbar button {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: transparent;
  font-size: 1.55rem; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .1s;
}
.reactbar button:active { transform: scale(1.35); }
.reactbar button.is-wobble { animation: react-wobble .4s ease; }
.reactfloat { position: fixed; z-index: 61; pointer-events: none; font-size: 1.8rem; transform: translate(-50%, 0); animation: react-float 1.1s ease-out forwards; }
body.has-reactbar { padding-bottom: 130px; }
@media (max-width: 340px) { .reactbar { grid-template-columns: repeat(6, 40px); gap: 0 2px; } .reactbar button { width: 40px; font-size: 1.4rem; } }
@keyframes reactbar-in { from { transform: translate(-50%, 140%); } }
@keyframes react-float { to { transform: translate(calc(-50% + var(--drift, 0px)), -140px) scale(1.5); opacity: 0; } }
@keyframes react-wobble { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
/* On the lineup display the bar is for phones only; the TV doesn't need buttons. */
@media (min-width: 761px) { body.lineup-page .reactbar { display: none; } }
@media (max-width: 760px) {
  /* The lineup page doesn't scroll, so make room inside it instead, and lift its buttons above the bar. */
  body.lineup-page.has-reactbar { padding-bottom: 0; }
  body.lineup-page.has-reactbar .stage { padding-bottom: 136px; }
  body.has-reactbar .chrome { bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
