/* livedot's live challenges (assets/challenges.js): /1000 and /200, the home's This December, the card on livedot.me/<handle>.
   livedot's frame and type (livedot.css tokens); each challenge wears its app's own colours: Windline's deep blue and violet, RunFast's
   night and its heat. The count, the sixteen days and the hero are always dark; maps are always light. */

/* ---------------------------------------------------------------- the sixteen days: done in the app's colours, today filling by the hour */
.days{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:6px;height:52px}
.dd{position:relative;border-radius:7px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.dd.on{background:var(--c);box-shadow:none}
.dd.now{background:linear-gradient(to top,var(--c) 0,var(--c) calc(var(--f) * 100%),rgba(255,255,255,.07) calc(var(--f) * 100%));box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.dd.now i{position:absolute;left:50%;top:-15px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:var(--live);animation:beat 1.8s ease-out infinite}
.days.sm{height:22px;gap:4px}.days.sm .dd{border-radius:4px;background:var(--soft);box-shadow:none}.days.sm .dd.on{background:var(--c)}
.days.sm .dd.now{background:linear-gradient(to top,var(--c) 0,var(--c) calc(var(--f) * 100%),var(--soft) calc(var(--f) * 100%))}.days.sm .dd.now i{top:-12px;width:7px;height:7px;margin-left:-3.5px}
@media (max-width:640px){.days{gap:3px;height:38px}.dd{border-radius:4px}}
@media (prefers-reduced-motion:reduce){.dd.now i{animation:none}}

/* ---------------------------------------------------------------- the count: an odometer in the wordmark's type */
.od{display:inline-flex;align-items:baseline;font-variant-numeric:tabular-nums}
.od-d{display:inline-block;width:.6em;height:1em;overflow:hidden;text-align:center;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%)}
.od-s{display:flex;flex-direction:column;will-change:transform}
.od-s span{display:block;height:1em;line-height:1em}
.od-c{display:inline-block;font-variant-numeric:normal} /* the comma at its own width: a tabular comma is a whole digit wide */

/* ================================================================ /1000 and /200 */
body.ch main{padding-bottom:0}
.chh{position:relative;isolation:isolate;padding:46px 0 44px;background:var(--chbg,#0A2540);color:#C9D4DE;border-top:1px solid rgba(255,255,255,.06);
  --ink:#fff;--body:#C9D4DE;--muted:#AFBDCB;--faint:#7D90A3;--soft:rgba(255,255,255,.08);--line:rgba(255,255,255,.1);
  --cyc-ink:#ABA6FF;--cyc-wash:rgba(139,133,255,.18);--run-ink:#FFB27A;--run-wash:rgba(255,154,77,.16);--live-ink:#2FD39B;--live-wash:rgba(47,211,155,.14);--warn-ink:#FFC266;--warn-wash:rgba(255,181,71,.15);color-scheme:dark}
.chh-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chh h1{margin:22px 0 0;color:#fff;font-size:clamp(34px,4.6vw,58px);font-weight:var(--fw-head);line-height:var(--lh-head);letter-spacing:var(--track-head);max-width:15ch}
.chh-lede{margin:16px 0 0;max-width:34em;color:#C9D4DE;font-size:var(--t-h3);line-height:1.55}
.chh-mid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 48px;align-items:end;margin-top:40px}
.fig-w{container-type:inline-size;min-width:0}
.fig{display:flex;align-items:baseline;margin:0;color:#fff;font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:1;
  font-size:clamp(56px,10vw,150px);font-size:min(150px,calc(100cqi / (var(--n,5) * .6 + var(--u,.6) + .2)))}
.fig-u{margin-left:.14em;color:#AFBDCB;font-size:.3em;letter-spacing:-.02em;line-height:1}
.fig-c{margin:14px 0 0;color:#AFBDCB;font-size:var(--t-h3);line-height:1.45}
.fig-c b{color:#fff;font-weight:var(--fw-ui)}
.hs{display:flex;gap:10px 34px;margin:0;padding:0 0 6px}
.hs div{display:flex;flex-direction:column;gap:4px}
.hs dt{order:2;color:#AFBDCB;font-size:var(--t-small);font-weight:var(--fw-ui)}
.hs dd{order:1;margin:0;color:#fff;font-size:var(--t-h2);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:var(--lh-head)}
.hs .live dt{display:inline-flex;align-items:center;gap:7px}.hs .live dt i{width:8px;height:8px;border-radius:50%;background:var(--live);animation:beat 1.8s ease-out infinite}
@media (prefers-reduced-motion:reduce){.hs .live dt i{animation:none}}
.chh-days{margin-top:44px}
.days-l{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:12px;color:#7D90A3;font-size:var(--t-small)}
.days-l b{color:#fff;font-weight:var(--fw-ui);text-align:center}
.days-l span{white-space:nowrap}
.chh-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.chh-acts .btn,:root[data-theme="dark"] .chh-acts .btn:not(.soft){height:48px;padding:0 22px;background:#fff;color:#0B1B2B}
.chh-acts .btn:hover{background:#EEF3F8}
.chh-acts .btn.ghost,:root[data-theme="dark"] .chh-acts .btn.ghost{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.chh-acts .btn.ghost:hover{background:rgba(255,255,255,.16)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chh-acts .btn.ghost{background:rgba(255,255,255,.1);color:#fff}}
.chh-note{margin:18px 0 0;color:#AFBDCB;font-size:var(--t-small)}
@media (max-width:760px){.chh-mid{grid-template-columns:1fr;margin-top:32px}.hs{gap:10px 28px;padding:0}}
@media (max-width:640px){.chh{padding:30px 0 34px}.chh h1{margin-top:18px}.chh-days{margin-top:34px}.chh-acts{margin-top:28px}.chh-acts .btn{flex:1 1 100%}.hs dd{font-size:var(--t-h2)}}

/* your progress: the slot for when livedot has sign-in (challengeMe); until then, the app's own progress */
.you{background:var(--paper);border-bottom:1px solid var(--line)}
.you .wrap{display:flex;align-items:center;gap:14px 18px;padding-top:18px;padding-bottom:18px}
.you .ic{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--s-wash);color:var(--s-ink)}
.you .ic svg{width:22px;height:22px}
.you p{flex:1;margin:0;color:var(--body);font-size:var(--t-body);line-height:1.45}
.you p b{color:var(--ink);font-weight:var(--fw-ui)}
.you .btn{flex:none}
@media (max-width:640px){.you .wrap{flex-wrap:wrap}.you p{flex:1 1 calc(100% - 64px)}.you .btn{width:100%}}

/* the sections, in the order the phase wants (html[data-phase]: before and entries lead with how to enter; live with who's out) */
.chs{display:flex;flex-direction:column;padding-bottom:104px}
.chs>.sec{padding:80px 0 0}
.ch-head{max-width:760px;margin-bottom:28px}
.ch-head h2{margin:0;color:var(--ink);font-size:var(--t-h1);font-weight:var(--fw-head);line-height:var(--lh-head);letter-spacing:var(--track-head)}
.ch-head p{margin:14px 0 0;max-width:36em;color:var(--body);font-size:var(--t-h3);line-height:1.55}
html[data-phase="before"] #enter,html[data-phase="entries"] #enter{order:1}
html[data-phase="before"] #counts,html[data-phase="entries"] #counts{order:2}
html[data-phase="before"] #out,html[data-phase="entries"] #out{order:3}
html[data-phase="before"] #board,html[data-phase="entries"] #board{order:4}
html[data-phase="live"] #out{order:1}html[data-phase="live"] #board{order:2}html[data-phase="live"] #enter{order:3}html[data-phase="live"] #counts{order:4}
html[data-phase="uploads"] #board,html[data-phase="done"] #board{order:1}html[data-phase="uploads"] #counts,html[data-phase="done"] #counts{order:2}
html[data-phase="uploads"] #out,html[data-phase="done"] #out,html[data-phase="uploads"] #enter,html[data-phase="done"] #enter{display:none}
.chs #faq{order:8}.chs #other{order:9}
@media (max-width:640px){.chs{padding-bottom:72px}.chs>.sec{padding-top:60px}.ch-head{margin-bottom:22px}}

/* who's out now: a light map (always light, in dark mode too), and the names beside it */
.om{display:grid;grid-template-columns:minmax(0,1fr) 300px;border-radius:20px;background:var(--paper);box-shadow:var(--sh);overflow:hidden}
.om-map{position:relative;height:460px;background:#E9EEF0}
.om-map .ml{position:absolute;inset:0}
.om-map .maplibregl-ctrl-attrib{font-size:11px}
.om-chip{position:absolute;z-index:3;left:12px;top:12px;display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#0B1B2B;font-size:var(--t-small);font-weight:var(--fw-ui);box-shadow:0 1px 2px rgba(11,27,43,.12),0 6px 16px -8px rgba(11,27,43,.35);pointer-events:none}
.om-chip i{width:8px;height:8px;border-radius:50%;background:#2FD39B;animation:beat 1.8s ease-out infinite}
.om-chip.quiet i{background:#8E9AA7;animation:none}
@media (prefers-reduced-motion:reduce){.om-chip i{animation:none}}
.om-empty{position:absolute;z-index:3;left:50%;top:50%;width:min(380px,calc(100% - 32px));transform:translate(-50%,-50%);padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.95);color:#3B4A5A;font-size:var(--t-body);line-height:1.5;text-align:center;box-shadow:0 0 0 1px rgba(11,27,43,.07),0 20px 44px -24px rgba(11,27,43,.45)}
.om-empty b{display:block;margin-bottom:4px;color:#0B1B2B;font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:var(--lh-head)}
.om-list{display:flex;flex-direction:column;min-width:0;padding:18px 10px 14px;border-left:1px solid var(--line)}
.om-list h3{margin:0 10px 8px;color:var(--ink);font-size:var(--t-small);font-weight:var(--fw-ui)}
.om-list ul{list-style:none;margin:0;padding:0}
.om-list button{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border:0;border-radius:11px;background:none;text-align:left;cursor:pointer}
.om-list button:hover{background:var(--hover)}
.om-list button i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--s);box-shadow:0 0 0 2px var(--paper),0 0 0 3px var(--s)}
.om-list button b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:var(--t-body);font-weight:var(--fw-ui)}
.om-list button span{flex:none;color:var(--muted);font-size:var(--t-small)}
.om-list .more-n{margin:auto 10px 0;padding-top:10px;color:var(--muted);font-size:var(--t-small)}
.om-note{margin:14px 0 0;color:var(--muted);font-size:var(--t-small)}
.ld-tip .maplibregl-popup-content{padding:8px 12px;border-radius:12px;background:#0B1B2B;color:#fff;box-shadow:0 10px 24px rgba(11,27,43,.35);font-family:var(--font)}
.ld-tip .maplibregl-popup-tip{display:none}
.ld-tip b{display:block;font-size:var(--t-small);font-weight:var(--fw-ui)}.ld-tip span{display:block;color:#AFBDCB;font-size:var(--t-small)}
@media (max-width:860px){.om{grid-template-columns:1fr}.om-map{height:340px}.om-list{border-left:0;border-top:1px solid var(--line)}}

/* the leaderboard: opt-in, verified kilometres */
.lb{list-style:none;margin:0;padding:0;border-radius:20px;background:var(--paper);box-shadow:var(--sh);overflow:hidden}
.lb li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:14px;row-gap:9px;align-items:center;padding:14px 20px}
.lb li+li{border-top:1px solid var(--line)}
.lb .lb-h{padding-top:12px;padding-bottom:10px;color:var(--muted);font-size:var(--t-small);font-weight:var(--fw-ui)}
.lb .lb-h span:last-child{text-align:right}
.lb-k{grid-row:span 2;align-self:start;padding-top:1px;color:var(--faint);font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:1.2;font-variant-numeric:tabular-nums}
.lb li:nth-child(-n+4) .lb-k{color:var(--ink)}
.lb-p{display:flex;align-items:baseline;gap:4px 10px;min-width:0;flex-wrap:wrap}
.lb-p b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:var(--t-body);font-weight:var(--fw-ui)}
.lb-p .cc{color:var(--muted);font-size:var(--t-small);white-space:nowrap}
.lb-km{text-align:right;white-space:nowrap;color:var(--muted);font-size:var(--t-small)}
.lb-km b{color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head)}
.lb-bar{grid-column:2/4;display:block;height:4px;border-radius:2px;background:var(--soft);overflow:hidden}
.lb-bar i{display:block;height:100%;border-radius:2px;background:linear-gradient(90deg,var(--g0),var(--g1))}
.fin{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px 0 6px;border-radius:999px;background:var(--live-wash);color:var(--live-ink);font-size:var(--t-small);font-weight:var(--fw-ui);white-space:nowrap}
.fin svg{width:13px;height:13px}
.lb-empty{padding:28px 24px;border-radius:20px;background:var(--paper);box-shadow:var(--sh)}
.lb-empty b{display:block;color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:var(--lh-head)}
.lb-empty p{margin:8px 0 0;max-width:40em;font-size:var(--t-body);line-height:1.55}
.lb-more{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px}
.lb-more button{height:42px;padding:0 20px;border:0;border-radius:12px;background:var(--paper);color:var(--ink);font-size:var(--t-body);font-weight:var(--fw-ui);box-shadow:inset 0 0 0 1px var(--line-2);cursor:pointer}
.lb-more button:hover{background:var(--hover)}
.lb-more p{margin:0;color:var(--muted);font-size:var(--t-small)}
.lb-more p b{color:var(--ink);font-weight:var(--fw-ui)}
@media (max-width:520px){.lb li{grid-template-columns:30px minmax(0,1fr) auto;column-gap:10px;padding:13px 14px}.lb-p{flex-direction:column;gap:2px}.fin .t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.fin{padding:0 5px;height:20px}}

/* how to enter: three steps, the app's links in the first */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0;counter-reset:st}
.steps li{position:relative;display:flex;flex-direction:column;padding:26px 24px 24px;border-radius:20px;background:var(--paper);box-shadow:var(--sh);counter-increment:st}
.steps li::before{content:counter(st);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;font-size:var(--t-body);font-weight:var(--fw-head)}
:root[data-theme="dark"] .steps li::before{background:var(--live);color:var(--navy)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .steps li::before{background:var(--live);color:var(--navy)}}
.steps h3{margin:18px 0 0;color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);line-height:var(--lh-head);letter-spacing:var(--track-head)}
.steps p{margin:10px 0 0;font-size:var(--t-body);line-height:1.55}
.steps p b{color:var(--ink);font-weight:var(--fw-ui)}
.ch-gets{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:18px}
.ch-gets .btn{justify-content:flex-start;height:46px;padding:0 16px}
.ch-gets .btn svg{width:20px;height:20px;border-radius:5px}
.ch-gets .btn .go{margin-left:auto;width:15px;height:15px;opacity:.6}
.ch-gets .soon{display:flex;align-items:center;gap:8px;height:46px;padding:0 16px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);font-size:var(--t-small);font-weight:var(--fw-ui)}
.ch-gets .soon svg{width:18px;height:18px}
@media (max-width:860px){.steps{grid-template-columns:1fr}}

/* how it counts */
.cnts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.cnts li{display:flex;flex-direction:column;gap:10px;padding:24px;border-radius:20px;background:var(--paper);box-shadow:var(--sh)}
.cnts .ic{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--s-wash);color:var(--s-ink)}
.cnts .ic svg{width:22px;height:22px}
.cnts h3{margin:6px 0 0;color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);line-height:var(--lh-head);letter-spacing:var(--track-head)}
.cnts p{margin:0;font-size:var(--t-body);line-height:1.55}
.cnts p b{color:var(--ink);font-weight:var(--fw-ui)}
.rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;list-style:none;margin:28px 0 0;padding:0}
.rules li{display:flex;gap:12px;align-items:flex-start;color:var(--ink);font-size:var(--t-body);line-height:1.5}
.rules li svg{flex:none;width:22px;height:22px;margin-top:1px;color:var(--live-ink)}
.rules li span span{color:var(--muted)}
@media (max-width:900px){.cnts{grid-template-columns:1fr}}
@media (max-width:760px){.rules{grid-template-columns:1fr}}

/* questions */
.faq{max-width:820px;margin:0;padding:0;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 2px;color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-ui);cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'';flex:none;width:10px;height:10px;margin-right:6px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.faq p{margin:0;padding:0 2px 22px;max-width:44em;font-size:var(--t-body);line-height:1.6}

/* ================================================================ a challenge as a card: the home's This December, and the other one on each page */
.chcs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.chc{display:flex;flex-direction:column;gap:14px;padding:24px 24px 24px;border-radius:22px;background:var(--paper);box-shadow:var(--sh);color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.chc:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgba(11,27,43,.06),0 30px 60px -30px rgba(11,27,43,.5)}
.chc:focus-visible{outline-offset:4px}
.chc-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.chc-goal{display:flex;align-items:baseline;gap:8px;margin-top:10px;color:var(--ink);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:1}
.chc-goal b{font-size:clamp(60px,7vw,88px);font-weight:var(--fw-head)}
.chc-goal span{color:var(--muted);font-size:var(--t-h2)}
.chc-n{color:var(--ink);font-size:var(--t-h2);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:var(--lh-head)}
.chc-l{font-size:var(--t-body);line-height:1.55}
.chc .days{margin-top:14px}
.chc-now{color:var(--body);font-size:var(--t-body)}.chc-now b{color:var(--ink);font-weight:var(--fw-ui)}
.chc-how{padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:var(--t-small);line-height:1.5}.chc-how b{color:var(--ink);font-weight:var(--fw-ui)}
.chc-go{margin-top:auto;padding-top:4px}
.chcs.one{grid-template-columns:minmax(0,1fr)}
.chc.wide{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px 56px;align-items:start;padding:28px}
.chc-a,.chc-b{display:flex;flex-direction:column;gap:14px;min-width:0}.chc-b{height:100%}.chc.wide .chc-goal{margin-top:12px}.chc.wide .chc-b .days{margin-top:6px}
@media (max-width:760px){.chcs{grid-template-columns:1fr}.chc,.chc.wide{padding:20px}.chc.wide{grid-template-columns:1fr}.chc-go .btn{width:100%}}

/* ================================================================ livedot.me/<handle>: their challenge, opted in */
.chms{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.chm{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:18px 20px 18px 18px;border-radius:20px;background:var(--paper);box-shadow:var(--sh);color:inherit;text-decoration:none;transition:box-shadow .2s,transform .2s}
.chm:hover{box-shadow:var(--sh-lg);transform:translateY(-1px)}
.chm-r{position:relative;display:block;width:112px;height:112px}
.ring{width:112px;height:112px}
.chm-c{position:absolute;inset:0;display:grid;place-items:center}
.chm-c b{color:var(--ink);font-size:var(--t-h2);font-weight:var(--fw-head);letter-spacing:var(--track-head)}
.chm-tick{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--live-wash);color:var(--live-ink)}.chm-tick svg{width:24px;height:24px}
.chm-t{display:flex;flex-direction:column;gap:6px;min-width:0}
.chm-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.chm-n{color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head);line-height:var(--lh-head)}
.chm-k{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;color:var(--muted);font-size:var(--t-small)}
.chm-k>span:first-child>b{color:var(--ink);font-size:var(--t-h3);font-weight:var(--fw-head);letter-spacing:var(--track-head)}
.chm-rk b{color:var(--ink);font-weight:var(--fw-ui)}
.chm-w{color:var(--muted);font-size:var(--t-small)}
.chm-go{display:inline-flex;align-items:center;gap:4px;color:var(--ink);font-size:var(--t-small);font-weight:var(--fw-ui)}.chm-go svg{width:13px;height:13px}
.chm:hover .chm-go{text-decoration:underline;text-underline-offset:3px}
@media (max-width:420px){.chms{grid-template-columns:1fr}.chm{gap:14px;padding:16px}.chm-r,.ring{width:92px;height:92px}}

/* the preview's switcher (localhost and preview.livedot.me only) */
#pv{position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));z-index:50;transform:translateX(-50%);display:flex;align-items:center;gap:4px;max-width:calc(100vw - 16px);padding:5px;border-radius:16px;background:rgba(11,27,43,.94);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 16px 40px -12px rgba(0,0,0,.55);overflow-x:auto;scrollbar-width:none}
#pv::-webkit-scrollbar{display:none}
#pv .pv-l{padding:0 8px 0 10px;color:#7D90A3;font-size:var(--t-small);font-weight:var(--fw-ui);white-space:nowrap}
#pv button{flex:none;height:36px;padding:0 12px;border:0;border-radius:11px;background:transparent;color:#C9D4DE;font-size:var(--t-small);font-weight:var(--fw-ui);white-space:nowrap;cursor:pointer}
#pv button:hover{background:rgba(255,255,255,.08);color:#fff}
#pv button[aria-pressed="true"]{background:#2FD39B;color:#0B1B2B}
body.has-pv{padding-bottom:64px}
@media (max-width:520px){#pv .pv-l{display:none}#pv button{padding:0 9px}}
/* a pill keeps the pill size in every challenge surface (livedot.css .quiet is also a paragraph style) */
.chh .lp,.chc .lp,.chm .lp{font-size:var(--t-small)}
/* the home's nav: Challenges only where all six fit on one line */
.nav a{white-space:nowrap}
@media (max-width:1060px){.nav .n-ch{display:none}}

/* ================================================================ colour (Wes, 16 Oct: "a full screen of black… not supposed to get anyone excited")
   Each hero is a field of its app's own palette, never flat near-black: a deep base, two soft glows that drift slowly (still with
   reduced motion), the big number in the palette's gradient, the sixteen days tinted before they start. LIVEDOT-DIRECTIVE.md §10b. */
body.s-cycling .chh{--chbg:#160F4A;--g-a:#635BFF;--g-b:#8B5CF6;--g-c:#2BE0B4;--fig-g:linear-gradient(90deg,#FFFFFF 0%,#C9C6FF 38%,#8B85FF 70%,#2BE0B4 100%)}
body.s-running .chh{--chbg:#2A0E12;--g-a:#EE7A1F;--g-b:#D3344A;--g-c:#E8B21E;--fig-g:linear-gradient(90deg,#2FD39B 0%,#E8B21E 34%,#EE7A1F 66%,#FF5A6E 100%)}
.chh{overflow:hidden}
.chh::before{content:'';position:absolute;inset:-20% -10%;z-index:-1;pointer-events:none;
  background:radial-gradient(42% 52% at 18% 62%,color-mix(in srgb,var(--g-a) 58%,transparent) 0,transparent 70%),
    radial-gradient(38% 46% at 82% 26%,color-mix(in srgb,var(--g-b) 50%,transparent) 0,transparent 72%),
    radial-gradient(30% 40% at 70% 92%,color-mix(in srgb,var(--g-c) 30%,transparent) 0,transparent 70%);
  animation:chdrift 26s ease-in-out infinite alternate}
.chh::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 30%,transparent 70%,rgba(0,0,0,.22))}
@keyframes chdrift{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(4%,-3%,0) scale(1.06)}}
@media (prefers-reduced-motion:reduce){.chh::before{animation:none}}
/* the big number in the palette: one gradient across the whole number (each column knows its place, --x, and the width, --fw) */
.chh .fig .od:not(:has(.od-d)){background-image:var(--fig-g);-webkit-background-clip:text;background-clip:text;color:transparent}
.chh .fig .od-s span,.chh .fig .od-c{background-image:var(--fig-g);background-size:var(--fw,4em) 100%;background-position:calc(var(--x,0em) * -1) 0;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent}
.chh .fig-u{color:color-mix(in srgb,var(--g-c) 70%,#fff)}
.chh .hs dd{color:#fff}
/* the sixteen days: tinted in the palette before they start; done in full colour */
.dd{background:color-mix(in srgb,var(--c) 20%,rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 34%,transparent)}
.dd.on{background:var(--c);box-shadow:0 6px 18px -8px var(--c)}
.dd.now{background:linear-gradient(to top,var(--c) 0,var(--c) calc(var(--f) * 100%),color-mix(in srgb,var(--c) 20%,rgba(255,255,255,.04)) calc(var(--f) * 100%))}
.days.sm .dd{background:color-mix(in srgb,var(--c) 16%,var(--soft))}.days.sm .dd.on{background:var(--c);box-shadow:none}
.days.sm .dd.now{background:linear-gradient(to top,var(--c) 0,var(--c) calc(var(--f) * 100%),color-mix(in srgb,var(--c) 16%,var(--soft)) calc(var(--f) * 100%))}
/* the chips: the badge and the pill on a glass of the palette */
.chh .chh-tags .sb,.chh .chh-tags .lp{background:color-mix(in srgb,var(--g-a) 26%,rgba(255,255,255,.06));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--g-a) 40%,transparent);color:#fff}
.chh .chh-tags .lp:not(.quiet):not(.warn) i{background:var(--live)}
/* the home's cards (and the other challenge's): the same palette, lighter */
.chc.s-cycling{background:radial-gradient(90% 60% at 0% 0%,rgba(99,91,255,.16),transparent 60%),radial-gradient(70% 50% at 100% 100%,rgba(43,224,180,.12),transparent 60%),var(--paper)}
.chc.s-running{background:radial-gradient(90% 60% at 0% 0%,rgba(238,122,31,.16),transparent 60%),radial-gradient(70% 50% at 100% 100%,rgba(211,52,74,.10),transparent 60%),var(--paper)}
.chc-goal b{background-image:var(--cg);-webkit-background-clip:text;background-clip:text;color:transparent}
.chc.s-cycling{--cg:linear-gradient(90deg,#4B44D6,#635BFF 55%,#1FB896)}
.chc.s-running{--cg:linear-gradient(90deg,#2FA884,#E8A21E 40%,#EE7A1F 70%,#D3344A)}
:root[data-theme="dark"] .chc.s-cycling{--cg:linear-gradient(90deg,#ABA6FF,#8B85FF 55%,#2BE0B4)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chc.s-cycling{--cg:linear-gradient(90deg,#ABA6FF,#8B85FF 55%,#2BE0B4)}}

/* ================================================================ two states (Wes, 16 Oct). Live: the field dark, the number, cards and day bars in
   colour (above). Not live (before, entries, uploads, done): reversed: the field is the colour, bright and alive, and the type, the
   day bars, the chips and the buttons sit in near-black on it. The page's html[data-phase]; a home card's .ph-<phase>. LIVEDOT-DIRECTIVE.md §10b. */
body.s-cycling,.chc.s-cycling{--hot:linear-gradient(118deg,#7C74FF 0%,#9D8CFF 38%,#B59CFF 62%,#6FE7CF 100%)}
body.s-running,.chc.s-running{--hot:linear-gradient(118deg,#46D69E 0%,#F2C230 36%,#F5963A 66%,#F26877 100%)}
html:not([data-phase="live"]) .chh,.chc:not(.ph-live){--ink:#0B1B2B;--body:#16263A;--muted:#26384B;--faint:#34475B;--soft:rgba(11,27,43,.12);--line:rgba(11,27,43,.16);--live-ink:#0B1B2B;color:#16263A;color-scheme:light}
html:not([data-phase="live"]) .chh{background:var(--hot)}
html:not([data-phase="live"]) .chh::before{background:radial-gradient(40% 50% at 20% 60%,rgba(255,255,255,.34) 0,transparent 70%),radial-gradient(36% 44% at 84% 24%,rgba(255,255,255,.26) 0,transparent 72%)}
html:not([data-phase="live"]) .chh::after{display:none}
html:not([data-phase="live"]) .chh h1,html:not([data-phase="live"]) .chh .hs dd,html:not([data-phase="live"]) .chh .days-l b{color:#0B1B2B}
html:not([data-phase="live"]) .chh .chh-lede,html:not([data-phase="live"]) .chh .fig-c,html:not([data-phase="live"]) .chh .chh-note{color:#16263A}
html:not([data-phase="live"]) .chh .hs dt,html:not([data-phase="live"]) .chh .days-l{color:#26384B}
html:not([data-phase="live"]) .chh .fig,html:not([data-phase="live"]) .chh .fig .od:not(:has(.od-d)),html:not([data-phase="live"]) .chh .fig .od-s span,html:not([data-phase="live"]) .chh .fig .od-c{background-image:none;color:#0B1B2B}
html:not([data-phase="live"]) .chh .fig-u{color:rgba(11,27,43,.62)}
html:not([data-phase="live"]) .chh .dd,.chc:not(.ph-live) .dd{background:rgba(11,27,43,.13);box-shadow:inset 0 0 0 1px rgba(11,27,43,.16)}
html:not([data-phase="live"]) .chh .dd.on,.chc:not(.ph-live) .dd.on{background:#0B1B2B;box-shadow:none}
html:not([data-phase="live"]) .chh .chh-tags .sb,html:not([data-phase="live"]) .chh .chh-tags .lp,.chc:not(.ph-live) .sb,.chc:not(.ph-live) .lp{background:rgba(11,27,43,.84);box-shadow:none;color:#fff}
.chc:not(.ph-live) .sb .app,html:not([data-phase="live"]) .chh .sb .app{color:#C9D4DE}
html:not([data-phase="live"]) .chh .lp.quiet i,.chc:not(.ph-live) .lp.quiet i{background:#AFBDCB}
html:not([data-phase="live"]) .chh .chh-acts .btn{background:#0B1B2B!important;color:#fff!important;box-shadow:none!important}
html:not([data-phase="live"]) .chh .chh-acts .btn.ghost{background:rgba(11,27,43,.12)!important;color:#0B1B2B!important;box-shadow:inset 0 0 0 1px rgba(11,27,43,.3)!important}
.chc:not(.ph-live){background:var(--hot);box-shadow:0 1px 2px rgba(11,27,43,.08),0 24px 50px -28px rgba(11,27,43,.55)}
.chc:not(.ph-live) .chc-goal b{background-image:none;color:#0B1B2B}
.chc:not(.ph-live) .chc-goal span,.chc:not(.ph-live) .chc-how{color:#26384B}
.chc:not(.ph-live) .btn{background:#0B1B2B!important;color:#fff!important}

/* Windline's not-live field (Wes, 16 Oct: no washed-out lilac): its own saturated palette, Windline indigo into a vivid violet with the
   wind teal as the glow. Too deep for near-black type, so on it the type, bars and chips are white (RunFast's heat field keeps near-black). */
body.s-cycling,.chc.s-cycling{--hot:linear-gradient(118deg,#3B32D0 0%,#4B44D6 22%,#635BFF 50%,#7C3AED 78%,#6A2BD9 100%)}
html:not([data-phase="live"]) body.s-cycling .chh,.chc.s-cycling:not(.ph-live){--ink:#fff;--body:#E6E4FF;--muted:#D2CEFF;--faint:#BDB8F5;--soft:rgba(255,255,255,.16);--line:rgba(255,255,255,.2);--live-ink:#fff;color:#E6E4FF;color-scheme:dark}
html:not([data-phase="live"]) body.s-cycling .chh::before{background:radial-gradient(40% 52% at 84% 74%,rgba(43,224,180,.5) 0,transparent 70%),radial-gradient(36% 44% at 18% 30%,rgba(139,133,255,.45) 0,transparent 72%)}
html:not([data-phase="live"]) body.s-cycling .chh h1,html:not([data-phase="live"]) body.s-cycling .chh .hs dd,html:not([data-phase="live"]) body.s-cycling .chh .days-l b,
html:not([data-phase="live"]) body.s-cycling .chh .fig,html:not([data-phase="live"]) body.s-cycling .chh .fig .od:not(:has(.od-d)),html:not([data-phase="live"]) body.s-cycling .chh .fig .od-s span,html:not([data-phase="live"]) body.s-cycling .chh .fig .od-c{color:#fff}
html:not([data-phase="live"]) body.s-cycling .chh .chh-lede,html:not([data-phase="live"]) body.s-cycling .chh .fig-c,html:not([data-phase="live"]) body.s-cycling .chh .chh-note{color:#E6E4FF}
html:not([data-phase="live"]) body.s-cycling .chh .hs dt,html:not([data-phase="live"]) body.s-cycling .chh .days-l{color:#D2CEFF}
html:not([data-phase="live"]) body.s-cycling .chh .fig-u{color:#7FF0D6}
html:not([data-phase="live"]) body.s-cycling .chh .dd,.chc.s-cycling:not(.ph-live) .dd{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
html:not([data-phase="live"]) body.s-cycling .chh .dd.on,.chc.s-cycling:not(.ph-live) .dd.on{background:#fff}
html:not([data-phase="live"]) body.s-cycling .chh .chh-tags .sb,html:not([data-phase="live"]) body.s-cycling .chh .chh-tags .lp,.chc.s-cycling:not(.ph-live) .sb,.chc.s-cycling:not(.ph-live) .lp{background:rgba(11,27,43,.42);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
html:not([data-phase="live"]) body.s-cycling .chh .chh-acts .btn{background:#fff!important;color:#0B1B2B!important}
html:not([data-phase="live"]) body.s-cycling .chh .chh-acts .btn.ghost{background:rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)!important}
.chc.s-cycling:not(.ph-live) .chc-goal b{color:#fff}
.chc.s-cycling:not(.ph-live) .chc-goal span{color:#7FF0D6}.chc.s-cycling:not(.ph-live) .chc-how{color:#D2CEFF}
.chc.s-cycling:not(.ph-live) .btn{background:#fff!important;color:#0B1B2B!important}
/* Windline's not-live field, darker and moving through its colours (Wes, 16 Oct: "just purple, not dark, not enough gradient"):
   a navy-indigo night in one corner, Windline indigo and vivid violet through the middle, a clear wind-teal glow in the opposite corner */
body.s-cycling,.chc.s-cycling{--hot:linear-gradient(128deg,#0B0A2E 0%,#1A1466 22%,#3B32D0 46%,#7C3AED 66%,#3E3AB8 82%,#14B8A6 100%)}
html:not([data-phase="live"]) body.s-cycling .chh::before{background:radial-gradient(34% 46% at 92% 88%,rgba(20,184,166,.6) 0,transparent 70%),radial-gradient(30% 40% at 58% 40%,rgba(124,58,237,.35) 0,transparent 72%)}
