/* /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-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; } }

/* /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; }

/* /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; }

/* /apps/app-page.css */
/* The app pages and list pages (#2117), built by website/apps/kit.mjs. Builds on sticker-base.css.
   --accent is the app's own colour, set from its data; everything else comes from the design tokens. */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: var(--s3) 0 0; }
.crumbs a { text-decoration: underline; }
.k-foot { margin-top: var(--s6); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.k-foot a { text-decoration: underline; }
.wrap h1, .wrap h2, .wrap h3 { margin: 0; }

/* hero parts */
.k-hero { padding: var(--s5) 0 var(--s4); }
.k-name { display: flex; align-items: center; gap: var(--s2); }
.k-name img { width: 64px; height: 64px; border-radius: 16px; border: var(--bw-card) solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.k-hero h1 { font-weight: 800; font-size: clamp(38px, 6.5vw, 72px); line-height: .95; letter-spacing: -.035em; }
.k-lede { color: var(--muted); font-size: 19px; max-width: 46ch; margin: var(--s3) 0 0; }
.k-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.k-chips span { font-family: var(--mono); font-size: 13px; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 3px 12px; box-shadow: var(--shadow-small); }
.k-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
/* The buttons and the app cards live in app-cards.css (#2125) */

/* games: phone stage */
.stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: center; }
.k-phones { position: relative; height: 470px; }
.k-phones img { position: absolute; width: 210px; height: auto; border: var(--bw-card) solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: var(--screen); }
.k-phones img:nth-child(1) { left: 0; top: 30px; transform: rotate(-6deg); }
.k-phones img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
/* mobile apps: store page */
.store { display: grid; grid-template-columns: 128px 1fr; gap: var(--s4); align-items: start; }
.k-bigicon { width: 128px; height: 128px; border-radius: 28px; border: var(--bw-card) solid var(--line); box-shadow: var(--shadow); }
/* #2178: a one-line promise above the lede, and a numbered timeline */
.k-slogan { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: var(--s3) auto 0; max-width: 20ch; text-wrap: balance; }
.k-slogan em { font-style: normal; color: var(--accent); }
.k-day { list-style: none; padding: 0; margin: 0; position: relative; }
.k-day::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.k-day li { position: relative; padding: 0 0 var(--s4) 60px; }
.k-day li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: var(--on-screen); border: var(--bw-card) solid var(--line); font: 800 16px var(--display); }
.k-day span { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.k-day b { font-size: 24px; font-weight: 800; display: block; }
.k-day p { color: var(--muted); margin: 4px 0 0; max-width: 56ch; }
/* desktop apps: window */
.window { text-align: center; }
.window .k-name, .window .k-chips, .window .k-links { justify-content: center; }
.window .k-lede { margin-left: auto; margin-right: auto; }
.k-win { margin-top: var(--s5); border: var(--bw-card) solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: var(--screen); }
.k-win-bar { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: var(--card); border-bottom: var(--bw-card) solid var(--line); font-family: var(--mono); font-size: 12px; }
.k-win-bar i { width: 11px; height: 11px; border-radius: 50%; border: var(--bw-card) solid var(--line); background: var(--accent); }
.k-win-bar span { margin-left: 8px; }
.k-win img { display: block; width: 100%; height: auto; }
/* #3266: FocusShell places the hero window above the title and uses overflow: clip so its phone step caption can stick */
.k-hero.anim-top .k-win { margin-top: 0; margin-bottom: var(--s5); }
.k-win.fsh-win { overflow: clip; }

/* sections */
.k-sec { padding: var(--s5) 0 0; }
.k-sec h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: var(--s3); }
.k-intro { color: var(--muted); font-size: 18px; max-width: 52ch; margin: calc(-1 * var(--s2)) 0 var(--s4); }
/* #2432: each number in the site's card, like .k-card */
.k-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s3); }
.k-facts div { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s3); }
.k-facts b { display: block; font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1.05; }
.k-facts span { color: var(--muted); }
.k-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.k-steps li { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s3); }
.k-steps.pics li { padding: var(--s2); }
.k-steps img { width: 100%; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: var(--r-sm); border: var(--bw-card) solid var(--line); margin-bottom: var(--s2); display: block; background: var(--screen); }
.k-steps.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.k-steps.wide img { aspect-ratio: 16 / 9; object-position: center; }
.k-n { font-family: var(--mono); font-size: 12px; background: var(--accent); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 0 8px; margin-right: 6px; }
.k-steps b { font-weight: 800; }
.k-steps small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.k-card { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.k-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: var(--bw-card) solid var(--line); display: block; background: var(--screen); }
.k-card h3 { font-size: 20px; font-weight: 800; }
.k-card p { color: var(--muted); }
/* #2324: the latest video, a thumbnail that opens it on YouTube */
.k-video { display: block; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s2); }
.k-thumb { position: relative; display: block; margin-bottom: var(--s2); }
.k-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: var(--bw-card) solid var(--line); display: block; background: var(--screen); }
.k-thumb .k-ico { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); fill: var(--pop); filter: drop-shadow(2px 2px 0 var(--line)); transition: transform .15s; }
.k-video:hover .k-thumb .k-ico { transform: translate(-50%, -50%) scale(1.1); }
.k-video b { font-weight: 800; display: block; }
.k-video small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
/* #2179: four homes on top, three under them, centred */
.k-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.k-ladder figure { margin: 0; flex: 0 0 calc((100% - 3 * var(--s3)) / 4); }
.k-ladder img { width: 100%; height: auto; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--line); display: block; background: var(--screen); image-rendering: pixelated; }
.k-ladder figcaption { font-weight: 700; margin-top: var(--s2); font-size: 14px; }
.k-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); scroll-snap-type: x mandatory; }
.k-rail figure { margin: 0; scroll-snap-align: start; }
.k-rail img { width: 100%; height: auto; border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); display: block; }
.k-rail figcaption { margin-top: var(--s2); }
.k-rail b { display: block; }
.k-rail small { color: var(--muted); }
.k-note { color: var(--muted); font-size: 15px; margin-top: var(--s3); }
.k-note a { text-decoration: underline; }
.k-cta { text-align: center; }
.k-cta .k-links { justify-content: center; }
.k-fine { list-style: none; padding: 0; margin: var(--s3) auto 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

/* games: the level picker and the decorated room (#2107, design C) */
.px { image-rendering: pixelated; }
.k-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.k-stage { border-radius: 14px; padding: var(--s2); text-align: center; background: var(--screen); }
.k-stage img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.k-stage b { display: block; color: var(--on-screen); font-size: 22px; font-weight: 800; }
.k-stage span { font-family: var(--mono); font-size: 12px; color: var(--on-screen-muted); }
.k-lvls { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.k-lvls button { font: 700 14px var(--mono); border: var(--bw-card) solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); padding: 6px 0; cursor: pointer; min-height: 40px; }
.k-lvls button[aria-pressed="true"] { background: var(--pop); color: var(--on-pop); box-shadow: var(--shadow-small); }
.k-room { position: relative; border-radius: 14px; overflow: hidden; background: var(--screen); }
.k-room > img { display: block; width: 100%; height: auto; }
.k-stick { position: absolute; width: 22%; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-small); padding: 6px; }
.k-stick img { width: 100%; height: auto; display: block; }
.k-stick.s1 { left: 4%; top: 4%; transform: rotate(-5deg); }
.k-stick.s2 { right: 4%; top: 6%; transform: rotate(4deg); }
.k-stick.s3 { right: 6%; top: 42%; transform: rotate(-3deg); }
.k-toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; background: var(--screen); color: var(--go); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; font-weight: 700; font-size: 14px; }

