/* moneytalks — one centered column, one accent, the board as the star.
   Type rule for the whole site: every figure is set in the mono face, every
   word in the sans. The board's right-hand money column and the claim
   headline's price are rungs of the same ladder. */

/* ------------------------------------------------------------- tokens */

:root {
  --paper: #f4f6f3;
  --row: #ffffff;
  --row-hover: #f1f7f4;
  --sunk: #e9ece8;

  --ink: #14181a;
  --ink-2: #55605c;
  --ink-3: #66716d;

  --line: #e3e8e3;
  --line-2: #d3dad4;

  --accent: #0c6b49;
  --accent-hover: #0a5a3d;
  --accent-ink: #ffffff;
  --wash: #e7f1ec;
  --wash-hover: #ddebe4;

  /* the podium: three graduated washes, three medal tones */
  --wash-1: #dbeae2;
  --wash-1-hover: #d0e3d9;
  --wash-2: #e4f0ea;
  --wash-2-hover: #dae9e2;
  --wash-3: #ecf5f0;
  --wash-3-hover: #e2efe8;
  --medal-1: #8a6b14;
  --medal-2: #6b7780;
  --medal-3: #8a5330;
  --medal-ink: #ffffff;

  /* the crown on #1: a hairline accent ring plus a soft halo. Static — a
     pulsing row would fight the board every time you scanned it. */
  --crown: 0 0 0 1px rgba(12, 107, 73, 0.24), 0 1px 2px rgba(12, 107, 73, 0.07),
    0 10px 30px -12px rgba(12, 107, 73, 0.3);
  --crown-hover: 0 0 0 1px rgba(12, 107, 73, 0.36), 0 1px 2px rgba(12, 107, 73, 0.09),
    0 14px 36px -12px rgba(12, 107, 73, 0.36);

  --danger: #a3302a;
  --danger-wash: #fbeceb;

  --f-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --col: 920px;
  --r: 10px;
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1211;
    --row: #171c1a;
    --row-hover: #1d2422;
    --sunk: #1b211f;

    --ink: #e7edea;
    --ink-2: #9ba5a1;
    --ink-3: #7b8783;

    --line: #262e2b;
    --line-2: #333d39;

    --accent: #45c08f;
    --accent-hover: #5ed3a3;
    --accent-ink: #07130e;
    --wash: #16261f;
    --wash-hover: #1b3128;

    --wash-1: #1c3428;
    --wash-1-hover: #223e30;
    --wash-2: #172a21;
    --wash-2-hover: #1d3529;
    --wash-3: #14231c;
    --wash-3-hover: #1a2c24;
    --medal-1: #d9b44a;
    --medal-2: #b4c0c7;
    --medal-3: #c88a5c;
    --medal-ink: #0e1211;

    /* dark can carry more light: a wider, brighter halo */
    --crown: 0 0 0 1px rgba(69, 192, 143, 0.32), 0 0 0 4px rgba(69, 192, 143, 0.07),
      0 10px 34px -10px rgba(69, 192, 143, 0.32);
    --crown-hover: 0 0 0 1px rgba(69, 192, 143, 0.46), 0 0 0 4px rgba(69, 192, 143, 0.11),
      0 14px 40px -10px rgba(69, 192, 143, 0.44);

    --danger: #e2857e;
    --danger-wash: #2a1817;
  }
}

:root[data-theme="dark"] {
  --paper: #0e1211;
  --row: #171c1a;
  --row-hover: #1d2422;
  --sunk: #1b211f;

  --ink: #e7edea;
  --ink-2: #9ba5a1;
  --ink-3: #7b8783;

  --line: #262e2b;
  --line-2: #333d39;

  --accent: #45c08f;
  --accent-hover: #5ed3a3;
  --accent-ink: #07130e;
  --wash: #16261f;
  --wash-hover: #1b3128;

  --wash-1: #1c3428;
  --wash-1-hover: #223e30;
  --wash-2: #172a21;
  --wash-2-hover: #1d3529;
  --wash-3: #14231c;
  --wash-3-hover: #1a2c24;
  --medal-1: #d9b44a;
  --medal-2: #b4c0c7;
  --medal-3: #c88a5c;
  --medal-ink: #0e1211;

  /* dark can carry more light: a wider, brighter halo */
  --crown: 0 0 0 1px rgba(69, 192, 143, 0.32), 0 0 0 4px rgba(69, 192, 143, 0.07),
    0 10px 34px -10px rgba(69, 192, 143, 0.32);
  --crown-hover: 0 0 0 1px rgba(69, 192, 143, 0.46), 0 0 0 4px rgba(69, 192, 143, 0.11),
    0 14px 40px -10px rgba(69, 192, 143, 0.44);

  --danger: #e2857e;
  --danger-wash: #2a1817;
}

