/* /transitions.css */
/* Smooth page changes with no library (#113, from docs/research/2026-10-08-smooth-page-transitions.md).
   Browsers with cross-document view transitions cross-fade between pages; the others navigate as before. */
@view-transition { navigation: auto; }

/* The menu bar is on every page, so it stays put while the rest changes underneath */
nav .bar { view-transition-name: site-nav; }

/* The old page fades out and lifts slightly, the new one fades in from just below */
::view-transition-old(root) { animation: zz-page-out var(--ease-page-out) both; }
::view-transition-new(root) { animation: zz-page-in var(--ease-page-in) both; }
@keyframes zz-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes zz-page-in { from { opacity: 0; transform: translateY(8px); } }

/* The browser canvas behind the pages takes the page's theme, so nothing flashes white in dark mode */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* Less motion asked for (for example Windows "Animation effects" off): a plain cross-fade, no sliding */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: zz-fade-out var(--ease-page-out) both; }
  ::view-transition-new(root) { animation: zz-fade-in var(--ease-page-in) both; }
}
@keyframes zz-fade-out { to { opacity: 0; } }
@keyframes zz-fade-in { from { opacity: 0; } }

/* /sticker-base.css */
/* Colours, fonts, spacing, corners and shadows come from the design system */
/* /design-system/tokens.css */
/* ZazaG Dev design system tokens. Generated from tokens.json by build.mjs: edit tokens.json, not this file. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/design-system/fonts/fredoka-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/design-system/fonts/dm-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/design-system/fonts/dm-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --is-dark: 0; color-scheme: light;
  --bg: #fbf6ee; --card: #ffffff; --text: #22201c; --muted: #66615a; --line: #22201c; --yt: #ffd3cf; --lx: #cfe6ff; --rd: #ffe1b8; --li: #d6f2dc; --x: #e7defc; --bd: #cdeff0; --pop: #ff5a36; --go: #2fbf71; --on-pop: #22201c; --go-ink: #1d814b; --scrim: rgba(34, 32, 28, 0.5); --screen: #1e1f33; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c;
  --display: "Fredoka", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --fs-hero: clamp(44px, 7.5vw, 84px); --fs-h2: clamp(40px, 6.5vw, 64px); --fs-h3: 26px; --fs-body: 16px; --fs-small: 14px; --fs-label: 12px; --fs-micro: 11px; --fs-heroLineHeight: 1.2; --fs-bodyLineHeight: 1.5; --fs-headingWeight: 700; --fs-headingTracking: -0.03em;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 44px; --s6: 104px;
  --r-chip: 6px; --r-sm: 12px; --r-card: 18px; --r-pill: 99px; --r: 18px;
  --bw-card: 2px; --bw-chip: 1.5px;
  --shadow: 4px 4px 0 var(--line); --shadow-lifted: 7px 7px 0 var(--line); --shadow-small: 2px 2px 0 var(--line);
  --ease-press: 0.6s cubic-bezier(.25, 1.5, .5, 1); --ease-hover: 0.25s cubic-bezier(.3, 1.6, .6, 1); --ease-pop: 0.45s cubic-bezier(.3, 1.8, .5, 1); --ease-page-out: 0.18s ease-in; --ease-page-in: 0.25s cubic-bezier(.3, 1.2, .6, 1); --ease-stagger: 0.09s; --ease-tilt: 3deg;
  --chroma: #00ff00;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --is-dark: 1; color-scheme: dark;
  --bg: #15172b; --card: #1f2240; --text: #f3f1ff; --muted: #cac9e1; --line: #0a0b18; --yt: #7a2f3b; --lx: #24477a; --rd: #7a4b1c; --li: #1f5a3a; --x: #4a3a80; --bd: #1b5560; --pop: #ff7a59; --go: #4ade80; --on-pop: #15172b; --go-ink: #4ade80; --scrim: rgba(5, 6, 14, 0.66); --screen: #0f1022; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c; } }
:root[data-theme="dark"] {
  --is-dark: 1; color-scheme: dark;
  --bg: #15172b; --card: #1f2240; --text: #f3f1ff; --muted: #cac9e1; --line: #0a0b18; --yt: #7a2f3b; --lx: #24477a; --rd: #7a4b1c; --li: #1f5a3a; --x: #4a3a80; --bd: #1b5560; --pop: #ff7a59; --go: #4ade80; --on-pop: #15172b; --go-ink: #4ade80; --scrim: rgba(5, 6, 14, 0.66); --screen: #0f1022; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c; }


html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--display); font-size: 16px; line-height: 1.5; overflow-x: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--s3); overflow-x: clip; }
nav { position: sticky; top: 12px; z-index: 5; margin-top: 12px; }
nav .bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: 3px 3px 0 var(--line); padding: 6px 8px 6px 18px; }
.logo { font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo span { background: var(--pop); color: var(--on-pop); padding: 0 8px; border-radius: 8px; margin-left: 4px; }
nav .links { display: flex; gap: 2px; align-items: center; font-weight: 600; font-size: 14px; }
nav .links a { padding: 4px 10px; border-radius: 99px; } nav .links a:hover { background: var(--lx); }
button { white-space: nowrap; font: 600 13px var(--display); background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.hero { min-height: calc(100svh - 70px); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: center; padding: var(--s5) 0; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7.5vw, 84px); line-height: .95; letter-spacing: -.035em; }
.hero h1 mark { background: var(--yt); color: inherit; padding: 0 .12em; border-radius: 12px; }
.hero h1 .u { background: var(--lx); border-radius: 12px; padding: 0 .12em; }
.hero p { color: var(--muted); font-size: 18px; margin-top: var(--s3); max-width: 36ch; }
.cta { display: inline-block; margin-top: var(--s4); background: var(--pop); color: var(--on-pop); font-weight: 800; border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 99px; padding: 12px 24px; transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.stack { position: relative; height: 340px; }
.stack > * { position: absolute; }
.daybadge { background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 50%; width: 170px; height: 170px; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); top: 0; right: 10%; z-index: 2; }
.daybadge b { font-size: 68px; line-height: .9; }
.daybadge span { font-family: var(--mono); font-size: 13px; }
.livecard { background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); padding: var(--s3); width: 260px; bottom: 10px; left: 0; transform: rotate(3deg); }
.livecard .on { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--go-ink); font-weight: 500; }
.livecard .on::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--go); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.livecard p { font-size: 14px; color: var(--text); margin-top: 4px; }
.livecard small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tape { width: 90px; height: 26px; background: color-mix(in srgb, var(--rd) 80%, transparent); border: 1.5px solid var(--line); transform: rotate(-12deg); top: 150px; left: 40%; }
section { padding-top: var(--s6); }
h2 { font-weight: 800; font-size: clamp(40px, 6.5vw, 64px); letter-spacing: -.03em; line-height: 1; }
h2 + p { color: var(--muted); margin: var(--s2) 0 var(--s4); }
h3 { font-weight: 800; font-size: 26px; margin: var(--s5) 0 var(--s3); letter-spacing: -.01em; display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
h3 small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); }
.status { font-family: var(--mono); font-size: 11px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 99px; padding: 1px 10px; display: inline-block; }
.s-active { background: var(--go); color: #062b16; } .s-planned { background: var(--lx); } .s-completed { background: var(--rd); }
.feature .top { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; }
.feature .title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: var(--s2); }
.feature .upd { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.feature .upd b { color: var(--text); font-weight: 500; }
.todaynote { margin-top: var(--s4); background: var(--li); border: 2px solid var(--line); border-radius: 14px; padding: var(--s3); transform: rotate(-.6deg); }
.todaynote b { font-size: 13px; font-family: var(--mono); font-weight: 500; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.goal { position: relative; }
.goal .sticker { position: absolute; top: -14px; right: 14px; transform: rotate(6deg); border: 2px solid var(--line); border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: 13px; background: var(--card); }
.goal h4 { font-size: 22px; font-weight: 800; }
.goal .rule { color: var(--muted); font-size: 14px; }
.ring { width: 100%; max-width: 140px; margin: var(--s3) auto 0; display: block; }
.ring .bg { stroke: color-mix(in srgb, var(--muted) 25%, transparent); }
.ring .fg { stroke: var(--line); stroke-linecap: round; }
:root[data-theme="dark"] .ring .fg { stroke: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ring .fg { stroke: var(--text); } }
.ring text { font-family: var(--display); font-weight: 800; fill: var(--text); }
.weeks { display: grid; gap: var(--s3); }
.week { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 6px; align-items: center; }
.week .wl { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wd { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.cell { border: 2px dashed color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 12px; min-height: 54px; display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; align-content: flex-start; }
.cell.today { border: 2px solid var(--pop); }
.cell.future { opacity: .45; }
a.chip { text-decoration: none; }
.chip { font-family: var(--mono); font-size: 10px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 4px; line-height: 16px; color: var(--text); }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
a.count { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.count { border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.count:nth-child(odd) { transform: rotate(-1deg); } .count:nth-child(even) { transform: rotate(1deg); }
.count .pn { font-weight: 800; font-size: 15px; }
.count .n { font-weight: 800; font-size: 44px; line-height: 1; margin: var(--s2) 0 2px; letter-spacing: -.02em; }
.count .lbl { font-family: var(--mono); font-size: 12px; }
.count .ex { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.count .d { display: inline-block; margin-top: var(--s2); background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 6px; font-family: var(--mono); font-size: 12px; }
/* #210: the growth chart across the 30 days, a dot at the start and on the latest day, the start number and the end of the challenge under it */
.count svg { width: 100%; height: 44px; margin-top: var(--s2); overflow: visible; }
.count polyline { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.count .gdot { stroke-width: 7; } .count .gdot.now { stroke-width: 10; }
.count .gbase { stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 3 4; }
.count .gends { display: flex; justify-content: space-between; margin-top: 4px; font: 500 11px var(--mono); color: var(--muted); }
.note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: var(--s3); }
.log { display: grid; gap: var(--s2); }
.entry { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s3); align-items: center; padding: 12px var(--s3); }
.entry.cur { background: var(--li); }
.entry .day { font-family: var(--mono); font-size: 12px; color: var(--muted); } .entry .day b { display: block; color: var(--text); font-family: var(--display); font-size: 16px; }
.entry .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.entry .lg { display: inline-flex; align-items: center; gap: 3px; background: var(--tint); border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 4px; }
a.lg { color: inherit; text-decoration: none; cursor: pointer; }
.entry .lg b { font-size: 11px; font-weight: 800; margin-right: 2px; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.other h4 { font-size: 22px; font-weight: 800; margin: var(--s2) 0 4px; }
.other p { color: var(--muted); }
.other .when { font-family: var(--mono); font-size: 13px; margin-top: var(--s3); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.proj { display: block; }
/* #2122: a card with its own page opens it from anywhere on the card; the buttons stay on top */
.proj.open { position: relative; cursor: pointer; }
.proj .p-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.proj .p-open:focus-visible { outline: none; } .proj.open:has(.p-open:focus-visible) { outline: 3px solid var(--pop); outline-offset: 3px; }
.proj.open .meta { position: relative; z-index: 1; }
.proj .ic { width: 52px; height: 52px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-content: center; font-weight: 800; font-size: 24px; margin-bottom: var(--s3); }
.proj h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.proj p { color: var(--muted); font-size: 15px; margin: 4px 0 var(--s3); }
.proj .ic.logo { overflow: hidden; padding: 0; } .proj .ic.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The status tag and the icon buttons (App Store, Google Play, GitHub) on one row, every button the same size */
.proj .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proj .ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 2px 2px 0 var(--line); color: var(--text); }
/* The status tag matches the icon buttons beside it: same height, border and shadow (owner, task #160) */
.proj .meta .status { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.proj .ib:hover, .proj .meta a.status:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.proj .meta a.status { color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.proj .meta a.status:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.c-yt { background: var(--yt); } .c-lx { background: var(--lx); } .c-rd { background: var(--rd); } .c-li { background: var(--li); } .c-x { background: var(--x); }
footer { padding: var(--s6) 0 var(--s5); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rv { opacity: 0; transform: translateY(26px) rotate(-1.5deg); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.25); }
.rv.in { opacity: 1; transform: none; }
.count.rv.in:nth-child(odd) { transform: rotate(-1deg); } .count.rv.in:nth-child(even) { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .livecard .on::before { animation: none; } }
@media (max-width: 760px) {
  nav .links a.hide-s { display: none; }
  nav .bar { padding-left: 12px; } .logo { font-size: 16px; } nav .links a { padding: 4px 6px; } button { padding: 4px 9px; }
  .hero { grid-template-columns: 1fr; gap: var(--s3); min-height: 0; padding-top: var(--s5); }
  .stack { height: 260px; }
  .daybadge { width: 120px; height: 120px; right: 0; } .daybadge b { font-size: 48px; }
  .livecard { width: 230px; }
  .goals, .others, .projects { grid-template-columns: 1fr; } .counts { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(7, 1fr); } .week .wl { grid-column: 1 / -1; } .week:first-child > span:first-child { display: none; }
  .cell { min-height: 44px; padding: 3px; } .chip { font-size: 9px; padding: 0 2px; }
  .feature .upd { text-align: left; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
}

/* /c1-motion.css */
/* C1 motion: stickers press onto the page, lift on hover, rings fill, today pulses. Loaded only by c-stickers.html. */
/* Press-in: a sticker arrives lifted (big shadow, tilted, slightly large) and is pressed flat. */
/* Starts visible (lifted and tilted), so the page reads fully before any scrolling */
.rv { opacity: 1; transform: translate(-8px, -14px) rotate(var(--tilt, -3deg)) scale(1.05);
  transition: opacity .35s ease var(--d, 0s), transform .6s cubic-bezier(.25, 1.5, .5, 1) var(--d, 0s), box-shadow .6s ease var(--d, 0s); }
.card.rv, .count.rv, .livecard.rv { box-shadow: 12px 14px 0 color-mix(in srgb, var(--line) 35%, transparent); }
.rv.in { opacity: 1; transform: none; }
.card.rv.in, .count.rv.in { box-shadow: var(--shadow); }
.count.rv.in:nth-child(odd) { transform: rotate(-1deg); } .count.rv.in:nth-child(even) { transform: rotate(1deg); }
/* Hover: the sticker lifts off the page a little */
.card.rv, .count.rv { transition: opacity .35s ease var(--d, 0s), transform .6s cubic-bezier(.25, 1.5, .5, 1) var(--d, 0s), box-shadow .6s ease var(--d, 0s); }
/* Once a sticker has landed (class "settled", set by c1-motion.js) hover reacts quickly with no delay */
.card.settled, .count.settled, .cta { transition: transform .25s cubic-bezier(.3, 1.6, .6, 1), box-shadow .25s ease; }
.card.rv.in:hover, .count.rv.in:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 8px 9px 0 var(--line); }
.cta:hover { transform: translate(-3px, -3px) rotate(-1deg); }
/* Hero: highlighter swipes behind the two marked words */
.hero h1 mark, .hero h1 .u { background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .7s cubic-bezier(.6, 0, .2, 1); }
.hero h1 mark { background-color: transparent; background-image: linear-gradient(var(--yt), var(--yt)); transition-delay: .45s; }
.hero h1 .u { background-color: transparent; background-image: linear-gradient(var(--lx), var(--lx)); transition-delay: .75s; }
.hero h1.in mark, .hero h1.in .u { background-size: 100% 100%; }
/* Hero stack: the badge is stamped down, the tape lands, the live note slides in */
.stack.rv { opacity: 1; transform: none; }
.stack .daybadge { transform: rotate(-8deg) scale(1.7); opacity: 0; transition: transform .55s cubic-bezier(.3, 1.7, .5, 1) .25s, opacity .2s ease .25s; }
.stack.in .daybadge { transform: rotate(-8deg); opacity: 1; animation: sway 6s ease-in-out 1.4s infinite; }
@keyframes sway { 50% { transform: rotate(-3deg) translateY(-4px); } }
.stack .tape { transform: rotate(-12deg) translateY(-40px); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1) .7s, opacity .2s ease .7s; }
.stack.in .tape { transform: rotate(-12deg); opacity: 1; }
.stack .livecard { transform: rotate(9deg) translateX(-40px); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1) .5s, opacity .3s ease .5s; }
.stack.in .livecard { transform: rotate(3deg); opacity: 1; }
/* Goals: the streak sticker slaps on after its card, the ring fills */
.goal .sticker { transform: rotate(6deg) scale(0); transition: transform .45s cubic-bezier(.3, 1.8, .5, 1) calc(var(--d, 0s) + .45s); }
.goal.in .sticker { transform: rotate(6deg) scale(1); }
.goal.in:hover .sticker { animation: wobble .5s ease; }
@keyframes wobble { 30% { transform: rotate(-6deg) scale(1.12); } 60% { transform: rotate(10deg) scale(1.05); } }
.ring .fg { transition: stroke-dashoffset 1.3s cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) + .3s); }
/* Today's entry: a highlighter sweep, and today's calendar cell pulses */
.todaynote { background-image: linear-gradient(90deg, color-mix(in srgb, #fff 45%, transparent), transparent); background-repeat: no-repeat; background-size: 0% 100%; }
.feature.in .todaynote { animation: sweep 1.1s ease .6s both; }
@keyframes sweep { 0% { background-size: 0% 100%; } 60% { background-size: 100% 100%; } 100% { background-size: 100% 100%; background-image: none; } }
.cell.today { animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pop) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
/* Calendar chips pop in one by one when the calendar arrives */
.weeks .chip { transform: scale(0) rotate(-20deg); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1) var(--cd, 0s); }
.rv.in .weeks .chip { transform: none; }
/* The live dot in the hero card already pulses (sticker-base.css) */
/* Plays under reduced motion too, like C2-C5: this PC has Windows animation effects off. Only smooth scrolling stays off there (sticker-base.css). */
.count.rv:not(.in) { transform: translate(-8px, -14px) rotate(var(--tilt, -3deg)) scale(1.05); }

/* /c1-plus.css */
/* C1 plus: the improvement ideas, in the Sticker board style. Each idea is wrapped in [data-idea]. */
.idea.off { display: none !important; }

/* 1. Today bar: sits in the page under the menu at every width, and its dot holds still */
.todaybar { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 14px auto 0;
  background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); padding: 6px 8px 6px 14px;
  font-family: var(--mono); font-size: 13px; white-space: nowrap; }
a.todaybar { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.todaybar:hover, a.todaybar:focus-visible { cursor: pointer; transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
a.todaybar:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  a.todaybar { transition: none; }
  a.todaybar:hover, a.todaybar:focus-visible { transform: none; }
}
.todaybar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); flex-shrink: 0; }
.livecard .on::before { animation: none; }
.todaybar b { font-family: var(--display); font-size: 15px; }
.todaybar .ticks { display: flex; gap: 4px; }
.todaybar .tick { border: 1.5px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 11px; }
.todaybar .tick.no { opacity: .4; text-decoration: line-through; }
.todaybar .ago { color: var(--muted); }

