/* SpotForge */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/static/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/static/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
.light {
  color-scheme: light;
  --cobalt: #7291ff;
  --lime: #8acb52;
  --background: #f5f7ff;
  --foreground: #101828;
  --card: #ffffff;
  --primary: var(--cobalt);
  --primary-fg: #101522;
  --live: var(--lime);
  --muted: #eef1f7;
  --muted-fg: #596579;
  --destructive: #e40014;
  --border: #dbe2f0;
  --input: #dbe2f0;
  --ring: #7291ff;
  --radius: 0.875rem;
  --shadow-card: 0 12px 50px rgba(40, 38, 36, 0.08);
  --mark-fg: #101828;
  --fg: var(--foreground);
}

.dark {
  color-scheme: dark;
  --cobalt: #7291ff;
  --lime: #a8e36b;
  --background: #101522;
  --foreground: #f5f7ff;
  --card: #172033;
  --primary: var(--cobalt);
  --primary-fg: #101522;
  --live: var(--lime);
  --muted: #202b42;
  --muted-fg: #aeb9d0;
  --destructive: #ff6568;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.15);
  --ring: #7291ff;
  --shadow-card: 0 12px 50px rgba(0, 0, 0, 0.35);
  --mark-fg: #f5f7ff;
  --fg: var(--foreground);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page {
  flex: 1;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  transition: opacity 0.16s ease;
}
.page.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.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;
}

.muted {
  color: var(--muted-fg);
}
.accent {
  color: var(--primary);
}
.accent-soft {
  color: color-mix(in srgb, var(--primary) 70%, transparent);
}

.spotforge-mark .mark-accent {
  fill: var(--primary);
}

/* ---------------------------------------------------------------- header */

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 22px;
}

.mark {
  width: auto;
  height: 1.25rem;
}
.mark-accent {
  fill: var(--primary);
}
.mark-fg {
  fill: var(--mark-fg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.nav a {
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.15s;
}
.nav a:hover,
.nav a.is-current {
  color: var(--foreground);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, opacity 0.15s;
  user-select: none;
}
.btn:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);
}
.btn:active {
  transform: translateY(1px);
}

.icon-btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  flex: none;
}
.icon-btn:hover {
  background: var(--muted);
}
.icon-btn svg {
  width: 1rem;
  height: 1rem;
}
.icon-sun {
  display: none;
}
.dark .icon-sun {
  display: block;
}
.dark .icon-moon {
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 82%, var(--foreground));
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.25rem;
}
.btn-block {
  width: 100%;
}

.btn-sm {
  height: 1.5rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  border-color: var(--border);
}
.btn-sm:hover {
  background: var(--muted);
}

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

.statsbar {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pill {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  background: var(--muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-wrap: balance;
  transition: color 0.15s;
}
.pill:hover {
  color: var(--foreground);
}
.pill-strong {
  color: var(--foreground);
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  margin-right: 0.375rem;
  vertical-align: -1px;
}
.live-dot .ping,
.live-dot .dot {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--live);
}
.live-dot .ping {
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-dot.small {
  width: 0.375rem;
  height: 0.375rem;
}
.live-dot.small .ping,
.live-dot.small .dot {
  background: var(--primary);
}
.live-count {
  font-weight: 600;
  color: var(--live);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot .ping {
    animation: none;
  }
  .page {
    transition: none;
  }
}

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

.notice {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
.notice-bad {
  background: color-mix(in srgb, var(--destructive) 12%, transparent);
  color: var(--destructive);
}
.notice-good {
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: var(--live);
}

.claim {
  scroll-margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.claim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.5rem;
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: pretty;
}

.claim-kicker {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.claim-value {
  margin: 0.3rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.claim-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  color: var(--muted-fg);
  font-size: 1.9rem;
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.step-btn {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  flex: none;
  font-size: 1rem;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
}
.step-btn:hover {
  background: color-mix(in srgb, var(--primary) 25%, transparent);
}

.bid-field {
  position: relative;
  display: inline-block;
  min-width: 5.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
}
.bid-ghost {
  visibility: hidden;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bid-live {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  padding: 0;
}
.bid-live input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}
.bid-live input::-webkit-inner-spin-button,
.bid-live input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.claim-sub {
  max-width: 28rem;
  margin: 0.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted-fg);
  text-wrap: pretty;
}

/* ------------------------------------------------------- marketplace rail */

.marketplace-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.filter-rail {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}
.filter-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.filter-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.filter-chip,
.period-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--foreground);
}
.period-tabs {
  width: fit-content;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.period-tab {
  min-height: 1.75rem;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0.125rem;
  border-bottom: 2px solid transparent;
}
.period-tab:hover,
.period-tab.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.claim-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.claim-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.input-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  pointer-events: none;
}
.input-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.input {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0.25rem 0.75rem 0.25rem 2.5rem;
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder {
  color: var(--muted-fg);
}
.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);
}

.select-wrap {
  display: block;
  min-width: 0;
}
.category-select {
  padding-left: 0.75rem;
  color: var(--fg);
}

.claim-hint {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-fg);
  text-wrap: pretty;
}

