/*
 * Stylesheet for the trivia web application.
 * Light “Campfire” theme: warm ivory background, ember accents,
 * crisp charcoal text, distinct category colours. Responsive & accessible.
 */

:root {
  /* Campfire (light) — warm, friendly, high-contrast */
  --primary: #1f2937;            /* Charcoal text */
  --primary-contrast: #ffffff;   /* For text on strong fills if needed */
  --accent: #d9480f;             /* Ember orange */
  --accent-hover: #b9380b;       /* Darker ember */
  --background: #fff7ed;         /* Warm ivory page background */
  --surface: #fffaf3;            /* Light cream surface */
  --card-bg: #ffffff;            /* Cards white */
  --text: #1f2937;               /* Primary text (charcoal) */
  --muted: #6b7280;              /* Muted text */
  --border: #e5e7eb;             /* Subtle light border */

  /* Legacy named colours (kept in case you want them elsewhere) */
  --cat-general: #0ea5a4;
  --cat-science: #7c3aed;
  --cat-history: #dc2626;
  --cat-entertainment: #d97706;
  --cat-sports: #16a34a;
  --cat-geography: #2563eb;

  /* Fixed per-position colours (1..5) + neutral fallback */
  --cat-1: #0ea5a4;
  --cat-2: #7c3aed;
  --cat-3: #dc2626;
  --cat-4: #d97706;
  --cat-5: #2563eb;
  --cat-neutral: #374151;

  /* Shape & depth */
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,.12);

  /* Action button width (desktop/tablet) */
  --action-btn-w: 148px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.2px;
}

