/* ---------- Tokens ----------
   Soft colored-pencil palettes around the kitty in the frog hood: light paper,
   a two-color gingham, pastel buttons with dark lettering and a light menu.
   Blue is the site's own; green and pink are picked in Settings (kept in
   localStorage as froggy-theme) and set as data-theme on <html>. */

:root {
  /* blue: pond water and sky */
  --paper: #f2f8fd;
  --paper-deep: #e0eef8;
  --plate: #fbfdff;
  --card: #ffffff;
  --ink: #2a3f55;
  --ink-soft: #5b6f83;
  --line: rgba(42, 63, 85, .13);
  --shade: 42, 63, 85;           /* shadows, as r, g, b */

  --peach: #9fd0f0;              /* decoration */
  --peach-text: #3f86c4;         /* large accent type */
  --rust: #3a7bb5;               /* small accent text and outlines */
  --sage: #dcf2cf;               /* bands */
  --pink: #ffd3dd;
  --butter: #fff0a6;

  --btn: #9ccdf1;                /* pastel buttons, START */
  --btn-top: #bbdcf6;
  --btn-edge: #649fcd;
  --btn-ink: #1d3550;

  --menu: #d9eaf8;               /* the menu and the phone tab bar */
  --menu-ink: #2a3f55;
  --menu-soft: #5b6f83;
  --menu-hover: rgba(42, 63, 85, .07);
  --menu-current: rgba(255, 255, 255, .7);

  --ging-bg: #f8fcff;
  --ging-a: rgba(140, 195, 240, .32);
  --ging-b: rgba(255, 232, 140, .45);
  --ging-bg-soft: #f6fbff;
  --ging-a-soft: rgba(140, 195, 240, .17);
  --ging-b-soft: rgba(255, 232, 140, .26);
  --scrim: rgba(25, 40, 60, .35);
  --glow: rgba(159, 208, 240, .55);

  --font-display: "Fredoka", "Sniglet", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the little labels ("let's color", "find it!"): no cursive, kids can't
     read it (the user, 2026-10-29), so the rounded display font */
  --font-hand: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 18px;
  --panel-radius: clamp(22px, 3.5vw, 40px);
  --shadow-sm: 0 1px 2px rgba(var(--shade), .06), 0 6px 16px -8px rgba(var(--shade), .18);
  --shadow-lg: 0 2px 4px rgba(var(--shade), .06), 0 24px 48px -20px rgba(var(--shade), .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  color-scheme: light;
}

/* green: lily pads and sunshine */
:root[data-theme="green"] {
  --paper: #f6fbef;  --paper-deep: #e6f3d8;  --plate: #fcfef9;
  --ink: #2b4434;  --ink-soft: #5d7563;  --line: rgba(43, 68, 52, .13);  --shade: 43, 68, 52;
  --peach: #a8dc8f;  --peach-text: #4c9a5c;  --rust: #3f8a50;  --sage: #d7eefa;
  --btn: #9dd8a8;  --btn-top: #b9e6c1;  --btn-edge: #66b076;  --btn-ink: #1f3a28;
  --menu: #ddf0d0;  --menu-ink: #2b4434;  --menu-soft: #5d7563;  --menu-hover: rgba(43, 68, 52, .07);
  --ging-bg: #fbfff4;  --ging-a: rgba(160, 215, 130, .34);  --ging-b: rgba(255, 232, 140, .45);
  --ging-bg-soft: #f9fdf3;  --ging-a-soft: rgba(160, 215, 130, .18);  --ging-b-soft: rgba(255, 232, 140, .26);
  --scrim: rgba(30, 50, 35, .35);  --glow: rgba(168, 220, 143, .5);
}

/* pink: strawberry milk and mint */
:root[data-theme="pink"] {
  --paper: #fdf4f7;  --paper-deep: #f7e1e9;  --plate: #fffbfc;
  --ink: #4a2e3a;  --ink-soft: #7a5b67;  --line: rgba(74, 46, 58, .13);  --shade: 74, 46, 58;
  --peach: #f4a9c0;  --peach-text: #c25479;  --rust: #b24f6e;  --sage: #d6f0d4;  --pink: #ffc9d8;
  --btn: #f6aac2;  --btn-top: #f9c6d6;  --btn-edge: #d67c9b;  --btn-ink: #4a1f30;
  --menu: #fbdfe8;  --menu-ink: #4a2e3a;  --menu-soft: #7a5b67;  --menu-hover: rgba(74, 46, 58, .07);
  --ging-bg: #fffafc;  --ging-a: rgba(245, 165, 192, .3);  --ging-b: rgba(175, 222, 175, .32);
  --ging-bg-soft: #fffafc;  --ging-a-soft: rgba(245, 165, 192, .16);  --ging-b-soft: rgba(175, 222, 175, .18);
  --scrim: rgba(60, 30, 42, .35);  --glow: rgba(244, 169, 192, .55);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.hand {
  display: inline-block;
  margin: 0;
  font: 500 1.2rem/1.1 var(--font-hand);
  color: var(--rust);
  rotate: -2deg;
}

.icon { width: 1.15em; height: 1.15em; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* a pink-and-butter gingham, woven from two sets of see-through stripes */
.gingham {
  background-color: var(--ging-bg);
  background-image:
    linear-gradient(90deg, var(--ging-a) 50%, transparent 0),
    linear-gradient(var(--ging-b) 50%, transparent 0);
  background-size: 30px 30px;
}

.plate {
  border-radius: var(--radius);
  background: var(--plate);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.45em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 700 .98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(var(--shade), .5); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { border-color: var(--btn-edge); background: var(--btn); color: var(--btn-ink); }
.btn-small { padding: .6em 1.1em; font-size: .92rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: .4rem;
  color: var(--peach-text);
  font: 600 clamp(1.35rem, 3.4vw, 1.75rem)/1 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark { width: 30px; height: 30px; margin-bottom: .04em; transform-origin: 50% 100%; }
.logo:hover .logo-mark { animation: sway .9s var(--ease); }
@keyframes sway { 30% { rotate: -9deg; } 65% { rotate: 6deg; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
.nav a:not(.btn) {
  position: relative;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--rust); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--peach);
  scale: 0 1;
  transform-origin: left;
  transition: scale .3s var(--ease);
}
.nav a:not(.btn):hover::after { scale: 1 1; }

@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 520px) { .nav .btn { display: none; } }
/* sign in, unlock or account: on every screen */
.nav .club-btn { display: inline-flex; flex-shrink: 0; gap: .45em; }
.club-btn .icon { width: 1.1em; height: 1.1em; }
/* on a phone, just the little person */
@media (max-width: 520px) {
  .nav .club-btn { width: 40px; height: 40px; padding: 0; }
  .club-btn .club-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(10px, 2vw, 22px) clamp(36px, 5vw, 64px); }

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 76vh, 740px);
  padding: clamp(18px, 4vw, 56px);
  border-radius: var(--panel-radius);
}

/* the plate in the middle, with START on it */
.hero-text {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding: clamp(28px, 4.5vw, 52px) clamp(22px, 4vw, 52px) clamp(40px, 5vw, 60px);
  text-align: center;
}
.hero-kicker { margin-bottom: .9rem; }

.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
.hero h1 .name {
  position: relative;
  z-index: 0;
  color: var(--peach-text);
  white-space: nowrap;
}
.name-underline {
  position: absolute;
  z-index: -1;
  left: -3%;
  bottom: -.02em;
  width: 106%;
  height: .28em;
  overflow: visible;
}
.name-underline path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: draw 1s .45s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  max-width: 34ch;
  margin: 1.1rem auto 2.1rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

/* START: big and crisp, with a pastel rainbow ring turning around it and the
   same rainbow glowing behind, breathing gently, and a shine running across
   now and then, so it's the first thing a child sees */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.start {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  border-radius: 999px;
  color: var(--btn-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: breathe 2.4s ease-in-out infinite;
}
.start::before,
.start::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: conic-gradient(from var(--spin), #f2899a, #fbb36b, #fbe29a, #a7d17f, #8fcdea, #a98bdf, #f2899a);
  animation: spin 4s linear infinite;
}
.start::before { z-index: -1; }
.start::after { z-index: -2; filter: blur(18px); animation: spin 4s linear infinite, glow 2.4s ease-in-out infinite; }
.start-face {
  position: relative;
  display: flex;
  align-items: center;
  gap: .42em;
  overflow: hidden;
  padding: .3em 1em .32em .55em;
  border-radius: 999px;
  background: linear-gradient(var(--btn-top), var(--btn));
  font: 600 clamp(2.2rem, 5.4vw, 3.5rem)/1 var(--font-display);
  letter-spacing: .06em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 var(--btn-edge);
  transition: transform .2s var(--spring);
}
.start-play {
  display: grid;
  place-items: center;
  width: .86em;
  height: .86em;
  border-radius: 50%;
  background: #fff;
}
.start-play::before {
  content: "";
  margin-left: .07em;
  border-left: .3em solid var(--btn-edge);
  border-top: .19em solid transparent;
  border-bottom: .19em solid transparent;
}
.start-face::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
.start:hover .start-face { transform: translateY(-2px); }
.start:active .start-face { transform: scale(.96); }
.start:focus-visible { outline: none; }
.start:focus-visible .start-face { outline: 4px solid var(--ink); outline-offset: 10px; }

.start-spark { position: absolute; fill: #ffd54f; pointer-events: none; animation: twinkle 1.6s ease-in-out infinite; }
.start-spark.s1 { width: 28px; height: 28px; top: -26px; right: -18px; }
.start-spark.s2 { width: 20px; height: 20px; bottom: -18px; left: -22px; fill: #f2899a; animation-delay: -.6s; }
.start-spark.s3 { width: 15px; height: 15px; top: -22px; left: 22%; fill: #8fcdea; animation-delay: -1.1s; }

@keyframes breathe { 50% { scale: 1.04; } }
@keyframes spin { to { --spin: 360deg; } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shine { 0%, 55% { left: -70%; } 85%, 100% { left: 130%; } }

/* colored-in pages taped on around the plate, one in each corner */
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.card {
  position: absolute;
  width: clamp(170px, 21vw, 270px);
  margin: 0;
  padding: 10px 10px 40px;
  border-radius: 5px;
  background: var(--card);
  box-shadow: 0 2px 4px rgba(var(--shade), .1), 0 22px 40px -16px rgba(var(--shade), .45);
  text-decoration: none;
  pointer-events: auto;
  transition: transform .5s var(--spring);
  animation: bob 7s ease-in-out infinite;
}
.card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  width: 84px;
  height: 25px;
  translate: -50% 0;
  rotate: -5deg;
  background: color-mix(in srgb, var(--butter) 80%, transparent);
  box-shadow: 0 1px 2px rgba(var(--shade), .08);
}
.card-1 { left: 2.5%; top: 6%; rotate: -8deg; animation-delay: -1s; }
.card-2 { right: 2.5%; top: 5%; rotate: 7deg; animation-delay: -3.5s; }
.card-3 { left: 3.5%; bottom: 6%; rotate: 5deg; animation-delay: -5.5s; }
.card-4 { right: 3.5%; bottom: 7%; rotate: -5deg; animation-delay: -2.2s; }
.card-2::before { background: color-mix(in srgb, var(--sage) 90%, transparent); rotate: 4deg; }
.card-3::before { background: color-mix(in srgb, var(--pink) 85%, transparent); rotate: 3deg; }
.card-4::before { background: color-mix(in srgb, var(--butter) 80%, transparent); }
.card:hover { transform: translateY(-6px) scale(1.04); }
/* each page starts as a blank coloring page; then a crayon runs across it and
   the colors come in behind it, one page after another, over and over */
.card-pic { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.card-pic img { width: 100%; aspect-ratio: 848 / 600; background: #fff; }
.card-color {
  position: absolute;
  inset: 0;
  -webkit-mask: linear-gradient(100deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat;
  mask: linear-gradient(100deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat;
  animation: color-in 9s ease-in-out both infinite;
  animation-delay: var(--at);
}
.card-crayon {
  position: absolute;
  left: 125%;
  top: 40%;
  width: 34px;
  height: 42px;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(var(--shade), .3));
  animation: crayon-across 9s ease-in-out both infinite, scribble .32s ease-in-out infinite alternate;
  animation-delay: var(--at), 0s;
}
.card-1 { --at: .5s; }
.card-2 { --at: 2.7s; }
.card-4 { --at: 4.9s; }
.card-3 { --at: 7.1s; }
@keyframes color-in {
  0%, 12% { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 1; }
  34%, 86% { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 1; }
  96% { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 0; }
  100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 0; }
}
@keyframes crayon-across {
  0%, 12% { left: -25%; opacity: 0; }
  14%, 31% { opacity: 1; }
  34%, 100% { left: 105%; opacity: 0; }
}
@keyframes scribble { from { translate: 0 -28px; rotate: -8deg; } to { translate: 0 28px; rotate: 8deg; } }
.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  color: var(--ink);
  font: 500 1.1rem/1.1 var(--font-hand);
  text-align: center;
  rotate: -2deg;
}

@keyframes bob { 50% { translate: 0 -8px; } }

.doodle { position: absolute; fill: var(--peach); pointer-events: none; animation: twinkle 4.5s ease-in-out infinite; }
.hero-panel .d1 { width: 26px; height: 26px; top: 22px; left: 31%; }
.hero-panel .d2 { width: 18px; height: 18px; bottom: 24px; left: 64%; fill: #f2899a; animation-delay: -2s; }
@keyframes twinkle { 50% { scale: .7; rotate: 45deg; } }

/* narrower screens: the plate on top, two of the pages in a row under it */
@media (max-width: 900px) {
  .hero-panel { display: flex; flex-direction: column; align-items: center; min-height: 0; }
  .hero-art { position: relative; inset: auto; display: flex; justify-content: center; gap: 4%; width: 100%; margin-top: 26px; }
  .card { position: relative; inset: auto; width: min(44%, 240px); }
  .card-3, .card-4 { display: none; }
  .hero-panel .d1 { display: none; }
}

/* ---------- Why us ----------
   Laid out the way porkbun.com opens: the big claim, a line of what's inside,
   the star ratings, then the selling points in a row of cards. */

.why { padding-block: clamp(8px, 2vw, 24px) clamp(48px, 7vw, 96px); }
.why h2 { max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.why-sub {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}
.why-sub b { color: var(--ink); font-weight: 800; }

.rating-row { display: flex; flex-wrap: wrap; gap: 22px clamp(36px, 6vw, 72px); margin-top: clamp(26px, 3.5vw, 40px); }
.rating {
  --star: clamp(20px, 5.6vw, 26px);
  --gap: calc(var(--star) * .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  margin: 0;
}
.rating p { margin: 0; }
.rating .score { font: 800 clamp(1.15rem, 2vw, 1.45rem)/1 var(--font-body); }
.rating .who { font: 600 1.25rem/1 var(--font-display); color: color-mix(in srgb, var(--colour) 60%, var(--ink)); }
.rating .from { font-size: .85rem; color: var(--ink-soft); }

.stars { position: relative; display: block; line-height: 0; }
.stars-back, .stars-front { display: flex; gap: var(--gap); }
.stars-back { color: var(--line); }
/* only as wide as the score: whole stars, then part of the next one */
.stars-front {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: calc(var(--whole) * (var(--star) + var(--gap)) + var(--part) * var(--star));
  color: var(--colour);
}
.stars svg { width: var(--star); height: var(--star); }
.stars path { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.point {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.point p { margin: 0; color: var(--ink-soft); }
.point-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: .4rem;
  border-radius: 50%;
  background: var(--butter);
  color: var(--rust);
  fill: var(--rust);
}
.point:nth-child(3n + 2) .point-icon { background: var(--pink); }
.point:nth-child(3n) .point-icon { background: var(--sage); }
.point-icon svg { width: 28px; height: 28px; }

@media (max-width: 900px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

/* ---------- Ticker ---------- */

.ticker-wrap { overflow-x: clip; padding-block: 14px; }

.ticker {
  margin-inline: -24px;
  padding: 14px 0;
  overflow: hidden;
  background: var(--sage);
  color: var(--ink);
  rotate: -1deg;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
  font: 600 clamp(1.2rem, 2.2vw, 1.65rem)/1.1 var(--font-display);
}
.ticker-track span { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; white-space: nowrap; }
.ticker-track svg { width: .65em; height: .65em; fill: var(--peach); }
.ticker-track svg:nth-of-type(2n) { fill: #f2899a; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  margin-bottom: clamp(26px, 4vw, 48px);
}

/* ---------- The pictures ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.chip {
  padding: .6em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--plate);
  color: var(--ink-soft);
  font: 700 .93rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--peach); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* the worlds: a big round button each, with its picture and its name;
   they wrap on a wide page, and make one row to swipe along on a phone */
.worlds { margin-bottom: 24px; }
/* Everything, then each group (learn while you color, just for fun) with
   its name over its row of buttons */
.world-all { margin: 4px 0 16px; }
.world-group + .world-group { margin-top: 18px; }
.world-group-head { margin: 0 0 10px 4px; color: var(--ink); font: 600 1.15rem/1.2 var(--font-display); }
.world-row { display: flex; flex-wrap: wrap; gap: 16px 10px; }
.world {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 98px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.world-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 2px rgba(var(--shade), .07), var(--shadow-sm);
  font-size: 2.6rem;
  line-height: 1;
  transition: transform .35s var(--spring), box-shadow .2s;
}
.world-icon img { display: block; width: 78%; height: 78%; border-radius: 26%; }
.world:hover .world-icon { transform: translateY(-3px) rotate(-5deg); }
.world:active .world-icon { transform: scale(.93); }
.world[aria-pressed="true"] .world-icon { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--ink), var(--shadow-sm); }
.world-name { font: 600 .98rem/1.15 var(--font-display); text-align: center; }
/* what's in season wears a little tag and bobs */
.world-now {
  position: absolute;
  top: -8px;
  right: -4px;
  padding: 1px 9px 3px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font-size: 1.15rem;
  rotate: 12deg;
}
.world.now .world-icon { animation: world-bob 2.4s ease-in-out infinite; }
@keyframes world-bob { 50% { transform: translateY(-4px) rotate(4deg); } }
.parts { margin-top: -8px; }
.parts[hidden] { display: none; }

@media (max-width: 700px) {
  .world-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .world-row::-webkit-scrollbar { display: none; }
  .world { flex: none; width: 78px; scroll-snap-align: start; }
  .world-icon { width: 68px; height: 68px; font-size: 2.1rem; }
  .world-name { font-size: .88rem; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.pic { position: relative; }
.pic[hidden] { display: none; }
.pic-link {
  display: block;
  padding: 10px 10px 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pic:nth-child(3n + 1) .pic-link { rotate: -.6deg; }
.pic:nth-child(3n + 2) .pic-link { rotate: .5deg; }
.pic-link:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.pic-sheet {
  position: relative;
  display: block;
  aspect-ratio: 848 / 600;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  /* a faint edge, like a sheet of paper */
  box-shadow: inset 0 0 0 1px var(--line);
}
.pic-sheet img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the drawing lies over what's been colored, its white letting the color through */
.pic-lines { mix-blend-mode: multiply; }
.pic-paint[hidden] { display: none; }
.pic-name {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .7rem .3rem .8rem;
  font: 600 1.3rem/1.1 var(--font-display);
}
/* the size: one crayon for Little, two for Medium, three for Big kid */
.pic-size {
  position: absolute;
  top: 7px;
  left: 7px;
  display: flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow-sm);
}
.pic-size svg { width: 17px; height: 22px; }

/* a members' picture, for someone who isn't one: a faded preview and a padlock */
.locked .pic-lines { opacity: .55; }
.pic-lock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--rust);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--spring);
}
.pic-lock svg { width: 22px; height: 22px; }
.locked .pic-link:hover .pic-lock { transform: rotate(-12deg) scale(1.08); }

/* make your own, from a photo: first in the grid */
.pic-make {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 230px;
  padding: 20px;
  border: 2.5px dashed var(--peach);
  border-radius: 14px;
  background: color-mix(in srgb, var(--plate) 70%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.grid > .pic-make[hidden] { display: none; }
.pic-make:hover { transform: translateY(-4px) rotate(.6deg); background: var(--plate); border-color: var(--rust); }
.pic-make-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--rust);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--pink) 35%, transparent);
}
.pic-make-icon svg { width: 38px; height: 38px; }
.pic-make-name { font: 600 1.45rem/1.1 var(--font-display); }
.pic-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 252, .92);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.pic-remove:hover { color: var(--ink); background: #fff; }
.pic-remove svg { width: 16px; height: 16px; }

/* the photo maker */
.maker-sheet {
  position: relative;
  margin: 0 auto 1.1rem;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  rotate: -1deg;
}
.maker-sheet canvas { display: block; width: 100%; max-height: 46dvh; object-fit: contain; aspect-ratio: 4 / 3; }
.maker-wait {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  margin: 0;
  background: rgba(255, 255, 255, .75);
  rotate: 0deg;
  font-size: 1.8rem;
}
.maker-sheet.working .maker-wait { display: grid; }
.maker-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 1.3rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .92rem;
}
.maker-detail span { white-space: nowrap; }
.maker-detail input { flex: 1; min-width: 0; accent-color: var(--rust); }
.maker-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

.noscript { padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* ---------- For grown-ups: the parents community's page ---------- */

/* the sign-up page (#parents): a happy pitch for parents */
.pitch { display: grid; gap: clamp(36px, 6vw, 64px); }
.pitch-hero { position: relative; display: grid; place-items: center; padding: clamp(18px, 4vw, 44px); border-radius: var(--panel-radius, 28px); }
.pitch-hero-card { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; max-width: 720px; padding: clamp(24px, 4vw, 44px); text-align: center; }
.pitch-hero-card h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.pitch-froggy { display: flex; align-items: center; gap: 8px; }
.pitch-kitty { flex: none; width: clamp(64px, 9vw, 92px); height: auto; animation: kitty-ask 2.8s var(--spring) infinite; }
.pitch-lede { max-width: 34em; margin: 0; color: var(--ink-soft); font-size: 1.12rem; }
.pitch-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; }
.pitch-go { font-size: 1.12rem; padding: .8em 1.6em; }
.pitch-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.pitch-trust li::before { content: "✓ "; color: #38c95b; font-weight: 900; }
.pitch-block h2 { margin-bottom: 18px; text-align: center; font-size: clamp(2rem, 5vw, 3.1rem); }
.pitch-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pitch-features li { position: relative; display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 34%, #fff), #fff 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 70%, #fff), 0 6px 0 color-mix(in srgb, var(--tint) 45%, transparent), var(--shadow-sm); transition: transform .2s var(--spring); }
.pitch-features li:hover { transform: translateY(-4px) rotate(-.6deg); }
.pitch-features h3 { font-size: 1.25rem; }
.pitch-features p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
.pitch-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, 0) 32%), var(--tint); box-shadow: inset 0 3px 1px rgba(255, 255, 255, .7), 0 4px 0 color-mix(in srgb, var(--tint) 66%, #5b4636); font-size: 1.7rem; }
.pitch-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pitch-steps li { display: grid; justify-items: center; gap: 8px; padding: 22px 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.pitch-steps p { margin: 0; color: var(--ink-soft); }
.pitch-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; font: 700 1.6rem/1 var(--font-display); text-shadow: 0 2px 0 rgba(0, 0, 0, .18); box-shadow: inset 0 3px 1px rgba(255, 255, 255, .5), 0 4px 0 rgba(0, 0, 0, .15); }
.pitch-steps li:nth-child(1) .pitch-num { background: #ff4f9a; }
.pitch-steps li:nth-child(2) .pitch-num { background: #1fa5f0; }
.pitch-steps li:nth-child(3) .pitch-num { background: #38c95b; }
.pitch-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.pitch-plan { position: relative; display: grid; align-content: start; justify-items: start; gap: 12px; padding: clamp(22px, 3vw, 32px); }
.pitch-plan h3 { font-size: 1.7rem; }
.pitch-plan .club-perks { margin: 0; }
.pitch-one { max-width: 620px; margin: 0 auto; justify-items: center; text-align: center; }
.pitch-one .club-perks { text-align: left; }
.pitch-member { background: linear-gradient(180deg, #fff7d6, #fff 60%); box-shadow: inset 0 0 0 3px #ffd84a, 0 6px 0 #f2c53d, var(--shadow-sm); }
.pitch-badge { position: absolute; top: -14px; right: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 7px; border-radius: 999px; background: linear-gradient(#fff7d6, #ffe58a); box-shadow: inset 0 0 0 2px #f2c53d, 0 3px 0 #d9a91c; color: #7a5200; font: 700 .95rem/1 var(--font-display); }
.pitch-badge svg { width: 20px; height: 20px; }
.pitch-fine { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.pitch-end { display: grid; place-items: center; padding: clamp(18px, 4vw, 40px); border-radius: var(--panel-radius, 28px); }
.pitch-end-card { display: grid; justify-items: center; gap: 12px; padding: 26px 30px; text-align: center; }
.pitch-end-card .save-pop-say { font-size: 1.6rem; }
@media (max-width: 760px) { .pitch-plans { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pitch-kitty { animation: none; } .pitch-features li:hover { transform: none; } }
.parents-page .heart { color: #e8638a; }
.parents-join { display: flex; flex-wrap: wrap; gap: 12px; }
.notes { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 1.08rem; }
.notes li { position: relative; padding-left: 30px; }
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 16px;
  height: 16px;
  background: var(--peach);
  clip-path: path("M8 0C8.7 4.8 11.2 7.3 16 8 11.2 8.7 8.7 11.2 8 16 7.3 11.2 4.8 8.7 0 8 4.8 7.3 7.3 4.8 8 0Z");
}
.notes li:nth-child(2n)::before { background: #f2899a; }
.notes b { color: var(--ink); }


/* ---------- Footer ---------- */

.site-footer { padding-block: 0 40px; color: var(--ink-soft); font-size: .93rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-row p { margin: 0; }
.logo-small { font-size: 1.3rem; }
.made { margin: 28px auto 0; text-align: center; font-size: .8rem; opacity: .7; }
.made a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.made a:hover { color: var(--rust); text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .name-underline path { stroke-dashoffset: 0; }
  .card-crayon { display: none; }
}

/* ==================== The coloring page ==================== */

/* Laid out like chess.com: the menu down the left, the page filling the
   middle as soon as the site opens, ready to color, and a panel on the right
   with the pictures to pick from. Below that first screen, how it works and
   the note for grown-ups, for whoever scrolls on. */

.shell { --menu-w: 320px; display: grid; grid-template-columns: var(--menu-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .35s var(--ease); }
/* while coloring, one screen and nothing to scroll, so a stray swipe can't carry the page away */
html:has(body.playing), body.playing { overflow: hidden; overscroll-behavior: none; }
/* and exactly the screen that shows: on an iPhone, 100vh is the screen as if
   Safari's bars were away, so with them showing (in landscape, with tabs)
   there was a strip under the board to scroll into, and the picture slid up
   under the bars; dvh is what's showing (older browsers keep 100vh) */
body.playing .shell { min-height: 0; height: 100vh; height: 100dvh; }
/* a swipe on the board's background doesn't move the page (the rows that
   scroll, "next!" and the colors, still do, and the page has its own pinch) */
body.playing .board { touch-action: none; overflow: hidden; }   /* and nothing sticking out of it makes the page scroll */
/* and Safari doesn't zoom the whole site from anywhere on it: not from the
   rows that scroll either ("next!", the colors, the menu), since a row that
   scrolls starts afresh and let it. Zoomed in like that, the site was stuck,
   with only "next!" to move it (on an iPad, 2026-10-29). The rows still
   scroll; the picture has its own zoom */
:where(body.playing, body.playing *) { touch-action: pan-x pan-y; }
/* unless it's zoomed in already (from before the picture opened): then
   Safari's pinch and scroll work everywhere, till it's zoomed back out (app.js) */
body.playing.site-zoomed, body.playing.site-zoomed * { touch-action: manipulation; }
.home[hidden], .board[hidden] { display: none; }

/* the menu: chocolate, with little colored drawings for icons */
.side {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100vh;
  height: 100dvh;
  width: var(--menu-w);
  padding: 14px 10px 16px;
  overflow-y: auto;
  background: var(--menu);
  color: var(--menu-ink);
  transition: transform .35s var(--ease), visibility .35s;
}
.side-title { margin: 0; font-size: inherit; }
.side-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  color: var(--menu-ink);
  font: 600 1.18rem/1.05 var(--font-display);
  text-decoration: none;
}
.side-logo .logo-mark { width: 42px; height: 42px; flex: none; }
.side-logo /* a topic's pictures colored in, out of all of them (app.js) */
.side-cat-n { margin-left: auto; padding-left: 8px; color: var(--ink-soft); font: 700 .78rem/1 var(--font-body); white-space: nowrap; }
.side-label { display: flex; flex-direction: column; white-space: nowrap; }
/* the pitch, under the name */
.side-tagline { margin-top: 3px; color: var(--rust); font: 500 1.05rem/1 var(--font-hand); white-space: nowrap; rotate: -2deg; transform-origin: left; }
/* the logo, and « beside it to slide the menu away */
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.side-hide, .menu-show {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--menu-soft);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.side-hide { margin-top: 8px; }
.side-hide:hover, .menu-show:hover { background: var(--menu-hover); color: var(--menu-ink); }
.side-hide svg, .menu-show svg { width: 20px; height: 20px; }
/* while it's away, » at the top left brings it back */
.menu-show { display: none; }
@media (min-width: 641px) {
  html.menu-out .shell { grid-template-columns: 0px minmax(0, 1fr); }
  html.menu-out .side { transform: translateX(-100%); visibility: hidden; }
  html.menu-out .menu-show {
    display: grid;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 31;
    width: 46px;
    height: 46px;
    background: var(--menu);
    color: var(--menu-ink);
    box-shadow: var(--shadow-sm);
  }
  html.menu-out .studio-top { padding-left: 64px; }
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: 800 1.02rem/1.1 var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}
.side-item:hover { background: var(--menu-hover); }
.side-item[aria-current] { background: var(--menu-current); box-shadow: var(--shadow-sm); }
.side-ico { flex: none; width: 32px; height: 32px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .3)); transition: transform .3s var(--spring); }
.side-item:hover .side-ico { transform: rotate(-8deg) scale(1.1); }
/* the parents community, in the menu: a handwritten note with an arrow
   down to Sign up, not a button */
.side-join { display: flex; align-items: flex-end; gap: 6px; margin: 16px 0 10px; padding: 0 10px 0 14px; }
.side-join .hand { font-size: 1.05rem; line-height: 1.2; }
.side-join .heart { color: #e8638a; }
.side-join-arrow { flex: none; width: 30px; height: 34px; margin-bottom: -12px; fill: none; stroke: var(--rust); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* My art, under the logo, with how many pictures are in it */
.side-mine-n {
  margin-left: auto;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font-size: .82rem;
  text-align: center;
}
.side-mine-n[hidden] { display: none; }
/* search, in the menu between "Coloring pages" and the categories */
.side-search { flex: none; height: 46px; margin: 0 0 4px; padding-inline: 14px; }
.side-search input { font-size: .98rem; }
/* the categories: a list, one to a row with a little round icon (the user,
   2026-10-28), scrolling on their own between Home and the foot of the menu
   when there are more than fit, and fading out at the bottom so that shows */
.side-cats {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 140px;
  margin: 4px -10px 4px;
  padding: 0 10px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--menu-hover) transparent;
  mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}
.side-head { margin: 14px 0 8px 12px; color: var(--menu-soft); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.side-cat-list { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.side-cat { padding-block: 7px; color: var(--menu-ink); }
.side-cat-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .9) 0 8%, rgba(255, 255, 255, 0) 36%),
    var(--tint);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), 0 2px 0 color-mix(in srgb, var(--tint) 66%, #5b4636);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .3s var(--spring);
}
.side-cat-icon img { display: block; width: 78%; height: 78%; border-radius: 26%; }
.side-cat-icon .icon-kitty { width: 84%; height: 84%; margin-top: 6%; }
.side-cat:hover .side-cat-icon { transform: rotate(-8deg) scale(1.1); }
.side-cat .world-now { position: static; margin-left: auto; padding: 0 7px 2px; font-size: .9rem; rotate: 6deg; }
.side-cat.now .side-cat-icon { animation: world-bob 2.4s ease-in-out infinite; }

/* Froggy says hello, at the top of the front page */
.froggy-hello { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 1rem; }
.froggy-hello-kitty { flex: none; width: 74px; height: 74px; transform-origin: 50% 90%; animation: froggy-wave 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(var(--shade), .18)); }
.froggy-bubble {
  position: relative;
  margin: 0;
  padding: .55em .9em .6em;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--peach);
  color: var(--rust);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.1;
  text-align: left;
  rotate: -2deg;
}
.froggy-bubble::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 16px;
  height: 16px;
  translate: 0 -50%;
  rotate: 45deg;
  background: var(--card);
  box-shadow: -2px 2px 0 0 var(--peach);
}
@keyframes froggy-wave { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -9deg; } 86% { rotate: 7deg; } 93% { rotate: -4deg; } }

/* ---------- A category's page ----------
   its round icon and name, then the library showing just its pictures (no
   search, no round buttons: the menu is where the other categories are) */

.cat-page[hidden] { display: none; }
.cat-page { padding-block: clamp(28px, 5vw, 64px); min-height: 100vh; }
.cat-head { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 24px); margin-bottom: clamp(22px, 3vw, 34px); }
.cat-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(76px, 10vw, 108px);
  height: clamp(76px, 10vw, 108px);
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 2px rgba(var(--shade), .07), var(--shadow-sm);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
}
.cat-icon img { display: block; width: 78%; height: 78%; border-radius: 26%; }
.cat-icon svg { width: 56%; height: 56%; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
.cat-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.cat-count { margin: .3rem 0 0; color: var(--ink-soft); }
.cat-count b { color: var(--rust); font-size: 1.15rem; font-weight: 800; }
.cat-page .search, .cat-page .worlds { display: none; }
.cat-page .parts { margin: 0 0 28px; }

/* ---------- The account page ---------- */

.account-page[hidden] { display: none; }
.account-page { padding-block: clamp(28px, 5vw, 64px); min-height: 100vh; }
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(22px, 3vw, 34px); }
.account-kitty { flex: none; width: 84px; height: 84px; filter: drop-shadow(0 4px 6px rgba(var(--shade), .18)); }
.account-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.account-card { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(20px, 3vw, 30px); }
.account-card h2 { font-size: 1.6rem; }
.account-card p { margin: 0; color: var(--ink-soft); }
.account-card p b { color: var(--ink); }
.account-settings { grid-column: 1 / -1; align-items: stretch; }
.account-settings .set-label { margin: 0; }
.account-settings .themes { max-width: 620px; }
.chunky.account-back { width: auto; margin-top: clamp(22px, 3vw, 34px); padding-inline: 1.4em; }
html.member .member-no, html:not(.member) .member-yes { display: none; }
@media (max-width: 760px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }

/* the foot of the menu: sign up and sign in, or the account once signed in */
.side-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
html.signed-in .auth-out, html:not(.signed-in) .auth-in { display: none !important; }
.side-signup { background: var(--btn); color: var(--btn-ink); box-shadow: inset 0 -3px 0 var(--btn-edge); }
.side-signup:hover { background: var(--btn-top); }

/* on phones only: the logo, and signing up or in, at the top of the front page */
.phone-top { display: none; }
.side-promise {
  margin: auto 4px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--menu-current);
  color: var(--menu-soft);
  font-size: .82rem;
  line-height: 1.45;
}
.side-promise b { color: var(--menu-ink); }
.side-made { margin: 10px 4px 0; color: var(--menu-soft); font-size: .74rem; text-align: center; }
.side-made a { color: inherit; text-underline-offset: 3px; }
.side-made a:hover { color: var(--menu-ink); }
/* how many kids are coloring right now, under Sign in, with a green "live" dot */
.side-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 4px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--menu-current);
  color: var(--menu-soft);
  font-size: .82rem;
  line-height: 1.25;
}
.side-live[hidden] { display: none; }
.side-live b { color: var(--menu-ink); font-size: 1rem; font-weight: 800; }
.live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #43b54a;
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 rgba(67, 181, 74, .55); }
  to { box-shadow: 0 0 0 8px rgba(67, 181, 74, 0); }
}
.side :focus-visible { outline-color: #ffd54f; }

/* the first screen: the page, and the pictures beside it */
.main { min-width: 0; }
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--ging-bg-soft);
  background-image:
    linear-gradient(90deg, var(--ging-a-soft) 50%, transparent 0),
    linear-gradient(var(--ging-b-soft) 50%, transparent 0);
  background-size: 34px 34px;
}

.studio {
  --c: #1e63c8;          /* the color in hand */
  --swatch: clamp(24px, min(4.4vh, 2.6vw), 40px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "top top" "next kit" "stage kit";
  padding-left: 10px;
  min-width: 0;
  min-height: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

.studio-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 6px 2px 20px;
}
.studio-title {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.studio-title .hand { margin-right: .1em; font-size: .9em; }
.history { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Settings: the colors to color in ---------- */

.settings-card h2 { margin: .3rem 0 1.2rem; }
.set-label { margin: 0 0 .7rem; font: 800 .82rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 10px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: 600 1rem/1.1 var(--font-display);
  cursor: pointer;
  transition: transform .25s var(--spring), border-color .2s;
}
.theme-pick:hover { transform: translateY(-3px); }
.theme-pick[aria-checked="true"] { border-color: var(--rust); box-shadow: 0 0 0 3px var(--glow); }
/* each one shows its own colors whatever the page is in: the menu down the
   side, the gingham, and a button */
.theme-swatch {
  position: relative;
  display: block;
  height: 84px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(90deg, var(--ga) 50%, transparent 0) 0 0 / 18px 18px,
    linear-gradient(var(--gb) 50%, transparent 0) 0 0 / 18px 18px,
    var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.theme-swatch::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: var(--mn); }
.theme-swatch::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 48%;
  height: 24%;
  border-radius: 999px;
  background: var(--bt);
  box-shadow: inset 0 -3px 0 var(--ed);
}
.theme-pick[aria-checked="true"]::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 3px var(--plate);
}

/* a chunky button, like chess.com's big green Play */
/* the note for grown-ups, in its pop-up */
.info .notes { margin: 1rem 0 0; text-align: left; }
.info-made { margin: 1.4rem 0 0; color: var(--ink-soft); font-size: .82rem; opacity: .8; }
.info-made a { color: inherit; text-underline-offset: 3px; }

.chunky {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  width: 100%;
  padding: .62em 1em .68em;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(var(--btn-top), var(--btn));
  color: var(--btn-ink);
  font: 600 1.55rem/1 var(--font-display);
  box-shadow: 0 5px 0 var(--btn-edge), 0 12px 20px -8px rgba(var(--shade), .5);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.chunky:hover { filter: brightness(1.07); }
.chunky:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge); }
.chunky .icon { width: .9em; height: .9em; }

.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.scrim[hidden] { display: none; }

.round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 252, .6), var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s var(--spring), opacity .2s;
}
.round svg { width: 24px; height: 24px; }
.round:hover:not(:disabled) { transform: scale(1.07); }
.round:active:not(:disabled) { transform: scale(.94); }
.round:disabled { opacity: .4; cursor: default; }


/* the page, as big as fits, at the drawing's 4:3 */
.stage {
  grid-area: stage;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 8px;
  container-type: size;
}
.page {
  position: relative;
  /* A4 landscape (2026-10-18) */
  width: min(100cqw, 100cqh * 848 / 600);
  aspect-ratio: 848 / 600;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(var(--shade), .08), 0 20px 50px -18px rgba(var(--shade), .4);
  isolation: isolate;
  touch-action: none;
  cursor: crosshair;
}
.page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* two fingers zoom (app.js): the canvases move and grow together, cut to the page */
.page canvas { transform-origin: 0 0; transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(var(--zs, 1)); }
.page canvas:last-of-type { pointer-events: none; }
.page.brush { cursor: none; }
/* sounds on or off (sound.js): the speaker, or the speaker crossed out */
.sound-btn .sound-off, .sound-btn[aria-pressed="false"] .sound-on { display: none; }
.sound-btn[aria-pressed="false"] .sound-off { display: block; }
.sound-btn[aria-pressed="false"] { color: var(--ink-soft); }
.page.loading canvas { visibility: hidden; }

/* where a mouse is about to paint, as big as the brush */
.ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  border: 2px solid rgba(var(--shade), .6);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .8);
  pointer-events: none;
}
.ring[hidden] { display: none; }

.page-wait {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  rotate: 0deg;
  font-size: 2rem;
}
.page.loading .page-wait { display: grid; }

/* a members' picture for someone who isn't one: the drawing to look at, the
   same as any page, with a big padlock in the middle and a button for a
   grown-up under it */
.page.locked { cursor: default; }
.page.loading .page-lock { visibility: hidden; }
.page-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  translate: -50% -48px;     /* the padlock's middle on the page's middle */
  white-space: nowrap;
}
.page.locked .page-lock { display: flex; }
.page-lock-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--rust);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--plate) 85%, transparent), var(--shadow-lg);
}
.page-lock-badge svg { width: 48px; height: 48px; }
.page-lock-badge.wiggle { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 20% { rotate: -16deg; } 45% { rotate: 12deg; } 70% { rotate: -6deg; } }
.page-lock .btn { box-shadow: var(--shadow-lg); }
@container (max-width: 520px) {
  .page-lock { gap: 10px; translate: -50% -32px; }
  .page-lock-badge { width: 64px; height: 64px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--plate) 85%, transparent), var(--shadow-lg); }
  .page-lock-badge svg { width: 32px; height: 32px; }
}

