/* ===========================================================================
   MOMOCHANZ — "Hello I am a Shapeshifter Vtuber, welcome to my Den"

   The page shapeshifts. Each of her forms has its own palette below, keyed
   on body[data-mm-form] (creators/momochanz.js sets it when a form is
   redeemed). The colours are registered with @property, so when the form
   changes they flow into each other instead of snapping, across the header,
   the buttons, the sky behind everything and the scrollbar.

   Fonts already on the shop: Sniglet for headings, Quicksand for the words,
   Caveat for the little handwritten notes.
   =========================================================================== */

@font-face { font-family: 'Sniglet'; src: url('/assets/fonts/sniglet-800-latin.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }

@property --mm-bg   { syntax: '<color>'; inherits: true; initial-value: #150F22; }
@property --mm-bg2  { syntax: '<color>'; inherits: true; initial-value: #221837; }
@property --mm-acc  { syntax: '<color>'; inherits: true; initial-value: #C9A4F5; }
@property --mm-acc2 { syntax: '<color>'; inherits: true; initial-value: #5FE3C8; }
@property --mm-ink  { syntax: '<color>'; inherits: true; initial-value: #F4EEFF; }

/* ---------------- her forms ----------------
   Lilac is the default here and the page with no script; every form's own
   palette (lilac included) is written by the view from her profile as
   body.cp-theme-momochanz[data-mm-form="<key>"] rules. */
body.cp-theme-momochanz {
  --mm-bg: #150F22; --mm-bg2: #221837; --mm-acc: #C9A4F5; --mm-acc2: #5FE3C8; --mm-ink: #F4EEFF;
  --mm-on-acc: #1A1028;
  transition: --mm-bg .9s ease, --mm-bg2 .9s ease, --mm-acc .9s ease, --mm-acc2 .9s ease, --mm-ink .9s ease;
  background: var(--mm-bg); color: var(--mm-ink);
}

.mm {
  --mm-display: 'Sniglet', 'Fredoka', system-ui, sans-serif;
  --mm-body: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --mm-hand: 'Caveat', 'Permanent Marker', cursive;
  position: relative; z-index: 1; overflow-x: clip;
  font-family: var(--mm-body); font-weight: 600; color: var(--mm-ink);
}
.mm a { color: var(--mm-acc); }
.mm a:hover { color: var(--mm-acc2); }
.mm-wrap { width: min(1130px, calc(100% - 32px)); margin-inline: auto; }
/* Every block of the page sits above the fixed sky: an unpositioned one
   would paint underneath it and vanish (her bubbles' heading did). */
.mm > :not(.mm-sky):not(.mm-defs) { position: relative; }
.mm-sec { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.mm-defs { position: absolute; width: 0; height: 0; }

/* The sky behind everything: two soft glows in the form's colours. */
.mm-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--mm-acc) 22%, transparent), transparent 70%),
    radial-gradient(55% 50% at 5% 85%, color-mix(in srgb, var(--mm-acc2) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--mm-bg), var(--mm-bg2));
}

/* The bokeh (creators/momochanz.js): soft lights in the form's colours,
   softened a touch more by a blur so no edge is ever crisp. */
.mm-bokeh { position: absolute; inset: 0; overflow: hidden; }
.mm-bokeh i {
  --c: var(--mm-acc);
  position: absolute; left: var(--x); top: 100%; width: var(--s); aspect-ratio: 1; border-radius: 50%;
  /* a lens blur: a soft fill, a slightly brighter rim, then nothing */
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--c) calc(var(--a) * 70%), transparent) 0%,
    color-mix(in srgb, var(--c) calc(var(--a) * 60%), transparent) 70%,
    color-mix(in srgb, var(--c) calc(var(--a) * 85%), transparent) 90%,
    transparent 100%);
  filter: blur(3px);
  mix-blend-mode: screen;
  animation: mm-rise var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.mm-bokeh i.is-acc2 { --c: var(--mm-acc2); }
.mm-bokeh i.is-ink  { --c: var(--mm-ink); }
@keyframes mm-rise {
  from { transform: translate(0, 0); }
  50%  { transform: translate(var(--sway), -65vh); }
  to   { transform: translate(0, calc(-100vh - 100%)); }
}

/* ---------------- type ---------------- */
.mm-kick { margin: 0 0 8px; font-family: var(--mm-hand); font-size: clamp(22px, 2.2vw, 28px); color: var(--mm-acc2); }
.mm-h { margin: 0 0 18px; font-family: var(--mm-display); font-weight: 800; font-size: clamp(36px, 5vw, 62px); line-height: 1; color: var(--mm-ink); }
.mm-h em { font-style: normal; color: var(--mm-acc); }
.mm-lede { max-width: 64ch; margin: 0 0 14px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: color-mix(in srgb, var(--mm-ink) 78%, transparent); }
.mm-note { margin-top: 18px; color: color-mix(in srgb, var(--mm-ink) 60%, transparent); }
.mm-more { margin-top: 18px; font-weight: 700; }

/* ---------------- buttons ---------------- */
.mm-do { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mm-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 2px solid var(--mm-acc); background: var(--mm-acc); color: var(--mm-on-acc) !important;
  font-family: var(--mm-body); font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 26px -12px var(--mm-acc); transition: transform .18s ease, background-color .2s ease;
}
.mm-btn svg { width: 18px; height: 18px; fill: currentColor; }
.mm-btn:hover { transform: translateY(-2px); background: var(--mm-acc2); border-color: var(--mm-acc2); }
.mm-btn--ghost { background: transparent; color: var(--mm-ink) !important; box-shadow: none; }
.mm-btn--ghost:hover { background: color-mix(in srgb, var(--mm-acc) 18%, transparent); border-color: var(--mm-acc); }
.mm-btn:focus-visible, .mm-pair:focus-visible { outline: 3px solid var(--mm-acc2); outline-offset: 3px; }

/* ================================================================ the den */
.mm-hero {
  position: relative; min-height: min(100svh, 860px); padding: 120px 0 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
/* The name is sized to its own column (cqi), so it is always one line: it
   was wrapping its Z onto a second line. */
/* The name is sized to its own column (cqi), so it always fits on one line. */
.mm-hero-words { container-type: inline-size; min-width: 0; }
.mm-name { margin: 0; font-family: var(--mm-display); font-weight: 800; font-size: clamp(40px, 5vw, 76px); font-size: min(84px, 13cqi); line-height: .95; color: var(--mm-ink); white-space: nowrap; text-shadow: 0 8px 40px color-mix(in srgb, var(--mm-acc) 45%, transparent); }
.mm-tag { margin: 16px 0 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: color-mix(in srgb, var(--mm-ink) 82%, transparent); }
.mm-tag span { color: var(--mm-acc2); }
.mm-now { margin: 18px 0 0; font-family: var(--mm-hand); font-size: 26px; color: color-mix(in srgb, var(--mm-ink) 70%, transparent); }
.mm-now b { color: var(--mm-acc); font-weight: 600; }
.mm-socials { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mm-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--mm-acc) 45%, transparent); color: var(--mm-ink); background: color-mix(in srgb, var(--mm-bg2) 70%, transparent); }
.mm-socials a:hover { border-color: var(--mm-acc); color: var(--mm-acc); }
.mm-socials svg { width: 20px; height: 20px; fill: currentColor; }

/* The living blob: its corners never stop changing, so even standing still
   she is not quite one shape. */
.mm-morph { position: relative; justify-self: center; width: min(460px, 82vw); aspect-ratio: 4 / 5; }
.mm-blob {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--mm-acc) 80%, transparent), 0 0 0 3px color-mix(in srgb, var(--mm-acc) 60%, transparent);
  animation: mm-wobble 14s ease-in-out infinite alternate;
  background: var(--mm-bg2);
}
@keyframes mm-wobble {
  0%   { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; }
  33%  { border-radius: 44% 56% 40% 60% / 58% 44% 56% 42%; }
  66%  { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
  100% { border-radius: 40% 60% 48% 52% / 54% 40% 60% 46%; }
}
.mm-form { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: 0; transform: scale(1.06); transition: opacity .55s ease, transform .9s ease; }
.mm-form.is-on { opacity: 1; transform: none; }
.mm-morph.is-shifting .mm-blob { filter: url(#mm-melt); }
.mm-morph.is-shifting { animation: mm-squish .9s ease; }
@keyframes mm-squish { 0% { transform: none; } 35% { transform: scale(1.06, .92); } 65% { transform: scale(.95, 1.06); } 100% { transform: none; } }
.mm-ring {
  position: absolute; inset: -18px; border-radius: 50%; pointer-events: none;
  border: 2px dashed color-mix(in srgb, var(--mm-acc2) 45%, transparent); animation: mm-turn 40s linear infinite;
}
@keyframes mm-turn { to { transform: rotate(360deg); } }
.mm-sparks { position: absolute; inset: 0; pointer-events: none; }
.mm-spark { position: absolute; left: 50%; top: 50%; font-size: 18px; color: var(--mm-acc2); text-shadow: 0 0 10px var(--mm-acc); animation: mm-spark .9s ease-out forwards; }
@keyframes mm-spark { from { opacity: 1; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); } }

/* ---------------- tapping her, and her bubbles ---------------- */
/* The blob is a button: tap her and she shifts. */
button.mm-blob { padding: 0; border: 0; cursor: pointer; font: inherit; }
button.mm-blob:focus-visible { outline: 3px solid var(--mm-acc2); outline-offset: 6px; }
.mm-tap {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px;
  background: var(--mm-acc); color: var(--mm-on-acc); font-family: var(--mm-hand); font-size: 20px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 20px -10px var(--mm-acc); animation: mm-bob-tag 3.2s ease-in-out infinite;
}
@keyframes mm-bob-tag { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* The bubbles: each holds a form's face, wears that form's colour on its rim
   and bobs on its own beat, so the row never moves in step. */
.mm-bubbles-sec { padding: 10px 0 30px; }
.mm-bubbles-h { margin: 0 0 14px; text-align: center; font-family: var(--mm-display); font-size: 22px; color: var(--mm-ink); }
.mm-bubbles-h small { font-family: var(--mm-body); font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--mm-ink) 60%, transparent); }
.mm-bubbles { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.mm-bubbles li { animation: mm-bob 3.4s ease-in-out calc(var(--i) * -.53s) infinite; }
.mm-bubbles li:nth-child(3n) { animation-duration: 4.1s; }
.mm-bubbles li:nth-child(3n+1) { animation-duration: 3.7s; }
@keyframes mm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.mm-bubble {
  position: relative; display: block; width: 78px; height: 78px; padding: 0; border-radius: 50%; cursor: pointer; overflow: visible;
  border: 3px solid var(--rim); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%), var(--mm-bg2);
  box-shadow: 0 10px 22px -12px var(--rim), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s ease;
}
/* the face sits in its own circle, which clips it: zoomed in on her face,
   it would otherwise spill over the rim and the gaps between bubbles */
.mm-bubble-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.mm-bubble-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.35); transform-origin: 50% 12%; }
.mm-bubble::after {   /* the shine across a bubble */
  content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .45), transparent 32%);
}
.mm-bubble span {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--mm-ink); opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.mm-bubble:hover, .mm-bubble:focus-visible { transform: scale(1.12); }
.mm-bubble:hover span, .mm-bubble:focus-visible span, .mm-bubble.is-on span { opacity: 1; }
.mm-bubble.is-on { transform: scale(1.14); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rim) 40%, transparent), 0 12px 26px -10px var(--rim); }
.mm-bubble:focus-visible { outline: 3px solid var(--mm-acc2); outline-offset: 4px; }
.mm-bubbles li:has(.is-on) { margin-bottom: 18px; }

