/* Nova Scan 3D : parcours sur le miroir (src/pages/mirror.mjs, site/assets/js/scan-mirror.js).
   Feuille chargée seulement sur nova-scan-3d.html, après site.css dont elle reprend les jetons. */
/* L'écran du miroir est reconstitué d'après l'interface réelle (noir, rose #f9709b, texte blanc) : ce sont les
   couleurs du produit, pas celles du site. Autour, la section reste dans le monde Nova France (crème, encre, bronze).
   Toutes les tailles de l'écran sont en em : 1em = 1/38 de la largeur du cadre (unité de conteneur). */
.mirror-demo { padding-block: var(--section); background: var(--sail-2); }
.mirror-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.mirror-copy .h2 { max-width: 16ch; }
.mirror-copy .section-lede { margin: 18px 0 clamp(24px, 3vw, 36px); max-width: 52ch; }
.mirror-chapters { border-top: 1.25px solid var(--ink); }
.mirror-chapter {
  position: relative; display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 4px 16px; width: 100%;
  padding: 16px 0 18px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-3);
  text-align: left; font: inherit; cursor: pointer; transition: color 200ms ease;
}
.mc-n { font-size: 0.92rem; padding-top: 3px; transition: color 200ms ease; }
.mc-body { display: grid; gap: 4px; }
.mc-body strong { font-variation-settings: 'wdth' 110; font-size: 1.125rem; font-weight: 600; color: var(--ink-2); transition: color 200ms ease; }
.mc-body > span { font-size: 0.92rem; line-height: 1.5; max-width: 52ch; }
.mirror-chapter[aria-current] { color: var(--ink-2); }
.mirror-chapter[aria-current] strong { color: var(--ink); }
.mirror-chapter[aria-current] .mc-n { color: var(--signal-text); }
.mc-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--signal-line); transform-origin: left center; transform: scaleX(0); }
@media (hover: hover) and (pointer: fine) { .mirror-chapter:hover strong { color: var(--signal-text); } }
.mirror-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }
.mirror-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 560; cursor: pointer; }
.mirror-replay .icon { font-size: 1.15em; }
@media (hover: hover) and (pointer: fine) { .mirror-replay:hover { color: var(--signal-text); } }
.mirror-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-3); }