/* --------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Every figure on the page, in one face. */
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.015em;
}

.page {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* --------------------------------------------------------------- top */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand__mark {
  width: 17px;
  height: 17px;
  display: block;
}

.brand__mark rect {
  fill: var(--ink-3);
}

.brand__mark .is-top {
  fill: var(--accent);
}

.brand__word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link {
  font-size: 13.5px;
  color: var(--ink-3);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link.is-active {
  color: var(--ink);
}

.themetoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--ink-3);
}

.themetoggle:hover {
  color: var(--ink);
  background: var(--sunk);
}

.themetoggle svg {
  width: 14px;
  height: 14px;
}

.i-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .i-sun {
    display: block;
  }
}

:root[data-theme="dark"] .i-moon {
  display: none;
}

:root[data-theme="dark"] .i-sun {
  display: block;
}

:root[data-theme="light"] .i-moon {
  display: block;
}

:root[data-theme="light"] .i-sun {
  display: none;
}

/* ------------------------------------------------------------- stats */

.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 4px 0 0;
}

.stats b {
  font-weight: 500;
  color: var(--ink-2);
}

.sep {
  color: var(--line-2);
}

/* ------------------------------------------------------------- claim */

.claim {
  padding: 16px 0 22px;
}

.claim__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 11px;
  font-size: clamp(30px, 5.4vw, 50px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.claim__rank {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--accent);
}

.claim__price {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.045em;
  border-bottom: 3px solid var(--line-2);
  transition: border-color 0.12s ease;
}

.claim__price:focus-within {
  border-bottom-color: var(--accent);
}

.claim__cur {
  color: var(--ink-3);
}

.claim__amount {
  width: 4ch;
  min-width: 2ch;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-variant-numeric: tabular-nums;
}

.claim__amount:focus {
  outline: none;
}

.stepper {
  display: inline-flex;
  align-self: center;
  gap: 4px;
  margin-left: 3px;
}

.stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.stepper__btn:hover:not(:disabled) {
  background: var(--wash);
  color: var(--accent);
}

.stepper__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.claim__say {
  margin-top: 11px;
  font-size: 14px;
  color: var(--ink-2);
}

/* The mechanic itself, lifted out of the sentence around it. */
.claim__say strong {
  font-weight: 600;
  color: var(--ink);
}

.claim__row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.claim__url {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--row);
  font-size: 15px;
}

.claim__url::placeholder {
  color: var(--ink-3);
}

.claim__url:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--wash);
}

.claim__url[aria-invalid="true"] {
  border-color: var(--danger);
}

.btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.preview {
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

.preview b {
  font-weight: 500;
  color: var(--ink-2);
}

.preview .preview__total {
  color: var(--accent);
  font-weight: 600;
}

.preview--warn {
  color: var(--danger);
}

.claim__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
}

.fine {
  font-size: 12px;
  color: var(--ink-3);
}

.more {
  flex: 0 1 auto;
}

.more[open] {
  flex-basis: 100%;
}

.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary::before {
  content: "+";
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--line-2);
}

.more[open] > summary::before {
  content: "−";
}

.more > summary:hover {
  color: var(--ink-2);
}

.more__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--row);
}

.field {
  display: block;
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--ink-3);
}

.input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
}

.input::placeholder {
  color: var(--ink-3);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ------------------------------------------------------------ result */

.result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--row);
}

.result--error {
  border-left-color: var(--danger);
  background: var(--danger-wash);
}

.result__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.result__note {
  margin-top: 5px;
  font-size: 13px;
  color: var(--ink-2);
}

.result__standing {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}

.result__cell {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-3);
}

.result__rank {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.result__cell b {
  font-weight: 500;
  color: var(--ink-2);
}

.linkbtn {
  font-size: 12.5px;
  color: var(--ink-3);
  border-radius: 6px;
}

.linkbtn:hover:not(:disabled) {
  color: var(--accent);
}

.linkbtn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ------------------------------------------------------------- board */

.board {
  margin-top: 2px;
}

.board__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 8px;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--sunk);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.12s ease, background-color 0.12s ease;
}

.tab:hover {
  color: var(--ink-2);
}

.tab.is-active {
  background: var(--row);
  color: var(--ink);
}

.board__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0 5px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.board__meta b {
  font-weight: 500;
  color: var(--ink-2);
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ------------------------------------------------------------- a row */

.row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 13px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--row);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.row:hover {
  background: var(--row-hover);
}

/* The podium. Ranks 1-3 are taller, set larger and carry a medal numeral;
   rank 4 down is the quiet baseline. Three steps, one system — no fill bars. */
