/* What the Flock — "Meadow" design system (definitive UI, see ui/README.md). */

:root {
  --green: #4f9d5b;
  --green-deep: #3a7a45;
  --green-bar-you: #8fce9a;
  --green-bar-muted: #c3d8b6;
  --ink: #22331d;
  --yellow: #f4c84a;
  --yellow-deep: #eab52f;
  --body: #77806c;
  --muted: #9aa38e;
  --on-tint: #5c6752;
  --surface: #ffffff;
  --tint: #f4f8ee;
  --tint-bg: #eef4e7;
  --border: #dce7cf;
  --border-soft: #e6ede0;
  --roast-bg: #22331d;
  --roast-text: #eaf1e2;
  --roast-divider: #3a4a30;
  --roast-muted: #b7c5a8;
  --placeholder: #a7b09a;
  --card-shadow: 0 18px 44px rgba(60, 90, 50, 0.14);
  --soft-shadow: 0 12px 30px rgba(60, 90, 50, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes softPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--tint-bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; }

button {
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
button:hover { transform: translateY(-2px); filter: brightness(1.06); }
button:active { transform: translateY(0); filter: brightness(.97); }
/* A disabled button is unavailable, not busy. `wait` here spun a loading cursor
   over every disabled control and read as "the page is thinking" — the buttons
   that really are mid-request say so in their own label instead. */
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.mascot { font-size: 52px; display: inline-block; }
.mascot-sm { font-size: 24px; display: inline-block; }
.bob { animation: bob 3.4s ease-in-out infinite; }

.card {
  background: var(--surface);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  animation: fadeUp .7s ease-out both;
}

/* ---------- Buttons & fields ---------- */

.cta {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  padding: 15px;
  border-radius: 14px;
}

.cta-inline {
  background: var(--green);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  white-space: nowrap;
}

.btn-outline {
  width: 100%;
  background: var(--tint);
  color: var(--green-deep);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--border);
  padding: 12px;
  border-radius: 14px;
}

.btn-soft {
  background: var(--tint);
  color: var(--green-deep);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
}

.linkish {
  background: none;
  border: none;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 0;
}
.linkish.center { display: block; margin: 12px auto 0; }

.field {
  width: 100%;
  font: inherit;
  font-size: 16px;
  background: var(--tint);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.field::placeholder { color: var(--placeholder); }
.field:focus { border-color: var(--green); }

.form-error { color: #c0503a; font-weight: 700; font-size: 13px; margin: 10px 0 0; text-align: center; }

.info-strip {
  background: var(--tint);
  border-radius: 14px;
  padding: 13px 15px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--on-tint);
  text-align: center;
}

.pending-strip {
  margin: 0 0 16px;
  border: 2px dashed var(--green);
  background: var(--surface);
  font-weight: 600;
  animation: fadeUp .7s ease-out both;
}
.pending-strip strong { color: var(--green-deep); }

.stats-join .cta { margin-top: 4px; }

/* ---------- Auth ---------- */

.auth-col { max-width: 400px; margin: 0 auto; padding: 48px 16px 60px; }
.auth-card { padding: 30px 26px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 26px; color: var(--ink); margin: 8px 0 4px; }
.auth-sub { font-size: 14px; color: var(--body); margin: 0; }
.auth-sub strong { color: var(--green-deep); }

.code-boxes { position: relative; display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.code-box {
  width: 56px;
  height: 66px;
  border-radius: 16px;
  background: var(--tint);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
}
.code-box.filled { border-color: var(--green); }
.code-box.active::after {
  content: '';
  width: 2px;
  height: 30px;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.1s ease-in-out infinite;
}
#code {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 30px;
  border: none;
}
.code-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--muted); }
.dev-code { color: var(--yellow-deep); font-weight: 800; font-size: 13px; text-align: center; margin: 12px 0 0; }

/* ---------- Top nav ---------- */