/* list pages: filter chips, each its own page, and the card shelf */
.k-filter { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); position: static; z-index: auto; } /* #3562: a <nav>, so undo the site header's sticky nav rule */
.k-filter a, .k-filter span { font-family: var(--mono); font-size: 13px; border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; background: var(--card); box-shadow: var(--shadow-small); }
.k-filter span { background: var(--pop); color: var(--on-pop); font-weight: 700; }
.k-filter a:hover { transform: translate(-1px, -1px); }

/* #2688, Editbay: a split hero, two messages side by side, what it can do in groups, a card per download */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s5); align-items: center; }
.k-hero.split h1 { font-size: clamp(34px, 3.9vw, 50px); line-height: 1.12; margin: var(--s3) 0 0; }
/* highlights wrap with the words, so a highlighted phrase never leaves its full stop on a line alone */
.split .zz-hl { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em; }
.k-new { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); background: var(--card); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 3px 12px 3px 4px; box-shadow: var(--shadow-small); }
.k-new b { font: 700 12px var(--display); background: var(--accent); color: var(--on-screen); border-radius: var(--r-pill); padding: 1px 8px; }
.k-name.small { margin-top: var(--s3); font: 800 26px var(--display); }
.k-name.small img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-small); }
.k-sub { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.k-sub .k-btn { font-size: 14px; padding: 6px 14px; box-shadow: var(--shadow-small); }
.k-split-shot { position: relative; }
.k-split-shot .k-win { margin: 0; transform: rotate(1.5deg); }
.k-sticker { position: absolute; left: -34px; bottom: -40px; width: 112px; height: 112px; }
.k-sticker b { font-size: 40px; }
.k-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.k-ticks li { padding-left: 28px; position: relative; }
.k-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; font: 800 12px var(--display); background: var(--card); border: var(--bw-chip) solid var(--line); color: var(--go-ink); }
.k-pitch { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); padding-top: calc(var(--s5) + var(--s3)); }
.k-pitch .zz-card { display: flex; flex-direction: column; gap: var(--s3); }
.k-pitch .zz-card h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.k-big { display: flex; align-items: center; gap: var(--s3); margin: 0; }
.k-big b { font: 800 clamp(72px, 8vw, 112px)/.9 var(--display); letter-spacing: -.04em; color: var(--text); text-shadow: 4px 4px 0 var(--card); }
.k-big span { font: 500 14px var(--mono); color: var(--muted); max-width: 14ch; }
.k-pitch-end { margin-top: auto; }
.k-pitch-new { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: 0; }
.k-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.k-styles .zz-chip { font-size: 12px; line-height: 22px; padding: 0 8px; }
.k-cap { position: relative; background: var(--screen); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-small); display: grid; place-items: center; gap: var(--s3); padding: var(--s5) var(--s2) var(--s3); overflow: hidden; }
.k-cap-tag { position: absolute; left: 12px; top: 10px; display: inline-flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--on-screen-muted); }
.k-cap-tag .k-ico { width: 12px; height: 12px; }
.k-cap-wave { display: flex; align-items: center; gap: 3px; height: 60px; }
.k-cap-wave i { width: 4px; height: var(--h); border-radius: 2px; background: var(--on-screen-muted); opacity: .55; }
.k-cap-line { margin: 0; font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--display); text-transform: uppercase; text-align: center; text-shadow: 3px 3px 0 var(--line); min-height: 1.2em; }
.k-cap-line span { display: inline-block; transition: transform .12s, color .12s; }
.k-cap-line span.on { color: var(--pop); transform: translateY(-3px) scale(1.08); }
.k-can > h2, .k-dl > h2 { font-size: clamp(28px, 3.6vw, 40px); }
.k-can > h2 { margin-bottom: var(--s4); }
.k-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; padding: var(--s4) 0; }
.k-group + .k-group { border-top: var(--bw-card) dashed var(--line); }
.k-group .k-win { margin: 0; }
.k-group.flip .k-win { order: 2; }
.k-crop { position: relative; overflow: hidden; background: var(--screen); }
.k-win .k-crop img { position: absolute; max-width: none; height: auto; }
.k-group-list h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 var(--s3); }
.k-group-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.k-group-list li { padding-left: var(--s3); border-left: 4px solid var(--accent); }
.k-group-list li b { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-weight: 800; }
.k-group-list li > span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.k-dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); max-width: 760px; margin: 0 auto; text-align: left; }
.k-dl-cards .k-card { gap: var(--s3); padding: var(--s4); }
.k-dl-cards .k-card h3 { font-size: 24px; }
.k-dl-cards .k-btn { align-self: flex-start; }
.k-dl-head { display: flex; align-items: center; gap: var(--s3); }
.k-dl-head > .k-ico { width: 40px; height: 40px; }
.k-meta { display: block; font: 13px var(--mono); color: var(--muted); }
.k-help { text-align: left; font-size: 14px; color: var(--muted); }
.k-help p { margin: var(--s2) 0 0; }
.k-help ol { margin: var(--s2) 0 0; padding-left: 20px; }
.k-help b { color: var(--text); }
.k-help-label { font: 500 13px var(--mono); }
.k-dl-more { max-width: 52ch; margin: var(--s4) auto 0; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-small); padding: var(--s2) var(--s3) var(--s3); }
.k-dl-foot { color: var(--muted); font-size: 14px; margin-top: var(--s4); }
.k-dl-foot a { text-decoration: underline; }

