/* layouts.css — the 8 play-layouts. Boomwhacker color via --bw, ink via --bw-text. */

/* ===== shared Key ===== */
.key {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  min-height: var(--tap); min-width: var(--tap);
  overflow: visible;
  transition: transform .08s ease, filter .08s ease;
  touch-action: manipulation;
}
.key-face {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--bw) 78%, #fff) 0%, var(--bw) 46%, color-mix(in srgb, var(--bw) 70%, #000) 100%);
  border: 1.5px solid color-mix(in srgb, var(--bw) 60%, #000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
[data-theme="dark"] .key-face {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35),
    0 0 calc(18px * var(--glow-strength)) color-mix(in srgb, var(--bw) 55%, transparent);
}
.key-label {
  position: relative; z-index: 2;
  font-family: var(--f-head); font-weight: 700;
  color: var(--bw-text);
  font-size: clamp(16px, 2.4vw, 26px);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  pointer-events: none;
  transition: transform .08s ease;
}
.key-label.big { font-size: clamp(22px, 4vw, 48px); }
.key-label sub { font-size: .5em; opacity: .7; font-weight: 600; }
/* ===== strong press feedback — clearly visible "what just happened" ===== */
.key.is-active { transform: scale(.93); z-index: 6; filter: brightness(1.4) saturate(1.18); }
.key.is-active .key-face {
  border-color: #fff;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 9px color-mix(in srgb, var(--bw) 70%, #000),
    0 0 0 4px color-mix(in srgb, var(--bw) 85%, #fff),
    0 10px 36px color-mix(in srgb, var(--bw) 80%, transparent);
}
.key.is-active .key-label { transform: scale(1.18); }
/* bright ripple flash that fires on every press (and on auto/remote highlight .hl) */
.key.is-active .key-face::after,
.key.hl .key-face::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.92), rgba(255,255,255,0) 65%);
  animation: keyFlash .28s ease-out forwards;
}
@keyframes keyFlash { from { opacity: 1; transform: scale(.7); } to { opacity: 0; transform: scale(1.12); } }
/* highlight used by song/autoplay/remote (flashKey adds .hl) */
.key.hl { z-index: 6; }
.key.hl .key-face {
  border-color: #fff;
  box-shadow: inset 0 0 0 6px #fff, 0 0 0 4px color-mix(in srgb, var(--bw) 85%, #fff), 0 10px 36px color-mix(in srgb, var(--bw) 80%, transparent);
}
.sector.is-active .sector-fill::after, .sector.hl .sector-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.85), rgba(255,255,255,0) 65%);
  animation: keyFlash .28s ease-out forwards;
}

/* scan focus — golden pulse, mirrors dm-app.css .dm-scan-focus */
.scan-focus { z-index: 5; }
.scan-focus .key-face,
.sector.scan-focus .sector-fill,
.k-scan.scan-focus .key-face {
  box-shadow: 0 0 0 4px rgba(255,200,0,.95), 0 0 0 9px rgba(255,200,0,.28), 0 0 26px rgba(255,200,0,.5);
  animation: scanPulse .55s ease-in-out infinite alternate;
}
@keyframes scanPulse { to { box-shadow: 0 0 0 4px rgba(255,200,0,.55), 0 0 0 15px rgba(255,200,0,.08), 0 0 34px rgba(255,200,0,.25); } }

/* dwell ring */
.dwell-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); z-index: 6; pointer-events: none; transform: rotate(-90deg); }
.dwell-track { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 7; }
.dwell-prog { fill: none; stroke-width: 7; stroke-linecap: round; }
/* dwell ring inside circle/labels centers on the label */
.sector-label .dwell-ring { inset: auto; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%,-50%) rotate(-90deg); }

.layout-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(8px, 2vmin, 22px); }