/* ================================================================ the forms */
.mm-group { margin: 30px 0 0; border-radius: 28px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--mm-acc) 40%, transparent); }
.mm-group img { display: block; width: 100%; height: auto; }
.mm-group figcaption { padding: 12px 18px; font-family: var(--mm-hand); font-size: 22px; background: color-mix(in srgb, var(--mm-bg2) 90%, transparent); color: var(--mm-acc2); }
.mm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.mm-facts > div { padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--mm-bg2) 80%, transparent); border: 1px solid color-mix(in srgb, var(--mm-ink) 10%, transparent); }
.mm-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--mm-ink) 55%, transparent); }
.mm-facts dd { margin: 6px 0 0; font-family: var(--mm-display); font-size: 22px; color: var(--mm-acc); }

/* ================================================================ the shifties */
.mm-pairs { list-style: none; margin: 18px auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 18px); align-items: end; }
.mm-pair { position: relative; display: block; width: 100%; aspect-ratio: 9 / 10; padding: 0; border: 0; background: none; cursor: pointer; }
.mm-pair img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .45));
  transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .35s ease;
}
.mm-pair-b { opacity: 0; transform: scale(.55, 1.25); }
.mm-pair.is-shifted .mm-pair-a { opacity: 0; transform: scale(1.3, .55); filter: blur(4px); }
.mm-pair.is-shifted .mm-pair-b { opacity: 1; transform: none; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .45)); }
.mm-pair:hover img { filter: drop-shadow(0 16px 22px color-mix(in srgb, var(--mm-acc) 70%, transparent)); }