.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lockup { display: flex; align-items: center; gap: 10px; }
.lockup-btn { background: none; border: none; padding: 0; cursor: pointer; text-decoration: none; }
.lockup-btn:hover .lockup-name { color: var(--green-deep); }
.lockup-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); }
.tabs { display: flex; align-items: center; gap: 20px; }
.tab {
  background: none;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  padding: 4px 2px;
  text-decoration: none;
}
a.tab:hover { color: var(--green-deep); }
.tab.active { color: var(--green-deep); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.streak-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--green-deep); }
.streak-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dfe8d4;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}
.nav-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5484d;
  border: 2px solid var(--surface);
  animation: pulse 2s ease-in-out infinite;
}

.content { max-width: 1000px; margin: 0 auto; padding: 28px 16px 64px; }

/* ---------- Play ---------- */

.play-card { max-width: 400px; margin: 0 auto 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-head .lockup-name { font-size: 17px; }
.no-pill { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--tint-bg); padding: 4px 10px; border-radius: 999px; }
.dateline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.no-inline { display: none; }
.question { font-size: 27px; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
.explainer { font-size: 14px; color: var(--body); margin: 0 0 20px; }
.explainer-wide { display: none; }
.answer-pill {
  display: flex;
  align-items: center;
  background: var(--tint);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 4px 4px 4px 16px;
  transition: border-color .15s;
}
.answer-pill:focus-within { border-color: var(--green); }
.answer-pill input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
}
.answer-pill input::placeholder { color: var(--placeholder); }
.play-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.foot-muted { font-size: 13px; color: var(--muted); }

/* ---------- Waiting ---------- */

.waiting-card {
  max-width: 400px;
  margin: 0 auto 22px;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  box-shadow: 0 18px 44px rgba(60, 90, 50, 0.2);
  color: #fff;
  text-align: center;
  padding: 34px 26px;
}
.waiting-card h2 { font-size: 26px; margin: 8px 0 6px; color: #fff; }
.wait-sub { font-size: 14px; opacity: .85; margin: 0 0 20px; }
.answer-chip { background: #ffffff22; border-radius: 16px; padding: 14px; margin-bottom: 24px; }
.chip-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .8; }
.chip-value { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px; margin-top: 2px; overflow-wrap: anywhere; }
.drop-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .85; margin-bottom: 8px; }
.big-count {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: .02em;
  line-height: 1;
  animation: softPulse 2.4s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}