/* ===== 1. Volle Klaviatur ===== */
.lo-full { width: 100%; height: 100%; display: flex; align-items: stretch; }
.kbd-whites { display: flex; flex: 1; gap: clamp(2px,.4vw,5px); position: relative; }
.white-slot { flex: 1; position: relative; display: flex; }
.k-white {
  flex: 1; border-radius: 0 0 var(--radius-sm) var(--radius-sm); min-width: 0;
  align-items: flex-end; padding-bottom: clamp(8px,1.4vmin,18px);
}
.k-white .key-face {
  background: linear-gradient(180deg, var(--key-white) 0%, var(--key-white) 82%, var(--bw) 82%, var(--bw) 100%);
  border: 1.5px solid var(--key-white-shade);
  box-shadow: var(--shadow-key);
}
.k-white .key-label { color: #2a2620; font-size: clamp(11px,1.5vmin,18px); }
.k-white .key-label sub { color: var(--text-muted); }
.k-black {
  position: absolute; top: 0; right: calc(-1 * clamp(8px,0.9vw,15px)); width: clamp(16px,1.8vw,30px);
  height: 60%; z-index: 10; border-radius: 0 0 var(--radius-sm) var(--radius-sm); min-width: 0; min-height: 0;
}
.k-black .key-face {
  background: linear-gradient(180deg, #2a2a36 0%, var(--key-black) 70%, color-mix(in srgb, var(--bw) 55%, #000) 100%);
  border: 1px solid #000;
}

/* ===== 2. Einfache Klaviatur ===== */
.lo-simple { display: flex; gap: clamp(4px,.8vw,10px); width: 100%; height: 100%; }
.k-simple {
  flex: 1; border-radius: var(--radius-sm) var(--radius-sm) var(--radius) var(--radius);
  align-items: flex-end; padding-bottom: clamp(14px,3vmin,30px);
}
.k-simple .key-face { box-shadow: var(--shadow-key); }

/* ===== 3. Kreisrund (Augensteuerung) ===== */
.lo-circle { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; container-type: size; }
/* square that fills the SMALLER stage dimension (no clip, never an ellipse) */
.circle-wrap { position: relative; aspect-ratio: 1; width: min(94cqw, 94cqh); }
.sector { position: absolute; inset: 0; background: none; }
.sector-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sector-fill {
  fill: var(--bw); stroke: var(--bg); stroke-width: 1.2;
  transition: filter .1s; filter: brightness(1);
}
[data-theme="dark"] .sector-fill { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--bw) 45%, transparent)); }
.sector.is-active .sector-fill { filter: brightness(1.4); }
.sector:hover .sector-fill { filter: brightness(1.12); }
.sector-label {
  position: absolute; transform: translate(-50%,-50%); z-index: 3;
  font-family: var(--f-head); font-weight: 700; font-size: clamp(16px,2.6vmin,30px);
  color: var(--bw-text); pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.sector-label sub { font-size: .5em; opacity: .75; }
.circle-rest {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 32%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg-2);
  border: 2px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center; z-index: 4;
}
.rest-label {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(10px,1.5vmin,15px); color: var(--text-muted); text-align: center; hyphens: auto;
}

/* ===== 4. Große Felder (1–5) ===== */
.lo-fields { display: grid; gap: clamp(8px,1.6vw,20px); width: 100%; height: 100%; }
.k-field { border-radius: var(--radius-lg); }
.k-field .key-face { box-shadow: var(--shadow-key); }

/* ===== 5. Streifen / Reihe ===== */
.lo-strip { display: flex; gap: clamp(6px,1vw,14px); width: 100%; height: 100%; align-items: stretch; }
.k-strip { flex: 1; border-radius: var(--radius); flex-direction: column; }
.k-strip .key-face { box-shadow: var(--shadow-key); }

/* ===== 6. Raster ===== */
.lo-grid { display: grid; gap: clamp(6px,1.2vw,16px); width: min(82vh,100%); aspect-ratio: 1; margin: auto; }
.k-grid { border-radius: var(--radius); }
.k-grid .key-face { box-shadow: var(--shadow-key); }