/* ================================================================ gallery */
.mm-gallery { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mm-gallery li:nth-child(1) { grid-column: span 2; }   /* 2 + 3 + 3: no piece left alone */
.mm-piece { position: relative; display: block; height: 100%; border-radius: 22px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--mm-acc) 30%, transparent); }
.mm-piece img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .5s ease; }
.mm-piece span { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--mm-bg) 80%, transparent); font-family: var(--mm-hand); font-size: 20px; color: var(--mm-ink); }
.mm-piece:hover img { transform: scale(1.04); }
.mm-piece:hover { border-color: var(--mm-acc); }
.mm-piece:focus-visible { outline: 3px solid var(--mm-acc2); outline-offset: 3px; }
/* her own uploads (the shared gallery partial), in her colours */
body.cp-theme-momochanz .cpg { color: var(--mm-ink); }
body.cp-theme-momochanz .cpg-title { font-family: 'Sniglet', system-ui, sans-serif; color: var(--mm-ink); }
body.cp-theme-momochanz .cpg-kick { font-family: 'Caveat', cursive; color: var(--mm-acc2); }
body.cp-theme-momochanz .cpg-grid a { border-radius: 18px; overflow: hidden; }

/* ================================================================ tiktok slider */
.mm-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mm-slide-do { display: flex; gap: 8px; margin-bottom: 20px; }
.mm-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--mm-acc); background: transparent;
  color: var(--mm-ink); font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .2s ease;
}
.mm-arrow:hover { background: var(--mm-acc); color: var(--mm-on-acc); }
.mm-arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--mm-ink); }
.mm-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none;
}
.mm-track::-webkit-scrollbar { display: none; }
.mm-track > * { scroll-snap-align: start; }
.mm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.mm-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--mm-ink) 25%, transparent); transition: width .25s ease, background-color .25s ease; }
.mm-dots i.is-on { width: 26px; border-radius: 999px; background: var(--mm-acc); }