/* 2. Pace */
.pace { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.pc { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.pc h4 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.verdict.ahead { background: var(--li); } .verdict.behind { background: var(--yt); } .verdict.on { background: var(--lx); }
.pc svg { width: 100%; height: 70px; margin-top: var(--s2); overflow: visible; }
.pc .plan { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pc .done { fill: none; stroke: var(--pop); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pc .lg { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 3. Tappable calendar days */
.weeks .cell.past { cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), background .2s; }
.weeks .cell.past:hover { transform: scale(1.08) rotate(-2deg); background: color-mix(in srgb, var(--lx) 50%, transparent); }
body.no-3 .weeks .cell.past { cursor: default; } body.no-3 .weeks .cell.past:hover { transform: none; background: none; }

/* 4. Milestones */
.miles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.ms { border: 2px dashed var(--line); border-radius: var(--r); padding: var(--s3); position: relative; background: var(--card); }
.ms .goal-n { font-weight: 800; font-size: 26px; line-height: 1; margin: 4px 0; }
.ms .bar { height: 12px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); margin-top: var(--s2); }
.ms .bar i { display: block; height: 100%; background: var(--pop); width: 0; transition: width 1.2s cubic-bezier(.5, 0, .2, 1) .2s; }
.ms .left { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.ms .stamp { position: absolute; top: -12px; right: 10px; transform: rotate(8deg); background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; font-weight: 800; }

/* 5. Share card */
.share-btn { display: inline-block; margin: var(--s4) 0 0 var(--s3); padding: 11px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--line); background: var(--card); }
.share-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.sharecanvas { width: 100%; height: auto; border: 2px solid var(--line); border-radius: 12px; display: block; margin: var(--s3) 0; }
.sheet .actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.sheet .actions a, .sheet .actions button { font: 600 14px var(--display); background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--line); }
.sheet .actions .ghost { background: var(--card); color: var(--text); }

/* 6. Latest video */
.video { display: grid; grid-template-columns: 300px 1fr; gap: var(--s4); align-items: center; padding: var(--s3); }
.video .thumb { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video:hover img { transform: scale(1.05); }
.video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); display: grid; place-content: center; font-size: 20px; box-shadow: 3px 3px 0 var(--line); }
.video .vt b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.video .vt span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.videos .video { grid-template-columns: 1fr; align-items: start; align-content: start; gap: var(--s3); }
.videos .video .vt b { font-size: 17px; }
.videos .video .play { width: 44px; height: 44px; font-size: 16px; }

/* 7. RSS link */
.rss { font-family: var(--mono); background: var(--rd); border: 1.5px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--text); }