/* ===== 7. Bogen / Fächer ===== */
.lo-fan { position: relative; width: 100%; height: 100%; overflow: hidden; }
.fan-wrap { position: absolute; left: 50%; bottom: 12%; width: 0; height: 0; }
.fan-blade-wrap { position: absolute; left: 0; bottom: 0; width: clamp(52px, 7vw, 82px); height: min(56vh, 50vw); margin-left: calc(clamp(52px, 7vw, 82px) / -2); transform-origin: bottom center; }
.k-fan { position: absolute; left: 0; right: 0; top: 0; height: 48%; border-radius: 999px 999px 20px 20px; flex-direction: column; padding-top: 14px; align-items: center; }
.fan-hub {
  position: absolute; left: 0; bottom: 0; width: clamp(64px, 9vw, 104px); aspect-ratio: 1;
  transform: translate(-50%, 50%);
  border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border-strong); z-index: 20;
}

/* ===== 8. Scan ===== */
.lo-scan { width: 100%; height: 100%; display: flex; flex-direction: column; gap: clamp(8px,1.6vmin,18px); padding: clamp(6px,1.4vmin,16px); }
.scan-hint { text-align: center; color: var(--text-muted); font-size: clamp(11px,1.6vw,15px); letter-spacing: .04em; }
.scan-row { flex: 1; display: flex; gap: clamp(6px,1vw,14px); }
.k-scan { flex: 1; border-radius: var(--radius); }
.k-scan .key-face { box-shadow: var(--shadow-key); }
.scan-switch {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--tap); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-family: var(--f-head); font-weight: 700;
  font-size: clamp(16px,2.4vw,24px); text-transform: uppercase; letter-spacing: .06em;
  box-shadow: var(--shadow);
}
.scan-switch:active { transform: scale(.97); }

/* ===== 9. Akkorde (chord pads) ===== */
.lo-chords {
  display: grid; gap: clamp(8px,1.6vw,20px);
  width: 100%; height: 100%;
}
.k-chord {
  border-radius: var(--radius-lg);
  flex-direction: column;
}
.k-chord .key-face { box-shadow: var(--shadow-key); }
.chord-stack {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .25em; pointer-events: none;
  color: var(--bw-text); text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.chord-name {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(28px, 5vw, 60px); line-height: 1;
}
.chord-notes {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(12px, 1.7vw, 20px); opacity: .85; letter-spacing: .03em;
}

/* ===== 10. Schlag-Pads (drum pads) ===== */
.lo-drumpad {
  display: grid; gap: clamp(8px,1.6vw,20px);
  width: 100%; height: 100%;
}
.k-drum {
  border-radius: 999px;
  aspect-ratio: 1; min-height: 0;
  align-self: center; justify-self: center;
  width: 100%; height: 100%;
}
.k-drum .key-face { box-shadow: var(--shadow-key); }
.drum-label {
  position: relative; z-index: 2; pointer-events: none;
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(14px, 2.2vw, 28px);
  color: var(--bw-text); text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

/* ===== 11. Bewegung (Kamera) ===== */
.lo-motion {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2);
}
.motion-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1); /* mirror */
  z-index: 0; background: #000;
}
.motion-zones {
  position: absolute; inset: 0; z-index: 1;
  display: grid; pointer-events: none;
}
.motion-zone {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: clamp(10px, 3vmin, 28px);
  background: color-mix(in srgb, var(--bw) 26%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--bw) 55%, transparent);
  transition: background .12s ease, box-shadow .12s ease;
}
.motion-zone:last-child { border-right: none; }
.motion-zone-label {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(18px, 3vw, 38px);
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.motion-zone-label sub { font-size: .5em; opacity: .8; }
.motion-zone.is-near {
  background: color-mix(in srgb, var(--bw) 48%, transparent);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.motion-zone.is-hit {
  background: color-mix(in srgb, var(--bw) 72%, transparent);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.85), inset 0 0 40px color-mix(in srgb, var(--bw) 70%, transparent);
}
/* engine mode selector (live, top center) */
.motion-modes {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(10,10,26,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.motion-mode {
  min-height: 64px; gap: 2px; padding: 6px 22px; border-radius: 999px; font-family: var(--f-head); font-weight: 800;
  font-size: clamp(15px,1.7vw,19px); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.35);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
}
.motion-mode small { font-size: .62em; font-weight: 700; opacity: .8; }
.motion-mode.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.motion-modepick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.motion-modepick-lbl { font-weight: 700; color: var(--text-muted); }
.motion-modepick .motion-mode { min-height: 64px; color: var(--text); border-color: var(--border-strong); }
.motion-modepick .motion-mode.on { color: var(--on-accent); }
[data-theme="paper"] .motion-mode.on { color: #fff; }

/* tracking pointer dots (hand fingertip / wrists) */
.motion-dot {
  position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(255,255,255,.9); border: 3px solid var(--accent);
  box-shadow: 0 0 18px rgba(255,255,255,.7); pointer-events: none;
}

/* loading / error overlay for tracking modes */
.motion-overlay {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center;
  background: rgba(10,10,26,.62); color: #fff; font-family: var(--f-head); font-weight: 700;
  font-size: clamp(16px,2vw,22px); padding: 24px;
}
.motion-overlay.err { background: rgba(60,10,10,.7); }
.motion-spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: motion-spin 1s linear infinite;
}
@keyframes motion-spin { to { transform: rotate(360deg); } }

.motion-consent {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: clamp(16px, 4vmin, 40px);
  max-width: 540px;
}
.motion-start {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 clamp(22px, 4vw, 40px);
  border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(18px, 2.6vw, 26px); letter-spacing: .03em;
  box-shadow: var(--shadow); cursor: pointer;
}
.motion-start:active { transform: scale(.97); }
.motion-privacy {
  color: var(--text-muted); font-size: clamp(13px, 1.7vw, 17px);
  line-height: 1.5; margin: 0;
}
.motion-msg {
  color: var(--text); font-family: var(--f-head); font-weight: 700;
  font-size: clamp(16px, 2.4vw, 22px);
}
/* webcam how-it-works explainer */
.motion-how {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(14px,3vmin,26px) clamp(18px,4vmin,32px);
  text-align: left; max-width: 540px;
}
.motion-how-title { margin: 0 0 14px; text-align: center; font-family: var(--f-head); font-weight: 800; color: var(--text); font-size: clamp(18px, 2.6vw, 24px); }
.motion-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.motion-steps li { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: clamp(15px, 2vw, 20px); line-height: 1.35; }
.motion-step-num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--f-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 19px; }
[data-theme="paper"] .motion-step-num { color: #fff; }
.motion-live-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.62); color: #fff; padding: 9px 20px; border-radius: 999px;
  font-family: var(--f-head); font-weight: 700; font-size: clamp(14px, 1.8vw, 18px);
  pointer-events: none; max-width: 92%; text-align: center;
}

