:root {
  color-scheme: light;
  --paper: #f4f7ff;
  --surface: #fff;
  --surface-2: #e9eef9;
  --surface-3: #dce5f7;
  --hover: #f8fbff;
  --ink: #19243b;
  --strong: #47566f;
  --muted: #66728a;
  --faint: #9aa6bb;
  --line: #dce4f2;
  --teal: #11a99d;
  --teal-dark: #087f79;
  --coral: #f06b52;
  --coral-wash: #fff3ef;
  --coral-strong: #d8543c;
  --purple: #7167e8;
  --live: #22b864;
  --live-strong: #15964f;
  --live-ring: rgba(34, 184, 100, 0.16);
  --ok-wash: rgba(17, 169, 157, 0.12);
  --scrim: rgba(15, 23, 39, 0.55);
  --on-accent: #fff;
  --input-border: #d5deed;
  --placeholder: #9aa2b0;
  --badge-bg: #fff;
  --badge-ink: var(--teal-dark);
  --tier-1: #d7f4f0;
  --tier-2: #e7f9f6;
  --tier-3: #f2fcfb;
  --avatar-bg: #edf0ff;
  --avatar-line: #dde2ff;
  --avatar-ink: var(--purple);
  --avatar-1-bg: var(--teal);
  --avatar-1-ink: #fff;
  --avatar-1-line: transparent;
  --avatar-2-bg: #bcece5;
  --avatar-2-line: #9cddd5;
  --avatar-3-bg: #d9f3ef;
  --avatar-3-line: #bfe7e2;
  --dot-ring: #d5f2ee;
  --focus-ring: 0 0 0 4px #11a99d18;
  --brand-glow: 0 6px 14px #11a99d2e;
  --accent-glow: 0 8px 18px #11a99d30;
  --shadow: 0 14px 36px rgba(46, 63, 105, 0.08);
  --shadow-input: 0 8px 22px rgba(64, 85, 135, 0.05);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  animation: page-in 0.35s ease both;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  padding: 20px 24px 0;
  background: var(--paper);
}
.site-header-inner {
  max-width: 1120px;
  height: 52px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 23px "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}
.brand-dot {
  color: var(--teal);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 11px;
  box-shadow: var(--brand-glow);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-weight: 700;
}
.site-nav a:hover {
  color: var(--teal);
}
.site-nav svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}
.live-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-ring);
  animation: live-pulse 1.8s ease-out infinite;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle:hover {
  transform: rotate(-12deg);
  background: var(--surface-3);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.page-shell {
  width: 58%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px 76px;
}
.hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font: 700 clamp(38px, 5.4vw, 62px) / 1.04 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
  margin: 12px 0 0;
}
.hero h1 span {
  color: var(--teal);
}
.hero-copy {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.claim-form {
  margin: 30px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px auto;
  gap: 10px;
}
.claim-input-wrap,
.compact-bid {
  height: 58px;
  border: 2px solid var(--input-border);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-input);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.claim-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.claim-input-wrap:focus-within,
.compact-bid:focus-within {
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}
.input-icon {
  width: 17px;
  height: 17px;
  color: var(--teal);
  margin-right: 10px;
}
.claim-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.claim-input-wrap input::placeholder {
  color: var(--placeholder);
}
.compact-bid {
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
}
.compact-bid input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: 600 16px "Space Grotesk", sans-serif;
}
.claim-button {
  height: 58px;
  padding: 0 25px;
  border: 0;
  border-radius: 16px;
  background: var(--teal);
  color: var(--on-accent);
  font: 700 15px "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: background 0.2s, transform 0.2s;
}
.claim-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}
.claim-button span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.claim-button svg {
  width: 16px;
  height: 16px;
}
.rebid-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.board-section {
  margin-top: 58px;
}
.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 13px;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--purple);
}
.board-heading h2 {
  font: 600 23px "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
}
.updated-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}
.updated-label svg {
  width: 14px;
  height: 14px;
}
.leaderboard {
  padding-top: 14px;
}
.listing-card {
  min-height: 122px;
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition: background 0.2s;
  animation: card-in 0.45s both;
}
.listing-card.is-live {
  animation: none;
}
.listing-card:first-child {
  border-top: 1px solid var(--line);
}
.listing-card:hover {
  transform: none;
  background: var(--hover);
}
.listing-card-top {
  background: var(--tier-1);
}
.listing-card-second {
  background: var(--tier-2);
}
.listing-card-third {
  background: var(--tier-3);
}
.listing-rank {
  font: 600 20px "Space Grotesk", sans-serif;
  color: var(--teal-dark);
  text-align: center;
}
.listing-card-second .listing-rank,
.listing-card-third .listing-rank {
  color: var(--teal-dark);
}
.listing-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--avatar-bg);
  border: 1px solid var(--avatar-line);
  display: grid;
  place-items: center;
  color: var(--avatar-ink);
  transition: transform 0.2s;
}
.listing-card:hover .listing-avatar {
  transform: rotate(-5deg);
}
.listing-card-top .listing-avatar {
  background: var(--avatar-1-bg);
  color: var(--avatar-1-ink);
  border-color: var(--avatar-1-line);
}
.listing-card-second .listing-avatar {
  background: var(--avatar-2-bg);
  border-color: var(--avatar-2-line);
  color: var(--teal-dark);
}
.listing-card-third .listing-avatar {
  background: var(--avatar-3-bg);
  border-color: var(--avatar-3-line);
  color: var(--teal-dark);
}
.listing-avatar svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.listing-content {
  min-width: 0;
}
.listing-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font: 600 18px "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}
.top-badge {
  font: 700 8px "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  color: var(--badge-ink);
  background: var(--badge-bg);
  border-radius: 4px;
  padding: 3px 5px;
}
.listing-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 11px;
  margin-top: 8px;
}
.listing-meta strong {
  color: var(--strong);
  font-weight: 700;
}
.meta-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--dot-ring);
}
.listing-bid {
  justify-self: end;
  color: var(--teal);
  font: 600 22px "Space Grotesk", sans-serif;
}
.listing-card-top .listing-bid,
.listing-card-second .listing-bid,
.listing-card-third .listing-bid {
  color: var(--teal-dark);
}
.empty-state {
  padding: 55px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.site-footer {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 0 0 11px 0;
  background: var(--teal);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s;
  z-index: 5;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid color-mix(in srgb, var(--on-accent) 40%, transparent);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.hidden {
  display: none !important;
}
.success-page h1 {
  font: 700 clamp(40px, 5.5vw, 62px) / 1 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
  margin: 14px 0;
}
.success-page {
  max-width: 620px;
  margin: auto;
  text-align: center;
  padding: 90px 24px;
}
.success-page p {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px auto 26px;
}
.payment-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--coral) 32%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.payment-notice svg {
  flex: 0 0 auto;
  color: var(--coral);
}
.primary-button {
  display: inline-flex;
  padding: 12px 17px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--on-accent);
  font-weight: 700;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--live-ring);
  }
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}
.night-mode {
  color-scheme: dark;
  --paper: #0d1117;
  --surface: #161b22;
  --surface-2: #1f262f;
  --surface-3: #2a323d;
  --hover: #1a2029;
  --ink: #e8edf4;
  --strong: #c3ccd8;
  --muted: #99a4b3;
  --faint: #7b8694;
  --line: #262d38;
  --teal: #2dbaad;
  --teal-dark: #6fd8cd;
  --coral: #ef7f68;
  --coral-wash: #2b1d1a;
  --coral-strong: #f9927c;
  --purple: #9c94f0;
  --live: #34c26f;
  --live-strong: #57d189;
  --live-ring: rgba(52, 194, 111, 0.18);
  --ok-wash: rgba(45, 186, 173, 0.14);
  --scrim: rgba(3, 6, 11, 0.7);
  --on-accent: #06231f;
  --input-border: #2d353f;
  --placeholder: #6d7784;
  --badge-bg: rgba(45, 186, 173, 0.16);
  --badge-ink: #7fded3;
  --tier-1: #16232a;
  --tier-2: #151f26;
  --tier-3: #141c22;
  --avatar-bg: #1f262f;
  --avatar-line: #2d353f;
  --avatar-ink: var(--purple);
  --avatar-1-bg: rgba(45, 186, 173, 0.16);
  --avatar-1-ink: #7fded3;
  --avatar-1-line: rgba(45, 186, 173, 0.34);
  --avatar-2-bg: rgba(45, 186, 173, 0.11);
  --avatar-2-line: rgba(45, 186, 173, 0.24);
  --avatar-3-bg: rgba(45, 186, 173, 0.07);
  --avatar-3-line: rgba(45, 186, 173, 0.18);
  --dot-ring: rgba(45, 186, 173, 0.22);
  --focus-ring: 0 0 0 4px rgba(45, 186, 173, 0.22);
  --brand-glow: 0 6px 14px rgba(0, 0, 0, 0.5);
  --accent-glow: 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  --shadow-input: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.night-mode .site-header,
.night-mode .site-footer {
  background: var(--paper);
}
.night-mode .toast {
  background: var(--surface-3);
  color: var(--ink);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .site-header {
    padding-top: 16px;
  }
  .site-header-inner {
    height: 48px;
  }
  .site-nav {
    gap: 13px;
    font-size: 12px;
  }
  .site-nav a {
    gap: 5px;
  }
  .site-nav a svg {
    width: 15px;
  }
  .page-shell {
    width: 100%;
    padding: 42px 16px 60px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-copy {
    font-size: 15px;
  }
  .claim-form {
    grid-template-columns: 1fr;
  }
  .claim-input-wrap,
  .compact-bid,
  .claim-button {
    height: 54px;
  }
  .claim-button {
    width: 100%;
  }
  .board-section {
    margin-top: 48px;
  }
  .board-heading {
    padding-left: 2px;
    padding-right: 2px;
  }
  .listing-card {
    grid-template-columns: 36px 47px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 11px;
    min-height: 112px;
  }
  .listing-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  .listing-rank {
    font-size: 16px;
  }
  .listing-title {
    font-size: 16px;
  }
  .listing-description {
    font-size: 12px;
  }
  .listing-meta {
    font-size: 10px;
    margin-top: 7px;
  }
  .listing-bid {
    grid-column: 3;
    justify-self: start;
    font-size: 18px;
    margin-top: -2px;
  }
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
}
.site-nav a {
  color: var(--live);
}
.site-nav a:hover {
  color: var(--live-strong);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 7px 9px;
  margin: -7px -9px;
}
.compact-bid {
  padding: 0 6px;
  gap: 2px;
}
.amount-stepper {
  display: grid;
  place-items: center;
  width: 25px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}
.amount-stepper:hover {
  background: var(--surface-2);
}
.amount-stepper:active {
  background: var(--surface-3);
}
.amount-stepper svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}
.compact-bid input {
  min-width: 0;
}
.claim-input-wrap {
  position: relative;
}
.claim-input-wrap.has-error {
  border-color: var(--coral);
}
.field-error {
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  color: var(--coral);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
/* Listing and control refinements */
.site-nav a {
  transition: none;
}
.compact-bid {
  min-width: 124px;
}
.compact-bid input {
  -moz-appearance: textfield;
}
.compact-bid input::-webkit-outer-spin-button,
.compact-bid input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.amount-stepper:hover,
.amount-stepper:active {
  background: transparent;
}
.listing-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
/* Fetched logos carry their own artwork — no tile behind them */
.listing-card .listing-avatar:has(img) {
  background: transparent;
  border-color: transparent;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 0 4px;
  color: var(--muted);
  font-size: 12px;
}
.pagination button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pagination svg {
  width: 17px;
  height: 17px;
}
.claim-form {
  grid-template-columns: minmax(0, 1fr) 124px auto;
}
.listing-card-top .top-badge {
  color: var(--teal-dark);
}
@media (max-width: 720px) {
  .claim-form {
    grid-template-columns: 1fr;
  }
}