/* The podium rows are tall and tinted, so the 3px list gap leaves them running
   into each other. They get their own rhythm — which also sets the three of
   them apart from rank 4 down. */
.row--top {
  margin-bottom: 5px;
  padding: 14px;
}

.row--1 {
  z-index: 1;
  padding: 17px 14px;
  background: var(--wash-1);
  box-shadow: var(--crown);
}

.row--1:hover {
  background: var(--wash-1-hover);
  box-shadow: var(--crown-hover);
}

.row--2 {
  background: var(--wash-2);
}

.row--2:hover {
  background: var(--wash-2-hover);
}

.row--3 {
  background: var(--wash-3);
}

.row--3:hover {
  background: var(--wash-3-hover);
}

.row__rank {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

.row--top .row__rank {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--medal-ink);
}

.row--1 .row__rank {
  background: var(--medal-1);
}

.row--2 .row__rank {
  background: var(--medal-2);
}

.row--3 .row__rank {
  background: var(--medal-3);
}

.row--top .row__ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.row--top .row__name {
  font-size: 16.5px;
}

.row--1 .row__name {
  font-size: 18px;
}

.row--top .row__desc {
  font-size: 13.5px;
}

.row--top .row__amt {
  font-size: 17px;
}

.row--1 .row__amt {
  font-size: 19.5px;
}

.row--top .row__clicks,
.row--top .row__out {
  font-size: 12px;
}

/* The muted grey clears AA on the plain row but not on the tinted podium
   washes, so the podium's secondary text steps up one level. */
.row--top .row__clicks,
.row--top .row__host,
.row--top .delta {
  color: var(--ink-2);
}

.row__ico {
  justify-self: end;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--sunk);
}

.row__body {
  min-width: 0;
}

.row__top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.row__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

/* The name is the row's one real link; this stretches its hit area over the
   whole row. The money column sits above it so "Outbid with $X" stays clickable.
   The truncating span is a child so the overlay is never clipped by it. */
.row__name::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
}

.row__name:focus-visible {
  box-shadow: none;
}

.row__name:focus-visible::after {
  box-shadow: var(--focus);
}

.row__nametext {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row:hover .row__name {
  color: var(--accent);
}

.row__host {
  flex: 0 1 auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delta {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.delta--up {
  color: var(--accent);
}

.row__desc {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__end {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 1px;
  pointer-events: none;
}

.row__amt {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.row__slot {
  display: grid;
  min-height: 17px;
}

.row__slot > * {
  grid-area: 1 / 1;
  justify-self: end;
}

.row__clicks {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  transition: opacity 0.1s ease;
}

.row__actions {
  display: flex;
  align-items: center;
  gap: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.row__out {
  padding: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  border-radius: 5px;
}

.row:hover .row__clicks,
.row:focus-within .row__clicks {
  opacity: 0;
}

.row:hover .row__actions,
.row:focus-within .row__actions {
  opacity: 1;
  pointer-events: auto;
}

.row__out:hover,
.row__lock:hover {
  text-decoration: underline;
}

/* Locks are sold on one row only, so the control lives where the eye already
   goes for that row's actions rather than in new chrome of its own. */
.row__lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  border-radius: 5px;
}

.row__lockico {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

/* A pinned row can show less money than the row under it. The padlock is the
   whole explanation, so it sits on the name line, in white, where a tinted
   podium row cannot swallow it. */
.lockchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--row);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.lockchip__ico {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

/* ------------------------------------------------ board states / pager */

.state {
  padding: 30px 16px;
  border-radius: var(--r);
  background: var(--row);
  text-align: center;
}

.state__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.state p {
  max-width: 46ch;
  margin: 6px auto 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.state .linkbtn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.result .linkbtn {
  color: var(--accent);
  font-weight: 500;
}

.state--error .state__title {
  color: var(--danger);
}

.skel {
  pointer-events: none;
}

.skel__bar {
  height: 9px;
  border-radius: 4px;
  background: var(--sunk);
  animation: pulse 1.1s ease-in-out infinite;
}

.skel__bar + .skel__bar {
  margin-top: 7px;
}

.skel__bar--a {
  width: 38%;
}

.skel__bar--b {
  width: 64%;
}

.skel__bar--c {
  width: 58px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.pager__btn {
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-radius: 7px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink-3);
}

.pager__btn:hover:not(:disabled) {
  background: var(--sunk);
  color: var(--ink);
}

.pager__btn.is-current {
  background: var(--accent);
  color: var(--accent-ink);
}

.pager__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pager__gap {
  padding: 0 2px;
  color: var(--line-2);
}

.pager__count {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ------------------------------------------------------- side cards */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.card {
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--row);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__note {
  font-size: 11.5px;
  color: var(--ink-3);
}

.card__empty {
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.tick {
  display: flex;
  flex-direction: column;
}

.tick li {
  border-bottom: 1px solid var(--line);
}

.tick li:last-child {
  border-bottom: 0;
}

.tick__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  text-decoration: none;
}

.tick__msg {
  margin: -3px 0 8px 25px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tick__msg cite {
  font-style: normal;
}

.tick__row:hover .tick__name {
  color: var(--accent);
}

.tick__ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--sunk);
}

.tick__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tick__amt {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.tick__val {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--ink-3);
}

.tick__val--hot {
  color: var(--accent);
}

/* -------------------------------------------------------------- foot */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.foot__links {
  display: inline-flex;
  gap: 16px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------ prose pages */

.article {
  max-width: 66ch;
  padding: 28px 0 8px;
}

.article__kicker {
  font-size: 12.5px;
  color: var(--accent);
}

.article h1 {
  margin-top: 6px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article__lede {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
}

.article section {
  margin-top: 34px;
}

.article h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.article p {
  margin-top: 11px;
}

.article ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.article ul li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-2);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--line-2);
}

.article li strong,
.article p strong {
  color: var(--ink);
  font-weight: 600;
}

.article a {
  color: var(--accent);
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
}

.article code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--sunk);
}

.defs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--row);
}

.defs > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.defs dt {
  font-size: 13.5px;
  font-weight: 600;
}

.defs dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.callout {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--wash);
}

.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}


