/* BULLSHIT QUIZ — the game's own screens.
 *
 * Loaded after toon.css, which holds the tokens, the page, cards, buttons,
 * fields, the toast and the leaderboard. This file is only what the game
 * adds: option tiles, the comic burst, role banners, wagers, the reveal and
 * the host roster.
 */

/* ------------------------------------------------------------- options -- */

.bs-options {
  display: grid;
  /* minmax(0, ...) or a row is as wide as its input's default size, which
     on a phone is wider than the screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: var(--bs-line);
  border-radius: var(--bs-radius);
  box-shadow: var(--bs-shadow);
  transition: transform 0.12s ease;
  animation: bs-pop 0.35s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-option:nth-child(1) { background: var(--bs-yellow); }
.bs-option:nth-child(2) { background: var(--bs-cyan); animation-delay: 0.05s; }
.bs-option:nth-child(3) { background: var(--bs-pink); animation-delay: 0.1s; }
.bs-option:nth-child(4) { background: var(--bs-orange); animation-delay: 0.15s; }

.bs-option.is-real { transform: rotate(-1deg) scale(1.02); }

.bs-option__letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: var(--bs-line);
  border-radius: 14px;
  background: var(--bs-paper);
  font-family: var(--bs-display);
  font-size: 1.6rem;
}

.bs-option__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 12px;
  background: var(--bs-paper);
  color: var(--bs-ink);
  font-family: var(--bs-body);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.25;
  resize: none;
  overflow: hidden;
}

.bs-option__input:focus { outline: 3px solid var(--bs-paper); outline-offset: 2px; }

.bs-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: var(--bs-line);
  border-radius: 50%;
  background: var(--bs-paper);
  box-shadow: var(--bs-shadow-sm);
  color: transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bs-tick svg { width: 28px; height: 28px; }

.bs-tick:hover { color: rgba(26, 16, 51, 0.25); }

.bs-tick[aria-pressed="true"] {
  background: var(--bs-green);
  color: var(--bs-ink);
  animation: bs-boing 0.4s cubic-bezier(.2, 1.8, .4, 1);
}

.bs-tick:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-tick:focus-visible { outline: 3px solid var(--bs-paper); outline-offset: 3px; }

/* ---------------------------------------------------------------- done -- */

.bs-burst {
  /* A ten-point comic burst. clip-path eats borders, so the ink outline is
     the burst itself and the yellow is a smaller copy laid on top. */
  --bs-burst: polygon(50% 0, 61% 17%, 80% 7%, 79% 28%, 100% 30%, 86% 47%,
                      100% 64%, 79% 69%, 80% 92%, 61% 83%, 50% 100%, 39% 83%,
                      20% 92%, 21% 69%, 0 64%, 14% 47%, 0 30%, 21% 28%,
                      20% 7%, 39% 17%);
  position: relative;
  display: grid;
  place-items: center;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  margin: 8px auto 18px;
  background: var(--bs-ink);
  clip-path: var(--bs-burst);
  animation: bs-spin-in 0.6s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-burst::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--bs-yellow);
  clip-path: var(--bs-burst);
}

.bs-burst span {
  position: relative;
  font-family: var(--bs-display);
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  line-height: 1;
  text-align: center;
  max-width: 60%;
  transform: rotate(-8deg);
}

.bs-card--preview { margin-top: 22px; }