@media (max-width: 760px) {
  .split, .k-pitch, .k-group, .k-dl-cards { grid-template-columns: 1fr; }
  .split { gap: var(--s4); }
  .k-sticker { left: auto; right: -6px; bottom: -30px; width: 92px; height: 92px; } .k-sticker b { font-size: 32px; }
  .k-group { gap: var(--s3); } .k-group.flip .k-win { order: 0; }
  /* on a phone a group's title comes before its screenshot */
  .k-group-list { display: contents; } .k-group-list h3 { order: -1; margin: 0; }
  .k-dl-cards .k-card { padding: var(--s3); }
}

@media (max-width: 760px) {
  .stage, .k-duo { grid-template-columns: 1fr; gap: var(--s3); }
  .k-phones { height: 360px; } .k-phones img { width: 150px; }
  .store { grid-template-columns: 1fr; } .k-bigicon { width: 96px; height: 96px; }
  .k-facts { grid-template-columns: 1fr 1fr; gap: var(--s2); } .k-facts b { font-size: 36px; }
  .k-rail { grid-auto-columns: 62%; }
  .k-ladder { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; justify-content: start; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px var(--s2) 0; }
  .k-ladder figure { scroll-snap-align: start; }
  .k-lvls { grid-template-columns: repeat(5, 1fr); }
  .k-toast { font-size: 12px; }
}