.mm-media-thumb { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; background: var(--mm-bg2); border: 2px solid color-mix(in srgb, var(--mm-acc) 30%, transparent); }
.mm-media--tall .mm-media-thumb { aspect-ratio: 9 / 16; }
.mm-media-thumb a { display: block; height: 100%; }
.mm-media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mm-media-thumb:hover img { transform: scale(1.04); }
.mm-media-none { display: grid; place-items: center; height: 100%; font-size: 26px; color: var(--mm-acc2); background: radial-gradient(circle, color-mix(in srgb, var(--mm-acc) 30%, transparent), var(--mm-bg2)); }
.mm-media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--mm-acc) 90%, transparent); color: var(--mm-on-acc); font-size: 20px; padding-left: 3px; box-sizing: border-box; }
.mm-media-len { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: 12px; color: #fff; }
.mm-media-title { margin: 10px 2px 0; font-family: var(--mm-body); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--mm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ================================================================ shop + join */
.mm-shop-sec { position: relative; }
.mm-peek { position: absolute; right: 0; top: 30px; width: clamp(110px, 14vw, 190px); transform: rotate(8deg); pointer-events: none; }
.mm-peek img { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); }
.mm-shop { margin-top: 10px; }
.mm-join { padding: 20px 0 60px; }
.mm-join-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end;
  padding: clamp(28px, 5vw, 52px); border-radius: 32px; overflow: hidden;
  background: color-mix(in srgb, var(--mm-bg2) 92%, transparent); border: 2px solid color-mix(in srgb, var(--mm-acc) 35%, transparent);
}
.mm-join-card h2 { margin: 0 0 12px; font-family: var(--mm-display); font-size: clamp(30px, 4vw, 48px); line-height: 1; color: var(--mm-ink); }
.mm-join-card h2 em { font-style: normal; color: var(--mm-acc); }
.mm-join-card p { max-width: 62ch; line-height: 1.7; color: color-mix(in srgb, var(--mm-ink) 75%, transparent); }
.mm-join-chibi { width: clamp(140px, 16vw, 220px); height: auto; margin-bottom: -10px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); }
.mm-end { padding: 10px 0 70px; text-align: center; font-family: var(--mm-hand); font-size: 24px; color: color-mix(in srgb, var(--mm-ink) 65%, transparent); }