.bs-preview__q {
  margin: 0 0 14px;
  font-family: var(--bs-display);
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bs-preview__opts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-preview__opts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.bs-preview__opts li.is-real { background: var(--bs-green); }

.bs-preview__opts b {
  flex: none;
  font-family: var(--bs-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.bs-preview__real {
  margin-left: auto;
  flex: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bs-card--meter { margin-top: 22px; }

.bs-meter__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bs-meter__num { font-family: var(--bs-display); font-size: 1.3rem; }

.bs-meter {
  height: 26px;
  border: var(--bs-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.bs-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(-45deg, var(--bs-pink) 0 12px, var(--bs-orange) 12px 24px);
  border-right: var(--bs-line);
  transition: width 0.5s cubic-bezier(.2, 1.4, .4, 1);
}

/* =====================================================================
 * The game screens. Same tokens, same ink, same shadows as above.
 * ===================================================================== */

/* -------------------------------------------------------- role banner -- */

.bs-role {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 10px 18px;
  border: var(--bs-line);
  border-radius: 16px;
  box-shadow: var(--bs-shadow);
  font-family: var(--bs-display);
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  line-height: 1.05;
  transform: rotate(-2deg);
  animation: bs-spin-in 0.5s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-role--truth { background: var(--bs-green); }
.bs-role--bull { background: var(--bs-pink); color: var(--bs-paper); -webkit-text-stroke: 1px var(--bs-ink); }
.bs-role--guess { background: var(--bs-cyan); }

.bs-note {
  margin: 4px 0 18px;
  padding: 10px 14px;
  border: 3px solid var(--bs-ink);
  border-radius: 14px;
  background: var(--bs-yellow);
  font-size: 0.95rem;
}

.bs-locked {
  margin: 26px 0 0;
  padding: 16px;
  border: 4px dashed var(--bs-paper);
  border-radius: var(--bs-radius);
  color: var(--bs-paper);
  font-size: 1.15rem;
  text-align: center;
}

/* ------------------------------------------------------ prompt + note -- */

.bs-card--prompt { margin-bottom: 18px; }

.bs-prompt {
  margin: 0;
  font-family: var(--bs-display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bs-card--note { margin-top: 18px; }
.bs-card--note p { margin: 0; font-size: 1.05rem; }

/* -------------------------------------------------------- game tiles -- */

.bs-options--game .bs-option { position: relative; padding: 14px; }

.bs-option--yellow { background: var(--bs-yellow); }
.bs-option--cyan { background: var(--bs-cyan); }
.bs-option--pink { background: var(--bs-pink); }
.bs-option--orange { background: var(--bs-orange); }

.bs-option__hit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% + 28px);
  margin: -14px;
  padding: 14px;
  border: 0;
  border-radius: calc(var(--bs-radius) - 4px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bs-option__hit:focus-visible { outline: 4px solid var(--bs-paper); outline-offset: 4px; }

.bs-option__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.bs-option__text {
  font-family: var(--bs-display);
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bs-option__speaker {
  font-size: 0.85rem;
  font-weight: 900;
  opacity: 0.75;
}

.bs-option__count {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border: var(--bs-line);
  border-radius: 14px;
  background: var(--bs-paper);
  font-family: var(--bs-display);
  font-size: 1.6rem;
  animation: bs-boing 0.45s cubic-bezier(.2, 1.8, .4, 1) both;
}

.bs-option.is-picked,
.bs-option.is-mine {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 0 0 4px var(--bs-paper), 8px 8px 0 4px var(--bs-ink);
}

.bs-options--game .bs-option.is-bull { filter: saturate(0.35); opacity: 0.85; }
.bs-options--game .bs-option.is-true { background: var(--bs-green); transform: scale(1.03); }

.bs-stamp {
  position: absolute;
  top: -14px;
  right: 14px;
  padding: 4px 10px;
  border: 3px solid var(--bs-ink);
  border-radius: 8px;
  background: var(--bs-paper);
  font-family: var(--bs-display);
  font-size: 1rem;
  letter-spacing: 1px;
  transform: rotate(6deg);
  animation: bs-spin-in 0.5s cubic-bezier(.2, 1.6, .4, 1) both;
}

.is-true .bs-stamp { background: var(--bs-ink); color: var(--bs-green); }
.is-bull .bs-stamp { color: #c4004a; }

/* ------------------------------------------------------------ wagers -- */

.bs-wagers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 10px;
}

.bs-wager {
  height: 54px;
  border: var(--bs-line);
  border-radius: 14px;
  background: var(--bs-paper);
  box-shadow: var(--bs-shadow-sm);
  color: var(--bs-ink);
  font-family: var(--bs-display);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bs-wager:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-wager:focus-visible { outline: 3px solid var(--bs-yellow); outline-offset: 2px; }

.bs-wager.is-picked {
  background: var(--bs-yellow);
  transform: rotate(-4deg) scale(1.08);
  animation: bs-boing 0.35s cubic-bezier(.2, 1.8, .4, 1);
}

.bs-wager.is-spent {
  background: transparent;
  border-color: rgba(255, 250, 240, 0.35);
  box-shadow: none;
  color: rgba(255, 250, 240, 0.4);
  text-decoration: line-through 3px;
  cursor: not-allowed;
}

/* ----------------------------------------------------------- reveal -- */

.bs-card--verdict { margin: 12px 0 22px; }
.bs-card--verdict p { margin: 0; }

.bs-verdict__who {
  font-family: var(--bs-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.bs-verdict__crowd { margin-top: 8px !important; font-size: 1.05rem; }

.bs-verdict__why {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 3px dashed rgba(26, 16, 51, 0.25);
  font-size: 1.05rem;
  font-style: italic;
}

.bs-card--line { margin-top: 26px; text-align: center; }
.bs-card--line.is-up { background: var(--bs-green); }
.bs-card--line.is-down { background: var(--bs-pink); }

.bs-line__delta {
  margin: 0;
  font-family: var(--bs-display);
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  color: var(--bs-paper);
  -webkit-text-stroke: 2px var(--bs-ink);
  text-shadow: 4px 4px 0 var(--bs-ink);
  animation: bs-boing 0.5s cubic-bezier(.2, 1.8, .4, 1) both;
}

.bs-line__parts { margin: 8px 0 0; font-size: 1.05rem; }

/* --------------------------------------------------------- host page -- */

.bs--host .bs-main,
.bs--host .bs-bar { max-width: 760px; }

.bs-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.bs-roster__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 999px;
  background: var(--bs-paper);
  font-size: 0.95rem;
}

.bs-roster__item.is-done { background: var(--bs-green); }
.bs-roster__item.is-away { opacity: 0.55; }

/* Solid ink when connected, hollow when away: readable on the paper pill
   and on the green "done" one alike. */
.bs-roster__dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bs-ink);
  border-radius: 50%;
  background: var(--bs-ink);
}

.is-away .bs-roster__dot { background: transparent; }

.bs-roster__tag {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.bs-btn--small {
  width: auto;
  margin: 40px auto 0;
  padding: 10px 18px;
  font-size: 1rem;
}

/* ------------------------------------------------------- sign in / claim -- */

.bs-card--actions { display: grid; }
.bs-card--actions .bs-btn { text-align: center; text-decoration: none; }
.bs-card--actions .bs-btn:first-child { margin-top: 0; }
.bs-card--actions .bs-btn + .bs-btn { margin-top: 14px; }

/* ------------------------------------------------------------ top bar end -- */

.bs-bar__end { display: flex; align-items: center; gap: 10px; min-width: 0; }

.bs-mute {
  max-width: none;            /* the name chip truncates; this one never needs to */
  cursor: pointer;
  font-family: var(--bs-body);
  font-weight: 900;
  color: var(--bs-ink);
}

.bs-mute[aria-pressed="true"] { background: #cfc8e6; }
.bs-mute:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-mute:focus-visible { outline: 3px solid var(--bs-yellow); outline-offset: 3px; }

/* --------------------------------------------------------------- history -- */

.bs-history { margin-top: 22px; display: grid; gap: 10px; }

.bs-history__item {
  border: 3px solid var(--bs-ink);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.bs-history__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.bs-history__head::-webkit-details-marker { display: none; }
.bs-history__item[open] .bs-history__head { border-bottom: 3px dashed rgba(26, 16, 51, 0.2); }

.bs-history__round {
  flex: none;
  padding: 2px 8px;
  border: 2px solid var(--bs-ink);
  border-radius: 8px;
  background: var(--bs-cyan);
  font-family: var(--bs-display);
}

.bs-history__prompt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-history__item[open] .bs-history__prompt { white-space: normal; }

.bs-history__delta { flex: none; font-family: var(--bs-display); font-size: 1.15rem; }
.bs-history__delta.is-up { color: #16804a; }
.bs-history__delta.is-down { color: #c4004a; }

.bs-history__body { padding: 10px 12px 12px; }

.bs-history__opts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.bs-history__opts li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 10px;
  align-items: baseline;
  padding: 6px 10px;
  border: 2px solid var(--bs-ink);
  border-radius: 10px;
  background: var(--bs-paper);
}

.bs-history__opts li.is-true { background: var(--bs-green); }
.bs-history__opts b { font-family: var(--bs-display); font-weight: 400; }
.bs-history__text { overflow-wrap: anywhere; }
.bs-history__votes { font-size: 0.85rem; }
.bs-history__who { grid-column: 2 / 4; font-size: 0.8rem; opacity: 0.7; }

.bs-history__note { margin: 10px 0 0; font-size: 0.95rem; }
.bs-history__why { margin: 6px 0 0; font-size: 0.95rem; font-style: italic; }

/* -------------------------------------------------------- host controls -- */

.bs-roster__gone {
  margin-left: 4px;
  padding: 2px 8px;
  border: 2px solid var(--bs-ink);
  border-radius: 999px;
  background: var(--bs-pink);
  color: var(--bs-paper);
  font-family: var(--bs-body);
  font-weight: 900;
  font-size: 0.72rem;
  cursor: pointer;
}

.bs-roster__gone:focus-visible { outline: 3px solid var(--bs-yellow); outline-offset: 2px; }

.bs-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: var(--bs-line);
  border-radius: 14px;
  background: var(--bs-yellow);
  box-shadow: var(--bs-shadow-sm);
  font-weight: 900;
  animation: bs-pop 0.3s cubic-bezier(.2, 1.6, .4, 1) both;
}

/* ------------------------------------------------------- host panels -- */

.bs-main--tail { padding-top: 0; }

.bs-invites__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  cursor: pointer;
  list-style: none;
}

.bs-invites__head::-webkit-details-marker { display: none; }
.bs-invites__head .bs-label { margin: 0; }
.bs-invites__head .bs-label::before { content: "+ "; }
.bs-invites[open] .bs-invites__head .bs-label::before { content: "- "; }
.bs-invites__warn { font-size: 0.8rem; opacity: 0.7; }
.bs-invites__hint { margin: 14px 0 10px; font-size: 0.9rem; }

/* ------------------------------------------------------------- join code -- */

.bs-joincard { margin: 6px 0 20px; display: grid; gap: 6px; }

.bs-joincard__code {
  margin: 0;
  font-family: var(--bs-display);
  font-size: clamp(3rem, 14vw, 4.5rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--bs-ink);
}

.bs-joincard__hint { margin: 0; font-size: 0.95rem; }
.bs-joincard__row { display: flex; gap: 10px; margin-top: 6px; }
.bs-joincard__link { flex: 1; min-width: 0; font-family: var(--bs-body); font-size: 0.9rem; padding: 8px 10px; }

.bs-hostfoot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.bs-hostfoot .bs-btn--small { margin: 0; }

/* ------------------------------------------------------------- join form -- */

.bs-join { display: grid; gap: 8px; }
.bs-join__code {
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

/* The host's round history panel: the history list without its own card. */
.bs-roundlog { margin-top: 18px; }
.bs-roundlog .bs-history { margin-top: 14px; padding: 0; border: 0; box-shadow: none; background: none; }

/* =====================================================================
 * Perks and the talking clock (docs/BULLSHIT_QUIZ_PERKS.md).
 * ===================================================================== */

/* -------------------------------------------------------------- clocks -- */

.bs-clock {
  display: inline-block;
  min-width: 3.2em;
  font-family: var(--bs-display);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bs-clock--talk {
  padding: 4px 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 12px;
  background: var(--bs-yellow);
  font-size: 1.6rem;
  line-height: 1.1;
}

.bs-clock--big {
  display: block;
  margin: 6px auto 0;
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  color: var(--bs-paper);
  -webkit-text-stroke: 2px var(--bs-ink);
  text-shadow: 4px 4px 0 var(--bs-ink);
}

.bs-talk { margin: 4px 0 18px; }
.bs-talk.is-open { background: var(--bs-green); }
.bs-talk__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-talk__row .bs-label { margin: 0; }
.bs-talk__note { margin: 8px 0 0; font-size: 0.98rem; }

/* The floor perk running now: the loudest thing on the screen. */
.bs-floor {
  margin: 4px 0 18px;
  padding: 18px;
  border: var(--bs-line);
  border-radius: var(--bs-radius);
  background: var(--bs-orange);
  box-shadow: var(--bs-shadow);
  text-align: center;
  transform: rotate(-1deg);
  animation: bs-spin-in 0.45s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-floor__name {
  display: inline-block;
  padding: 4px 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 10px;
  background: var(--bs-paper);
  font-family: var(--bs-display);
  font-size: 1.25rem;
  transform: rotate(-3deg);
}

.bs-floor__line { margin: 12px 0 0; font-size: 1.1rem; font-weight: 900; }

/* --------------------------------------------------------------- perks -- */

.bs-perk {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 16px 14px;
  border: var(--bs-line);
  border-radius: 18px;
  box-shadow: var(--bs-shadow-sm);
  color: var(--bs-ink);
  font: inherit;
  text-align: left;
}

.bs-perk--yellow { background: var(--bs-yellow); }
.bs-perk--cyan { background: var(--bs-cyan); }
.bs-perk--orange { background: var(--bs-orange); }
.bs-perk--pink { background: var(--bs-pink); }
.bs-perk--paper { background: #fff; }

.bs-perk__tag {
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 2px 8px;
  border: 3px solid var(--bs-ink);
  border-radius: 8px;
  background: var(--bs-paper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.bs-perk__name {
  display: block;
  margin: 0;
  font-family: var(--bs-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.bs-perk__text { display: block; margin: 6px 0 0; font-size: 0.98rem; line-height: 1.35; }

.bs-perk.is-used { filter: grayscale(1); opacity: 0.55; }
.bs-perk.is-copy { margin-top: 14px; }

/* The offers: three cards to tap, one to keep. */
.bs-offers { display: grid; gap: 18px; margin: 16px 0 6px; }

.bs-offer {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  animation: bs-pop 0.35s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-offer:nth-child(2) { animation-delay: 0.06s; }
.bs-offer:nth-child(3) { animation-delay: 0.12s; }
.bs-offer:hover { transform: rotate(-0.6deg) translate(-1px, -1px); }
.bs-offer:focus-visible { outline: 4px solid var(--bs-ink); outline-offset: 3px; }

.bs-offer.is-picked {
  transform: rotate(-1.5deg) scale(1.03);
  outline: 4px solid var(--bs-ink);
  outline-offset: 4px;
  box-shadow: var(--bs-shadow);
}

.bs-offers.has-pick .bs-offer:not(.is-picked) { opacity: 0.55; }

/* Your perk, at the foot of the screen (or pinned up top when a reaction
   can only happen right now). */
.bs-dock { margin: 22px 0; }
.bs-dock.is-urgent { margin-top: 4px; background: var(--bs-yellow); animation: bs-boing 0.45s cubic-bezier(.2, 1.8, .4, 1) both; }

.bs-dock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bs-dock__head .bs-label { margin: 0; }

.bs-dock__state {
  padding: 2px 10px;
  border: 3px solid var(--bs-ink);
  border-radius: 999px;
  background: #e8e2f5;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bs-dock__state.is-ready { background: var(--bs-green); }

.bs-dock__why { margin: 14px 0 0; font-size: 0.98rem; }
.bs-dock__ask { margin: 18px 0 8px; font-weight: 900; }
.bs-dock__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.bs-dock__row .bs-btn { margin-top: 0; }
.bs-dock__row .bs-btn--go { flex: 1 1 220px; }
.bs-dock__react + .bs-dock__react { margin-top: 18px; padding-top: 14px; border-top: 3px dashed rgba(26, 16, 51, 0.2); }
.bs-dock .bs-wagers .bs-wager.is-spent { border-color: rgba(26, 16, 51, 0.25); color: rgba(26, 16, 51, 0.35); }

/* Pick a person or an option for a perk. */
.bs-pickchips { display: flex; flex-wrap: wrap; gap: 10px; }

.bs-pickchip {
  max-width: 100%;
  padding: 8px 14px;
  border: 3px solid var(--bs-ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--bs-shadow-sm);
  color: var(--bs-ink);
  font-family: var(--bs-body);
  font-weight: 900;
  font-size: 1rem;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bs-pickchip--yellow { background: var(--bs-yellow); }
.bs-pickchip--cyan { background: var(--bs-cyan); }
.bs-pickchip--pink { background: var(--bs-pink); }
.bs-pickchip--orange { background: var(--bs-orange); }
.bs-pickchip:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-pickchip:focus-visible { outline: 3px solid var(--bs-ink); outline-offset: 2px; }
.bs-pickchip.is-picked { background: var(--bs-ink); color: var(--bs-paper); transform: rotate(-2deg); }

.bs-words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bs-word__box { min-width: 0; padding: 10px; font-size: 1rem; }

/* ---------------------------------------------------------------- feed -- */

.bs-feed { margin: 22px 0; }
.bs-feed__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.bs-feed__item {
  padding: 10px 12px 10px 16px;
  border: 3px solid var(--bs-ink);
  border-left-width: 12px;
  border-radius: 14px;
  background: #fff;
  animation: bs-pop 0.3s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-feed__item--yellow { border-left-color: #e0b400; }
.bs-feed__item--cyan { border-left-color: #12a9c4; }
.bs-feed__item--orange { border-left-color: #e07c00; }
.bs-feed__item--pink { border-left-color: #e0336a; }
.bs-feed__item--paper { border-left-color: var(--bs-ink); }
.bs-feed__item.is-you { background: var(--bs-yellow); }
.bs-feed__item.is-off { opacity: 0.6; text-decoration: line-through 2px; }

.bs-feed__name { font-family: var(--bs-display); font-size: 1.15rem; }
.bs-feed__what { margin: 2px 0 0; font-size: 0.98rem; overflow-wrap: anywhere; }
.bs-feed__status { margin: 6px 0 0; font-size: 0.9rem; font-weight: 900; }
.bs-feed__when .bs-clock { min-width: 0; }
.bs-feed__words { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

.bs-word {
  padding: 2px 10px;
  border: 2px solid var(--bs-ink);
  border-radius: 8px;
  background: var(--bs-pink);
  color: var(--bs-paper);
  font-weight: 900;
  text-decoration: line-through 2px var(--bs-ink);
}

.bs-feed__tools { display: flex; gap: 8px; margin-top: 8px; }
.bs-btn--quiet { background: var(--bs-paper); }

/* --------------------------------------------------------------- alert -- */

/* A perk aimed at you. */
.bs-alert {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: var(--bs-line);
  border-radius: 18px;
  background: var(--bs-pink);
  box-shadow: var(--bs-shadow);
  color: var(--bs-ink);
  transform: rotate(-0.8deg);
  animation: bs-boing 0.45s cubic-bezier(.2, 1.8, .4, 1) both;
}

.bs-alert.is-coming { background: var(--bs-yellow); }

.bs-alert__name {
  display: inline-block;
  padding: 2px 10px;
  border: 3px solid var(--bs-ink);
  border-radius: 8px;
  background: var(--bs-paper);
  font-family: var(--bs-display);
  font-size: 1.1rem;
}

.bs-alert__text { margin: 8px 0 0; font-weight: 900; font-size: 1.02rem; }
.bs-alert__when { margin: 6px 0 0; font-size: 0.9rem; }

/* ---------------------------------------------------------- host clock -- */

.bs-hostclock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-top: 22px; }
.bs-hostclock .bs-btn { margin-top: 0; }
.bs-btn--floor { display: block; margin: -6px auto 18px; }

@media (prefers-reduced-motion: reduce) {
  .bs-floor, .bs-offer, .bs-dock.is-urgent, .bs-feed__item, .bs-alert { animation: none; }
}

/* =====================================================================
 * The perk draft (backend/bsdraft.py).
 * ===================================================================== */

.bs-wager { display: grid; place-items: center; }
.bs-wager.is-shown { cursor: default; }

/* Your turn: loud, with its clock. */
.bs-draftturn {
  margin: 18px 0;
  padding: 18px;
  border: var(--bs-line);
  border-radius: var(--bs-radius);
  background: var(--bs-yellow);
  box-shadow: var(--bs-shadow);
  text-align: center;
  transform: rotate(-1deg);
  animation: bs-spin-in 0.45s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-draftturn__label { font-family: var(--bs-display); font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1; }
.bs-draftturn__note { margin: 10px 0 0; font-weight: 900; }
.bs-draftturn__take { position: sticky; bottom: 12px; z-index: 2; }

.bs-draftme { margin: 4px 0 18px; }
.bs-draftme__pos { margin: 0; font-family: var(--bs-display); font-size: 1.6rem; }

/* The picking order. */
.bs-order { margin: 18px 0; }
.bs-order__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.bs-order__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px;
  border: 3px solid var(--bs-ink);
  border-radius: 14px;
  background: #fff;
}

.bs-order__row.is-active { background: var(--bs-yellow); transform: rotate(-0.6deg); }
.bs-order__row.is-done { background: #ece7f7; }
.bs-order__row.is-you { box-shadow: var(--bs-shadow-sm); }

.bs-order__pos {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--bs-ink);
  border-radius: 10px;
  background: var(--bs-cyan);
  font-family: var(--bs-display);
  font-size: 1.15rem;
}

.bs-order__name { flex: 1 1 auto; min-width: 0; font-weight: 900; overflow-wrap: anywhere; }
.bs-order__perk { font-size: 0.9rem; font-weight: 900; }
.bs-order__perk.is-clock .bs-clock { min-width: 0; }
.bs-order__trade { margin-left: auto; }

/* What's left to draft. */
.bs-pool { display: grid; gap: 14px; margin: 8px 0 18px; }
.bs-pool__perk { padding: 12px 14px 10px; }
.bs-pool__perk .bs-perk__name { font-size: 1.2rem; }
.bs-pool__perk .bs-perk__text { font-size: 0.92rem; }

/* Your cards, and trades. */
.bs-hand { margin: 18px 0; }
.bs-hand .bs-wager, .bs-tradebuild .bs-wager { height: 46px; font-size: 1.2rem; }
.bs-tradebuild { margin: 4px 0 18px; background: var(--bs-yellow); }
.bs-tradebuild .bs-wager.is-picked { background: var(--bs-ink); color: var(--bs-paper); }
.bs-tradebuild__terms { margin: 16px 0 0; font-weight: 900; font-size: 1.05rem; }

.bs-offers-in { margin: 4px 0 18px; }
.bs-tradelist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.bs-tradelist__item {
  padding: 12px;
  border: 3px solid var(--bs-ink);
  border-radius: 14px;
  background: #fff;
}

.bs-tradelist__item.is-incoming { background: var(--bs-yellow); animation: bs-boing 0.45s cubic-bezier(.2, 1.8, .4, 1) both; }
.bs-tradelist__item.is-settled { opacity: 0.7; }
.bs-tradelist__who { font-family: var(--bs-display); font-size: 1.1rem; }
.bs-tradelist__terms { margin: 4px 0 0; font-weight: 900; }
.bs-tradelist__status { margin: 8px 0 0; font-size: 0.92rem; }
.bs-tradelist .bs-dock__row { margin-top: 12px; }

.bs-draftlog { margin: 18px 0; }
.bs-draftlog__list { display: grid; gap: 6px; margin: 0; padding: 0 0 0 18px; font-size: 0.95rem; }

/* Who holds what, during the quiz. */
.bs-table { margin: 22px 0; }
.bs-table__head { cursor: pointer; list-style: none; }
.bs-table__head::-webkit-details-marker { display: none; }
.bs-table__head .bs-label { margin: 0; }
.bs-table__head .bs-label::before { content: "+ "; }
.bs-table[open] .bs-table__head .bs-label::before { content: "- "; }
.bs-table__list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.bs-table__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border: 2px solid var(--bs-ink); border-radius: 10px; background: #fff; }
.bs-table__list li.is-spent { opacity: 0.55; }
.bs-table__name { font-weight: 900; }
.bs-table__perk { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .bs-draftturn, .bs-tradelist__item.is-incoming { animation: none; }
}
.bs-poolpanel .bs-pool { margin: 14px 0 0; }

/* =====================================================================
 * The question bank: three questions each, reviewed by the host.
 * ===================================================================== */

/* The player's three questions, one button each. */
.bs-slots { display: flex; gap: 10px; margin: 0 0 18px; }

.bs-slot {
  flex: 1;
  padding: 10px 8px;
  border: var(--bs-line);
  border-radius: 14px;
  background: var(--bs-paper);
  box-shadow: var(--bs-shadow-sm);
  color: var(--bs-ink);
  font-family: var(--bs-display);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.bs-slot.is-done { background: var(--bs-green); }
.bs-slot[aria-current="true"] { background: var(--bs-yellow); transform: rotate(-2deg) scale(1.04); }
.bs-slot:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-slot:focus-visible { outline: 4px solid var(--bs-yellow); outline-offset: 3px; }

.bs-card--preview .bs-label { display: block; margin-bottom: 6px; }
.bs-preview__note { margin: 12px 0 0; font-size: 0.95rem; }
.bs-preview__change { margin-top: 14px; }

/* The host's "Rounds tonight". */
.bs-rounds { display: grid; gap: 8px; margin: 6px 0 20px; }
.bs-rounds__row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bs-rounds__num {
  min-width: 3ch;
  font-family: var(--bs-display);
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  line-height: 1;
  text-align: center;
}
.bs-rounds__step { min-width: 52px; }

/* The host's review of the bank. */
.bs-review { margin-top: 18px; }
.bs-review__count { font-weight: 900; }

.bs-review__filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.bs-review__filter input { width: 22px; height: 22px; accent-color: var(--bs-ink); }

.bs-review__list { display: grid; gap: 16px; }

.bs-review__item {
  padding: 16px;
  border: 3px solid var(--bs-ink);
  border-radius: 16px;
  background: #fff;
  animation: bs-pop 0.3s cubic-bezier(.2, 1.6, .4, 1) both;
}

.bs-review__item.is-todo { border-style: dashed; }

.bs-review__q {
  margin: 0 0 12px;
  font-family: var(--bs-display);
  font-size: 1.3rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bs-review__why { margin: 10px 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }

.bs-review__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.bs-tagbtn {
  padding: 8px 14px;
  border: 3px solid var(--bs-ink);
  border-radius: 999px;
  background: var(--bs-paper);
  box-shadow: var(--bs-shadow-sm);
  color: var(--bs-ink);
  font-family: var(--bs-body);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.bs-tagbtn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bs-ink); }
.bs-tagbtn:focus-visible { outline: 3px solid var(--bs-yellow); outline-offset: 2px; }
.bs-tagbtn[aria-pressed="true"] { transform: rotate(-2deg); }
.bs-tagbtn--fascinating[aria-pressed="true"] { background: var(--bs-green); }
.bs-tagbtn--mid[aria-pressed="true"] { background: var(--bs-cyan); }
.bs-tagbtn--bland[aria-pressed="true"] { background: var(--bs-yellow); }
.bs-tagbtn--out[aria-pressed="true"] { background: var(--bs-pink); }

.bs-review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.bs-review__edited { font-size: 0.85rem; font-weight: 900; opacity: 0.75; }

.bs-review__form { display: grid; gap: 8px; }
.bs-review__form .bs-label { margin: 6px 0 0; }
.bs-review__form .bs-field { width: 100%; box-sizing: border-box; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  .bs-slot, .bs-review__item { transition: none; animation: none; }
  .bs-slot[aria-current="true"], .bs-tagbtn[aria-pressed="true"] { transform: none; }
}
