/* MODE Challenges (challenges.js, migration v90). Theme tokens only. */
.mc-ring { display: block; flex-shrink: 0; color: var(--accent); }

/* Today: the ✕ on a challenge slide, the strip, the almost-there pill */
.hm-slide { position: relative; }
.hm-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
/* A challenge's badge on its join slide (card 9): bottom right of the photo, the text keeps clear of it */
.mc-hm-badge { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 96px; height: 96px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.mc-hm-badge > * { display: block; width: 100%; height: 100%; }
.hm-img:has(> .mc-hm-badge) .hm-tx { padding-right: 116px; }
.mc-hm-gold { color: #ffcf6b; }
/* The strip (option F): tiles on the challenge's Today photo under a dark scrim, white text; past two they scroll sideways */
.mc-strip { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.mc-strip::-webkit-scrollbar { display: none; }
.mc-sc { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px 0 8px; border-radius: 9px; border: 0;
  background-color: var(--bg3); background-size: cover; background-position: center; font: inherit; color: #fff; text-align: left; cursor: pointer; }
.mc-sc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45)); }
.mc-sc.soon::before { background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .62)); }
.mc-sc > * { position: relative; }
.mc-strip.many .mc-sc:not(.more) { flex: 0 0 156px; }
.mc-sc-rg { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; }
.mc-sc-rg .mc-ring { position: absolute; inset: 0; }
.mc-sc-rg .mc-ring circle:first-child { stroke: rgba(255, 255, 255, .28); }
.mc-sc-rg b { position: relative; font-size: 9.5px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.mc-sc-rg.soon { width: 34px; height: 34px; margin: 0 2px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .55); }
.mc-sc-tx { min-width: 0; display: flex; flex-direction: column; }
.mc-sc-tx b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sc-tx small { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sc.on .mc-sc-tx small, .mc-sc.done .mc-sc-tx small { color: #7ee083; }
.mc-sc.done .mc-ring { color: #7ee083; }
.mc-sc.behind .mc-ring { color: rgba(255, 255, 255, .7); }
.mc-sc.more { flex: 0 0 auto; justify-content: center; gap: 5px; padding: 0 12px; background: var(--bg3); color: var(--accent); font-size: 13px; font-weight: 800; }
.mc-sc.more::before { content: none; }
.mc-sc.more i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--accent); display: grid; place-items: center; font-size: 14px; }


/* The list */
.mc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.mc-row + .mc-row { border-top: 1px solid var(--border); }
.mc-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.mc-row-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-row-tx b { font-size: 14.5px; font-weight: 700; }
.mc-row-tx small, .mc-row-r small { font-size: 12px; color: var(--text2); line-height: 1.3; }
.mc-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.mc-row-r b { font-size: 13px; font-weight: 800; }
.mc-join-btn { flex-shrink: 0; height: 34px; padding: 0 14px; }
.mc-badges { display: flex; align-items: center; gap: 12px; width: 100%; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.mc-badges > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mc-badges b { font-size: 14.5px; }
.mc-badges small { font-size: 12px; color: var(--text2); }

/* One challenge */
.mc-kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
/* The top card wears the challenge's Today photo (home.css .hm-img); (?) = How it works */
.mc-hero { padding: 0; overflow: hidden; }
.mc-hero .hm-img { height: 200px; }
.mc-hero .hm-ht { font-size: 28px; }
.mc-q { font-size: 16px; font-weight: 800; }
.mc-hero-b { padding: 0 16px 16px; }
.mc-hero-b:empty { display: none; }
.mc-hero-b .mc-me { margin-top: 0; padding-top: 14px; border-top: 0; }
.mc-me { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.mc-me-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-me-n b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.mc-me-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.mc-me-goal { font-style: normal; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mc-me-l { font-size: 13.5px; color: var(--text); }
.mc-me-bg { display: flex; gap: 6px; flex-shrink: 0; }
.mc-me-r { font-size: 12.5px; color: var(--text2); }
.mc-tabs { margin: 0 0 12px; }
.mc-board .card-hd { margin-bottom: 2px; }
.mc-br { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mc-br + .mc-br { border-top: 1px solid var(--border); }
.mc-br.me { background: var(--accent-soft); margin: 0 -10px; padding: 0 10px; border-radius: 10px; border-top-color: transparent; }
.mc-br.me + .mc-br { border-top-color: transparent; }
.mc-rk { width: 34px; flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--text2); font-variant-numeric: tabular-nums; }
.mc-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--bg3); color: var(--text); font-size: 11px; font-weight: 800; font-style: normal; }
.mc-av img { width: 100%; height: 100%; object-fit: cover; }
.mc-nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-nm small { font-size: 12px; font-weight: 500; color: var(--text2); }
.mc-br > b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-grp { font-size: 12.5px; color: var(--text2); padding: 10px 0 4px; border-top: 1px solid var(--border); }
.mc-sq-me { display: flex; flex-direction: column; gap: 3px; }
.mc-sq-me b { font-size: 17px; font-weight: 800; }
.mc-sq-me span { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.mc-sq-me small { font-size: 12.5px; color: var(--text2); line-height: 1.35; }
.mc-acts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mc-acts > div { display: flex; justify-content: center; gap: 8px; }
.mc-leave { color: var(--red); }

/* Join sheet + How it works */
.mc-join h2 { margin: 4px 0 2px; font-size: 26px; font-weight: 900; }
.mc-join .subtitle { margin: 0 0 12px; }
.mc-facts { display: flex; flex-direction: column; gap: 12px; }
.mc-facts > div { display: flex; gap: 12px; align-items: flex-start; }
.mc-facts > div > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mc-facts b { font-size: 14.5px; }
.mc-facts small { font-size: 12.5px; color: var(--text2); line-height: 1.35; }
.mc-fi { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mc-fi svg { width: 18px; height: 18px; }
.mc-fi svg.bg-art { width: 28px; height: 28px; }
.mc-lbl { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--text2); }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chip { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mc-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mc-note { display: block; margin-top: 8px; font-size: 12px; color: var(--text2); }
.mc-tell { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; }
.mc-tell > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mc-tell b { font-size: 14.5px; }
.mc-tell small { font-size: 12px; color: var(--text2); }
.mc-join .btn-primary { margin-top: 14px; }
.mc-foot { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: var(--text3); }

/* Squad feed post */
.mc-post { cursor: pointer; }
.mc-post .cr-ch-ic svg { display: block; }
.mc-post-btn { flex-shrink: 0; height: 32px; padding: 0 12px; font-size: 13px; }
.mc-post-in { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--green); }

/* Share card (_mcCard, 1080 px wide): the challenge's art or Today photo under the whole card, its own color (--mc) */
.mc-shc-c { background: #0c0912; color: #fff; }
.mc-shc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-shc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,16,.55) 0%, rgba(10,6,16,.08) 24%, rgba(10,6,16,.35) 46%, rgba(10,6,16,.86) 70%, rgba(10,6,16,.96) 100%); }
.mc-shc-c.sq.ph .mc-shc-scrim { background: linear-gradient(180deg, rgba(10,6,16,.55) 0%, rgba(10,6,16,.2) 30%, rgba(10,6,16,.7) 62%, rgba(10,6,16,.94) 100%); }
.mc-shc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 420px; background: linear-gradient(180deg, rgba(8,4,12,0), rgba(8,4,12,.82) 62%); }
.mc-shc-c .shc-logo .t { fill: #fff; }
.mc-shc-c .shc-pill, .mc-shc-c .shc-chip.a { background: var(--mc); color: #1a0d04; }
.mc-shc-c .shc-chip { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); color: #fff; }
.mc-shc-c .shc-a, .mc-shc-h span, .mc-shc-c .url, .mc-shc-foot b { color: var(--mc); }
.mc-shc-c .shc-by { color: rgba(255,255,255,.72); }
.mc-shc-h { margin: 0; text-align: center; font-size: 132px; color: #fff; text-shadow: 0 0 44px rgba(0,0,0,.3), 0 6px 28px rgba(0,0,0,.6); }
.mc-shc-ring { position: relative; width: 420px; height: 420px; margin: 80px auto 0; flex-shrink: 0; }
.mc-shc-ring svg { width: 100%; height: 100%; display: block; }
.mc-shc-ring .tr { fill: rgba(10,6,16,.55); stroke: rgba(255,255,255,.18); }
.mc-shc-ring .ar { stroke: var(--mc); }
.mc-shc-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mc-shc-ring b { font-size: 144px; font-weight: 900; line-height: 1; }
.mc-shc-ring span { margin-top: 4px; font-size: 36px; color: rgba(255,255,255,.78); }
/* ink: the ring drawn straight on light art (a moon), dark */
.mc-shc-ring.ink .tr { fill: none; stroke: rgba(40,12,8,.22); }
.mc-shc-ring.ink .ar { stroke: #2a0f2e; }
.mc-shc-ring.ink div { color: #2a0c06; }
.mc-shc-ring.ink span { color: #2a0c06; font-weight: 700; }
.mc-shc-c .shc-chips { justify-content: center; margin-top: 44px; }
.mc-shc-c .shc-chip { padding: 16px 28px; border-radius: 18px; font-size: 42px; letter-spacing: 1.5px; }
.mc-shc-c.sq .shc-chip { padding: 12px 22px; border-radius: 14px; font-size: 34px; }
/* A (photo), story: title in the lower photo, ring, chips, the usual footer */
.mc-shc-c.ph:not(.sq) .mc-shc-h { margin-top: 500px; }
/* A, square: title + chips left, ring right */
.mc-shc-mid { margin-top: auto; display: flex; align-items: flex-end; gap: 40px; }
.mc-shc-l { flex: 1; min-width: 0; }
.mc-shc-mid .mc-shc-h { text-align: left; font-size: 100px; }
.mc-shc-mid .shc-chips { justify-content: flex-start; margin-top: 28px; }
.mc-shc-mid .mc-shc-ring { width: 300px; height: 300px; margin: 0; }
.mc-shc-mid .mc-shc-ring b { font-size: 104px; }
.mc-shc-mid .mc-shc-ring span { font-size: 28px; }
.mc-shc-c.sq .shc-foot { margin-top: 44px; }
/* B (art), story: title up top, the ring in the middle, chips + footer centered under it */
.mc-shc-c.art:not(.sq) .mc-shc-h { margin-top: 64px; font-size: 104px; }
.mc-shc-c.art:not(.sq) .mc-shc-ring { position: absolute; left: 340px; top: 700px; width: 400px; height: 400px; margin: 0; }
.mc-shc-c.art:not(.sq) .shc-chips { position: absolute; left: 0; right: 0; top: 1424px; margin: 0; }
.mc-shc-foot { position: absolute; left: 72px; right: 72px; top: 1572px; text-align: center; }
.mc-shc-foot .big, .mc-shc-end .big { font: italic 900 64px/.95 'Barlow Condensed', sans-serif; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.mc-shc-foot .sm { margin-top: 12px; font-size: 26px; color: rgba(255,255,255,.75); }
/* B, square: ring in the middle, title under it, chips + footer along the bottom */
.mc-shc-c.art.sq .mc-shc-ring { position: absolute; left: 390px; top: 330px; width: 300px; height: 300px; margin: 0; }
.mc-shc-c.art.sq .mc-shc-ring b { font-size: 112px; }
.mc-shc-c.art.sq .mc-shc-ring span { font-size: 26px; }
.mc-shc-c.art.sq .mc-shc-h { position: absolute; left: 40px; right: 40px; bottom: 160px; font-size: 76px; }
.mc-shc-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mc-shc-row .shc-chips { margin: 0; justify-content: flex-start; flex-wrap: nowrap; }
.mc-shc-end { text-align: right; min-width: 0; }
.mc-shc-end .big { font-size: 40px; }
.mc-shc-end .url { margin-top: 6px; font-size: 22px; font-weight: 800; }
