/* The participant view. Every target is thumb-sized, nothing scrolls that
   does not have to, and the whole thing has to survive being opened on a
   five-year-old Android in a room with bad wifi. */

.join {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.glow {
  position: fixed;
  inset: 0;
  background: var(--bg-glow);
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  flex-wrap: wrap;
}

.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.score {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bad);
  margin-left: auto;
  transition: background 0.3s;
  flex: none;
}
.dot.on {
  background: var(--ok);
}

/* ----------------------------------------------------------------- panes */

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pane {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px 28px;
  min-height: 0;
}
.pane.show {
  display: flex;
  animation: rise-in 0.32s var(--ease);
}
#pane-live.show {
  justify-content: flex-start;
  padding-top: 4px;
}

.wordmark {
  font-size: 44px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 22px;
  color: var(--fg-dim);
  font-size: 17px;
}

.code-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(38px, 13vw, 56px);
  letter-spacing: 0.18em;
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2px solid var(--line);
  color: var(--fg);
  margin-bottom: 16px;
  caret-color: var(--accent);
}
.code-input:focus {
  outline: none;
  border-color: var(--accent);
}
.code-input::placeholder {
  color: color-mix(in srgb, var(--fg-dim) 45%, transparent);
}

.big-field {
  font-size: 20px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}

.btn.big {
  width: 100%;
  font-size: 19px;
  padding: 17px;
  border-radius: var(--r-lg);
}

.err {
  color: var(--bad);
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 600;
  text-align: center;
}

.team-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.team-opt {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-weight: 600;
}
.team-opt[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ------------------------------------------------------------- live view */

.q-head {
  padding: 10px 2px 16px;
}
.q-step {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
}
.q-title {
  font-size: clamp(21px, 5.6vw, 28px);
  line-height: 1.25;
  margin: 6px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 10px;
  color: var(--fg-dim);
}
.waiting strong {
  color: var(--fg);
  font-size: 22px;
  font-weight: 700;
}

.pulse {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  animation: breathe 1.8s var(--ease-in-out) infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.4;
  }
  50% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* option buttons */

.opts {
  display: grid;
  gap: 12px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px 18px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.12s var(--ease), border-color 0.15s, background 0.15s;
  min-height: 62px;
}
.opt:active {
  transform: scale(0.98);
}
.opt[aria-pressed='true'] {
  border-color: var(--opt-c, var(--accent));
  background: color-mix(in srgb, var(--opt-c, var(--accent)) 20%, transparent);
}
.opt .badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--opt-c, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.opt.right {
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 20%, transparent);
}
.opt.wrong {
  border-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 14%, transparent);
  opacity: 0.75;
}

/* word cloud / open text inputs */

.word-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

/* scale */

.scale-block {
  margin-bottom: 26px;
}
.scale-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.scale-row {
  display: flex;
  gap: 8px;
}
.scale-btn {
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--bg-2);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.12s var(--ease), border-color 0.15s, background 0.15s;
}
.scale-btn:active {
  transform: scale(0.94);
}
.scale-btn[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}
.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 7px;
}

/* sticky submit */

.submit-bar {
  position: sticky;
  bottom: 0;
  padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 34%);
  margin-top: auto;
}

/* timer */

.timer {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 4px 0 2px;
}
.timer-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s linear;
}
.timer.low .timer-fill {
  background: var(--bad);
}

/* result card */