/* how many other kids are coloring this picture right now, in the corner:
   it says so, then shrinks to the dot and the number (.quiet, from app.js).
   Paint goes straight through it. */
.together {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--plate) 90%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  animation: pop .4s var(--spring);
}
.together[hidden] { display: none; }
.together b { color: var(--ink); font-weight: 800; }
.together-text { overflow: hidden; max-width: 24em; transition: max-width .7s var(--ease), opacity .4s, margin .7s var(--ease); }
.together.quiet .together-text { max-width: 0; margin-left: -7px; opacity: 0; }
.together.quiet { padding-right: 10px; }
.page.loading .together { visibility: hidden; }

/* on a card: how many kids are coloring it right now */
.live-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font: 800 .82rem/1 var(--font-body);
}
.live-badge .live-dot { width: 8px; height: 8px; }
.next-pic .live-badge { top: 7px; right: 7px; display: flex; gap: 4px; padding: 2px 6px 2px 4px; font: 800 .7rem/1 var(--font-body); }
.next-pic .live-badge .live-dot { display: block; width: 7px; height: 7px; padding: 0; }

/* nothing to color with on a padlocked picture */
.studio.locked .kit > * { opacity: .4; filter: grayscale(.6); }   /* on phones .kit is display: contents */
.chunky:disabled { opacity: .5; filter: grayscale(.4); cursor: default; transform: none; }

