/* Chubblies universe — shared design layer (v02).
   Loaded last on every page. It gives the whole site one voice:
   the cartoon look of the characters themselves — thick ink outlines,
   flat bright colours and chunky "game button" shadows. */

:root {
  --u-ink: #24124a;
  --u-ink-2: #4b3d6b;
  --u-paper: #fffaf0;
  --u-white: #fff;
  --u-sun: #ffcf3d;
  --u-sun-hi: #ffdc6b;
  --u-sky: #bfe6ff;
  --u-sky-deep: #8fd0fb;
  --u-grass: #d6f2c3;
  --u-grass-deep: #8fd46e;
  --u-pink: #ffd6e6;
  --u-lilac: #e6defe;
  --u-line: 3px solid var(--u-ink);
  --u-pop: 0 5px 0 var(--u-ink);
  --u-pop-lg: 7px 8px 0 var(--u-ink);
  --u-shell: min(1180px, calc(100% - 32px));
  --u-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --u-text: "Nunito", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* The older page stylesheets read these; point them at the same palette. */
  --ink: var(--u-ink);
  --ink-soft: var(--u-ink-2);
  --violet: #5b3fd1;
  --violet-deep: var(--u-ink);
  --lilac: var(--u-lilac);
  --lilac-soft: #f4f0ff;
  --pink: var(--u-pink);
  --pink-soft: #fff1f6;
  --blue: var(--u-sky);
  --blue-soft: #eef8ff;
  --cream: var(--u-paper);
  --paper: var(--u-white);
  --focus: #5b3fd1;
  --line: rgba(36, 18, 74, .22);
  --shadow: var(--u-pop-lg);
  --radius: 26px;
}

html { -webkit-text-size-adjust: 100%; }
html body {
  margin: 0;
  background: var(--u-paper);
  color: var(--u-ink);
  font-family: var(--u-text);
  font-size: 17px;
  line-height: 1.55;
}
body img { max-width: 100%; }
body a { color: inherit; }
body :is(a, button, summary, select, input):focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

html body :is(h1, h2, h3, h4, .display-title, .section-title, .hero-statement, .profile-display-heading, .follow-title) {
  font-family: var(--u-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: var(--u-ink);
  text-wrap: balance;
}
html body :is(h1, .display-title) { font-size: clamp(2.3rem, 5.4vw, 4rem); }
html body :is(.section-title, main h2) { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
html body main :is(article, li, figure, .final-category-card, .final-content-card) :is(h2, h3) { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.12; }
html body .hero-statement { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; }
html body :is(p, li, dd) { color: inherit; }
html body :is(.section-intro, .hero-intro, .printable-lede, .hero-support) { color: var(--u-ink-2); }

/* Labels above titles: only plain words, sentence case — no tracked caps, no dashes. */
html body :is(.eyebrow, .section-marker, .game-index, .future-number, .profile-number, .world-action-index, .category-index-number, .discovery-card-status, .crowd-note, .activity-count) {
  font-family: var(--u-text);
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  font-weight: 800;
  color: #5b3fd1;
}
html body :is(.eyebrow, .section-marker)::before { display: none; }

/* Buttons: chunky game buttons. Sun yellow is the one action colour. */
html body :is(.u-btn, .button, .ia-button, .primary-cta, .filter-reset, .profile-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .6rem 1.25rem;
  border: var(--u-line);
  border-radius: 999px;
  background: var(--u-sun);
  color: var(--u-ink);
  box-shadow: var(--u-pop);
  font-family: var(--u-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
html body :is(.u-btn, .button, .ia-button, .primary-cta, .filter-reset, .profile-link):hover { background: var(--u-sun-hi); transform: translateY(-2px); box-shadow: 0 7px 0 var(--u-ink); }
html body :is(.u-btn, .button, .ia-button, .primary-cta, .filter-reset, .profile-link):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--u-ink); }
html body :is(.u-btn--quiet, .button.secondary, .filter-reset) { background: var(--u-white); }
html body :is(.u-btn--quiet, .button.secondary, .filter-reset):hover { background: var(--u-white); }
html body :is(.text-link, .format-link, .u-link) {
  color: var(--u-ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--u-sky-deep);
  text-underline-offset: 5px;
}
html body :is(.text-link, .format-link, .u-link):hover { text-decoration-color: var(--u-sun); }

.u-shell, html body .shell { width: var(--u-shell); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html body .skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: .6rem 1rem; border: var(--u-line); border-radius: 999px; background: var(--u-sun); color: var(--u-ink); font-weight: 800; transform: translateY(-200%); }
html body .skip-link:focus-visible { transform: none; }

/* ── Header ─────────────────────────────────────────────── */
.u-header { position: sticky; top: 0; z-index: 100; background: var(--u-paper); border-bottom: var(--u-line); }
.u-header-row { width: var(--u-shell); margin-inline: auto; min-height: 70px; display: flex; align-items: center; gap: 18px; }
.u-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; }
.u-brand img:first-child { width: 50px; height: 50px; transition: transform .25s ease; }
.u-brand:hover img:first-child { transform: rotate(-10deg) scale(1.06); }
.u-brand-word { width: 132px; height: auto; }
.u-nav { display: flex; align-items: center; gap: 6px; }
.u-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .95rem;
  border: 3px solid transparent; border-radius: 999px;
  font-family: var(--u-display); font-size: 1.12rem; font-weight: 700; text-decoration: none; color: var(--u-ink);
}
.u-nav a:hover { border-color: var(--u-ink); background: var(--u-white); }
.u-nav a[aria-current="page"], .u-nav a[data-current] { border-color: var(--u-ink); background: var(--u-sky); }
.u-nav .u-lang { margin-left: 8px; font-family: var(--u-text); font-size: .95rem; font-weight: 800; border-color: var(--u-ink); background: var(--u-white); }
.u-menu {
  display: none; min-height: 44px; padding: .35rem 1rem; border: var(--u-line); border-radius: 999px;
  background: var(--u-white); color: var(--u-ink); box-shadow: 0 3px 0 var(--u-ink);
  font-family: var(--u-display); font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
@media (max-width: 860px) {
  .u-header-row { flex-wrap: wrap; min-height: 64px; }
  .u-brand img:first-child { width: 44px; height: 44px; }
  .u-brand-word { width: 112px; }
  .u-menu { display: inline-flex; align-items: center; }
  .u-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 0 16px; }
  .u-header.is-open .u-nav { display: flex; }
  .u-nav a { justify-content: flex-start; border-color: var(--u-ink); background: var(--u-white); font-size: 1.25rem; padding: .5rem 1.1rem; }
  .u-nav .u-lang { margin-left: 0; }
}