.tz-note { font-size: 13px; opacity: .8; margin-top: 6px; }
.wait-foot { border-top: 1px solid #ffffff33; margin-top: 24px; padding-top: 18px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; }
.wait-invite { border-top: 1px solid #ffffff33; margin-top: 24px; padding-top: 20px; }
.wait-invite-t { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.wait-invite-s { font-size: 13px; opacity: .85; margin: 0 0 16px; }
#btn-invite-wait { background: var(--yellow); color: #4a3a00; }

/* ---------- Results ---------- */

#results-block { animation: fadeUp .7s ease-out both; }

.banner {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-radius: 24px;
  padding: 28px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.banner-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.banner-headline { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; margin-top: 6px; }
.banner-sub { font-size: 15px; opacity: .9; margin-top: 6px; }
.banner-score { text-align: center; flex-shrink: 0; }
.score-n { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 72px; line-height: 1; }
.score-l { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .85; }

.results-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.bars-card { border-radius: 22px; padding: 28px; box-shadow: var(--soft-shadow); }
.section-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
/* The bars sit directly under today's question, so without this line the
   answers read as answers to the wrong question. */
.bars-question {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin: -8px 0 20px;
}
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; color: #4b5443; margin-bottom: 6px; }
.bar-row.hot .bar-row-top { font-weight: 700; color: var(--ink); }
.bar-row-top .bar-name { min-width: 0; overflow-wrap: anywhere; }
.bar-track { height: 14px; background: var(--tint-bg); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transform-origin: left; animation: growBar 1s cubic-bezier(.2,.8,.2,1) both; }
.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.badge.winners { background: var(--yellow); color: #4a3a00; }
.badge.you { background: var(--green); color: #fff; }
.more-line { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

.results-side { display: flex; flex-direction: column; gap: 20px; }
.roast-card { background: var(--roast-bg); border-radius: 22px; padding: 24px; color: var(--roast-text); animation: fadeUp .7s ease-out .1s both; }
.roast-head { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; color: var(--yellow); margin-bottom: 10px; }
.roast-flame { font-size: 20px; }
.roast-body { font-size: 15px; line-height: 1.55; margin: 0; }
.roast-spotlight { border-top: 1px solid var(--roast-divider); margin-top: 16px; padding-top: 14px; font-size: 14px; color: var(--roast-muted); }
.roast-spotlight span { color: #fff; }
.next-card { border-radius: 22px; padding: 22px; box-shadow: var(--soft-shadow); }
.next-card .cta { margin-bottom: 14px; }
.next-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--body); }
.next-count { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; color: var(--green-deep); font-variant-numeric: tabular-nums; }

/* ---------- Stats ---------- */

#tab-stats .stats-card, #tab-how .how-card { max-width: 440px; margin: 0 auto; }
.stats-layout { display: grid; gap: 18px; }
/* Signed out the public board is the only card in the layout: one centred card,
   not a half-width column next to an empty one. Beats the wider breakpoints on
   specificity, so it holds at every width. */
.stats-layout.board-only { grid-template-columns: 1fr; }
.stats-layout.board-only .social-card { max-width: 440px; margin: 0 auto; }
/* ...and the join card reads as the ask under the board, not an apology above it. */
#tab-stats:not([hidden]) { display: flex; flex-direction: column; }
#tab-stats .stats-join { order: 2; margin-top: 18px; }
.stats-title { display: flex; align-items: center; gap: 9px; font-size: 20px; color: var(--ink); margin: 0 0 18px; }
.stats-title .mascot-sm { font-size: 22px; }
.streak-hero {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.streak-big { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 38px; color: #4a3a00; line-height: 1; }
.streak-hero-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: #4a3a00; }
.streak-hero-sub { font-size: 13px; color: #7a6620; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
/* Odd number of tiles — let the last one fill the row instead of leaving a hole. */
.stats-grid .stat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-tile { background: var(--tint); border-radius: 14px; padding: 14px; }
.stat-n { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; color: var(--green-deep); }
.stat-l { font-size: 12px; color: var(--body); font-weight: 600; }

/* ---------- How to play ---------- */

.how-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--on-tint); display: flex; flex-direction: column; gap: 10px; }
.how-list strong { color: var(--ink); }

/* ---------- Dev tools ---------- */

.dev-card { max-width: 400px; margin: 22px auto 0; border: 2px dashed var(--border); box-shadow: none; background: var(--tint); }
.dev-head { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.dev-tag { font-size: 11px; font-weight: 800; background: var(--yellow); color: #4a3a00; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.dev-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dev-row .btn-soft { background: var(--surface); }
.dev-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Share modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 51, 29, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  overflow-y: auto;
}
.modal-card { width: 400px; max-width: 100%; max-height: 95vh; overflow-y: auto; }
.share-dark { background: var(--roast-bg); border-radius: 22px; padding: 26px; color: var(--roast-text); }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.share-lockup { display: flex; align-items: center; gap: 8px; }
.share-lockup span:first-child { font-size: 24px; }
.share-brand { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; color: #fff; }
.share-no { font-size: 13px; font-weight: 700; color: var(--yellow); }
.share-meta { font-size: 13px; color: var(--roast-muted); }
.share-answer { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 28px; color: #fff; margin: 2px 0 4px; overflow-wrap: anywhere; }
.share-match { font-size: 13px; color: #8fa07f; margin-bottom: 18px; }
.share-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-bottom: 8px; }
.share-bar { flex: 1; background: var(--roast-divider); border-radius: 8px 8px 0 0; }
.share-bar.me { background: var(--yellow); }
.share-legend { display: flex; gap: 6px; margin-bottom: 16px; }
.share-legend span { flex: 1; text-align: center; font-size: 10px; color: #8fa07f; }
.share-legend .you-mark { font-weight: 800; color: var(--yellow); }
.share-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--roast-divider); padding-top: 16px; }
.share-foot-l { font-size: 12px; color: var(--roast-muted); }
.share-score { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; color: var(--yellow); line-height: 1; }
.share-streak { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; color: #fff; line-height: 1; }
.share-right { text-align: right; }
.share-caption { font-size: 12px; color: #8fa07f; margin-top: 16px; text-align: center; }
.share-actions { display: flex; gap: 10px; margin-top: 18px; }
.share-actions .cta, .share-actions .btn-outline { flex: 1; width: auto; }
.share-done { text-align: center; color: var(--green-deep); font-weight: 800; font-size: 13px; margin: 10px 0 0; }

/* ---------- Landing (sign-up) ---------- */

.landing-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--green), #356e40);
  border-radius: 30px;
  padding: 38px 28px 30px;
  box-shadow: 0 18px 44px rgba(60, 90, 50, 0.2);
  color: #fff;
  text-align: center;
  animation: fadeUp .7s ease-out both;
}
.landing-pattern {
  position: absolute;
  inset: 0;
  opacity: .14;
  font-size: 60px;
  letter-spacing: 20px;
  line-height: 1.5;
  user-select: none;
  pointer-events: none;
}
.landing-inner { position: relative; }
.landing-inner .mascot { font-size: 60px; }
.landing-title { font-size: 34px; line-height: 1.08; margin: 10px 0 8px; color: #fff; }
.landing-pitch { font-size: 15px; line-height: 1.55; opacity: .92; margin: 0 auto 26px; max-width: 300px; }
.landing-pitch em { color: #fff; }
.landing-input {
  background: #fff;
  border-radius: 16px;
  padding: 5px 5px 5px 18px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.landing-input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  border: none;
  outline: none;
  color: var(--ink);
  background: none;
}
.landing-input input::placeholder { color: var(--placeholder); }
.cta-join {
  background: var(--yellow);
  color: #4a3a00;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
}
.landing-note { font-size: 13px; opacity: .82; }
.landing-privacy { font-size: 12px; line-height: 1.45; opacity: .75; margin: 10px auto 0; max-width: 320px; }
.form-error.on-green { color: #ffe1a8; }
.landing-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ffffff2e;
  font-size: 13px;
}
.avatar-stack { display: flex; }
.avatar-stack span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--green); }
.avatar-stack span:nth-child(1) { background: var(--yellow); }
.avatar-stack span:nth-child(2) { background: var(--tint-bg); margin-left: -7px; }
.avatar-stack span:nth-child(3) { background: var(--green-bar-muted); margin-left: -7px; }

/* ---------- What's new ---------- */

.whats-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #4a3a00;
  background: var(--yellow);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.whats-new-spark { font-size: 12px; }
.news-list { display: flex; flex-direction: column; gap: 18px; max-height: 55vh; overflow-y: auto; }
.news-item { border-left: 3px solid var(--green-bar-you); padding-left: 14px; }
.news-date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

/* ---------- How to play ---------- */

.howto-card { padding: 28px 26px; }
.howto-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.howto-head h2 { font-size: 24px; color: var(--ink); margin: 0; }
.howto-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  border: none;
  font-size: 14px;
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto-steps { display: flex; flex-direction: column; gap: 16px; }
.howto-step { display: flex; gap: 14px; align-items: flex-start; }
.howto-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
}
.howto-t { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); }
.howto-s { font-size: 14px; color: var(--body); line-height: 1.5; }
.twist {
  background: var(--roast-bg);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 22px;
  color: var(--roast-text);
  font-size: 14px;
  line-height: 1.5;
}
.twist-mark { color: var(--yellow); font-weight: 700; }
.howto-card .cta { margin-top: 18px; }

/* ---------- Win day ---------- */

.win-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  color: #4a3a00;
  margin-bottom: 16px;
}
.win-pattern {
  position: absolute;
  inset: 0;
  opacity: .18;
  font-size: 26px;
  line-height: 1.8;
  user-select: none;
  pointer-events: none;
}
.win-inner { position: relative; }
.win-trophy { font-size: 48px; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
.win-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 26px; margin-top: 4px; }
.win-sub { font-size: 14px; opacity: .85; margin-top: 2px; }
.win-score { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 72px; line-height: 1; margin-top: 10px; }
.win-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.win-tiles { display: flex; gap: 11px; margin-bottom: 24px; }
.win-tile { flex: 1; background: var(--tint); border-radius: 14px; padding: 14px; text-align: center; }
.win-tile .stat-n { font-size: 24px; }

/* ---------- Broken streak ---------- */

.broken-card { max-width: 400px; margin: 0 auto 22px; padding: 30px 26px; text-align: center; }
.broken-sheep { filter: grayscale(.3); opacity: .85; }
.broken-card h2 { font-size: 25px; color: var(--ink); margin: 8px 0 4px; }
.broken-sub { font-size: 14px; color: var(--body); margin: 0 0 22px; line-height: 1.5; }
.broken-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--tint);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
}
.broken-was {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #c4382f;
  line-height: 1;
  text-decoration: line-through;
  opacity: .7;
}
.broken-now { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 34px; color: var(--green); line-height: 1; }
.broken-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.broken-arrow { font-size: 22px; color: var(--green-bar-muted); }
.broken-note { font-size: 14px; color: var(--on-tint); margin: 0 0 20px; }
.broken-note strong { color: var(--green-deep); }

/* ---------- Friends & leaderboards ---------- */

.social-card { max-width: 440px; margin: 0 auto; }
.social-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.social-head h3 { font-size: 20px; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 9px; }
.medal { font-size: 22px; }
.no-pill.green { color: var(--green-deep); background: var(--tint-bg); }
.social-sub { font-size: 13px; color: var(--body); margin: 0 0 18px; }
.social-rows { display: flex; flex-direction: column; gap: 8px; }
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--tint-bg);
  border-radius: 14px;
}
.social-row.first { background: linear-gradient(90deg, #f4c84a22, transparent); border: 1px solid #f4c84a55; }
.social-row.you { border: 2px solid var(--green); background: var(--tint); }
.social-rank { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px; color: var(--muted); min-width: 20px; }
.social-row.first .social-rank { color: var(--yellow-deep); }
.social-row.you .social-rank { color: var(--green); }
.social-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dfe8d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.social-row.first .social-avatar { background: var(--yellow); }
.social-row.you .social-avatar { background: var(--green); }
.social-name { flex: 1; font-weight: 700; font-size: 15px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-name .badge.you { font-size: 10px; padding: 2px 7px; }
.social-value { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px; color: var(--green-deep); white-space: nowrap; }
.social-value.muted { color: var(--muted); }
.social-ellipsis { text-align: center; padding: 2px 0; color: var(--green-bar-muted); font-weight: 800; letter-spacing: .2em; }
.social-card .btn-outline { margin-top: 18px; }
.social-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 0; }

.board-tabs { display: flex; gap: 6px; background: var(--tint); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.board-tab {
  flex: 1;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 8px 4px;
  border-radius: 9px;
  white-space: nowrap;
}
.board-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(60, 90, 50, 0.08); }
.board-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.board-foot strong { color: var(--green-deep); }

/* ---------- Settings ---------- */

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tint-bg);
  margin-bottom: 8px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.profile-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }
.profile-sub { font-size: 13px; color: var(--body); }
.name-edit { padding: 14px 4px 6px; border-bottom: 1px solid #f2f6ec; margin-bottom: 4px; }
.name-edit > label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.name-row { display: flex; gap: 8px; }
.name-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  background: var(--tint);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}
.name-row input:focus { border-color: var(--green); }
.name-hint { font-size: 13px; color: var(--body); margin: 8px 0 0; }
.name-ok { font-size: 13px; font-weight: 700; color: var(--green-deep); margin: 8px 0 0; }

.avatar-edit { padding: 14px 4px 10px; border-bottom: 1px solid #f2f6ec; margin-bottom: 4px; }
.avatar-edit > label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.avatar-option {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--tint);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.avatar-option:hover { background: var(--tint-bg); }
.avatar-option.on { background: var(--green); border-color: var(--green-deep); }
.avatar-edit .form-error { margin: 10px 0 0; }

@media (max-width: 420px) {
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
}

.setting-rows { display: flex; flex-direction: column; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px;
  border-top: 1px solid #f2f6ec;
  text-align: left;
}
.setting-rows .setting-row:first-child { border-top: none; }
.setting-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.setting-s { font-size: 13px; color: var(--body); }
.setting-link { background: none; border-left: none; border-right: none; border-bottom: none; font: inherit; width: 100%; cursor: pointer; }
.chev { font-size: 16px; color: var(--muted); }
.drop-time { font-size: 14px; font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.lang-select {
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--green-deep);
  background: var(--tint); border: 2px solid var(--border); border-radius: 10px;
  padding: 6px 10px; cursor: pointer;
}
.lang-select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  position: relative;
  flex-shrink: 0;
  transition: background .18s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.toggle.on { background: var(--green); }
.toggle.on::after { left: 23px; }
.btn-danger {
  width: 100%;
  background: var(--surface);
  color: #c4382f;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #f0d6d3;
  padding: 12px;
  border-radius: 14px;
  margin-top: 18px;
}

/* Closing the panel is what people came here to do; signing out is the rare
   exit. The prominent button says so, and the way out stays a quiet link. */
.settings-done { margin-top: 18px; }
.quiet-danger { color: var(--muted); font-weight: 600; }
.quiet-danger:hover { color: #c4382f; }

/* ---------- Question CMS ---------- */

/* Round review (dashboard) */
.review-card { border: 2px solid var(--yellow); margin-bottom: 20px; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow-deep); margin-bottom: 4px;
}
.review-deadline {
  flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--tint); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.review-deadline.urgent { color: #c4382f; background: #fdeceb; }
.review-hint { font-size: 13px; color: var(--body); line-height: 1.5; margin: 14px 0 18px; }
.review-groups { display: flex; flex-direction: column; gap: 10px; }
.review-group { border: 1px solid var(--border-soft); border-radius: 16px; padding: 12px 14px; }
.review-group.winning { border-color: var(--green); background: var(--tint); }
.review-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-label {
  flex: 1; min-width: 140px; font: inherit; font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px;
}
.review-label:hover { border-color: var(--border-soft); }
.review-label:focus { border-color: var(--green); background: var(--surface); outline: none; }
.review-stat {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.review-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--green); color: #fff; border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.review-move {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 4px 6px; max-width: 150px;
}
.review-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 4px 6px 4px 10px; font-size: 13px; color: var(--ink);
}
.review-group.winning .review-chip { background: var(--surface); }
.review-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.review-actions .cta { width: auto; padding: 13px 24px; }
.review-note { font-size: 13px; color: var(--muted); font-weight: 600; }
.btn-recount { font-size: 12px; padding: 6px 12px; white-space: nowrap; }
.review-who {
  font-size: 11px; font-weight: 700; color: var(--green-deep);
  background: var(--tint-bg); border-radius: 6px; padding: 2px 6px; cursor: pointer;
}
.review-who:hover { background: var(--green-bar-you); }
.review-lang {
  margin-left: 6px; padding: 1px 5px; border-radius: 5px;
  background: var(--tint-bg); color: var(--on-tint);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.review-roast { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.review-roast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-roast label { font-size: 13px; font-weight: 700; color: var(--ink); }
.review-roast textarea, .review-roast input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 11px 14px;
  width: 100%; line-height: 1.5; resize: vertical;
}
.review-roast textarea:focus, .review-roast input:focus { border-color: var(--green); outline: none; }
.review-roast-hint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 859px) {
  .review-head { flex-direction: column; gap: 10px; }
  .review-actions { flex-direction: column; align-items: stretch; }
  .review-actions .cta { width: 100%; }
}

/* Changelog editor (dashboard) */
.news-form { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 6px; }
.news-form-row { display: flex; gap: 8px; }
.news-form-row input[type="date"] { flex: 0 0 160px; }
.news-form-row input[type="text"] { flex: 1; min-width: 0; }
.news-form input, .news-form textarea, .news-edit input, .news-edit textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
}
.news-form textarea, .news-edit textarea { resize: vertical; line-height: 1.45; }
.news-form .cta-inline { align-self: flex-start; }
.news-chip { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news-row-body { font-size: 13px; font-weight: 500; color: var(--body); margin-top: 3px; line-height: 1.45; }
.news-edit { flex-direction: column; align-items: stretch; gap: 8px; border-color: var(--green); }
.news-edit-actions { display: flex; align-items: center; gap: 12px; }

.cms-card { max-width: 640px; margin: 0 auto; }
.cms-title { font-size: 24px; color: var(--ink); margin: 0 0 6px; }
.cms-add { margin: 18px 0 6px; }
.cms-section { margin: 26px 0 12px; }
.cms-list { display: flex; flex-direction: column; gap: 8px; }
.cms-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--tint-bg);
  border-radius: 14px;
  background: var(--surface);
}
.cms-row[draggable="true"] { cursor: grab; }
.cms-row.dragging { opacity: .45; }
.cms-row.drag-over { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.cms-row.used { background: var(--tint); border-color: transparent; }
.cms-handle { color: var(--green-bar-muted); font-size: 15px; cursor: grab; user-select: none; }
.cms-pos {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
}
.cms-text { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cms-row.used .cms-text { color: var(--on-tint); font-weight: 500; }
.cms-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.cms-chip.next { background: var(--yellow); color: #4a3a00; }
.cms-chip.live { background: var(--green); color: #fff; margin-left: 0; }
.cms-chip.done { background: var(--bg, #dfe8d4); background: #dfe8d4; color: var(--on-tint); margin-left: 0; }
.cms-actions { display: flex; gap: 4px; }
.cms-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-btn.danger { color: #c4382f; border-color: #f0d6d3; background: var(--surface); }
.cms-btn:disabled { opacity: .3; cursor: default; }
.denied { max-width: 400px; margin: 40px auto; }

/* ---------- Wide screens (desktop) ---------- */

@media (min-width: 860px) {
  .play-card {
    max-width: 760px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    padding: 44px 24px 56px;
    animation: fadeUp .7s ease-out both;
  }
  .play-card .card-head { display: none; }
  .play-card .dateline { font-size: 14px; letter-spacing: .08em; margin-bottom: 14px; }
  .no-inline { display: inline; }
  .no-inline::before { content: ' · '; }
  .play-card .question { font-size: 46px; line-height: 1.15; margin-bottom: 12px; }
  .play-card .explainer { font-size: 17px; margin-bottom: 34px; }
  .play-card .answer-pill {
    background: var(--surface);
    border-radius: 18px;
    padding: 6px 6px 6px 22px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(60, 90, 50, 0.08);
  }
  .play-card .answer-pill input { font-size: 18px; }
  .play-card .cta-inline { font-size: 16px; padding: 15px 28px; border-radius: 14px; }
  .play-foot { display: none; }
  .explainer-wide { display: block; font-size: 14px; color: var(--muted); margin: 20px 0 0; }
  .waiting-card { max-width: 460px; margin-top: 24px; }

  /* Stats: record on the left, the two boards alongside it, so the tab fits on
     one screen instead of stacking into a long scroll. The record spans both
     rows — without it the DOM order would drop the friends card back into
     column one. */
  .stats-layout { grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
  .stats-layout .stats-card { grid-row: span 2; }
  .stats-layout .stats-card, .stats-layout .social-card { max-width: none; margin: 0; }
  .stats-layout .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-layout .stats-grid .stat-tile:last-child:nth-child(odd) { grid-column: auto; }
  .stats-layout .stats-grid .stat-tile:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Full desktop: all three side by side. The content column is 1000px wide, so
   this is the first width where three cards are readable rather than merely
   possible. */
@media (min-width: 1000px) {
  .stats-layout { grid-template-columns: 1.05fr 1fr 1fr; }
  .stats-layout .stats-card { grid-row: auto; }
  /* Back to two tiles per row: three don't fit in a third of the page. */
  .stats-layout .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-layout .stats-grid .stat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats-layout .stats-grid .stat-tile:last-child:nth-child(3n + 1) { grid-column: auto; }
  /* Four metric tabs across a third of the page: two rows of two. */
  .stats-layout .board-tabs { flex-wrap: wrap; }
  .stats-layout .board-tab { flex: 1 1 calc(50% - 3px); }
}

@media (max-width: 859px) {
  /* Everything in the nav has to fit one row next to the What's new pill. */
  .topnav { padding: 12px 16px; gap: 8px; }
  .topnav .lockup-name { display: none; }
  .tabs { gap: 10px; }
  .nav-right { gap: 10px; }
  .nav-right .streak-chip { display: none; }
  /* No room for the label on phones — the sparkle carries the message alone. */
  .whats-new-label { display: none; }
  .whats-new { padding: 6px 9px; }
  .results-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: row; padding: 22px; border-radius: 22px; }
  .banner-headline { font-size: 23px; }
  .score-n { font-size: 44px; }
  .banner-sub { font-size: 13px; }
  .bars-card { padding: 22px; }
  .bars-question { font-size: 18px; }
  .bar-row-top { font-size: 14px; }
  .bar-track { height: 12px; }
}

/* ---------- Admin dashboard ---------- */

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.dash-tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--soft-shadow);
}
.dash-n { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; color: var(--green-deep); }
.dash-l { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.dash-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-tile.ok .dash-n { color: var(--green); }
.dash-tile.warn { border-color: var(--yellow); }
.dash-tile.warn .dash-n { color: var(--yellow-deep); }
.dash-tile.danger { border-color: #e08a8a; background: #fdf3f3; }
.dash-tile.danger .dash-n { color: #c0504d; }

.dash-card { padding: 22px 24px; margin-bottom: 20px; }
.dash-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-count { font-size: 13px; font-weight: 700; color: var(--muted); }

.dash-scroll { overflow-x: auto; margin-top: 14px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.dash-table th {
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); color: var(--body); }
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table th.num, .dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table tr:hover td { background: var(--tint); }

.dash-player { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.dash-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #dfe8d4; font-size: 14px;
}
.dash-autoname { font-weight: 600; color: var(--muted); font-style: italic; }
.dash-tag {
  font-family: 'Fredoka', sans-serif; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--green-deep); background: var(--tint-bg);
  border-radius: 6px; padding: 2px 6px;
}
.dash-email { color: var(--body); font-size: 13px; }
.dash-q { white-space: normal; min-width: 220px; color: var(--ink); font-weight: 600; }
.dash-empty { color: var(--muted); text-align: center; padding: 22px 12px; }

/* Who said what */
.answers-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.answers-head select {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
}
.dash-answer { color: var(--ink); font-weight: 700; }
.dash-won { color: var(--green-deep); font-weight: 700; }
/* Signed up, sat this one out — present but not the point. */
.dash-silent td { color: var(--muted); }
.dash-silent .dash-player { color: var(--muted); font-weight: 600; }

/* Scoped to the mail column: an unscoped `.badge` here also caught the
   WINNERS/YOU pills on the results bars and squeezed them into 22px boxes,
   spilling the text over the flock name. */
.badges { display: inline-flex; gap: 5px; }
.badges .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px;
  background: var(--border-soft); color: var(--muted);
}
.badges .badge.on { background: var(--green-bar-you); color: var(--green-deep); }

@media (max-width: 859px) {
  .dash-card { padding: 18px 16px; }
  .dash-n { font-size: 26px; }
}