/* ------------------------------------------------------ final hours */

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.tab.is-final {
  color: var(--accent);
}

.board__meta .meta--final {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
}

.board__meta .meta--final b {
  color: var(--accent);
  font-weight: 600;
}

/* ------------------------------------------------------------- locks */

.lockbox {
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--row);
}

.lockbox--warn {
  border-left-color: var(--danger);
  background: var(--danger-wash);
}

.lockbox__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lockbox__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lockbox__ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--accent);
}

.lockbox--warn .lockbox__title {
  color: var(--danger);
}

.lockbox__say {
  margin-top: 5px;
  max-width: 68ch;
  font-size: 13px;
  color: var(--ink-2);
}

.lockbox__say b {
  font-weight: 600;
  color: var(--ink);
}

.lockbox__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.lockbox__opts:empty {
  margin-top: 0;
}

.lockopt {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 1px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--paper);
  text-align: left;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.lockopt:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--wash);
}

.lockopt:disabled {
  opacity: 0.5;
  cursor: default;
}

.lockopt__dur {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.lockopt__price {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--accent);
}

.lockopt__capped {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-2);
}

.lockopt.is-capped {
  border-style: dashed;
}

.lockbox__note {
  margin-top: 10px;
  max-width: 74ch;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- underdog */

.dog {
  margin-top: 22px;
  padding: 13px 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--row);
}

.dog__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.dog__body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.dog__ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sunk);
}

.dog__main {
  flex: 1 1 auto;
  min-width: 0;
}

.dog__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.dog__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.dog__name:hover {
  color: var(--accent);
}

.dog__nametext {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dog__rank,
.dog__total {
  flex: 0 0 auto;
  font-size: 11.5px;
  white-space: nowrap;
}

.dog__rank {
  color: var(--ink-3);
}

.dog__total {
  color: var(--ink-2);
}

.dog__desc {
  margin-top: 1px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dog__cta {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dog__cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------- message + gift on the form */

.claim__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.claim__msg {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--row);
  font-size: 14px;
}

.claim__msg::placeholder {
  color: var(--ink-3);
}

.claim__msg:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--wash);
}

.gift {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.gift:hover {
  color: var(--ink);
}

.gift__in {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.tick__giftwrap {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--accent);
}

.tick__gift {
  display: block;
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------ mobile */

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .more__grid {
    grid-template-columns: 1fr;
  }
  .defs > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 0 14px 48px;
  }
  .claim__row {
    flex-wrap: wrap;
  }
  .claim__url {
    flex-basis: 100%;
  }
  .btn {
    flex: 1 1 auto;
  }
  .row {
    grid-template-columns: 24px 22px minmax(0, 1fr) auto;
    gap: 0 10px;
    padding: 10px;
  }
  .row__out {
    display: none;
  }
  .row:hover .row__clicks,
  .row:focus-within .row__clicks {
    opacity: 1;
  }
  .board__foot {
    flex-wrap: wrap;
  }
  .claim__aside {
    flex-wrap: wrap;
  }
  .claim__msg {
    flex-basis: 100%;
  }
  .dog__body {
    flex-wrap: wrap;
  }
  .dog__cta {
    flex: 1 1 100%;
  }
  .lockopt {
    flex-basis: 100%;
  }
  .nav {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
