/* The bidding pages (/top and /sponsor): the landing page's tokens and type (BRAND.md), and the
   pieces both pages draw the board with. /sponsor adds maker.css for the make flow. */
:root {
  --ink: #1D1D1F; --secondary: #6E6E73; --tertiary: #86868B;
  --surface: #FFFFFF; --background: #F5F5F7; --band: #FFFFFF;
  --hairline: rgba(0, 0, 0, 0.08); --hairline-strong: rgba(0, 0, 0, 0.12);
  --accent: #0071E3; --accent-hover: #0077ED; --on-accent: #FFFFFF; --accent-soft: rgba(0, 113, 227, 0.10);
  --fill: #F5F5F7; --fill-strong: #E8E8ED; --fill-off: #E8E8ED;
  --field: #FFFFFF; --field-line: rgba(0, 0, 0, 0.16);
  --shadow: rgba(0, 0, 0, 0.08); --shadow-strong: rgba(0, 0, 0, 0.22);
  --nav: rgba(251, 251, 253, 0.8);
  --card-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.08);
  --tile-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
  --die: #FFFFFF; --die-shadow: rgba(0, 0, 0, 0.22); --die-ambient: rgba(0, 0, 0, 0.14);
  --blank: #E3E3E8; --blank-ink: #8E8E93;
  --check-a: #FFFFFF; --check-b: #EDEDF0;
  --problem: #B3261E; --problem-bg: rgba(255, 149, 0, 0.10);
  --spectrum: linear-gradient(100deg, #3D7BFF, #8A5CFF 30%, #FF4F9A 58%, #FF8A3D 82%, #FFB54D);
  --out: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F7; --secondary: #A1A1A6; --tertiary: #6E6E73;
    --surface: #1D1D1F; --background: #000000; --band: #161617;
    --hairline: rgba(255, 255, 255, 0.12); --hairline-strong: rgba(255, 255, 255, 0.16);
    --accent: #2997FF; --accent-hover: #47A6FF; --accent-soft: rgba(41, 151, 255, 0.16);
    --fill: #2C2C2E; --fill-strong: #3A3A3C; --fill-off: #2C2C2E;
    --field: #161617; --field-line: rgba(255, 255, 255, 0.18);
    --shadow: rgba(0, 0, 0, 0.5); --shadow-strong: rgba(0, 0, 0, 0.6);
    --nav: rgba(22, 22, 23, 0.8);
    --card-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.5);
    --tile-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.4);
    --die-shadow: rgba(0, 0, 0, 0.6); --die-ambient: rgba(0, 0, 0, 0.45);
    --blank: #3A3A3C; --blank-ink: #8E8E93;
    --check-a: #2C2C2E; --check-b: #232325;
    --problem: #FF8A80; --problem-bg: rgba(255, 149, 0, 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--background); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1012px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spectrum-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 96px 0 0; }
.band { background: var(--band); padding-bottom: 96px; margin-top: 96px; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--tertiary); letter-spacing: -0.02em; margin: 0 0 6px; }
h1, h2, h3, .lede { text-wrap: balance; }
h2.big { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2vw, 21px); line-height: 1.38; color: var(--secondary); margin: 0; max-width: 640px; }
.fine { font-size: 12px; line-height: 1.45; color: var(--tertiary); margin: 10px 0 0; }

/* Local nav, as on the landing page. */
.localnav {
  position: sticky; top: 0; z-index: 100; height: 52px;
  background: var(--nav); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0.5px 0 var(--hairline-strong);
}
.localnav .wrap { display: flex; align-items: center; height: 100%; gap: 24px; }
.localnav .name { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.localnav .name img { width: 26px; height: 26px; }
.localnav .name:hover { text-decoration: none; }
.localnav nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: -0.01em; }
.localnav nav a.l { color: var(--ink); opacity: 0.8; }
.localnav nav a.l:hover { opacity: 1; text-decoration: none; color: var(--accent); }
.localnav nav a.l[aria-current="page"] { opacity: 1; }
.localnav .btn { min-height: 28px; padding: 4px 12px; font-size: 12px; letter-spacing: -0.01em; }

/* Buttons: pills, the accent only for the main action. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 17px; letter-spacing: -0.022em; text-align: center;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.big { min-height: 50px; padding: 13px 28px; font-size: 17px; }
.btn.sm { min-height: 32px; padding: 5px 16px; font-size: 14px; letter-spacing: -0.01em; }
.btn.alt { background: var(--fill); color: var(--accent); }
.btn.alt:hover { background: var(--fill-strong); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--fill-strong); color: var(--tertiary); cursor: default; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.textbtn { font: inherit; font-size: 15px; color: var(--accent); background: none; border: 0; padding: 6px 4px; cursor: pointer; border-radius: 6px; }
.textbtn:hover { text-decoration: underline; }
.link-more { font-size: 17px; }

/* A sticker on the board: its die-cut art with a soft contact shadow, or, while a person reviews it,
   a grey blank of the same size (BIDDING.md: pending art is never shown). */
.stk { display: block; width: var(--s, 64px); height: var(--s, 64px); object-fit: contain; transform: rotate(var(--r, -3deg));
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.22)) drop-shadow(0 4px 10px rgba(0,0,0,0.12)); user-select: none; -webkit-user-select: none; }
.ph { display: grid; place-items: center; width: var(--s, 64px); height: var(--s, 64px); border-radius: 50%;
  background: var(--blank); color: var(--blank-ink); box-shadow: 0 0 0 3px var(--die), 0 1px 2px 3px var(--die-shadow);
  font-size: 11px; line-height: 1.15; font-weight: 600; letter-spacing: -0.005em; text-align: center; padding: 6px; transform: rotate(var(--r, -3deg)); }
@media (prefers-color-scheme: dark) { .ph { box-shadow: 0 0 0 3px #48484A, 0 1px 2px 3px rgba(0,0,0,0.5); } }

/* "Sponsored": the label on anything paid for (BRAND.md; PLAN.md §3). */
.sp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.33; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  padding: 3px 10px; border-radius: 980px; color: var(--secondary); background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hairline-strong); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } .btn .spin { animation: none; } }

/* The countdown pill (the soft close). */
.ends { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 980px; background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--hairline-strong), 0 4px 14px -6px var(--shadow); font-size: 14px; line-height: 1.3; color: var(--secondary);
  font-variant-numeric: tabular-nums; max-width: 100%; }
.ends b { color: var(--ink); font-weight: 600; }
.ends.soon b { color: var(--accent); }

/* The calm states: bidding not open yet, nothing to show yet, the board out of reach. */
.calm { max-width: 640px; margin: 0 auto; padding: 40px 28px 36px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); text-align: center; }
.calm img.icon { width: 88px; height: 88px; display: block; margin: 0 auto 14px; }
.calm h2 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.calm p { color: var(--secondary); margin: 0 auto; max-width: 480px; }
.calm .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 24px; }

footer { padding: 28px 0 48px; font-size: 12px; color: var(--tertiary); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 0.5px solid var(--hairline-strong); padding-top: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
footer nav a { color: var(--secondary); padding: 0 10px; border-left: 0.5px solid var(--hairline-strong); }
footer nav a:first-child { padding-left: 0; border-left: 0; }
footer .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }

@media (max-width: 760px) {
  .localnav nav a.l { display: none; }
  section { padding-top: 72px; }
  .band { margin-top: 72px; padding-bottom: 72px; }
  .calm { padding: 32px 20px 28px; border-radius: 18px; }
}
