/* betterbid — light-only design system */

:root {
  /* surfaces */
  --bg: #e6e6e6;
  --surface: #f3f3f3;
  --surface-2: #e8e8e8;
  --input: #d7d7d7;
  --glass: rgba(255, 255, 255, 0.7);

  /* text */
  --fg: #1a2e3f;
  --fg-strong: #14334d;
  --muted: rgba(49, 53, 61, 0.7);
  --muted-strong: rgba(49, 53, 61, 0.9);

  /* lines */
  --line: rgba(158, 171, 181, 0.45);
  --line-strong: rgba(158, 171, 181, 0.8);
  --hairline: rgba(158, 171, 181, 0.3);
  --emboss: 0 1px 0 rgba(255, 255, 255, 0.5);

  /* accents */
  --accent: #0091fc;
  --accent-hi: #39abff;
  --accent-lo: #0094ff;
  --accent-soft: rgba(46, 166, 255, 0.22);
  --green: #009708;
  --live: #0b7100;
  --live-soft: rgba(15, 152, 0, 0.18);
  --clicks: #1c10ff;
  --clicks-soft: rgba(28, 16, 255, 0.08);
  --pill-green: #24b271;
  --pill-green-in: #02a55a;
  --fire-a: #ff8f39;
  --fire-b: #df5c0f;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --ok: #0b7100;
  --ok-soft: rgba(15, 152, 0, 0.14);

  /* type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;

  /* elevation */
  --shadow-card:
    0 52.3px 7.4px rgba(183, 181, 203, 0.012),
    0 33.1px 6.5px rgba(183, 181, 203, 0.05),
    0 18.3px 5.7px rgba(183, 181, 203, 0.16),
    0 8.7px 4.4px rgba(183, 181, 203, 0.27),
    0 1.7px 2.2px rgba(183, 181, 203, 0.31);
  --shadow-glass:
    0 50.2px 14.2px rgba(183, 181, 203, 0.012),
    0 31.8px 12.6px rgba(183, 181, 203, 0.05),
    0 17.6px 10.9px rgba(183, 181, 203, 0.16),
    0 8.4px 8.4px rgba(183, 181, 203, 0.27),
    0 1.7px 4.2px rgba(183, 181, 203, 0.31);

  /* rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --wrap: 900px;
  --gutter: 0.75rem;
  --pad-card-y: 0.875rem;
  --pad-card-x: 0.875rem;
  --stack-gap: 0.75rem;
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
    --pad-card-y: 17px;
    --pad-card-x: 20px;
    --stack-gap: 14px;
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.num,
.tnum {
  font-variant-numeric: tabular-nums;
}

.display-num {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.money {
  color: var(--accent);
}

.faint {
  color: var(--muted);
}

/* ---------------------------------------------------------------- surfaces */

.glass-pill {
  background-color: var(--glass);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
}

.card {
  background-color: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.rise {
  animation: rise 0.35s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

/* ----------------------------------------------------------------- buttons */

.btn-primary,
.btn-fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-image: linear-gradient(#39abff 0%, #0094ff 100%);
  box-shadow: inset 0 4px 3px rgba(255, 255, 255, 0.4), inset 0 4px 4px #0697ff;
}

.btn-fire {
  background-image: linear-gradient(117deg, #ff8f39 3%, #df5c0f 116%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.55), 0 4px 2px rgba(231, 104, 25, 0.27);
}

.btn-primary:hover:not(:disabled),
.btn-fire:hover:not(:disabled) {
  filter: brightness(105%);
}

.btn-primary:active:not(:disabled),
.btn-fire:active:not(:disabled) {
  scale: 0.99;
}

.btn-primary:disabled,
.btn-fire:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary:focus-visible,
.btn-fire:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 145, 252, 0.25);
}

.btn-fire:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 143, 57, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--fg-strong);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--accent);
}

/* ------------------------------------------------------------------- chips */

