/* Battle screens, score bars and round HUD. Prefix bt-.
   Built on the GuesserGod theme variables (theme.css: black with a gold accent) so battles look like the rest of the
   game on every page, whatever order the stylesheets load in. The fallbacks only matter if theme.css is missing. */
.bt-hidden { display: none !important; }

/* ---------- full-screen overlay (lobby, queue, countdown, result) ---------- */

.bt-overlay {
  position: fixed; inset: 0; z-index: 7000;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px; overflow-y: auto;
  background: radial-gradient(circle at 30% 10%, rgba(226, 176, 79, 0.16) 0%, var(--bg, #0d0c12) 62%);
  color: var(--ink, #ece8f4); font-family: var(--font-body);
}
/* short screens sit in the middle; long ones (results) scroll from the top */
.bt-overlay::before, .bt-overlay::after { content: ""; flex: 1 0 0; }
.bt-overlay.bt-translucent { background: rgba(5, 4, 9, 0.8); backdrop-filter: blur(4px); }

.bt-card {
  width: 100%; max-width: 460px; padding: 28px 24px; flex: none;
  background: var(--card, #15131c); color: var(--ink, #ece8f4);
  border: 1px solid var(--line, #2b2838); border-radius: var(--rx-lg, 6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); text-align: center;
}
.bt-card.bt-wide { max-width: 700px; }
.bt-card h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; margin: 0 0 8px; color: var(--ink, #ece8f4); }
.bt-card p { margin: 6px 0; color: var(--muted, #9a94ae); }
.bt-card .bt-small, .bt-small { font-size: 13px; color: var(--muted, #9a94ae); }
.bt-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent, #e2b04f); }

.bt-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1px solid var(--line, #2b2838); border-radius: var(--rx-sm, 3px);
  background: var(--card-2, #1d1a27); color: var(--ink, #ece8f4); font: 600 16px var(--font-display); cursor: pointer; text-decoration: none;
}
.bt-btn:hover { text-decoration: none; background: #262234; }
.bt-btn:disabled { opacity: 0.6; cursor: default; }
.bt-btn-primary { background: var(--accent, #e2b04f); border-color: var(--accent, #e2b04f); color: var(--accent-ink, #17110a); }
.bt-btn-primary:hover { background: var(--accent-hover, #f2c46b); }
.bt-btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.bt-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.bt-error { color: var(--danger, #ff6b6b); font-size: 14px; min-height: 1.3em; margin: 8px 0 0; }

/* ---------- avatars ---------- */

.bt-avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 6px;
  background: var(--accent, #e2b04f); color: var(--accent-ink, #17110a); font: 700 20px var(--font-display);
  width: 44px; height: 44px;
}
.bt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-avatar-lg { width: 84px; height: 84px; font-size: 36px; }

/* ---------- finding an opponent ---------- */

.bt-progress { height: 8px; margin: 22px 0 10px; border-radius: 2px; background: #26233a; overflow: hidden; position: relative; }
.bt-progress::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: var(--accent, #e2b04f);
  animation: bt-slide 1.4s ease-in-out infinite;
}
@keyframes bt-slide { 0% { left: -35%; } 100% { left: 100%; } }
.bt-timer { font: 700 30px var(--font-display); color: var(--ink, #ece8f4); }

/* ---------- room ---------- */

.bt-link-row { display: flex; gap: 8px; margin: 12px 0; }
.bt-link-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, #2b2838); border-radius: var(--rx-sm, 3px);
  font: 14px var(--font-body); color: var(--ink, #ece8f4); background: var(--card-2, #1d1a27);
}
.bt-friends { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; max-height: 220px; overflow-y: auto; }
.bt-friends li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line, #2b2838); }
.bt-friends li:last-child { border-bottom: 0; }
.bt-friends .bt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bt-subhead { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #9a94ae); text-align: left; }
/* the dots animate inside a box that is always three dots wide, so the text around them never reflows (a line that
   gains a dot and wraps would make everything below it jump up and down) */
.bt-waiting-dots { display: inline-block; width: 1.4em; text-align: left; white-space: nowrap; }
.bt-waiting-dots::after { content: ""; animation: bt-dots 1.4s steps(4) infinite; }
@keyframes bt-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- countdown ---------- */

.bt-versus { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.bt-player { display: grid; justify-items: center; gap: 6px; min-width: 0; flex: 1; }
.bt-player strong { font-family: var(--font-display); font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink, #ece8f4); }
.bt-player small { color: var(--muted, #9a94ae); }
.bt-vs { font: 800 22px var(--font-display); color: var(--accent, #e2b04f); }
.bt-count { font: 800 96px/1 var(--font-display); color: var(--accent, #e2b04f); margin: 8px 0 0; }

/* ---------- result ---------- */

.bt-result-title { font: 800 34px var(--font-display); margin: 0; }
.bt-result-win { color: var(--accent, #e2b04f); }
.bt-result-lose { color: var(--muted, #9a94ae); }
.bt-scores { display: flex; justify-content: center; gap: 12px; margin: 16px 0 4px; }
.bt-scorebox { flex: 1; padding: 12px 8px; border-radius: var(--rx-sm, 3px); background: var(--card-2, #1d1a27); min-width: 0; }
.bt-scorebox.bt-winner { background: var(--accent-soft, rgba(226, 176, 79, 0.14)); box-shadow: inset 0 0 0 1px var(--accent, #e2b04f); }
.bt-scorebox.bt-winner b { color: var(--accent, #e2b04f); }
.bt-scorebox b { display: block; font: 800 28px var(--font-display); }
.bt-scorebox span { display: block; font-size: 13px; color: var(--muted, #9a94ae); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-xp { margin-top: 14px; padding: 12px 14px; border-radius: var(--rx-sm, 3px); background: var(--accent-soft, rgba(226, 176, 79, 0.14)); border: 1px solid rgba(226, 176, 79, 0.3); color: var(--ink, #ece8f4); font-size: 15px; }
.bt-xp .bt-up { display: block; margin-top: 4px; font-weight: 700; color: var(--accent, #e2b04f); }

/* question-by-question review under the result: the question, your answer and your opponent's */
.bt-review-title { margin: 26px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #9a94ae); text-align: left; }
.bt-review { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 14px; }
.bt-review li {
  display: grid; grid-template-columns: 24px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid var(--line, #2b2838);
}
.bt-rv-num { color: var(--muted, #9a94ae); padding-top: 1px; }
.bt-rv-q { min-width: 0; overflow-wrap: anywhere; }
.bt-rv-q b { display: block; font-weight: 600; }
.bt-rv-q small { display: block; color: var(--muted, #9a94ae); font-size: 12px; }
.bt-rv-ans { display: grid; gap: 1px; min-width: 0; padding: 4px 8px; border-radius: var(--rx-sm, 3px); background: var(--card-2, #1d1a27); box-shadow: inset 0 0 0 1px transparent; }
.bt-rv-ans i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #9a94ae); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-rv-ans span { overflow-wrap: anywhere; font-size: 13px; }
.bt-rv-ans b { font-size: 13px; color: var(--accent, #e2b04f); }
.bt-rv-them b { color: var(--ink, #ece8f4); }
.bt-rv-ans.bt-rv-win { box-shadow: inset 0 0 0 1px var(--accent, #e2b04f); }
.bt-review .fb { padding-left: 34px; }
.bt-review .more-info { margin-top: 2px; font-size: 13px; }
.bt-review .more-info summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; color: var(--muted, #9a94ae); font-weight: 600; }
.bt-review .more-info summary::-webkit-details-marker { display: none; }
.bt-review .more-info summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.bt-review .more-info[open] summary::before { transform: rotate(45deg); }
.bt-review .more-info p { margin: 2px 0 6px; color: var(--ink, #ece8f4); line-height: 1.45; font-weight: 400; }
.bt-review .more-info a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent, #e2b04f); font-weight: 600; text-decoration: none; }
.bt-review .more-info a .material-symbols-rounded { font-size: 15px; }

/* ---------- in-game banner ---------- */

.bt-banner {
  position: fixed; top: 128px; left: 50%; transform: translateX(-50%); z-index: 6500;
  max-width: calc(100vw - 24px); padding: 8px 16px; border-radius: var(--rx-sm, 3px);
  background: var(--card-2, #1d1a27); border: 1px solid var(--line, #2b2838); color: var(--ink, #ece8f4);
  font: 600 14px var(--font-body); text-align: center;
}

/* ---------- the game header in a battle: just the logo and the round ---------- */

body.bt-battle .brand-text,
body.bt-battle #point-label,
body.bt-battle .round-progress { display: none !important; }

/* the game's own "next round" buttons are replaced by the synced time bar */
body.bt-battle #next-button,
body.bt-battle #next-round-button { display: none !important; }

/* ---------- battle HUD: one panel under the header (phone first, the same on desktop) ---------- */

.bt-hud {
  position: fixed; top: 62px; left: 0; right: 0; margin: 0 auto; z-index: 1600;
  width: min(560px, calc(100vw - 16px)); display: grid; gap: 8px;
  font-family: var(--font-display); pointer-events: none;
}
.bt-hud .bt-claim { pointer-events: auto; }
.bt-panel {
  display: grid; gap: 7px; padding: 8px 12px 10px;
  background: rgba(13, 12, 18, 0.94); border: 1px solid var(--line, #2b2838); border-radius: var(--rx-sm, 3px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* names and scores, with who is ahead in the middle */
.bt-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.bt-side { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bt-side b {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted, #9a94ae);
}
.bt-side em { font-style: normal; font-size: 22px; font-weight: 800; line-height: 1; }
.bt-side-me em { color: var(--accent, #e2b04f); }
.bt-side-them { flex-direction: row-reverse; }
.bt-side-them em { color: var(--ink, #ece8f4); }
.bt-verdict { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted, #9a94ae); white-space: nowrap; }
.bt-verdict[data-state="winning"] { color: var(--accent, #e2b04f); }
.bt-verdict[data-state="losing"] { color: var(--ink, #ece8f4); }
.bt-dot { flex: none; width: 9px; height: 9px; align-self: center; border-radius: 50%; border: 2px solid var(--muted, #9a94ae); }
.bt-dot.bt-on { background: var(--accent, #e2b04f); border-color: var(--accent, #e2b04f); }

/* one line for both scores: the marker is in the middle when tied, left when you lead, right when they do */
.bt-gauge { position: relative; height: 12px; border-radius: 2px; background: #26233a; box-shadow: inset 0 0 0 1px var(--line, #2b2838); }
.bt-gauge-mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--muted, #9a94ae); opacity: 0.8; }
.bt-gauge-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--accent, #e2b04f); transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bt-gauge[data-state="losing"] .bt-gauge-fill { background: var(--muted, #9a94ae); opacity: 0.55; }
.bt-marker {
  position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--accent, #e2b04f); border: 3px solid var(--bg, #0d0c12); box-shadow: 0 0 0 1px var(--accent, #e2b04f);
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bt-gauge[data-state="losing"] .bt-marker { background: var(--muted, #9a94ae); box-shadow: 0 0 0 1px var(--muted, #9a94ae); }

/* the time bar: drains from right to left, for the round and then for the gap before the next one */
.bt-time { height: 8px; border-radius: 2px; background: #26233a; overflow: hidden; }
.bt-time-fill { height: 100%; width: 100%; border-radius: inherit; background: var(--accent, #e2b04f); transition: width 0.15s linear; }
.bt-time[data-mode="next"] .bt-time-fill { opacity: 0.5; }
.bt-time[data-mode="wait"] .bt-time-fill { background: var(--muted, #9a94ae); opacity: 0.5; animation: bt-wait 1.2s ease-in-out infinite alternate; }
.bt-time.bt-low .bt-time-fill { animation: bt-flash 0.5s steps(2) infinite; }
@keyframes bt-wait { from { opacity: 0.25; } to { opacity: 0.6; } }
@keyframes bt-flash { 50% { opacity: 0.4; } }

/* text games: keep the question clear of the panel */
body.bt-text .stage { padding-top: 100px; }
/* ...and, once the round is over and both answers are pinned along the bottom, leave room to scroll the answer panel
   ("Learn more" and the rest) up above them */
body.bt-text.bt-revealing .stage { padding-bottom: 150px; }
html:has(body.bt-text.bt-revealing) { scroll-padding-bottom: 150px; }

/* ---------- both answers once the round is over ---------- */

.bt-reveal {
  width: 100%; padding: 8px; border-radius: var(--rx-sm, 3px); background: var(--card, #15131c); color: var(--ink, #ece8f4);
  border: 1px solid var(--line, #2b2838); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55); animation: bt-pop 0.25s ease-out;
}
/* text games show the answers along the bottom; map games keep them under the panel, over the map */
body.bt-text .bt-reveal { position: fixed; bottom: 10px; left: 0; right: 0; margin: 0 auto; width: min(560px, calc(100vw - 16px)); }
@keyframes bt-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.bt-reveal-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt-reveal-side {
  display: grid; gap: 2px; justify-items: center; padding: 8px 6px; min-width: 0; border-radius: var(--rx-sm, 3px);
  background: var(--card-2, #1d1a27); box-shadow: inset 0 0 0 1px var(--line, #2b2838);
}
.bt-reveal-side.bt-me { background: var(--accent-soft, rgba(226, 176, 79, 0.14)); }
.bt-reveal-side.bt-round-win { box-shadow: inset 0 0 0 2px var(--accent, #e2b04f); }
.bt-reveal-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted, #9a94ae); }
.bt-reveal-answer { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 800; }
.bt-reveal-answer.bt-pending { font-size: 14px; font-weight: 600; color: var(--muted, #9a94ae); }
.bt-reveal-points { font-size: 14px; font-weight: 800; color: var(--accent, #e2b04f); }
.bt-them .bt-reveal-points { color: var(--ink, #ece8f4); }
.bt-claim:not(:empty) { padding: 8px 12px; border-radius: var(--rx-sm, 3px); background: var(--card, #15131c); color: var(--ink, #ece8f4); border: 1px solid var(--line, #2b2838); text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.bt-claim p { margin: 0 0 6px; font-size: 13px; }

/* map games: the comparison is compact (name, then answer and points on one line) so it stays short, and the game's
   bottom sheet can't grow up into the panel and the comparison */
body.bt-map .bt-reveal { padding: 6px; }
body.bt-map .bt-reveal-side { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: baseline; gap: 0 8px; padding: 6px 8px; }
body.bt-map .bt-reveal-name { grid-column: 1 / -1; }
body.bt-map .bt-reveal-answer { font-size: 15px; }
body.bt-map .bt-reveal-answer.bt-pending { font-size: 13px; }
body.bt-map .bt-reveal-points { font-size: 13px; }
body.bt-map .game-sheet { max-height: max(180px, calc(100vh - 250px)); max-height: max(180px, calc(100dvh - 250px)); overflow-y: auto; }

@media (max-width: 640px) {
  .bt-count { font-size: 80px; }
  /* the review: question on its own line, then the two answers side by side */
  .bt-review li { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); }
  .bt-rv-q { grid-column: 2 / -1; }
  .bt-rv-me { grid-column: 2; }
}

/* ---- opponent's pin on the map (map games, shown once both players have answered): grey, since gold is yours ---- */
.pin.pin-opponent { background: var(--muted, #9a94ae); }
.leaflet-tooltip.answer-tooltip.opp-tooltip { background: var(--card-2, #1d1a27) !important; color: var(--ink, #ece8f4) !important; border: 1px solid var(--muted, #9a94ae) !important; }
.leaflet-tooltip-top.answer-tooltip.opp-tooltip::before { border-top-color: var(--muted, #9a94ae) !important; }
.bt-review .photo-ref img { display: block; width: 100%; max-height: 220px; margin: 4px 0 6px; object-fit: cover; border: 1px solid var(--line, #26233a); border-radius: var(--rx-sm, 3px); }

/* ======== rooms of up to four players ======== */

/* choosing the size of a new room */
.bt-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.bt-size {
  appearance: none; display: grid; gap: 2px; justify-items: center; padding: 14px 6px; min-height: 76px; cursor: pointer;
  background: var(--card-2, #1d1a27); color: var(--ink, #ece8f4); border: 2px solid var(--line, #2b2838); border-radius: var(--rx-sm, 3px);
}
.bt-size:hover:not(:disabled), .bt-size:focus-visible { border-color: var(--accent, #e2b04f); outline: none; }
.bt-size:disabled { opacity: 0.6; cursor: default; }
.bt-size b { font: 800 30px/1 var(--font-display); color: var(--accent, #e2b04f); }
.bt-size span { font-size: 12px; color: var(--muted, #9a94ae); }

/* the waiting room: who is in, with an empty seat for each player still to come */
.bt-subhead span { color: var(--ink, #ece8f4); margin-left: 6px; }
.bt-lobby { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.bt-seat { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px 4px 4px; background: var(--card-2, #1d1a27); border: 1px solid var(--line, #2b2838); border-radius: var(--rx-sm, 3px); }
.bt-seat .bt-avatar { width: 36px; height: 36px; font-size: 16px; }
.bt-seat-name { display: grid; min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; text-align: left; }
.bt-seat-name small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent, #e2b04f); }
.bt-seat-empty { border-style: dashed; color: var(--muted, #9a94ae); }
.bt-seat-empty .bt-avatar { background: transparent; border: 1px dashed var(--muted, #9a94ae); color: var(--muted, #9a94ae); }

/* the countdown with three or four players: a compact row instead of "VS" */
.bt-roster { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 6px; }
.bt-roster .bt-avatar-lg { width: 56px; height: 56px; font-size: 24px; }
.bt-roster .bt-player strong { font-size: 14px; }
.bt-roster .bt-player small { font-size: 12px; }

/* in the game: a row of score chips, best first, instead of the one-on-one gauge. It is shorter than the gauge panel. */
.bt-board { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; pointer-events: auto; }
.bt-board::-webkit-scrollbar { display: none; }
.bt-chip {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 7px; white-space: nowrap;
  background: var(--card-2, #1d1a27); border-radius: var(--rx-sm, 3px); box-shadow: inset 0 0 0 1px var(--line, #2b2838);
}
.bt-chip.bt-chip-me { box-shadow: inset 0 0 0 1px var(--accent, #e2b04f); background: var(--accent-soft, rgba(226, 176, 79, 0.14)); }
.bt-chip.bt-chip-left { opacity: 0.45; text-decoration: line-through; }
.bt-chip .bt-rank { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted, #9a94ae); }
.bt-chip b { max-width: 64px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #9a94ae); }
.bt-chip em { font-style: normal; font-size: 15px; font-weight: 800; color: var(--ink, #ece8f4); }
.bt-chip-me em { color: var(--accent, #e2b04f); }

/* the round's answers with more than two players: cards in a row that scrolls sideways when they don't fit */
.bt-reveal-sides.bt-reveal-scroll { display: flex; overflow-x: auto; scrollbar-width: thin; }
.bt-reveal-scroll .bt-reveal-side { flex: 1 0 96px; }
body.bt-map .bt-reveal-scroll .bt-reveal-side { flex-basis: 128px; }

/* the result with more than two players: a ranked list */
.bt-ranking { list-style: none; margin: 14px 0 4px; padding: 0; text-align: left; }
.bt-ranking li { display: grid; grid-template-columns: 24px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; margin-top: 6px; background: var(--card-2, #1d1a27); border-radius: var(--rx-sm, 3px); box-shadow: inset 0 0 0 1px var(--line, #2b2838); }
.bt-ranking li.bt-ranking-me { background: var(--accent-soft, rgba(226, 176, 79, 0.14)); }
.bt-ranking li.bt-winner { box-shadow: inset 0 0 0 1px var(--accent, #e2b04f); }
.bt-ranking li.bt-ranking-left { opacity: 0.55; }
.bt-ranking .bt-avatar { width: 36px; height: 36px; font-size: 16px; }
.bt-ranking-place { text-align: center; font: 800 16px var(--font-display); color: var(--muted, #9a94ae); }
.bt-ranking .bt-winner .bt-ranking-place, .bt-ranking .bt-winner b { color: var(--accent, #e2b04f); }
.bt-ranking-name { display: grid; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bt-ranking-name small { font-size: 11px; color: var(--muted, #9a94ae); }
.bt-ranking b { font: 800 20px var(--font-display); }

/* the question review with more than two players: the answers get their own row under the question */
.bt-review-multi li { grid-template-columns: 24px minmax(0, 1fr); }
.bt-review-multi .bt-rv-scroll { grid-column: 2; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.bt-review-multi .bt-rv-scroll .bt-rv-ans { flex: 1 0 104px; }
.bt-review-multi .fb { grid-column: 2; padding-left: 0; }
/* "Waiting…" in an empty seat is text plus the dots: keep them on one line (the seat name is otherwise a grid, which
   would stack them and make the seat grow and shrink as the dots animate) */
.bt-seat-empty .bt-seat-name { display: block; }