/* 8. About and follow */
.about { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); align-items: center; margin-top: var(--s5); }
.about img { width: 150px; height: 150px; box-sizing: border-box; padding: 14px 14px 10px; object-fit: contain; border-radius: 50%; border: 2px solid var(--line); background: var(--yt); box-shadow: var(--shadow); }
/* #3974: "Hi, I'm Zaza." is an h2 (the page went from the h1 to an h3), styled as the h3 it replaced */
.about h2 { margin: 0 0 4px; font-size: var(--fs-h3); line-height: inherit; letter-spacing: -.01em; display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.about h2 + p { margin: 0; }
.about p { color: var(--muted); max-width: 60ch; }
.follow { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.follow a { font-weight: 600; font-size: 14px; border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.follow a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.follow small { font-family: var(--mono); font-weight: 400; font-size: 11px; margin-left: 4px; }

/* 9. Link preview */
.og { max-width: 560px; padding: 0; overflow: hidden; }
.og .img { aspect-ratio: 1.91 / 1; background: var(--bg); border-bottom: 2px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 6%; gap: 4%;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.og .img .h { font-weight: 800; font-size: clamp(18px, 4vw, 30px); line-height: 1; letter-spacing: -.03em; }
.og .img .h mark { background: var(--yt); color: inherit; border-radius: 6px; padding: 0 .1em; }
.og .img .b { justify-self: center; width: 92px; height: 92px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.og .img .b b { font-size: 36px; line-height: .9; } .og .img .b span { font-family: var(--mono); font-size: 10px; }
.og .meta { padding: 10px 14px; font-size: 14px; }
.og .meta small { display: block; font-family: var(--mono); color: var(--muted); font-size: 11px; }

/* 10. Challenge pages, and the shared sheet */
.others .other.link, .card.feature.link { cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: grid; place-items: center; padding: var(--s3); animation: scrim-in .2s ease-out; }
/* Pop-ups (#173): a see-through dark layer with a light blur over the page, and the page behind holds still */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sheet, .scrim { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
@keyframes scrim-in { from { opacity: 0; } }
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { animation: none; transition: none; } }
.sheet[hidden] { display: none; }
.sheet-card { width: min(560px, 100%); max-height: 88vh; overflow: auto; position: relative; animation: stick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stick { from { transform: translateY(-30px) rotate(-4deg) scale(1.06); opacity: 0; } }
.sheet .x { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1; padding: 2px 10px; }
.sheet h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: var(--s2) 0; padding-right: 40px; }
.sheet .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.sheet .kv div { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sheet .kv b { display: block; font-size: 24px; font-weight: 800; }
.sheet .kv span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sheet .note2 { background: var(--li); border: 2px solid var(--line); border-radius: 12px; padding: var(--s3); transform: rotate(-.6deg); }
.countdown { font-weight: 800; font-size: 44px; letter-spacing: -.02em; }

/* The demo's idea switches */
.ideas-panel { position: fixed; right: 14px; top: 84px; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ideas-panel > button { background: var(--rd); box-shadow: 3px 3px 0 var(--line); }
.ideas-list { display: none; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; max-height: 70vh; overflow: auto; }
.ideas-panel.open .ideas-list { display: grid; gap: 4px; }
.ideas-list label { display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.ideas-list a { font-family: var(--mono); font-size: 12px; text-decoration: underline; margin-top: 6px; }

@media (max-width: 760px) {
  .pace { grid-template-columns: 1fr; } .miles { grid-template-columns: repeat(2, 1fr); }
  .video { grid-template-columns: 1fr; } .videos { grid-template-columns: 1fr; } .videos .video:nth-child(n+4) { display: none; } /* #2184: six on desktop, three on a phone */
  .about { grid-template-columns: 1fr; justify-items: start; }
  .about img { width: 110px; height: 110px; }
  .share-btn { margin: var(--s3) 0 0; }
  /* Phone: the today bar joins the page flow under the menu, and the live dots hold still */
  .todaybar { font-size: 12px; gap: 6px; }
  .todaybar .ago { display: none; }
  .ideas-panel { top: auto; bottom: 74px; }
}

/* Light/dark switch: a sun and a moon, the knob slides to the one in use */
.theme-switch { border-color: var(--text) !important; position: relative; width: 62px; height: 32px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--card); }
.theme-switch svg { width: 15px; height: 15px; position: relative; z-index: 1; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; transition: opacity .25s; }
.theme-switch .sun circle { fill: #ffc233; stroke: var(--text); }
.theme-switch .moon path { fill: #c9b8ff; stroke: var(--text); }
.theme-switch .knob { position: absolute; top: 3px; left: 3.5px; /* centre on the 15px icon: 7px padding + 7.5px - 11px */ width: 22px; height: 22px; border-radius: 50%; background: var(--rd); border: 2px solid var(--line);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
:root[data-theme="dark"] .theme-switch .knob { background: var(--x); transform: translateX(29px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-switch .knob { background: var(--x); transform: translateX(29px); } }
.theme-switch:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Link to a challenge's own page */
.own-page { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; border: 2px solid var(--line); border-radius: 99px; padding: 2px 10px; background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.own-page:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.other .own-page { display: table; margin-top: 12px; }

/* Hero spacing: room between the bars and the headline, and highlight boxes that do not touch */
.hero h1 { line-height: 1.2; }
.hero h1 mark, .hero h1 .u { display: inline-block; line-height: 1.04; padding: .02em .14em .08em; }
/* The hero is as tall as its content, with the same space above (from the day bar) and below (to the next section) (owner, task #157). */
.hero { min-height: 0; padding: 88px 0 0; }
.hero + .about { margin-top: 88px; }
@media (max-width: 760px) { .hero { padding-top: 52px; } .hero + .about { margin-top: 52px; } .hero h1 { line-height: 1.24; } }

/* Today bar (look A, Progress, chosen 2026-10-08) */
.todaybar.look-A .tb-sum { color: var(--muted); }
.tb-bar { width: 90px; height: 8px; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.tb-bar i { display: block; height: 100%; background: var(--go); }
/* #3861: on a narrow phone the bar gives up width so it stays inside the pill */
@media (max-width: 760px) { .tb-bar { width: 60px; flex: 0 1 60px; min-width: 24px; } }
@media (max-width: 380px) { .todaybar .tb-sum { font-size: 11px; } }
.tb-bar { border-color: color-mix(in srgb, var(--text) 55%, transparent); }

/* The day card (day-card.js) in place of the goal cards. Colours, fonts and spacing come from the design system. */
.daycard { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lifted);
  padding: var(--s4); margin-top: var(--s5); display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s4); }
.daycard .dc-head h3 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0; }
.daycard .dc-head p { font: 500 14px var(--mono); color: var(--muted); margin-top: 8px; }
.daycard .dc-badge { align-self: start; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--pop); color: var(--on-pop); /* #3974: white on the orange was 2.6:1 to 3.1:1 */
  border: 2px solid var(--line); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; }
.daycard .dc-badge b { font-size: 52px; font-weight: 800; line-height: .9; }
.daycard .dc-badge span { font: 500 13px var(--mono); }
/* #205: big back and forward buttons beside "Day N of 30" (day-switch.js) */
.daycard .dc-switch { display: flex; align-items: center; gap: 10px; }
.daycard .dc-step { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); border: 2px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.daycard .dc-step:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
.daycard .dc-step:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.daycard .dc-step:disabled { opacity: .3; cursor: default; box-shadow: none; }
.daycard .dc-step:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #207: the goal boxes span the card under the heading and the day circle, up to four columns, each box only as tall as its goals */
.daycard .dc-groups { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s2); align-items: start; }
.daycard .dc-col { display: flex; flex-direction: column; gap: var(--s2); }
.daycard .dc-grp { background: var(--tint); border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; }
.daycard .dc-grp h4 { font-size: 16px; font-weight: 800; margin: 0 2px 8px; }
.daycard .dc-goals { display: grid; grid-template-columns: 1fr; gap: 8px; }
.daycard .dc-g { border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-small); padding: 8px 10px; background: var(--card); min-height: 72px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.daycard .dc-g small { font-weight: 700; font-size: 13px; }
.daycard .dc-g b { font-size: 19px; font-weight: 800; }
.daycard .dc-g.not b { color: var(--muted); font-weight: 600; }
.daycard .dc-g.on { background: var(--go); color: var(--on-pop); }
/* #206: the round open-the-post button in a linked goal's corner */
.daycard .dc-g { position: relative; }
.daycard .dc-open { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
/* #1133: the tile keeps room for the button, so the label and the value wrap before it (32px button and 6px either side) */
.daycard .dc-g:has(.dc-open) { padding-right: 44px; }
.daycard .dc-open:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.daycard .dc-open:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #2576: a goal with several posts that day, one numbered chip per post ("1 ↗", "2 ↗")
   #3521: in a wrapping row under the count, inside the tile, so any number of posts fits */
.daycard .dc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.daycard .dc-chip { height: 30px; padding: 0 9px; border-radius: 15px; display: inline-flex; align-items: center; gap: 2px; font: 800 13px var(--display); color: var(--text);
  text-decoration: none; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.daycard .dc-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.daycard .dc-chip:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.daycard .dc-counts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.daycard .dc-c { border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-small); }
.daycard .dc-c small { font-weight: 600; font-size: 14px; }
.daycard .dc-c b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.daycard .dc-c i { font: 500 12px var(--mono); color: var(--go-ink); font-style: normal; }
@media (max-width: 760px) {
  .daycard { padding: var(--s3); }
  .daycard .dc-badge { grid-row: auto; width: 84px; }
  .daycard .dc-badge b { font-size: 36px; }
  .daycard .dc-badge span { font-size: 10px; }
  .daycard .dc-switch { gap: 8px; }
  .daycard .dc-step { width: 46px; height: 46px; }
  .daycard .dc-groups { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .daycard .dc-col { display: contents; }
  .daycard .dc-goals { grid-template-columns: repeat(2, 1fr); }
  .daycard .dc-goals { gap: 6px; }
  .daycard .dc-g { min-height: 0; padding: 6px 8px; border-radius: 10px; }
  .daycard .dc-g small { font-size: 11.5px; }
  .daycard .dc-g b { font-size: 16px; }
  .daycard .dc-grp { padding: 8px; }
  .daycard .dc-grp h4 { font-size: 15px; margin-bottom: 6px; }
  .daycard .dc-open { width: 26px; height: 26px; top: 4px; right: 4px; }
  .daycard .dc-g:has(.dc-open) { padding-right: 36px; }
  .daycard .dc-open svg { width: 13px; height: 13px; }
  .daycard .dc-chips { gap: 4px; }
  .daycard .dc-chip { height: 26px; padding: 0 7px; font-size: 12px; }
  .daycard .dc-counts { grid-template-columns: repeat(2, 1fr); }
}

/* Hero day rail (#173, owner's sketch): one long line across the hero, rising a little to the right,
   with the day circle sitting on it at today's day. Replaces the big day badge and its tape. */
.hero .stack { height: auto; align-self: center; }
.hero .stack > * { position: relative; }
.hero .livecard { bottom: auto; }
/* The live card's link icon (#1008): a small sticker button at the top right, only when the day has a link */
.livecard .lc-link { position: absolute; top: var(--s2); right: var(--s2); width: 32px; height: 32px; display: grid; place-items: center;
  border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); background: var(--yt); color: var(--text); box-shadow: var(--shadow-small); }
.livecard .lc-link:hover, .livecard .lc-link:focus-visible { background: var(--pop); color: var(--on-pop); }
.livecard:has(.lc-link) .on { margin-right: 36px; }
.dayrail { grid-column: 1 / -1; --dot: 68px; padding: calc(var(--dot) / 2) calc(var(--dot) / 2) 0; margin-top: var(--s4); }
.dayrail.rv { opacity: 1; transform: none; }
.dr-line { position: relative; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 75%, transparent); transform: rotate(-1.2deg); }
.dr-done { position: absolute; left: 0; top: 50%; height: 10px; width: 0; transform: translateY(-50%); border-radius: var(--r-pill); background: var(--pop); border: var(--bw-chip) solid var(--line); transition: width 1.1s var(--ease-press, ease) .3s; }
.dayrail.in .dr-done { width: var(--at); }
.dr-dot { position: absolute; top: 50%; left: 0; width: var(--dot); height: var(--dot); transform: translate(-50%, -50%) rotate(1.2deg); border-radius: 50%;
  background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; line-height: 1;
  transition: left 1.1s var(--ease-press, ease) .3s; }
.dayrail.in .dr-dot { left: var(--at); }
.dr-dot small { font: 500 11px var(--mono); }
.dr-dot b { font-size: 28px; font-weight: 800; margin-top: 1px; }
.dr-ends { display: flex; justify-content: space-between; margin-top: calc(var(--dot) / 2 + var(--s2)); font: 400 12px var(--mono); color: var(--muted); }
@media (max-width: 760px) {
  /* Phone: the whole hero is centred (owner, #173) */
  .hero { text-align: center; justify-items: center; }
  .hero p, .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .stack { justify-self: center; }
  .hero .livecard { text-align: center; }
  /* Phone: the big cards (calendar, day card, challenge card) sit flat, never tilted (owner, #180).
     The calendar card is taller than the screen, so its reveal never fired and it stayed tilted. */
  .card.rv:has(.weeks), .daycard.rv, .card.feature.rv { transform: none; box-shadow: var(--shadow); }
  /* #1639: the calendar card stays still on a phone (a tap left the hover lift on), and gives its 4px shadow room on the
     right so the gaps either side look equal. Tapping a day still opens its entry. */
  .card.rv.in:has(.weeks):hover, .card.rv:has(.weeks):active { transform: none; box-shadow: var(--shadow); }
  .card.rv:has(.weeks) { transition: none; margin-right: 4px; }
  .card.rv:has(.weeks) .pcal .cw-nav button:hover { transform: none; box-shadow: 2px 2px 0 var(--line); }
  /* The platform cards inside keep room for their 2px shadow only, so they sit evenly too */
  .card.rv:has(.weeks) .pcal .cw { padding-right: 2px; }
  .about { justify-items: center; text-align: center; }
  .about p { margin-left: auto; margin-right: auto; } .about h2 { justify-content: center; }
  .follow { justify-content: center; }
  .dayrail { --dot: 54px; margin-top: var(--s3); width: 100%; }
  .dr-dot b { font-size: 22px; } .dr-dot small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dr-done, .dr-dot { transition: none; } }

/* /milestone-ladder.css */
/* Milestone ladder panel (tasks #162-#170, drawer picked in #165); see milestone-ladder.js */
.miles .ms[role="button"] { cursor: pointer; transition: transform .15s; }
.miles .ms[role="button"]:hover, .miles .ms[role="button"]:focus-visible { transform: translate(-2px, -2px); outline: none; border-style: solid; }
.ladder .x { position: absolute; top: 10px; right: 12px; font-size: 26px; line-height: 1; background: none; border: 0; color: var(--text); cursor: pointer; }
.ladder h3 { margin: 0; font-size: 19px; font-weight: 800; }
.ladder .now { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 4px 0 var(--s3); }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; border: 2px dashed var(--line); border-radius: 12px; padding: 6px 10px; }
.ladder li b { font-size: 16px; font-weight: 800; }
.ladder li span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.ladder li.next { border-style: solid; box-shadow: 2px 2px 0 var(--line); }
.ladder li .bar { grid-column: 1 / -1; height: 10px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.ladder li .bar i { display: block; height: 100%; background: var(--pop); }
/* #2592: reached milestones, checked and quieter, above the next one; older ones fold behind the "N earlier" button */
.ladder li.done { border-style: solid; border-color: color-mix(in srgb, var(--line) 35%, transparent); padding: 4px 10px; }
.ladder li.done b { font-size: 14px; color: var(--muted); }
.ladder li.done b i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--go); color: var(--on-pop); font-size: 11px; vertical-align: 1px; }
.ladder li.done[hidden] { display: none; }
.ladder li.earlier { border: 0; padding: 0; display: block; }
.ladder li.earlier button { font: 500 12px var(--mono); color: var(--muted); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline dotted; }
/* #168: three dots under the last step say more milestones follow */
.ladder .more { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 18px; letter-spacing: 4px; line-height: 1; user-select: none; }
/* The panel. Below 1024px (touch or mouse) it slides in from the right and stops in the middle of the screen (#172) */
.ladder { position: fixed; z-index: 60; top: 50%; left: 50%; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: var(--s3); margin: 0; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateX(calc(50vw + 50%));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s .35s; }
.ladder.in { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
/* #169: from 1024px with a mouse, a floating card as tall as its ladder, with a margin at the top (clear of the sticky nav) and right */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .ladder { top: 84px; left: auto; right: 24px; max-height: calc(100vh - 108px); padding: var(--s4) var(--s3); transform: translateX(calc(100% + 48px)); }
  .ladder.in { transform: none; }
}
/* #167: on touch screens a tap icon sits at each card's top right, and the milestone stamp moves to the top left to make room */
.miles .ms .tap { display: none; }
@media (hover: none) {
  .miles .ms .tap { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    border: 2px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 2px 2px 0 var(--line); color: var(--text); }
  .miles .ms .stamp { right: auto; left: 10px; transform: rotate(-6deg); }
  .miles .ms > div:first-of-type { padding-right: 30px; }
}
/* #173: below 1024px (or without a mouse) the panel is a pop-up: a dark see-through layer covers the page and a tap on it closes.
   The floating hover card on wide screens with a mouse stays without one. Blur and reduced motion: see c1-plus.css */
.scrim { position: fixed; inset: 0; z-index: 59; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.in { opacity: 1; visibility: visible; transition: opacity .25s; }

/* /cal-options.css */
/* Phone calendar options (cal-options.js). Shown only at phone width; a computer keeps the grid. */
.calm { display: none; }
.g-yt { --gc: var(--yt); --gd: #ff4d4d; } .g-lx { --gc: var(--lx); --gd: #3d7bff; } .g-rd { --gc: var(--rd); --gd: #ff9f1c; }
@media (max-width: 760px) {
  body[class*="cal-"] .weeks { display: none; }
  body[class*="cal-"] .calm { display: block; }
  .calm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; cursor: pointer; }

  /* A. Dots */
  .cd-head, .cd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .cd-head span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 4px; }
  .calm .cd { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 4px 0 6px; background: var(--card); }
  .cd b { font-size: 13px; font-weight: 800; }
  .cd .dots { display: flex; gap: 3px; }
  .cd .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; }
  .cd .dots i.on { background: var(--gd); border-color: var(--gd); }
  .calm .cd.future { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
  .cd.future b { color: var(--muted); font-weight: 600; } .cd.future .dots { opacity: 0; }
  .calm .cd.today { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop); }
  .cd-key { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .cd-key span { display: inline-flex; align-items: center; gap: 5px; }
  .cd-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--gd); }

  /* B. One week at a time */
  .cw-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .cw-title { font-weight: 800; font-size: 15px; text-align: center; }
  .calm .cw-nav button { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); box-shadow: 2px 2px 0 var(--line); font-size: 16px; }
  .cw-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cw-track::-webkit-scrollbar { display: none; }
  .cw { flex: 0 0 100%; scroll-snap-align: start; padding: 0 6px 4px 0; overflow: hidden; }
  .cw-grid { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 6px; align-items: center; }
  .calm .cw-day { font-family: var(--mono); font-size: 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 2px 0; border-radius: 8px; }
  .cw-day b { font-family: var(--display); font-size: 14px; color: var(--text); }
  .calm .cw-day.today { background: var(--pop); color: var(--on-pop); } .cw-day.today b { color: var(--on-pop); }
  .cw-g { font-family: var(--mono); font-size: 11px; font-weight: 500; }
  .cw-c { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); display: grid; place-content: center; font-size: 13px; font-weight: 800; cursor: pointer; }
  .cw-c.on { background: var(--gc); box-shadow: 2px 2px 0 var(--line); }
  .cw-c.miss { border-color: var(--pop); background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--pop) 35%, transparent) 3px 5px); }
  .cw-c.future { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: default; }
  .cw-pips { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .cw-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
  .cw-pips i.on { background: var(--line); }

  /* C. Day list */
  .calm .cl-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); text-align: left; }
  .cl-when { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.25; }
  .cl-when b { display: block; font-family: var(--display); font-size: 15px; color: var(--text); }
  .cl-goals { display: flex; gap: 4px; flex-shrink: 0; }
  .cl-g { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--line); border-radius: 7px; padding: 1px 6px; color: var(--muted); }
  .cl-g.on { background: var(--gc); color: var(--text); font-weight: 500; }
  .calm .cl-row.today { background: color-mix(in srgb, var(--li) 70%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
  .calm .cl-row.next { opacity: .55; cursor: default; }
  .cl-more { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 10px; }
}

/* /cal-more.css */
/* Calendar structures for many goals (cal-more.js). Phone width; reuses the week pager styles in cal-options.css. */
@media (max-width: 760px) {
  .cm-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 10px; }
  .cal-many .cw { padding-bottom: 6px; }
  .cal-many .cw-nav { margin-bottom: 12px; }

  /* Day dots, shared by D */
  .pc-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: center; justify-items: center; }
  .pc-dots i { width: 16px !important; height: 16px !important; }
  .pc-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); }
  .pc-dots i.on { background: var(--line); }
  .pc-dots i.part { background: conic-gradient(var(--line) var(--p), var(--card) 0); }
  .pc-dots i.miss { border-color: var(--pop); }
  .pc-dots i.fut { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); }

  /* D. Platform cards */
  .pd-head { padding: 0 14px 4px; } .pd-head > span:not(.pd-l) { display: none; }
  .pd-l { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.1; }
  .pd-l b { display: block; font-family: var(--display); font-size: 12px; color: var(--text); }
  .pd-l .today { color: var(--pop); } .pd-l .today b { color: var(--pop); }
  .pc-card { border: 2px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--tint) 55%, var(--card)); padding: 8px 12px; margin-bottom: 10px; box-shadow: 2px 2px 0 var(--line); }
  .pc-name { font-size: 15px; font-weight: 800; }
  .pc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; padding: 7px 0; border-top: 1.5px dashed color-mix(in srgb, var(--line) 25%, transparent); }
  .pc-row .pc-dots { grid-column: 1 / -1; }
  .pc-name + .pc-row { border-top: 0; }
  .pc-kind { font-size: 13px; font-weight: 600; line-height: 1.15; }
  .pc-kind small { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
  .pc-sum { font-family: var(--mono); font-size: 12px; text-align: right; }
  .pc-sum.full { font-weight: 600; }

  /* E. Day checklist */
  .dv-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .calm .dv-day { display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); border: 2px solid var(--line); border-radius: 12px; padding: 4px 0 6px; background: var(--card); }
  .dv-day b { font-family: var(--display); font-size: 15px; color: var(--text); }
  .dv-day i { width: 70%; height: 5px; border-radius: 99px; margin-top: 3px; background: linear-gradient(90deg, var(--go) var(--p), color-mix(in srgb, var(--muted) 25%, transparent) 0); }
  .calm .dv-day.fut { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
  .dv-day.fut i { opacity: 0; }
  .calm .dv-day.today { border-color: var(--pop); }
  .calm .dv-day.sel { background: var(--line); color: var(--bg); } .dv-day.sel b { color: var(--bg); }
  .dv-when { font-weight: 800; font-size: 16px; margin: 14px 0 6px; }
  .dv-group { border-left: 6px solid var(--tint); padding-left: 10px; margin: 10px 0; }
  .dv-group > b { font-size: 13px; }
  .dv-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; }
  .dv-box { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; display: grid; place-content: center; font-size: 12px; font-weight: 800; }
  .dv-item.ok .dv-box { background: var(--go); color: #062b16; }
  .dv-item:not(.ok) span:nth-child(2) { color: var(--muted); }
  .dv-n { font-family: var(--mono); font-size: 12px; }
  .dv-empty { color: var(--muted); padding: 14px 0; }

  /* F. Week rings */
  .rg-group { margin-bottom: 10px; }
  .rg-group > b { font-size: 13px; font-weight: 800; border-bottom: 4px solid var(--tint); }
  .rg-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
  .rg { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 6px 8px; background: var(--card); }
  .rg svg { grid-row: 1 / 3; width: 44px; height: 44px; }
  .rg .bg, .rg .fg { fill: none; stroke-width: 6; } .rg .bg { stroke: color-mix(in srgb, var(--muted) 25%, transparent); }
  .rg .fg { stroke-linecap: round; }
  .rg-n { font-weight: 800; font-size: 17px; line-height: 1; } .rg-n small { font-size: 11px; color: var(--muted); font-weight: 600; }
  .rg-k { font-size: 11px; line-height: 1.15; color: var(--muted); }

  /* G. Heat strips */
  .ht-key { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; }
  .ht-key i, .ht-cells i { display: block; aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--go) var(--p), color-mix(in srgb, var(--muted) 15%, transparent)); }
  .ht-key i { width: 10px; }
  .ht-key .ht-wk { margin-left: auto; border-bottom: 2px solid var(--line); }
  .ht-group { margin-bottom: 8px; }
  .ht-group > b { font-size: 13px; font-weight: 800; border-bottom: 4px solid var(--tint); }
  .ht-row { display: grid; gap: 4px; padding: 5px 0; }
  .ht-k { font-size: 13px; font-weight: 600; line-height: 1.1; } .ht-k small { margin-left: 6px; font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--muted); }
  .ht-cells { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
  .ht-cells i.fut { background: transparent; outline: 1px dashed color-mix(in srgb, var(--muted) 40%, transparent); outline-offset: -1px; }
  .ht-cells i.wk { box-shadow: 0 2px 0 var(--line); }
  .ht-cells i.today { outline: 1.5px solid var(--pop); outline-offset: 0; }
}