.chip-live,
.chip-clicks {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.chip-live {
  color: var(--live);
  background-color: var(--live-soft);
}

.chip-clicks {
  color: var(--clicks);
  background-color: var(--clicks-soft);
}

.chip-clicks__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.live-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--live);
  animation: pulse-dot 2s ease-out infinite;
  flex-shrink: 0;
}

.live-dot--sm {
  width: 0.5rem;
  height: 0.5rem;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(11, 113, 0, 0.3); }
  70%, 100% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ------------------------------------------------------------------ navbar */

.navbar {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--gutter) 0;
}

@media (min-width: 640px) {
  .navbar {
    padding-top: 1rem;
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 5px var(--pad-card-x);
  padding-left: var(--pad-card-x);
  border-radius: 999px;
  background-color: rgba(230, 230, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .navbar__inner {
    padding-left: 26px;
  }
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.045em;
  color: var(--fg-strong);
}

.navbar__logo {
  width: 96px;
  height: auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .navbar__logo {
    width: 196px;
  }
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (min-width: 640px) {
  .navbar__nav { gap: 0.25rem; }
}

.navbar__link {
  border-radius: 999px;
  padding: 0.5rem 0.4rem;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

@media (min-width: 640px) {
  .navbar__link {
    padding: 1rem 0.875rem;
    font-size: 16px;
  }
}


.navbar__link:hover {
  color: var(--fg);
}

.navbar__link--active {
  font-weight: 700;
  color: var(--fg-strong);
}

/* ------------------------------------------------------------------ layout */

.shell {
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  padding-top: 0 !important;
}

@media (min-width: 640px) {
  .shell {
    padding-top: 60px;
    padding-bottom: 2.5rem;
  }
}

/* -------------------------------------------------------------------- tape */

.tape {
  overflow: hidden;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow-glass);
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

.tape__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: tape 40s linear infinite;
  font-size: 13px;
  letter-spacing: -0.26px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tape__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tape__item b {
  font-weight: 700;
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .tape__track { animation: none; }
}

@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.stats-row {
  display: flex;
  justify-content: center;
}

.stats-pill {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  white-space: nowrap;
  padding: 2px 10px 2px 3px;
  font-size: 13px;
  letter-spacing: -0.26px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .stats-pill {
    gap: 0.625rem;
    padding-right: 22px;
  }
}

.stats-pill .chip-live {
  font-size: inherit;
  letter-spacing: inherit;
}

.stats-pill b {
  font-weight: 700;
}

.stats-pill__strong {
  color: var(--fg);
}

.stats-pill__link {
  display: none;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}

.stats-pill__link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .stats-pill__link { display: inline; }
}

/* --------------------------------------------------------------- bid / cta */

.bid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 18px auto 0;
  text-align: center;
  scroll-margin-top: 6rem;
}

.bid__claim {
  width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--fg);
}

@media (min-width: 640px) {
  .bid__claim { font-size: 72px; }
}

@media (min-width: 1024px) {
  .bid__claim { font-size: 92px; }
}

.bid__rank {
  color: var(--accent);
}

.bid__rotate {
  display: inline-block;
  min-height: 1em;
}

.bid__rotate .ti-cursor {
  margin-left: 0.15em;
  color: var(--accent);
}

.bid__hint {
  max-width: 500px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: var(--muted-strong);
}

@media (min-width: 640px) {
  .bid__hint { font-size: 18px; }
}

.bid__hint strong {
  font-weight: 600;
  color: var(--green);
}

.bid__price-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.bid__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 0;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  transition: filter 0.15s ease;
}

@media (min-width: 640px) {
  .bid__step { width: 62px; height: 62px; }
}

.bid__step:hover {
  filter: brightness(95%);
}

.bid__step:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 145, 252, 0.25);
}

.bid__step svg {
  width: 26px;
  height: 26px;
}

.bid__price {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.5rem;
  border-radius: 0.75rem;
}