/* reveal: the shared [data-reveal] contract (creator-media.js adds .is-in) */
.mm [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.mm [data-reveal].is-in { opacity: 1; transform: none; }

/* ================================================================ lightbox */
.mm-lb {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in srgb, var(--mm-bg) 96%, black); color: var(--mm-ink); font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700;
}
.mm-lb::backdrop { background: #000; }
.mm-lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; align-items: center; gap: 14px; padding: 24px 16px; box-sizing: border-box; }
.mm-lb-frame {
  overflow: hidden; max-width: min(100%, 1300px); max-height: calc(100dvh - 160px);
  border-radius: 46% 54% 44% 56% / 10% 12% 10% 12%;
  border: 3px solid var(--mm-acc); box-shadow: 0 30px 90px -30px var(--mm-acc);
  animation: mm-lb-wobble 9s ease-in-out infinite alternate;
}
@keyframes mm-lb-wobble { to { border-radius: 54% 46% 56% 44% / 12% 9% 13% 10%; } }
.mm-lb-img { display: block; max-width: 100%; max-height: calc(100dvh - 166px); width: auto; height: auto; }
.mm-lb-frame.is-shifting { animation: mm-squish .7s ease; }
.mm-lb-title { margin: 0; font-family: 'Caveat', cursive; font-size: 30px; color: var(--mm-acc2); }
.mm-lb-do { display: flex; gap: 10px; align-items: center; }
.mm-lb-close { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--mm-acc); background: var(--mm-acc); color: var(--mm-on-acc); font: inherit; cursor: pointer; }
.mm-lb-close:hover { background: var(--mm-acc2); border-color: var(--mm-acc2); }
body:has(.mm-lb[open]) { overflow: hidden; }

