/* काफल पाको — clean leaderboard look: warm cream background, coral primary, soft warm-grey borders,
   pill controls and large rounded rows. Poppins covers both Latin and Devanagari. */
:root {
  --bg: #fffdfa;
  --card: #fffdfa;
  --ink: #282624;
  --muted: #67625d;
  --soft: #f6f3ef;          /* muted surfaces: pill bars, hovers */
  --line: #e6e0da;
  --primary: #e57255;       /* coral */
  --primary-ink: #fff;
  --primary-soft: #fbe9e3;  /* #1 row, highlights */
  --primary-softer: #fdf3ef;
  --live: #009f31;
  --bad: #e40014;
  --warn: #b25e00;
  --good-ink: #1f7a45;
  --radius: 14px;
  --row-radius: 28px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Light is the default for everyone; dark only when the visitor taps the 🌙 button (like outbid.lol). */
:root[data-theme="dark"] {
  --bg: #1a1512;
  --card: #231e1b;
  --ink: #f7f5f1;
  --muted: #aba39b;
  --soft: #2d2824;
  --line: #ffffff1a;
  --primary: #e57255;
  --primary-soft: #3a241d;
  --primary-softer: #2b201c;
  --live: #50c05f;
  --bad: #ff6568;
  --warn: #f0b44c;
  --good-ink: #72d4a2;
  color-scheme: dark;
}
.theme-toggle { background: none; border: 0; cursor: pointer; font-size: 1.15rem; padding: 4px; line-height: 1; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; object-fit: cover; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--primary); }
.bad { color: var(--bad); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* ---------------------------------------------------------------- header */
.demo { background: var(--primary-soft); color: var(--ink); text-align: center; font-size: .82rem; padding: 6px 16px; }
.top { background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { font-weight: 600; font-size: 1.45rem; color: var(--ink); letter-spacing: -.03em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.live-pill b { color: var(--live); font-weight: 600; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.top nav a.btn { color: var(--primary-ink); }
.top nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }

/* district pill bar (like a category bar) */
.pillbar-wrap { background: var(--bg); position: sticky; top: 68px; z-index: 9; padding-bottom: 8px; }
.pillbar { display: flex; gap: 4px; overflow-x: auto; background: var(--soft); border-radius: 999px; padding: 6px; scrollbar-width: none; }
.pillbar::-webkit-scrollbar { display: none; }
.pillbar a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .88rem; }
.pillbar a:hover { background: var(--bg); text-decoration: none; }
.pillbar a.on { background: var(--primary); color: var(--primary-ink); }

.foot { color: var(--muted); font-size: .88rem; padding-top: 36px; padding-bottom: 40px; text-align: center; border-top: 1px solid var(--line); margin-top: 48px; }
.foot .love { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- buttons & controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: var(--primary-ink); border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.big { font-size: 1.02rem; padding: 14px 28px; }
.btn.small { padding: 6px 14px; font-size: .85rem; }
.btn.full { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.wa { background: #1fa855; }
.btn.danger { background: var(--bad); }
.linkish { background: none; border: 0; font: inherit; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; }
.linkish.muted { color: var(--muted); font-size: .88rem; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.tabs a { padding: 6px 14px; border-radius: 999px; color: var(--ink); font-size: .88rem; font-weight: 600; letter-spacing: -.01em; }
.tabs a.on { background: var(--primary); color: var(--primary-ink); }
.tabs a:hover { text-decoration: none; }

/* ---------------------------------------------------------------- hero ("Claim #1 for ₹X") */
.hero { text-align: center; padding: 28px 0 8px; }
.hero.compact { padding-top: 20px; }
.hero > .tabs { margin-bottom: 10px; }
.reset-note { color: var(--muted); font-size: .88rem; margin: 0 0 22px; }
.reset-note b { font-weight: 500; font-variant-numeric: tabular-nums; }
.claim-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3em; margin: 0 0 26px; }
.claim-title .price { color: var(--primary); display: inline-flex; align-items: center; gap: .25em; }
.claim-title .price button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--primary-soft); color: var(--primary);
  font: 600 1.1rem/1 var(--font); cursor: pointer; vertical-align: middle;
}
.claim-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; max-width: 1120px; margin: 0 auto; }
.claim-row select, .claim-row input { height: 56px; border-radius: 16px; font-size: 1rem; padding: 0 18px; }
.claim-row .btn { height: 56px; padding: 0 30px; font-size: 1rem; border-radius: 18px; }
.eyebrow { color: var(--muted); font-weight: 500; font-size: .9rem; margin: 0 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.hero .lead { max-width: 640px; margin: 0 auto 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 14px; }
.searchbar { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 6px; }
.searchbar input { flex: 1; border-radius: 999px; padding-left: 18px; }
.stats { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.stats div { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; min-width: 110px; }
.stats b { display: block; font-size: 1.15rem; font-weight: 600; }
.stats span { color: var(--muted); font-size: .8rem; }
.countdown { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.countdown b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.war-badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; margin: 0 0 14px; font-size: .9rem; }
.fineprint { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.crumbs { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* ---------------------------------------------------------------- page layout: list + sidebar */
section { margin-top: 28px; }
.layout { display: grid; gap: 32px; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.layout > aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 960px) { .layout > aside { position: sticky; top: 140px; } }
.layout > section, .layout > aside > section { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2, .section-head h1 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin: 0 0 12px; }

/* ---------------------------------------------------------------- leaderboard rows */
.board { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid; grid-template-columns: 56px 88px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 26px 18px 18px; border-radius: var(--row-radius); color: var(--ink); border: 1px solid var(--line);
  transition: background .15s, border-color .15s;
}
.row:hover { background: var(--soft); text-decoration: none; }
.row.top1 { background: var(--primary-soft); border-color: transparent; }
.row.top2, .row.top3 { background: var(--primary-softer); border-color: transparent; }
.rank { font-weight: 600; font-size: 1.35rem; color: var(--primary); text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rank .t { font-size: 1rem; }
.avatar { width: 88px; height: 88px; border-radius: 20px; background: var(--soft); }
.who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who strong { font-size: 1.1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .tag { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .place { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-pill { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--primary); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 3px; }
.amt { font-weight: 600; font-size: 1.2rem; color: var(--primary); align-self: start; padding-top: 4px; }
.wins { font-size: .78rem; font-weight: 600; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); margin: 0; border: 1px dashed var(--line); border-radius: var(--row-radius); }

/* compact sidebar ranking list */
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-list a { display: grid; grid-template-columns: 30px 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; color: var(--ink); font-size: .9rem; }
.side-list a:hover { background: var(--soft); text-decoration: none; }
.side-list .r { color: var(--muted); font-weight: 600; font-size: .85rem; }
.side-list img { width: 40px; height: 40px; border-radius: 12px; }
.side-list .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-list .v { color: var(--primary); font-weight: 600; }
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.side-title h2 { margin: 0; font-size: 1.05rem; }
.side-title a { font-size: .85rem; }

.feed { display: flex; flex-direction: column; gap: 12px; }
.feed a { display: flex; gap: 10px; color: var(--ink); font-size: .88rem; line-height: 1.35; }
.feed a:hover { text-decoration: none; }
.feed img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.feed small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- tiles (districts / blocks) */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: var(--ink); position: relative; border: 1px solid var(--line); border-radius: 22px; transition: background .15s; }
.tile:hover { background: var(--soft); text-decoration: none; }
.tile-emoji { position: absolute; right: 14px; top: 12px; font-size: 1.5rem; line-height: 1; }
.tile-name b { font-size: 1.05rem; font-weight: 600; }
.tile-tag { font-size: .8rem; color: var(--muted); margin-top: -4px; }
.tile-first { display: flex; gap: 8px; align-items: center; font-size: .88rem; min-height: 40px; }
.tile-first img { width: 40px; height: 40px; border-radius: 12px; }
.tile-first small { display: block; color: var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------- cards & forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-top: 20px; }
.card.warn { background: var(--primary-softer); border-color: var(--primary-soft); }
.notice { background: var(--soft); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.notice.ok { background: #e9f6ee; color: #135c36; }
.notice.big { font-size: 1.1rem; font-weight: 500; }
:root[data-theme="dark"] .notice.ok { background: #183526; color: #a8e6c1; }

.share { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
aside .share, .profile .share, .card .share { justify-content: flex-start; }
.share input { flex: 1; min-width: 0; }

.form { display: flex; flex-direction: column; gap: 14px; max-width: 580px; }
form.card.form { margin: 20px auto 0; }
form.narrow { max-width: 380px; margin: 40px auto 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: .92rem; }
input, select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.two { display: grid; gap: 14px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.check { flex-direction: row; gap: 10px; font-weight: 400; font-size: .88rem; align-items: flex-start; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--primary); }

.photo-pick {
  align-self: center; position: relative; width: 170px; height: 170px; border-radius: 28px;
  border: 2px dashed var(--primary); background: var(--primary-softer); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600;
}
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 35%; }
.photo-hint small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary-soft); color: var(--primary); font-size: 1.3rem; cursor: pointer; flex: none; }
.stepper .cur { font-size: 1.6rem; font-weight: 600; color: var(--primary); }
.stepper input { font-size: 1.7rem; font-weight: 600; text-align: center; color: var(--primary); letter-spacing: -.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: .86rem; cursor: pointer; }
.chips button:hover { background: var(--soft); }
.chips .target { border-color: var(--primary-soft); background: var(--primary-softer); }
.chips small { font-weight: 600; color: var(--primary); }
.preview { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.preview.good { color: var(--good-ink); }
.preview.bad { color: var(--bad); }
.status { margin: 0; min-height: 1.5em; color: var(--bad); font-size: .92rem; }
.status.ok { color: var(--good-ink); }
.status.warn { color: var(--warn); }
.status small { color: var(--muted); font-weight: 400; }
.pay-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------------------------------------------------------------- person profile */
.profile { display: grid; gap: 24px; }
@media (min-width: 760px) { .profile { grid-template-columns: 300px 1fr; } }
.profile-photo { width: 100%; max-width: 300px; aspect-ratio: 1; height: auto; border-radius: 32px; margin: 0 auto; }
.big-title { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 3px 14px; margin-bottom: 8px; }
.rankcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.rankcards.four { grid-template-columns: repeat(4, 1fr); }
.rankcards > * { border: 1px solid var(--line); border-radius: 18px; padding: 10px; text-align: center; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.rankcards > a:hover { background: var(--soft); text-decoration: none; }
.rankcards b { font-size: 1.5rem; color: var(--primary); font-weight: 600; line-height: 1.1; }
.rankcards span { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankcards small { color: var(--muted); font-size: .72rem; }
.total { font-size: 1.02rem; }
.gap { background: var(--primary-softer); border-color: var(--primary-soft); margin: 14px 0; padding: 16px; }
.gap p { margin: 0 0 8px; }
.gap .countdown { margin-top: 10px; }
.progress { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.gap-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.supporters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.top-supporters { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.top-supporters li { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 7px 14px; }
.thanks { background: #e9f6ee; border-color: #bfe5cd; }
:root[data-theme="dark"] .thanks { background: #183526; border-color: #2c6446; }

/* ---------------------------------------------------------------- discovery widgets */
.ticker { overflow: hidden; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 36px; padding: 6px 0; animation: ticker 60s linear infinite; }
.ticker-track span b { color: var(--primary); font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how div { border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.how span { font-size: 1.4rem; }
.how b { font-weight: 600; }
.how small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.champion { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--primary-softer); border-color: var(--primary-soft); }
.champion img { width: 72px; height: 72px; border-radius: 18px; }
.champion > div { flex: 1; min-width: 180px; }
.champion h2, .champion p { margin: 0; }
.champion .eyebrow { color: var(--primary); font-weight: 600; }
.minis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.mini { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); min-width: 0; }
.mini:hover { background: var(--soft); text-decoration: none; }
.mini img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 4px; }
.mini b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mini small { color: var(--muted); font-size: .74rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-extra { font-size: .78rem; font-weight: 600; color: var(--primary); }
.mini-cta { margin-top: 6px; font-size: .76rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; }
.war { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.war a { display: grid; grid-template-columns: 28px minmax(80px, 120px) 1fr auto; gap: 8px; align-items: center; color: var(--ink); border-radius: 12px; padding: 6px 8px; font-size: .88rem; }
.war a:hover { background: var(--soft); text-decoration: none; }
.war li.me a { background: var(--primary-soft); }
.war-rank { font-weight: 600; text-align: center; color: var(--muted); }
.war-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.war-bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.war-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.war-amt { font-weight: 600; color: var(--primary); font-size: .85rem; }
.podium { display: none; }   /* rows already highlight the top 3 */
.chip { border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 5px 13px; font-size: .9rem; }
.chip:hover { background: var(--soft); text-decoration: none; }
.pill { display: inline-block; font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.prose { max-width: 780px; margin-left: auto; margin-right: auto; }
.english { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: .9rem; }
.english summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.admin-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.admin-row img { width: 96px; height: 96px; border-radius: 16px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------------- about page */
.about { max-width: 760px; margin: 28px auto 0; }
.about h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .4em; }
.about h2 { font-size: 1.15rem; margin-top: 1.6em; }
.about-lead { font-size: 1.1rem; }
.about-lead b { font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 8px; }
.stat-grid div { background: var(--soft); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat-grid b { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 2px; }
.stat-grid b em { font-style: normal; color: var(--primary); }
.stat-grid b small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.stat-grid .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; }
.stat-grid span { color: var(--muted); font-size: .82rem; }
.about-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.maker { display: flex; gap: 18px; align-items: flex-start; background: var(--primary-softer); border-color: var(--primary-soft); }
.maker p { margin: 0 0 10px; }
.maker-avatar { flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; }
@media (max-width: 560px) { .maker { flex-direction: column; } }

/* ---------------------------------------------------------------- pricing & receipts */
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.price-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); padding: 8px 10px; }
.price-table td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 12px 10px; }
.price-table td small { color: var(--muted); }
.price-table tfoot td { border-bottom: 0; }
.receipt { max-width: 760px; margin: 28px auto 0; }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.receipt-head h1 { font-size: 1.8rem; margin: 0; }
.receipt-no { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: baseline; font-size: .88rem; }
.receipt-no small { color: var(--muted); }
.receipt-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 4px; }
.receipt-parties div { display: flex; flex-direction: column; font-size: .9rem; }
.receipt-parties small { color: var(--muted); }
@media (max-width: 560px) { .receipt-parties { grid-template-columns: 1fr; } }
@media print {
  .top, .pillbar-wrap, .foot, .bottom-nav, .demo, .receipt .btn { display: none !important; }
  .receipt { border: 0; margin: 0; }
}

/* ---------------------------------------------------------------- battles */
.live-dot { color: #fff; background: var(--primary); border-radius: 999px; padding: 1px 8px; font-weight: 600; font-size: .72rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.vs-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.vs-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.vs-card:hover { background: var(--soft); text-decoration: none; }
.vs-side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.vs-side img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 4px; }
.vs-side.won img { outline: 3px solid var(--primary); }
.vs-side b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vs-side small { color: var(--primary); font-weight: 600; }
.vs-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78rem; color: var(--muted); text-align: center; }
.vs { font-weight: 600; font-size: 1.4rem; color: var(--primary); }
.tug { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.tug span { display: block; height: 100%; width: var(--a); background: var(--primary); }
.tug.big { height: 14px; margin: 16px 0; }
.battle .eyebrow { font-size: 1rem; }
.arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; margin-top: 12px; }
.big-vs { font-size: clamp(1.8rem, 6vw, 3rem); align-self: center; margin-top: -120px; }
.fighter { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: 16px; min-width: 0; position: relative; }
.fighter.won { background: var(--primary-soft); border-color: transparent; }
.fighter img { width: 100%; max-width: 240px; aspect-ratio: 1; height: auto; border-radius: 22px; margin: 0 auto; }
.fighter h2 { margin: 10px 0 0; overflow-wrap: anywhere; }
.fighter .place { margin: 0; font-size: .82rem; }
.fighter .score { font-size: 1.9rem; font-weight: 600; color: var(--primary); margin: 4px 0 8px; }
.fighter .form { text-align: left; gap: 10px; }
.fighter .stepper button { width: 34px; height: 34px; font-size: 1.1rem; }
.fighter .stepper input { font-size: 1.2rem; padding: 6px; }
.crown { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-weight: 600; border-radius: 999px; padding: 2px 12px; font-size: .8rem; white-space: nowrap; }
.challenge { background: var(--primary-softer); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.challenge .share { justify-content: flex-start; margin: 6px 0 0; }
.rules { max-width: 640px; margin: 24px auto 0; }

/* ---------------------------------------------------------------- celebration confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti span { position: absolute; top: -40px; font-size: 26px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------------------------------------------------------------- phones */
.sticky-cta, .bottom-nav { display: none; }
@media (max-width: 760px) {
  .top nav .nav-hide { display: none; }
  .live-pill { display: none; }
  .claim-row { grid-template-columns: 1fr 1fr; }
  .claim-row .btn { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; }
  .rankcards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  body:has(.sticky-cta) { padding-bottom: 136px; }
  .top .wrap { height: 58px; }
  .pillbar-wrap { top: 58px; }
  .logo { font-size: 1.2rem; }
  .row { grid-template-columns: 34px 56px 1fr auto; gap: 10px; padding: 12px 14px 12px 8px; border-radius: 22px; }
  .avatar { width: 56px; height: 56px; border-radius: 14px; }
  .rank { font-size: 1.05rem; }
  .who strong { font-size: 1rem; }
  .amt { font-size: 1rem; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bg); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; color: var(--muted); font-weight: 500; padding: 4px 0; }
  .bottom-nav a span { font-size: 1.25rem; line-height: 1.25; }
  .bottom-nav a.on { color: var(--primary); }
  .bottom-nav a.plus span { background: var(--primary); border-radius: 14px; padding: 2px 12px; margin-top: -12px; }
  .bottom-nav a:hover { text-decoration: none; }
  .sticky-cta {
    display: flex; position: fixed; left: 8px; right: 8px; bottom: 72px; z-index: 19; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 8px 8px 16px; box-shadow: 0 8px 24px rgba(40, 38, 36, .12);
  }
  .sticky-cta span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .sticky-cta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .sticky-cta small { color: var(--muted); font-size: .74rem; }
  .arena { grid-template-columns: 1fr 1fr; }
  .big-vs { display: none; }
  .fighter { padding: 10px; }
  .fighter .chips button { padding: 4px 9px; font-size: .8rem; }
  .vs-list { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .claim-title .price button { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .live-dot { animation: none; }
  .confetti { display: none; }
}