.bid__price:focus-within {
  box-shadow: 0 0 0 4px rgba(0, 145, 252, 0.25);
}

.bid__price .display-num {
  font-size: 44px;
}

@media (min-width: 640px) {
  .bid__price .display-num { font-size: 68px; }
}

.bid__amount-input {
  width: 2.2ch;
  min-width: 1.5ch;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
  transition: width 0.12s ease;
}

.bid__amount-input::-webkit-outer-spin-button,
.bid__amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bid__form {
  width: 75%;
}

.bid__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--input);
  padding: 6px 6px 6px 0.875rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@media (min-width: 640px) {
  .bid__field {
    gap: 0.75rem;
    padding: 7px 7px 7px 1.25rem;
  }
}

.bid__globe {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .bid__globe { width: 1.5rem; height: 1.5rem; }
}

.bid__field input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: var(--fg);
  outline: none;
}

@media (min-width: 640px) {
  .bid__field input { font-size: 17px; }
}

.bid__field input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.bid__field input:not(:placeholder-shown) {
  color: var(--accent-lo);
}

.bid__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted-strong);
  cursor: pointer;
  transition: background 0.15s ease;
}

.bid__clear:hover {
  background: rgba(0, 0, 0, 0.14);
}

.bid__clear[hidden] {
  display: none;
}

.bid__clear svg {
  width: 13px;
  height: 13px;
}

.bid__outbid {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  font-size: 15px;
  letter-spacing: -0.5px;
}

@media (min-width: 640px) {
  .bid__outbid {
    padding: 12px 28px;
    font-size: 17px;
  }
}

.bid__footnote {
  max-width: 424px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--muted);
}

.bid__preview {
  margin: 0;
  max-width: 500px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted-strong);
}

.bid__preview[hidden] {
  display: none;
}

.bid__preview--warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
}

/* --------------------------------------------------------- meta url preview */

.meta-preview {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: var(--pad-card-y) var(--pad-card-x);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.meta-preview[hidden] {
  display: none;
}

.meta-preview__fav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--surface-2);
  flex-shrink: 0;
  object-fit: cover;
}

.meta-preview__body {
  flex: 1;
  min-width: 0;
}

.meta-preview__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.meta-preview__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--fg-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-preview__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.meta-preview__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--fg-strong);
}

.meta-preview__close svg {
  width: 12px;
  height: 12px;
}

.meta-preview__sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-preview__sub:empty {
  display: none;
}

.meta-preview__redirect {
  margin: 0.2rem 0 0;
  color: var(--warn);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.meta-preview__redirect[hidden] {
  display: none;
}

.meta-preview__status {
  margin: 0.3rem 0 0;
  color: var(--fg-strong);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.meta-preview__status:empty {
  display: none;
}

/* ---------------------------------------------------------------- insights */

.insights {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--stack-gap);
  width: 100%;
  margin: 1.5rem auto 0;
}

@media (min-width: 640px) {
  .insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights--solo .insight-card {
    grid-column: 2;
  }
}

.insight-card {
  border-radius: 20px;
  padding: var(--pad-card-y) var(--pad-card-x);
  min-width: 0;
}

.insight-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  list-style: none;
}

.insight-card__head::-webkit-details-marker {
  display: none;
}

.insight-card__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-card__chevron {
  flex-shrink: 0;
  margin-left: auto;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

details[open] > .insight-card__head .insight-card__chevron {
  transform: rotate(45deg);
}

details[open] > .insight-card__head {
  margin-bottom: 0.5rem;
}

.insight-card__scroll {
  max-height: 17.4rem;
  overflow-y: auto;
  padding-right: 0.75rem;
  margin-right: -0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.insight-card__scroll::-webkit-scrollbar {
  width: 6px;
}

.insight-card__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.insight-card__scroll::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  border-radius: 999px;
}

.insight-card__scroll::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}

.insight-card__title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg-strong);
  min-width: 0;
}

.insight-card__emoji {
  flex-shrink: 0;
  line-height: 1;
}