/* /cal-platform.css */
/* The challenge calendar (cal-platform.js): a card per platform plus Commitments, one week at a time. */
.pcal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; cursor: pointer; }
.pcal .cw-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pcal .cw-title { font-weight: 800; font-size: 16px; text-align: center; }
.pcal .cw-nav button { width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); box-shadow: 2px 2px 0 var(--line); font-size: 16px; }
.pcal .cw-nav button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.pcal .cw-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pcal .cw-track::-webkit-scrollbar { display: none; }
.pcal .cw { flex: 0 0 100%; scroll-snap-align: start; padding: 0 6px 6px 0; overflow: hidden; }
.pcal .cw-pips { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.pcal .cw-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.pcal .cw-pips i.on { background: var(--line); }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Two packed columns; the last card in each stretches so both end level, and the goal rows keep their own height (task #154) */
.pk-colm { display: flex; flex-direction: column; gap: 14px; }
.pk-colm .pc-card:last-child { flex: 1; }
.pc-card { border: 2px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--tint) 55%, var(--card)); padding: 10px 12px 6px; box-shadow: 2px 2px 0 var(--line); }
.pc-card.general { background: var(--card); border-style: dashed; }
.pk-top { display: grid; gap: 6px; }
.pc-name { font-size: 15px; font-weight: 800; }
.pk-days, .pc-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; align-items: center; }
.pcal .pk-d { display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.1; padding: 1px 0; border-radius: 6px; width: 100%; }
.pk-d b { font-family: var(--display); font-size: 12px; color: var(--text); }
/* #3974: the day button's name is its content, "Day 7, M7": the visible letter and date are part of it (an aria-label "Day 7" left them out) */
.pk-d .pk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pcal .pk-d.today { background: var(--pop); color: var(--on-pop); } .pk-d.today b { color: var(--on-pop); }
.pcal .pk-d.fut { cursor: default; }
/* A day is its whole column; hover or keyboard focus highlights it (same look as the design system's .zz-col) */
.pc-card { position: relative; }
.pc-card.col-on { cursor: pointer; }
.pk-col { position: absolute; bottom: 4px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: color-mix(in srgb, var(--text) 9%, transparent); border: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent); }
.pc-card.col-on .pk-col { opacity: 1; }
.pcal .pk-d:focus-visible { outline: none; }
.pc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; padding: 7px 0; border-top: 1.5px dashed color-mix(in srgb, var(--line) 25%, transparent); }
.pc-row .pc-dots { grid-column: 1 / -1; }
.pc-kind { font-size: 13px; font-weight: 600; line-height: 1.15; }
.pc-kind small { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pc-sum { font-family: var(--mono); font-size: 12px; text-align: right; }
.pc-sum.full { font-weight: 600; }
/* #1866: the week's count sits centred over the last day's circle: the row uses the circles' 7 columns */
.pc-row { grid-template-columns: repeat(7, 1fr); column-gap: 4px; }
.pc-row .pc-kind { grid-column: 1 / 7; }
.pc-row .pc-sum { grid-column: 7; justify-self: center; text-align: center; white-space: nowrap; }
.pc-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); }
.pc-dots i.on { background: var(--line); }
.pc-dots i.part { background: conic-gradient(var(--line) var(--p), var(--card) 0); }
.pc-dots i.miss { border-color: var(--pop); }
.pc-dots i.fut { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
/* #181: a met goal carries a checkmark, so done reads without colour. Light ink on the dark fill, dark ink on the light fill */
.pc-dots i { position: relative; }
/* #204: a met goal is a green sticker that pops out of the row, with a bold dark tick inside (owner picked version 3) */
.pc-dots i.on { z-index: 1; background: var(--go); border: 2px solid var(--line); transform: scale(1.4); box-shadow: 1px 1px 0 var(--line); }
.pc-dots i.on::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--line);
  -webkit-mask: var(--tick) center / 100% 100% no-repeat; mask: var(--tick) center / 100% 100% no-repeat;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5 10 17 18.5 7.5' fill='none' stroke='%23000' stroke-width='3.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* #3088: one card (a challenge with a single platform) spans the whole width */
