/* London Entertainment Trivia — brand system
   Pulled from the logo: near-black + charcoal, flame orange stripes, peach skin tone, white condensed wordmark. */
:root {
  --ink: #121212;
  --ink-2: #181818;
  --surface: #222222;
  --surface-2: #2c2c2c;
  --line: #3a3a3a;
  --flame: #F05A3A;
  --flame-2: #FF7A5C;
  --flame-dark: #B93E25;
  --peach: #F8C8A8;
  --cream: #FFF4EA;
  --text: #F5F5F5;
  --muted: #A3A3A3;
  --good: #3DDC84;
  --bad: #FF5252;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font-display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --stripes: repeating-linear-gradient(-45deg, var(--flame) 0 14px, #262626 14px 34px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  -webkit-user-select: none; user-select: none;
}
input, textarea, select, button { font-family: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }

/* typography */
.display { font-family: var(--font-display); letter-spacing: .04em; line-height: .95; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin: 0; font-weight: 400; line-height: 1; }
h1 { font-size: 44px; } h2 { font-size: 30px; } h3 { font-size: 22px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; font-size: 14px; color: var(--flame); }

/* stripe band — the signature accent */
.stripe { height: 10px; background: var(--stripes); }
.stripe.thin { height: 6px; }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--flame);
  box-shadow: 0 6px 0 var(--flame-dark), 0 12px 24px rgba(240,90,58,.25);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--flame-dark); }
.btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; transform: none; box-shadow: 0 6px 0 #333; }
.btn.block { width: 100%; }
.btn.lg { font-size: 26px; padding: 18px 28px; }
.btn.sm { font-size: 16px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--flame-dark); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: 0 6px 0 #161616; }
.btn.ghost.sm { box-shadow: 0 3px 0 #161616; }
.btn.peach { background: var(--peach); color: #1a1a1a; box-shadow: 0 6px 0 #c99a7c; }
.btn.peach.sm { box-shadow: 0 3px 0 #c99a7c; }
.btn.danger { background: #7a2a1e; box-shadow: 0 6px 0 #4a180f; }
.btn.danger.sm { box-shadow: 0 3px 0 #4a180f; }
.btn.good { background: #1f8a53; box-shadow: 0 6px 0 #135233; }
.btn.good.sm { box-shadow: 0 3px 0 #135233; }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.input {
  width: 100%; border: 2px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 14px 16px; font-size: 18px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--flame); box-shadow: 0 0 0 4px rgba(240,90,58,.18); }
.input.big { font-family: var(--font-display); font-size: 34px; letter-spacing: .3em; text-align: center; padding: 12px; }
.input::placeholder { color: #6a6a6a; letter-spacing: normal; }
textarea.input { resize: vertical; min-height: 80px; }
select.input { appearance: none; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pill.flame { background: rgba(240,90,58,.15); color: var(--flame-2); }
.pill.good { background: rgba(61,220,132,.15); color: var(--good); }
.pill.bad { background: rgba(255,82,82,.15); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); }

/* answer option colors: 4 brand swatches + 2 extras, indexed by option order */
.opt-0 { --opt-bg: #F05A3A; --opt-fg: #fff; --opt-shadow: #B93E25; }
.opt-1 { --opt-bg: #F8C8A8; --opt-fg: #1a1a1a; --opt-shadow: #C99A7C; }
.opt-2 { --opt-bg: #3A3A3A; --opt-fg: #fff; --opt-shadow: #1a1a1a; }
.opt-3 { --opt-bg: #FFF4EA; --opt-fg: #1a1a1a; --opt-shadow: #C9BCB0; }
.opt-4 { --opt-bg: #8E2F1D; --opt-fg: #fff; --opt-shadow: #5A1C10; }
.opt-5 { --opt-bg: #6B6B6B; --opt-fg: #fff; --opt-shadow: #3d3d3d; }

/* timer ring */
.ring { position: relative; width: 74px; height: 74px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: var(--flame); transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring.urgent .bar { stroke: var(--bad); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; }

/* utilities */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.logo-sm { height: 44px; width: auto; }

@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.06); opacity: 1 } 100% { transform: scale(1) } }
@keyframes rise { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes pulse { 0%,100% { opacity: .55 } 50% { opacity: 1 } }
@keyframes shake { 0%,100% { transform: none } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; }
.rise { animation: rise .35s ease both; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
.shake { animation: shake .3s ease; }

/* scrollbars (admin) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 10px; border: 2px solid var(--ink); }