/* #3077 (Martva, "Reviews first"): a centred hero that leads with the downloads and the rating, a fan of five phones,
   two big review cards, then the facts and features. Only Martva's page uses these (kit.mjs: heroProof, said, inside). */
.k-stars { display: inline-flex; gap: 2px; vertical-align: -3px; flex: none; }
.k-stars svg { width: 18px; height: 18px; fill: var(--pop); stroke: var(--line); stroke-width: 1.4; stroke-linejoin: round; }
.k-device { position: relative; background: var(--screen); border: var(--bw-card) solid var(--line); border-radius: 34px; padding: 7px; box-shadow: var(--shadow); }
.k-device::before { content: ""; position: absolute; z-index: 1; top: 15px; left: 50%; width: 24%; height: 7px; transform: translateX(-50%); border-radius: var(--r-pill); background: var(--screen); }
.k-device img { display: block; width: 100%; height: auto; border-radius: 27px; background: var(--bg); }
.k-rv { margin: 0; display: flex; flex-direction: column; gap: var(--s2); text-align: left; }
.k-rv-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); font: 500 12px var(--mono); color: var(--muted); }
.k-rv blockquote { margin: 0; }
.k-rv blockquote b { display: block; font-size: 17px; font-weight: 700; }
.k-rv blockquote p { margin: 2px 0 0; font-size: 20px; line-height: 1.35; text-wrap: pretty; }
.k-rv-en { margin: 0; font-size: 14px; color: var(--muted); }
.k-hero.proof { text-align: center; padding: var(--s5) 0 0; }
.k-hero.proof .k-bigicon { width: 96px; height: 96px; border-radius: 24px; transform: rotate(-4deg); }
.k-hero.proof h1 { font-size: clamp(44px, 7vw, 76px); margin-top: var(--s3); }
.k-proof { font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -.025em; margin: var(--s3) auto 0; max-width: 24ch; text-wrap: balance; }
.k-hero.proof .k-lede { margin-left: auto; margin-right: auto; }
.k-hero.proof .k-links { justify-content: center; }
.k-fan { position: relative; height: 440px; margin-top: var(--s5); }
.k-fan .k-device { position: absolute; left: 50%; bottom: 0; width: 200px; margin-left: -100px; transform-origin: 50% 100%; }
.k-fan .f1 { transform: translateX(-330px) rotate(-11deg); }
.k-fan .f3 { transform: translateX(-172px) rotate(-5deg) translateY(-14px); z-index: 1; }
.k-fan .f2 { transform: translateY(-34px) scale(1.06); z-index: 2; }
.k-fan .f4 { transform: translateX(172px) rotate(5deg) translateY(-14px); z-index: 1; }
.k-fan .f5 { transform: translateX(330px) rotate(11deg); }
/* the full fan is about 990px wide: below a 1000px page draw it smaller so the outer phones are not cut off */
@media (min-width: 761px) and (max-width: 1000px) {
  .k-fan { height: 340px; }
  .k-fan .k-device { width: 150px; margin-left: -75px; border-radius: 28px; }
  .k-fan .k-device img { border-radius: 22px; }
  .k-fan .f1 { transform: translateX(-232px) rotate(-8deg); }
  .k-fan .f3 { transform: translateX(-118px) rotate(-4deg) translateY(-10px); }
  .k-fan .f2 { transform: translateY(-24px) scale(1.06); }
  .k-fan .f4 { transform: translateX(118px) rotate(4deg) translateY(-10px); }
  .k-fan .f5 { transform: translateX(232px) rotate(8deg); }
}
.k-said { text-align: center; padding-top: calc(var(--s5) + var(--s3)); }
.k-said h2, .k-inside h2 { text-wrap: balance; }
.k-rating { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2); font: 500 15px var(--mono); margin: 0 0 var(--s5); }
.k-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.k-quotes .k-rv { padding: var(--s4); }
.k-quotes .k-rv blockquote p { font-size: clamp(21px, 2.4vw, 27px); font-weight: 500; line-height: 1.3; }
.k-quotes .k-rv:nth-child(1) { transform: rotate(-1.4deg); }
.k-quotes .k-rv:nth-child(2) { transform: rotate(1.2deg); margin-top: var(--s5); }
.k-inside { padding-top: calc(var(--s5) + var(--s3)); }
.k-spec { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.k-spec div { padding: var(--s3) var(--s4); }
.k-spec div + div { border-left: var(--bw-card) solid var(--line); }
.k-spec dt { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.k-spec dd { margin: 6px 0 0; color: var(--muted); }
.k-plain { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.k-plain b { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.k-plain span { color: var(--muted); }
@media (max-width: 760px) {
  .k-rv blockquote p { font-size: 18px; }
  /* on a phone the fan becomes a swipeable row, each screen big enough to read */
  .k-fan { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px var(--s3); margin-top: var(--s4); }
  .k-fan .k-device, .k-fan .f1, .k-fan .f2, .k-fan .f3, .k-fan .f4, .k-fan .f5 { position: relative; left: auto; bottom: auto; width: auto; margin: 0; transform: none; scroll-snap-align: center; }
  .k-quotes, .k-plain { grid-template-columns: 1fr; gap: var(--s4); }
  .k-quotes .k-rv:nth-child(2) { margin-top: 0; }
  .k-spec { grid-template-columns: 1fr 1fr; }
  .k-spec div:nth-child(3) { border-left: 0; }
  .k-spec div:nth-child(n + 3) { border-top: var(--bw-card) solid var(--line); }
  .k-spec dt { font-size: 32px; }
}

/* #2784 (FocusShell): feature rows, text on one side, a drawn diagram with a screenshot window tucked under it on the other */
.k-f { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s5); align-items: center; padding: var(--s5) 0; }
.k-f.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.k-f.flip .k-f-text { order: 2; }
.k-f-tag { display: inline-block; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--ill-ink); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; box-shadow: var(--shadow-small); }
.k-feats .k-f h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: var(--s3) 0 var(--s2); text-wrap: balance; }
.k-f-text p { color: var(--muted); font-size: 18px; max-width: 30ch; margin: 0; text-wrap: pretty; }
.k-f-art { margin: 0; }
.k-f-dia { background: var(--ill-card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s3); width: 92%; }
.k-f-art:has(.k-f-shot) .k-f-dia { padding-bottom: 52px; }
.k-f.flip .k-f-dia { margin-left: auto; }
.k-f-dia svg { display: block; width: 100%; height: auto; overflow: visible; }
.k-f-shot { position: relative; width: 64%; margin: -40px 0 0 auto; transform: rotate(1.5deg); background: var(--screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); overflow: hidden; }
.k-f.flip .k-f-shot { margin-left: 0; margin-right: auto; transform: rotate(-1.5deg); }
.k-f-shot .k-win-bar { padding: 5px 10px; font-size: 11px; }
.k-f-shot .k-win-bar i { width: 9px; height: 9px; }
.k-f-shot img { display: block; width: 100%; height: auto; }
/* the diagrams' own drawing classes, all from the illustration tokens */
.k-f-dia .sh { fill: var(--ill-ink); }
.k-f-dia .bx { stroke: var(--ill-ink); stroke-width: 2; }
.k-f-dia .st { fill: none; stroke: var(--ill-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.k-f-dia text { font-family: var(--display); font-size: 15px; font-weight: 700; fill: var(--ill-ink); }
.k-f-dia text.c { text-anchor: middle; }
.k-f-dia text.m { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.k-f-dia text.q { fill: var(--ill-card); font-size: 14px; }
.k-f-dia text.w { fill: var(--ill-card); }
.k-f-dia text.n { font-size: 11px; }
.k-f-dia text.big { font-size: 20px; }
.k-f-dia .ln { fill: var(--ill-ink); opacity: .22; }
.k-f-dia .lp { fill: var(--ill-pop); opacity: .75; }
.k-f-dia .lt { fill: var(--accent); opacity: .75; }
.k-f-ar { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.k-f-ar.t { stroke: var(--accent); } .k-f-ar.b { stroke: var(--ill-pop); stroke-dasharray: 6 5; } .k-f-ar.k { stroke: var(--ill-ink); }
@media (max-width: 760px) {
  .k-f, .k-f.flip { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; }
  .k-f.flip .k-f-text { order: 0; }
  .k-f-dia, .k-f.flip .k-f-dia { width: 100%; margin: 0; padding: var(--s2); }
  .k-f-art:has(.k-f-shot) .k-f-dia { padding-bottom: 44px; }
  .k-f-shot, .k-f.flip .k-f-shot { width: 86%; margin: -34px 0 0 auto; }
  .k-f-text p { font-size: 17px; }
}

/* #2985: waitlist form under a hero's buttons */
.k-wait { margin-top: var(--s4); max-width: 460px; padding: var(--s3); }
.k-wait-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.k-wait-badge { flex: none; width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); box-shadow: var(--shadow-small); }
.k-wait-badge svg { width: 20px; height: 20px; display: block; }
.k-wait-head > div { min-width: 0; }
.k-wait-label { display: block; font-weight: var(--fs-headingWeight); font-size: var(--fs-body); line-height: 1.25; }
.k-wait-sub { margin: 2px 0 0; font-size: var(--fs-small); line-height: 1.35; color: var(--muted); }
.k-wait-row { display: flex; gap: var(--s2); align-items: stretch; }
.k-wait-row .zz-input { flex: 1 1 auto; }
.k-wait-row .zz-btn { flex: none; padding: 10px var(--s3); box-shadow: var(--shadow-small); }
.k-wait-row .zz-btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: var(--shadow-small); }
.k-wait-news { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s3); font-size: var(--fs-small); line-height: 1.4; color: var(--text); cursor: pointer; }
.k-wait-news input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pop); cursor: pointer; }
.k-wait-news input:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.k-wait-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k-wait-bot:empty { display: none; }
.k-wait-msg { margin: var(--s2) 0 0; font-size: var(--fs-small); font-weight: 600; }
.k-wait-msg:empty { margin: 0; }
.k-wait-msg.ok { color: var(--go-ink); margin-top: 0; font-size: var(--fs-body); }
.k-wait-msg.ok:focus { outline: none; }
.k-wait-msg.err { color: var(--text); }
.k-wait-more { margin-top: var(--s2); }
.k-wait-more summary { display: inline-flex; align-items: center; gap: var(--s1); list-style: none; font-size: var(--fs-small); color: var(--muted); cursor: pointer; user-select: none; }
.k-wait-more summary::-webkit-details-marker { display: none; }
.k-wait-more summary::before { content: ""; width: 0.45em; height: 0.45em; border-right: var(--bw-chip) solid currentColor; border-bottom: var(--bw-chip) solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: var(--s1); }
.k-wait-more[open] summary::before { transform: rotate(45deg); }
.k-wait-more summary:hover { color: var(--text); }
.k-wait-more summary:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; border-radius: var(--r-chip); }
.k-wait-note { margin: var(--s2) 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.k-wait-note a { text-decoration: underline; }
@media (max-width: 760px) {
  .k-wait { max-width: none; }
  .k-wait-row { flex-direction: column; }
  .k-wait-row .zz-input, .k-wait-row .zz-btn { width: 100%; justify-content: center; }
}

/* #3645 Frogtress: the teaser hero, the drag picture and the night band */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s5); align-items: start; }
.teaser .k-wait { margin-top: 0; max-width: none; }
.teaser .k-chips span:last-child { background: var(--yt); }
.k-wip { display: inline-block; background: var(--rd); color: var(--text); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); font-family: var(--mono); font-size: 12px; padding: 2px 9px; transform: rotate(-3deg); }
.k-grow h2, .k-grow .k-intro { text-align: center; margin-left: auto; margin-right: auto; }
.k-grow .k-intro { margin-top: calc(-1 * var(--s2)); }
.k-grow-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.k-gside h3 { font-size: 26px; margin: 0 0 6px; display: block; }
.k-gside p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.k-gside.l { text-align: right; }
/* desktop: both texts get the same height whatever their length, so the two centred level chips line up */
@media (min-width: 761px) { .k-gside p { min-height: calc(6 * 1.45em); } }
.k-lv { display: inline-block; font-family: var(--mono); font-size: 14px; border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 10px; background: var(--card); margin-bottom: var(--s2); }
.k-ba { position: relative; width: 100%; aspect-ratio: 620 / 1342; border: 3px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; cursor: pointer; background: var(--screen); --cut: 50%; }
.k-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.k-ba .after { clip-path: inset(0 0 0 var(--cut)); }
.k-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: var(--line); }
.k-ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); display: grid; place-content: center; font-style: normal; font-weight: 700; }
.k-ba-tag { position: absolute; top: 12px; z-index: 2; background: var(--card); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; font-weight: 700; font-size: 14px; }
.k-ba-tag.l { left: 12px; } .k-ba-tag.r { right: 12px; }
.k-ba .k-wip { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) rotate(-3deg); z-index: 2; }
.k-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.k-ba:has(.k-ba-range:focus-visible) { outline: 3px solid var(--pop); outline-offset: 3px; }
.k-night { background: var(--screen); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: 22px; padding: var(--s4); box-shadow: var(--shadow); }
.k-night h2 { color: var(--on-screen); margin-bottom: var(--s2); }
.k-night .k-intro { color: var(--on-screen-muted); margin: 0 0 var(--s3); max-width: none; }
.k-strip { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); }
.k-strip:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.k-strip figure { flex: 1 1 0; min-width: 200px; margin: 0; scroll-snap-align: start; }
.k-strip img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: var(--bw-card) solid var(--on-screen-muted); }
.k-strip figcaption { margin-top: 6px; font-weight: 600; }
@media (max-width: 760px) {
  .teaser { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .k-grow-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); justify-items: center; }
  .k-grow-row .k-ba { max-width: 300px; }
  .k-gside, .k-gside.l { text-align: center; }
  .k-night { padding: var(--s3); }
  .k-strip figure { flex: 0 0 200px; }
}

/* /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; } }