.pk-grid.pk-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .pk-grid { grid-template-columns: 1fr; gap: 10px; } .pk-colm { display: contents; } }
/* #182: a weekly goal's circles, one per time a week, each with the day it happened under it */
/* #215: the slots sit on the same 7 columns as the day circles, slot 1 under the first day, slot 2 under the second, so every circle in a card lines up */
.pc-dots.pc-slots { align-items: start; }
.pc-slot { display: grid; justify-items: center; gap: 2px; min-width: 0; font: 400 10px var(--mono); color: var(--muted); }
.pc-slot:has(.on) { color: var(--text); }

/* /design-system/components.css */
/* ZazaG Dev design system components. Use with tokens.css. Every class starts with zz- so it can sit beside a page's own CSS. */

/* Page ground: cream paper with a dot grid */
.zz-page { background: var(--bg); color: var(--text); font-family: var(--display); font-size: var(--fs-body); line-height: var(--fs-bodyLineHeight);
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.zz-h1 { font-weight: var(--fs-headingWeight); font-size: var(--fs-hero); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); text-wrap: balance; }
.zz-h2 { font-weight: var(--fs-headingWeight); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--fs-headingTracking); text-wrap: balance; }
.zz-h3 { font-weight: var(--fs-headingWeight); font-size: var(--fs-h3); letter-spacing: -.01em; }
.zz-label { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }

/* Highlight: a pastel box behind one word of a headline */
.zz-hl { display: inline-block; line-height: 1.04; padding: .02em .14em .08em; border-radius: var(--r-sm); background: var(--yt); }
.zz-hl.alt { background: var(--lx); }

/* Sticker card: ink outline, hard shadow, lifts on hover */
.zz-card { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s4);
  transition: transform var(--ease-hover), box-shadow var(--ease-hover); }
.zz-card.lift:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: var(--shadow-lifted); }
.zz-card.tint-yt { background: var(--yt); } .zz-card.tint-lx { background: var(--lx); } .zz-card.tint-rd { background: var(--rd); }
.zz-card.tint-li { background: var(--li); } .zz-card.tint-x { background: var(--x); }
.zz-card.dashed { border-style: dashed; }

/* Buttons */
.zz-btn { display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--display); color: var(--on-pop); background: var(--pop); border: var(--bw-card) solid var(--line);
  border-radius: var(--r-pill); padding: 12px 24px; box-shadow: var(--shadow); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.zz-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.zz-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.zz-btn.ghost { background: var(--card); color: var(--text); }
.zz-btn.small { font-size: 13px; padding: 4px 12px; box-shadow: var(--shadow-small); }
.zz-btn:focus-visible, .zz-switch:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Text and email inputs */
.zz-input { display: block; width: 100%; min-width: 0; font: 500 var(--fs-body) var(--display); color: var(--text); background: var(--card);
  border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 10px var(--s3); box-shadow: var(--shadow-small); }