.mirror-device { position: sticky; top: calc(var(--header-h) + 24px); display: grid; justify-items: center; }
.mirror-frame {
  container-type: inline-size; width: min(100%, 400px, calc((100svh - var(--header-h) - 64px) * 0.5625)); aspect-ratio: 9 / 16;
  padding: 3%; border-radius: 18px; border: 1px solid #cfcbc3;
  background: linear-gradient(150deg, #f8f7f4 0%, #e2e0db 55%, #f1efea 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.75);
}
.mirror-screen {
  --pink: #f9709b; --pink-deep: #e8457a; --dim: #6c6c76;
  position: relative; height: 100%; overflow: hidden; border-radius: 10px; background: #000; color: #f3f3f6;
  font-size: calc(100cqw / 38); line-height: 1.3; font-variation-settings: 'wdth' 100; font-weight: 420;
  -webkit-user-select: none; user-select: none;
}
.mirror-screen.is-paused, .mirror-screen.is-paused * { animation-play-state: paused !important; }

/* En-tête de l'interface : heure, connexion, étapes Poids › Composition › Forme */
.mm-status { position: absolute; z-index: 2; top: 1.1em; left: 1.6em; right: 1.6em; display: flex; justify-content: space-between; font-size: 0.85em; color: #c9c9d1; }
.mm-conn { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.1em 0.6em; border: 1px solid #55555e; border-radius: 1em; font-size: 0.85em; }
.mm-conn i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #7ed9a0; }
.mm-stepper { position: absolute; z-index: 2; top: 3.3em; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 1.1em; font-size: 0.95em; color: var(--dim); transition: opacity 360ms var(--ease-out); }
.mm-step { display: inline-flex; align-items: center; gap: 0.45em; transition: color 300ms ease; }
.mm-step i { width: 0.75em; height: 0.75em; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 300ms ease; }
.mm-chev { letter-spacing: -0.25em; color: #3e3e46; }
[data-phase='none'] .mm-stepper, [data-phase='resultats'] .mm-stepper { opacity: 0; }
[data-phase='poids'] [data-step='poids'],
[data-phase='composition'] [data-step='composition'],
[data-phase='forme'] [data-step='forme'] { color: var(--pink); }
[data-phase='poids'] [data-step='poids'] i,
[data-phase='composition'] [data-step='composition'] i,
[data-phase='forme'] [data-step='forme'] i { background: var(--pink); }
[data-phase='composition'] [data-step='poids'],
[data-phase='forme'] :is([data-step='poids'], [data-step='composition']),
[data-phase='fin'] .mm-step { color: #ececf1; }

/* Scènes : fondu enchaîné, chaque entrée rejoue ses mouvements */
.mm-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 6.6em 1.8em 2.4em;
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
}
.mm-scene.is-on { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease-out) 60ms, visibility 0s; }
.mm-scene.is-on.is-leaving { opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms; }
.mm-title {
  flex: none; display: flex; justify-content: center; align-items: baseline; gap: 0.6em; width: 100%; margin: 0; padding-bottom: 0.7em;
  font-size: 1.15em; text-align: center; text-wrap: balance;
  background: linear-gradient(90deg, transparent, rgb(249 112 155 / 0.55), transparent) bottom / 100% 1px no-repeat;
}
.mm-title b { font-weight: 600; color: var(--pink); }
.mm-section { flex: none; align-self: flex-start; margin: 0 0 1em; padding-left: 1em; font-size: 1.05em; font-weight: 600; border-left: 2px solid var(--pink); }
.mm-hint { flex: none; margin: 0.8em 0 0; padding: 0.6em 1em; border-top: 1px solid #26262c; border-bottom: 1px solid #26262c; font-size: 0.9em; color: #cfcfd7; text-align: center; }
.mm-stage { position: relative; flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; container-type: size; padding-top: 1em; }
.mm-fig { position: relative; aspect-ratio: var(--ar); width: min(100cqw, (100cqh - 1em) * var(--ar)); }
.mm-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.mm-scene.is-on .mm-title > span, .mm-scene.is-on .mm-section { animation: mm-rise 600ms var(--ease-out) both; }
.mm-scene.is-on .mm-fig { animation: mm-in 800ms var(--ease-out) 120ms both; }
.mm-scene.is-on .mm-hint { animation: mm-rise 600ms var(--ease-out) 380ms both; }
@keyframes mm-rise { from { opacity: 0; transform: translateY(0.9em); } to { opacity: 1; transform: none; } }
@keyframes mm-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Accueil : l'heure, la silhouette en particules qui se forme, l'invitation */
[data-s='accueil'] { align-items: flex-start; padding-top: 3.2em; }
.mm-clock { margin: 0; font-size: 4.4em; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.mm-date { margin: 0.35em 0 0; font-size: 1.05em; color: #b9b9c2; }
.mm-particles { position: absolute; left: 0; top: 22%; width: 100%; height: 56%; }
.mm-start { position: absolute; left: 50%; bottom: 3.4em; margin: 0; padding: 0.7em 1.6em; transform: translateX(-50%); white-space: nowrap; background: rgb(255 255 255 / 0.08); border-radius: 0.4em; font-size: 1.05em; }
.mm-scene.is-on .mm-start { animation: mm-breathe 2400ms ease-in-out 900ms infinite; }
@keyframes mm-breathe { 50% { background: rgb(249 112 155 / 0.22); } }

/* Plateforme : ondes roses sous les pieds */
.mm-ripple { position: absolute; left: 50%; top: 81%; width: 88%; aspect-ratio: 3 / 1; border: 0.15em solid var(--pink); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
.mm-scene.is-on .mm-ripple { animation: mm-ripple 1800ms var(--ease-out) 400ms infinite; }
.mm-scene.is-on .mm-ripple.is-late { animation-delay: 1300ms; }
@keyframes mm-ripple { 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }

/* Pesée : la jauge se remplit, le poids monte */
.mm-stage.is-center .mm-gauge, .mm-stage.is-center .mm-hex { width: min(78cqw, 70cqh); height: auto; }
.mm-gauge-ticks line { stroke: #4b4b54; stroke-width: 1.2; }
.mm-gauge-track { fill: none; stroke: #232329; stroke-width: 7; }
.mm-gauge-arc { fill: none; stroke: var(--pink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 0.5em rgb(249 112 155 / 0.55)); }
.mm-gauge-core { fill: #111116; stroke: #2a2a31; }
.mm-weight { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -42%); display: grid; justify-items: center; line-height: 1; }
.mm-weight .num { font-size: 4.2em; font-weight: 500; letter-spacing: -0.01em; }
.mm-weight small { font-size: 1.4em; color: #c9c9d1; margin-top: 0.2em; }

/* Électrodes et poignées : halos qui battent aux points de contact */
.mm-glow { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgb(249 112 155 / 0.85) 0%, rgb(232 69 122 / 0.35) 45%, transparent 70%); opacity: 0; }
.mm-glow.is-heel-l { left: 29%; top: 77%; }
.mm-glow.is-heel-r { left: 74%; top: 76%; }
.mm-glow.is-grip-l { left: 10%; top: 44%; width: 26%; }
.mm-glow.is-grip-r { left: 90%; top: 44%; width: 26%; }
.mm-scene.is-on .mm-glow { animation: mm-pulse 1200ms ease-in-out 500ms infinite; }
.mm-scene.is-on .mm-glow.is-heel-r, .mm-scene.is-on .mm-glow.is-grip-r { animation-delay: 800ms; }
@keyframes mm-pulse { 0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(0.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }

/* Immobile : anneaux qui respirent, pourcentage, validation rose */
.mm-fig.is-under { position: absolute; width: min(70cqw, (100cqh - 1em) * var(--ar)); opacity: 0.35; }
.mm-ring { position: absolute; width: min(72cqw, 72cqh); aspect-ratio: 1; border-radius: 50%; border: 0.18em solid transparent; border-left-color: rgb(249 112 155 / 0.8); border-right-color: rgb(249 112 155 / 0.8); }
.mm-ring.is-2 { width: min(84cqw, 84cqh); border-left-color: rgb(255 255 255 / 0.35); border-right-color: rgb(255 255 255 / 0.35); }
.mm-ring.is-3 { width: min(96cqw, 96cqh); border-left-color: rgb(249 112 155 / 0.3); border-right-color: rgb(249 112 155 / 0.3); }
.mm-scene.is-on .mm-ring { animation: mm-breath 1600ms ease-in-out infinite; }
.mm-scene.is-on .mm-ring.is-2 { animation-delay: 200ms; }
.mm-scene.is-on .mm-ring.is-3 { animation-delay: 400ms; }
@keyframes mm-breath { 50% { transform: scale(1.04); opacity: 0.55; } }
.mm-pct { position: absolute; margin: 0; display: flex; align-items: baseline; gap: 0.15em; transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.mm-pct .num { font-size: 4em; font-weight: 600; }
.mm-pct small { font-size: 1.6em; }
.mm-check { position: absolute; display: grid; place-items: center; width: min(40cqw, 40cqh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fb9bb6, var(--pink) 55%, var(--pink-deep)); color: #fff; font-size: 4.4em; opacity: 0; transform: scale(0.9); transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out); }
.is-done .mm-check { opacity: 1; transform: none; }
.is-done .mm-pct { opacity: 0; transform: scale(0.95); }

/* Geste : la main levée, l'anneau qui se referme, la carte qui se remplit */
[data-s='main'] .mm-fig { width: min(80cqw, (100cqh - 1em) * var(--ar)); margin-left: 10cqw; }
.mm-hand-ring { position: absolute; left: 15%; top: 28%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 0.2em solid rgb(249 112 155 / 0.85); clip-path: inset(0 0 0 0); opacity: 0; }
.mm-hand-ring.is-2 { width: 46%; border-color: rgb(249 112 155 / 0.35); }
.mm-scene.is-on .mm-hand-ring { animation: mm-hand 1600ms var(--ease-out) 500ms both; }
.mm-scene.is-on .mm-hand-ring.is-2 { animation-delay: 700ms; }
@keyframes mm-hand { from { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-40deg); } to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); } }
.mm-card { position: relative; flex: none; width: 100%; margin-top: 0.6em; padding: 1.1em 1em; overflow: hidden; border: 1px solid #2f3b4a; border-radius: 0.8em; background: #0d1117; text-align: center; display: grid; gap: 0.2em; }
.mm-card strong, .mm-card small { position: relative; }
.mm-card strong { font-weight: 560; }
.mm-card small { font-size: 0.8em; color: #b8c2cf; }
.mm-card-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #19d3e6, #1a86ef); transform-origin: left center; transform: scaleX(0); }
.mm-scene.is-on .mm-card-fill { animation: mm-fill 1300ms var(--ease-in-out) 900ms both; }
@keyframes mm-fill { to { transform: scaleX(1); } }

/* Forme : la silhouette tourne (face, trois quarts, profil), la ligne de balayage parcourt le corps */
.mm-fig .is-turn { position: absolute; inset: 0; opacity: 0; }
.mm-scene.is-on .is-turn { animation: mm-turn 5000ms linear both; }
.mm-scene.is-on .is-turn.is-a { animation-name: mm-turn-a; }
.mm-scene.is-on .is-turn.is-b { animation-name: mm-turn-b; }
.mm-scene.is-on .is-turn.is-c { animation-name: mm-turn-c; }
@keyframes mm-turn-a { 0%, 26% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes mm-turn-b { 0%, 26% { opacity: 0; } 36%, 60% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes mm-turn-c { 0%, 60% { opacity: 0; } 70%, 100% { opacity: 1; } }
/* Ligne de balayage : un calque de la hauteur de la silhouette porte la ligne en haut ; il glisse de 0 à 74 % de sa propre hauteur. */
.mm-scanline { position: absolute; left: 18%; right: 18%; top: 6%; height: 100%; opacity: 0; pointer-events: none; }
.mm-scanline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.25em; border-radius: 0.2em; background: linear-gradient(90deg, transparent, var(--pink) 20%, #fff 50%, var(--pink) 80%, transparent); box-shadow: 0 0 1.2em 0.3em rgb(249 112 155 / 0.45); }
.mm-scene.is-on .mm-scanline { animation: mm-scan 2400ms var(--ease-in-out) 300ms 2 alternate both; }
@keyframes mm-scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(74%); } }

/* Fin du test : hexagone et validation qui se tracent, éclats */
.mm-hex-line { fill: rgb(255 255 255 / 0.03); stroke: #e9e9ee; stroke-width: 2.2; stroke-dasharray: 100; stroke-dashoffset: 100; }
.mm-hex-check { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.mm-scene.is-on .mm-hex-line { animation: mm-draw 900ms var(--ease-out) 100ms both; }
.mm-scene.is-on .mm-hex-check { animation: mm-draw 500ms var(--ease-out) 800ms both; }
@keyframes mm-draw { to { stroke-dashoffset: 0; } }
.mm-spark { position: absolute; width: 0.55em; aspect-ratio: 1; background: #e9e9ee; opacity: 0; transform: rotate(45deg); left: calc(50% + cos(calc(var(--i) * 36deg)) * 32cqw); top: calc(50% + sin(calc(var(--i) * 36deg)) * 30cqh); }
.mm-scene.is-on .mm-spark { animation: mm-spark 1400ms var(--ease-out) calc(700ms + var(--i) * 40ms) both; }
@keyframes mm-spark { 0% { opacity: 0; transform: rotate(45deg) scale(0.5); } 40% { opacity: 0.9; } 100% { opacity: 0.35; transform: rotate(45deg) translateY(-1.2em) scale(1); } }
.mm-loading { flex: none; display: flex; align-items: center; gap: 0.6em; margin: 0; font-size: 1em; color: #d8d8de; }
.mm-loading i { width: 1em; height: 1em; border-radius: 50%; border: 0.15em solid #3a3a42; border-top-color: var(--pink); }
.mm-scene.is-on .mm-loading i { animation: mm-spin 800ms linear infinite; }
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* Résultats : anneau de composition, barres, analyse segmentaire, posture */
.mm-donut-wrap { position: relative; width: 74%; margin: 0.4em 0 1em; }
.mm-donut { display: block; width: 100%; transform: rotate(-90deg); }
.mm-donut-track { fill: none; stroke: #1c1c22; stroke-width: 14; }
.mm-donut-seg { fill: none; stroke-width: 14; stroke-dasharray: 0 100; stroke-dashoffset: var(--start); }
.mm-scene.is-on .mm-donut-seg { animation: mm-seg 900ms var(--ease-out) calc(200ms + var(--i) * 160ms) both; }
@keyframes mm-seg { from { stroke-dasharray: 0 100; } to { stroke-dasharray: var(--len) 100; } }
.mm-donut-seg.is-eau { stroke: #2f6df6; }
.mm-donut-seg.is-graisse { stroke: #f6c331; }
.mm-donut-seg.is-proteines { stroke: #19c7e6; }
.mm-donut-seg.is-mineraux { stroke: #9d7cf0; }
.mm-donut-core { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; line-height: 1.1; }
.mm-donut-core strong { font-size: 2.6em; font-weight: 600; }
.mm-donut-core small { color: #c9c9d1; }
.mm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3em 1em; margin: 0 0 1em; padding: 0; list-style: none; font-size: 0.78em; color: #c9c9d1; }
.mm-legend li::before { content: ''; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.35em; border-radius: 50%; background: currentColor; vertical-align: -0.05em; }
.mm-legend .is-eau::before { background: #2f6df6; }
.mm-legend .is-graisse::before { background: #f6c331; }
.mm-legend .is-proteines::before { background: #19c7e6; }
.mm-legend .is-mineraux::before { background: #9d7cf0; }
.mm-rows { width: 100%; display: grid; gap: 0.9em; }
.mm-row { position: relative; display: flex; justify-content: space-between; margin: 0; padding-bottom: 0.7em; font-size: 0.95em; }
.mm-row b { font-weight: 600; }
.mm-row i { position: absolute; left: 0; right: 0; bottom: 0; height: 0.35em; border-radius: 0.2em; background: #24242b; overflow: hidden; }
.mm-row i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); transform-origin: left center; transform: scaleX(0); }
.mm-scene.is-on .mm-row i::after { animation: mm-bar 900ms var(--ease-out) 900ms both; }
@keyframes mm-bar { from { transform: scaleX(0); } to { transform: scaleX(var(--w)); } }
.mm-seg { flex: 1 1 0; min-height: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.mm-seg figure { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.5em; min-height: 0; justify-items: center; container-type: size; }
.mm-seg .mm-fig { width: min(100cqw, (100cqh - 5em) * var(--ar)); }
.mm-seg figcaption { display: grid; gap: 0.15em; justify-items: center; font-size: 0.9em; font-weight: 600; }
.mm-seg figcaption span { font-weight: 420; font-size: 0.92em; color: #c9c9d1; }
.mm-scene.is-on .mm-seg figure:nth-child(2) .mm-fig { animation-delay: 360ms; }
.mm-posture { position: relative; flex: 1 1 0; min-height: 0; width: 100%; container-type: size; display: flex; justify-content: center; }
.mm-posture .mm-fig { width: min(40cqw, 100cqh * var(--ar)); }
.mm-tag { position: absolute; left: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.1em 0.6em; width: 37%; margin: 0; padding: 0.5em 0.6em; border: 1px solid #2f5b3f; border-radius: 0.4em; background: rgb(18 30 22 / 0.85); font-size: 0.82em; }
.mm-tag:nth-of-type(1) { top: 6%; }
.mm-tag:nth-of-type(2) { top: 30%; left: auto; right: 0; }
.mm-tag:nth-of-type(3) { top: 58%; }
.mm-tag b { grid-column: 1; font-size: 1.4em; font-weight: 600; }
.mm-tag em { grid-column: 2; grid-row: 2; align-self: end; font-style: normal; color: #6fd99a; }
.mm-scene.is-on .mm-tag { animation: mm-rise 600ms var(--ease-out) calc(500ms + var(--i) * 220ms) both; }

/* Rapport : le QR se compose, cadre rose */
.mm-qr { position: relative; width: min(58cqw, 58cqh); aspect-ratio: 1; padding: 9%; border-radius: 1.2em; background: #fff; }
.mm-qr-cells { display: block; width: 100%; height: 100%; }
.mm-qr-cells rect { fill: #111; opacity: 0; }
.mm-scene.is-on .mm-qr-cells rect { animation: mm-dot 300ms var(--ease-out) var(--d) both; }
@keyframes mm-dot { from { opacity: 0; } to { opacity: 1; } }
.mm-qr-corner { position: absolute; inset: -8%; border-radius: 1.6em; border: 0.25em solid var(--pink); clip-path: polygon(0 0, 30% 0, 30% 8%, 8% 8%, 8% 30%, 0 30%, 0 70%, 8% 70%, 8% 92%, 30% 92%, 30% 100%, 0 100%, 0 0, 100% 0, 100% 30%, 92% 30%, 92% 8%, 70% 8%, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 92%, 92% 92%, 92% 70%, 100% 70%, 100% 100%); }
.mm-scene.is-on .mm-qr-corner { animation: mm-in 700ms var(--ease-out) 200ms both; }
.mm-qr-caption { flex: none; margin: 0.6em 0 0; font-size: 0.85em; color: #c9c9d1; text-align: center; }

@media (max-width: 61.25em) {
  .mirror-grid { grid-template-columns: 1fr; }
  .mirror-device { position: static; order: -1; }
  .mirror-copy { display: contents; }
  .mirror-copy > .h2 { order: -3; }
  .mirror-copy > .section-lede { order: -2; margin-bottom: 0; }
  .mirror-frame { width: min(100%, 360px); }
  .mc-body > span { display: none; }
  .mirror-chapter[aria-current] .mc-body > span { display: block; }
}