.insight-card__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.trending,
.activity {
  display: grid;
  gap: 0;
}

.trend,
.activity__row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.trend:last-child,
.activity__row:last-child {
  border-bottom: 0;
  box-shadow: none;
  padding-bottom: 0;
}

.trend:hover,
.activity__row:hover {
  opacity: 0.75;
}

.trend__fav,
.activity__fav {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--surface-2);
  flex-shrink: 0;
  object-fit: cover;
}

.trend__title,
.activity__body {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend__rate {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.activity__name {
  font-weight: 500;
  color: var(--fg-strong);
}

.activity__meta {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.activity__ago {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.activity--empty {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.activity__empty-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg-strong);
}

.activity__empty-text {
  margin: 0.35rem auto 0;
  max-width: 18rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.board {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  width: 100%;
  margin: 1.5rem auto 0;
  scroll-margin-top: 6rem;
}

.board-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.board-divider::before,
.board-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  box-shadow: var(--emboss);
}

.divider-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--pill-green);
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.6px;
  white-space: nowrap;
  box-shadow: inset 0 4px 4px var(--pill-green-in);
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: var(--pad-card-y) var(--pad-card-x);
  cursor: pointer;
  transition: filter 0.15s ease;
}

@media (min-width: 640px) {
  .board-card {
    gap: 15px;
  }
}

.board-card:hover {
  filter: brightness(0.99);
}

.board-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .board-card__head { gap: 1rem; }
}

.board-card__lead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .board-card__lead { gap: 14px; }
}

.board-card__rank {
  width: 28px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.7px;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .board-card__rank {
    min-width: 40px;
    width: auto;
    font-size: 30px;
  }
}

/* Top 3 get a metal (gold/silver/bronze) treatment so they read as a podium,
   distinct from the rest of the board at a glance. */
.board-card--top1,
.board-card--top2,
.board-card--top3 {
  position: relative;
  border: 2px solid var(--top-metal);
  background-color: var(--top-metal-tint);
  box-shadow: var(--shadow-card), 0 4px 14px var(--top-metal-glow);
}

.board-card--top1 {
  --top-metal: #b8860b; --top-metal-hi: #ffe38a; --top-metal-lo: #8f6607;
  --top-metal-tint: #faecc0;
  --top-metal-glow: rgba(212, 175, 55, 0.22);
}
.board-card--top2 {
  --top-metal: #5b7188; --top-metal-hi: #d7e2ec; --top-metal-lo: #3f4f60;
  --top-metal-tint: #dee6ee;
  --top-metal-glow: rgba(91, 113, 136, 0.2);
}
.board-card--top3 {
  --top-metal: #a15c2a; --top-metal-hi: #f0b27e; --top-metal-lo: #7a3f16;
  --top-metal-tint: #f5dfc7;
  --top-metal-glow: rgba(205, 127, 50, 0.22);
}

.board-card--top1 .board-card__rank,
.board-card--top2 .board-card__rank,
.board-card--top3 .board-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(155deg, var(--top-metal-hi), var(--top-metal) 55%, var(--top-metal-lo));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .board-card--top1 .board-card__rank,
  .board-card--top2 .board-card__rank,
  .board-card--top3 .board-card__rank {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.board-card__fav {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--surface-2);
  object-fit: cover;
}

@media (min-width: 640px) {
  .board-card__fav { width: 56px; height: 56px; }
}

.board-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

@media (min-width: 640px) {
  .board-card__body { gap: 7px; }
}

.board-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.board-card__title {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--fg-strong);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .board-card__title {
    font-size: 26px;
    letter-spacing: -0.78px;
  }
}

.board-card__title:hover {
  text-decoration: underline;
}

.board-card__pay {
  flex-shrink: 0;
  font-size: 20px;
}

@media (min-width: 640px) {
  .board-card__pay { font-size: 33px; }
}

.board-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .board-card__desc { font-size: 16px; }
}