/* the brush size: a tapering track with a dot of the color, as big as the brush */
.size {
  --v: .4;
  grid-area: size;
  position: relative;
  justify-self: center;
  align-self: center;
  width: 56px;
  height: min(300px, 56%);
  cursor: pointer;
  touch-action: none;
  /* on the whole slider, since the track's own outline would be clipped off with it */
  filter: drop-shadow(0 0 1px rgba(var(--shade), .45)) drop-shadow(0 2px 3px rgba(var(--shade), .18));
}
.size-track {
  position: absolute;
  inset: 0 6px;
  border-radius: 28px;
  background: var(--card);
  clip-path: polygon(0 0, 100% 0, 64% 100%, 36% 100%);
}
.size-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--paper-deep), transparent);
  opacity: .5;
}
.size-knob {
  --d: calc(16px + var(--v) * 26px);
  position: absolute;
  left: 50%;
  top: calc(21px + (1 - var(--v)) * (100% - 42px));
  width: var(--d);
  height: var(--d);
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px #fff, 0 2px 6px 2px rgba(var(--shade), .3);
  pointer-events: none;
}
.size:focus-visible { outline: none; }
.size:focus-visible .size-knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rust); }

/* the colors: a row under the page */
.colors {
  grid-area: colors;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px 0;
}
.swatch {
  position: relative;
  width: var(--swatch);
  height: var(--swatch);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--s);
  box-shadow: inset 0 0 0 1px rgba(var(--shade), .18), 0 2px 4px rgba(var(--shade), .18);
  cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--s), 0 4px 10px rgba(var(--shade), .3);
}
.swatch[data-light][aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink-soft), 0 4px 10px rgba(var(--shade), .3); }
/* any color at all, from a wheel */
.wheel {
  --s: #fff;
  background: conic-gradient(#e53935, #fb8c00, #fdd835, #7cb342, #4fc3f7, #1e63c8, #8e44ad, #f48fb1, #e53935);
  overflow: hidden;
}
.wheel::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 0 2px #fff;
}
.wheel[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink-soft), 0 4px 10px rgba(var(--shade), .3); }

