@font-face {
  font-family: "Excalifont";
  src: url("fonts/excalifont.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #faf3e3;
  --cream-2: #f3ede3;
  --paper: #fffdf8;
  --ink: #2b2118;
  --muted: #6b5d4f;
  --line: rgba(43, 33, 24, 0.1);
  --sun: #f5c747;
  --sun-deep: #e9b73b;
  --annot: #df5f36;
  --teal: #2a9d8f;
  --coral: #ff8a6b;
  --mint: #6fe3c0;
  --pink: #f48fb8;
  --orange: #ee6a2c;

  --sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --hand: "Excalifont", "Segoe Print", "Comic Sans MS", cursive;

  --radius: 22px;
  --shadow: 0 1px 2px rgba(43, 33, 24, 0.06), 0 12px 32px -8px rgba(43, 33, 24, 0.16);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over everything, like the slides */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(245, 199, 71, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(250, 243, 227, 0.82); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 16px; color: var(--ink); opacity: 0.8; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.pill {
  font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper); white-space: nowrap;
}
.nav nav a { white-space: nowrap; }
@media (max-width: 960px) {
  .nav nav { display: none; }
  .pill { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 40%, #f8d977 0%, transparent 70%),
    radial-gradient(80% 70% at 50% 100%, var(--sun-deep) 0%, transparent 70%),
    var(--sun);
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 48px);
  min-height: min(92vh, 960px);
  justify-content: center;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 50px -20px rgba(120, 80, 0, 0.35);
  border-radius: 34px;
}

.hero-card {
  position: relative;
  width: min(1000px, 100%);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.eyebrow { font-family: var(--hand); color: var(--annot); font-size: clamp(18px, 2vw, 22px); margin-bottom: 0.4em; }
.hero h1 { font-size: clamp(52px, 10vw, 124px); letter-spacing: -0.035em; margin-bottom: 0.32em; }
.lede { font-size: clamp(18px, 2.2vw, 26px); color: #5b4521; max-width: 34em; margin: 0 auto 1.6em; }

.jelly-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.jelly {
  --c: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: clamp(120px, 15vw, 190px); padding: 14px 26px;
  border-radius: 12px; text-decoration: none; font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 85%, #000) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.75),
    inset 0 -4px 6px rgba(0, 0, 0, 0.1),
    inset 6px 0 8px -6px rgba(255, 255, 255, 0.9),
    0 6px 14px -4px color-mix(in srgb, var(--c) 60%, #5a3a00);
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.18s;
}
.jelly:hover { transform: translateY(-3px) scale(1.03); }
.jelly:active { transform: translateY(1px) scale(0.98); }
.jelly-white { --c: #ffffff; }
.jelly-coral { --c: var(--coral); }
.jelly-mint { --c: var(--mint); }
.jelly-pink { --c: var(--pink); }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.jelly.soon { cursor: default; }
.jelly.soon:hover { transform: none; }

/* The app window in the hero, with hand-drawn callouts around it */
.hero { padding-bottom: 0; min-height: 0; }
.hero-card { margin-bottom: clamp(8px, 2vw, 24px); }
.hero-shot { position: relative; width: min(1160px, 100%); margin: 0 0 -1px; }
.hero-shot .zoom { border-radius: 14px 14px 0 0; box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.6), 0 30px 80px -20px rgba(80, 50, 0, 0.45), 0 0 0 1px rgba(43, 33, 24, 0.12); }
.hero-shot .zoom:hover { transform: translateY(-4px); }

.callout {
  position: absolute; bottom: 100%; margin-bottom: 4px;
  font-family: var(--hand); color: var(--ink); font-size: clamp(17px, 1.7vw, 23px); line-height: 1.1;
  display: flex; flex-direction: column; gap: 2px; white-space: nowrap; pointer-events: none;
}
.callout svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-library { left: 4%; align-items: flex-start; transform: rotate(-3deg); }
.c-library svg { margin-left: 30px; }
.c-quickbar { left: 34%; align-items: center; transform: rotate(-1deg); }
.c-inspector { right: 3%; align-items: flex-end; transform: rotate(3deg); }
.c-inspector svg { margin-right: 40px; }
.hero-card { margin-bottom: clamp(8px, 7vw, 96px); }
@media (max-width: 900px) { .callout { display: none; } }

/* ---------- Facts strip ---------- */
.facts { background: var(--ink); color: var(--paper); }
.facts ul {
  list-style: none; margin: 0 auto; padding: clamp(22px, 3vw, 32px) var(--gutter); max-width: 1320px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px;
}
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--sun); }
.facts span { font-size: 15px; opacity: 0.8; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero.full { min-height: 100vh; }

/* Jelly blobs */
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  --c: var(--teal);
  background:
    radial-gradient(40% 40% at 45% 45%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 100%),
    radial-gradient(circle at 50% 50%, var(--c) 40%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  box-shadow:
    inset 10px 12px 18px -8px rgba(255, 255, 255, 0.75),
    inset -8px -10px 18px rgba(0, 0, 0, 0.18),
    0 0 40px 2px color-mix(in srgb, var(--c) 45%, transparent);
  animation: float 14s ease-in-out infinite;
}
.blob-pink   { --c: #e8579a; width: 15vw; max-width: 200px; min-width: 90px; aspect-ratio: 1; top: 10%; left: 13%; border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; transform: rotate(-12deg); }
.blob-teal   { --c: var(--teal); width: 22vw; max-width: 360px; min-width: 130px; aspect-ratio: 0.85; top: 2%; right: 6%; border-radius: 38% 62% 50% 50% / 30% 45% 55% 70%; animation-delay: -4s; }
.blob-orange { --c: var(--orange); width: 19vw; max-width: 330px; min-width: 120px; aspect-ratio: 0.95; bottom: 6%; left: 6%; border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; animation-delay: -7s; }
.blob-cream  { --c: #fff3c8; width: 13vw; max-width: 220px; min-width: 80px; aspect-ratio: 0.8; bottom: 10%; right: 9%; border-radius: 40% 60% 35% 65% / 35% 45% 55% 65%; animation-delay: -10s; box-shadow: 0 0 50px 8px rgba(255, 250, 220, 0.8); }
.blob-coral  { --c: var(--coral); }
@media (max-width: 760px) {
  .blob-pink { top: 3%; left: -6%; }
  .blob-teal { top: 1%; right: -10%; }
  .blob-orange { bottom: 2%; left: -12%; }
  .blob-cream { bottom: 4%; right: -6%; }
}
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- Content blocks ---------- */
.block { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 0; }
.copy p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 36em; }
.copy.center { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 52em; }
.copy.center p { margin-left: auto; margin-right: auto; }
.copy .kicker { font-family: var(--hand); color: var(--annot); font-size: clamp(20px, 2vw, 24px); margin-bottom: 0.3em; }

/* ---------- Legal pages (privacy.html) ---------- */
.legal { max-width: calc(46em + 2 * var(--gutter)); padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal-updated { font-family: var(--hand); color: var(--annot); font-size: clamp(18px, 2vw, 22px); }
.legal-summary { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); padding: 16px 20px; }
.legal-summary strong { color: var(--ink); }

.zoom {
  all: unset; display: block; cursor: zoom-in; width: 100%; box-sizing: border-box;
  border-radius: 12px; overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s;
}
.zoom:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(43, 33, 24, 0.06), 0 24px 48px -12px rgba(43, 33, 24, 0.24), 0 0 0 1px var(--line); }
.zoom:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
figure { margin: 0; }

/* Before / after slider */
.compare {
  --pos: 50%;
  position: relative; max-width: 990px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); user-select: none; touch-action: pan-y;
}
.compare-img { width: 100%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--ink); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.compare-handle span::before { left: 3px; border-right-color: var(--ink); }
.compare-handle span::after { right: 3px; border-left-color: var(--ink); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid var(--annot); outline-offset: 3px; }
.compare-tag {
  position: absolute; top: 16px; padding: 6px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; pointer-events: none;
}
.compare-tag.left { left: 16px; background: var(--ink); color: var(--paper); font-family: var(--hand); font-weight: 400; font-size: 18px; }
.compare-tag.right { right: 16px; background: #2f6b4f; color: #fff; }

/* Tabbed tour */
.tour { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .tour { grid-template-columns: 1fr; } }
.tour-tabs { display: flex; flex-direction: column; gap: 10px; }
.tour-tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 14px; border: 1.5px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
@media (max-width: 960px) {
  .tour-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 8px; }
  .tour-tabs button { flex: 0 0 78%; scroll-snap-align: start; }
}
.tour-tabs button:hover { background: rgba(255, 255, 255, 0.6); }
.tour-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.tour-tabs button:focus-visible { outline: 3px solid var(--annot); outline-offset: 2px; }
.tour-tabs strong { font-size: 19px; }
.tour-tabs span { color: var(--muted); font-size: 16px; line-height: 1.45; }
kbd {
  font-family: var(--sans); font-size: 0.82em; padding: 1px 6px; border-radius: 5px;
  background: var(--paper); border: 1px solid rgba(43, 33, 24, 0.25); box-shadow: 0 1px 0 rgba(43, 33, 24, 0.25);
}
.tour-panels [hidden] { display: none; }
.tour-panels figure { animation: panel-in 0.35s cubic-bezier(.2, .8, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .tour-panels figure { animation: none; } }

/* Gallery */
.tile figcaption { margin-top: 12px; color: var(--muted); font-size: 17px; }
.tile figcaption strong { color: var(--ink); }

/* ---------- Formats ---------- */
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 860px) { .format-grid { grid-template-columns: 1fr; } }
.format-card {
  background: var(--paper); border-radius: var(--radius); padding: 26px 28px 24px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.format-card h3 {
  display: inline-block; font-size: 17px; letter-spacing: 0; padding: 5px 14px; border-radius: 8px; margin-bottom: 16px;
  background: #ffe27a;
}
.format-card:nth-child(2) h3 { background: #ffd6a8; }
.format-card:nth-child(3) h3 { background: #b5f0c4; }
.format-card p { color: var(--muted); margin: 0 0 14px; font-size: 17px; }
.format-card p:last-child { margin-bottom: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 15px; padding: 6px 12px; border-radius: 999px;
  background: var(--cream-2); border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* ---------- Outro ---------- */
.outro {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  background: radial-gradient(70% 80% at 50% 50%, #f8d977, var(--sun) 60%, var(--sun-deep));
  display: grid; place-items: center;
}
.outro-card { padding: clamp(32px, 5vw, 56px) clamp(24px, 6vw, 80px); text-align: center; max-width: 820px; }
.outro h2 { font-size: clamp(42px, 7vw, 88px); letter-spacing: -0.035em; }
.outro p { font-size: clamp(18px, 2vw, 22px); color: #5b4521; margin: 0; }
.outro .blob.small.blob-teal { width: 16vw; max-width: 220px; top: 12%; right: 10%; left: auto; }
.outro .blob.small.blob-coral { width: 14vw; max-width: 200px; min-width: 100px; aspect-ratio: 1; bottom: 10%; left: 10%; border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; animation-delay: -5s; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter); font-size: 15px; color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1920px); max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(43, 33, 24, 0.72); backdrop-filter: blur(6px); }
.lightbox img { max-height: 90vh; width: auto; background: var(--paper); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lightbox .close {
  position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .lightbox .close { top: -54px; right: 0; } }

/* Gentle reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Windows & Mac ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); max-width: 1080px; margin: 0 auto; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }
.platform-card {
  background: var(--paper); border-radius: var(--radius); padding: 28px 30px 26px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.platform-os { font-family: var(--hand); color: var(--annot); font-size: 20px; margin: 0 0 0.2em; }
.platform-card h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 0.7em; }
.platform-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform-card li { position: relative; padding-left: 28px; color: var(--muted); font-size: 17px; }
.platform-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.platform-card code, .community-card code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em;
  padding: 1px 6px; border-radius: 6px; background: var(--cream-2); border: 1px solid var(--line);
}
.same-file {
  max-width: 1080px; margin: clamp(16px, 2.5vw, 28px) auto 0; padding: 18px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); text-align: center; font-size: clamp(17px, 1.6vw, 20px);
}
.same-file strong { color: var(--sun); }

/* ---------- Game art ---------- */
.game-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 860px) { .game-grid { grid-template-columns: 1fr; } }
.checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #ece6da 25%, transparent 25%, transparent 75%, #ece6da 75%),
    linear-gradient(45deg, #ece6da 25%, transparent 25%, transparent 75%, #ece6da 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}
.checker img { padding: 6%; }
.game-points { margin-top: clamp(28px, 4vw, 48px); }
.strip { margin-top: clamp(28px, 4vw, 48px); }
.strip .zoom { background: #f6f4fb; }
.strip figcaption { margin: 14px auto 0; max-width: 52em; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- Libraries ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lib-grid { grid-template-columns: 1fr; } }
.lib-card { display: flex; flex-direction: column; }
.lib-card .zoom img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.lib-meta { margin: 14px 0 4px; font-family: var(--hand); color: var(--annot); font-size: 18px; }
.lib-card h3 { font-size: 22px; margin-bottom: 0.35em; }
.lib-card p { color: var(--muted); font-size: 16px; margin: 0 0 10px; }
.lib-card .lib-by { margin-top: auto; font-size: 15px; }
.lib-by a, .lib-more a { color: var(--ink); text-underline-offset: 3px; }
.lib-more { text-align: center; margin: clamp(24px, 3vw, 36px) 0 0; font-weight: 600; }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 860px) { .community-grid { grid-template-columns: 1fr; } }
.community-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border-radius: var(--radius); padding: 26px 28px 24px;
  border: 1.5px solid transparent; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.community-card:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.community-where {
  align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); margin-bottom: 14px;
}
.community-card h3 { font-size: 24px; }
.community-card p { color: var(--muted); font-size: 17px; flex: 1; }
.community-go { font-weight: 600; color: var(--annot); }

.outro .outro-follow { margin-top: 0.6em; font-size: clamp(16px, 1.6vw, 19px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--ink); }
.footer-note { flex-basis: 100%; margin: 0; font-size: 14px; }

/* ---------- Gallery rail ---------- */
.rail { position: relative; container-type: inline-size; }
.rail-track {
  display: flex; gap: clamp(16px, 2.5vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* Full bleed to the window edges, with the first card lined up with the copy above. */
  --inset: max(var(--gutter), calc(50vw - 50cqw));
  margin: 0 calc(50% - 50vw); padding: 8px var(--inset) 16px; scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus-visible { outline: 3px solid var(--annot); outline-offset: -3px; border-radius: 12px; }
.rail-item { flex: 0 0 min(560px, 84vw); scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .rail-track { scroll-behavior: auto; } }
.rail-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rail-btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.rail-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.rail-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.rail-btn:focus-visible { outline: 3px solid var(--annot); outline-offset: 3px; }
.rail-btn:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Windows / Mac screenshot switch ---------- */
.platform-switch {
  display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  margin: 22px auto 0; font-size: 15px;
}
.copy .platform-switch { margin-top: 4px; }
.platform-switch-label { color: var(--muted); margin-right: 8px; }
.hero .platform-switch-label { color: #6b5426; }
.platform-switch button {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 16px; border-radius: 999px;
  font-weight: 600; border: 1.5px solid transparent; color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.platform-switch button:hover { background: rgba(255, 255, 255, 0.55); }
.platform-switch button[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.platform-switch button:focus-visible { outline: 3px solid var(--annot); outline-offset: 2px; }
html:not(.js) .platform-switch { display: none; }