.zz-input::placeholder { color: var(--muted); opacity: 1; }
.zz-input:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Chips and status pills */
.zz-chip { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500; border: var(--bw-chip) solid var(--line); border-radius: var(--r-chip); padding: 0 6px; line-height: 18px; color: var(--text); background: var(--card); }
.zz-chip.yt { background: var(--yt); } .zz-chip.lx { background: var(--lx); } .zz-chip.rd { background: var(--rd); } .zz-chip.li { background: var(--li); } .zz-chip.x { background: var(--x); }
.zz-status { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500; border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 10px; display: inline-block; color: var(--text); }
.zz-status.active { background: var(--go); color: #062b16; } .zz-status.planned { background: var(--lx); } .zz-status.completed { background: var(--rd); }

/* Day badge: the round, tilted counter */
.zz-badge { width: 150px; height: 150px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); box-shadow: var(--shadow);
  display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.zz-badge b { font-size: 60px; line-height: .9; } .zz-badge span { font-family: var(--mono); font-size: 13px; }

/* Sun and moon switch: the knob slides to the one in use */
.zz-switch { position: relative; width: 62px; height: 32px; padding: 0 7px; border-radius: var(--r-pill); border: var(--bw-card) solid var(--text); background: var(--card);
  display: inline-flex; align-items: center; justify-content: space-between; cursor: pointer; }
.zz-switch svg { width: 15px; height: 15px; position: relative; z-index: 1; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.zz-switch .sun circle { fill: #ffc233; } .zz-switch .moon path { fill: #c9b8ff; }
.zz-switch .knob { position: absolute; top: 3px; left: 3.5px; /* centre on the 15px icon: 7px padding + 7.5px - 11px */ width: 22px; height: 22px; border-radius: 50%; background: var(--rd); border: var(--bw-card) solid var(--line); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
:root[data-theme="dark"] .zz-switch .knob { background: var(--x); transform: translateX(29px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zz-switch .knob { background: var(--x); transform: translateX(29px); } }

/* Today bar */
.zz-today { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow); padding: 6px 14px; font-family: var(--mono); font-size: 13px; }
.zz-today .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); }
.zz-today b { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.zz-today { white-space: nowrap; max-width: 100%; }
.zz-today .bar { width: 90px; height: 8px; border: var(--bw-chip) solid color-mix(in srgb, var(--text) 55%, transparent); border-radius: var(--r-pill); overflow: hidden; }
.zz-today .bar i { display: block; height: 100%; background: var(--go); }
.zz-today .sum { color: var(--muted); } /* Progress look, the site's Today bar (owner, 2026-10-08) */
@media (max-width: 760px) { .zz-today .bar { width: 60px; } }

/* Platform calendar card: a row per goal, the week's total, 7 day dots */
.zz-pcard { border: var(--bw-card) solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--tint, var(--yt)) 55%, var(--card)); padding: 10px 12px 6px; box-shadow: var(--shadow-small); }
.zz-pcard.personal { background: var(--card); border-style: dashed; }
.zz-pcard .name { font-size: 15px; font-weight: 800; }
.zz-pcard .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; padding: 7px 0; border-top: var(--bw-chip) dashed color-mix(in srgb, var(--line) 25%, transparent); }
.zz-pcard .kind { font-size: 13px; font-weight: 600; } .zz-pcard .kind small { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.zz-pcard .sum { font-family: var(--mono); font-size: 12px; }
.zz-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.zz-dots i { width: 16px; height: 16px; border-radius: 50%; border: var(--bw-chip) solid var(--line); background: var(--card); }
.zz-dots i.on { background: var(--line); }
.zz-dots i.part { background: conic-gradient(var(--line) var(--p, 50%), var(--card) 0); }
.zz-dots i.miss { border-color: var(--pop); }
.zz-dots i.fut { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
:root[data-theme="dark"] .zz-dots i.on { background: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zz-dots i.on { background: var(--text); } }
/* A day is its whole column (day button plus that day's dots). Script places .zz-col over the column
   under the pointer or the keyboard-focused day, and adds .col-on to the card while a day can open. */
.zz-pcard { position: relative; }
.zz-pcard.col-on { cursor: pointer; }
.zz-col { position: absolute; bottom: 4px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: color-mix(in srgb, var(--text) 9%, transparent); border: var(--bw-chip) solid color-mix(in srgb, var(--text) 45%, transparent); }
.zz-pcard.col-on .zz-col { opacity: 1; }

/* Follower count sticker */
.zz-count { border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s3); background: var(--yt); transform: rotate(-1deg); }
.zz-count .n { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; margin: var(--s2) 0 2px; }
.zz-count .d { display: inline-block; margin-top: var(--s2); background: var(--card); border: var(--bw-chip) solid var(--line); border-radius: 8px; padding: 0 6px; font-family: var(--mono); font-size: 12px; }

/* Press-in motion for stickers entering the page; respects nothing being hidden at rest */
.zz-press { transform: translate(-8px, -14px) rotate(calc(var(--ease-tilt) * -1)) scale(1.05); transition: transform var(--ease-press), box-shadow var(--ease-press); }
.zz-press.in { transform: none; }

/* Live sticker cursor (cursor.js): the page draws the arrow; the system cursor hides once a mouse moves */
@media (pointer: fine) {
  html.zz-cursor-on, html.zz-cursor-on * { cursor: none !important; }
  html.zz-cursor-on :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), textarea, [contenteditable="true"]) { cursor: text !important; }
}
.zz-cursor { position: fixed; left: 0; top: 0; width: 32px; height: 34px; pointer-events: none; z-index: 2147483647;
  transform-origin: 5px 3px; opacity: 0; transition: opacity .15s; will-change: transform; }
.zz-cursor.on { opacity: 1; }

/* Orange glow that remembers (dots.js, class zz-glow): a canvas behind the page that lights the background dots */
.zz-glow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* <style> in the head of /index.html */
body.cal-d .weeks { display: none; }

/* <style> in the head of /index.html */
.site-kicker { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: var(--s3); }

/* /daylog.css */
/* #209: the Daily log as separate lines, and its every-day modal */
.entry.dl { grid-template-columns: 96px 1fr; align-items: start; }
.dl-body { display: grid; gap: 8px; }
.dl-note { margin: 0; font-weight: 700; }
.dl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.dl-items li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 6px 4px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--tint) 60%, var(--card)); font-size: 14px; font-weight: 600; }
.dl-items li span { flex: 1; }
.dl-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--go); border: 1.5px solid var(--line); }
/* #1131: a goal counted but short of its target, the calendar's missed look */
.dl-dot.miss { background: transparent; border-color: var(--pop); }
.dl-open { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--card);
  border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.dl-open:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.dl-open:focus-visible, .dl-more:focus-visible, .dl-close:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #2576: a line with several posts, one numbered chip per post ("1 ↗", "2 ↗") */
.dl-chips { flex: none; display: flex; gap: 6px; }
/* #3644: the line's text keeps one line ("5 posts on X") and the chips drop under it when the tile is too narrow */
.dl-items li:has(.dl-chips) { flex-wrap: wrap; }
.dl-items li:has(.dl-chips) > span:not(.dl-chips) { min-width: max-content; }
.dl-items li .dl-chips { flex: none; flex-wrap: wrap; }
.dl-chip { height: 28px; padding: 0 9px; border-radius: 14px; display: inline-flex; align-items: center; gap: 2px; font: 800 13px var(--display); color: var(--text);
  text-decoration: none; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.dl-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.dl-chip:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.dl-none { margin: 0; color: var(--muted); }
.dl-more { justify-self: start; font: 700 15px var(--display); color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 99px;
  padding: 8px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dl-more:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
/* Centred in the viewport whatever the scroll position (the site resets every margin to 0, which pins a dialog to the top left) */
.dl-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 2px solid var(--line); border-radius: 18px;
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lifted); }
.dl-modal::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.dl-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  background: var(--card); border-bottom: 2px solid var(--line); }
.dl-head h3 { margin: 0; font-size: 22px; } .dl-head small { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; }
.dl-close { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--card);
  border: 2px solid var(--line); box-shadow: var(--shadow-small); cursor: pointer; }
.dl-list { display: grid; gap: 10px; padding: 16px; }
/* #1009: only the day list scrolls, under the fixed title bar, with a thin scrollbar in the site's colours set in from the
   modal's rounded corners (owner, 2026-10-18) */
.dl-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.dl-modal .dl-head { position: static; flex: none; }
.dl-modal .dl-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 6px 12px 0; padding-bottom: 4px; }
/* Firefox takes the standard properties; Chrome ignores its own scrollbar styling (and keeps the arrows) when they are set */
@supports not selector(::-webkit-scrollbar) { .dl-modal .dl-list { scrollbar-width: thin; scrollbar-color: var(--muted) transparent; } }
.dl-list::-webkit-scrollbar { width: 8px; }
.dl-list::-webkit-scrollbar-button { display: none; }
.dl-list::-webkit-scrollbar-track { background: transparent; }
.dl-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: var(--r-pill); }
.dl-list::-webkit-scrollbar-thumb:hover { background: var(--pop); }
@media (max-width: 760px) {
  .entry.dl { grid-template-columns: 1fr; }
  .dl-items { grid-template-columns: 1fr; }
  .dl-modal { width: calc(100vw - 24px); max-height: 88dvh; }
}

/* /pause.css */
/* #1129: a platform paused on purpose: the Paused pill and info button on its day-card box and calendar card, the pause dot,
   and the dated note in the Daily log. Every colour and size from the design-system tokens. */
.pz-pill { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font: 500 var(--fs-micro) var(--mono); color: var(--text); background: var(--x);
  border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 8px; line-height: 16px; white-space: nowrap; letter-spacing: 0; }
.pz-pill svg { flex: none; }
/* #1133: one size for every info button on the cards, 22px, centred on its label's line, with an invisible 34px tap area */
.pz-info, .pcal button.pz-info { position: relative; flex: none; display: inline-grid; place-items: center; vertical-align: middle; width: 22px; height: 22px; margin: 0 0 0 6px; padding: 0;
  border-radius: 50%; cursor: pointer; font: 700 var(--fs-label) var(--display); line-height: 1; color: var(--text); background: var(--card); border: var(--bw-chip) solid var(--line); box-shadow: var(--shadow-small); }
.pz-info::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.daycard .dc-grp h4:has(.pz-info), .daycard .dc-g small:has(.pz-info) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
/* The button is taller than the label's line; pulling it in keeps the label on the same line height as the tiles beside it */
.daycard .dc-g small .pz-info { margin-block: -3px; }
.pz-info:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.pz-tip { position: fixed; z-index: 50; max-width: min(300px, calc(100vw - 32px)); padding: var(--s2) var(--s3); font-size: var(--fs-small); line-height: 1.4;
  color: var(--text); background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); pointer-events: none; }
.pz-tip[hidden] { display: none; }