.board-card__foot {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.board-card__ago {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  letter-spacing: -0.26px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-card__take {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 15px;
  letter-spacing: -0.5px;
}

@media (min-width: 640px) {
  .board-card__take {
    padding: 9px 18px;
    font-size: 18px;
  }
}

.empty {
  margin: 2rem 0;
  color: var(--muted);
  text-align: center;
}

/* -------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px;
  border-radius: 999px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.125rem;
  height: 2.125rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pagination__btn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--fg-strong);
}

.pagination__btn--active,
.pagination__btn--active:hover {
  background-image: linear-gradient(#39abff 0%, #0094ff 100%);
  box-shadow: inset 0 4px 3px rgba(255, 255, 255, 0.4), inset 0 4px 4px #0697ff;
  color: #fff;
  font-weight: 600;
}

.pagination__btn--disabled {
  color: rgba(49, 53, 61, 0.35);
  cursor: default;
  pointer-events: none;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.125rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ----------------------------------------------------------------- banners */

.banner {
  width: 100%;
  margin: 0 auto 0.9rem;
  border-radius: 18px;
  padding: 0.8rem var(--pad-card-x);
  font-size: 0.9rem;
  font-weight: 500;
}

.banner--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.banner--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(20, 30, 40, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: modal-fade 0.2s ease forwards;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modal-fade {
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: modal-pop 0.25s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modal-pop {
  to { transform: none; opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal__close svg {
  width: 1rem;
  height: 1rem;
}

.modal__close:hover {
  background: var(--surface-2);
  color: var(--fg-strong);
}

.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
}

.modal__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal__title {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--fg-strong);
}

.modal__subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.modal__steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.modal__step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.modal__step-dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--line-strong);
}

.modal__step.is-done {
  color: var(--fg-strong);
}

.modal__step.is-done .modal__step-dot {
  background: var(--ok);
}

.modal__step.is-active {
  color: var(--fg-strong);
  font-weight: 500;
}

.modal__step.is-active .modal__step-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: modal-pulse 1.4s ease-in-out infinite;
}

@keyframes modal-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.modal__cta {
  width: 100%;
  height: 2.75rem;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------- content / pages */

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.page__back {
  margin: 0 0 var(--space-md);
  text-align: center;
}

.page__intro {
  margin: 0;
}

.page-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--fg);
}

@media (min-width: 640px) {
  .page-title { font-size: 56px; }
}

.lede {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--muted-strong);
}

.page__section {
  margin-top: var(--space-lg);
}

.page__section h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}

.page__footer {
  margin-top: var(--space-lg);
  text-align: center;
}

.page__fineprint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  border-radius: 20px;
  padding: 1rem 1.15rem;
}

.feature__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.feature p:last-child {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.rules {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted-strong);
  font-weight: 500;
}

.rules li {
  margin: var(--space-xs) 0;
}

.rules strong {
  color: var(--fg-strong);
}

.rules code,
.page code {
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9em;
}

.link {
  color: var(--accent);
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--fg-strong);
}

.about-cta {
  display: flex;
  justify-content: center;
  margin: var(--space-sm) 0 0;
}

/* ------------------------------------------------------------------ footer */

.footer {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  width: 100%;
  padding: 1.75rem var(--pad-card-x);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow-glass);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.045em;
  color: var(--fg-strong);
}

.footer__logo {
  width: 1.5rem;
  height: auto;
}

.footer__tagline {
  max-width: 26rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.5rem;
}

.footer__nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer__nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--fg-strong);
}

.footer__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__credit strong {
  font-weight: 600;
  color: var(--fg-strong);
}

.footer__credit:hover,
.footer__credit:hover strong {
  color: var(--accent);
}

.footer__credit--social {
  font-weight: 500;
  color: var(--fg-strong);
}

.footer__avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  object-fit: cover;
  background: var(--surface-2);
}

.footer__fineprint {
  margin: 0;
  max-width: 34rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
