/* Part hubs (2026-10-27): the homepage, MaliTools and MaliGames (and MaliWikis until 2026-11-12) open
   like an app's welcome screen. A full-bleed scene of floating stickers with the
   part's name in the middle (.hub-scene, which holds the page's H1), then a
   sheet (.hub-sheet) whose pages (.hub-pages, one per sub-part: Bills, Trips…)
   swipe left and right, each a grid of tools, with chips and dots that follow
   (hub.js). Phones first; since the same day desktop too: the "DESKTOP" block
   at the end widens it (one wide page at a time, arrows, bigger scene).
   Every rule starts html:not(.hub-off): it matches every page but weighs one
   class, as html.cz-app did when this was phones only, so it still beats
   cz-app.js's and space.css's rules. Loaded after space.css. */

.hub-scene, .hub-chips, .hub-dots, .hub-wave, .hub-only { display: none; }

/* ---------- the scene ---------- */
html:not(.hub-off) .hub-scene {
  --hub-ink: #111111;
  display: block; position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  width: 100vw; margin: calc(-1 * var(--hub-up, 70px)) 0 0 calc(50% - 50vw);
  height: calc(var(--hub-up, 70px) + var(--hub-h, clamp(300px, 48svh, 430px))); /* --hub-h: hub.js fits the screen */
  color: #f3eee3;
  background:
    radial-gradient(90% 55% at 50% 100%, rgba(255, 75, 43, .55), transparent 70%),
    radial-gradient(60% 40% at 8% 8%, rgba(255, 154, 31, .22), transparent 70%),
    radial-gradient(50% 35% at 100% 30%, rgba(255, 75, 43, .2), transparent 70%),
    #160d09;
  /* the bottom edge is a soft wave; the page shows through under it */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 55px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 56' preserveAspectRatio='none'%3E%3Cpath d='M0 0h390v26c-52 26-104 30-170 14S88 18 0 44z'/%3E%3C/svg%3E") bottom / 100% 56px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 55px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 56' preserveAspectRatio='none'%3E%3Cpath d='M0 0h390v26c-52 26-104 30-170 14S88 18 0 44z'/%3E%3C/svg%3E") bottom / 100% 56px no-repeat;
}
html:not(.hub-off):not([data-theme="dark"]) .hub-scene {
  background:
    radial-gradient(80% 50% at 50% 58%, rgba(243, 238, 227, .34), transparent 70%),
    radial-gradient(60% 40% at 0% 0%, rgba(255, 154, 31, .55), transparent 70%),
    linear-gradient(172deg, #ff7a45 0%, #ff4b2b 62%, #f23d1f 100%);
}
html:not(.hub-off) .hub-scene::before { /* faint stars / dots */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(1.4px 1.4px at 20px 30px, #f3eee3 50%, transparent 51%) 0 0 / 74px 61px,
    radial-gradient(1px 1px at 50px 10px, #f3eee3 50%, transparent 51%) 0 0 / 97px 83px;
}
html:not(.hub-off):not([data-theme="dark"]) .hub-scene::before { opacity: .35; }

/* floating stickers: each <span class="hub-f"> is placed by --x/--y/--s; the
   span pops in once, its <img> bobs and tilts forever (--t, --dl, --r) */
/* the stickers fly below the header (--hub-up), never behind its buttons */
.hub-sky { position: absolute; inset: var(--hub-up, 70px) 0 0; pointer-events: none; }
.hub-f { position: absolute; left: var(--x); top: var(--y); width: var(--s, 52px); height: var(--s, 52px);
  opacity: var(--o, 1); animation: hubPop .45s cubic-bezier(.2, 1.4, .4, 1) var(--pd, 0s) both; }
.hub-f img { display: block; width: 100%; height: 100%; will-change: transform;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .18));
  animation: hubBob var(--t, 6s) ease-in-out var(--dl, 0s) infinite; }
.hub-f.far { --o: .55; }
.hub-f.far img { filter: none; }
@keyframes hubPop { from { opacity: 0; transform: scale(.4); } }
@keyframes hubBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, -8deg)); }
  50% { transform: translate3d(0, -12px, 0) rotate(calc(var(--r, -8deg) * -1)); }
}
/* things that cross the scene: a plane, an F1 car, a rocket */
.hub-go { position: absolute; left: 0; top: var(--y); width: var(--s, 56px); height: var(--s, 56px); will-change: transform;
  animation: var(--a, hubFly) var(--t, 12s) linear var(--dl, 0s) infinite; }
.hub-go img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .18)); }
@keyframes hubFly {
  0% { transform: translate3d(-90px, 30px, 0) rotate(6deg); }
  55%, 100% { transform: translate3d(calc(100vw + 90px), -40px, 0) rotate(-6deg); }
}
@keyframes hubDrive {
  0% { transform: translate3d(-110px, 0, 0); }
  40%, 100% { transform: translate3d(calc(100vw + 110px), 0, 0); }
}
@keyframes hubRise {
  0% { transform: translate3d(var(--gx, 70vw), 120px, 0) rotate(18deg); }
  45%, 100% { transform: translate3d(calc(var(--gx, 70vw) + 60px), -420px, 0) rotate(18deg); }
}
.hub-tw { position: absolute; left: var(--x); top: var(--y); width: var(--s, 16px); height: var(--s, 16px);
  animation: hubTw var(--t, 2.6s) ease-in-out var(--dl, 0s) infinite; }