/* Day card */
.daycard .dc-grp h4 .pz-pill { margin-left: 4px; }
.daycard .dc-g.pz { background: var(--card); border-style: dashed; }
.daycard .dc-g.pz b { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.pz-short { margin: 8px 2px 0; font-size: var(--fs-label); line-height: 1.35; color: var(--text); }

/* Calendar: the pause dot, a hollow dashed circle with two bars, and the pill beside the card's name */
.pc-dots i.pz { position: relative; border: var(--bw-chip) dashed var(--muted); background: var(--card); }
.pc-dots i.pz::before, .pc-dots i.pz::after { content: ""; position: absolute; top: 4px; width: 2px; height: 5px; border-radius: 1px; background: var(--muted); }
.pc-dots i.pz::before { left: 4px; } .pc-dots i.pz::after { right: 4px; }
.pk-top.pz-top { grid-template-columns: auto 1fr; align-items: center; }
.pk-top.pz-top .pk-days { grid-column: 1 / -1; }
.pz-calnote { display: inline-flex; align-items: center; margin-left: 6px; }

/* Daily log */
.dl-items li.pz-li { color: var(--muted); border-style: dashed; }
.pz-lognote { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; border: var(--bw-chip) dashed var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--x) 45%, var(--card)); }
.pz-lognote p { margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.pz-lognote .pz-pill { margin-top: 1px; }
/* #1131: the reason a goal was missed. Still a miss: the orange edge that marks a missed day, never the pause look */
.pz-lognote.why-note { background: var(--card); border-color: var(--pop); }
.pz-pill.why-pill { background: var(--card); border-color: var(--pop); }
.why-dot { display: inline-flex; align-items: center; gap: 2px; }
.pcal button.pz-info.why-info { margin: 0; }
@media (max-width: 560px) { .pz-lognote { grid-template-columns: 1fr; } .pz-lognote .pz-pill { justify-self: start; } }

/* /stamp.css */
/* #1622: a stamped day (entry.stamp): the goal boxes blur, the header and follower numbers stay sharp, the stamps sit on top */
.daycard .dc-stamped { grid-column: 1 / -1; position: relative; }
.daycard .dc-stamped .dc-groups { filter: blur(5px); pointer-events: none; user-select: none; }
.daycard .dc-stamp { position: absolute; inset: 0; pointer-events: none; color: var(--pop); }
.daycard .dc-stamp svg { position: absolute; display: block; height: auto; overflow: visible; }
.daycard .dc-stamp text { font-family: inherit; font-weight: 700; }
.daycard .dc-big { left: 50%; top: 40%; width: min(84%, 440px); transform: translate(-50%, -50%) rotate(-12deg); }
.daycard .dc-seal { left: 80%; top: 80%; width: clamp(110px, 26%, 170px); transform: translate(-50%, -50%) rotate(14deg); }
@media (min-width: 900px) { .daycard .dc-seal { left: 87%; top: 66%; } }

/* /finished.css */
/* #2819: the finished-challenge look. Colours, fonts and spacing come from the design tokens (design-system/tokens.css). */

/* The page's state. data.js sets data-challenge on <html> (live or done) and prerender.mjs writes it into the static HTML,
   so these hold from the first paint. live-only parts vanish once the challenge is finished, done-only ones show only then. */
html[data-challenge="done"] .live-only { display: none !important; }
html:not([data-challenge="done"]) .done-only { display: none !important; }

/* The round seal: red ink when finished, green while running, plain ink when planned */
.fin-seal { display: block; width: 100%; height: auto; font-family: var(--display); color: var(--pop); }
.fin-seal-live { color: var(--go-ink); }
.fin-seal-soon { color: var(--text); }
/* The finished seal's band text is dark ink: white on the orange fails contrast (tokens.json, on-pop). The live and planned seals keep var(--card). */
.fin-seal-done .fin-band { fill: var(--on-pop); }

/* Challenge page header: the seal at the top right of the title, a short facts row and a link back to the list */
html[data-challenge="done"] .chead { position: relative; }
html[data-challenge="done"] .chead h1 { padding-right: clamp(96px, 16vw, 168px); text-wrap: balance; }
.fin-sealbox { position: absolute; right: 0; top: var(--s3); width: clamp(96px, 16vw, 168px); transform: rotate(12deg); pointer-events: none; }
.fin-all { display: inline-block; margin-top: var(--s3); font-family: var(--mono); font-size: var(--fs-small); color: var(--text); text-decoration: underline; }

/* Section headings of the finished page: The result, What I did, Every day */
.fin-h { margin-top: var(--s5); }
#body > .fin-h:first-child { margin-top: var(--s4); }

/* What I did: a tinted box per goal group, each goal with its score and a thin bar */
.fin-goals { columns: 3 240px; column-gap: var(--s3); }
.fin-grp { break-inside: avoid; margin-bottom: var(--s3); background: var(--tint); border: var(--bw-card) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-small); padding: var(--s3); }
.fin-grp h4 { font-weight: 800; font-size: var(--fs-body); margin-bottom: var(--s2); }
.fin-g { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s2); align-items: baseline; padding: var(--s2) 0; border-top: var(--bw-chip) dashed color-mix(in srgb, var(--line) 35%, transparent); }
.fin-g:first-of-type { border-top: 0; }
.fin-gn { font-size: var(--fs-small); font-weight: 600; }
.fin-g b { font-weight: 800; font-size: calc(var(--fs-body) * 1.15); }
.fin-g b small { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; color: var(--muted); }
.fin-bar { grid-column: 1 / -1; height: var(--s2); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); background: var(--card); overflow: hidden; }
.fin-bar i { display: block; height: 100%; background: var(--go); }

/* The result strip: a tinted tile per platform, the start struck through, the end big, the gain in a pill */
.fin-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s4); }
.fin-s { display: flex; flex-direction: column; gap: var(--s1); background: var(--tint); border: var(--bw-card) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); color: var(--text); }
.fin-s small { font-family: var(--mono); font-size: var(--fs-label); }
.fin-ft { display: flex; align-items: baseline; gap: var(--s1); flex-wrap: wrap; }
.fin-ft s { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); }
.fin-ft i { font-style: normal; font-weight: 800; }
.fin-ft b { font-weight: 800; font-size: calc(var(--fs-h3) * 1.3); letter-spacing: var(--fs-headingTracking); line-height: 1; }
.fin-s em { font-style: normal; align-self: flex-start; font-family: var(--mono); font-size: var(--fs-label); background: var(--card); border: var(--bw-chip) solid var(--line); border-radius: var(--r-sm); padding: 0 var(--s1); }

/* Home hero: the big seal where the live card sits, the challenge title in mono under it, the whole thing one link */
.fin-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s3) 0; color: var(--text); text-decoration: none; }
.fin-hero .fin-seal { width: min(260px, 70%); transform: rotate(-10deg); transition: transform var(--ease-hover); }
.fin-hero:hover .fin-seal { transform: rotate(-4deg) scale(1.04); }
.fin-hero span { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); text-align: center; }

/* The compact finished card (home feature card and Past challenges): small seal left, title, dates, link line, then the strip */
.feature .fin-top { justify-content: flex-start; align-items: center; gap: var(--s4); flex-wrap: nowrap; }
.fin-sealsm { width: clamp(84px, 12vw, 120px); flex: none; transform: rotate(-10deg); }
.fin-dates { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); margin-top: var(--s1); text-wrap: balance; }
.feature .fin-top .title { text-wrap: balance; }
/* With the intro line gone (live-only), the Challenges heading keeps its gap to the card */
html[data-challenge="done"] #challenges > h2 { margin-bottom: var(--s4); }
.feature .fin-top .own-page { display: inline-block; margin-top: var(--s2); }
.fin-card { display: block; color: var(--text); text-decoration: none; }
.fin-card .fin-strip { margin-top: var(--s4); }
.others .fin-strip { grid-template-columns: repeat(2, 1fr); }
/* Past challenges shows only when it holds a card */
.more-ch:has(#others:empty) { display: none; }

/* The challenges list: a shelf of tiles. A finished or running tile has the seal, the title, the total followers gained as one
   big number and a small tinted card per platform; a planned one has the seal, the title and its start date. */
.fin-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.fin-tile { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4) var(--s3); color: var(--text); text-decoration: none; transition: transform var(--ease-hover), box-shadow var(--ease-hover); }
a.fin-tile:hover { transform: translate(calc(var(--s1) * -.5), calc(var(--s1) * -.5)); box-shadow: var(--shadow-lifted); }
.fin-tseal { width: 150px; transform: rotate(-8deg); margin-bottom: var(--s2); }
.fin-tt { font-weight: 800; font-size: calc(var(--fs-body) * 1.25); line-height: 1.1; }
.fin-when { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
/* #3056: a planned tile's goals line, a step up from the small mono lines so it reads at a glance */
.fin-goal { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.fin-total { display: flex; flex-direction: column; align-items: center; margin-top: var(--s2); }
.fin-total b { font-weight: 800; font-size: calc(var(--fs-h3) * 2); line-height: 1; letter-spacing: var(--fs-headingTracking); }
.fin-total span { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.fin-mini { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); width: 100%; margin-top: var(--s2); }
.fin-m { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); text-align: left; background: var(--tint); border: var(--bw-chip) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-small); padding: var(--s2); }
.fin-m small { font-family: var(--mono); font-size: var(--fs-micro); }
.fin-m b { font-weight: 800; font-size: calc(var(--fs-body) * 1.15); line-height: 1.1; }
.fin-m span, .fin-m em { font-family: var(--mono); font-size: var(--fs-micro); font-style: normal; color: var(--muted); }
.fin-tile.empty { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; }
.fin-tile.empty .fin-tseal { aspect-ratio: 1; transform: none; border: calc(var(--bw-card) * 1.5) dashed color-mix(in srgb, var(--line) 40%, transparent); border-radius: 50%; }
.fin-tile.empty .fin-tt { color: var(--muted); }
/* In dark the ink border is the same as the background, so the empty tile uses the muted colour (as the design system's empty slots do) */
:root[data-theme="dark"] .fin-tile.empty { border-color: var(--muted); }
:root[data-theme="dark"] .fin-tile.empty .fin-tseal { border-color: color-mix(in srgb, var(--muted) 60%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fin-tile.empty { border-color: var(--muted); }
  :root:not([data-theme="light"]) .fin-tile.empty .fin-tseal { border-color: color-mix(in srgb, var(--muted) 60%, transparent); }
}

/* Keyboard focus: the house ring */
.fin-tile:focus-visible, .fin-hero:focus-visible, .fin-card:focus-visible, .fin-all:focus-visible, .fin-top .own-page:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }

/* A seal drawn under about 110px wide cannot hold the ring text at 11px, so only the FINISHED band stays: the home card's small
   seal is 84px to 120px wide (12vw), the challenge page seal 96px to 168px (16vw) */
@media (max-width: 915px) { .fin-sealsm .fin-ring { display: none; } }
@media (max-width: 689px) { .fin-sealbox .fin-ring { display: none; } }

@media (max-width: 760px) {
  .fin-sealbox { top: var(--s2); }
  .fin-strip { grid-template-columns: 1fr 1fr; }
  .fin-ft b { font-size: calc(var(--fs-h3) * 1.05); flex-basis: 100%; }
  .fin-s small span { display: block; }
}

/* /road.css */
/* #3088: the road card and the challenge tile of a challenge with a follower target (road.js). Token values only (design-system/tokens.css). */

/* The road: a track from 0 to the target with tick labels, in the card and, smaller, in the tile */
.road-track { position: relative; height: 26px; margin-top: var(--s3); background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-small); overflow: hidden; }
.road-track i { position: absolute; inset: 0 auto 0 0; background: var(--pop); border-right: var(--bw-card) solid var(--line); }
.road-ticks { position: relative; height: 20px; margin-top: var(--s1); font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.road-ticks span { position: absolute; top: 0; transform: translateX(-100%); }
.road-track.sm { height: 14px; margin-top: var(--s2); }
.road-ticks.sm { height: 16px; font-size: var(--fs-micro); }

/* The road card at the top of the challenge page and the home page's challenge section */
.road { margin: var(--s4) 0; }
.road-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.road-big b { font-family: var(--display); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--fs-headingTracking); color: var(--pop); }
.road-big span { font-size: var(--fs-h3); font-weight: 600; }
.road-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); font-size: var(--fs-body); }
.road-stats b { font-size: var(--fs-h3); }