.result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 30px 12px;
  animation: pop-in 0.35s var(--ease);
}
.result .verdict {
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.result.good .verdict {
  color: var(--ok);
}
.result.bad .verdict {
  color: var(--bad);
}
.result .points {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.result .rank {
  color: var(--fg-dim);
  font-size: 16px;
}
.result .streak {
  font-size: 15px;
  font-weight: 700;
  color: var(--warn);
}

.sent {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--ok);
  font-weight: 700;
  padding: 14px;
}

.final-board {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.final-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.final-row.me {
  border-color: var(--accent);
}
.final-row .r {
  font-weight: 800;
  color: var(--fg-dim);
  min-width: 26px;
}
.final-row .n {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.final-row .s {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (min-width: 620px) {
  .pane {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ------------------------------------------------- advanced answer types -- */

.unit-hint,
.hint-line {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 10px;
  font-weight: 600;
}
.hint-line {
  margin: 8px 0 0;
  text-align: center;
}

.field.numeric {
  font-family: var(--font-mono);
  font-size: 30px;
  text-align: center;
  letter-spacing: 0.04em;
}

.field.mono {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.45;
}

/* put in order */

.rank-list {
  display: grid;
  gap: 9px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2px solid var(--line);
  transition: transform 0.18s var(--ease);
}
.rank-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.rank-text {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.rank-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 17px;
  font-weight: 700;
}
.rank-btn:disabled {
  opacity: 0.28;
}
.rank-btn:active:not(:disabled) {
  transform: scale(0.92);
}

/* match the pairs */

.match-list {
  display: grid;
  gap: 14px;
}
.match-row {
  display: grid;
  gap: 7px;
}
.match-left {
  font-weight: 700;
  font-size: 16px;
}
.match-select {
  font-size: 16px;
  padding: 13px 12px;
  border-radius: var(--r-md);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* click the image */

.click-frame {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-2);
  line-height: 0;
  touch-action: manipulation;
}
.click-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.click-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent),
    0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: pop-in 0.25s var(--ease);
}

/* ------------------------------------------------------- reactions ------ */

/* A thumb-reachable rail on the right edge. It floats above the content but
   stays clear of the full-width submit button at the bottom. */
.react-rail {
  position: fixed;
  right: 10px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.react-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border: 1px solid var(--line);
  font-size: 21px;
  display: grid;
  place-items: center;
  transition: transform 0.1s var(--ease);
}
.react-btn:active {
  transform: scale(0.8);
}
.react-ghost {
  position: fixed;
  z-index: 41;
  pointer-events: none;
  font-size: 24px;
  transform: translate(-50%, 0);
  animation: ghost-rise 0.85s ease-out forwards;
}
@keyframes ghost-rise {
  to {
    transform: translate(-50%, -110px) scale(1.5);
    opacity: 0;
  }
}

/* ------------------------------------------------ pocket celebration ---- */

.result {
  position: relative;
}
.party-bit {
  position: absolute;
  left: 50%;
  top: 40%;
  font-size: 20px;
  pointer-events: none;
  opacity: 0;
  animation: party var(--dur, 1s) ease-out forwards;
}
@keyframes party {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0), var(--ty, -80px)) scale(1.2) rotate(20deg);
  }
}

/* ------------------------------------------------------------------ Q&A -- */

.qa-chip {
  cursor: pointer;
}

.qa-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  animation: rise-in 0.25s var(--ease);
}
.qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.qa-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.qa-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 15px;
}
.qa-ask {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.qa-ask .field {
  margin-bottom: 0;
}
.qa-ask .btn {
  flex: none;
}
.qa-items {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.qa-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.qa-item.mine {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.qa-item.answered {
  opacity: 0.55;
}
.qa-vote {
  flex: none;
  min-width: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px;
  font-weight: 700;
  font-size: 14px;
}
.qa-vote[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.qa-arrow {
  font-size: 11px;
}
.qa-body {
  min-width: 0;
}
.qa-q {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.qa-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 600;
}

/* --------------------------------------------------- audience-paced ----- */

.paced-bar {
  padding: 8px 2px 14px;
}
.paced-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.paced-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.paced-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s var(--ease);
}

/* ----------------------------------------------------------- branding --- */

.brand-logo-join {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  max-height: 30px;
  max-width: 110px;
  object-fit: contain;
  z-index: 5;
  opacity: 0.9;
}

/* --------------------------------------------------------------- grid --- */

.grid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.grid-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-weight: 600;
  font-size: 14px;
}
.grid-chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.grid-pad {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  border: 2px solid var(--line);
  background: var(--bg-2);
  touch-action: manipulation;
  overflow: hidden;
}
.grid-line-v,
.grid-line-h {
  position: absolute;
  background: var(--line);
}
.grid-line-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
.grid-line-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}
.grid-lbl {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.gl-top { top: 8px; left: 50%; transform: translateX(-50%); }
.gl-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.gl-left { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.gl-right { right: 8px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
.grid-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  animation: pop-in 0.22s var(--ease);
}
.grid-dot span {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
}

/* ----------------------------------------------------------- allocate --- */

.alloc-left {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--warn);
}
.alloc-left.done {
  color: var(--ok);
}
.alloc-left.over {
  color: var(--bad);
}
.alloc-rows {
  display: grid;
  gap: 16px;
}
.alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.alloc-name {
  font-weight: 600;
  font-size: 15px;
}
.alloc-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.alloc-slider {
  width: 100%;
  accent-color: var(--c, var(--accent));
  height: 28px;
}

/* -------------------------------------------------------- image choice -- */

.pic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pic-opt {
  position: relative;
  border-radius: var(--r-lg);
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  padding: 0;
  line-height: 0;
}
.pic-opt img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.pic-opt[aria-pressed='true'] {
  border-color: var(--opt-c, var(--accent));
}
.pic-key {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--opt-c, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.pic-cap {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

/* ------------------------------------------------------- the Q&A slide --- */

.qa-invite {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 16px;
  text-align: center;
}
.qa-invite-icon {
  font-size: 44px;
  line-height: 1;
}
.qa-invite-text {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

/* An answer held back because the wifi went. Amber, not red: nothing is
   wrong, it just has not gone yet. */
.chip.outbox {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
  font-weight: 700;
}

/* What we keep, said once, under the box where the name is typed. Small and
   grey on purpose: it is a fact, not a consent wall to click past. */
.privacy-notice {
  margin: 14px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-dim);
}

/* ----------------------------------------------------------- code answers */

.schema-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  overflow-x: auto;
  white-space: pre-wrap;
}
.lang-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* The samples double as live feedback while the pattern is typed, which is
   the whole appeal of a regex exercise. */
.samples {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.sample {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.sample code {
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
  white-space: pre;
}
.sample-want {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  min-width: 72px;
}
.sample.ok {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}
.sample.no {
  border-color: color-mix(in srgb, var(--bad) 55%, transparent);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
}

/* ------------------------------------------------------------ sketch pad */

.sketch-wrap {
  border-radius: var(--r-lg);
  border: 2px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.sketch-pad {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  /* the stroke takes its colour from here, so it follows the theme */
  color: var(--fg);
  cursor: crosshair;
}
.sketch-tools {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* -------------------------------------------------------- wager on phone */

.wager-phone {
  display: grid;
  gap: 4px;
}
.stake-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
  text-align: center;
}
.stake-amount {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--warn);
  font-variant-numeric: tabular-nums;
}
.stake-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
  margin-bottom: 14px;
}
.stake-slider {
  width: 100%;
  height: 32px;
  accent-color: var(--warn);
}
.stake-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
}
.stake-locked {
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
}

/* ------------------------------------------------------------- pace bar */

/* Sits above the reaction rail and looks nothing like it: a reaction is a
   cheer, this is a complaint, and they must not be tapped for the same
   reason. */
.pace-bar {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.pace-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 700;
}
.pace-btn[aria-pressed='true'] {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}