/* ── Footer: a green hill with friends sitting on it ────── */
.u-footer { position: relative; margin-top: 120px; background: var(--u-ink); color: #fff; }
.u-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -46px; height: 48px;
  background: var(--u-grass-deep);
  -webkit-mask: radial-gradient(60% 100% at 50% 100%, #000 98%, transparent 100%) 0 0 / 100% 100% no-repeat;
          mask: radial-gradient(60% 100% at 50% 100%, #000 98%, transparent 100%) 0 0 / 100% 100% no-repeat;
}
.u-footer-hill { height: 26px; background: var(--u-grass-deep); border-bottom: var(--u-line); }
.u-footer-friends { position: absolute; top: -104px; right: max(16px, calc((100% - 1180px) / 2)); display: flex; align-items: flex-end; pointer-events: none; }
.u-footer-friends img { width: 96px; height: 96px; margin-left: -18px; }
.u-footer-friends img:nth-child(2) { width: 84px; height: 84px; }
.u-footer-grid { width: var(--u-shell); margin-inline: auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; padding: 52px 0 40px; }
.u-footer-brand > img { width: 150px; height: auto; filter: brightness(0) invert(1); }
.u-footer-brand p { max-width: 300px; margin: 12px 0 18px; color: #ded7f5; }
.u-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.u-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.u-social a:hover { transform: translateY(-3px) rotate(-6deg); }
.u-social img { width: 26px; height: 26px; }
.u-social a[aria-label$=" X"] { background: #000; }
.u-footer h2 { margin: 0 0 12px; color: var(--u-sun); font-family: var(--u-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.u-footer ul.u-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.u-footer ul.u-links a { display: inline-block; padding: 6px 0; color: #fff; font-weight: 700; text-decoration: none; }
.u-footer ul.u-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.u-footer-note { width: var(--u-shell); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.18); color: #c9c0e6; font-size: .9rem; }
@media (max-width: 860px) {
  .u-footer-grid { grid-template-columns: 1fr 1fr; }
  .u-footer-brand { grid-column: 1 / -1; }
  .u-footer-friends img { width: 72px; height: 72px; }
  .u-footer-friends img:nth-child(2) { width: 64px; height: 64px; }
  .u-footer-friends { top: -82px; }
}

/* ── Building blocks shared by home, games and hubs ─────── */
.u-band { position: relative; padding: 84px 0; }
.u-band--sky { background: var(--u-sky); }
.u-band--grass { background: var(--u-grass); }
.u-band--pink { background: var(--u-pink); }
.u-band--white { background: var(--u-white); }
/* a soft rolling edge where two grounds meet */
.u-band--edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: inherit;
  -webkit-mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
          mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
}
.u-head { max-width: 680px; margin-bottom: 40px; }
.u-head h2 { margin: 0; }
.u-head p { margin: 12px 0 0; color: var(--u-ink-2); font-size: 1.12rem; }
.u-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.u-head-row .u-head { margin-bottom: 0; }
.u-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* Apps */
.u-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.u-app {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px;
  padding: 28px; border: var(--u-line); border-radius: 30px; background: var(--u-white); box-shadow: var(--u-pop-lg);
}
.u-app-icon { width: 104px; height: 104px; border: var(--u-line); border-radius: 26px; transform: rotate(-5deg); box-shadow: 4px 4px 0 var(--u-ink); }
.u-app:nth-child(2) .u-app-icon { transform: rotate(4deg); }
.u-app h3 { margin: 18px 0 2px; font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important; }
.u-app-kind { margin: 0; font-weight: 800; color: #5b3fd1; }
.u-app-pitch { margin: 12px 0 0; }
.u-app-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 20px; padding: 0; list-style: none; font-weight: 700; color: var(--u-ink-2); font-size: .95rem; }
.u-app-facts li::before { content: "★ "; color: #f0a800; }
.u-store { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.u-store a { display: inline-flex; transition: transform .15s ease; }
.u-store a:hover { transform: translateY(-2px) scale(1.03); }
.u-store img { height: 50px; width: auto; }
.u-store small { color: var(--u-ink-2); font-weight: 700; font-size: .88rem; }
.u-app-phone { align-self: end; justify-self: center; width: 150px; height: auto; margin-bottom: -6px; filter: drop-shadow(5px 6px 0 rgba(36,18,74,.18)); }
@media (max-width: 1000px) { .u-apps { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .u-app { grid-template-columns: 1fr; padding: 22px; }
  .u-app-phone { display: none; }
}

/* Shelves of tiles: printable categories, activities */
.u-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.u-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: var(--u-line); border-radius: 24px; background: var(--u-white); text-decoration: none; box-shadow: 5px 6px 0 var(--u-ink); transition: transform .15s ease, box-shadow .15s ease; }
.u-tile:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 8px 9px 0 var(--u-ink); }
.u-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-bottom: var(--u-line); background: #fff; }
.u-tile span { display: block; padding: 14px 16px 18px; }
.u-tile strong { display: block; font-family: var(--u-display); font-size: 1.35rem; line-height: 1.1; }
.u-tile em { display: block; margin-top: 4px; font-style: normal; color: var(--u-ink-2); font-weight: 700; font-size: .95rem; }
@media (max-width: 1000px) { .u-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.u-soon { margin: 30px 0 0; color: var(--u-ink-2); font-weight: 700; }
.u-soon b { color: var(--u-ink); }

/* FAQ */
.u-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.u-faq details { margin-bottom: 12px; border: var(--u-line); border-radius: 20px; background: var(--u-white); }
.u-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-family: var(--u-display); font-size: 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.u-faq summary::-webkit-details-marker { display: none; }
.u-faq summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border: var(--u-line); border-radius: 50%; background: var(--u-sun); font-size: 1.2rem; line-height: 1; }
.u-faq details[open] summary::after { content: "–"; }
.u-faq details p { margin: 0; padding: 0 20px 18px; color: var(--u-ink-2); }
.u-faq details a { font-weight: 800; }
@media (max-width: 860px) { .u-faq { grid-template-columns: 1fr; gap: 20px; } }

/* Games page: screenshots strip */
.u-shots { display: flex; gap: 22px; margin: 0; padding: 4px 4px 18px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; }
.u-shots li { flex: 0 0 auto; scroll-snap-align: start; }
.u-shots img { width: 210px; height: auto; filter: drop-shadow(5px 6px 0 rgba(36,18,74,.2)); }
.u-shots figcaption { max-width: 210px; margin-top: 8px; font-weight: 700; color: var(--u-ink-2); font-size: .95rem; }

/* Legal and help pages */
.u-page-head { background: var(--u-lilac); padding: 52px 0 46px; border-bottom: var(--u-line); }
.u-page-head h1 { margin: 0; }
.u-page-head p { max-width: 640px; margin: 12px 0 0; color: var(--u-ink-2); font-size: 1.12rem; }
.u-prose { width: min(760px, calc(100% - 32px)); margin: 48px auto 0; }
.u-prose :is(h2, h3) { margin: 1.8em 0 .5em; font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; }
.u-prose p, .u-prose li { color: var(--u-ink-2); }
.u-prose a { font-weight: 800; color: var(--u-ink); text-decoration-color: var(--u-sky-deep); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.u-prose ul { padding-left: 1.2em; }
.u-prose details { margin: 12px 0; border: var(--u-line); border-radius: 18px; background: var(--u-white); padding: 0 18px; }
.u-prose summary { padding: 14px 0; font-weight: 800; cursor: pointer; }

/* ── Printables pages that had no stylesheet of their own ── */
html body .breadcrumbs, html body .launch-breadcrumb, html body .profile-breadcrumbs { font-weight: 700; font-size: .95rem; color: var(--u-ink-2); }
html body .breadcrumbs a, html body .launch-breadcrumb a { color: var(--u-ink); text-decoration-color: var(--u-sky-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
html body .breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.final-hub-hero, .launch-hero { padding: 44px 0 10px; }
.final-hub-hero h1, .launch-hero h1 { margin: 0; }
.final-hub-hero > p:not(.eyebrow), .launch-hero p { max-width: 620px; font-size: 1.15rem; color: var(--u-ink-2); }
.launch-hero-grid { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 24px; }
.launch-hero-grid > img { width: 220px; height: auto; }
.final-category-grid, .final-content-grid, .ia-discovery-grid, .launch-activities, .dice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin: 26px 0 0; padding: 0; list-style: none;
}
.final-category-grid { margin-top: 30px; }
:is(.final-category-card, .final-content-card, .launch-activity, .dice-card, .final-coming-card) {
  display: flex; flex-direction: column; overflow: hidden; border: var(--u-line); border-radius: 24px; background: var(--u-white); box-shadow: 5px 6px 0 var(--u-ink);
}
:is(.final-category-card, .final-content-card) > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
:is(.final-category-card, .final-content-card, .launch-activity) { transition: transform .15s ease, box-shadow .15s ease; }
:is(.final-category-card, .final-content-card, .launch-activity):hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--u-ink); }
:is(.final-category-card, .final-content-card) img, .launch-activity .activity-card-media img, .dice-card > img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: var(--u-line);
}
.launch-activity .activity-card-media img { aspect-ratio: 4 / 5; }
:is(.final-category-card, .final-content-card) a > div, .launch-activity .activity-card-copy, .dice-card > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; padding: 16px 18px 20px; }
:is(.final-category-card, .final-content-card, .launch-activity, .dice-card) :is(h2, h3) { margin: 0; }
:is(.final-category-card, .final-content-card, .launch-activity, .dice-card) p { margin: 0; color: var(--u-ink-2); }
:is(.final-category-card, .final-content-card, .launch-activity, .dice-card) :is(.ia-button, .button) { margin-top: auto; min-height: 42px; font-size: 1rem; padding: .45rem 1rem; }
.final-coming { margin-top: 70px; }
.final-coming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.final-coming-card { padding: 18px 20px; border-style: dashed; box-shadow: none; background: transparent; }
.final-coming-card :is(h2, h3) { margin: 2px 0 4px; }
.final-coming-card p { margin: 0; color: var(--u-ink-2); }
.ia-collection-links, .launch-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
:is(.ia-collection-links, .launch-jumps) a { padding: .45rem 1rem; border: var(--u-line); border-radius: 999px; background: var(--u-white); font-weight: 800; text-decoration: none; }
:is(.ia-collection-links, .launch-jumps) a:hover { background: var(--u-sky); }
.launch-section { margin-top: 56px; }
.launch-section > :is(h2, p) { margin: 0 0 8px; }
.launch-section > .ia-button { margin-top: 22px; }
.dice-section { margin-top: 36px; }
.dice-card > img { aspect-ratio: auto; object-fit: contain; padding: 10px; }
html body .final-activity-page .printable-hero { padding: 40px 0 20px; }
@media (max-width: 640px) {
  .launch-hero-grid { grid-template-columns: 1fr 110px; }
  .launch-hero-grid > img { width: 110px; }
  .final-category-grid, .final-content-grid, .ia-discovery-grid, .launch-activities, .dice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* Puzzle-type picker on the Puzzles shelf */
html body .discovery-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; border: var(--u-line); border-radius: 22px; background: var(--u-white); color: var(--u-ink);
  text-align: left; font: inherit; box-shadow: 4px 5px 0 var(--u-ink); cursor: pointer;
}
html body .discovery-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-bottom: var(--u-line); }
html body .discovery-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
html body .discovery-card-copy strong { font-family: var(--u-display); font-size: 1.3rem; line-height: 1.1; }
html body .discovery-card-description { color: var(--u-ink-2); font-size: .95rem; }
html body .discovery-card-cta { margin-top: 6px; font-weight: 800; }
html body .discovery-card[aria-pressed="true"] { background: var(--u-sky); }
html body .discovery-card--coming { cursor: default; border-style: dashed; box-shadow: none; background: transparent; }
html body .discovery-card-placeholder { display: grid; place-items: center; aspect-ratio: 1; border-bottom: 3px dashed var(--u-ink); font-size: 2rem; color: var(--u-ink-2); }
html body .visual-subcategory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }

/* Older family pieces, brought into line */
html body :is(.paper-sheet, .printable-preview, .contract-preview-window, .crowd-frame, .pair-card, .activity-card, .character-mini, .profile-portrait) { border-radius: 24px; }
html body :is(.printable-preview, .activity-card) { border: var(--u-line); box-shadow: 5px 6px 0 var(--u-ink); }
html body :is(.printable-hero, .library-hero, .category-hero, .hero, .profile-hero) { background: var(--u-sky); }
html body :is(.printable-hero, .library-hero, .category-hero, .profile-hero)::before,
html body :is(.printable-hero, .library-hero, .category-hero, .profile-hero)::after { display: none; }
html body .category-mark { border: var(--u-line); border-radius: 30px; background: var(--u-sun); box-shadow: var(--u-pop-lg); }
html body .category-mark span { font-family: var(--u-display); }
html body :is(select, input[type="text"], input[type="search"]) { min-height: 44px; border: var(--u-line); border-radius: 14px; background: #fff; color: var(--u-ink); font: inherit; font-weight: 700; padding: 0 12px; }
html body :is(.filter-panel, .desktop-filter-panel) { border: var(--u-line); border-radius: 22px; background: var(--u-white); }

/* No shouty tracked capitals anywhere — every label reads like normal words. */
html body :is(main, .u-footer) * { text-transform: none !important; letter-spacing: 0 !important; }
html body :is(h1, h2, h3, .display-title, .section-title) { letter-spacing: -.01em !important; }
html body .category-mark { display: none; }
html body .category-hero-grid { grid-template-columns: 1fr; }
html body :is(.subcategory-strip) { border-top: 0; }

/* ── Home hero: Chubblies Valley ────────────────────────── */
.u-hero { position: relative; overflow: hidden; background: var(--u-sky); }
.u-hero-copy { position: relative; z-index: 3; padding: 56px 0 0; }
.u-hero h1 { margin: 0; line-height: 0; }
.u-hero-word { width: min(470px, 80%); height: auto; filter: drop-shadow(0 5px 0 #fff); }
.u-hero-line { max-width: 470px; margin: 16px 0 24px; font-family: var(--u-display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.18; }
.u-valley { position: relative; height: clamp(360px, 40vw, 560px); margin-top: -170px; }
.u-sun { position: absolute; z-index: 0; top: -40px; right: 9%; width: 120px; height: 120px; border: var(--u-line); border-radius: 50%; background: var(--u-sun); box-shadow: 0 0 0 16px rgba(255, 207, 61, .35), 0 0 0 34px rgba(255, 207, 61, .16); }
.u-cloud { position: absolute; z-index: 0; height: 40px; border-radius: 999px; background: #fff; animation: u-drift 60s linear infinite; }
.u-cloud::before, .u-cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.u-cloud::before { width: 60px; height: 60px; top: -30px; left: 22%; }
.u-cloud::after { width: 44px; height: 44px; top: -18px; left: 55%; }
.u-cloud--a { width: 150px; top: -10px; left: 52%; }
.u-cloud--b { width: 110px; top: 60px; left: 70%; animation-duration: 80s; animation-delay: -30s; }
.u-cloud--c { width: 130px; top: 20px; left: 18%; animation-duration: 95s; animation-delay: -60s; opacity: .85; }
@keyframes u-drift { from { transform: translateX(-30vw); } to { transform: translateX(60vw); } }
.u-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; z-index: 1; overflow: hidden; }
.u-hills path { stroke: var(--u-ink); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.u-hills .h1 { fill: #b6e39c; }
.u-hills .h2 { fill: #9fdb80; }
.u-hills .h3 { fill: var(--u-grass); }
.u-critters { position: absolute; z-index: 2; inset: 0; }
.u-critter {
  --w: clamp(70px, 12.5vw, 190px);
  position: absolute; width: var(--w); height: var(--w); padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%;
}
.u-critter img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(36, 18, 74, .14)); animation: u-idle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); transform-origin: 50% 100%; }
.u-critter:hover img, .u-critter:focus-visible img { animation: u-wiggle .5s ease-in-out infinite; }
.u-critter.is-hopping img { animation: u-hop .6s cubic-bezier(.3, 1.6, .5, 1) 1; }
.u-critter:focus-visible { outline: 3px solid var(--u-ink); outline-offset: 2px; border-radius: 50%; }
/* five pairs across the hills; the friend stands one step behind */
.u-critter--front { bottom: 4%; }
.u-critter--back { --w: clamp(58px, 9.6vw, 146px); bottom: 24%; z-index: -1; }
.u-critter:nth-child(1) { left: 4%; }   .u-critter:nth-child(2) { left: 11%; }
.u-critter:nth-child(3) { left: 23%; }  .u-critter:nth-child(4) { left: 30.5%; }
.u-critter:nth-child(5) { left: 42%; }  .u-critter:nth-child(6) { left: 50%; }
.u-critter:nth-child(7) { left: 61%; }  .u-critter:nth-child(8) { left: 68.5%; }
.u-critter:nth-child(9) { left: 80%; }  .u-critter:nth-child(10) { left: 87.5%; }
@keyframes u-idle { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-4px) scaleY(1.03); } }
@keyframes u-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes u-hop { 0% { transform: translateY(0) scale(1.08, .9); } 40% { transform: translateY(-34%) scale(.94, 1.08); } 75% { transform: translateY(0) scale(1.1, .9); } 100% { transform: none; } }
.u-bubble {
  position: absolute; z-index: 5; margin: 0; padding: 10px 16px 12px; max-width: 240px;
  border: var(--u-line); border-radius: 20px; background: #fff; box-shadow: 4px 5px 0 var(--u-ink);
  transform: translate(-50%, -100%); text-align: center; pointer-events: none;
  animation: u-pop .25s cubic-bezier(.3, 1.6, .5, 1);
}
.u-bubble::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 18px; height: 18px; background: #fff; border-right: var(--u-line); border-bottom: var(--u-line); transform: translateX(-50%) rotate(45deg); }
.u-bubble strong { display: block; font-family: var(--u-display); font-size: 1.3rem; line-height: 1.1; }
.u-bubble span { display: block; color: var(--u-ink-2); font-weight: 700; font-size: .9rem; }
@keyframes u-pop { from { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
@media (max-width: 760px) {
  .u-hero-copy { padding-top: 30px; text-align: center; }
  .u-hero-word, .u-hero-line { margin-inline: auto; }
  .u-hero .u-actions { justify-content: center; }
  .u-valley { height: 260px; margin-top: -10px; }
  .u-sun { width: 70px; height: 70px; top: 10px; right: 6%; }
  .u-hills { height: 80%; }
  .u-critter { --w: 19vw; }
  .u-critter--back { --w: 16vw; bottom: 30%; }
  .u-critter:nth-child(odd) { bottom: 6%; }
  .u-critter:nth-child(1) { left: 1%; }  .u-critter:nth-child(2) { left: 9%; }
  .u-critter:nth-child(3) { left: 20%; } .u-critter:nth-child(4) { left: 28%; }
  .u-critter:nth-child(5) { left: 40%; } .u-critter:nth-child(6) { left: 48%; }
  .u-critter:nth-child(7) { left: 60%; } .u-critter:nth-child(8) { left: 68%; }
  .u-critter:nth-child(9) { left: 80%; } .u-critter:nth-child(10) { left: 84%; }
  .u-critter:nth-child(10) { --w: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
  .u-cloud, .u-critter img, .u-bubble { animation: none !important; }
}

/* ── Who lives here? ────────────────────────────────────── */
.u-explore { background: var(--u-paper); }
.u-met { display: grid; justify-items: end; gap: 6px; }
.u-met-label { margin: 0; font-weight: 800; }
.u-met-label b { font-family: var(--u-display); font-size: 1.4rem; }
.u-tray { display: flex; gap: 2px; margin: 0; padding: 6px 10px; list-style: none; border: var(--u-line); border-radius: 999px; background: #fff; }
.u-tray img { width: 30px; height: 30px; filter: grayscale(1) brightness(1.15) opacity(.45); transition: filter .3s ease, transform .3s ease; }
.u-tray li.is-met img { filter: none; transform: scale(1.12); }
.u-met-done { max-width: 320px; margin: 0; padding: 8px 14px; border: var(--u-line); border-radius: 16px; background: var(--u-sun); font-weight: 800; text-align: right; }
.u-picker { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.u-pick {
  display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; border: var(--u-line); border-radius: 20px;
  background: #fff; color: var(--u-ink); font: inherit; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.u-pick img { --k: 1; --dy: 0px; width: 64px; height: 64px; object-fit: contain; transform: translateY(var(--dy)) scale(var(--k)); transition: transform .2s ease; }
/* The source art is drawn at story scale (Piki small, Mooka big); level it so every critter reads the same size here */
:is(.u-pick[data-slug="mallow"], .u-heads [data-meet="mallow"]) img { --k: 1.20; --dy: -7.8%; }
:is(.u-pick[data-slug="lumi"], .u-heads [data-meet="lumi"]) img { --k: 1.33; --dy: -11.7%; }
:is(.u-pick[data-slug="pimmy"], .u-heads [data-meet="pimmy"]) img { --k: 1.39; --dy: -12.5%; }
:is(.u-pick[data-slug="piki"], .u-heads [data-meet="piki"]) img { --k: 1.76; --dy: -19.5%; }
:is(.u-pick[data-slug="mooka"], .u-heads [data-meet="mooka"]) img { --k: 1.01; --dy: -1.6%; }
:is(.u-pick[data-slug="tago"], .u-heads [data-meet="tago"]) img { --k: 0.96; --dy: 1.6%; }
:is(.u-pick[data-slug="henna"], .u-heads [data-meet="henna"]) img { --k: 1.40; --dy: -13.3%; }
:is(.u-pick[data-slug="zavi"], .u-heads [data-meet="zavi"]) img { --k: 1.06; --dy: -3.1%; }
:is(.u-pick[data-slug="bogo"], .u-heads [data-meet="bogo"]) img { --k: 1.24; --dy: -9.4%; }
:is(.u-pick[data-slug="sumi"], .u-heads [data-meet="sumi"]) img { --k: 1.33; --dy: -11.7%; }
.u-pick span { font-family: var(--u-display); font-weight: 700; font-size: 1.05rem; }
.u-pick:hover img { transform: translateY(calc(var(--dy) - 4px)) rotate(-6deg) scale(var(--k)); }
.u-pick[aria-selected="true"] { background: var(--ground); box-shadow: 0 5px 0 var(--u-ink); transform: translateY(-4px) scale(1.06); }
.u-stage { position: relative; }
.u-who {
  display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; align-items: center; gap: 36px;
  padding: 34px 40px; border: var(--u-line); border-radius: 34px; background: var(--ground); box-shadow: var(--u-pop-lg);
}
.u-who[hidden] { display: none; }
.u-who.is-entering .u-who-art img { animation: u-hop .6s cubic-bezier(.3, 1.6, .5, 1); }
.u-who-art { position: relative; display: grid; place-items: center; }
.u-who-art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border: var(--u-line); border-radius: 50%; background: rgba(255, 255, 255, .7); }
.u-who-art img { position: relative; width: min(320px, 100%); height: auto; }
.u-who-kind { margin: 0; font-weight: 800; color: var(--u-ink-2); font-size: 1.05rem; }
.u-who-kind::first-letter { text-transform: uppercase; }
.u-who h3 { margin: 0; font-size: clamp(2.6rem, 5vw, 4rem) !important; line-height: 1; }
.u-who-friend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; }
.u-friend { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 4px; border: var(--u-line); border-radius: 999px; background: #fff; color: var(--u-ink); font-family: var(--u-display); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.u-friend img { width: 36px; height: 36px; }
.u-friend:hover { background: var(--u-sun); }
.u-who-quote { margin: 16px 0 0; font-family: var(--u-display); font-size: 1.35rem; font-weight: 600; }
.u-who h4 { margin: 26px 0 10px; font-family: var(--u-text); font-size: 1rem; font-weight: 800; }
.u-finds { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.u-finds a { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: var(--u-line); border-radius: 18px; background: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--u-ink); transition: transform .12s ease; }
.u-finds a:hover { transform: translateY(-2px) rotate(-1deg); background: var(--u-sun-hi); }
.u-finds img { width: 52px; height: 52px; object-fit: cover; object-position: top; border: 2px solid var(--u-ink); border-radius: 12px; background: #fff; }
@media (max-width: 900px) {
  .u-met { justify-items: start; }
  .u-met-done { text-align: left; }
  .u-picker { display: flex; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x mandatory; }
  .u-pick { flex: 0 0 84px; scroll-snap-align: start; }
  .u-who { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; text-align: center; }
  .u-who-art { width: 220px; margin-inline: auto; }
  .u-who-art img { width: 200px; }
  .u-finds li { width: 100%; }
  .u-who-friend, .u-finds { justify-content: center; }
  .u-finds a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .u-who.is-entering .u-who-art img { animation: none; } }

/* ── The wider world (a night-time peek) ────────────────── */
.u-world {
  position: relative; padding: 90px 0; color: #fff; overflow: hidden;
  background:
    radial-gradient(2px 2px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 44% 12%, #fff6c9 50%, transparent 51%), radial-gradient(2px 2px at 62% 82%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 28%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 90% 60%, #fff6c9 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 88%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 52% 46%, #fff 50%, transparent 51%),
    #2a1a5e;
}
.u-world-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
.u-world h2 { color: #fff !important; margin: 0; }
.u-world p { max-width: 460px; margin: 14px 0 26px; color: #e4ddff; font-size: 1.15rem; }
.u-world-art { position: relative; }
.u-world-art::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(191, 230, 255, .55), transparent); }
.u-world-art img { position: relative; width: 100%; height: auto; animation: u-breathe 7s ease-in-out infinite; }
@keyframes u-breathe { 50% { transform: scale(1.025) rotate(.6deg); } }
@media (max-width: 860px) { .u-world-grid { grid-template-columns: 1fr; text-align: center; } .u-world p { margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .u-world-art img { animation: none; } }

/* Printable shelves: a friend peeks over every tile */
.u-shelf li { position: relative; padding-top: 58px; }
.u-shelf .u-peek { position: absolute; z-index: 0; top: 0; right: 14px; width: 84px; height: 84px; transition: transform .25s ease; }
.u-shelf .u-tile { position: relative; z-index: 1; height: calc(100% - 0px); }
.u-shelf li:hover .u-peek { transform: translateY(-14px) rotate(-8deg); }

/* Character pages: drop the leftover pastel rings */
html body :is(.hero, .crowd, .first-ten, .profile-hero, .profile-personality, .reminder-panel)::before,
html body :is(.hero, .crowd, .profile-personality)::after,
html body :is(.crowd-frame, .profile-portrait)::after,
html body .profile-motto::before, html body .profile-motto::after { display: none !important; }

/* ── Activities: hub, shelves and tiles ─────────────────── */
.u-acts-head { position: relative; overflow: hidden; }
.u-acts-head .u-shell { position: relative; }
.u-acts-peek { position: absolute; right: 0; bottom: -58px; width: 150px; height: 150px; }
.u-acts-head h1 { max-width: calc(100% - 160px); }
.u-acts-head > .u-shell > p:not(.u-legend) { max-width: 620px; }
.u-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 700; }
.u-legend li { display: flex; align-items: center; gap: 8px; }
.u-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.u-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 3px; border: 2px solid var(--u-ink); border-radius: 999px; font-size: .85rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.u-badge--play { background: var(--u-sky); }
.u-badge--play::before { content: "▶"; font-size: .7em; }
.u-badge--print { background: #fff; }
.u-badge--print::before { content: "⎙"; font-size: 1em; }
.u-acts-body { padding-top: 34px; }
.u-catnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.u-catnav a { padding: .45rem 1.1rem; border: var(--u-line); border-radius: 999px; background: #fff; font-family: var(--u-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.u-catnav a:hover { background: var(--u-sun-hi); }
.u-catnav a[aria-current="page"] { background: var(--u-ink); color: #fff; }
.u-friends-filter { margin-bottom: 30px; }
.u-friends-filter > p { margin: 0 0 8px; font-weight: 800; }
.u-ff-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.u-ff { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 2px 14px 2px 4px; border: var(--u-line); border-radius: 999px; background: #fff; color: var(--u-ink); font: inherit; font-weight: 800; cursor: pointer; }
.u-ff:first-child { padding-left: 14px; }
.u-ff img { width: 40px; height: 40px; }
.u-ff:hover { background: var(--u-sun-hi); }
.u-ff[aria-pressed="true"] { background: var(--u-sun); box-shadow: 0 3px 0 var(--u-ink); }
.u-shelfsec { margin-bottom: 64px; }
.u-shelfsec[hidden] { display: none; }
.u-shelfsec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.u-shelfsec-head img { width: 72px; height: 72px; flex: 0 0 auto; }
.u-shelfsec-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem) !important; }
.u-shelfsec-head p { margin: 2px 0 0; color: var(--u-ink-2); }
.u-shelfsec-head .u-link { margin-left: auto; white-space: nowrap; }
.u-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.u-acts li[hidden] { display: none; }
.u-act { display: flex; flex-direction: column; height: 100%; border: var(--u-line); border-radius: 22px; background: #fff; text-decoration: none; overflow: hidden; box-shadow: 4px 5px 0 var(--u-ink); transition: transform .15s ease, box-shadow .15s ease; }
.u-act:hover { transform: translate(-2px, -3px) rotate(-.5deg); box-shadow: 7px 8px 0 var(--u-ink); }
.u-act-thumb { display: block; aspect-ratio: 4 / 5; padding: 10px; border-bottom: var(--u-line); background: #fff; }
.u-act-thumb img { width: 100%; height: 100%; object-fit: contain; }
.u-act-name { display: block; padding: 12px 14px 6px; font-family: var(--u-display); font-weight: 700; font-size: 1.22rem; line-height: 1.12; }
.u-act .u-badges { margin-top: auto; padding: 4px 14px 14px; }
.u-ff-empty { padding: 24px; border: 3px dashed var(--u-ink); border-radius: 20px; font-weight: 800; text-align: center; }
@media (max-width: 640px) {
  .u-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .u-act-name { font-size: 1.05rem; }
  .u-acts-peek { display: none; }
  .u-acts-head h1 { max-width: none; }
  .u-shelfsec-head { flex-wrap: wrap; }
  .u-shelfsec-head img { width: 56px; height: 56px; }
  .u-shelfsec-head .u-link { margin-left: 0; }
}

/* ── One activity: choose Play or Print ─────────────────── */
html body .printable-hero[data-u-act] { padding: 26px 0 34px; background: var(--u-sky); border-bottom: var(--u-line); }
[data-u-act] .breadcrumbs { margin-bottom: 10px; }
.u-act-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.u-act-top h1 { margin: 0; }
.u-act-top p { max-width: 620px; margin: 10px 0 0; color: var(--u-ink-2); font-size: 1.1rem; }
.u-act-friends { display: flex; flex: 0 0 auto; }
.u-act-friends img { width: 110px; height: 110px; }
.u-act-friends img + img { margin-left: -16px; }
.u-choose { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.u-choice { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 12px 22px 12px 12px; border: var(--u-line); border-radius: 22px; background: #fff; text-decoration: none; box-shadow: 0 5px 0 var(--u-ink); transition: transform .12s ease, box-shadow .12s ease; }
.u-choice:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--u-ink); }
.u-choice:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--u-ink); }
.u-choice--play { background: var(--u-sun); }
.u-choice-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: var(--u-line); border-radius: 50%; background: #fff; font-size: 1.3rem; }
.u-choice strong { display: block; font-family: var(--u-display); font-size: 1.4rem; line-height: 1.05; }
.u-choice em { display: block; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--u-ink-2); }
html body .play-online { scroll-margin-top: 80px; }
.u-print { padding: 64px 0; background: #fff; border-top: var(--u-line); border-bottom: var(--u-line); scroll-margin-top: 70px; }
.u-print-grid { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 40px; }
.u-print h2 { margin: 0; }
.u-print-grid > div > p { color: var(--u-ink-2); }
html body .u-print .printable-preview { margin: 0; padding: 10px; border: var(--u-line); border-radius: 18px; background: #fff; box-shadow: 5px 6px 0 var(--u-ink); transform: rotate(-2deg); }
html body .u-print .printable-preview img { width: 100%; height: auto; border: 0; box-shadow: none; }
html body .u-print .printable-preview figcaption { display: none; }
html body .u-print .printable-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 10px; }
html body .u-print .format-note { color: var(--u-ink-2); font-size: .95rem; }
.u-more { padding: 64px 0 0; }
.u-more h2 { margin: 0 0 22px; }
/* "Choose your Chubblie" galleries on multi-character printables (cards, envelopes, gift bags) */
:is(.message-card-gallery, .final-variant-section) { padding: 64px 0 0; }
:is(.message-card-gallery, .final-variant-section) h2 { margin: 0 0 22px; }
:is(.message-card-grid, .final-variant-grid) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
:is(.message-card-grid, .final-variant-grid) figure { margin: 0; padding: 10px; border: var(--u-line); border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--u-ink); }
:is(.message-card-grid, .final-variant-grid) img { display: block; width: 100%; height: auto; border-radius: 12px; }
:is(.message-card-grid, .final-variant-grid) figcaption { margin-top: 8px; font-family: var(--u-display); font-weight: 700; text-align: center; }
@media (max-width: 900px) { :is(.message-card-grid, .final-variant-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { :is(.message-card-grid, .final-variant-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 760px) {
  .u-act-friends img { width: 72px; height: 72px; }
  .u-choice { flex: 1 1 100%; min-width: 0; }
  .u-print-grid { grid-template-columns: 1fr; gap: 24px; }
  .u-print-preview { max-width: 220px; }
}

html body .final-activity-page .dice-section { margin-top: 0; padding-top: 44px; }
html body .final-activity-page .dice-section > h2 { margin-top: 0; }

/* ── Games page ─────────────────────────────────────────── */
.u-g-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: #fff0b8; border-bottom: var(--u-line); }
.u-g-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(36, 18, 74, .09) 2px, transparent 2.5px) 0 0 / 26px 26px; }
.u-g-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
.u-g-hero h1 { margin: 0; }
.u-g-hero p { max-width: 520px; margin: 12px 0 0; font-size: 1.2rem; color: var(--u-ink-2); }
.u-which { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 600px; }
.u-which-card { display: grid; gap: 4px; padding: 14px 18px 16px; border: var(--u-line); border-radius: 22px; background: #fff; text-decoration: none; box-shadow: 0 5px 0 var(--u-ink); transition: transform .12s ease, box-shadow .12s ease; }
.u-which-card:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--u-ink); }
.u-which-card span { font-weight: 700; color: var(--u-ink-2); }
.u-which-card strong { font-family: var(--u-display); font-size: 1.35rem; line-height: 1.1; }
.u-g-icons { position: relative; height: 300px; }
.u-g-icons img { position: absolute; width: 220px; height: 220px; border: 4px solid var(--u-ink); border-radius: 50px; box-shadow: 8px 9px 0 var(--u-ink); animation: u-float 5s ease-in-out infinite; }
.u-g-icons img:first-child { left: 4%; top: 6px; transform: rotate(-8deg); }
.u-g-icons img:last-child { right: 4%; top: 70px; transform: rotate(7deg); animation-delay: -2.5s; }
@keyframes u-float { 50% { translate: 0 -12px; } }

.u-g-band { position: relative; padding: 90px 0; scroll-margin-top: 60px; overflow: hidden; }
.u-g-band--mind { background: var(--u-grass); }
.u-g-band--falling { background: var(--u-sky); border-top: var(--u-line); }
.u-g-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.u-g-grid--flip > .u-g-art { order: 2; }
.u-g-copy h2 { margin: 16px 0 2px; font-size: clamp(2.2rem, 4vw, 3.2rem) !important; }
.u-g-pitch { margin: 14px 0 0; font-size: 1.15rem; }
.u-steps { display: grid; gap: 10px; margin: 22px 0 18px; padding: 0; list-style: none; counter-reset: none; }
.u-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.u-steps li span { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: var(--u-line); border-radius: 50%; background: #fff; font-family: var(--u-display); font-size: 1.15rem; }
.u-store--big img { height: 60px; }
.u-g-art { position: relative; display: grid; justify-items: center; gap: 24px; }
.u-g-phones { position: relative; width: 300px; height: 520px; }
.u-g-phone { position: absolute; width: 230px; height: auto; right: 0; top: 0; transform: rotate(4deg); filter: drop-shadow(7px 8px 0 rgba(36, 18, 74, .25)); }
.u-g-phone--back { left: 0; right: auto; top: 40px; transform: rotate(-8deg); }

/* a tiny memory game to try */
.u-memo { width: min(360px, 100%); padding: 14px 16px 16px; border: var(--u-line); border-radius: 24px; background: #fff; box-shadow: var(--u-pop-lg); text-align: center; }
.u-memo-title { margin: 0 0 10px; font-family: var(--u-display); font-size: 1.25rem; font-weight: 700; }
.u-memo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.u-mcard { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.u-mcard > span { position: absolute; inset: 0; display: grid; place-items: center; border: var(--u-line); border-radius: 14px; backface-visibility: hidden; transition: transform .35s ease; }
.u-mcard-back { background: var(--u-sun) radial-gradient(circle, rgba(255, 255, 255, .55) 3px, transparent 3.5px) 0 0 / 16px 16px; }
.u-mcard-face { background: #fff; transform: rotateY(180deg); }
.u-mcard-face img { width: 78%; height: auto; }
.u-mcard.is-up .u-mcard-back { transform: rotateY(180deg); }
.u-mcard.is-up .u-mcard-face { transform: rotateY(360deg); }
.u-mcard.is-matched .u-mcard-face { background: var(--u-grass); }
.u-memo-done { margin: 12px 0 0; padding: 8px 12px; border-radius: 14px; background: var(--u-sun); font-weight: 800; }

/* Falling Chubblies: friends drop into a well and stack up */
.u-well { position: relative; width: 300px; height: 400px; overflow: hidden; border: 4px solid var(--u-ink); border-radius: 26px; background: linear-gradient(#e9f6ff, #fff); box-shadow: var(--u-pop-lg); }
.u-well-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: var(--u-grass-deep); border-top: var(--u-line); }
.u-fall { position: absolute; top: -100px; width: 96px; height: 96px; animation: u-drop 7s cubic-bezier(.5, 0, .7, 1) infinite; }
.u-fall--0 { left: 4px;   --land: 284px; animation-delay: 0s; }
.u-fall--1 { left: 100px; --land: 284px; animation-delay: .7s; }
.u-fall--2 { left: 196px; --land: 284px; animation-delay: 1.4s; }
.u-fall--3 { left: 52px;  --land: 196px; animation-delay: 2.1s; }
.u-fall--4 { left: 148px; --land: 196px; animation-delay: 2.8s; }
.u-fall--5 { left: 100px; --land: 108px; animation-delay: 3.5s; }
@keyframes u-drop {
  0% { transform: translateY(0); opacity: 1; }
  12% { transform: translateY(calc(var(--land) + 100px)) scale(1.08, .92); }
  15%, 82% { transform: translateY(calc(var(--land) + 100px)); opacity: 1; }
  90%, 100% { transform: translateY(calc(var(--land) + 100px)) scale(.2); opacity: 0; }
}
.u-g-bigicon { position: absolute; right: 2%; bottom: -10px; width: 130px; height: 130px; border: var(--u-line); border-radius: 32px; transform: rotate(10deg); box-shadow: 5px 6px 0 var(--u-ink); }

.u-g-end { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.u-grown { padding: 26px 30px; border: var(--u-line); border-radius: 26px; background: #fff; }
.u-grown h2 { margin: 0 0 12px; font-size: 1.7rem !important; }
.u-grown ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--u-ink-2); }
.u-grown a { font-weight: 800; color: var(--u-ink); }
.u-g-next { position: relative; padding: 26px 30px 30px; border: var(--u-line); border-radius: 26px; background: #2a1a5e; color: #fff; overflow: hidden; }
.u-g-next img { float: right; width: 150px; height: auto; margin: -6px -10px 6px 10px; }
.u-g-next h2 { margin: 0; color: #fff !important; font-size: 1.7rem !important; }
.u-g-next p { color: #e4ddff; }
@media (max-width: 900px) {
  .u-g-hero-grid, .u-g-grid, .u-g-end { grid-template-columns: 1fr; }
  .u-g-art, .u-g-grid--flip > .u-g-art { order: 2; }
  .u-g-next img { width: 110px; }
  .u-g-icons { display: none; }
  .u-which { grid-template-columns: 1fr; }
  .u-g-band { padding: 56px 0; }
  .u-g-phones { width: 240px; height: 410px; }
  .u-g-phone { width: 180px; }
  .u-well { width: 300px; height: 340px; }
  .u-fall--0, .u-fall--1, .u-fall--2 { --land: 224px; }
  .u-fall--3, .u-fall--4 { --land: 136px; }
  .u-fall--5 { --land: 48px; }
  .u-g-bigicon { width: 90px; height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .u-g-icons img { animation: none; }
  .u-fall { animation: none; transform: translateY(calc(var(--land) + 100px)); }
}

/* ── Characters: the ten, the pairs, the crowd ─────────────── */
.u-btn--small { padding: 8px 16px !important; font-size: .95rem !important; }
.u-c-hero { position: relative; overflow: hidden; padding: 56px 0 60px; background: var(--u-lilac); border-bottom: var(--u-line); text-align: center; }
.u-c-hero::before, .u-p-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(36, 18, 74, .09) 2px, transparent 2.5px) 0 0 / 26px 26px; }
.u-c-hero .u-shell { position: relative; }
.u-c-hero h1 { margin: 0; }
.u-c-hero > .u-shell > p { max-width: 560px; margin: 10px auto 0; font-size: 1.2rem; color: var(--u-ink-2); }
.u-heads { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; margin: 34px auto 0; padding: 0; list-style: none; }
.u-heads a { display: grid; justify-items: center; gap: 6px; font-family: var(--u-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; animation: u-pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 60ms); }
.u-head-face { display: block; width: 88px; height: 88px; padding: 6px; overflow: hidden; border: var(--u-line); border-radius: 50%; background: var(--ground); box-shadow: 0 5px 0 var(--u-ink); transition: transform .15s ease; }
.u-heads img { --k: 1; --dy: 0%; --fit: .84; display: block; width: 100%; height: 100%; object-fit: contain; transform: translateY(calc(var(--dy) * var(--fit))) scale(calc(var(--k) * var(--fit))); }
.u-heads a:hover .u-head-face { transform: translateY(-6px) rotate(-6deg); }
@keyframes u-pop-in { from { opacity: 0; transform: translateY(18px) scale(.8); } }

.u-pairboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.u-pairbox { position: relative; padding: 18px 20px 22px; border: var(--u-line); border-radius: 30px; background: #fff; box-shadow: var(--u-pop-lg); }
.u-pairbox:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
.u-pairbox-tag { justify-self: center; width: fit-content; margin: 0 auto 14px; padding: 4px 14px; border: 2px solid var(--u-ink); border-radius: 999px; background: var(--u-pink); font-weight: 800; font-size: .95rem; }
.u-pairbox-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: start; }
.u-heart { position: relative; display: block; width: 34px; height: 30px; margin-top: 62px; }
.u-heart::before { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; line-height: 1; color: #ff5d8f; -webkit-text-stroke: 2px var(--u-ink); animation: u-beat 1.6s ease-in-out infinite; }
@keyframes u-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } }
.u-cc { display: grid; justify-items: center; text-align: center; scroll-margin-top: 110px; }
.u-cc:target .u-cc-art { animation: u-hop .6s ease 2; }
.u-cc-art { display: grid; place-items: center; width: 150px; height: 150px; border: var(--u-line); border-radius: 50%; background: var(--ground); }
.u-cc-art img { width: 128px; height: 128px; }
.u-cc h3 { margin: 10px 0 0; font-size: 1.7rem !important; line-height: 1.1; }
.u-cc-kind { margin: 2px 0 10px; font-weight: 700; color: var(--u-ink-2); }
.u-cc .u-btn { margin-bottom: 6px; }
.u-cc-find { margin: 8px 0 8px; font-size: .9rem; font-weight: 800; }
.u-cc-list { display: grid; gap: 8px; width: 100%; max-width: 230px; margin: 0; padding: 0; list-style: none; text-align: left; }
.u-cc-list a { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 2px solid var(--u-ink); border-radius: 14px; background: #fff; font-weight: 800; font-size: .95rem; line-height: 1.15; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.u-cc-list a:hover { transform: translateX(3px); background: var(--u-sun-hi); }
.u-cc-list img { flex: none; width: 40px; height: 40px; object-fit: cover; object-position: top; border: 2px solid var(--u-ink); border-radius: 10px; background: #fff; }

.u-spots { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.u-spot { padding: 8px 16px; border: 3px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: 800 1rem var(--u-text); cursor: pointer; transition: transform .12s ease; }
.u-spot:hover { transform: translateY(-2px); }
.u-spot[aria-pressed="true"] { border-color: var(--u-ink); background: var(--u-sun); color: var(--u-ink); box-shadow: 0 4px 0 var(--u-ink); }
.u-spot[aria-pressed="true"]::before { content: "✓ "; }
.u-spot-count { margin: 18px 0 0 !important; font-weight: 700; }
.u-spot-count b { font-family: var(--u-display); font-size: 1.5rem; color: var(--u-sun); }
.u-crowd-art img { animation: none; }

.u-c-next { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.u-c-next .u-head p { margin-bottom: 0; }
.u-c-next-icons { display: flex; }
.u-c-next-icons img { width: 96px; height: 96px; border: var(--u-line); border-radius: 24px; box-shadow: 0 5px 0 var(--u-ink); transform: rotate(-6deg); }
.u-c-next-icons img + img { margin-left: -18px; transform: rotate(7deg) translateY(8px); }

/* A character's own page */
.u-p-hero { position: relative; overflow: hidden; padding: 40px 0 56px; background: var(--ground); border-bottom: var(--u-line); }
.u-p-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
.u-p-back { display: inline-block; margin-bottom: 18px; padding: 4px 14px; border: 2px solid var(--u-ink); border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; }
.u-p-back:hover { background: var(--u-sun-hi); }
.u-p-hero h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 5.6rem) !important; line-height: 1; }
.u-p-identity { max-width: 520px; margin: 12px 0 0; font-size: 1.25rem; }
.u-p-traits { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.u-p-traits li { padding: 6px 16px; border: 2px solid var(--u-ink); border-radius: 12px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--u-ink); transform: rotate(-2deg); }
.u-p-traits li:nth-child(even) { background: var(--u-sun-hi); transform: rotate(2deg); }
.u-p-portrait { display: grid; place-items: center; width: min(400px, 100%); aspect-ratio: 1; margin-inline: auto; border: var(--u-line); border-radius: 50%; background: #fff; box-shadow: var(--u-pop-lg); }
.u-p-portrait img { width: 86%; height: auto; animation: u-breathe 6s ease-in-out infinite; }
.u-p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.u-p-grid > .u-p-card:only-child { grid-column: 1 / -1; }
.u-p-card { padding: 26px 28px; border: var(--u-line); border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--u-ink); }
.u-p-card h2 { margin: 0 0 10px; font-size: 1.9rem !important; line-height: 1.1; }
.u-p-card p:last-child { margin-bottom: 0; }
.u-p-card--sun { background: var(--u-sun-hi); }
.u-p-card--note { grid-column: 1 / -1; border-style: dashed; box-shadow: none; background: var(--u-paper); }
.u-p-label { margin: 0 0 6px; font-family: var(--u-text) !important; font-size: .95rem !important; font-weight: 800; color: var(--u-ink-2); }
.u-p-motto { grid-column: 1 / -1; padding: 28px 30px; border: var(--u-line); border-radius: 26px; background: #2a1a5e; color: #fff; text-align: center; }
.u-p-motto .u-p-label { color: #e4ddff; }
.u-p-motto blockquote { margin: 0; }
.u-p-motto strong { display: block; font-family: var(--u-display); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; color: var(--u-sun); }
.u-p-motto span { display: block; margin-top: 6px; font-size: 1.15rem; color: #e4ddff; }
.u-p-friend { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 36px; }
.u-p-friend h2 { margin: 0 0 8px; }
.u-p-duo { display: flex; align-items: center; gap: 8px; }
.u-p-duo img { width: 170px; height: 170px; padding: 10px; border: var(--u-line); border-radius: 50%; background: #fff; }
.u-p-duo .u-heart { margin-top: 0; }
.u-finds--big { margin-top: 22px; }
.u-p-more { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

@media (max-width: 900px) {
  .u-pairboxes { grid-template-columns: 1fr; }
  .u-pairbox:last-child:nth-child(odd) { width: 100%; }
  .u-c-next { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .u-p-hero-grid, .u-p-friend { grid-template-columns: 1fr; }
  .u-p-portrait { width: min(280px, 80%); }
  .u-p-duo { justify-content: center; }
  .u-p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .u-heads { gap: 12px; }
  .u-head-face { width: 70px; height: 70px; padding: 4px; }
  .u-heads a { font-size: .95rem; }
  .u-pairbox { padding: 16px 12px 18px; }
  .u-pairbox-row { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); }
  .u-heart { width: 22px; margin-top: 46px; }
  .u-heart::before { font-size: 24px; }
  .u-cc-art { width: 112px; height: 112px; }
  .u-cc-art img { width: 94px; height: 94px; }
  .u-cc h3 { font-size: 1.4rem !important; }
  .u-cc-list a { gap: 6px; padding-right: 6px; font-size: .85rem; }
  .u-cc-list img { width: 32px; height: 32px; }
  .u-p-duo img { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .u-heads a, .u-heart::before, .u-p-portrait img, .u-cc:target .u-cc-art { animation: none; }
}
.u-finds a, .u-cc-list a { box-sizing: border-box; }