/* The tile on /challenges/ */
.road-tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: var(--s2); margin-top: var(--s2); width: 100%; }
.road-tile .road-track, .road-tile .road-ticks { width: 100%; }
.road-tn { font-size: var(--fs-small); }
.road-tn b { font-size: var(--fs-h3); }

/* /apps/app-cards.css */
/* The app cards (#2122, #2124): the /apps/ lists and the home page's Apps section (#2125) share them.
   Each card is the design system's sticker card (zz-card lift); --accent is the app's own colour. */
.k-btn { font-weight: 700; border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 10px 18px; background: var(--accent, var(--pop)); color: var(--on-screen); box-shadow: 3px 3px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.k-btn.ghost { background: var(--card); color: var(--text); }
.k-btn.soon { background: var(--pop); color: var(--on-pop); }
/* #2177, #2183: the platform's mark before the label */
.k-btn:has(.k-ico) { display: inline-flex; align-items: center; gap: 8px; }
.k-ico { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
a.k-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }

.k-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.k-tile { position: relative; display: flex; gap: var(--s3); align-items: flex-start; }
.k-tile img { width: 72px; height: 72px; border-radius: 16px; border: var(--bw-card) solid var(--line); flex: none; }
.k-tile h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0; }
.k-tile p { color: var(--muted); margin: 4px 0 8px; }
.k-tile span { font-family: var(--mono); font-size: 12px; }
/* The name's link covers the card; the card's own buttons sit above it */
.k-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.k-open:focus-visible { outline: none; } .k-tile:has(.k-open:focus-visible) { outline: 3px solid var(--pop); outline-offset: 3px; }
.k-tlinks { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.k-tile .k-tlinks .k-btn { font-family: var(--display); font-size: 14px; padding: 6px 14px; }
.k-feat { margin-bottom: var(--s4); align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4); }
.k-feat-name { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; }
.k-feat-name img { width: 96px; height: 96px; border-radius: 22px; }
.k-feat h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1; letter-spacing: -.03em; }
.k-feat p { font-size: 18px; max-width: 46ch; }
.k-tile .k-badge { display: inline-block; font-weight: 700; background: var(--accent); color: var(--on-pop); /* #3974: 2.8:1 with the light text on the orange accent; needs a light accent behind it */ border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; }
.k-feat-pics { display: flex; gap: var(--s3); flex: none; }
.k-feat-pics img { width: 150px; height: auto; align-self: flex-start; border-radius: 16px; box-shadow: 3px 3px 0 var(--line); }
.k-feat-pics img:nth-child(1) { transform: rotate(-4deg); } .k-feat-pics img:nth-child(2) { transform: rotate(4deg); margin-top: var(--s4); }
/* #3574: the wide card's picture fills the right side, where the featured game has its phones */
.k-wide .k-feat-text { flex: 1 1 0; min-width: 0; }
.k-wide-pic { flex: 0 1 52%; min-width: 0; }
.k-wide-pic img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 3px 3px 0 var(--line); }
/* Home (#2125): a few apps, then the way to the rest */
.k-more { display: inline-block; margin-top: var(--s4); color: var(--on-pop); } /* #3974: on the orange, the light text was 2.2:1 */

@media (max-width: 760px) {
  .k-shelf { grid-template-columns: 1fr; }
  .k-feat { flex-direction: column; align-items: flex-start; padding: var(--s3); }
  .k-feat-name img { width: 72px; height: 72px; border-radius: 16px; }
  .k-feat-pics img { width: 120px; }
  .k-wide-pic { flex: none; width: 100%; }
}

/* #3645: the waitlist form inside a list card, above the card's stretched link; the card's own span and p rules stay off it */
.k-tform { position: relative; z-index: 1; margin-top: var(--s3); }
.k-tform .k-wait { margin: 0; max-width: none; }
.k-tile .k-wait span, .k-tile .k-wait p { font-family: inherit; font-size: inherit; margin: 0; color: inherit; }
.k-tile .k-wait .k-wait-sub, .k-tile .k-wait .k-wait-note { font-size: var(--fs-small); color: var(--muted); }
.k-tile .k-wait .k-wait-sub { margin-top: 2px; }
.k-tile .k-wait .k-wait-note { margin-top: var(--s2); }
.k-tile .k-wait .k-wait-msg { margin-top: var(--s2); font-size: var(--fs-small); }
.k-tile .k-wait .k-wait-msg:empty { margin: 0; }
.k-tile .k-wait .k-wait-msg.ok { margin-top: 0; font-size: var(--fs-body); color: var(--go-ink); }
.k-tile .k-wait .k-wait-news { font-size: var(--fs-small); }
.k-tile .k-wait .k-wait-news span { font-size: var(--fs-small); }
.k-tile .k-wait-badge svg { display: block; }
.k-tile .k-wait-label { font-size: var(--fs-body); }
.k-tile:has(.k-tform) { flex-wrap: wrap; }
.k-tile:has(.k-tform) > div:first-of-type { flex: 1 1 0; min-width: 0; }
.k-tform { flex: 1 1 100%; border-top: 2px dashed var(--line); padding-top: var(--s3); }
/* the card already frames the form: no second frame inside it */
.k-tform .k-wait.zz-card { border: 0; box-shadow: none; background: none; padding: 0; }
.k-nb { white-space: nowrap; }

/* /site-menu.css */
/* The shared menu (#2125): the desktop bar's current page, the phone burger, and the full-screen
   card menu that site-menu.js builds (design A from #2127). Colours, sizes and motion from the tokens. */
nav .links a[aria-current="page"] { background: var(--lx); }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border: var(--bw-card) solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-small);
  place-content: center; gap: 4px; }
.menu-btn i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--text); }
.menu-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.menu-btn:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
@media (max-width: 760px) {
  nav .links > a, nav .links > .theme-switch { display: none; }
  .menu-btn { display: grid; }
}
html.sm-lock { overflow: hidden; }

.site-menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: 14px 16px 18px; overflow-y: auto; color: var(--text);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.site-menu[hidden] { display: none; }
.site-menu.open { opacity: 1; }
.sm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.sm-title { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
/* #2128: the X looks exactly like the burger and site-menu.js places it on the burger's measured spot */
.sm-top { min-height: 40px; }
.sm-close { position: absolute; z-index: 1; width: 40px; height: 40px; padding: 0; border: var(--bw-card) solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-small); display: grid; place-content: center; }
.sm-close svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sm-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); text-decoration: none;
  border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 12px 10px 14px; background: var(--tint);
  opacity: 0; transform: translateY(26px) scale(.9) rotate(var(--tilt)); transition: transform var(--ease-press), opacity .3s, box-shadow .2s; }
.site-menu.open .sm-card { opacity: 1; transform: rotate(var(--rest)); transition-delay: calc(var(--i) * 70ms + 120ms); }
.sm-card:active { transform: translate(2px, 2px) rotate(var(--rest)); box-shadow: none; transition-delay: 0s; }
.sm-card:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.sm-pic { width: 100%; height: 92px; margin-bottom: 6px; }
.sm-card b { font-size: 22px; line-height: 1.1; }
.sm-card small { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.sm-go { position: absolute; right: 10px; top: 10px; font-weight: 800; background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); border-radius: 8px; padding: 0 8px; transform: scale(0) rotate(-12deg); }
.sm-foot { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); opacity: 0; transition: opacity .3s .5s; }
.site-menu.open .sm-foot { opacity: 1; }
.sm-socials { display: flex; gap: 6px; }
.sm-socials a { width: 38px; height: 38px; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow-small); display: grid; place-content: center; color: var(--text); }
.sm-socials svg { width: 18px; height: 18px; }
.sm-socials .f-yt, .sm-socials .f-in, .sm-socials .f-rdt { fill: currentColor; } .sm-socials .f-white { fill: var(--card); }
.sm-theme { flex: none; }
/* The drawings: the illustration tokens keep their light-mode colours in dark mode too (#2129) */
.sm-pic .o { stroke: var(--ill-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sm-pic .f-card { fill: var(--ill-card); } .sm-pic .f-pop { fill: var(--ill-pop); } .sm-pic .f-lx { fill: var(--ill-lx); } .sm-pic .f-li { fill: var(--ill-li); }
.sm-pic .f-rd { fill: var(--ill-rd); } .sm-pic .f-go { fill: var(--ill-go); } .sm-pic .f-ink { fill: var(--ill-ink); }
.sm-pic text { font-family: var(--mono); }

/* Leaving: the picked card stamps GO!, the others drop away; closed with the X the whole menu fades,
   while on the way to a picked page (.going, #2582) it stays up until the new page replaces it */
.site-menu.open.leaving:not(.going) { opacity: 0; transition: opacity .55s ease .45s; }
.site-menu.leaving .sm-card { opacity: 0; transform: translateY(30px) scale(.92) rotate(var(--tilt)); transition: transform .5s ease-in, opacity .4s; transition-delay: calc(var(--i) * 40ms); }
.site-menu.leaving .sm-card.picked { opacity: 1; transform: scale(1.06) rotate(0deg); box-shadow: var(--shadow-lifted); transition: transform var(--ease-pop), box-shadow .2s; }
.sm-card.picked .sm-go { transform: scale(1) rotate(-8deg); transition: transform var(--ease-pop) .05s; }
.site-menu.leaving .sm-foot { opacity: 0; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu * { transition-duration: .01s !important; transition-delay: 0s !important; }
  .site-menu.open, .site-menu.open.leaving { transition: opacity .2s !important; }
  .sm-card { transform: none !important; }
}

/* /release-bar.css */
/* #3845: the release bar across the top of the home page, for Programmer Simulator's launch. It removes itself after its
   data-until date (a script right after it in the page, and the build drops it too). Colours and type come from the tokens. */
.rb-bar { background: var(--pop); color: var(--on-pop); border-bottom: var(--bw-card) solid var(--line); font-weight: 600; font-size: 15px; }
.rb-bar .rb-in { max-width: 1000px; margin: 0 auto; padding: var(--s2) var(--s3); display: flex; align-items: center; justify-content: center; gap: 12px; }
.rb-bar img { width: 30px; height: 30px; border-radius: 8px; border: var(--bw-chip) solid var(--line); flex: none; }
.rb-bar .rb-new { font: 500 var(--fs-label) var(--mono); background: var(--card); color: var(--text); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 8px; flex: none; }
.rb-bar .rb-txt b { font-weight: 800; }
.rb-bar .rb-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; background: var(--card); color: var(--text); text-decoration: none;
  border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 3px 12px; box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.rb-bar .rb-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.rb-bar .rb-ico { width: 16px; height: 16px; fill: currentColor; flex: none; }
.rb-bar .rb-more { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rb-bar .rb-short { display: none; }
@media (max-width: 760px) {
  .rb-bar { font-size: 14px; }
  .rb-bar .rb-in { gap: var(--s2); padding: 6px 12px; }
  .rb-bar .rb-new, .rb-bar .rb-more, .rb-bar .rb-long { display: none; }
  .rb-bar .rb-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .rb-bar .rb-btn { transition: none; } }