/* the any-color dialog the wheel opens: a rainbow disc and a dark-to-bright slider */
.anycolor { width: min(100vw - 24px, 400px); }
.anycolor-card h2 { margin: .3rem 0 1rem; font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.anycolor-disc {
  position: relative;
  width: min(100%, 260px, 42dvh);
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, var(--shadow-sm);
  cursor: crosshair;
  touch-action: none;
}
.anycolor-disc canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.anycolor-dim { position: absolute; inset: 0; border-radius: 50%; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.anycolor-knob {
  position: absolute;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--pick);
  box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.anycolor-light { margin-bottom: 1.2rem; }
.anycolor-light input {
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, #000, var(--pick-top));
  box-shadow: inset 0 0 0 1px rgba(var(--shade), .18);
  appearance: none;
  -webkit-appearance: none;
}
.anycolor-light input::-webkit-slider-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pick); box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(0, 0, 0, .35);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.anycolor-light input::-moz-range-thumb {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--pick); box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(0, 0, 0, .35); cursor: pointer;
}
.anycolor-chip { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--pick); box-shadow: 0 0 0 2px #fff; }

/* the tools stand along the bottom; the one in hand comes up */
.tools {
  grid-area: tools;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0px, 1.2vw, 14px);
  height: 112px;
  overflow: hidden;
  padding: 0 12px;
}
.tool {
  position: relative;
  flex: none;
  width: 58px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tool svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: translateY(54px);
  transition: transform .35s var(--spring);
  filter: drop-shadow(0 3px 2px rgba(var(--shade), .22));
}
.tool:hover svg { transform: translateY(44px); }
.tool[aria-checked="true"] svg { transform: translateY(8px); }
.tool:focus-visible { outline: none; }
.tool:focus-visible svg { filter: drop-shadow(0 0 0 var(--rust)) drop-shadow(0 0 3px var(--rust)); }