@keyframes hubTw { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* the middle: a round badge, the part's name, one line under it */
.hub-mid { position: absolute; left: 0; right: 0; bottom: 76px; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px; animation: hubUp .42s cubic-bezier(.2, .9, .3, 1) .08s both; }
@keyframes hubUp { from { opacity: 0; transform: translateY(14px); } }
.hub-badge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; border-radius: 50%;
  background: #f3eee3; border: 2.5px solid var(--hub-ink); box-shadow: 0 5px 0 var(--ink-sh, var(--hub-ink)); }
.hub-badge img { width: 52px; height: 52px; }
/* the page's H1 (2026-10-27): the name and the line under it */
html:not(.hub-off):root:root:root body .hub-scene h1.hub-h1 { display: flex; flex-direction: column; align-items: center; margin: 0 !important; padding: 0;
  font: inherit !important; letter-spacing: normal !important; text-transform: none !important; color: inherit !important; max-width: none; }
.hub-h1 > span { display: block; }
.hub-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-name { margin: 0; font: 700 46px/1 var(--sp-display, "Chakra Petch", system-ui, sans-serif); letter-spacing: -.01em; color: #f3eee3;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .28); }
.hub-name span { color: #ff5a3c; }
html:not(.hub-off):not([data-theme="dark"]) .hub-name span { color: var(--hub-ink); text-shadow: none; }
.hub-tag { margin: 10px 0 0; max-width: 30ch; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: rgba(243, 238, 227, .88); }
html:not(.hub-off):not([data-theme="dark"]) .hub-tag { color: #f8f5ee; }
/* a short scene (hub.js: under 300px, then under 220px) keeps the name readable */
.hub-short .hub-mid { bottom: 52px; }
.hub-short .hub-badge { width: 58px; height: 58px; margin-bottom: 10px; }
.hub-short .hub-badge img { width: 36px; height: 36px; }
.hub-short .hub-name { font-size: 38px; }
.hub-short .hub-tag { margin-top: 6px; font-size: 14px; }
.hub-tiny .hub-f.far { display: none; }
/* and the two bottom corners (the 8th and 9th stickers on every hub), which the wave would cut */
.hub-tiny .hub-sky > .hub-f:nth-of-type(n+8) { display: none; }
.hub-tiny .hub-mid { bottom: 46px; }
.hub-tiny .hub-badge { width: 44px; height: 44px; margin-bottom: 8px; box-shadow: 0 3px 0 var(--ink-sh, var(--hub-ink)); }
.hub-tiny .hub-badge img { width: 28px; height: 28px; }
.hub-tiny .hub-name { font-size: 30px; }
/* a tiny scene keeps the badge and the name; the line under it goes, so the
   badge stays under the header (2026-10-28) */
.hub-tiny .hub-tag { display: none; }

/* the header sits over the scene until the page scrolls */
html:not(.hub-off).hub-top body .ar-nav { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
/* …but not while Settings is open over it (2026-11-03): the page under the
   bar is then the cream/dark Settings page, where cream letters vanished */
html:not(.hub-off).hub-top:not(.bh-open) body :is(.bh, .ar-nav) .cz-brand { color: #f3eee3 !important; }
html:not(.hub-off).hub-top:not([data-theme="dark"]):not(.bh-open) body :is(.bh, .ar-nav) .cz-bl.z { color: #111111 !important; }

/* ---------- the sheet ---------- */
html:not(.hub-off) .hub-sheet { display: block; position: relative; margin: -6px 0 0; }
/* MaliTools' and the homepage's main are flex columns with a 22px gap */
html:not(.hub-off) body main.hm > .hub-sheet { margin-top: -28px; }
html:not(.hub-off) .hub-chips { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
html:not(.hub-off) .hub-chips::-webkit-scrollbar { display: none; }
.hub-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; margin: 0; padding: 0 15px 0 9px; border-radius: 999px;
  border: 1px solid var(--line, rgba(127, 127, 127, .25)); background: var(--surface); color: var(--text); box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hub-chip img { width: 24px; height: 24px; }
.hub-chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* the pages: one card per sub-part, side by side, snapping to the middle */
html:not(.hub-off) body .hub-sheet .hub-pages {
  display: grid !important; grid-auto-flow: column; grid-auto-columns: calc(100% - 32px); gap: 10px;
  margin: 0 -16px !important; padding: 0 16px 4px !important; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html:not(.hub-off) .hub-pages::-webkit-scrollbar { display: none; }
html:not(.hub-off):root:root:root body .hub-pages > * {
  display: flex !important; flex-direction: column; min-width: 0; max-width: none !important; margin: 0 !important;
  min-height: var(--hub-ph, 0); /* hub.js: every hub's sheet is the same height */
  padding: 16px 14px 20px !important; scroll-snap-align: center; scroll-snap-stop: always;
  border: 1px solid var(--line, rgba(127, 127, 127, .2)) !important; border-radius: 26px !important;
  background: var(--surface) !important; box-shadow: none !important;
}
html:not(.hub-off):root:root:root body .hub-pages > * > .hm-in { display: contents; }

/* each page's head: its name is on the chip, so only the line and See all show */
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-head, .bg-sec-h, .hub-head) {
  display: flex !important; align-items: flex-start; gap: 12px; margin: 0 0 18px !important; padding: 0 2px !important; border: 0 !important;
}
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-ic, .bg-sec-h .gicon, .hub-head-ic) { display: none !important; }
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-head, .bg-sec-h, .hub-head) h2 {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-t, .bg-sec-h > div, .hub-head > div) { flex: 1; min-width: 0; }
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-t, .bg-sec-h > div, .hub-head > div) p {
  margin: 0 !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.55 !important; color: var(--muted) !important;
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: block !important; -webkit-line-clamp: none !important; }
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-part-all, .hub-all) {
  flex: none; display: inline-flex; align-items: center; gap: 2px; margin: 0 !important; padding: 0 !important;
  font-size: 13.5px !important; font-weight: 700 !important; color: var(--accent) !important; text-decoration: none; white-space: nowrap; }

/* the tools: three across, a sticker tile and the name under it */
html:not(.hub-off):root:root:root body .hub-pages :is(.hm-grid, .games, .hub-grid) {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px 8px !important; margin: 0 !important; }
/* a page that is itself the grid (MaliGames' arcade): its head spans the row */
html:not(.hub-off):root:root:root body .hub-pages > :is(.games, .hub-grid) { align-content: start; }
html:not(.hub-off):root:root:root body .hub-pages > :is(.games, .hub-grid) > .hub-head { grid-column: 1 / -1; }
html:not(.hub-off):root:root:root body .hub-pages .hm-tool .hm-card-art { width: 70px !important; height: 70px !important; border-radius: 20px !important; }
html:not(.hub-off):root:root:root body .hub-pages .hm-tool .hm-card-art img { width: 44px !important; height: 44px !important; }

/* MaliGames' cards and the hub tiles take the same shape */
html:not(.hub-off):root:root:root body .hub-pages :is(.gcard, .gcard.featured, .hub-tile) {
  position: relative; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important;
  min-width: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  grid-column: auto !important; text-align: center; color: var(--text); text-decoration: none; transform: none !important; }
html:not(.hub-off):root:root:root body .hub-pages .gcard :is(.desc, .pills, .foot, .flag, .sub) { display: none !important; }
html:not(.hub-off):root:root:root body .hub-pages .gcard :is(.top, .body, .top > div:not(.gicon)) { display: contents !important; }
html:not(.hub-off):root:root:root body .hub-pages :is(.gcard .gicon, .gcard.featured .gicon, .hub-tile-art) {
  display: grid; place-items: center; width: 70px !important; height: 70px !important; margin: 0 !important; border-radius: 20px !important;
  border: 1px solid var(--line, rgba(127, 127, 127, .2)) !important; background: var(--surface-soft, var(--bg)) !important; box-shadow: none !important; }
html:not(.hub-off):root:root:root body .hub-pages :is(.gcard .gicon .ic, .hub-tile-art img) { width: 44px !important; height: 44px !important; }
html:not(.hub-off):root:root:root body .hub-pages :is(.gcard h2, .hub-tile b) {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; margin: 0 !important;
  font-family: inherit !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.35 !important; letter-spacing: 0 !important; color: var(--text); }
html:not(.hub-off):root:root:root body .hub-pages .gcard h2 a { color: inherit; text-decoration: none; }
html:not(.hub-off) .hub-pages :is(.gcard, .hub-tile):active :is(.gicon, .hub-tile-art) { transform: scale(.94); transition: transform 120ms; }

/* MaliGames: the room-code box and the 20+ line, compact */
html:not(.hub-off):root:root:root body .hub-pages .bg-join { flex-wrap: nowrap; gap: 8px; margin: -4px 0 18px !important; }
html:not(.hub-off):root:root:root body .hub-pages .bg-join label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html:not(.hub-off):root:root:root body .hub-pages .bg-join input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font-size: 16px; letter-spacing: .2em; }
html:not(.hub-off):root:root:root body .hub-pages .bg-join .btn { height: 44px; padding: 0 16px; }
html:not(.hub-off):root:root:root body .hub-pages .dk-age { margin: -4px 0 18px !important; padding: 8px 12px; font-size: 12.5px; }

/* the dots under the pages */
html:not(.hub-off) .hub-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 6px; }
.hub-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .4; transition: width .25s, opacity .25s, background-color .25s; }
.hub-dots i.on { width: 20px; opacity: 1; background: var(--accent); }

/* what each hub hides on phones: its desktop head (the scene names it now) */
html:not(.hub-off) body:has(.hub-scene) :is(main.hm-home > .hm-hero, main.hm-hub > .cz-hh, .wk-hub > .wk-head, .wk-hub > #wkCards, main.wrap > .hero) { display: none !important; }
html:not(.hub-off) body:has(.hub-scene) main.wrap { display: flex; flex-direction: column; }
html:not(.hub-off) body:has(.hub-scene) main.wrap > #dailyReward { order: 2; margin-top: 22px; }
html:not(.hub-off) body:has(.hub-scene) .wk-hub > .wk-search { margin-top: 26px; }
html:not(.hub-off) .hub-only:not(.hub-sheet) { display: revert; }

/* one screen (2026-10-27): the sheet's tallest page sets how much scene is
   left above the tab bar (hub.js), so the sheet is kept tight */
html:not(.hub-off) body .hub-sheet .hub-chips { margin-bottom: 10px; }
html:not(.hub-off) body .hub-sheet .hub-chip { height: 36px; font-size: 13.5px; }
html:not(.hub-off) body .hub-sheet .hub-chip img { width: 22px; height: 22px; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > * { padding: 14px 12px 14px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-part-head, .bg-sec-h, .hub-head) { margin-bottom: 14px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-part-t, .bg-sec-h > div, .hub-head > div) p {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 1 !important; overflow: hidden !important; font-size: 13.5px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-grid, .games, .hub-grid) { gap: 12px 6px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-tool .hm-card-art, .gcard .gicon, .gcard.featured .gicon, .hub-tile-art) {
  width: 60px !important; height: 60px !important; border-radius: 18px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-tool .hm-card-art img, .gcard .gicon .ic, .hub-tile-art img) { width: 38px !important; height: 38px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-tool, .gcard, .hub-tile) { gap: 6px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages :is(.hm-tool h3, .gcard h2, .hub-tile b) { font-size: 12.5px !important; line-height: 1.3 !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages .bg-join { margin: -4px 0 14px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages .bg-join :is(input, .btn) { height: 40px; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages .dk-age { margin: -4px 0 14px !important; padding: 6px 10px; }
/* MaliGames' board and drinking pages: the chip names them, so the room code
   and the 20+ line take the head's place (the h2 stays for the chip) */
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .bg-sec > .bg-sec-h { display: none !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .bg-sec > :is(.bg-join, .dk-age) { margin-top: 0 !important; }
/* guests (2026-10-27): the log-in row takes the 20+ line's place (the game
   pages say 20+ once you're in), and the tiles carry the lock */
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .dk-locked > .dk-age { display: none !important; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .bg-sec > .dk-lock { margin: 0 0 14px !important; padding: 6px 6px 6px 10px; font-size: 12.5px; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .bg-sec > .dk-lock img { width: 22px; height: 22px; }
html:not(.hub-off):root:root:root body .hub-sheet .hub-pages > .bg-sec > .dk-lock .btn { height: 36px; padding: 0 14px; font-size: 13px; }
html:not(.hub-off):root:root:root body .hub-pages .dk-locked .gcard::after { top: -4px; right: calc(50% - 40px); width: 24px; height: 24px; }
html:not(.hub-off) body .hub-sheet .hub-dots { margin: 10px 0 4px; }


/* ---------- the homepage (2026-10-27): the biggest scene ----------
   Phones (2026-10-28, after the desktop poster; it was Mali in a disc with
   the parts circling her): a big CHAMIZ in the poster's 3D type, with the
   stickers spread evenly round it, then your greeting (hub.js copies it from
   gnav.js) and the site's line. The word follows the scene's height.
   Desktop has home-hero.css's poster instead. */
html:not(.hub-off) .hub-home { --hw-face: #f3eee3; --hw-ext: #111111; --hw-z: #ffd23f; --hw-zext: #111111; }
html:not(.hub-off)[data-theme="dark"] .hub-home { --hw-ext: #ff4b2b; --hw-z: #ff4b2b; --hw-zext: #8a2412; }
html:not(.hub-off) .hub-home::after { /* a warm glow behind the word */
  content: ""; position: absolute; left: 50%; bottom: 120px; z-index: -1; width: 460px; height: 460px; margin-left: -230px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 120, .34), transparent); }
.hub-home .hub-mid { bottom: 64px; }
.hub-home.hub-short .hub-mid { bottom: 52px; }
/* the word springs in like the app bar's CHAMIZ (cz-app.js brandIntro), letter
   by letter, the Z last and biggest with a sparkle; a tap waves it (hub.js).
   While it's on screen the bar's own CHAMIZ hides (.hub-word-in, set inline
   in index.html and kept by hub.js), and the top row of stickers moves up
   into the bar's line, so the word can be bigger (2026-10-28) */
.hub-word { position: relative; margin: 0 0 12px; padding-right: .05em; font: 700 min(25vw, calc(var(--hub-h, 300px) * .46), 136px)/.84 var(--sp-display, "Chakra Petch", system-ui, sans-serif);
  letter-spacing: -.04em; white-space: nowrap; color: var(--hw-face); text-shadow: .03em .045em 0 var(--hw-ext); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hub-word span { --tl: -16deg; display: inline-block; transform-origin: 50% 85%; animation: hubWord .6s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(40ms + var(--i) * 70ms); }
.hub-word span:nth-child(even) { --tl: 16deg; }
.hub-word .z { color: var(--hw-z); text-shadow: .03em .045em 0 var(--hw-zext); animation-name: hubWordZ; animation-duration: .82s; animation-delay: calc(180ms + var(--i) * 70ms); }
.hub-word i { position: absolute; right: -.1em; top: -.08em; width: .2em; height: .2em; pointer-events: none; opacity: 0;
  background: url(/images/arcade-icons/sparkle.svg) center / contain no-repeat; animation: hubWordSpark .95s ease-out .91s both; }
.hub-tiny .hub-word { margin-bottom: 8px; font-size: min(25vw, calc(var(--hub-h, 200px) * .44)); }
@keyframes hubWord {
  0% { opacity: 0; transform: translateY(.3em) rotate(var(--tl)) scale(.3); }
  55% { opacity: 1; transform: translateY(-.08em) rotate(calc(var(--tl) * -.25)) scale(1.1); }
}
@keyframes hubWordZ {
  0% { opacity: 0; transform: translateY(.3em) rotate(var(--tl)) scale(.3); }
  55% { opacity: 1; transform: translateY(-.08em) rotate(calc(var(--tl) * -.25)) scale(1.4); }
}
@keyframes hubWordSpark {
  0% { opacity: 0; transform: scale(0) rotate(-60deg); }
  35% { opacity: 1; transform: scale(1.25) rotate(40deg); }
  100% { opacity: 0; transform: scale(.5) rotate(120deg); }
}
html.cz-app.hub-word-in:root:root:root:root body .cz-brand { opacity: 0; visibility: hidden; pointer-events: none; }
html.cz-app:root:root:root body .cz-brand { transition: opacity .2s, visibility .2s; }
html.cz-app:not(.hub-off) .hub-home .hub-sky { top: max(env(safe-area-inset-top, 0px), calc(var(--hub-up, 70px) - 46px)); }
@keyframes hubSpin { to { transform: rotate(360deg); } }
@keyframes hubWave { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hub-hi { display: grid; gap: 2px; margin: 0; color: #f3eee3; }
.hub-hi small { font-size: 14px; font-weight: 700; opacity: .88; }
.hub-hi b { font: 700 32px/1.12 var(--sp-display, "Chakra Petch", system-ui, sans-serif); letter-spacing: -.01em; overflow-wrap: anywhere;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .28); }
.hub-home .hub-tag { margin-top: 8px; }
.hub-short .hub-hi b { font-size: 27px; }
.hub-tiny .hub-hi small, .hub-home.hub-tiny .hub-tag { display: none; }
.hub-tiny .hub-hi b { font-size: 24px; }

/* phones: the scene and the sheet come first (home.css orders the rest) */
html:not(.hub-off) body main.hm > .hub-scene { order: -2; }
html:not(.hub-off) body main.hm > .hub-sheet { order: -1; }

/* the homepage's sheet (2026-10-28): the Today card, then the part picker */
html:not(.hub-off) body .hub-home-sheet { display: flex; flex-direction: column; gap: 12px; }
html:not(.hub-off):root:root:root body .hub-sheet > .cz-today {
  display: flex !important; flex-direction: column; min-width: 0; max-width: none !important; margin: 0 !important;
  padding: 14px 12px !important; border: 1px solid var(--line, rgba(127, 127, 127, .2)) !important; border-radius: 26px !important;
  background: var(--surface) !important; box-shadow: none !important; }
/* the Today card: today.css's big card, flattened into it */
html:not(.hub-off):root:root:root body .hub-sheet > .cz-today > .tc-in { display: flex; flex-direction: column; flex: 1; max-width: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big { display: flex; flex-direction: column; flex: 1; overflow: visible;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px !important; padding: 0 2px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big :is(.cz-hi, .cz-hi-av, .tc-head-mali) { display: none !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-head-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-head h2 { margin: 0; font: 700 18px/1.2 var(--sp-display, "Chakra Petch", system-ui, sans-serif); color: var(--text); }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-head small { font-size: 13.5px; font-weight: 600; color: var(--muted); }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big #todayCard { flex: 1; display: flex; flex-direction: column; }
/* lucky colours in one strip across the top, then the holiday and วันพระ */
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-row { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: auto 1fr; gap: 8px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip { min-height: 0 !important; padding: 10px 12px !important; gap: 4px !important; border-radius: 16px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip.lucky { grid-column: 1 / -1 !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px !important; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip.lucky small { flex-basis: auto; -webkit-line-clamp: 1; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-top { gap: 5px; font-size: 11.5px; line-height: 1.25; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-top img { width: 18px; height: 18px; flex: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip b { font-size: 14.5px; line-height: 1.3; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip .tc-num { font-size: 15px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip em { display: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-sw { gap: 2px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-sw .lk-sw { width: 16px; height: 16px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-wait { min-height: 90px; }
/* signed in, "วันนี้กับมะลิ" becomes one slim row at the top, in place of
   the date: its first item, which links on like the strip's own */
html:not(.hub-off):root:root:root body .hub-sheet .tc-big:has(.tc-mine:not([hidden])) .tc-head { display: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-big:has(.tc-mine:not([hidden])) .tc-chip small { -webkit-line-clamp: 2; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine { order: -1; margin: 0 0 8px; padding: 0; border: 0; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine-head { display: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mali-today-chips { display: block; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mali-today-chip:nth-child(n+2) { display: none; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mali-today-chip { gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--accent-soft, var(--surface-soft)); }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mali-today-chip::after { content: "›"; margin-left: auto; font-size: 20px; font-weight: 700; line-height: 1; color: var(--accent); }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mt-icon img { display: block; width: 24px; height: 24px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mt-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mt-text :is(strong, span) { flex: none; white-space: nowrap; font-size: 13.5px; }
html:not(.hub-off):root:root:root body .hub-sheet .tc-mine .mt-text span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the part picker (homepage, 2026-10-28) ----------
   MaliTools, MaliWikis and MaliGames as three cards in a ring, like a
   "choose your gift" screen: the middle card is lit, the other two lean
   back at its sides. hub-pick.js turns the ring (swipe, ‹ ›, arrow keys)
   and sets each card's --x --ry --s --op --dim --y; the nth-child values
   below are the first paint (and no JS). Swipe the lit card up into the
   glowing slot above it (2026-10-28; it used to be a drag down into a slot
   under it), or tap it, to open that part. Motion: transform/opacity. */
html:not(.hub-off) .hub-pick { --cw: 124px; --ch: 158px; --gap: calc(var(--cw) * .78);   /* phones: small, so the homepage fits one screen (2026-10-28; was 152×200) */
 
  position: relative; margin: 0 -16px; padding: 0 16px; overflow-x: clip; text-align: center; }
.pk-h { margin: 0 0 2px; font: 700 16px/1.25 var(--sp-display, "Chakra Petch", system-ui, sans-serif); color: var(--text); }
.pk-deck { position: relative; height: var(--ch); perspective: 900px; outline: none; }
.pk-card { --x: 0px; --y: 0px; --ry: 0deg; --s: 1; --op: 1; --dim: 0;
  position: absolute; left: 50%; top: 0; z-index: 3; box-sizing: border-box; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 8px 8px; border-radius: 20px;
  border: 2px solid rgba(243, 238, 227, .22); color: #f3eee3; text-decoration: none; text-align: center;
  background: linear-gradient(170deg, var(--pk1), var(--pk2) 78%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34);
  transform: translate3d(var(--x), var(--y), 0) rotateY(var(--ry)) scale(var(--s)); opacity: var(--op);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .3s;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.pk-card:nth-child(2) { --x: var(--gap); --ry: -30deg; --s: .84; --dim: 1; z-index: 2; }
.pk-card:nth-child(3) { --x: calc(var(--gap) * -1); --ry: 30deg; --s: .84; --dim: 1; z-index: 1; }
.pk-tools { --pk1: #ff7a35; --pk2: #c2300f; }
.pk-f1 { --pk1: #d0140a; --pk2: #15151e; }   /* F1 red to carbon (2026-11-12, in MaliWikis' blue card's place) */
.pk-games { --pk1: #9b74f2; --pk2: #4a2aa8; }
/* the lit edge of the middle card, and the shade on the side ones */
.pk-card::before, .pk-card::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; transition: opacity .3s; }
.pk-card::before { box-shadow: 0 0 0 2px #ffd27a, 0 0 30px 4px rgba(255, 176, 64, .55); opacity: calc(1 - var(--dim)); }
.pk-card::after { background: rgba(12, 7, 4, .42); opacity: var(--dim); }
.pk-deck.pk-drag .pk-card, .pk-deck.pk-drag .pk-card::before, .pk-deck.pk-drag .pk-card::after, .pk-card.pk-jump { transition: none; }
.pk-deck.pk-drag .pk-card { cursor: grabbing; }
.pk-card:focus-visible { outline: 3px solid #ffd27a; outline-offset: 4px; }
.pk-card img { -webkit-user-drag: none; pointer-events: none; }
.pk-top { display: flex; justify-content: space-between; align-items: center; width: 100%; font: 700 9px/1 var(--sp-display, "Chakra Petch", system-ui, sans-serif);
  letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.pk-art { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 2px 0 1px; border-radius: 50%;
  background: #f3eee3; border: 2.5px solid #111111; box-shadow: 0 3px 0 var(--ink-sh, #111111); }
.pk-art img { width: 28px; height: 28px; }
html:not(.hub-off):root body .pk-name { margin: 0; font: 700 16px/1.15 var(--sp-display, "Chakra Petch", system-ui, sans-serif); letter-spacing: -.01em; color: #f3eee3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.pk-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 10px; font-weight: 600; line-height: 1.35; opacity: .92; }
.pk-subs { display: flex; gap: 2px; margin-top: auto; padding: 2px 6px; border-radius: 999px; background: rgba(243, 238, 227, .92); }
.pk-subs img { width: 15px; height: 15px; }
/* the slot above the lit card (between the heading and the cards, which
   keeps them apart): a glowing well that says what to do, and two chevrons
   nudging up into it. It brightens while you swipe (.pk-hot) and when a
   card goes in (.pk-go) */
.pk-slot { position: relative; height: 38px; margin: 0 0 8px; pointer-events: none; }
.pk-chev { position: absolute; left: 50%; bottom: 0; width: 10px; height: 10px; margin-left: -5px; border: solid #ffc46b; border-width: 0 2.5px 2.5px 0;
  transform: rotate(225deg); opacity: .85; animation: pkNudge 1.6s ease-in-out infinite; }
.pk-chev + .pk-chev { bottom: 6px; opacity: .5; animation-delay: .12s; }
html:not([data-theme="dark"]) .pk-chev { border-color: var(--accent, #ff4b2b); }
html:not(.hub-off):root body .pk-well { position: absolute; left: 50%; top: 0; width: min(100%, calc(var(--cw) + 110px)); height: 22px; margin: 0; transform: translateX(-50%);
  border-radius: 14px; border: 1px solid rgba(255, 196, 107, .45); background: linear-gradient(rgba(255, 120, 40, .05), rgba(255, 176, 64, .3));
  box-shadow: 0 8px 26px rgba(255, 160, 60, .26); font-size: 11px; font-weight: 700; line-height: 20px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-well::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(rgba(255, 140, 50, .3), rgba(255, 214, 140, .9)); box-shadow: 0 10px 34px rgba(255, 170, 70, .6);
  opacity: 0; transition: opacity .2s; }
.pk-well { isolation: isolate; }
.hub-pick:is(.pk-hot, .pk-go) .pk-well::after { opacity: 1; }
.hub-pick:is(.pk-hot, .pk-go) .pk-chev { opacity: 0; }
@keyframes pkNudge { 0%, 100% { transform: translateY(0) rotate(225deg); } 50% { transform: translateY(-4px) rotate(225deg); } }
/* a short phone (667px and the like): the Today card and the picker
   tighten so the lit card still clears the tab bar without a scroll */
@media (max-height: 740px) {
  html.cz-app:not(.hub-off) body .hub-home-sheet { gap: 8px; }
  html.cz-app:not(.hub-off):root:root:root body .hub-sheet > .cz-today { padding: 10px 10px !important; }
  html.cz-app:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-head { margin-bottom: 6px !important; }
  html.cz-app:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip { padding: 7px 10px !important; }
  html.cz-app:not(.hub-off):root:root:root body .hub-sheet .tc-big .tc-chip small { -webkit-line-clamp: 1; }
  html.cz-app:not(.hub-off) .hub-pick { --cw: 112px; --ch: 140px; }
  html.cz-app .pk-art { width: 38px; height: 38px; }
  html.cz-app .pk-art img { width: 24px; height: 24px; }
  html.cz-app .pk-slot { height: 32px; margin-bottom: 4px; }
  html.cz-app .pk-chev + .pk-chev { display: none; }
}
@media (max-height: 660px) {
  html.cz-app:not(.hub-off) .hub-pick { --ch: 130px; }
  html.cz-app .pk-desc { -webkit-line-clamp: 1; }
}

/* ‹ › (desktop; hub-pick.js makes them) */
.pk-arrow { display: none; }

/* =====================================================================
   DESKTOP (2026-10-27): the same hubs, wider. No cz-app and over 760px:
   a full-width scene with a bigger name, the chips as centred tabs, ONE
   wide page at a time (tiles six across with a line under each name), ‹ ›
   beside it (hub.js), the dots under it. hub.js gives the sheet its own
   budget here (400px, the homepage's data-fit-desk) and refits on resize.
   ===================================================================== */
.hub-arrow { display: none; }
@media (min-width: 761px) {
  /* the scene */
  html:not(.cz-app) .hub-f { --k: 1.15; width: calc(var(--s, 52px) * var(--k)); height: calc(var(--s, 52px) * var(--k)); }
  /* the far ones sit nearer the middle: spread them out, clear of the bigger name */
  html:not(.cz-app) .hub-f.far { left: calc(50% + (var(--x) - 50%) * 1.2 + clamp(-44px, (var(--x) - 50%) * 100, 44px)); }
  @media (min-width: 1200px) { html:not(.cz-app) .hub-f { --k: 1.4; } }
  html:not(.cz-app) .hub-go { width: calc(var(--s, 56px) * 1.3); height: calc(var(--s, 56px) * 1.3); }
  html:not(.cz-app) .hub-tw { width: calc(var(--s, 16px) * 1.3); height: calc(var(--s, 16px) * 1.3); }
  html:not(.cz-app) .hub-mid { bottom: 84px; }
  html:not(.cz-app) .hub-badge { width: 104px; height: 104px; margin-bottom: 18px; }
  html:not(.cz-app) .hub-badge img { width: 64px; height: 64px; }
  html:not(.cz-app) .hub-name { font-size: clamp(60px, 6.4vw, 92px); }
  html:not(.cz-app) .hub-tag { max-width: 46ch; margin-top: 14px; font-size: 19px; }
  html:not(.cz-app) .hub-short .hub-mid { bottom: 70px; }
  html:not(.cz-app) .hub-short .hub-badge { width: 76px; height: 76px; margin-bottom: 12px; }
  html:not(.cz-app) .hub-short .hub-badge img { width: 46px; height: 46px; }
  html:not(.cz-app) .hub-short .hub-name { font-size: 58px; }
  /* the homepage: a bigger Mali */
  html:not(.cz-app) .hub-home .hub-mid { bottom: 78px; }
  html:not(.cz-app) .hub-hi small { font-size: 16px; }
  html:not(.cz-app) .hub-hi b { font-size: clamp(38px, 3.6vw, 52px); }
  /* a short window: a smaller Mali and greeting */
  html:not(.cz-app) .hub-home.hub-short .hub-mid { bottom: 60px; }
  html:not(.cz-app) .hub-short .hub-hi b { font-size: 34px; }
  html:not(.cz-app) .hub-home.hub-short .hub-tag { margin-top: 8px; font-size: 16px; }

  /* the sheet: centred, 80px gutters for the arrows */
  html:not(.cz-app) body .hub-sheet { width: min(1120px, calc(100vw - 160px)); margin: -10px 0 0 calc(50% - min(560px, 50vw - 80px)) !important; }
  html:not(.cz-app) body main.hm > .hub-sheet { margin-top: -32px !important; }
  html:not(.cz-app) body .hub-sheet .hub-chips { justify-content: center; flex-wrap: wrap; margin: 0 0 18px; padding: 0; overflow: visible; }
  html:not(.cz-app) body .hub-sheet .hub-chip { height: 44px; padding: 0 18px 0 12px; font-size: 15px; }
  html:not(.cz-app) body .hub-sheet .hub-chip img { width: 26px; height: 26px; }
  html:not(.cz-app) body .hub-chip:not([aria-selected="true"]):hover { border-color: var(--accent); }
  html:not(.cz-app) body .hub-sheet .hub-pages { grid-auto-columns: 100%; gap: 40px; margin: 0 !important; padding: 0 !important; scroll-padding-inline: 0; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages > * { padding: 24px 28px 26px !important; border-radius: 30px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-part-head, .bg-sec-h, .hub-head) { align-items: center; margin-bottom: 22px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-part-t, .bg-sec-h > div, .hub-head > div) p { font-size: 15.5px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-part-all, .hub-all) { font-size: 15px !important; }
  html:not(.cz-app) body .hub-sheet .hub-dots { margin: 18px 0 0; }
  html:not(.cz-app) .hub-dots i { cursor: default; }

  /* the tiles: six across, the name and one line under it */
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-grid, .games, .hub-grid) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-tool .hm-card-art, .gcard .gicon, .gcard.featured .gicon, .hub-tile-art) {
    width: 84px !important; height: 84px !important; border-radius: 24px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-tool .hm-card-art img, .gcard .gicon .ic, .hub-tile-art img) { width: 52px !important; height: 52px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-tool, .gcard, .hub-tile) { gap: 10px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-tool h3, .gcard h2, .hub-tile b) { font-size: 15px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .hm-tool {
    aspect-ratio: auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; min-width: 0; margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; text-align: center; color: var(--text); text-decoration: none; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .hm-tool .hm-card-art { display: grid; place-items: center; flex: none; margin: 0 !important;
    border: 1px solid var(--line, rgba(127, 127, 127, .2)) !important; background: var(--surface-soft, var(--bg)) !important; box-shadow: none !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .hm-tool .hm-card-meta { display: grid !important; gap: 4px; width: 100%; min-width: 0; padding: 0 !important; text-align: center !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .hm-tool h3 { margin: 0 !important; font-weight: 700 !important; line-height: 1.35 !important; color: var(--text) !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages :is(.hm-tool .hm-card-meta p, .gcard .sub) {
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 !important;
    font-size: 12.5px !important; font-weight: 500 !important; line-height: 1.45 !important; color: var(--muted) !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .hm-tool .hm-card-meta > :not(h3, p) { display: none !important; }
  html:not(.cz-app) .hub-pages :is(.hm-tool, .gcard, .hub-tile):hover :is(.hm-card-art, .gicon, .hub-tile-art) { transform: translateY(-3px); border-color: var(--accent) !important; transition: transform 160ms, border-color 160ms; }
  /* MaliGames: the room code at full size */
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .bg-join label { position: static; width: auto; height: auto; clip: auto; }
  html:not(.cz-app):root:root:root body .hub-sheet .hub-pages .bg-join input { flex: 0 0 11em; }

  /* ‹ › beside the page */
  html:not(.cz-app) .hub-arrow { position: absolute; top: calc(50% + 10px); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0; padding: 0 0 3px;
    border-radius: 50%; border: 1px solid var(--line, rgba(127, 127, 127, .25)); background: var(--surface); color: var(--text); box-shadow: none;
    font: 700 28px/1 system-ui, sans-serif; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
  html:not(.cz-app) .hub-arrow.prev { left: -66px; }
  html:not(.cz-app) .hub-arrow.next { right: -66px; }
  html:not(.cz-app) .hub-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
  html:not(.cz-app) .hub-arrow:disabled { opacity: .3; cursor: default; }

  /* the homepage: Today's three tiles in a row */
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: auto; gap: 14px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip { padding: 16px !important; gap: 6px !important; border-radius: 20px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip.lucky { grid-column: auto !important; display: grid !important; align-content: start; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip.lucky small { flex-basis: auto; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-top { font-size: 13px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-top img { width: 22px; height: 22px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip b { font-size: 17px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip .tc-num { font-size: 20px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip small { font-size: 13px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-chip em { display: block; margin-top: auto; font-size: 11.5px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-sw .lk-sw { width: 20px; height: 20px; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-head small { font-size: 15px; }
  html:not(.cz-app):root:root:root body .hub-sheet > .cz-today { padding: 24px 28px 26px !important; border-radius: 30px !important; }
  html:not(.cz-app):root:root:root body .hub-sheet .tc-big .tc-head h2 { font-size: 22px; }

  /* the picker: bigger cards, further apart, ‹ › beside the ring */
  html:not(.cz-app) .hub-pick { --cw: 220px; --ch: 290px; --gap: calc(var(--cw) * .9); margin: 6px 0 0; padding: 0; }
  html:not(.cz-app) .pk-h { margin-bottom: 10px; font-size: 26px; }
  html:not(.cz-app) .pk-card { gap: 8px; padding: 14px 18px 18px; border-radius: 30px; }
  html:not(.cz-app) .pk-top { font-size: 12px; }
  html:not(.cz-app) .pk-art { width: 96px; height: 96px; margin: 8px 0 4px; }
  html:not(.cz-app) .pk-art img { width: 60px; height: 60px; }
  html:not(.cz-app):root body .pk-name { font-size: 27px; }
  html:not(.cz-app) .pk-desc { font-size: 13.5px; -webkit-line-clamp: 3; }
  html:not(.cz-app) .pk-subs { gap: 5px; padding: 5px 10px; }
  html:not(.cz-app) .pk-subs img { width: 26px; height: 26px; }
  html:not(.cz-app) .pk-slot { height: 60px; margin-bottom: 16px; }
  html:not(.cz-app):root body .pk-well { height: 32px; line-height: 30px; font-size: 13.5px; }
  html:not(.cz-app) .pk-arrow { position: absolute; top: calc(var(--ch) / 2 + 118px); z-index: 4; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0; padding: 0 0 3px;
    border-radius: 50%; border: 1px solid var(--line, rgba(127, 127, 127, .25)); background: var(--surface); color: var(--text); box-shadow: none;
    font: 700 28px/1 system-ui, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
  html:not(.cz-app) .pk-arrow.prev { left: calc(50% - var(--gap) - var(--cw) * .5 - 76px); }
  html:not(.cz-app) .pk-arrow.next { right: calc(50% - var(--gap) - var(--cw) * .5 - 76px); }
  html:not(.cz-app) .pk-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* scrolled away (hub.js .hub-idle, 2026-10-28): the scene's endless motion
   pauses, so scrolling the sheet doesn't pay for it; the scene paints in its
   own box */
html:not(.hub-off) .hub-scene { contain: paint; }
.hub-idle :is(.hub-f, .hub-f img, .hub-go, .hub-tw, .hd-word span, .hd-mali img, .hd-badge svg) { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .hub-f, .hub-f img, .hub-tw, .hub-mid, .hub-word span, .hub-word i, .pk-chev { animation: none !important; }
  .pk-card { transition-duration: 0s !important; }
  .hub-go { display: none; }
}
