/* ── Move & Play ─────────────────────────────────────────────────────────
 * Full screen, like the photo booth. Big pictures first, words second: the
 * words are for the six-year-old and the grown-ups; the voice says them too.
 */
.mp-full { position: fixed; inset: 0; z-index: 60; background: #FFF7E8; display: flex; flex-direction: column; }
.mp-top { display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px,3vw,32px) 0; }
.mp-caption { flex: 1; font-size: clamp(1.4rem, 3.2vh, 2.2rem); font-weight: 600; color: var(--text); line-height: 1.2; }
.mp-body { flex: 1; min-height: 0; position: relative; }

/* The menu: two huge doors. */
.mp-in-hub { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vh, 32px); align-content: center; justify-content: center; padding: clamp(16px,3vw,32px); }
.mp-card {
  flex: 1 1 300px; max-width: 560px; min-height: clamp(200px, 26vh, 340px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 32px; background: var(--surface); border: 3px solid var(--border); padding: 24px;
  transition: transform .12s ease;
}
.mp-card:active { transform: scale(.97); }
.mp-card .ic { font-size: clamp(5rem, 12vh, 8rem); line-height: 1; }
.mp-card .lb { font-size: 1.8rem; font-weight: 600; color: var(--text); }
.mp-card .sub { font-size: 1.05rem; color: var(--sub); font-family: Poppins, sans-serif; }
.mp-card-copy { border-color: #F5C89A; }
.mp-card-bee { border-color: #F3D774; }
.mp-card-hands { border-color: #F5C89A; }
.mp-card-freeze { border-color: #9BD8F2; }

/* Copy Me: the buddy over the mirror in portrait, beside it in landscape. */
.mp-copy { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 8px clamp(12px,2vw,24px) 16px; }
.mp-buddy { flex: 0 0 24%; min-height: 0; position: relative; background: #FFFFFF; border-radius: 28px; border: 3px solid #F5C89A; }
.mp-buddy canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-stage { flex: 1; min-height: 0; position: relative; background: #111; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mp-stage canvas { max-width: 100%; max-height: 100%; display: block; }
.mp-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 6rem; animation: mp-pulse 1.4s ease-in-out infinite; }
.mp-dots { display: flex; justify-content: center; align-items: center; gap: 16px; height: 44px; flex: 0 0 44px; }
.mp-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #E3DCD1; transition: background .3s ease, transform .3s ease; }
.mp-dot-past { background: #F5C89A; }
.mp-dot-on { background: #E8843C; transform: scale(1.4); }

/* Hand Patterns: the pattern as big cards. Lit while being shown; ticked
 * green once copied; a question mark when it is to be remembered. */
.mp-cards { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px); padding: 16px; }
.mp-hcard {
  flex: 0 1 180px; aspect-ratio: 3 / 4; border-radius: 24px; background: #FFF7E8; border: 4px solid #F0E3CF;
  display: flex; align-items: center; justify-content: center; font-size: clamp(3.5rem, 9vh, 7rem); line-height: 1;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.mp-hcard.lit { border-color: #E8843C; background: #FFE9D2; transform: scale(1.08); }
.mp-hcard.got { border-color: #2BB673; background: #E2F5EC; }

/* Freeze Dance: one huge picture that says which half of the game it is. */
.mp-mood { display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.mp-mood-ic { font-size: clamp(6rem, 16vh, 11rem); line-height: 1; }
.mp-mood-dance { background: #FFF1D6; }
.mp-mood-dance .mp-mood-ic { animation: mp-dance .5s ease-in-out infinite alternate; }
.mp-mood-freeze { background: #E1F4FD; border-color: #7FD3F7; }
@keyframes mp-dance { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-12px); } }

@media (orientation: landscape) {
  .mp-copy { flex-direction: row; flex-wrap: wrap; }
  .mp-buddy { flex: 0 0 36%; height: calc(100% - 80px); }
  .mp-stage { flex: 1; height: calc(100% - 80px); }
  .mp-dots { flex: 0 0 100%; }
}

/* Follow the Bee: a garden, the whole screen. */
.mp-in-bee { background: linear-gradient(#CFEFFF 0%, #E9F8E0 55%, #BFE6A8 100%); }
.mp-garden { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* The end: one big picture, one line, two buttons. */
.mp-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.mp-end .big { font-size: clamp(7rem, 18vh, 12rem); line-height: 1; animation: mp-pop .5s ease-out; }
.mp-end .line { font-size: clamp(1.6rem, 3.6vh, 2.4rem); font-weight: 600; }
.mp-end .row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

@keyframes mp-pulse { 50% { transform: scale(1.12); } }
@keyframes mp-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── v3: effects and nicer pictures ─────────────────────────────────────── */
.mp-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.mp-full { background: radial-gradient(circle at 15% 10%, #FFE9C7 0, transparent 40%), radial-gradient(circle at 90% 85%, #DDF3FF 0, transparent 45%), #FFF7E8; }

/* The menu: each game its own colour, gently bobbing. */
.mp-in-hub { overflow-y: auto; }
.mp-card { min-height: clamp(170px, 19vh, 280px); border: none; box-shadow: 0 6px 0 rgba(46,42,38,.12), 0 14px 30px rgba(46,42,38,.08); position: relative; overflow: hidden; }
.mp-card .ic { font-size: clamp(4rem, 9vh, 6.5rem); filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); animation: mp-bob 2.4s ease-in-out infinite; }
.mp-card:nth-child(2n) .ic { animation-delay: -1.2s; }
.mp-card .lb { color: #2E2A26; }
.mp-card .sub { color: rgba(46,42,38,.7); }
.mp-card-copy { background: linear-gradient(160deg, #FFE1C2, #FFC79A); }
.mp-card-hands { background: linear-gradient(160deg, #FFE9F3, #F9C3DC); }
.mp-card-freeze { background: linear-gradient(160deg, #E3F6FF, #A9DDF5); }
.mp-card-bubbles { background: linear-gradient(160deg, #E6FBF1, #A8EBC9); }
.mp-card-traffic { background: linear-gradient(160deg, #FFF6D6, #FFD978); }
.mp-card-bee { background: linear-gradient(160deg, #FFF8C9, #F7E07A); }
@keyframes mp-bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* Hand cards flip in when they are shown. */
.mp-cards { background: linear-gradient(160deg, #FFF3E6, #FFE3C8); }
.mp-hcard { box-shadow: 0 5px 0 rgba(46,42,38,.1); animation: mp-flip .35s ease-out; }
.mp-hcard.lit { animation: mp-pop-card .4s ease-out; }
@keyframes mp-flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@keyframes mp-pop-card { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1.08); } }

/* Freeze Dance: disco lights while dancing, frost round the picture when frozen. */
.mp-mood { position: relative; overflow: hidden; }
.mp-mood-ic { position: relative; z-index: 1; }
.mp-disco { position: absolute; inset: -50%; opacity: 0; transition: opacity .4s ease;
  background: conic-gradient(from 0deg, rgba(224,81,138,.35), rgba(243,198,63,.35), rgba(43,182,115,.35), rgba(59,130,196,.35), rgba(124,92,191,.35), rgba(224,81,138,.35)); }
.mp-mood-dance .mp-disco { opacity: 1; animation: mp-spin 4s linear infinite; }
.mp-mood-dance .mp-mood-ic { animation: mp-dance .5s ease-in-out infinite alternate; }
.mp-mood-freeze .mp-mood-ic { animation: mp-shiver .15s linear infinite alternate; }
.mp-stage { transition: box-shadow .3s ease; }
.mp-stage.mp-frost { box-shadow: inset 0 0 0 6px #BDE9FB, inset 0 0 60px 20px rgba(189,233,251,.85); }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-shiver { from { transform: translateX(-2px); } to { transform: translateX(2px); } }

/* Traffic Lights: a real-looking light, the lit lamp glowing. */
.mp-lights { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #F3F0EA, #E3DCD1); transition: background .3s ease; }
.mp-lights-g { background: linear-gradient(160deg, #E6FBEA, #B9EFC6); }
.mp-lights-a { background: linear-gradient(160deg, #FFF6D6, #FFE08A); }
.mp-lights-r { background: linear-gradient(160deg, #FFE6E2, #FFB8AE); }
.mp-tl { display: flex; gap: clamp(12px, 2.5vw, 26px); padding: clamp(12px, 2vh, 20px) clamp(18px, 3vw, 30px); background: #2E2A26; border-radius: 999px; box-shadow: 0 8px 0 rgba(0,0,0,.18); }
.mp-tl i { width: clamp(70px, 9vh, 120px); height: clamp(70px, 9vh, 120px); border-radius: 50%; background: #4A4540; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.mp-tl.on-r .r { background: #F06A5B; box-shadow: 0 0 40px 12px rgba(240,106,91,.7); transform: scale(1.06); }
.mp-tl.on-a .a { background: #F7B731; box-shadow: 0 0 40px 12px rgba(247,183,49,.7); transform: scale(1.06); }
.mp-tl.on-g .g { background: #2BB673; box-shadow: 0 0 40px 12px rgba(43,182,115,.7); transform: scale(1.06); }

/* Pop the Bubbles: the camera is the whole game; a bar shows time left. */
.mp-wide .mp-stage { flex: 1; }
.mp-timebar { flex: 0 0 18px; border-radius: 999px; background: #E3DCD1; overflow: hidden; margin: 6px 10%; }
.mp-timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7FD3F7, #C7B6FF); border-radius: 999px; transition: width .3s linear; }

/* Camera stage: a softer frame. */
.mp-stage { border: 4px solid #fff; box-shadow: 0 8px 24px rgba(46,42,38,.15); }
