/* Venue prize draw demo (public/demo/venues). Dark, gig-night look. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
:root { --bg: #0d0b1a; --panel: #17142b; --line: #2c2747; --text: #f4f2ff; --muted: #a9a3c9; --accent: #ff3d7f; --accent-2: #7c5cff; --ok: #34d399; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Inter, system-ui, sans-serif; }
.demo-banner { background: #ff6a3d; color: #0e1b2c; text-align: center; font: 600 14px/1.4 system-ui, sans-serif; padding: 10px 16px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
.wide { max-width: 1040px; }
.hero { position: relative; padding: 40px 8px 28px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 340px; background: radial-gradient(closest-side, rgba(124,92,255,.55), transparent), radial-gradient(closest-side at 70% 60%, rgba(255,61,127,.45), transparent); filter: blur(10px); z-index: 0; }
.hero > * { position: relative; }
.venue-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 "Space Grotesk", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.venue-mark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
h1 { font: 700 clamp(30px, 8vw, 44px)/1.08 "Space Grotesk", sans-serif; margin: 14px 0 10px; letter-spacing: -.01em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); margin: 0 auto; max-width: 30em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 16px; }
.show { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.show b { display: block; font: 700 18px/1.2 "Space Grotesk", sans-serif; }
.show span { color: var(--muted); font-size: 14px; }
.pill { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(52,211,153,.12); color: var(--ok); font-weight: 600; font-size: 13px; }
.prize { display: grid; gap: 6px; }
.prize .big { font: 700 20px/1.25 "Space Grotesk", sans-serif; }
.prize small { color: var(--muted); }
label, legend { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 8px; }
legend { padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type=text], input[type=email] { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0f0c20; color: var(--text); font: inherit; }
input:focus-visible, .chip:focus-within, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #0f0c20; color: var(--text); font-size: 15px; }
.chip input:checked + span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.tick > span { flex: 1; }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-weight: 400; font-size: 15px; }
.tick input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.err { color: #fca5a5; min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font: 700 18px/1 "Space Grotesk", sans-serif; cursor: pointer; text-decoration: none; margin-top: 8px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-size: 15px; min-height: 44px; width: auto; padding: 0 16px; }
.done { text-align: center; }
.done .ref { display: inline-block; margin: 10px 0; padding: 10px 18px; border-radius: 12px; border: 1px dashed var(--accent-2); font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.foot a { color: var(--muted); }
.staff-link { margin-top: 12px; }
/* Staff page */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 8px; }
.top h1 { font-size: 30px; margin: 4px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tile b { display: block; font: 700 30px/1.1 "Space Grotesk", sans-serif; }
.tile span { color: var(--muted); font-size: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
h2 { font: 700 20px/1.2 "Space Grotesk", sans-serif; margin: 0 0 12px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 9.5em 1fr 3.2em; align-items: center; gap: 10px; font-size: 14px; }
.bar i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.draw { text-align: center; }
.draw .rolling { font: 700 26px/1.2 "Space Grotesk", sans-serif; min-height: 1.3em; margin: 12px 0; }
.draw .who { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.search { margin-bottom: 8px; }
@media (max-width: 600px) {
  table thead { display: none; }
  table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  table td::before { content: attr(data-label); color: var(--muted); }
}
/* Poster */
.poster { max-width: 720px; margin: 24px auto; background: var(--panel); border-radius: 24px; padding: 40px; text-align: center; border: 1px solid var(--line); }
.poster img { width: min(320px, 70vw); background: #fff; padding: 16px; border-radius: 16px; margin: 20px 0; }
@media print { .demo-banner, .no-print { display: none; } body { background: #fff; } .poster { color: #000; background: #fff; border: 0; } }

/* Black and white theme, like the venue's own site (Leeds). */
.theme-mono { --bg: #f2f2f2; --panel: #ffffff; --line: #dedede; --text: #111111; --muted: #5c5c5c; --accent: #000000; --accent-2: #000000; --ok: #0a7d3c; }
.theme-mono body { font-family: "Inter", "Open Sans", system-ui, sans-serif; }
.theme-mono .hero { background: #000; color: #fff; margin: 0 -16px; padding: 36px 24px 30px; }
.theme-mono .hero::before { display: none; }
.theme-mono .hero .lede, .theme-mono .hero .venue-mark { color: #d6d6d6; }
.theme-mono .venue-mark { color: #111; }
.theme-mono .venue-mark { text-transform: none; letter-spacing: 0; font: 700 18px/1 Inter, system-ui, sans-serif; }
.theme-mono .venue-mark .dot { display: none; }
.theme-mono h1 em { background: none; color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.theme-mono .card, .theme-mono .tile { box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.theme-mono input[type=text], .theme-mono input[type=email], .theme-mono .chip span, .theme-mono .search { background: #fff !important; color: #111 !important; }
.theme-mono .chip input:checked + span { background: #000 !important; color: #fff !important; border-color: #000; font-weight: 600; }
.theme-mono h1, .theme-mono h2, .theme-mono .tile b, .theme-mono .show b, .theme-mono .prize .big, .theme-mono .draw .rolling, .theme-mono .done .ref { font-family: Inter, system-ui, sans-serif; font-weight: 600; }
.theme-mono .btn { background: #000; border-radius: 8px; font-family: Inter, system-ui, sans-serif; }
.theme-mono .btn.ghost { background: #fff; color: #111; border-color: #111; }
.theme-mono .bar i { background: #000; }
.theme-mono .done .ref { border-color: #000; }
.theme-mono .pill { background: #e7f5ec; }
.theme-mono .err { color: #b91c1c; }
.theme-mono .top h1 { color: #111; }
.theme-mono .poster h1 em { color: #111; }
@media print { .theme-mono .poster h1 em { color: #000; } }

/* Venue logo (when supplied): on a white tile so a dark logo reads on the black header. */
.venue-logo { display: block; height: 84px; width: auto; margin: 0 auto 6px; background: #fff; padding: 10px 16px; border-radius: 12px; }
.venue-logo[hidden], .venue-mark[hidden] { display: none; }
.top .venue-logo { margin: 0 0 6px; height: 56px; padding: 6px 10px; border: 1px solid var(--line); }
.poster .venue-logo { height: 110px; width: auto; margin: 0 auto; padding: 0; }

/* Review fixes (6 Dec) */
.form-title { margin: 0 0 4px; }
.field { margin-top: 18px; }
.field:first-of-type { margin-top: 10px; }
.field label, .field legend { margin: 0 0 8px; }
.field .tick { margin-top: 0; }
.soft { font-weight: 400; color: var(--muted); }
.field-err { color: #b91c1c; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.field-err:empty { display: none; }
.has-err input[type=text], .has-err input[type=email] { border-color: #b91c1c; }
.has-err .chip span { border-color: #e9a3a3; }
.tick a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rules-text { margin: 10px 0 0 34px; padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 14px; }
.rules-text p { margin: 0; }
.event { display: grid; gap: 6px; }
.event-top { display: flex; align-items: center; justify-content: space-between; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.act { font: 700 28px/1.1 "Space Grotesk", sans-serif; }
.guests { color: var(--muted); font-size: 15px; }
.event .prize { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.event .prize small { display: block; color: var(--muted); font-size: 13px; }
.event .prize .big { font-size: 18px; }
.event .prize span { display: block; font-weight: 600; }
@media (max-width: 420px) { .event .prize { grid-template-columns: 1fr; } }
.draw-line { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.table-foot .hint { margin: 0; }
.table-foot .btn[hidden] { display: none; }
.top > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-mono .hero { margin: 0 calc(50% - 50vw); padding-left: calc(50vw - 50% + 24px); padding-right: calc(50vw - 50% + 24px); }
.theme-mono h1 em { text-decoration: none; color: #fff; }
.theme-mono .poster h1 em { color: #111; }
.theme-mono .act, .theme-mono .form-title { font-family: Inter, system-ui, sans-serif; font-weight: 700; }
html { overflow-x: hidden; }

/* Shows (like fixtures) */
.live-show { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-show .act { display: block; font-size: 24px; margin: 2px 0; }
.shows td { vertical-align: middle; }
.shows .guests { font-size: 13px; }
.shows tr.is-live td { background: var(--bg); }
.show-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.show-actions .btn { margin: 0; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.add-show { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.add-show h3 { margin: 0 0 8px; font-size: 16px; }
.add-show label { margin: 10px 0 6px; }
.add-show input[type=date] { width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #111; font: inherit; }
.add-grid { display: grid; grid-template-columns: 180px 1fr; gap: 0 12px; }
.add-grid .wide-col { grid-column: 1 / -1; }
@media (max-width: 600px) { .add-grid { grid-template-columns: 1fr; } .show-actions { justify-content: flex-start; } }
.add-show .btn { margin-right: 8px; }
.poster-act { font: 600 20px/1.3 Inter, system-ui, sans-serif; margin: 0; }

.shows .guests { display: block; margin-top: 2px; }
@media (max-width: 600px) {
  .shows td::before { display: none; }
  .shows td { display: block; }
  .shows td:first-child { color: var(--muted); font-size: 13px; }
  .shows td.show-actions { display: flex; gap: 12px; margin-top: 6px; }
}

/* Show artwork (when a show has an image). All supplied art is 72:46. */
.show-img { display: block; width: calc(100% + 40px); max-width: none; aspect-ratio: 72 / 46; object-fit: cover; margin: -20px -20px 10px; border-radius: 18px 18px 0 0; background: #000; }
.show-img[hidden] { display: none; }
.poster .show-img { width: 100%; margin: 20px 0 12px; border-radius: 12px; padding: 0; background: #000; }

/* Demo poster mark (Glenn, 6 Dec): printed too, so a demo poster can't be used on a real night. */
.poster.is-demo { position: relative; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster.is-demo::after { content: "DEMO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-30deg); font: 800 clamp(90px, 24vw, 220px)/1 Inter, system-ui, sans-serif; letter-spacing: .08em; white-space: pre; color: rgba(220, 38, 38, .16); pointer-events: none; z-index: 2; }
.demo-strip { margin: 0 -40px 16px; padding: 10px 16px; background: #dc2626; color: #fff; font: 700 15px/1.35 Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.poster .demo-strip:first-child { margin-top: -40px; }
.poster .demo-strip:last-child { margin: 16px -40px -40px; text-transform: none; letter-spacing: 0; font-weight: 600; }
@media print { .theme-mono .demo-strip, .demo-strip { background: #dc2626 !important; color: #fff !important; } .poster.is-demo::after { color: rgba(220, 38, 38, .22); } }

/* Prize choice on the staff page */
.prize-pick .field { margin-top: 14px; }
.prize-pick .add-grid { margin-top: 4px; }
.prize-pick input[type=text] { width: 100%; }
.prize-pick .btn { margin-top: 14px; }
.prize-line { font-weight: 600; margin: 0 0 4px; }
#runners-box[hidden], #prize-own[hidden], .prize-pick[hidden] { display: none; }
