/* SongBuzz — "Party". A Saturday-night party show: one big message per screen, flat saturated colour per
   round, players as little drawn characters, records and cassettes as the show's objects.
   Two voices: Shrikhand (a heavy 70s italic) for the show's big words, Archivo for everything else in plain
   sentence case. No glows, no chrome, no tags. Shared by the TV, phones, quizmaster and landing. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Shrikhand'; src: url('/fonts/shrikhand-latin.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shrikhand'; src: url('/fonts/shrikhand-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #141432;          /* type on light colours, the dark of every drawing */
  --cream: #fff6e3;        /* paper: cards, type on dark colours */
  --cobalt: #2a4bff;       /* the brand ground: lobby, reveal, landing */
  --orange: #ff6a3d; --teal: #12b8a6; --sun: #ffc531; --pink: #ff5f9e; --sky: #3fb6ff; --mint: #2ee6a6; --lime: #b6e33b;
  --red: #e5383b;          /* wrong, out */
  --green: #1f9d55;        /* right */
  --fg: var(--cream); --fg-2: rgba(255, 246, 227, .8); --line: rgba(255, 246, 227, .28);
  --show: 'Shrikhand', Georgia, serif;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* on a light colour, type turns to ink */
.light { --fg: var(--ink); --fg-2: rgba(20, 20, 50, .72); --line: rgba(20, 20, 50, .22); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--fg); background: var(--cobalt); font-family: var(--font); font-weight: 500; -webkit-tap-highlight-color: transparent; overflow-x: hidden; font-kerning: normal; text-rendering: optimizeLegibility; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--show); font-weight: 400; line-height: .95; letter-spacing: -.005em; text-wrap: balance; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.muted, .soft { color: var(--fg-2); }
.show { font-family: var(--show); font-weight: 400; }
/* small labels: plain bold sentence case, never tracked caps */
.colh, .paint { font-weight: 800; color: var(--fg); }
.colh { font-size: .9em; color: var(--fg-2); margin-bottom: .35em; }

.logo { font-family: var(--show); font-weight: 400; line-height: 1; color: var(--fg); white-space: nowrap; }
.logo b { font-weight: 400; }