/* --------------------------------------------------------- demo showcase */

.demo-showcase {
  margin: 2rem 0 1.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}
.demo-note,
.demo-disclaimer {
  color: var(--muted-fg);
  font-size: 0.75rem;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.demo-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.demo-card-topline,
.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.demo-badge {
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}
.demo-platform,
.demo-card-footer,
.demo-disclaimer {
  color: var(--muted-fg);
  font-size: 0.75rem;
}
.demo-card-body {
  min-width: 0;
}
.demo-card-body .avatar {
  float: left;
  margin: 0 0.75rem 0.25rem 0;
}
.demo-card h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}
.demo-card-body p {
  min-height: 2.8rem;
  margin: 0.25rem 0 0;
  color: var(--muted-fg);
  font-size: 0.75rem;
  line-height: 1.45;
}
.demo-card-footer span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-visit {
  align-self: flex-start;
  color: var(--primary);
}
.demo-disclaimer {
  margin: 0.75rem 0 0;
}

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

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.today-preview {
  margin: 2rem 0 1.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.section-kicker {
  margin: 0 0 0.15rem;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.text-link,
.spotlight-details {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.text-link:hover,
.spotlight-details:hover {
  color: var(--foreground);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.spotlight-card {
  min-width: 0;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.spotlight-1 {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 32%, transparent), var(--shadow-card);
}
.spotlight-2 {
  border-color: color-mix(in srgb, var(--lime) 65%, var(--border));
}
.spotlight-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.spotlight-rank {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}
.spotlight-price {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.spotlight-link {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.spotlight-link strong {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spotlight-description {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: var(--muted-fg);
  font-size: 0.75rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.board-spotlight {
  margin-top: 0;
}
.avatar-lg {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.85rem;
}
.spotlight-category {
  color: var(--muted-fg);
  font-size: 0.75rem;
}
.spotlight-details {
  margin-top: auto;
}
.preview-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  color: var(--muted-fg);
  font-size: 0.85rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
  padding: 0.875rem 1rem 0.25rem;
}
.dark .card {
  border: 1px solid var(--border);
}

.card-head {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini-list li + li {
  border-top: 1px solid var(--border);
}
.mini-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.75rem;
}
.mini-list a:hover .mini-name {
  color: var(--primary);
}
.mini-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.mini-meta {
  flex: none;
  color: var(--muted-fg);
}
.mini-empty {
  padding: 0.5rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.card-body[data-collapsible].is-collapsed .mini-list {
  max-height: 4rem;
  overflow: hidden;
}
.fade {
  display: none;
}
.card-body[data-collapsible].is-collapsed .fade {
  display: flex;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2.75rem;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.25rem;
  background: linear-gradient(
    to top,
    var(--card) 20%,
    color-mix(in srgb, var(--card) 80%, transparent),
    transparent
  );
}
.card-body[data-collapsible].is-collapsed .show-more {
  position: relative;
  z-index: 1;
  background: var(--card);
}

/* --------------------------------------------------------------- avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  user-select: none;
}
.avatar-xs {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
}

/* ----------------------------------------------------------- leaderboard */

.board {
  scroll-margin-top: 1.5rem;
}

.row {
  position: relative;
  margin: 0.375rem 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 0 0.625rem;
}
.rank-card {
  overflow: visible;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.rank-card:hover {
  transform: translateY(-1px);
  background: var(--card);
}
.row-1 {
  border-color: var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 17%, var(--card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent);
}
.row-top3 {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.row-top10 {
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}
.row:not(.row-1):not(.row-top3):not(.row-top10) {
  border-color: var(--border);
}

.row-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.row-link:hover {
  color: var(--primary);
}

.row-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 2.5rem;
  flex: none;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 1px 0.375rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rank-hot {
  background: var(--primary);
  color: var(--primary-fg);
}

.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.row-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
}
.row-price {
  flex: none;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.row-desc {
  margin: 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--muted-fg) 70%, transparent);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.375rem;
  margin: 0.125rem 0 0;
  font-size: 11px;
}
.row-meta .muted {
  color: color-mix(in srgb, var(--muted-fg) 70%, transparent);
}
.clicks {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--foreground);
}

.claim-chip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  background: var(--primary);
  color: var(--primary-fg);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.details-chip {
  position: absolute;
  right: 0.75rem;
  top: 0;
  z-index: 2;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, color 0.15s;
}
.details-chip:hover {
  color: var(--fg);
}
.row:hover .claim-chip,
.row:focus-within .claim-chip,
.row:hover .details-chip,
.row:focus-within .details-chip {
  opacity: 1;
  pointer-events: auto;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rank-list,
.history-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.rank-list li + li,
.history-list li + li {
  border-top: 1px solid var(--border);
}
.rank-list a,
.history-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.8125rem;
}
.rank-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-copy {
  margin: 0.35rem 0 0;
  color: var(--muted-fg);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.tag {
  display: inline-flex;
  margin-left: 0.35rem;
  border-radius: 999px;
  padding: 0.0625rem 0.4rem;
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: var(--live);
  font-size: 0.6875rem;
  font-weight: 700;
}

.empty-board {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted-fg);
}

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

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-fg);
}
.page-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}
.page-btn.is-current {
  background: var(--primary);
  color: var(--primary-fg);
}
.page-gap {
  padding: 0 0.25rem;
  color: var(--muted-fg);
}

.board-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.footer-line {
  margin: 0 0 0.375rem;
}
.footer-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-money {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.footer-links a:hover {
  color: var(--foreground);
}
.footer-links {
  margin: 0;
}

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

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.prose h1,
.prose h2 {
  margin: 0 0 1rem;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}
.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}
.prose p,
.prose li {
  line-height: 1.7;
  text-wrap: pretty;
}
.prose .lead {
  font-size: 1.0625rem;
  color: var(--muted-fg);
}
.prose ul {
  margin: 0;
  padding-left: 1.125rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
}

.content-body {
  white-space: pre-line;
}

.media-preview {
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--card);
}

.media-preview iframe,
.media-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.media-preview video {
  object-fit: contain;
}

.media-actions {
  margin: 0;
  padding: .8rem 1rem;
}

.media-disclosure summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.media-disclosure iframe {
  margin-top: .25rem;
}

.content-form {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--input);
}

.content-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.content-form-head h4 {
  margin: 0;
}

.content-textarea {
  min-height: 9rem;
  resize: vertical;
  font: inherit;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-radius: 1rem;
  background: var(--muted);
  padding: 0.875rem 1rem;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* -------------------------------------------------------------- checkout */

.checkout {
  max-width: 30rem;
  margin: 1rem auto 0;
}
.checkout-head {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}
.checkout-sub {
  margin: 0.375rem 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.receipt {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.receipt-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.receipt-who {
  min-width: 0;
}
.receipt-name {
  margin: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt-url {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt-lines {
  margin: 0.875rem 0 0;
}
.receipt-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.receipt-lines dt {
  color: var(--muted-fg);
}
.receipt-lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.receipt-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem !important;
  border-top: 1px solid var(--border);
  font-size: 1rem !important;
}
.receipt-total dt {
  color: var(--foreground) !important;
  font-weight: 600;
}
.receipt-total dd {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.checkout-form {
  margin-top: 1rem;
}
.checkout-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-fg);
  text-wrap: pretty;
}
.checkout-back {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}
.checkout-back a {
  color: var(--muted-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- admin */

.admin-auth {
  max-width: 26rem;
  margin: 3rem auto;
  text-align: center;
}
.admin-auth h2,
.admin-head h2 {
  margin: 0;
  font-size: 1.75rem;
}
.admin-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}
.admin-form .btn {
  width: 100%;
}
.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.admin-head .lead {
  margin: 0.35rem 0 0;
}
.admin-stats {
  margin-bottom: 1rem;
}
.admin-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.admin-panel h3 {
  margin: 0;
  font-size: 1rem;
}
.settings-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1rem;
}
.settings-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 700;
}
.settings-form .input {
  width: 10rem;
  padding-left: 0.75rem;
}
.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}
.admin-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}
.admin-table th {
  padding: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table td {
  max-width: 16rem;
  padding: 0.65rem 0.5rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table a {
  color: var(--primary);
}

/* ------------------------------------------------------------- responsive */

@media (min-width: 768px) {
  .header-row,
  .nav {
    gap: 1.25rem;
  }
  .claim-head {
    font-size: 40px;
  }
  .claim-value {
    font-size: 1.15rem;
  }
  .claim-row {
    flex-direction: row;
    align-items: center;
  }
  .claim-row .btn-primary {
    width: auto;
    flex: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card {
    padding: 1rem 1.25rem 0.25rem;
  }
  .card-body[data-collapsible].is-collapsed .mini-list {
    max-height: none;
  }
  .card-body[data-collapsible].is-collapsed .fade {
    display: none;
  }
  .row {
    margin: 0.75rem 0;
    border-radius: 1rem;
    padding: 0 0.875rem;
  }
  .row-link {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  .row-lead {
    flex-direction: row;
    width: auto;
    gap: 0.75rem;
  }
  .rank {
    min-width: 2.5rem;
    font-size: 1rem;
    padding: 0.125rem 0.5rem;
  }
  .avatar {
    width: 3.5rem;
    height: 3.5rem;
  }
  .avatar-xs {
    width: 1.25rem;
    height: 1.25rem;
  }
  .row-name,
  .row-price {
    font-size: 1rem;
  }
  .row-desc,
  .row-meta {
    font-size: 0.875rem;
  }
  .row-meta {
    font-size: 0.75rem;
  }
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .prose h1,
  .prose h2 {
    font-size: 40px;
  }
}
