:root {
  --ink: #1b1612;
  --ink-2: #2a231d;
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --line: #e4d9c8;
  --muted: #7a6f64;
  --sun: #d9480f;
  --sun-hi: #ff7a2e;
  --sun-soft: #fde7d9;
  --ok: #2b8a3e;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font: 800 18px/1 var(--display); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--sun); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: #fff; }
.btn-sun:hover { background: #c23d0b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible, .nav a:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun-hi); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* season band */
.season { background: var(--ink); color: var(--paper); }
.season-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 12px 0; font-size: 14px; }
.season b { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.season .clock { color: var(--sun-hi); font-weight: 700; }
.season .dim { color: #b9ab9a; }

/* layout */
main { padding: 28px 0 56px; outline: none; }
.home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: 24px; }
.lead { color: var(--muted); margin: 10px 0 0; max-width: 56ch; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); }

/* throne (#1) */
.throne { position: relative; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 26px 26px 24px; overflow: hidden; }
.throne .crown { position: absolute; right: -6px; top: -34px; font: 800 190px/1 var(--display); color: var(--sun); opacity: .95; letter-spacing: -.04em; pointer-events: none; }
.throne .crown.vacant { color: transparent; -webkit-text-stroke: 2px #4a3f35; }
.throne-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-hi); }
.throne h3 { font-size: clamp(26px, 4.4vw, 38px); margin: 10px 0 6px; max-width: 13ch; position: relative; }
.throne h3 a { text-decoration: none; }
.throne h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.throne .meta { color: #cdbfae; font-size: 15px; position: relative; }
.throne .desc { color: #e8dccb; margin: 10px 0 0; max-width: 46ch; position: relative; }
.throne-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; position: relative; }
.throne-total { font: 800 30px/1 var(--display); }
.throne-total small { display: block; font: 500 12px/1.4 var(--body); color: #b9ab9a; letter-spacing: .04em; margin-top: 4px; }
.throne .btn-ghost { color: var(--paper); border-color: #4a3f35; }
.throne .btn-ghost:hover { background: var(--ink-2); }
.throne-foot .spacer { flex: 1; }

/* ranking rows */
.board { list-style: none; margin: 14px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row .pos { font: 800 26px/1 var(--display); color: var(--muted); text-align: center; }
.row:nth-child(-n+2) .pos { color: var(--ink); }
.row .name { font-weight: 700; font-size: 17px; text-decoration: none; }
.row .name:hover { text-decoration: underline; }
.row .meta { color: var(--muted); font-size: 14px; }
.row .right { text-align: right; display: grid; justify-items: end; gap: 6px; }
.row .total { font-weight: 700; }
.row .pass { font-size: 13px; font-weight: 700; color: var(--sun); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty-row { padding: 18px 4px; color: var(--muted); border-bottom: 1px dashed var(--line); }

/* categories */
.cats { position: sticky; top: 84px; }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.cat:hover .cat-name { color: var(--sun); }
.cat-name { font-weight: 700; grid-column: 1; grid-row: 1; }
.cat-lead { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-lead.vacant { font-style: italic; }
.cat-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 700; color: var(--sun); white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.cat-grid .cat { border-top: 0; }

/* rules */
.rules { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding-top: 32px; border-top: 2px solid var(--ink); }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 18px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.rules li::before { content: counter(r); font: 800 34px/1 var(--display); color: var(--sun); }
.rules li b { display: block; font-size: 17px; }
.rules li span { color: var(--muted); }
.faq { margin-top: 36px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* hall of fame */
.hall-season { padding: 26px 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.hall-season h2::first-letter { text-transform: uppercase; }
.hall-season .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.hall-city { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.hall-city .big { font: 800 44px/1 var(--display); color: var(--sun); }
.hall-city .who { font: 800 26px/1.1 var(--display); }
.hall-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 28px; }
.hall-cats li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hall-cats li span { color: var(--muted); display: block; font-size: 13px; }
.notice { background: var(--paper-2); border-radius: var(--r); padding: 22px; color: var(--ink); }
.notice p { margin: 6px 0 0; color: var(--muted); }

/* dev outbox */
.outbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.outbox ul { list-style: none; margin: 0; padding: 0; }
.outbox li button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.outbox li button:hover, .outbox li button[aria-current="true"] { background: var(--paper-2); }
.outbox .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); }
.outbox iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

/* sheet (dialog) */
.sheet { width: min(540px, 100% - 24px); max-height: calc(100dvh - 32px); border: 0; border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(27, 22, 18, .35); }
.sheet::backdrop { background: rgba(27, 22, 18, .55); }
.sheet-in { padding: 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.sheet-head h2 { font-size: 26px; }
.x { border: 0; background: var(--paper-2); width: 40px; height: 40px; border-radius: 10px; font-size: 20px; cursor: pointer; flex: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; font: inherit; color: var(--ink); }
.field textarea { min-height: 70px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.money input { padding-left: 44px; font: 800 24px var(--display); min-height: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 38px; }
.chip:hover { border-color: var(--ink); }
.preview { background: var(--sun-soft); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 4px 0 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); margin: 6px 0 16px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sun); }
.err { color: #b42318; font-weight: 600; font-size: 14px; min-height: 20px; margin: 0 0 8px; }
.who-box { background: var(--paper-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.who-box b { display: block; font-size: 17px; }
.who-box span { color: var(--muted); font-size: 14px; }
.pix { display: grid; justify-items: center; gap: 14px; text-align: center; }
.qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.qr img { width: 200px; height: 200px; }
.qr.mock { background: repeating-linear-gradient(45deg, #fff 0 10px, var(--paper-2) 10px 20px); font-weight: 700; color: var(--muted); padding: 20px; }
.copy { display: flex; width: 100%; gap: 8px; }
.copy input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 13px ui-monospace, monospace; background: #fff; }
.wait { color: var(--muted); font-size: 14px; }
.wait .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 6px; animation: pulse 1.2s infinite; }
.mockbar { width: 100%; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }
.done { text-align: center; padding: 10px 0; }
.done .big { font: 800 84px/1 var(--display); color: var(--sun); }
.done p { color: var(--muted); }
@keyframes pulse { 50% { opacity: .25; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-in { padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.foot-in p { margin: 0 0 10px; max-width: 80ch; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { font-weight: 600; }

.skeleton { color: var(--muted); padding: 40px 0; }

@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 36px; }
  .cats { position: static; }
  .rules, .hall-season, .outbox { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .throne { padding: 22px 18px 20px; }
  .throne .crown { font-size: 140px; top: -22px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .row .pos { font-size: 22px; }
  .two { grid-template-columns: 1fr; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .top .mnav { display: flex; }
}
.mnav { display: none; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.mnav a { flex: none; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
.mnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


/* ===== v2 (outbid-style mechanics): claim hero, live feed, campaigns, business page ===== */
.side { display: grid; gap: 34px; align-content: start; }
.side .cats { position: static; }

/* claim hero */
.claim { padding: 6px 0 26px; margin-bottom: 26px; border-bottom: 2px solid var(--ink); }
.claim-h { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--sun-soft); border-radius: 14px; padding: 4px; }
.st-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: 800 24px/1 var(--display); cursor: pointer; }
.st-btn:hover { background: var(--paper-2); }
.st-cur { font: 800 .62em/1 var(--display); color: var(--sun); padding-left: 8px; }
.st-in { width: 3ch; min-width: 2ch; border: 0; background: transparent; font: 800 1em/1 var(--display); color: var(--sun); padding: 0 4px; margin-right: 6px; }
.st-in:focus { outline: none; }
.stepper:focus-within { outline: 3px solid var(--sun-hi); outline-offset: 2px; }
.claim-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.claim-cat { flex: 1 1 220px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; color: var(--ink); }
.claim-go { min-height: 48px; padding: 0 22px; }
.claim-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; min-height: 22px; }
.board-head { margin-top: 4px; }

/* rows: take button */
.row .who { min-width: 0; }
.take { border: 1px solid var(--sun); color: var(--sun); background: #fff; border-radius: 999px; padding: 6px 12px; font: 700 13px var(--body); cursor: pointer; white-space: nowrap; }
.take:hover { background: var(--sun); color: #fff; }
.offer-line, .throne .offer { font-size: 14px; margin-top: 4px; color: var(--ink); }
.throne .offer { color: var(--sun-hi); font-weight: 600; margin: 10px 0 0; position: relative; }

/* live */
.season .live { color: #e8dccb; display: inline-flex; align-items: center; gap: 8px; }
.season .live i, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; display: inline-block; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: ping 2s infinite; }
.live-dot { margin-right: 6px; vertical-align: 1px; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.feed { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.feed a { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a:hover { color: var(--sun); }
.feed .amt { font-weight: 700; color: var(--sun); }
.feed small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* campaigns */
.camp-card { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; margin-bottom: 10px; }
.camp-card.upcoming { background: var(--paper-2); color: var(--ink); }
.camp-card:hover .camp-name { color: var(--sun-hi); }
.camp-card.upcoming:hover .camp-name { color: var(--sun); }
.camp-name { font: 800 19px/1.2 var(--display); }
.camp-when { font-size: 13px; color: #cdbfae; }
.camp-card.upcoming .camp-when { color: var(--muted); }
.camp-when b { color: var(--sun-hi); }
.camp-lead { font-size: 14px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-head { margin-bottom: 10px; }
.camp-head b { color: var(--sun); }
.camp-rule { margin: 0 0 6px; font-weight: 600; }
.camp-box { background: var(--sun-soft); border-radius: 12px; padding: 12px 14px 2px; margin-bottom: 14px; }

/* business page */
.detail h1 { margin-top: 2px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rank-card { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.rank-card .eyebrow { color: #b9ab9a; margin: 0; }
.rank-card b { font: 800 44px/1 var(--display); color: var(--sun-hi); }
.rank-card small { color: #cdbfae; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 18px; margin: 22px 0 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.detail .faq .btn { margin-top: 10px; }
.ssr { padding: 20px 0; }

.since { margin: 0 0 10px; }

@media (max-width: 720px) {
  .claim-h { font-size: 28px; }
  .st-btn { width: 40px; height: 40px; }
  .claim-go { flex: 1 1 100%; }
  .row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .take { padding: 5px 10px; font-size: 12px; }
  .rank-card b { font-size: 36px; }
}