/* what used to be split flaps: plain text now */
.num { font-variant-numeric: tabular-nums; }
.ln { display: block; }
.pop-in { animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.lamp { width: .55em; height: .55em; border-radius: 50%; display: inline-block; vertical-align: middle; flex: none; background: var(--line); }
.lamp.on { background: var(--sun); } .lamp.red.on { background: var(--red); } .lamp.green.on { background: var(--green); }
.sw { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .35em; vertical-align: middle; background: var(--c); box-shadow: 0 0 0 2px var(--ink); flex: none; }
.av { display: block; }
.vinyl { display: block; }

/* a song: title over artist, never "Title — Artist" */
.track { display: grid; justify-items: start; gap: .12em; min-width: 0; }
.track-title { font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.track-artist { font-weight: 600; font-size: .6em; line-height: 1.15; opacity: .75; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- keys */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; text-decoration: none; border-radius: 99px;
  padding: .7em 1.3em .74em; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 1.05em; line-height: 1;
  box-shadow: inset 0 -.18em 0 rgba(20, 20, 50, .18); transition: transform .1s var(--ease); }
.btn:active { transform: translateY(.1em); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.go, .btn.spot { background: var(--sun); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 .14em var(--line); }
.btn.big { font-size: 1.3em; }
.lang { border: 0; background: transparent; color: var(--fg-2); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; padding: .4em .2em; min-height: 44px; }

/* ---------------------------------------------------------------- settings */
.chips { display: flex; flex-wrap: wrap; gap: .45em; }
.chip { display: inline-flex; align-items: center; gap: .45em; border: 0; border-radius: 99px; padding: .5em .95em; min-height: 2.4em; background: transparent; color: var(--fg);
  font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 .13em var(--line); }
.chip.on { background: var(--sun); color: var(--ink); box-shadow: none; }
.sel-wrap { gap: .6em; padding-right: .5em; }
.sel { font: inherit; font-weight: 800; color: var(--ink); background: var(--cream); border: 0; border-radius: 99px; padding: .25em .7em; max-width: 12em; }
.sel:focus-visible { outline: .2em solid var(--sun); outline-offset: .1em; }
.chip-n { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--ink); color: var(--cream); font-style: normal; font-weight: 900; font-size: .8em; }
.chip.on .chip-n { background: var(--ink); color: var(--sun); }
.set-group { margin-bottom: 1em; }
.set-row { display: flex; flex-wrap: wrap; gap: 0 2em; }
.set-label { font-weight: 800; font-size: .95em; margin-bottom: .5em; }
.set-hint { font-weight: 500; color: var(--fg-2); margin-left: .3em; }
.stepper { display: inline-flex; align-items: center; gap: .6em; }
.stepper .chip { width: 2.4em; justify-content: center; padding: 0; font-size: 1.1em; }
.stepper-val { font-family: var(--show); font-size: 1.6em; min-width: 1.6em; text-align: center; }
.search-row { display: flex; gap: .45em; margin-top: .6em; }
.search-row input { flex: 1; min-width: 0; border: 0; border-radius: 99px; padding: .6em 1em; background: var(--cream); color: var(--ink); font-weight: 600; }
.search-row input::placeholder { color: rgba(20, 20, 50, .5); }
.search-row input:focus { outline: .15em solid var(--sun); }
/* tonight's programme: the setup as a short running order */
.prog-head { display: flex; justify-content: space-between; font-weight: 800; color: var(--fg-2); margin-bottom: .3em; }
.prog-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 1em; align-items: baseline; padding: .5em 0; border-top: 2px solid var(--line); }
.prog-row b { font-weight: 700; color: var(--fg-2); }
.prog-row > span { font-weight: 800; line-height: 1.35; }
.prog-rounds { display: flex; flex-wrap: wrap; gap: .3em 1em; }
.prog-rounds > span { display: inline-flex; align-items: center; gap: .4em; }
.prog-rounds em { font-style: normal; color: var(--sun); font-weight: 900; }
.light .prog-rounds em { color: var(--orange); }
.prog-keys { display: flex; gap: .6em; flex-wrap: wrap; margin-top: 1em; }

.error { background: var(--cream); color: var(--ink); border-radius: 1em; padding: .7em 1em; margin: .8em 0; font-weight: 700; display: flex; gap: .6em; align-items: center; }
.error .ic { color: var(--red); }
.ticker { display: none; }

.conn { position: fixed; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 99; display: none; background: var(--red); color: var(--cream); border-radius: 99px; padding: .45rem 1rem; font-weight: 800; font-size: .9rem; }
body.offline .conn { display: block; }
.spinner { width: 3em; height: 3em; margin: 0 auto; border-radius: 50%; background: var(--ink); animation: spin 1.4s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23%); mask: radial-gradient(circle, transparent 0 22%, #000 23%); box-shadow: inset 0 0 0 .5em var(--sun); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(.4em); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- jokers are cards from a party game */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.ticket { position: relative; display: grid; align-content: start; gap: .3em; text-align: left; border: 0; border-radius: 1em; padding: .8em .9em .9em; min-height: 6.2em;
  background: #fff; color: var(--ink); font: inherit; box-shadow: inset 0 -.2em 0 rgba(20, 20, 50, .12); transition: transform .08s; }
.ticket b { font-family: var(--show); font-weight: 400; font-size: 1.7em; line-height: 1; }
.ticket span { font-size: .82em; line-height: 1.25; font-weight: 600; color: rgba(20, 20, 50, .75); }
.ticket:nth-child(odd) { transform: rotate(-1deg); } .ticket:nth-child(even) { transform: rotate(1deg); }
.ticket:not(:disabled):active { transform: scale(.97); }
.ticket:disabled { cursor: default; }
.ticket.used, .ticket.na { opacity: .35; box-shadow: none; }
.ticket.played { background: var(--sun); }
.ticket.played::after { content: '✓'; position: absolute; right: .6em; top: .5em; font-weight: 900; font-size: 1.2em; }
/* a joker named inline: a small pill */
.stub { display: inline-block; background: var(--cream); color: var(--ink); font-weight: 900; line-height: 1; padding: .2em .55em .22em; border-radius: 99px; vertical-align: middle; }
.stub.dim { opacity: .4; }
.upnext { display: inline-grid; gap: .1em; padding: .45em .9em .55em; border-radius: .7em; background: var(--cream); color: var(--ink); transform: rotate(-4deg); font-weight: 800; }
.upnext b { font-family: var(--show); font-weight: 400; font-size: 1.4em; color: var(--orange); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .spinner { animation: spin 1.6s linear infinite !important; } }
.prog-rounds .off { opacity: .6; }
.prog-rounds .off small { font-size: .8em; font-weight: 600; }
/* the analytics question, at the foot of the page (home, phones; never the TV) */
.consent { position: fixed; z-index: 90; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--cream); color: var(--ink); box-shadow: 0 6px 0 rgba(20, 20, 50, .25), 0 0 0 2px var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.consent div { display: flex; gap: 8px; }
.consent .btn { font-size: 15px; padding: 10px 16px; }