/* what to color next, in a row under the page */
.next {
  grid-area: next;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 10px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.next::-webkit-scrollbar { display: none; }
/* fading out at the end, so a cut-off picture reads as more to scroll to */
.next { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.next-label { flex: none; margin-right: 2px; font-size: 1.35rem; }
.next-pic {
  position: relative;
  flex: none;
  width: clamp(78px, 7.5vw, 112px);
  padding: 4px 4px 0;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.next-pic:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.next-pic img { display: block; width: 100%; aspect-ratio: 848 / 600; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.next-pic.locked img { opacity: .55; }
.next-pic span { display: block; padding: 3px 2px 5px; overflow: hidden; font: 600 .82rem/1.1 var(--font-display); white-space: nowrap; text-overflow: ellipsis; }
.next-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  translate: -50% -80%;
  border-radius: 50%;
  background: var(--butter);
  color: var(--rust);
  box-shadow: var(--shadow-sm);
}
.next-lock svg { width: 15px; height: 15px; }

/* the colors and tools, in a tray to the right of the page */
@media (min-width: 641px) {
  .kit {
    --th: 38px;            /* how thick a tool is, lying down */
    grid-area: kit;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 4px 12px 2px;
    padding: 14px 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 252, .72);
    box-shadow: var(--shadow-sm);
  }
  .kit .colors {
    display: grid;
    grid-template-columns: repeat(4, var(--swatch));
    justify-content: center;
    gap: 9px;
    padding: 4px;
  }
  /* the brush size, lying across the tray between the colors and the tools */
  .kit .size { width: 100%; height: 40px; margin: -4px 0; }
  .kit .size-track { inset: 6px 0; clip-path: polygon(0 36%, 100% 0, 100% 100%, 0 64%); }
  .kit .size-track::after { background: linear-gradient(90deg, transparent, var(--paper-deep)); }
  .kit .size-knob { left: calc(21px + var(--v) * (100% - 42px)); top: 50%; }
  .kit .tools {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    height: auto;
    padding: 0;
    overflow: visible;
  }
  .kit .tool { width: 100%; height: var(--th); }
  /* each tool drawn standing up, then laid down with its tip to the left;
     the shorter bucket moves along so all the handles line up on the right */
  .kit .tool svg {
    --push: 22px;
    width: var(--th);
    transform-origin: 0 0;
    transform: translate(calc(var(--push) + var(--extra, 0px)), var(--th)) rotate(-90deg);
    filter: drop-shadow(0 0 1.5px rgba(var(--shade), .3));
  }
  .kit .tool[data-tool="bucket"] svg { --extra: calc(var(--th) * 40 / 60); }
  .kit .tool:hover svg { --push: 12px; transform: translate(calc(var(--push) + var(--extra, 0px)), var(--th)) rotate(-90deg); }
  .kit .tool[aria-checked="true"] svg { --push: -10px; transform: translate(calc(var(--push) + var(--extra, 0px)), var(--th)) rotate(-90deg); }
  .kit .tool:focus-visible svg { filter: drop-shadow(0 0 3px var(--rust)); }
}

/* short screens (phones on their side): a smaller tray */
@media (min-width: 641px) and (max-height: 600px) {
  .studio .bigstar { width: 70px; margin-top: -2px; }
  .studio { --swatch: 22px; }
  .kit { --th: 24px; gap: 8px; margin-bottom: 6px; padding: 8px 8px; }
  .kit .colors { grid-template-columns: repeat(6, var(--swatch)); gap: 5px; padding: 2px; }
  .kit .tools { gap: 1px; }
  .studio-top { padding-top: 6px; }
  .next { display: none; }
  .round { width: 38px; height: 38px; }
  .round svg { width: 19px; height: 19px; }
  .kit .size { height: 30px; margin: -2px 0; }
  .kit .size-knob { --d: calc(12px + var(--v) * 16px); }
}

/* narrower computers: a narrower menu */
@media (max-width: 1240px) {
  .shell { --menu-w: 276px; }
  .side-tagline { font-size: .92rem; }   /* "Learn through coloring" on one line */
}
/* tablets: narrower again */
@media (max-width: 900px) {
  .shell { --menu-w: 232px; }
  .side { padding-inline: 8px; }
  /* the logo on one line still leaves room for « */
  .side-logo { gap: 8px; padding-inline: 4px; font-size: 1rem; }
  .side-logo .logo-mark { width: 34px; height: 34px; }
  .side-tagline { font-size: .8rem; }
  .side-cats { margin-inline: -8px; padding-inline: 8px; }
  .side-search input { font-size: .9rem; }
}

/* phones: the logo and Sign in at the top of the front page, and room for
   ☰ (the menu over the page, and the coloring page's layout, are further
   down: html.menu-float and html.board-stack) */
@media (max-width: 640px) {
  .phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) 2px;
  }
  .phone-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 1.3rem/1 var(--font-display); text-decoration: none; }
  .phone-logo .logo-mark { width: 38px; height: 38px; margin: 0; }
  .phone-auth { display: flex; align-items: center; gap: 14px; }
  .phone-auth .link-btn { font-size: .95rem; }
  .main { padding-bottom: env(safe-area-inset-bottom); }
  .phone-top { padding-left: 66px; }
  .cat-page, .account-page { padding-top: 72px; }
}

/* ---------- Dialogs: the members' one, Any color ---------- */

