/* Mirai Mirror — stylesheet for both app.dc.html (.mm-*) and index.dc.html (.mm-lp-*).
   Only fully-static styling lives here as classes; values driven by {{ }} bindings stay inline in the
   templates. Colors are hardcoded literals (kept in sync with the hex values emitted from renderVals). */

/* ============================================================ */
/* GLOBAL — app (app.dc.html)                                   */
/* ============================================================ */
.mm-app-body { margin: 0; overflow: hidden; }
input[type=range] { accent-color: #FF5C9E; height: 22px; }
@keyframes vtspin { to { transform: rotate(360deg); } }

/* ============================================================ */
/* GLOBAL — LP (index.dc.html)                                  */
/* ============================================================ */
.mm-lp-body { margin: 0; font-family: 'M PLUS Rounded 1c', system-ui, sans-serif; color: #4A3B44; background: #FFF6FB; }
.mm-lp-body * { box-sizing: border-box; }
/* Every <a> in the LP carries an explicit color class (.mm-lp-nav-link / -nav-cta / -btn-* / -cta-btn),
   so no `a { color: inherit }` reset is needed — and such a rule (specificity 0,1,1) would override those
   single-class link colors. */
@keyframes mmfloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes mmspin { to { transform: rotate(360deg); } }
@keyframes mmtwinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes mmblink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ============================================================ */
/* APP COMPONENTS (.mm-*)                                       */
/* Only static styling lives here; values from {{ }} bindings   */
/* (colors, widths, transforms) stay inline in the template.    */
/* ============================================================ */

/* --- shell --- */
.mm-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; font-family: 'M PLUS Rounded 1c', system-ui, sans-serif; background: #FDF6EE; color: #4A3B44; }
.mm-content { display: flex; flex: 1; min-height: 0; } /* flex-direction is dynamic (inline) */

/* --- header --- */
.mm-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 58px; padding: 8px 20px; background: #FFFFFF; border-bottom: 2px solid #F0E4DA; flex: none; box-sizing: border-box; }
.mm-logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #FF5C9E, #8B7CF6); display: flex; align-items: center; justify-content: center; flex: none; }
.mm-title { font-size: 17px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; flex: none; }
.mm-title-name { background: linear-gradient(90deg, #FF5C9E, #8B7CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-title-sub { font-size: 12px; color: #C4A99B; font-weight: 700; }
.mm-badge { font-size: 11px; font-weight: 700; color: #C4A99B; background: #FBF1E9; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.mm-spacer { flex: 1; }
.mm-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.mm-status-pill { display: flex; align-items: center; gap: 6px; background: #F8F0E8; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
/* The カメラ status pill is also the camera start/stop toggle. */
.mm-status-pill--btn { border: none; font-family: inherit; color: #4A3B44; cursor: pointer; }
.mm-status-pill--btn:hover { background: #F3E7DB; }
.mm-status-pill--btn:disabled { cursor: default; opacity: .7; }
.mm-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; } /* background is dynamic (inline) */
.mm-fps { background: #F8F0E8; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #A08574; min-width: 64px; text-align: center; }
.mm-divider { width: 1px; height: 22px; background: #F0E4DA; margin: 0 2px; }
.mm-pill-btn { display: flex; align-items: center; gap: 6px; background: #FFFFFF; border: 2px solid #F0E4DA; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; font-family: inherit; color: #4A3B44; cursor: pointer; white-space: nowrap; }
.mm-pill-btn--icon { gap: 0; padding: 0; width: 34px; height: 34px; justify-content: center; flex: none; }
.mm-pill-btn--violet:hover { border-color: #8B7CF6; color: #8B7CF6; }
.mm-pill-btn--pink:hover { border-color: #FF5C9E; color: #FF5C9E; }
.mm-pill-btn--green:hover { border-color: #35C77F; color: #35C77F; }
.mm-pill-btn--blue:hover { border-color: #4FA8E8; color: #4FA8E8; }
.mm-pill-btn:disabled { cursor: default; }
.mm-lang-select { background: #FFFFFF; border: 2px solid #F0E4DA; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; font-family: inherit; color: #4A3B44; cursor: pointer; }

/* --- stage / overlay --- */
.mm-stage { flex: 1; position: relative; overflow: hidden; min-width: 0; } /* margin/border/background dynamic (inline); the inline `background:` shorthand carries center / cover for images itself — size/position rules here would always lose to it */
.mm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; } /* transform dynamic (inline) */
.mm-loading { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(74,59,68,.12); white-space: nowrap; }
.mm-spinner { width: 13px; height: 13px; border: 2.5px solid #F3D9E4; border-top-color: #FF5C9E; border-radius: 50%; animation: vtspin .8s linear infinite; }
.mm-pip { position: absolute; right: 16px; bottom: 16px; border-radius: 14px; border: 3px solid #FFFFFF; box-shadow: 0 8px 24px rgba(74,59,68,.22); transform: scaleX(-1); background: #2A222A; pointer-events: none; } /* width/opacity dynamic (inline) */
.mm-pip-mesh { position: absolute; right: 16px; bottom: 16px; height: auto; border-radius: 14px; border: 3px solid #FFFFFF; box-shadow: 0 8px 24px rgba(74,59,68,.22); background: radial-gradient(120% 120% at 50% 30%, #241C34, #141020); pointer-events: none; transition: opacity .2s; } /* width dynamic (inline); height follows the canvas bitmap aspect. No scaleX flip: detection runs on the already-mirrored (selfie) frame (engine mirrorInput), so landmarks are in selfie space and align with the .mm-pip preview as-is */
.mm-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(253,246,238,.55); backdrop-filter: blur(3px); }
.mm-overlay-card { background: #FFFFFF; border-radius: 22px; padding: 30px 36px; box-shadow: 0 16px 40px rgba(74,59,68,.16); display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 340px; text-align: center; }
.mm-overlay-icon { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #FF5C9E, #8B7CF6); display: flex; align-items: center; justify-content: center; }
.mm-overlay-title { font-size: 17px; font-weight: 800; }
.mm-overlay-privacy { font-size: 12.5px; line-height: 1.7; color: #9B8577; }
.mm-primary-btn { margin-top: 4px; background: #FF5C9E; color: #fff; border: none; border-radius: 14px; padding: 12px 26px; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 4px 0 #E14584; } /* opacity dynamic (inline) */
.mm-primary-btn:hover { filter: brightness(1.06); }
.mm-primary-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #E14584; }
.mm-overlay-link { margin-top: 2px; background: none; border: none; color: #A08574; font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mm-overlay-link:hover { color: #8B7CF6; }
.mm-back-to-start { position: absolute; top: 12px; left: 12px; box-shadow: 0 4px 14px rgba(74,59,68,.14); }
/* Stream-mode (UI hidden) floating tools: nearly invisible until hovered so they don't
   show up in an OBS capture, but calibrate / camera / show-UI stay one click away. */
.mm-stream-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; opacity: .12; transition: opacity .2s; }
.mm-stream-tools:hover { opacity: 1; }
.mm-stream-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.85); border: none; border-radius: 999px; color: #4A3B44; cursor: pointer; }
.mm-stream-btn:hover { background: #FFFFFF; }
.mm-error { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #FFF0F3; border: 2px solid #FFC2D4; color: #D6336C; border-radius: 14px; padding: 10px 16px; font-size: 12.5px; font-weight: 700; max-width: 70%; box-shadow: 0 8px 24px rgba(74,59,68,.15); }
.mm-error-close { border: none; background: none; color: #D6336C; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 12px; flex: none; }
/* Clock / standby-text stage overlays (offsets & transform are dynamic, inline). White-on-plate
   so they read on any background; pointer-events off so they never block stage interaction. */
.mm-stage-overlay { position: absolute; z-index: 5; pointer-events: none; color: #FFFFFF; font-weight: 800; text-shadow: 0 2px 10px rgba(74,59,68,.35); background: rgba(74,59,68,.30); backdrop-filter: blur(2px); }
.mm-clock { font-size: 26px; letter-spacing: .05em; font-variant-numeric: tabular-nums; border-radius: 999px; padding: 6px 18px; }
.mm-standby { font-size: 28px; line-height: 1.5; text-align: center; max-width: 70%; border-radius: 18px; padding: 12px 24px; overflow-wrap: break-word; }

/* --- panel / cards --- */
.mm-panel { width: 312px; flex: none; overflow-y: auto; padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.mm-card { background: #FFFFFF; border: 2px solid #F0E4DA; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.mm-card--tight { gap: 10px; }
.mm-section-header { display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; width: 100%; }
.mm-section-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: #C4A99B; }
.mm-chevron { transition: transform .2s; } /* rotation dynamic (inline) */

/* --- generic rows / labels / fields --- */
.mm-row { display: flex; align-items: center; justify-content: space-between; }
.mm-col { display: flex; flex-direction: column; }
.mm-label { font-size: 13px; font-weight: 700; }
.mm-sub { font-size: 10.5px; color: #C4A99B; }
.mm-note { font-size: 11px; line-height: 1.6; color: #C4A99B; }
.mm-credit { text-align: center; font-size: 11px; font-weight: 600; color: #C4A99B; padding: 6px 0 2px; }
.mm-credit a { color: #8B7CF6; text-decoration: none; font-weight: 700; }
.mm-credit a:hover { text-decoration: underline; }
.mm-note-sm { font-size: 10.5px; line-height: 1.6; color: #C4A99B; }
.mm-link { color: #8B7CF6; font-weight: 700; }
.mm-hidden { display: none; }
.mm-field { display: flex; flex-direction: column; gap: 4px; }
/* collapsible sub-categories inside a section (e.g. tracking → 顔・視線 / 体の動き / 腕・指) */
.mm-subsec { display: flex; flex-direction: column; gap: 10px; }
.mm-subsec-header { display: flex; align-items: center; justify-content: space-between; background: #FBF6F0; border: none; border-radius: 10px; padding: 8px 12px; font-family: inherit; cursor: pointer; }
.mm-subsec-header:hover { background: #F7EEE5; }
.mm-subsec-label { font-size: 12px; font-weight: 800; color: #8A7365; }
.mm-subsec-body { display: flex; flex-direction: column; gap: 12px; margin-left: 5px; padding-left: 10px; border-left: 2px solid #F0E4DA; }
.mm-field-label { font-size: 12px; font-weight: 700; }
.mm-field-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.mm-field-val { color: #A08574; }
.mm-range { width: 100%; }
.mm-select { width: 100%; padding: 8px 10px; border: 2px solid #F0E4DA; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #4A3B44; background: #FFFFFF; }
.mm-text-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 2px solid #F0E4DA; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #4A3B44; background: #FFFFFF; }
.mm-text-input::placeholder { color: #C4A99B; }

/* --- toggle switch --- */
.mm-toggle { width: 46px; height: 26px; border-radius: 999px; border: none; cursor: pointer; position: relative; transition: background .2s; flex: none; } /* background is dynamic (inline) */
.mm-toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; } /* translateX is dynamic (inline) */

/* --- buttons (secondary) --- */
.mm-btn-group { display: flex; gap: 8px; }
.mm-btn { background: #FFFFFF; border: 2px solid #F0E4DA; border-radius: 12px; padding: 9px 0; font-size: 12.5px; font-weight: 700; font-family: inherit; color: #4A3B44; cursor: pointer; }
.mm-btn--grow { flex: 1; }
.mm-btn--none { flex: none; }
.mm-btn--muted { color: #A08574; }
.mm-btn--center { text-align: center; }
.mm-btn--pad-x { padding: 0 12px; }
.mm-btn--pink:hover { border-color: #FF5C9E; color: #FF5C9E; }
.mm-btn--violet:hover { border-color: #8B7CF6; color: #8B7CF6; }
.mm-btn--danger:hover { border-color: #D6336C; color: #D6336C; }

/* --- model presets --- */
.mm-preset-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-preset-card { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 2px solid transparent; border-radius: 12px; padding: 8px; cursor: pointer; font-family: inherit; text-align: center; } /* background/border-color dynamic (inline) */
.mm-preset-card:hover { border-color: #FF5C9E; }
.mm-preset-thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; background-color: #F8F0E8; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #C4A99B; }
.mm-preset-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.mm-import-btn { background: #FF5C9E; color: #fff; border-radius: 12px; padding: 10px 0; font-size: 13px; font-weight: 800; text-align: center; cursor: pointer; box-shadow: 0 3px 0 #E14584; }
.mm-import-btn:hover { filter: brightness(1.06); }
.mm-clear-link { align-self: center; background: none; border: none; color: #A08574; font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 2px; }
.mm-clear-link:hover { color: #FF5C9E; }
.mm-reset-link { align-self: center; display: flex; align-items: center; gap: 5px; background: none; border: none; color: #A08574; font-size: 11.5px; font-weight: 700; font-family: inherit; cursor: pointer; padding: 2px 0; }
.mm-reset-link:hover { color: #8B7CF6; }
.mm-model-name { font-size: 11.5px; color: #A08574; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- expression chips --- */
.mm-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-expr-chip { border: 2px solid transparent; border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer; } /* background/border-color/color dynamic (inline) */
.mm-expr-chip:hover { border-color: #FF5C9E; }

/* --- background swatches --- */
.mm-swatch-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; flex: none; box-shadow: inset 0 0 0 1px rgba(74,59,68,.08); } /* background/border-color dynamic (inline) */

/* ============================================================ */
/* LP COMPONENTS (.mm-lp-*)                                     */
/* The bespoke hero-avatar illustration and the decorative      */
/* twinkle/sparkle elements stay inline (one-off art).          */
/* ============================================================ */
/* Use `clip`, not `hidden`: overflow-x:hidden forces overflow-y:auto, which turns .mm-lp into a
   scroll container and breaks the sticky nav below. `clip` clips the same way without scrolling. */
.mm-lp { overflow-x: clip; }
.mm-lp-spacer { flex: 1; }
.mm-lp-center { text-align: center; }
.mm-lp-accent { color: #FF5C9E; }

/* wordmark (gradient-clip text) */
.mm-lp-wordmark { font-family: 'Baloo 2', sans-serif; font-weight: 800; background: linear-gradient(90deg, #FF5C9E, #8B7CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-lp-wordmark--nav { font-size: 19px; letter-spacing: .01em; }
/* "Mirror" is wider than "Mirai", so a centered wordmark puts 🪞 left of centre; nudge it
   right by ~0.28em (font-relative, so it holds at any size) to align 🪞 with the logo's axis. */
.mm-lp-wordmark--big { font-size: 46px; transform: translateX(0.28em); }
/* Opt the 🪞 out of the wordmark's gradient-clip so it renders as a full-colour emoji instead
   of a flat gradient silhouette. Used in every gradient wordmark (app title + LP nav/big). */
.mm-brand-emoji { -webkit-text-fill-color: initial; color: initial; }
/* Beta-release tag appended to the header wordmarks (app title + LP nav). Remove at the official
   release together with the β suffixes in <title>/OGP — see the beta-removal issue (#38). */
.mm-beta-tag { font-size: 0.5em; font-weight: 700; vertical-align: 0.55em; letter-spacing: 0; margin-left: 0.15em; }
.mm-lp-wordmark-foot { font-family: 'Baloo 2', sans-serif; font-size: 16px; font-weight: 800; color: #8B7CF6; }

/* nav */
.mm-lp-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 14px 30px; background: rgba(255,246,251,.85); backdrop-filter: blur(10px); border-bottom: 2px solid #FCE1EE; }
.mm-lp-nav-brand { display: flex; align-items: center; gap: 10px; }
.mm-lp-nav-logo { width: 38px; height: 38px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #FF7DB4, #9B7CF6); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(255,125,180,.35); }
.mm-lp-nav-namecol { display: flex; flex-direction: column; line-height: 1; }
.mm-lp-nav-sub { font-size: 10.5px; font-weight: 700; color: #C79BC0; margin-top: 3px; }
.mm-lp-lang { margin-right: 14px; }
.mm-lp-nav-links { display: flex; align-items: center; gap: 22px; }
.mm-lp-nav-link { font-size: 13.5px; font-weight: 700; text-decoration: none; color: #7A6A74; }
.mm-lp-nav-cta { font-size: 13.5px; font-weight: 800; text-decoration: none; color: #fff; background: #FF5C9E; padding: 9px 18px; border-radius: 999px; box-shadow: 0 3px 0 #E14584; }

/* hero */
.mm-lp-hero { position: relative; padding: 70px 30px 90px; background: radial-gradient(120% 90% at 80% 0%, #FFE6F3 0%, #F3ECFF 55%, #FFF6FB 100%); }
.mm-lp-hero-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.mm-lp-hero-text { flex: 1; min-width: 320px; }
.mm-lp-badge { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 2px solid #FCD5E7; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 800; color: #FF5C9E; box-shadow: 0 4px 12px rgba(255,125,180,.15); }
.mm-lp-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #35C77F; }
.mm-lp-h1 { font-size: 52px; line-height: 1.15; font-weight: 900; margin: 20px 0 0; letter-spacing: -.01em; }
.mm-lp-h1-accent { background: linear-gradient(90deg, #FF5C9E, #8B7CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-lp-lead { font-size: 16px; line-height: 1.9; font-weight: 500; color: #6E5E68; margin: 20px 0 0; max-width: 480px; }
.mm-lp-hero-btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.mm-lp-btn-primary { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; text-decoration: none; color: #fff; background: #FF5C9E; padding: 15px 30px; border-radius: 16px; box-shadow: 0 5px 0 #E14584; }
.mm-lp-btn-primary:hover { filter: brightness(1.05); }
.mm-lp-btn-secondary { display: inline-flex; align-items: center; font-size: 16px; font-weight: 800; text-decoration: none; color: #8B7CF6; background: #fff; border: 2px solid #E4D8FF; padding: 15px 26px; border-radius: 16px; }
.mm-lp-btn-secondary:hover { border-color: #8B7CF6; }
.mm-lp-trust { display: flex; gap: 22px; margin-top: 26px; font-size: 12.5px; font-weight: 700; color: #9A8A94; }
.mm-lp-trust-item { display: flex; align-items: center; gap: 6px; }
.mm-lp-herocard { flex: none; position: relative; }
.mm-lp-herocard-glow { position: absolute; inset: -16px; background: linear-gradient(135deg, #FFD1E7, #D9C8FF); border-radius: 40px; transform: rotate(-4deg); opacity: .7; }
.mm-lp-herocard-frame { position: relative; width: 300px; height: 360px; background: linear-gradient(160deg, #FFFFFF, #FFF0F7); border-radius: 34px; border: 3px solid #fff; box-shadow: 0 24px 50px rgba(155,124,246,.28); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.mm-lp-herocard-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* product-name block */
.mm-lp-brandblock { max-width: 1120px; margin: 0 auto; padding: 50px 30px 10px; text-align: center; }
.mm-lp-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: #C79BC0; }
.mm-lp-brandrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.mm-lp-brandlogo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #FF7DB4, #9B7CF6); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(255,125,180,.3); }
.mm-lp-brandlead { font-size: 15px; line-height: 1.9; font-weight: 600; color: #7A6A74; max-width: 560px; margin: 18px auto 0; }
.mm-lp-taglines { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.mm-lp-tagline { background: #fff; border: 2px solid #FCE1EE; border-radius: 14px; padding: 12px 18px; font-size: 13.5px; font-weight: 700; color: #6E5E68; box-shadow: 0 4px 12px rgba(255,125,180,.1); }

/* sections + shared card bits */
.mm-lp-h2 { font-size: 34px; font-weight: 900; margin: 10px 0 0; }
.mm-lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.mm-lp-card-title { font-size: 18px; font-weight: 800; margin-top: 16px; }
.mm-lp-card-body { font-size: 13.5px; line-height: 1.8; font-weight: 500; color: #7A6A74; margin-top: 8px; }

/* features */
.mm-lp-sec-features { max-width: 1120px; margin: 0 auto; padding: 60px 30px 20px; scroll-margin-top: 80px; }
.mm-lp-feature { background: #fff; border: 2px solid transparent; border-radius: 22px; padding: 26px 22px; box-shadow: 0 8px 24px rgba(155,124,246,.08); } /* border-color dynamic (inline) */
.mm-lp-feature-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; } /* background dynamic (inline) */
/* Features section only (card-title is shared with steps): center the icon + title. */
.mm-lp-feature .mm-lp-feature-icon { margin-left: auto; margin-right: auto; }
.mm-lp-feature .mm-lp-card-title { text-align: center; }

/* models */
.mm-lp-sec-models { background: linear-gradient(180deg, #FFF6FB, #F5EEFF); margin-top: 60px; padding: 60px 30px; scroll-margin-top: 80px; }
.mm-lp-models-inner { max-width: 1120px; margin: 0 auto; }
.mm-lp-modellead { font-size: 15px; font-weight: 600; color: #7A6A74; margin: 14px auto 0; max-width: 520px; line-height: 1.8; }
.mm-lp-models-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.mm-lp-model { width: 200px; background: #fff; border-radius: 24px; border: 3px solid #fff; box-shadow: 0 12px 30px rgba(155,124,246,.16); overflow: hidden; }
.mm-lp-model-thumb { height: 186px; display: flex; align-items: flex-end; justify-content: center; } /* full background group stays inline (shorthand + dynamic gradient) */
.mm-lp-model-initial { font-family: 'Baloo 2', sans-serif; font-size: 72px; font-weight: 800; color: rgba(255,255,255,.92); }
.mm-lp-model-avatar { display: block; }
.mm-lp-model-body { padding: 14px 16px 18px; }
.mm-lp-model-name { font-size: 15px; font-weight: 800; }
.mm-lp-model-by { font-size: 11.5px; font-weight: 700; color: #A08574; margin-top: 3px; }
.mm-lp-modelnote { text-align: center; font-size: 12px; font-weight: 600; color: #A896A4; margin-top: 22px; }

/* steps */
.mm-lp-sec-steps { max-width: 1120px; margin: 0 auto; padding: 64px 30px 20px; scroll-margin-top: 80px; }
.mm-lp-privacy-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mm-lp-privacy-item { background: #FFFFFF; border: 2px solid #FCE1EE; border-radius: 14px; padding: 14px 18px; }
/* collapsible info sections (FAQ / privacy / terms / credits): title-only header + chevron */
.mm-lp-sec-info { max-width: 820px; margin: 14px auto 0; padding: 0 30px; scroll-margin-top: 80px; }
.mm-lp-info-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: none; border-top: 2px solid #F3E3F1; padding: 22px 4px; font-family: inherit; cursor: pointer; text-align: left; }
.mm-lp-info-header:hover .mm-lp-h2--info { color: #8B7CF6; }
.mm-lp-h2--info { font-size: 22px; margin: 0; }
.mm-lp-info-chevron { flex: none; transition: transform .2s; }
.mm-lp-step { position: relative; background: #fff; border: 2px solid #FCE1EE; border-radius: 22px; padding: 28px 24px 26px; box-shadow: 0 8px 24px rgba(255,125,180,.08); }
.mm-lp-step-num { position: absolute; top: -16px; left: 24px; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #FF7DB4, #9B7CF6); color: #fff; font-family: 'Baloo 2', sans-serif; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(255,125,180,.3); }

/* CTA */
.mm-lp-cta-wrap { max-width: 1000px; margin: 60px auto 0; padding: 0 30px; }
.mm-lp-cta { position: relative; background: linear-gradient(135deg, #FF6FA8, #9B7CF6); border-radius: 34px; padding: 56px 40px; text-align: center; overflow: hidden; box-shadow: 0 24px 50px rgba(155,124,246,.35); }
.mm-lp-cta-title { font-size: 36px; font-weight: 900; color: #fff; margin: 0; line-height: 1.3; }
.mm-lp-cta-lead { font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,.9); margin: 16px auto 0; max-width: 440px; line-height: 1.8; }
.mm-lp-cta-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 17px; font-weight: 800; text-decoration: none; color: #FF5C9E; background: #fff; padding: 16px 36px; border-radius: 16px; box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.mm-lp-cta-btn:hover { transform: translateY(-1px); }

/* footer */
.mm-lp-footer { max-width: 1120px; margin: 0 auto; padding: 40px 30px 60px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mm-lp-foot-brand { display: flex; align-items: center; gap: 9px; }
.mm-lp-foot-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #FF7DB4, #9B7CF6); display: flex; align-items: center; justify-content: center; }
.mm-lp-copyright { font-size: 12px; font-weight: 600; color: #A896A4; }
.mm-lp-copyright a { color: #8B7CF6; text-decoration: none; font-weight: 700; }
.mm-lp-copyright a:hover { text-decoration: underline; }

/* ============================================================ */
/* MOBILE — app (app.dc.html) portrait / small screens          */
/* ============================================================ */
@media (max-width: 720px) {
  /* stack: stage on top, controls scroll below */
  .mm-content { flex-direction: column !important; }
  .mm-app:not(.mm-app--stream) .mm-stage { flex: none; height: 46dvh; min-height: 260px; }
  .mm-panel { width: auto; flex: 1 1 auto; min-height: 0; padding: 12px 12px 24px; gap: 10px; -webkit-overflow-scrolling: touch; }

  /* header: compact, wraps to two rows if needed */
  .mm-header { padding: 7px 12px; gap: 6px 8px; min-height: 50px; flex-wrap: nowrap; align-items: flex-start; }
  .mm-logo { width: 28px; height: 28px; border-radius: 9px; }
  .mm-title { display: none; }   /* hide product name + ミラミラ subtitle on small screens */
  .mm-badge { display: none; }
  .mm-spacer { display: none; }
  /* two-row header: row 1 = logo (left) + status pills (right); the divider becomes a full-width
     break so the fullscreen / hide-UI / language controls drop to row 2. Both rows right-align. */
  .mm-header-actions { flex: 1 1 0; min-width: 0; justify-content: flex-end; gap: 6px 8px; }
  .mm-divider { flex-basis: 100%; width: 100%; height: 0; background: transparent; margin: 0; }
  .mm-fs-btn { display: none; }   /* fullscreen API is a no-op on most phones — hide the dead button */
  .mm-status-pill { padding: 4px 9px; font-size: 11px; }
  .mm-fps { min-width: 54px; padding: 4px 9px; font-size: 11px; }

  /* larger touch targets for the sheet controls */
  .mm-primary-btn { padding: 14px 30px; font-size: 16px; }
  .mm-card { padding: 14px; }

  /* model picker: fit all 4 face cards in one row on phones (the selected model's name + source
     show below the grid, so the cards are thumbnail-only). */
  .mm-preset-list { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mm-preset-card { padding: 6px; }

  /* camera preview (PiP): shrink so it doesn't cover the avatar. Fullscreen (stream) mode keeps
     108px; with the menu shown the stage is only ~46dvh, so shrink the PiP to match that frame. */
  .mm-pip { width: 108px !important; right: 10px; bottom: 10px; border-width: 2px; border-radius: 12px; }
  .mm-pip-mesh { width: 108px !important; right: 10px; bottom: 10px; border-width: 2px; border-radius: 12px; }
  .mm-app:not(.mm-app--stream) .mm-pip,
  .mm-app:not(.mm-app--stream) .mm-pip-mesh { width: 76px !important; right: 8px; bottom: 8px; }
}

@media (max-width: 720px) and (pointer: coarse) {
  .mm-pill-btn--icon { width: 38px; height: 38px; }
  input[type=range] { height: 30px; }
}

/* ============================================================ */
/* MOBILE — LP (index.dc.html)                                  */
/* ============================================================ */
@media (max-width: 760px) {
  /* nav: keep brand + CTA, drop the in-page link row */
  .mm-lp-nav { padding: 11px 16px; gap: 8px; }
  .mm-lp-nav-links { display: none; }
  .mm-lp-nav-cta { padding: 8px 15px; }
  .mm-lp-nav-brand { min-width: 0; flex: 1; }
  .mm-lp-nav-sub { font-size: 9.5px; white-space: nowrap; }

  /* hero — stack, and slot the avatar video right after the h1 */
  .mm-lp-hero { padding: 36px 20px 54px; }
  .mm-lp-hero-inner { flex-direction: column; align-items: stretch; gap: 24px; flex-wrap: nowrap; }
  .mm-lp-hero-text { display: contents; }
  .mm-lp-badge { order: 0; align-self: flex-start; }
  .mm-lp-h1 { order: 1; font-size: 34px; }
  .mm-lp-herocard { order: 2; align-self: center; flex: none; margin: 4px 0; }
  .mm-lp-lead { order: 3; font-size: 15px; line-height: 1.8; max-width: none; margin-top: 0; }
  .mm-lp-hero-btns { order: 4; gap: 10px; margin-top: 4px; }
  .mm-lp-trust { order: 5; }
  .mm-lp-btn-primary, .mm-lp-btn-secondary { flex: 1 1 auto; justify-content: center; padding: 14px 20px; font-size: 15px; }
  .mm-lp-herocard-frame { width: 260px; height: 316px; }

  /* sections */
  .mm-lp-sec-features, .mm-lp-sec-models, .mm-lp-sec-steps, .mm-lp-sec-info { padding-left: 20px; padding-right: 20px; }
  .mm-lp-grid3 { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .mm-lp-models-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .mm-lp-model { width: auto; }
  .mm-lp-model-thumb { height: 150px; }
  .mm-lp-h2 { font-size: 27px; }
  .mm-lp-wordmark--big { font-size: 34px; }

  /* CTA */
  .mm-lp-cta-wrap { padding: 0 20px; margin-top: 48px; }
  .mm-lp-cta { padding: 40px 22px; border-radius: 26px; }
  .mm-lp-cta-title { font-size: 26px; }
  .mm-lp-cta-btn { padding: 15px 30px; font-size: 16px; }

  /* footer */
  .mm-lp-footer { padding: 32px 20px 48px; }
}
