.fst {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  width: 100%;
}

.fst-question {
  margin: 0;
  max-width: 40ch;
  text-align: center;
  text-wrap: balance;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.fst-count {
  margin: 0 0 var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
  font-variant-numeric: tabular-nums;
}

.fst-average {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* --- The spread ----------------------------------------------------------
   A histogram rather than a single number: the shape of the room's opinion is
   the information, and an average of 3.4 hides the person holding up one finger. */

.fst-chart {
  width: 100%;
}

.fst-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  align-items: end;
}

.fst-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.bar-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--c-ink);
}

.bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: clamp(5rem, 16vw, 10rem);
  border-radius: var(--radius);
  background: var(--bar-tint);
}

.bar-fill {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--bar);
  transition: height 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-value {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bar);
  color: var(--c-ink-inverse);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar-meaning {
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  color: var(--c-ink-muted);
  text-wrap: balance;
}

/* A low vote is not a small bar to glance past — it is the reason to keep talking. */
.fst-bar.is-low .bar-track {
  outline: 2px solid var(--bar);
  outline-offset: 2px;
}

/* --- The verdict ---------------------------------------------------------- */

.fst-verdict {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-ink-muted);
}

.fst-verdict.is-blocked {
  color: var(--c-abort);
}

.fst-verdict.is-consent {
  color: var(--c-confirm);
}

/* --- The keys ------------------------------------------------------------- */

.fst-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.fst-key {
  font: inherit;
  width: clamp(3.5rem, 9vw, 5rem);
  height: clamp(3.5rem, 9vw, 5rem);
  display: grid;
  place-items: center;
  cursor: pointer;

  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;

  background: var(--bar);
  color: var(--c-ink-inverse);
  border: 0;
  border-radius: var(--radius);
  transition: transform 100ms ease, box-shadow 120ms ease;
}

.fst-key:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.fst-key:active {
  transform: translateY(0);
}

/* --- Setup ---------------------------------------------------------------- */

.fst-setup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  border-top: 1px solid var(--c-line);
  padding-top: var(--space-6);
}

.fst-proposal {
  flex: 1 1 18rem;
  max-width: 28rem;
}

.fst-proposal input {
  width: 100%;
}

.fst-hint {
  margin: 0;
  color: var(--c-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
  text-wrap: balance;
}

.fst-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* --- Fullscreen ----------------------------------------------------------- */

.toy.is-fullscreen .fst {
  justify-content: center;
  height: 100%;
}

.toy.is-fullscreen .fst-question {
  font-size: var(--text-2xl);
}

.toy.is-fullscreen .fst-setup,
.toy.is-fullscreen .fst-hint {
  opacity: 0;
  transition: opacity 200ms ease;
}

.toy.is-fullscreen .fst-setup:focus-within,
.toy.is-fullscreen:hover .fst-setup,
.toy.is-fullscreen:hover .fst-hint {
  opacity: 1;
}
