/* The Weekly Offerwall PTC Horse Race (v1.44): the /race page, and the contest chip on the faucet (added by nav.js).
   Built on the site's tokens from styles.css, in both themes. */
.race{display:flex;flex-direction:column;gap:22px;margin:28px auto 56px;max-width:1040px}
.race h1{font-size:clamp(1.7rem,3.6vw,2.4rem);line-height:1.15}
.race h2{font-size:1.3rem}
.race-hl{color:var(--gold-hi)}
:root[data-theme="light"] .race-hl{color:var(--gold)}
.race-sub{font-size:.86rem;color:var(--muted)}
.race .ok{color:var(--ok)}

/* the top panel: title and countdown, and Your Horse */
.race-hero{display:flex;flex-wrap:wrap;gap:30px;align-items:stretch;padding:30px}
.race-intro{flex:999 1 460px;min-width:0;display:flex;flex-direction:column;gap:14px}
.race-intro .lede{max-width:56ch;margin:0}
.race-clock{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.race-count{display:flex;gap:10px;flex-wrap:wrap}
.race-count div{min-width:88px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg);display:flex;flex-direction:column;align-items:center}
.race-count b{font-size:2rem;font-weight:500;line-height:1.1;color:var(--gold-hi)}
:root[data-theme="light"] .race-count b{color:var(--gold)}
.race-count span{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.race-close{font-size:.86rem;color:var(--muted)}
.race-me{flex:1 1 270px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:20px;display:flex;flex-direction:column;gap:12px}
.race-me-pts{display:flex;align-items:baseline;gap:8px}
.race-me-pts b{font-family:var(--mono);font-weight:500;font-size:2.5rem;line-height:1;color:var(--gold-hi)}
:root[data-theme="light"] .race-me-pts b{color:var(--gold)}
.race-me-pts span{color:var(--muted)}
.race-me-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.race-me-grid div{display:flex;flex-direction:column;min-width:0}
.race-me-grid small{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.race-me-grid b{font-weight:500;font-size:1.1rem}
.race-me-grid .bad{color:var(--warn)}
.race-me-note{margin:0;font-size:.92rem;color:var(--lede)}
.race-me-note b{font-family:var(--mono);font-weight:500;color:var(--gold-hi)}
:root[data-theme="light"] .race-me-note b{color:var(--gold)}
.race-me .btn{margin-top:auto;text-align:center;text-decoration:none}
.race-boost{font-size:.86rem;border:1px solid var(--gold);border-radius:8px;padding:6px 10px;color:var(--ink)}
.race-boost b{font-family:var(--mono);font-weight:500;color:var(--gold-hi)}
:root[data-theme="light"] .race-boost b{color:var(--gold)}

/* how points work */
.race-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px}
.race-how > div{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:16px 18px;display:flex;gap:14px;align-items:center}
.race-how b.mono{font-weight:500;font-size:1.6rem;color:var(--gold-hi);min-width:56px;text-align:center}
:root[data-theme="light"] .race-how b.mono{color:var(--gold)}
.race-how b.mono.ok{color:var(--ok)}
.race-how span{font-size:.88rem;color:var(--muted)}
.race-how strong{display:block;font-family:var(--display);font-weight:400;letter-spacing:.04em;font-size:1rem;color:var(--ink)}
.race-how em{font-style:normal}

/* prizes */
.race-prizes-wrap{display:flex;flex-direction:column;gap:12px}
.race-prizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}
.race-prize{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:16px;display:flex;flex-direction:column;gap:6px}
.race-prize.first{border-color:var(--gold);box-shadow:inset 0 0 0 3px var(--surface),inset 0 0 0 4px var(--line)}
.race-prize .trophy{width:44px;height:44px}
.race-prize .place{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.race-prize .coins{display:flex;align-items:baseline;gap:6px}
.race-prize .coins b{font-family:var(--mono);font-weight:500;font-size:1.6rem;line-height:1.1;color:var(--gold-hi)}
:root[data-theme="light"] .race-prize .coins b{color:var(--gold)}
.race-prize .coins span{color:var(--muted);font-size:.9rem}
.race-prize .boost{font-size:.92rem}
.race-prize .boost b{font-family:var(--mono);font-weight:500}
.race-purse{border:1px dashed var(--line);border-radius:10px;padding:14px 18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.race-purse svg{width:30px;height:30px;flex:none;fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.race-purse > div:not(.race-purse-sum){flex:1 1 300px;min-width:0;display:flex;flex-direction:column}
.race-purse > div b{font-family:var(--display);font-weight:400;letter-spacing:.04em}
.race-purse > div span{font-size:.9rem;color:var(--muted)}
.race-purse-sum{display:flex;flex-direction:column;align-items:flex-end}
.race-purse-sum b{font-size:1.3rem;font-weight:500;color:var(--gold-hi)}
:root[data-theme="light"] .race-purse-sum b{color:var(--gold)}

/* the trophies: gold, orichalcum, silver, copper, bronze */
.trophy .cup{fill:var(--m1);stroke:var(--m2);stroke-width:1}
.trophy .arm{fill:none;stroke:var(--m2);stroke-width:1.2;stroke-linecap:round}
.trophy .stem{fill:var(--m2)}
.trophy .shine{fill:none;stroke:#fff;stroke-opacity:.7;stroke-width:1.2;stroke-linecap:round}
.m-gold{--m1:#f4cf5e;--m2:#8a6414}
.m-orichalcum{--m1:#f2a866;--m2:#8f3f12}
.m-silver{--m1:#e2e6ee;--m2:#6f788a}
.m-copper{--m1:#c9643a;--m2:#6a2410}
.m-bronze{--m1:#b38a4e;--m2:#5a3f1a}

/* the board */
.race-board{display:flex;flex-direction:column;gap:12px}
.race-table{font-size:.95rem;min-width:540px}
.race-table th.num,.race-table td.num{text-align:right}
.race-table td{padding:10px 8px;vertical-align:middle}
.race-table th.race-rank{width:70px}
.race-table .rk{display:flex;align-items:center;gap:6px;font-family:var(--mono);color:var(--muted);font-size:.88rem}
.race-table .rk .trophy{width:24px;height:24px;flex:none}
.race-table .rk.plain{padding-left:30px}
.race-table td.who{overflow-wrap:anywhere}
.race-table tr.top td.who{font-weight:500}
.race-table tr.you td{background:color-mix(in srgb,var(--gold) 9%,transparent)}
.race-table tr.you td:first-child{box-shadow:inset 3px 0 0 var(--gold)}
.race-table tr.you td.who{color:var(--gold-hi);font-weight:700}
:root[data-theme="light"] .race-table tr.you td.who{color:var(--gold)}
.race-table td.mono{font-variant-numeric:tabular-nums}
.race-table .prize{font-size:.86rem;color:var(--muted)}
.race-table .prize.win{font-family:var(--mono);color:var(--gold-hi)}
:root[data-theme="light"] .race-table .prize.win{color:var(--gold)}
.race-table .prize.purse{color:var(--lede)}
.race-empty{color:var(--muted);text-align:center;padding:26px 8px!important}
.rc-pill{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;letter-spacing:.06em;padding:2px 10px;border-radius:999px;white-space:nowrap}
.rc-pill svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.rc-pill.q{border:1px solid var(--ok);color:var(--ok)}
.rc-pill.uq{border:1px dashed var(--warn);color:var(--warn)}
.race-more{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

/* the last race */
.race-winners{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:10px}
.race-winners li{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:10px 12px;min-width:0}
.race-winners .trophy{width:30px;height:30px;flex:none}
.race-winners div{display:flex;flex-direction:column;min-width:0}
.race-winners b{overflow-wrap:anywhere}
.race-winners small{font-size:.8rem;color:var(--muted)}
.race-winners .none{color:var(--muted);border-style:dashed}

/* rules */
.race-rules ul{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.race-rules li{line-height:1.6;max-width:80ch}
.race-rules a{color:var(--gold)}
.race-ad{max-width:300px;margin:0 auto}

/* ---------- the faucet page's contest chip (nav.js puts it under the claim panel) ---------- */
.race-chip{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--gold);border-radius:10px;padding:13px 18px;
  box-shadow:inset 0 0 0 3px var(--surface),inset 0 0 0 4px var(--line);transition:transform .15s,border-color .15s}
.race-chip:hover{border-color:var(--gold-hi);transform:translateY(-1px)}
.race-chip .horse{width:40px;height:40px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);display:grid;place-items:center;color:var(--gold-hi)}
:root[data-theme="light"] .race-chip .horse{color:var(--gold)}
.race-chip .horse svg{width:22px;height:22px}
.race-chip .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.race-chip .txt > span{font-size:1.02rem}
.race-chip .txt b{font-family:var(--mono);font-weight:500;color:var(--gold-hi)}
:root[data-theme="light"] .race-chip .txt b{color:var(--gold)}
.race-chip .txt small{font-size:.84rem;color:var(--muted)}
.race-chip .meta{font-family:var(--mono);font-size:.84rem;color:var(--muted);white-space:nowrap}
.race-chip .go{width:16px;height:16px;flex:none;fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:520px){.race-chip .meta{display:none}}
.horse-glyph{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* v1.44.1: the rules' links under the list */
.race-rules .race-sub{margin:12px 0 0}
.race-rules .race-sub a{color:var(--gold)}

/* ---------- v1.44.1: the faucet tab's "Recent payouts" row (nav.js moves the box from the side tower to the bottom) ---------- */
#view-faucet .payouts-row .feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));column-gap:28px}
#view-faucet .payouts-row .feed li:nth-child(n+8){display:none}
#view-faucet .payouts-row .feed li:nth-child(7){border-bottom:0}