/* beat glow — applied to .layout-stage when metronome ticks */
.layout-stage.beat-down { animation: beatFlash .18s ease; }
@keyframes beatFlash { from { filter: brightness(1.06); } to { filter: brightness(1); } }

/* ===== F1 „Immer richtig": locked keys keep their Boomwhacker color, just dimmed & dead ===== */
.key.locked, .sector.locked { opacity: .3; filter: saturate(.6); box-shadow: none !important; }
.key.locked .key-face, .sector.locked .sector-fill { box-shadow: none !important; }
.key.locked { pointer-events: none; }
/* target keys stay clearly highlighted (pulse defined in chrome.css .target) */
.key.target, .sector.target { opacity: 1; filter: none; }

/* ===== F2 Melodie-Schritt (stepper) ===== */
.lo-stepper {
  display: grid; gap: clamp(8px,1.6vw,20px);
  width: 100%; height: 100%;
}
.lo-stepper.empty { display: flex; align-items: center; justify-content: center; }
.step-empty { color: var(--text-muted); font-size: clamp(16px,2.4vw,24px); }
.k-step {
  border-radius: var(--radius-lg);
  flex-direction: column;
}
.k-step .key-face { box-shadow: var(--shadow-key); }
.k-step .key-label { font-size: clamp(26px, 5vw, 56px); }

