/* the rank board: one row per keyword, the rank in a gold plate */
.board { grid-column: 8 / span 5; margin: 0; }
.board-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.board-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-size: 0.9375rem; font-weight: 700; }
.board-head span { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); }
.board ol { list-style: none; margin: 0; padding: 0; }
.rung { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.rung:last-child { border-bottom: 0; }
.rung-kw { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.rung-kw small { display: block; font-weight: 400; font-size: var(--t-small); color: var(--muted); margin-top: 2px; }
.rung-kw small.fell { color: var(--drop); }
.defs { position: absolute; }
#hatch line { stroke: var(--muted); stroke-width: 1; opacity: .45; }
.trail { width: 120px; height: 34px; overflow: visible; }
.trail .usual { fill: url(#hatch); }
.trail .tick { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.trail polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.trail circle { fill: var(--ink); }
.trail circle.fell { fill: var(--drop); }
.rung-rank { text-align: center; }
.plate {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  background: var(--gold); color: #1E1B18; border-radius: 4px;
  font-stretch: 62%; font-weight: 800; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 2px #1E1B18;
  transform: rotate(-3deg);
}
.rung.down .plate { background: #B33A27; color: #fff; }
.move { display: block; font-size: 0.8125rem; font-weight: 600; margin-top: 6px; white-space: nowrap; }
.move.up { color: var(--rise); }
.move.down { color: var(--drop); }
.board figcaption { font-size: var(--t-small); color: var(--muted); margin-top: var(--s3); }
/* the week of checks: a stepped slider, one stop per day */
.board-scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) 4.5em; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); border-top: 1px solid var(--line); font-size: var(--t-small); }
.board-scrub[hidden] { display: none; }
.board-scrub label { color: var(--muted); }
.board-scrub output { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.board-scrub input { width: 100%; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* one stamp press per new check, as in the extension: scale 1.08 to 1 in 120 ms */
@media (prefers-reduced-motion: no-preference) {
  .plate.press { animation: press 120ms ease-out both; }
  @keyframes press { from { transform: rotate(-3deg) scale(1.08); } to { transform: rotate(-3deg) scale(1); } }
  .plate { transition: background-color 120ms ease-out, color 120ms ease-out; }
}

@media (max-width: 960px) {
  .board { grid-column: 1 / -1; margin-top: var(--s7); max-width: 560px; }
}

@media (max-width: 720px) {
  .rung { grid-template-columns: minmax(0, 1fr) auto minmax(56px, auto); gap: var(--s3); padding: var(--s4); }
  .board-scrub { padding: var(--s3) var(--s4); }
  .trail { width: 84px; }
  .plate { width: 48px; height: 48px; font-size: 1.875rem; }
}