main {
  flex: 1;
  padding: 1rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Header */
header {
  background: #ffffff;
  color: var(--text);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
header h1 {
  margin: 0;
  font-size: 1.5rem; /* brand size on both pages */
  color: var(--primary);
}
header h1 > a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
header button {
  background-color: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
header button:hover { background-color: var(--accent-hover); }

/* Sections & lists */
section {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
section h2 { margin-top: 0; color: var(--primary); }
ul { list-style: none; padding: 0; margin: 0; }
li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
li:last-child { border-bottom: none; }

.quiz-title { font-weight: 600; margin-right: 0.5rem; }
.score { font-style: italic; margin-right: 0.5rem; }

/* Buttons */
.button,
button.button {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  transition: background-color 0.2s ease, transform 120ms ease, box-shadow 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.button.small { font-size: 0.85rem; padding: 0.4rem 0.8rem; line-height: 1.2; }
.button:hover,
button.button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button:active,
button.button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.button:focus,
button.button:focus {
  outline: 2px solid rgba(217, 72, 15, 0.35);
  outline-offset: 2px;
}
a.button:hover,
button.button:hover { background-color: var(--accent-hover); }

.error { color: #dc2626; font-size: 0.9rem; margin-top: 0.5rem; min-height: 1.2rem; }

/* Header socials (Instagram) */
header .socials {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-left: .75rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 .65rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  outline: none;
  line-height: 1; /* prevents baseline wobble */
}
.social-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.social-btn:focus { outline: 2px solid rgba(217,72,15,.35); outline-offset: 2px; }
/* Instagram gradient */
.social-btn.ig {
  background: radial-gradient(120% 120% at 0% 100%, #f9ed32 0%, #ee2a7b 45%, #6228d7 100%);
}
/* Normalize icon size for both img and svg */
.social-btn img,
.social-btn svg {
  width: 18px;
  height: 18px;
  display: block;      /* remove baseline gap */
  flex: 0 0 18px;      /* prevent stretching in flex */
}
.social-btn { gap: .45rem; }
@media (max-width: 520px) {
  .social-btn span { display: none; }
  .social-btn { min-width: 36px; padding: 0; }
}

/* Questions */
.question {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.question h3 { margin: 0 0 0.5rem 0; font-size: 1rem; color: var(--primary); }
.question .answer { margin-top: 0.5rem; font-style: italic; display: none; } /* hidden until revealed */
.question button.show-answer {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}
.question button.show-answer:hover { background-color: #111827; }
.question label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; }
/* Stack: question, Show Answer, then checkbox */
.question button.show-answer { display: block; margin: .25rem 0 .35rem; }
.question .answer { display: none; margin: .25rem 0; }

/* Submit */
.submit-container { text-align: right; margin-top: 2rem; }
.submit-container button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  background-color: var(--accent);
  border: none;
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.submit-container button:hover { background-color: var(--accent-hover); }

/* Results */
.result-summary {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--primary);
  text-align: center;
}
.result-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.result-item.correct   { border-left: 4px solid #16a34a; }
.result-item.incorrect { border-left: 4px solid #dc2626; }
.result-item h4 { margin: 0 0 0.3rem 0; font-size: 1rem; color: var(--primary); }
.result-item p  { margin: 0.2rem 0; font-size: 0.9rem; }

/* Thin divider between categories on the results page */
.cat-sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}


/* Small screens */
@media (max-width: 600px) {
  header h1 { font-size: 1.2rem; }
  header button { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
  .auth { margin: 1rem; padding: 1rem; }
  .question { padding: 0.8rem; }
  .submit-container button { width: 100%; }
}

/* Disabled inline hints */
.disabled { color: #9ca3af; cursor: not-allowed; text-decoration: none; margin-left: 10px; }

/* Links */
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--accent); }

/* Tap targets & form options */
.button, button, input[type="submit"] {
  min-height: 44px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
form label {
  display: block;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  line-height: 1.35;
  background: #fff;
}
form input[type="radio"],
form input[type="checkbox"] {
  margin-right: .6rem;
  inline-size: 1.1rem;
  block-size: 1.1rem;
  vertical-align: middle;
}

/* Comfortable reading sizes */
h1 { line-height: 1.2; }
h2, h3 { line-height: 1.25; }
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  body { font-size: 1rem; }
}
@media (min-width: 481px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  body { font-size: 1rem; }
}

/* Quiz archive cards */
.past h2 { margin-bottom: .75rem; }
.quiz-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head head" "meta actions";
  row-gap: .5rem;
}
@media (min-width: 640px) {
  .quiz-card { grid-template-areas: "head actions" "meta actions"; }
}
.quiz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quiz-header { grid-area: head; }
.quiz-header h3 { margin: 0; color: var(--primary); font-size: 1.05rem; }
.quiz-date { font-size: .9rem; color: var(--muted); margin-left: .5rem; }
.quiz-meta { grid-area: meta; font-size: .95rem; }
.quiz-score { color: #16a34a; font-weight: 600; }
.quiz-status { color: var(--accent); font-weight: 600; }
.quiz-actions { grid-area: actions; display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
.button.small { font-size: .85rem; padding: .4rem .7rem; }

/* State accents */
.quiz-card.played   { border-left: 5px solid #16a34a; }
.quiz-card.unplayed { border-left: 5px solid var(--accent); }
.quiz-card.locked   { border-left: 5px solid var(--border); opacity: .9; }

/* Make the View Results/Play Now buttons the same width */
.quiz-actions .button.small { width: var(--action-btn-w); justify-content: center; }

/* On narrow screens, let them grow full-width */
@media (max-width: 480px) {
  .quiz-actions { justify-content: stretch; }
  .quiz-actions .button.small { width: 100%; }
}

/* Make the View Results button match the played-state green */
.quiz-card.played a.button,
.quiz-card.played .button { background-color: #16a34a; color: #ffffff; }
.quiz-card.played a.button:hover,
.quiz-card.played .button:hover { background-color: #15803d; }
.quiz-card.played a.button:focus,
.quiz-card.played .button:focus { outline: 2px solid rgba(22, 163, 74, 0.35); outline-offset: 2px; }

/* Category visuals (position-based colours) */
.category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: .75rem 1rem 1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-left-color: var(--cat-neutral); /* neutral failsafe */
}
.category h3 {
  margin: 0;
  color: #fff;
  padding: .6rem .9rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 1.15rem;
  letter-spacing: .2px;
  background: var(--cat-neutral); /* neutral failsafe */
}
/* Subheading under category */
.category .cat-subtitle {
  margin: .45rem 0 .65rem;
  color: var(--primary);
  font-size: .95rem;
  line-height: 1.35;
  padding: 0 .15rem;
}

/* Fixed colours by position (always 5 categories) */
#quiz-form > .category:nth-child(1) { border-left-color: var(--cat-1); }
#quiz-form > .category:nth-child(1) h3 { background: var(--cat-1); }
#quiz-form > .category:nth-child(2) { border-left-color: var(--cat-2); }
#quiz-form > .category:nth-child(2) h3 { background: var(--cat-2); }
#quiz-form > .category:nth-child(3) { border-left-color: var(--cat-3); }
#quiz-form > .category:nth-child(3) h3 { background: var(--cat-3); }
#quiz-form > .category:nth-child(4) { border-left-color: var(--cat-4); }
#quiz-form > .category:nth-child(4) h3 { background: var(--cat-4); }
#quiz-form > .category:nth-child(5) { border-left-color: var(--cat-5); }
#quiz-form > .category:nth-child(5) h3 { background: var(--cat-5); }

/* Soft tinted background per position */
.category .question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  padding: .75rem .8rem;
  margin: .6rem 0;
}
#quiz-form > .category:nth-child(1) .question { background: color-mix(in srgb, var(--cat-1) 6%, #fff); }
#quiz-form > .category:nth-child(2) .question { background: color-mix(in srgb, var(--cat-2) 6%, #fff); }
#quiz-form > .category:nth-child(3) .question { background: color-mix(in srgb, var(--cat-3) 6%, #fff); }
#quiz-form > .category:nth-child(4) .question { background: color-mix(in srgb, var(--cat-4) 6%, #fff); }
#quiz-form > .category:nth-child(5) .question { background: color-mix(in srgb, var(--cat-5) 6%, #fff); }

/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  #quiz-form > .category:nth-child(1) .question { background: rgba(14,165,164,.08); }
  #quiz-form > .category:nth-child(2) .question { background: rgba(124,58,237,.08); }
  #quiz-form > .category:nth-child(3) .question { background: rgba(220,38,38,.08); }
  #quiz-form > .category:nth-child(4) .question { background: rgba(217,119,6,.10); }
  #quiz-form > .category:nth-child(5) .question { background: rgba(37,99,235,.08); }
}

/* Micro-interaction: subtle lift on hover (desktop only) */
@media (hover:hover) and (pointer:fine) {
  .category { transition: transform 140ms ease, box-shadow 140ms ease; }
  .category:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: var(--primary); color: var(--primary-contrast);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-5px); }

/* Results header formatting */
.result-summary { text-align: center; margin-bottom: 1rem; }
.result-summary h2 { margin-bottom: .25rem; }
.result-summary p { margin: 0; font-weight: 600; }

/* Action row under the score */
.top-actions {
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; flex-wrap: wrap; margin: .75rem 0;
}
@media (max-width: 480px) {
  .top-actions .button { padding: .5rem .75rem; font-size: .95rem; }
}

/* Header logo (legacy class no longer used; harmless) */
.site-title { font-size: 1.25rem; font-weight: 700; }

/* Hero */
#hero {
  padding: 2rem 1rem 1.25rem;
  max-width: 900px; margin: 0 auto;
  background: transparent; border: none; box-shadow: none;
  text-align: center;
}
#hero h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.2; margin: 0 0 0.5rem 0; }
.hero-sub { margin: 0.5rem auto 0; font-size: 1rem; opacity: 0.95; max-width: 60ch; }

/* FAQ cards */
#faq {
  max-width: 900px; margin: 2rem auto; padding: 1rem;
  background: transparent; border: none; box-shadow: none;
}
#faq .faq-item,
#faq details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
#faq details > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: -.25rem 0 .25rem;
}
#faq details > summary::-webkit-details-marker { display: none; }
#faq details > summary::marker { content: ""; }
#faq .faq-item h3 {
  margin: 0 0 .5rem 0;
  font-size: 1.05rem;
  color: var(--accent);
}
#faq .faq-item p { margin: 0; font-size: 0.95rem; line-height: 1.4; }

/* Welcome message alignment (when shown in header area) */
#welcome-message {
  text-align: center;
  display: block;
  margin: 0.75rem auto;
}
header #welcome-message {
  flex: 0 0 100%;
  order: 2;
  text-align: center;
  margin: .5rem 0 0;
}

/* Welcome message on home*/
.welcome-chip {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-weight: 600;
  line-height: 1.2;
}
/* Only show the welcome chip when it has content */
#welcome-message:empty { display: none; }


/* Share UX on results */
.share-actions { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: .5rem; 
  margin-top: .5rem; 
}

/* A lighter, outlined secondary button (Return Home) */
.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.button.secondary:hover {
  background: #fff;
  color: var(--primary);
  border-color: #d1d5db;
}

/* Results footer */
.results-footer {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 1.25rem 0 0;
  flex-wrap: wrap;
}
.results-footer .button { min-width: 180px; }
@media (max-width: 520px) {
  .results-footer { flex-direction: column; }
  .results-footer .button { width: 100%; }
}

/* CSP-safe utility classes (replace prior inline styles) */
.row-wrap { display: flex; flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.align-center { align-items: center; }
.mt-1 { margin-top: 1rem; }
.mt-05 { margin-top: .5rem; }
.text-sm { font-size: .9rem; }
.muted { color: var(--muted); }

/* Answer visibility (JS toggles .is-visible) */
.answer { display: none; }
.answer.is-visible { display: block !important; }

/*lock submit button while submitting*/
.submit-container button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}


/* === Inline Sign-in Nudge (brand, simple, CSP-safe) === */
#signin-nudge[hidden] { display: none !important; }
#signin-nudge {
  background: var(--primary); /* charcoal */
  color: var(--surface);      /* cream */
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#signin-nudge .sn-inner {
  max-width: 900px; margin: 0 auto; padding: .75rem 1rem;
  display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
#signin-nudge .sn-text { font-weight: 600; }
#signin-nudge .sn-actions { display: flex; gap: .5rem; align-items: center; }
#signin-nudge .button.small { min-width: auto; }
#signin-nudge .button.small.secondary {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
#signin-nudge .button.small.secondary:hover { background: rgba(255,255,255,.06); }
#signin-nudge .sn-close {
  background: transparent; border: none; color: var(--surface);
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: .25rem .4rem; border-radius: 8px;
}
#signin-nudge .sn-close:hover { background: rgba(255,255,255,.08); }


/* Soft Gate (Past Quiz) */
.cq-gate {
  background: #1f2937;
  color: #fff7ed;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  max-width: 640px;
  margin: 24px auto;
  text-align: center;
}
.cq-gate h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.cq-gate p {
  margin: 0 0 20px;
  opacity: 0.9;
}
.cq-gate .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cq-btn-primary {
  background: #d9480f;
  color: #fff7ed;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}
.cq-btn-secondary {
  background: transparent;
  color: #fff7ed;
  border: 1px solid rgba(255,247,237,0.5);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}
.cq-gate .note {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Centered Instagram icon link in the header bar */
header .ig-link {
  display: block;
  text-align: center;
  padding: .5rem 0;
}
header .ig-link img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* Leaderboard — brand-aligned, lightweight */
/* optional breathing room for the inner mount */
#leaderboard-box { margin: 8px 0; }

.cq-leaderboard {
  background: #1f2937;           /* charcoal */
  color: #fff7ed;                 /* cream */
  border-radius: 12px;
  padding: 12px 14px;
}

.cq-leaderboard__heading {
  font-weight: 700;
  margin: 0 0 6px 0;
}

.cq-leaderboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cq-leaderboard__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;  /* a touch wider for the rank pill */
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 247, 237, 0.08); /* subtle cream divider */
}

.cq-leaderboard__row:first-child { border-top: 0; }

.cq-leaderboard__rank {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(217, 72, 15, 0.15);  /* ember tint */
}

.cq-leaderboard__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-leaderboard__score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.cq-leaderboard__empty,
.cq-leaderboard__error {
  opacity: .9;
  padding: 4px 0;
}