.done {
  width: min(100vw - 24px, 640px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.done::backdrop {
  background: rgba(var(--shade), .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.done[open] { animation: pop .45s var(--spring); }
@keyframes pop { from { opacity: 0; scale: .9; } }
.done-card {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 36px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.done-card h2 { margin: .4rem 0 1.2rem; font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; }
.done-close svg { width: 20px; height: 20px; }
/* the members' dialog (members.js) */
.club { width: min(100vw - 24px, 480px); }
.club-card h2 { margin: .3rem 0 .8rem; font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.club-card p { margin: 0 0 1rem; line-height: 1.5; }
.club-pic {
  width: min(60%, 220px);
  margin: 0 auto 1rem;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  rotate: -2deg;
}
.club-pic[hidden] { display: none; }
.club-perks { margin: 0 auto 1rem; padding: 0; list-style: none; text-align: left; width: fit-content; }
.club-perks li { position: relative; padding: .25rem 0 .25rem 1.7rem; }
.club-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23411e06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.club-form { display: grid; gap: .6rem; margin-bottom: 1rem; }
.club-form label { line-height: 1.4; }
.club-row { display: flex; gap: 8px; justify-content: center; }
.club-row input {
  flex: 1;
  min-width: 0;
  max-width: 280px;
  padding: .75em 1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 1rem/1.2 var(--font-body);
}
.club-row input:focus { border-color: var(--peach); outline: none; box-shadow: 0 0 0 3px var(--glow); }
#club-a { max-width: 110px; text-align: center; font-size: 1.2rem; }
#club-code { max-width: 170px; text-align: center; font-size: 1.3rem; letter-spacing: .25em; }
.club-go { min-width: 12em; margin-bottom: 1rem; font-size: 1.08rem; }
/* monthly or yearly, before Checkout: yearly first and picked. The prices
   show only where the page knows the currency (members.js) */
.plans { display: flex; gap: 10px; justify-content: center; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.account-card .plans { justify-content: flex-start; margin: 0; }
.plan {
  position: relative;
  flex: 0 1 10em;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  padding: .7rem .8rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.plan:hover { border-color: var(--peach); }
.plan:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--butter) 40%, var(--card)); color: var(--ink); }
.plan:has(input:focus-visible) { outline: 3px solid var(--rust); outline-offset: 3px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-what { font: 600 1.05rem/1.2 var(--font-display); }
.plan-price { font: 700 1.35rem/1.2 var(--font-display); color: var(--ink); }
.plan-price:empty { display: none; }
.plan-note { color: var(--rust); font-size: .82rem; font-weight: 700; }
.club-card .club-fine { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.club-card .club-error { margin: 1rem 0 0; color: #b3261e; font-weight: 700; }
.club-card .club-error[hidden] { display: none; }
.club-card section[hidden] { display: none; }
/* what the grown-up wants a kid to learn: the learning categories as chips,
   while signing up and in Settings (learn.js) */
.topic-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 1.2rem; }
.topic-pick { display: inline-flex; align-items: center; gap: .4em; padding: .55em .95em; }
.kid-edit .topic-picks { justify-content: flex-start; margin: 0; }
.club.busy .club-card { cursor: progress; }
.club .btn:disabled { opacity: .55; transform: none; box-shadow: none; cursor: progress; }

/* a button that reads like a link, inside a sentence */
.link-btn { padding: 0; border: 0; background: none; color: var(--rust); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }



/* ---------- Search, and the library in the menu ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  height: 50px;
  margin: 0 0 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm);
  color: var(--ink-soft);
  cursor: text;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--rust), 0 0 0 4px var(--glow); }
.search svg { flex: none; width: 22px; height: 22px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 1.05rem/1 var(--font-body);
  outline: none;
}
.search input::placeholder { color: var(--ink-soft); opacity: .8; font-weight: 600; }
.search-none { margin: 0; padding: 24px 16px; color: var(--ink-soft); text-align: center; }
.picker.searching .worlds, .picker.searching .parts { display: none; }


/* ==================== The toy look ====================
   Like START: things you can press look like chunky, glossy plastic toys,
   with a shine on top, a thicker edge underneath that they press down onto,
   and a little life when a pointer comes onto them. */

/* the round category buttons, over the pictures and on a category's page:
   shiny toy balls with an edge, the emoji standing out */
.world-icon, .cat-icon {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 115%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0) 55%),
    var(--tint);
  box-shadow:
    inset 0 3px 1px rgba(255, 255, 255, .7),
    inset 0 -4px 2px rgba(0, 0, 0, .07),
    0 5px 0 color-mix(in srgb, var(--tint) 66%, #5b4636),
    0 12px 18px -8px rgba(var(--shade), .4);
  text-shadow: 0 3px 3px rgba(0, 0, 0, .22);
}
.world-icon img, .cat-icon img { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); }
/* Froggy & friends: the logo's kitty, standing in its ball */
.world-icon .icon-kitty, .cat-icon .icon-kitty { width: 80%; height: 80%; margin-top: 4%; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); }
/* a shine runs across when a pointer comes on */
.world-icon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.world:hover .world-icon::after { animation: toy-shine .7s ease-out; }
@keyframes toy-shine { from { left: -80%; } to { left: 140%; } }
/* pressed down onto its edge */
.world:active .world-icon {
  transform: translateY(4px) scale(.97);
  box-shadow: inset 0 3px 1px rgba(255, 255, 255, .7), inset 0 -4px 2px rgba(0, 0, 0, .07), 0 1px 0 color-mix(in srgb, var(--tint) 66%, #5b4636), 0 4px 8px -4px rgba(var(--shade), .4);
}
/* the one that's open: a ring around it */
.world[aria-pressed="true"] .world-icon {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow:
    inset 0 3px 1px rgba(255, 255, 255, .7),
    inset 0 -4px 2px rgba(0, 0, 0, .07),
    0 5px 0 color-mix(in srgb, var(--tint) 66%, #5b4636),
    0 12px 18px -8px rgba(var(--shade), .4);
}
/* the big one at the top of a category's page breathes, like START */
.cat-icon { animation: breathe 2.8s ease-in-out infinite; }

/* buttons: plastic, with a gloss and an edge */
.btn {
  border: 0;
  background: linear-gradient(#fff, #eef3f8);
  box-shadow: inset 0 0 0 2px rgba(var(--shade), .14), inset 0 2px 0 #fff, 0 4px 0 rgba(var(--shade), .2), 0 10px 16px -8px rgba(var(--shade), .35);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--btn-top), var(--btn));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .06), 0 4px 0 var(--btn-edge), 0 10px 18px -8px rgba(var(--shade), .5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  animation: shine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(var(--shade), .14), inset 0 2px 0 #fff, 0 6px 0 rgba(var(--shade), .2), 0 14px 20px -8px rgba(var(--shade), .35); }
.btn-primary:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .06), 0 6px 0 var(--btn-edge), 0 14px 22px -8px rgba(var(--shade), .5); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px rgba(var(--shade), .14), 0 1px 0 rgba(var(--shade), .2); }
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 1px 0 var(--btn-edge); }

/* the round buttons (undo, redo, start over, close) */
.round { box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(var(--shade), .06), 0 4px 0 rgba(var(--shade), .16), 0 10px 16px -8px rgba(var(--shade), .35); }
.round:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 rgba(var(--shade), .16); }

/* the little buttons inside a category (Halloween, Pets, January…) */
.chip { border: 0; background: linear-gradient(#fff, #f1f5f9); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 rgba(var(--shade), .14); transition: transform .15s var(--spring), box-shadow .15s, background-color .2s, color .2s; }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 0 rgba(var(--shade), .14); }
.chip[aria-pressed="true"] { background: linear-gradient(color-mix(in srgb, var(--ink) 80%, #fff), var(--ink)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 3px 0 color-mix(in srgb, var(--ink) 70%, #000); }

/* the picture cards: chunky, with an edge, that bounce up a little */
.pic-link { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 5px 0 rgba(var(--shade), .09), 0 14px 24px -12px rgba(var(--shade), .4); transition: transform .35s var(--spring), box-shadow .35s; }
.pic-link:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 9px 0 rgba(var(--shade), .09), 0 22px 30px -12px rgba(var(--shade), .45); }
.pic-link:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 1px 0 rgba(var(--shade), .09); }
.next-pic { box-shadow: 0 4px 0 rgba(var(--shade), .09), 0 10px 16px -8px rgba(var(--shade), .35); }
.next-pic:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(var(--shade), .09); }
.plate { box-shadow: 0 6px 0 rgba(var(--shade), .05), var(--shadow-sm); }

/* the colors: shiny marbles */
.swatch { box-shadow: inset 0 -3px 2px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(var(--shade), .14), 0 3px 0 rgba(var(--shade), .16); }
.swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .8) 0 10%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}
.kit { box-shadow: inset 0 2px 0 #fff, 0 6px 0 rgba(var(--shade), .06), var(--shadow-sm); }

/* the search box: pressed into the page */
.search { box-shadow: inset 0 3px 6px rgba(var(--shade), .12), inset 0 0 0 2px var(--line), 0 2px 0 rgba(255, 255, 255, .9); }

/* the menu: a soft light down it, and a shadow along its edge */
.side {
  background: linear-gradient(170deg, color-mix(in srgb, var(--menu) 55%, #fff), var(--menu) 45%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7), 4px 0 22px -12px rgba(var(--shade), .35);
}
.side-item:hover { background: rgba(255, 255, 255, .5); box-shadow: 0 3px 0 rgba(var(--shade), .08); }
.side-item[aria-current] { background: linear-gradient(#fff, rgba(255, 255, 255, .75)); box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(var(--shade), .1), var(--shadow-sm); }
/* Sign up: a little START, with its shine */
.side-signup {
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--btn-top), var(--btn));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--btn-edge), 0 10px 16px -8px rgba(var(--shade), .45);
}
.side-signup:hover { background: linear-gradient(var(--btn-top), var(--btn)); filter: brightness(1.05); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--btn-edge), 0 10px 16px -8px rgba(var(--shade), .45); }
.side-signup:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 1px 0 var(--btn-edge); }
/* still the blue button while its page (the parents') is open */
.side-signup[aria-current] { background: linear-gradient(var(--btn-top), var(--btn)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--btn-edge), 0 10px 16px -8px rgba(var(--shade), .45); }
.side-signup::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.side-mine-n { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 0 color-mix(in srgb, var(--rust) 70%, #000); }

/* the big page titles stand up off the paper a little */
.cat-head h1, .account-head h1 { text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(var(--shade), .1); }

@media (prefers-reduced-motion: reduce) {
  .cat-icon, .btn-primary::after, .side-signup::after { animation: none; }
}

/* ---------- Froggy cheers, at the corner of the page ---------- */

.stage { position: relative; }
.cheer {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(.8);
  transform-origin: 15% 100%;
  transition: opacity .25s, transform .5s var(--spring);
}
.cheer.on { opacity: 1; transform: none; }
.cheer-kitty { flex: none; width: clamp(54px, 6.5vw, 80px); height: clamp(54px, 6.5vw, 80px); filter: drop-shadow(0 5px 6px rgba(var(--shade), .3)); }
.cheer-bubble {
  position: relative;
  margin: 0 0 34px;
  padding: .4em .8em .48em;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 0 rgba(var(--shade), .08), var(--shadow-sm), inset 0 0 0 2px var(--peach);
  color: var(--rust);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
  white-space: nowrap;
  rotate: -3deg;
}
.cheer-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  rotate: 45deg;
  background: var(--card);
  box-shadow: -2px 2px 0 0 var(--peach);
}
@media (prefers-reduced-motion: reduce) { .cheer { transform: none; transition: opacity .25s; } }

/* ---------- A switch, in Settings ---------- */

.toggle { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 1.02rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative;
  flex: none;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(#e3e8ee, #d3dae2);
  box-shadow: inset 0 3px 5px rgba(var(--shade), .2);
  transition: background-color .25s;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, #eef2f6);
  box-shadow: 0 3px 0 rgba(var(--shade), .2), 0 4px 8px rgba(var(--shade), .25);
  transition: transform .3s var(--spring);
}
.toggle input:checked + .toggle-track { background: linear-gradient(var(--btn-top), var(--btn)); box-shadow: inset 0 3px 5px rgba(var(--shade), .2), inset 0 0 0 1px var(--btn-edge); }
.toggle input:checked + .toggle-track::after { transform: translateX(24px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--ink); outline-offset: 3px; }
.account-froggy { grid-column: 1 / -1; }

/* ---------- The party look (party.js), after onlinebirthdaycake.com ----------
   Rainbow letters, each a party color with a little 3D shadow, tuned to
   read on a light page (the yellow's a deep gold); a white START with
   rainbow letters; and balloons, bubbles, stars and crayons drifting up
   behind the pages. */

.rb-word { display: inline-block; white-space: nowrap; }
.rb {
  display: inline-block;
  color: var(--rb);
  text-shadow: 0 .06em 0 var(--rb-dark), 0 .12em .24em rgba(var(--shade), .22);
}
.rb-0 { --rb: #ff4f9a; --rb-dark: #c42a6f; }
.rb-1 { --rb: #ff8a2b; --rb-dark: #c45f0e; }
.rb-2 { --rb: #ffc21a; --rb-dark: #c28f00; }
.rb-3 { --rb: #38c95b; --rb-dark: #22913d; }
.rb-4 { --rb: #1fa5f0; --rb-dark: #1272ad; }
.rb-5 { --rb: #9a6bff; --rb-dark: #6a3fd0; }
/* a hop, letter by letter, when a pointer comes on the logo or START */
.side-logo:hover .rb, .logo:hover .rb, .start:hover .rb { animation: rb-hop .5s var(--spring); }
.rb-word .rb:nth-child(2n) { animation-delay: .04s; }
.rb-word .rb:nth-child(3n) { animation-delay: .08s; }
@keyframes rb-hop { 40% { transform: translateY(-.14em) rotate(-4deg); } }
.side-logo .side-label { font-size: 1.22rem; }
.hero h1 .name .rb { position: relative; }
.why h2.rainbow, .section-head h2.rainbow, .cat-head h1.rainbow, .account-head h1.rainbow { text-shadow: none; }

/* START: a white face, so its rainbow letters pop */
.start-face {
  background: linear-gradient(#fff, #fff3df);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 #f1d29c;
  text-shadow: none;
}
.start-play { background: linear-gradient(#ff8fc2, #ff4f9a); }
.start-play::before { border-left-color: #fff; }

/* things drifting up behind the pages; none while coloring, none for
   anyone who'd rather things stayed still */
.floaters { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
body.playing .floaters { display: none; }
.floater {
  position: absolute;
  left: var(--x);
  bottom: -140px;
  width: var(--size);
  animation: float-up var(--time) linear var(--delay) infinite;
}
.floater.bubble, .floater.star { opacity: .8; }
.floater-body { display: block; animation: float-sway calc(var(--time) / 5) ease-in-out infinite alternate; }
.floater svg { display: block; width: 100%; height: auto; }
@keyframes float-up { to { transform: translateY(calc(-100vh - 280px)); } }
@keyframes float-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(-7deg); }
  to { transform: translateX(var(--sway)) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) { .floaters { display: none; } .side-logo:hover .rb, .logo:hover .rb, .start:hover .rb { animation: none; } }

/* ---------- Learning (learn.js): questions, stickers, the garden ---------- */

/* a few chips to pick one of: an age, how often, a kid's animal */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.look-chip { padding: .35em .55em; font-size: 1.35rem; line-height: 1; }

/* the big star, at the top of the tools (next to the brush size, on
   phones), filling up from the bottom while they color; full, it bursts,
   sparkles fly out, "a new star!" */
.bigstar {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 120px;
  margin: -4px auto 0;
  pointer-events: none;
}
.studio.locked .bigstar { display: none; }
/* START's magic: a rainbow glow turning behind it (brighter the fuller it
   is), a gentle breathing, a shine running across, sparkles twinkling */
.bigstar-art { position: relative; display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(var(--shade), .35)); animation: breathe 2.6s ease-in-out infinite; }
.bigstar-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from var(--spin), #ff4f9a, #ff8a2b, #ffc21a, #38c95b, #1fa5f0, #9a6bff, #ff4f9a);
  filter: blur(16px);
  opacity: calc(.35 + var(--f, 0) * .65);
  animation: spin 4s linear infinite;
}
.bigstar-sweep { animation: star-sweep 3.4s ease-in-out infinite; }   /* a soft gleam (its gradient, in the page) */
@keyframes star-sweep { 0%, 55% { transform: translateX(0) skewX(-18deg); } 85%, 100% { transform: translateX(64px) skewX(-18deg); } }
.bigstar-spark { position: absolute; pointer-events: none; animation: twinkle 1.6s ease-in-out infinite; }
.bigstar-spark.k1 { width: 24%; height: 24%; top: -6%; right: -6%; fill: #ffd54f; }
.bigstar-spark.k2 { width: 17%; height: 17%; bottom: 6%; left: -8%; fill: #f2899a; animation-delay: -.6s; }
.bigstar-spark.k3 { width: 13%; height: 13%; top: 4%; left: 0; fill: #8fcdea; animation-delay: -1.1s; }
/* a puffy, glossy star, like the emoji: silver, with the gold (its own
   copy, clipped to how full it is, learn.js) rising from the bottom; the
   gold's level eases up */
.bigstar-level { transition: y .3s ease-out; }
.bigstar.burst .bigstar-art { animation: star-burst .7s var(--spring); }
@keyframes star-burst { 40% { scale: 1.45; rotate: 16deg; } }
.bigstar-new {
  position: absolute;
  top: 88%;
  left: 50%;
  translate: -50% 0;
  color: #c27c00;
  font-size: 1.25rem;
  white-space: nowrap;
  opacity: 0;
}
.bigstar-new.on { animation: star-new 2.2s ease forwards; }
@keyframes star-new { 10%, 75% { opacity: 1; transform: translateY(0); } 0% { opacity: 0; transform: translateY(-6px); } to { opacity: 0; } }
.spark { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; animation: spark .75s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.fly-star { position: fixed; z-index: 60; width: 34px; height: 34px; pointer-events: none; animation: fly-star .75s cubic-bezier(.45, -.2, .6, 1) forwards; }
.fly-star svg { display: block; width: 100%; height: 100%; }
@keyframes fly-star {
  35% { transform: translate(calc(var(--tx) * .25), calc(var(--ty) * .25 + 30px)) scale(1.6) rotate(40deg); }
  to { transform: translate(var(--tx), var(--ty)) scale(.7) rotate(160deg); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .bigstar-art, .bigstar.burst .bigstar-art, .bigstar-glow, .bigstar-sweep, .bigstar-spark, .bigstar-new.on { animation: none; } .bigstar-new.on { opacity: 1; } .bigstar-sweep { display: none; } }

/* their diamonds (stars are on each picture): by the logo, by the
   picture's name, and in the phone's top bar */
.stars-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#fff7d6, #ffe58a);
  box-shadow: inset 0 0 0 2px #f2c53d, 0 3px 0 #d9a91c;
  color: #7a5200;
  font: 700 1.05rem/1 var(--font-display);
  cursor: pointer;
}
.stars-count svg { width: 22px; height: 22px; }
/* not a member, with diamonds not saved yet */
.stars-count.unsaved { background: linear-gradient(#fff, #fff1f4); box-shadow: inset 0 0 0 2px #ff9fc6, 0 3px 0 #e07fa6; color: #a3245b; }
.stars-unsaved { font: 700 .72rem/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.stars-unsaved[hidden] { display: none; }
.stars-count.bump { animation: count-bump .6s var(--spring); }
@keyframes count-bump { 35% { scale: 1.25; } }
.side-stars { align-self: flex-start; margin: -6px 0 14px 12px; }
.board-stars { flex: none; margin-left: auto; }
.board-stars + .history { margin-left: 10px; }
.phone-stars { display: none; }
@media (max-width: 640px) {
  .phone-stars { display: inline-flex; margin-left: auto; padding: 4px 10px 4px 6px; font-size: .95rem; }
  .phone-stars svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .stars-count.bump, .save-pop.in .save-pop-kitty { animation: none; } }

/* signed out: "save your stars", at the top, not in the way */
.save-pop {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px 10px 8px 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 3px #ffe58a, var(--shadow-lg);
  translate: -50% 0;
}
.save-pop[hidden] { display: none; }
.save-pop.in { animation: pop-in .5s var(--spring); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
/* signed out: Froggy asking to sign up, over the pictures and under START */
.signup-nudge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 14px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 3px #ffe58a, var(--shadow-sm); }
.signup-nudge .save-pop-say { flex: 1 1 240px; }
.signup-nudge-kitty { flex: none; width: 48px; height: 48px; }
.start-nudge { margin: 14px 0 0; color: var(--ink-soft); font-size: .95rem; }
/* the "next!" row's first card, signed out */
.next-signup { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(#fff7d6, #ffe58a); box-shadow: inset 0 0 0 2px #f2c53d; color: #7a5200; font-weight: 800; text-align: center; }
.next-signup-art svg { display: block; width: 46px; height: 46px; }
/* the sticker book, for anyone who isn't a member */
.book-join { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 !important; color: var(--ink) !important; font-weight: 700; }
.book-join[hidden] { display: none; }
#prize-join[hidden] { display: none; }
#prize-join + #prize-yay:not(.btn-primary) { display: block; margin: 0 auto; }

/* a picture finished, for anyone who isn't a member: the picture, and Froggy asking */
.star-pop { width: min(100vw - 24px, 470px); }
.star-pop-card { overflow: hidden; }
.star-pop-pic { display: block; width: min(100%, 280px); aspect-ratio: 848 / 600; margin: 0 auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px #ffd54f, var(--shadow-sm); object-fit: cover; animation: count-bump .7s var(--spring); }
.star-pop-pic[hidden] { display: none; }
.star-pop-card h2 { margin: .4rem 0 .8rem; }
.star-pop-froggy { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 .9rem; text-align: left; }
.star-pop-why { margin: 0 0 1rem; color: var(--ink-soft); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .star-pop-pic { animation: none; } }

/* Froggy asking, in a speech bubble */
.save-pop-say {
  position: relative;
  margin: 0 0 0 4px;
  padding: 7px 13px;
  border-radius: 16px;
  background: #fff7d6;
  box-shadow: inset 0 0 0 2px #ffe58a;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.15;
  rotate: 0deg;
}
.save-pop-say::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  border: 8px solid transparent;
  border-right-color: #ffe58a;
  border-left: 0;
  translate: 0 -50%;
}
.save-pop-kitty { flex: none; width: 52px; height: 52px; }
.save-pop.in .save-pop-kitty { animation: kitty-ask .7s var(--spring); }
@keyframes kitty-ask { 40% { transform: translateY(-8px) rotate(-8deg); } }
.save-pop .btn { flex: none; white-space: nowrap; }
.save-pop-close { flex: none; width: 32px; height: 32px; }
.save-pop-close svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .save-pop { top: auto; bottom: 12px; flex-wrap: wrap; justify-content: center; }
  .save-pop p { flex: 1 1 60%; }
}

/* the question once a picture's colored in */
.quiz { width: min(100vw - 24px, 520px); }
.quiz-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.quiz-kitty { width: 56px; height: 56px; filter: drop-shadow(0 4px 5px rgba(var(--shade), .25)); }
.quiz-top .hand, .prize-card > .hand { margin: 0; color: var(--rust); font-size: 1.15rem; }
.quiz-pic {
  display: block;
  width: min(70%, 260px);
  height: auto;
  margin: 10px auto 4px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  rotate: -2deg;
}
.quiz-card h2 { margin: .5rem 0 .4rem; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.quiz-earn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; color: var(--ink-soft); font-weight: 700; }
.quiz-earn svg { width: 22px; height: 22px; }
.quiz-earn[hidden] { display: none; }
/* while they color (learn.js): a panel at the bottom, the picture still in
   sight, no backdrop (the user, 2026-10-29: "don't overlap the whole picture") */
.quiz.quiz-dock[open] { position: fixed; inset: auto 0 12px; z-index: 50; width: min(100vw - 24px, 620px); max-height: 62dvh; margin: 0 auto; animation: dock-up .4s var(--spring); }
@keyframes dock-up { from { opacity: 0; translate: 0 40px; } }
.quiz-dock .quiz-card { padding: 12px 18px 14px; }
.quiz-dock .quiz-kitty { width: 40px; height: 40px; }
.quiz-dock .quiz-card h2 { margin: .3rem 0 .3rem; font-size: clamp(1.15rem, 3vw, 1.5rem); }
.quiz-dock .quiz-pic { display: none; }
.quiz-dock .quiz-choice.quiz-word { min-height: 54px; font-size: 1.35rem; }
.quiz-dock .quiz-said { margin-top: 8px; font-size: 1.15rem; }
.quiz-dock .quiz-yay { margin-top: 8px; }
/* over the colors and brushes, beside the page (learn.js onKit): narrow, the
   answers one under another */
.quiz.quiz-dock.on-kit[open] { inset: auto; left: var(--kit-x); top: var(--kit-y); width: var(--kit-w); max-height: var(--kit-h); margin: 0; }
.quiz-dock.on-kit .quiz-card { max-height: var(--kit-h); padding: 12px 10px; }
.quiz-dock.on-kit .done-close { top: 6px; right: 6px; width: 32px; height: 32px; }
.quiz-dock.on-kit .quiz-top { gap: 6px; padding-right: 26px; }
.quiz-dock.on-kit .quiz-kitty { width: 32px; height: 32px; }
.quiz-dock.on-kit .quiz-card h2 { margin: .5rem 0 .3rem; font-size: 1.1rem; line-height: 1.25; }
.quiz-dock.on-kit .quiz-earn { flex-wrap: wrap; font-size: .82rem; }
.quiz-dock.on-kit .quiz-choices { grid-template-columns: 1fr; gap: 8px; }
.quiz-dock.on-kit .quiz-choice.quiz-word { min-height: 46px; font-size: 1.2rem; }
.quiz-dock.on-kit .quiz-said { font-size: .95rem; line-height: 1.3; }
.quiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quiz-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(#fff, #f1f5f9);
  box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 rgba(var(--shade), .16);
  color: var(--ink);
  font: 800 1.25rem/1.15 var(--font-body);
  cursor: pointer;
  transition: transform .15s var(--spring), opacity .2s;
}
.quiz-choice:hover { transform: translateY(-2px); }
.quiz-emoji { font-size: 2rem; line-height: 1; }
/* "find it!" (learn.js): just the word, big, to read */
.quiz-choice.quiz-word { min-height: 72px; font-size: 1.6rem; letter-spacing: .03em; text-transform: lowercase; }
.quiz-choice.right { background: linear-gradient(#e8f6df, #c9e9b3); box-shadow: inset 0 0 0 3px #4c9a4f, 0 5px 0 #3f8442; }
.quiz-choice.wrong { animation: quiz-no .4s; }
.quiz-choice:disabled:not(.right) { opacity: .45; cursor: default; }
@keyframes quiz-no { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-said { min-height: 1.6em; margin: 14px 0 0; color: var(--ink); font-size: 1.35rem; }
.quiz-yay { margin-top: 12px; min-width: 9em; }
.quiz-yay[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .quiz-choice.wrong { animation: none; } }

/* paper bits for a right answer or a new sticker */
.quiz-card, .prize-card { overflow: hidden; }
.confetti {
  position: absolute;
  top: 55%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti 1.4s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes confetti {
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* stickers: round, die-cut, with a white edge (a gold ring for the weekly
   goal); the ones still to get are faint */
.sticker {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #fdf3d6 70%);
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--line), 0 8px 14px -6px rgba(var(--shade), .45);
  rotate: -4deg;
}
.sticker-icon { font-size: 2.3rem; line-height: 1; }
.sticker.gold { background: radial-gradient(circle at 35% 30%, #fff8d8, #ffd54f 75%); box-shadow: 0 0 0 5px #fff, 0 0 0 8px #e0a526, 0 8px 14px -6px rgba(var(--shade), .45); }
.sticker.not-yet { filter: grayscale(1); opacity: .35; box-shadow: 0 0 0 3px var(--line); }
.prize { width: min(100vw - 24px, 440px); }
.prize-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 18px 0 16px; }
.prize-art .sticker { width: 104px; height: 104px; animation: sticker-in .6s var(--spring) both; }
.prize-art .sticker-icon { font-size: 3.2rem; }
@keyframes sticker-in { from { scale: .3; rotate: -40deg; } }
.prize-text { margin: 0 0 16px; color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .prize-art .sticker { animation: none; } }

/* the menu: My stickers, and who's coloring (My art and My stickers only
   once a grown-up has signed up) */
.prize-keep { margin: -4px 0 16px; color: var(--ink-soft); font-size: .92rem; }
.side-kid[hidden] { display: none; }
.side-kid .kid-look { display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }

/* the stickers page: the garden and the sticker book */
.stickers-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.stickers-grid .account-card { align-items: stretch; }
.pots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 520px; margin: 4px 0 10px; padding: 0; list-style: none; }
.pot { display: flex; flex-direction: column; align-items: center; }
.pot-flower { display: grid; place-items: end center; height: 46px; font-size: 2rem; line-height: 1; }
.pot-base {
  width: 100%;
  max-width: 50px;
  height: 30px;
  margin-top: -4px;
  background: linear-gradient(#e19a6c 0 26%, #c97a4d 26%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}
.pot:not(.grown):not(.today) .pot-base { opacity: .45; }
.pot-day { margin-top: 6px; color: var(--ink-soft); font: 800 .8rem/1 var(--font-body); }
.pot.today .pot-day { color: var(--rust); }
.garden-goal { color: var(--ink) !important; font-weight: 700; }
.garden-all { margin-top: 10px !important; font-size: 1.35rem; line-height: 1.5; letter-spacing: .08em; word-break: break-all; }
/* My words (learn.js): the word book, each word on its own card to read */
.word-book { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.word-book li { padding: 8px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); color: var(--ink); font: 800 1.35rem/1.2 var(--font-body); letter-spacing: .03em; }
.word-book-none { color: var(--ink-soft); }
.sticker-book { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 14px; margin: 8px 0 0; padding: 10px 0 0; list-style: none; }
.sticker-book li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sticker-name { color: var(--ink-soft); font: 700 .85rem/1.25 var(--font-body); }
/* how far along a topic badge is (learn.js): "2 of 5" */
.sticker-name small { display: block; font-weight: 600; opacity: .8; }
/* a topic's badges (learn.js): bronze, silver, then gold, with its number */
.sticker.bronze { background: radial-gradient(circle at 35% 30%, #fff3e6, #f2c08f 75%); box-shadow: 0 0 0 5px #fff, 0 0 0 8px #b8763a, 0 8px 14px -6px rgba(var(--shade), .45); }
.sticker.silver { background: radial-gradient(circle at 35% 30%, #fff, #dfe4ea 75%); box-shadow: 0 0 0 5px #fff, 0 0 0 8px #98a2b0, 0 8px 14px -6px rgba(var(--shade), .45); }
.sticker-level { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 2.5px var(--ink); color: var(--ink); font: 800 .85rem/1 var(--font-body); rotate: 4deg; }

/* Settings: the kids, and the weekly email */
.account-kids, .account-weekly { grid-column: 1 / -1; }
.account-kids { align-items: stretch; }
.kids-edit { display: grid; gap: 16px; }
.kid-edit { display: grid; gap: .55rem; padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.kid-edit .set-label { margin: .5rem 0 0; }
.kid-edit-head { display: flex; align-items: center; gap: 12px; }
.kid-edit-head .kid-look { font-size: 2.2rem; line-height: 1; }
.kid-name {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  padding: .65em 1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 1rem/1.2 var(--font-body);
}
.kid-name:focus { border-color: var(--peach); outline: none; box-shadow: 0 0 0 3px var(--glow); }
.kid-remove { margin-left: auto; }
#kids-add { align-self: flex-start; }
#kids-add[hidden] { display: none; }
.account-froggy { gap: 1.1rem; }

/* who's coloring: each kid as a big button */
.kids { width: min(100vw - 24px, 520px); }
.kids-card .quiz-kitty { display: block; margin: 0 auto; }
.kids-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.kid-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(#fff, #f1f5f9);
  box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 rgba(var(--shade), .16);
  color: var(--ink);
  font: 800 1.15rem/1.15 var(--font-body);
  cursor: pointer;
  transition: transform .15s var(--spring);
}
.kid-pick:hover { transform: translateY(-3px); }
.kid-pick.current { box-shadow: inset 0 0 0 3px var(--rust), 0 5px 0 rgba(var(--shade), .2); }
.kid-pick-look { font-size: 2.8rem; line-height: 1; }

/* signing up: about the kid */
.club-dots { display: flex; justify-content: center; gap: 8px; margin: .4rem 0 0; padding: 0; list-style: none; }
.club-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.club-dots li.on { background: var(--rust); }
.club-label { display: block; margin: .9rem 0 .5rem; color: var(--ink); font-weight: 700; }
.club-optional { color: var(--ink-soft); font-weight: 500; }
.club-chips { justify-content: center; margin-bottom: 1.2rem; }
#club-kid-name { flex: 1; min-width: 0; max-width: 280px; padding: .75em 1em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 1rem/1.2 var(--font-body); text-align: center; }
#club-kid-name:focus { border-color: var(--peach); outline: none; box-shadow: 0 0 0 3px var(--glow); }
.club-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .95rem; text-align: left; }
.club-check input { width: 18px; height: 18px; accent-color: var(--rust); }

/* ---------- Printing (members): only the sheet goes on paper ---------- */
.print-sheet { display: none; }
@media print {
  /* the picture as big as the sheet takes it, its name small over it (2026-10-18) */
  @page { size: landscape; margin: 8mm; }
  html.printing, html.printing body { background: #fff !important; }
  html.printing body > :not(.print-sheet) { display: none !important; }
  html.printing .print-sheet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2mm; height: 100vh; color: #000; }
  .print-name { margin: 0; font: 600 14pt/1 var(--font-display); }
  .print-sheet img { display: block; max-width: 100%; max-height: calc(100vh - 14mm); object-fit: contain; }
  .print-site { margin: 0; font: 600 8pt/1 var(--font-body); color: #666; }
}

/* ==================== Phones and tablets ====================
   The tags on <html> come from the script in <head> and layout() in app.js:
   menu-float (the menu over the page, from ☰), board-stack (the coloring
   page stacked: phones, and tablets held upright) and board-short (phones
   held sideways). */

/* ---------- The menu over the page, from ☰ ---------- */

html.menu-float .shell { --menu-w: min(300px, 86vw); grid-template-columns: minmax(0, 1fr); }
html.menu-float .side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transform: translateX(-105%);
  visibility: hidden;
  box-shadow: var(--shadow-lg);
}
html.menu-float.menu-open .side { transform: none; visibility: visible; }
/* ☰ at the top left, always there, slides the menu in */
html.menu-float .menu-show {
  display: grid;
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 36;
  width: 46px;
  height: 46px;
  background: var(--menu);
  color: var(--menu-ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 3px 0 rgba(var(--shade), .14), var(--shadow-sm);
}
html.menu-float .menu-show svg { width: 22px; height: 22px; }
html.menu-float.menu-open .menu-show { visibility: hidden; }
html.menu-float .studio-top { padding-left: 64px; }

/* ---------- Stacked: phones, and tablets held upright ----------
   the buttons along the top, what to color next, the picture as wide as it
   goes, then the brush size (with the big star at its end), the colors in a
   row and the tools standing along the bottom, where thumbs reach */

html.board-stack .kit { display: contents; }
html.board-stack .studio {
  --swatch: 40px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
  grid-template-areas: "top" "next" "stage" "view" "size" "colors" "tools";
  padding-left: 0;
}
html.board-stack .studio-top { padding: 10px 12px 2px 64px; gap: 8px; }
html.board-stack .studio-title .hand { display: none; }
html.board-stack .history { gap: 8px; }
html.board-stack .studio .bigstar { grid-area: size; justify-self: end; width: 84px; margin: -18px 12px -8px 0; }
html.board-stack .kit .size { justify-self: start; width: min(360px, 66%); height: 44px; margin: 2px 0 0 14px; }
html.board-stack .kit .size-track { inset: 6px 0; clip-path: polygon(0 36%, 100% 0, 100% 100%, 0 64%); }
html.board-stack .kit .size-track::after { background: linear-gradient(90deg, transparent, var(--paper-deep)); }
html.board-stack .kit .size-knob { --d: calc(16px + var(--v) * 26px); left: calc(21px + var(--v) * (100% - 42px)); top: 50%; }
html.board-stack .kit .colors { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; max-width: 100%; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
html.board-stack .kit .colors::-webkit-scrollbar { display: none; }
html.board-stack .swatch { flex: none; }
/* centered while they fit, and scrolling from the first one when they don't */
html.board-stack .kit .colors > :first-child { margin-left: auto; }
html.board-stack .kit .colors > :last-child { margin-right: auto; }
html.board-stack .kit .tools { flex-direction: row; justify-content: center; align-items: flex-start; gap: clamp(0px, 1.2vw, 14px); height: 112px; padding: 0 12px; overflow: hidden; }
html.board-stack .kit .tool { width: 58px; height: 100%; }
html.board-stack .kit .tool svg { width: 100%; transform-origin: 50% 50%; transform: translateY(54px); }
html.board-stack .kit .tool:hover svg { transform: translateY(44px); }
html.board-stack .kit .tool[aria-checked="true"] svg { transform: translateY(8px); }
/* on a phone, all a size smaller, and the title makes room for the buttons */
@media (max-width: 640px) {
  html.board-stack .studio { --swatch: 34px; }
  html.board-stack .studio-title { display: none; }
  html.board-stack .board-stars { margin-left: 0; }
  html.board-stack .history { gap: 5px; margin-left: auto; }
  html.board-stack .round { width: 40px; height: 40px; }
  html.board-stack .round svg { width: 20px; height: 20px; }
  html.board-stack .studio .bigstar { width: 72px; margin-right: 8px; }
  html.board-stack .kit .size { width: min(260px, 66%); height: 40px; margin-left: 12px; }
  html.board-stack .kit .colors { gap: 7px; padding: 6px 12px; }
  html.board-stack .kit .tools { height: 90px; gap: 0; }
  html.board-stack .kit .tool { width: 42px; }
  html.board-stack .kit .tool svg { transform: translateY(44px); }
  html.board-stack .kit .tool:hover svg { transform: translateY(38px); }
  html.board-stack .kit .tool[aria-checked="true"] svg { transform: translateY(8px); }
  html.board-stack .next-pic { width: 76px; }
}
/* a small phone: the diamonds' "unsaved" goes (its pink still says so) */
@media (max-width: 400px) {
  html.board-stack .board-stars .stars-unsaved { display: none; }
  html.board-stack .round { width: 38px; height: 38px; }
}

/* ---------- Sideways: phones held on their side ----------
   the buttons down the left (under ☰), the picture in the middle as tall as
   the screen, and down the right the big star, the colors and the brush
   size beside the tools */

html.board-short .studio {
  --swatch: 30px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "top stage kit";
  padding-left: 0;
}
html.board-short .studio-top {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: calc(64px + env(safe-area-inset-top)) 2px 8px calc(10px + env(safe-area-inset-left));
}
html.board-short .studio-title { display: none; }
html.board-short .board-stars { flex-direction: column; gap: 1px; margin: 0; padding: 4px 6px 5px; font-size: .95rem; }
html.board-short .board-stars svg { width: 20px; height: 20px; }
html.board-short .board-stars .stars-unsaved { display: none; }
html.board-short .board-stars + .history { margin: 0; }
html.board-short .history { flex-direction: column; gap: 6px; margin: 0; }
html.board-short .round { width: 40px; height: 40px; }
html.board-short .round svg { width: 20px; height: 20px; }
html.board-short .next { display: none; }
html.board-short .stage { padding: 6px 4px; }
html.board-short .kit {
  --th: 24px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "star tools" "colors tools" "size tools" "view view";
  align-self: center;
  gap: 6px 10px;
  margin: 6px calc(6px + env(safe-area-inset-right)) 6px 2px;
  padding: 8px;
}
html.board-short .studio .kit .bigstar { grid-area: star; width: 54px; margin: -2px auto -2px; }
html.board-short .kit .colors { grid-area: colors; grid-template-columns: repeat(3, var(--swatch)); gap: 5px; padding: 2px; }
html.board-short .kit .size { grid-area: size; align-self: start; height: 30px; margin: 0; }
html.board-short .kit .size-knob { --d: calc(12px + var(--v) * 16px); }
/* the tools lie down (as long as 3.2 times their thickness, plus their nudge), so their column needs that width */
html.board-short .kit .tools { grid-area: tools; align-self: center; width: calc(var(--th) * 3.2 + 26px); gap: 2px; }
/* the cheering Froggy, smaller, so it covers less of the picture */
html.board-short .cheer-kitty { width: 44px; height: 44px; }
html.board-short .cheer-bubble { margin-bottom: 22px; font-size: 1.05rem; }
/* a really short phone (a small one on its side) */
@media (max-height: 360px) {
  html.board-short .studio { --swatch: 26px; }
  html.board-short .round { width: 36px; height: 36px; }
  html.board-short .history { gap: 4px; }
  html.board-short .studio-top { gap: 4px; padding-top: calc(60px + env(safe-area-inset-top)); }
  html.board-short .kit { --th: 21px; gap: 4px 8px; padding: 6px; }
  html.board-short .studio .kit .bigstar { width: 44px; }
}


/* ---------- Turn your phone sideways ----------
   the first time a picture opens on a phone held upright (app.js) */

.turn-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 0 rgba(var(--shade), .1), var(--shadow-sm), inset 0 0 0 2px var(--peach);
  color: var(--rust);
  font: 500 1.15rem/1.1 var(--font-hand);
  translate: -50% 0;
  animation: pop .45s var(--spring);
}
.turn-hint[hidden] { display: none; }
.turn-phone { flex: none; width: 28px; height: 28px; color: var(--ink); animation: turn-phone 2.4s ease-in-out infinite; }
@keyframes turn-phone { 0%, 25% { rotate: 0deg; } 55%, 85% { rotate: -90deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .turn-phone { animation: none; } }

/* ---------- Sounds and zoom, by the tools (never on the picture) ----------
   the speaker, then − , a slider and + in one pill: at the foot of the tray
   on a computer or a tablet on its side, in a row of their own under the
   picture when stacked, and along the bottom of the tray on a phone held
   sideways */

.view { grid-area: view; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.view .sound-btn { flex: none; width: 38px; height: 38px; }
.view .sound-btn svg { width: 20px; height: 20px; }
.zoom-bar {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 230px;
  padding: 3px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--plate) 88%, transparent);
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(var(--shade), .1), var(--shadow-sm);
}
.zoom-step {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(#fff, #eef3f8);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 rgba(var(--shade), .16);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.zoom-step:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 0 rgba(var(--shade), .16); }
.zoom-step:disabled { opacity: .4; cursor: default; }
.zoom-step svg { width: 15px; height: 15px; }
.zoom-track { position: relative; flex: 1; min-width: 48px; height: 30px; cursor: pointer; touch-action: none; }
.zoom-track input {
  --zp: 0%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;   /* dragged by app.js; the range is for the keys */
  -webkit-appearance: none;
  appearance: none;
}
.zoom-track input::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--btn) var(--zp), rgba(var(--shade), .14) var(--zp));
  box-shadow: inset 0 2px 3px rgba(var(--shade), .2);
}
.zoom-track input::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--btn) var(--zp), rgba(var(--shade), .14) var(--zp));
  box-shadow: inset 0 2px 3px rgba(var(--shade), .2);
}
.zoom-track input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, var(--btn-top) 45%, var(--btn));
  box-shadow: 0 2px 0 var(--btn-edge), 0 3px 6px rgba(var(--shade), .3);
  -webkit-appearance: none;
  appearance: none;
}
.zoom-track input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, var(--btn-top) 45%, var(--btn));
  box-shadow: 0 2px 0 var(--btn-edge), 0 3px 6px rgba(var(--shade), .3);
}
.zoom-track input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
/* stacked: under the picture, on the left (the big star has the right) */
html.board-stack .view { justify-self: start; width: min(300px, 62%); margin: 4px 0 0 12px; }
/* a phone held sideways: smaller, along the bottom of the tray */
html.board-short .kit .view { gap: 6px; }
html.board-short .view .sound-btn { width: 32px; height: 32px; }
html.board-short .view .sound-btn svg { width: 17px; height: 17px; }
html.board-short .zoom-step { width: 26px; height: 26px; }
html.board-short .zoom-track { height: 26px; }
/* the tray on the right (computers, tablets on their side) fits the height
   there is, so everything in it shows and nothing scrolls: app.js measures
   it against the room and sets --kit-k (1 when it fits as it is), and the
   big star, the colors, the tools and the gaps shrink with it */
@media (min-width: 641px) and (min-height: 601px) {
  html:not(.board-stack):not(.board-short) .studio { --swatch: max(22px, calc(clamp(24px, min(4.4vh, 2.6vw), 40px) * var(--kit-k, 1))); }
  html:not(.board-stack):not(.board-short) .studio .bigstar { width: calc(120px * var(--kit-k, 1)); }
  html:not(.board-stack):not(.board-short) .kit { --th: calc(38px * var(--kit-k, 1)); gap: calc(14px * var(--kit-k, 1)); padding-block: calc(14px * var(--kit-k, 1)); }
}

/* the stars on this picture, a little one for each it needs to be finished
   (ten to a line), at the page's corner (learn.js; the user, 2026-10-29, a
   row of stars since 2026-10-30): pale till it has them, then gold */
.pic-progress { --ps: 15px; position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 7px; margin: 0; padding: 6px 11px 6px 8px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); color: var(--ink); font: 800 .9rem/1 var(--font-body); pointer-events: none; }
.pic-progress[hidden] { display: none; }
.pic-stars { display: grid; grid-template-columns: repeat(var(--cols, 10), var(--ps)); gap: 3px 2px; }
.pic-star { display: block; width: var(--ps); height: var(--ps); filter: grayscale(1) opacity(.3); transition: filter .3s; }
.pic-star.on { filter: none; }
.pic-star.pop { animation: pic-star-pop .6s var(--spring); }
@keyframes pic-star-pop { 0% { transform: scale(.3); } 55% { transform: scale(1.7); } 100% { transform: scale(1); } }
.pic-progress.done { color: #3f8442; }
@media (max-width: 640px) { .pic-progress { --ps: 11px; top: 6px; right: 6px; gap: 5px; padding: 5px 8px 5px 6px; font-size: .78rem; } }
html.board-short .pic-progress { --ps: 11px; top: 6px; right: 6px; gap: 5px; padding: 5px 8px 5px 6px; font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .pic-star { transition: none; } .pic-star.pop { animation: none; } }