/* ===== Bewegungs-Musik (DMMotionMusic) ===== */
.mm-page { position: fixed; inset: 0; z-index: 1; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.mm-page.live { background: #000; }
.mm-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); z-index: 0; background: #000; }

/* consent / explainer (reuses motion-* look) */
.mm-consent { position: relative; z-index: 2; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: clamp(16px,4vmin,40px); max-width: 600px; }
.mm-consent-title { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-head); font-weight: 800; color: var(--text); font-size: clamp(24px,3.4vw,36px); }
.mm-consent-sub { margin: 0; color: var(--text-muted); font-size: clamp(15px,2vw,20px); line-height: 1.5; max-width: 520px; }
.mm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(14px,3vmin,24px) clamp(18px,4vmin,30px); }
.mm-steps li { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: clamp(15px,2vw,20px); line-height: 1.35; }
.mm-step-num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--f-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 19px; }
[data-theme="paper"] .mm-step-num { color: #fff; }
.mm-start { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 clamp(22px,4vw,40px); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-family: var(--f-head); font-weight: 800; font-size: clamp(18px,2.6vw,26px); box-shadow: var(--shadow); cursor: pointer; }
[data-theme="paper"] .mm-start { color: #fff; }
.mm-start:active { transform: scale(.97); }
.mm-privacy { margin: 0; color: var(--text-muted); font-size: clamp(13px,1.7vw,17px); line-height: 1.5; }
.mm-msg { color: var(--text); font-family: var(--f-head); font-weight: 700; font-size: clamp(16px,2.4vw,22px); }

/* live toolbar (top) */
.mm-toolbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 18px; background: rgba(10,10,26,.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 96vw; }
.mm-tab, .mm-tog { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-height: 64px; min-width: 64px; padding: 6px 16px; border-radius: 14px; font-family: var(--f-head); font-weight: 800; font-size: clamp(13px,1.5vw,16px); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.32); cursor: pointer; line-height: 1.05; white-space: nowrap; }
.mm-tab.on, .mm-tog.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
[data-theme="paper"] .mm-tab.on, [data-theme="paper"] .mm-tog.on { color: #fff; }
.mm-sep { width: 2px; height: 40px; background: rgba(255,255,255,.25); margin: 0 4px; }

.mm-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.6); color: #fff; padding: 8px 18px; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: clamp(13px,1.7vw,17px); pointer-events: none; max-width: 64%; text-align: center; }
.mm-page[data-app="3d"] .mm-hint { bottom: 140px; }

/* the camera-mapped cells */
.mm-grid { position: absolute; inset: 0; z-index: 1; display: grid; pointer-events: none; }
.mm-cell { position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(8px,2.4vmin,22px); background: color-mix(in srgb, var(--mc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--mc) 50%, transparent); transition: background .1s ease, box-shadow .1s ease; }
.mm-cell-lbl { font-family: var(--f-head); font-weight: 800; font-size: clamp(15px,2.4vw,32px); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.mm-cell.is-hit { background: color-mix(in srgb, var(--mc) 70%, transparent); box-shadow: inset 0 0 0 4px rgba(255,255,255,.85), inset 0 0 40px color-mix(in srgb, var(--mc) 65%, transparent); }
.mm-grid.app-drums .mm-cell-lbl { font-size: clamp(20px,4vw,44px); }

/* depth meter (3D) */
.mm-depth { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-radius: 999px; background: rgba(10,10,26,.6); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: clamp(13px,1.6vw,16px); }
.mm-depth-bar { width: clamp(160px,28vw,320px); height: 16px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.mm-depth-fill { display: block; height: 100%; background: linear-gradient(90deg, #6cbfe2, var(--accent)); transition: width .1s linear; }

/* pointer dots + overlays (reuse motion look) */
.mm-dot { position: absolute; z-index: 2; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.9); border: 3px solid var(--accent); box-shadow: 0 0 18px rgba(255,255,255,.7); pointer-events: none; }
.mm-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; background: rgba(10,10,26,.62); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: clamp(16px,2vw,22px); padding: 24px; }
.mm-overlay.err { background: rgba(60,10,10,.7); }
.mm-spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: motion-spin 1s linear infinite; }
.mm-page .mm-back { z-index: 6; }
.mm-page.live .mm-back { background: rgba(10,10,26,.62); border-color: rgba(255,255,255,.4); color: #fff; }