/* ---------------- header: dark glass, in the form's colours ---------------- */
body.cp-theme-momochanz .cpnav { font-family: 'Quicksand', 'Nunito', system-ui, sans-serif; }
body.cp-theme-momochanz .cpnav-in { background: color-mix(in srgb, var(--mm-bg) 70%, transparent); border-color: color-mix(in srgb, var(--mm-acc) 25%, transparent); box-shadow: 0 14px 34px -20px var(--mm-acc); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body.cp-theme-momochanz .cpnav-in { background: var(--mm-bg); } }
.perf-lite body.cp-theme-momochanz .cpnav-in { background: var(--mm-bg); }
body.cp-theme-momochanz .cpnav-who { color: var(--mm-ink); border-left-color: color-mix(in srgb, var(--mm-ink) 15%, transparent); }
body.cp-theme-momochanz .cpnav-av { border-color: var(--mm-acc); box-shadow: 0 4px 12px -6px var(--mm-acc); }
body.cp-theme-momochanz .cpnav-av img { object-position: 50% 18%; transform-origin: 50% 18%; transform: scale(1.5); }
body.cp-theme-momochanz .cpnav-links a { color: color-mix(in srgb, var(--mm-ink) 72%, transparent); font-weight: 700; }
body.cp-theme-momochanz .cpnav-links a:hover { color: var(--mm-ink); background: color-mix(in srgb, var(--mm-acc) 16%, transparent); }
body.cp-theme-momochanz .cpnav-links a[aria-current="true"] { background: var(--mm-acc); color: var(--mm-on-acc); box-shadow: 0 6px 16px -8px var(--mm-acc); }
body.cp-theme-momochanz .cpnav-cart { background: var(--mm-acc); color: var(--mm-on-acc); box-shadow: 0 8px 18px -10px var(--mm-acc); }
body.cp-theme-momochanz .cpnav-cart:hover { background: var(--mm-acc2); }
body.cp-theme-momochanz .cpnav-account { background: color-mix(in srgb, var(--mm-ink) 8%, transparent); color: var(--mm-acc); }
body.cp-theme-momochanz .cpnav-account:hover { background: var(--mm-acc); color: var(--mm-on-acc); }
body.cp-theme-momochanz .cpnav-burger { background: color-mix(in srgb, var(--mm-ink) 8%, transparent); }
body.cp-theme-momochanz .cpnav-burger span { background: var(--mm-acc); }

/* ---------------- narrower ---------------- */
@media (max-width: 960px) {
  .mm-hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; text-align: center; }
  .mm-hero .mm-do, .mm-socials { justify-content: center; }
  .mm-morph { order: -1; width: min(360px, 76vw); }
  .mm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .mm-gallery { grid-template-columns: minmax(0, 1fr); }
  .mm-bubble { width: 64px; height: 64px; }
  .mm-gallery li:nth-child(1) { grid-column: auto; }
  .mm-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-join-card { grid-template-columns: minmax(0, 1fr); }
  .mm-join-chibi { justify-self: end; }
  .mm-peek { display: none; }
}

/* Less motion, or a machine that cannot keep up: the blob holds its shape,
   the ring stands still, and forms change without the melt or the squish. */
@media (prefers-reduced-motion: reduce) {
  .mm-blob, .mm-ring, .mm-lb-frame { animation: none; }
  /* the lights stay where they are, scattered up the screen, and still */
  .mm-bokeh i { animation: none; top: var(--y); }
  .mm-morph.is-shifting, .mm-lb-frame.is-shifting { animation: none; }
  .mm-morph.is-shifting .mm-blob { filter: none; }
  .mm [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mm-pair img, .mm-form { transition: opacity .2s linear; transform: none !important; }
  .mm-btn:hover, .mm-bubble:hover { transform: none; }
  .mm-bubbles li, .mm-tap { animation: none; }
}
.perf-lite .mm-blob, .perf-lite .mm-ring, .perf-lite .mm-bubbles li { animation: none; }
.perf-lite .mm-bokeh { display: none; }
.perf-lite .mm-morph.is-shifting .mm-blob { filter: none; }

/* The page's scrollbars (site.css reads --scroll-acc off <html>); the script
   keeps it in step with the form she is in. */
html:has(> body.cp-theme-momochanz) { --scroll-acc: #C9A4F5; }
