/* Mamo's Playroom - Milestone A. Paper Cut look comes from the art layers; CSS only
   adds paper-like UI (cream cards, offset backing, soft down-right shadows). */
:root { --cream:#FFF0CF; --jade:#73C5A5; --lilac:#BF94B9; --coral:#F69B82; --butter:#F7C858; --sky:#73B8D7; --leaf:#91B96A; --cocoa:#59391F; --shadow: rgba(89,57,31,.28); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #E6CFE0; overscroll-behavior: none; }
body[data-scene="lobby"], body[data-scene="splash"] { background: #F3DDB8; }
body[data-scene="bath"] { background: #BF94B9; }
.mp-root { position: fixed; inset: 0; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; font-family: "Trebuchet MS", ui-rounded, system-ui, sans-serif; color: var(--cocoa); }
.mp-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; }
.mp-scene { position: absolute; inset: 0; }
.mp-img { position: absolute; display: block; pointer-events: none; -webkit-user-drag: none; }
.mp-plate { z-index: 0; }
.mp-layer, .mp-fx-layer { position: absolute; inset: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons: art inside a real <button>; no visible text */
.mp-btn { position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; touch-action: none; border-radius: 28px; outline: none; }
.mp-btn .mp-btn-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
img.mp-img { object-fit: contain; }
.mp-btn:focus-visible { box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--sky); }
.mp-btn.is-pressed { transform: translateY(3px) scale(.97); }
.mp-hit { z-index: 6; }

/* rigs */
.mp-rig { position: absolute; pointer-events: none; }
.mp-rig-inner, .mp-rig-group { position: absolute; inset: 0; }
.mp-rig-part { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.part-coat_wet, .part-coat_fluffy, .part-coat_neat { transition: opacity .25s linear; }
.part-eyes_closed, .part-eyes_happy { opacity: 0; }
.is-breathing { animation: mp-breathe 3s ease-in-out infinite; }
@keyframes mp-breathe { 50% { transform: scale(1.015, 1.02); } }
.mp-reduce-motion .is-breathing { animation: none; }

/* splash */
.mp-play { border-radius: 50%; z-index: 5; }
.is-glow { animation: mp-glow 1.6s ease-in-out infinite; }
@keyframes mp-glow { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px #fff6d8); } }
.mp-reduce-motion .is-glow { animation: none; filter: drop-shadow(0 0 14px #fff6d8); }

/* lobby */
.mp-cushion { z-index: 4; border-radius: 40px; }
.mp-cushion .mp-img { position: absolute; }
.mp-cushion.is-current::before { content: ""; position: absolute; left: -6px; top: 76px; width: 242px; height: 142px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,246,210,.95), rgba(255,240,207,.55) 65%, rgba(255,240,207,0)); box-shadow: 0 0 0 7px var(--butter); }
.mp-suitcase { z-index: 3; transform-origin: 50% 100%; }
.mp-tile { z-index: 4; border-radius: 42px; }
.mp-tile .mp-tile-icon { position: absolute; }
/* Hit box stays still. Idle bob, slight wiggle and a soft glow live on the inner art,
   plus a press-squish, so the memory-wall slots (doors for now, frames later) look tappable.
   Stagger comes from --mp-wiggle-delay set in lobby.js. */
.mp-tile-inner { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 80%;
  animation: mp-memory-idle 2.8s ease-in-out infinite;
  animation-delay: var(--mp-wiggle-delay, 0s);
  filter: drop-shadow(5px 7px 0 rgba(89,57,31,.18)); }
@keyframes mp-memory-idle {
  0%, 100% { transform: translateY(0) rotate(-0.7deg); filter: drop-shadow(5px 7px 0 rgba(89,57,31,.18)) drop-shadow(0 0 2px rgba(247,200,88,.15)); }
  50% { transform: translateY(-6px) rotate(0.9deg); filter: drop-shadow(5px 9px 0 rgba(89,57,31,.18)) drop-shadow(0 0 14px rgba(247,200,88,.9)); }
}
.mp-btn.mp-tile.is-pressed { transform: none; }
.mp-tile.is-pressed .mp-tile-inner { animation: none; transform: translateY(5px) scale(.9); filter: drop-shadow(2px 3px 0 rgba(89,57,31,.18)); }
.mp-reduce-motion .mp-tile-inner { animation: none; }
.mp-memory-peek { position: absolute; overflow: hidden; }
.mp-memory-peek-art { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mp-memory-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
/* keep the old keyframe name so any leftover references don't break */
@keyframes mp-tile-breathe { 50% { transform: translateY(-6px); } }
.mp-reduce-motion .mp-tile { animation: none; }

/* room chrome */
.mp-home, .mp-petswitch-btn { z-index: 30; border-radius: 50%; }
.mp-petswitch { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.mp-petswitch > * { pointer-events: auto; }
.mp-petswitch-btn { background: #fff8e6; box-shadow: 4px 6px 0 var(--shadow); overflow: hidden; }
.mp-petface { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.mp-face-rig { left: 50%; top: 50%; transform: translate(-50%, -38%) scale(1.15); }
.mp-petswitch-btn .mp-face-rig { transform: translate(-50%, -40%) scale(.9); }
.mp-petface-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-petpop { position: absolute; display: none; background: var(--cream); border-radius: 36px; box-shadow: 6px 9px 0 var(--shadow), inset 0 0 0 6px #fff7e2; }
.mp-petswitch.is-open .mp-petpop { display: block; }
.mp-petopt { background: #fffaf0; border-radius: 30px; box-shadow: 3px 5px 0 var(--shadow); overflow: hidden; }
.mp-petopt .mp-petface { border-radius: 30px; }
.mp-gear { z-index: 30; border-radius: 50%; opacity: .85; }
.mp-gear-ring { position: absolute; inset: -6px; width: 124px; height: 124px; transform: rotate(-90deg); pointer-events: none; }
.mp-gear-ring circle { fill: none; stroke: var(--butter); stroke-width: 8; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }

/* bath */
.mp-layer-back { z-index: 1; }
.mp-petbox { z-index: 2; }
.mp-layer-front { z-index: 3; }
.mp-mud { transition: opacity .15s; }
.mp-bubble { position: absolute; }
.mp-fx-top { z-index: 12; }
.mp-rim-foam { transition: opacity .3s; }
.mp-tool-cursor { position: absolute; width: 170px; height: 170px; z-index: 20; pointer-events: none; filter: drop-shadow(6px 10px 4px rgba(89,57,31,.25)); transform: rotate(-12deg); }
.mp-pet-kbd { z-index: 3; opacity: 0; pointer-events: none; }
.mp-pet-kbd:focus-visible { opacity: 1; box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--sky); border-radius: 50%; }
.mp-tray { position: absolute; z-index: 15; background: var(--cream); border-radius: 40px; box-shadow: 5px 8px 0 var(--shadow), inset 0 0 0 6px #fff7e2; transition: opacity .3s, transform .3s; }
.mp-tray.is-hidden { opacity: 0; transform: translateY(40px); pointer-events: none; }
.mp-slot { border-radius: 30px; }
.mp-slot .mp-slot-art { position: absolute; left: 14px; top: 6px; width: 154px; height: 154px; pointer-events: none; transition: opacity .2s, transform .2s; }
.mp-slot.is-ready { background: #fff8de; box-shadow: 0 0 0 7px var(--butter), 0 0 30px 10px rgba(255,236,170,.9); animation: mp-ready 1.4s ease-in-out infinite; }
@keyframes mp-ready { 50% { box-shadow: 0 0 0 9px var(--butter), 0 0 42px 16px rgba(255,236,170,1); } }
.mp-reduce-motion .mp-slot.is-ready { animation: none; }
.mp-slot.is-lifted .mp-slot-art { opacity: .25; }
.mp-slot.is-later .mp-slot-art { opacity: .55; filter: saturate(.6); }
.mp-slot.is-done .mp-slot-art { opacity: .45; transform: scale(.85); }
.mp-slot.is-done::after { content: ""; position: absolute; right: 14px; bottom: 12px; width: 34px; height: 18px; border-left: 8px solid var(--jade); border-bottom: 8px solid var(--jade); transform: rotate(-45deg); border-radius: 3px; }
.mp-endbtns { position: absolute; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity .3s; }
.mp-endbtns.is-shown { opacity: 1; }
.mp-endbtns.is-shown .mp-btn { pointer-events: auto; }
.mp-endbtns .mp-btn { border-radius: 50%; filter: drop-shadow(5px 8px 0 rgba(89,57,31,.22)); }
.mp-endbtns.is-shown .mp-again { animation: mp-glow 1.6s ease-in-out infinite; }
.mp-hint-hand { z-index: 40; filter: drop-shadow(4px 6px 3px rgba(89,57,31,.25)); }
.mp-confetti { position: absolute; inset: 0; z-index: 35; pointer-events: none; overflow: visible; }
.mp-confetto { position: absolute; }
.mp-confetto.is-paper { border-radius: 4px; box-shadow: 2px 3px 0 rgba(89,57,31,.15); }

/* parent panel - the only place with text */
.mp-panel-veil { position: absolute; inset: -200px; z-index: 100; background: rgba(89,57,31,.35); display: flex; align-items: center; justify-content: center; }
.mp-panel { width: 980px; background: var(--cream); border-radius: 40px; padding: 40px 56px; box-shadow: 8px 12px 0 var(--shadow); font-size: 32px; }
.mp-panel h2 { margin: 0 0 18px; font-size: 44px; }
.mp-panel-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 3px dashed #ecd7ae; }
.mp-toggle, .mp-panel-btn { font: inherit; font-size: 28px; min-width: 170px; min-height: 76px; border: 0; border-radius: 22px; background: #fff; color: var(--cocoa); box-shadow: 3px 5px 0 var(--shadow); cursor: pointer; padding: 0 26px; }
.mp-toggle.is-on { background: var(--jade); color: #fff; }
.mp-toggle[disabled] { box-shadow: none; background: #f3e4c4; font-size: 22px; color: #8b6c4c; cursor: default; }
.mp-panel-actions { border: 0; gap: 18px; padding-top: 26px; }
.mp-panel-btn.is-primary { background: var(--butter); }
.mp-panel-btn.is-warn { background: var(--coral); color: #fff; }
.mp-panel-foot { font-size: 18px; opacity: .7; margin: 20px 0 0; }

/* fold transition + rotate guard */
.mp-fold { position: fixed; inset: 0; z-index: 200; display: none; transform-origin: 0 50%; background: #BF94B9 linear-gradient(135deg, #C9A2C4 0 50%, #B78CB0 50% 100%); }
.mp-rotate { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: #F3DDB8; }
.mp-rotate img { width: min(70vw, 420px); }
.mp-root.is-portrait .mp-rotate { display: flex; }

/* ---------- Coloring Book ---------- */
.mp-color-table { z-index: 3; pointer-events: none; }
.mp-tita, .mp-color-mamo { z-index: 2; }
.mp-tita .part-clap { transition: opacity .15s; }
.mp-color-watch { z-index: 4; }
.mp-sheet { z-index: 6; transition: opacity .2s; }
.mp-sheet.is-hidden, .mp-picker.is-hidden, .mp-crayons.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.mp-board { position: absolute; background: #fffdf6; border-radius: 26px; box-shadow: 6px 10px 0 var(--shadow), inset 0 0 0 5px #fff7e2; }
.mp-fill-canvas, .mp-fill-line { position: absolute; pointer-events: none; }
.mp-fill-line { object-fit: fill !important; }
.mp-color-kbd { z-index: 7; }
.mp-color-kbd .mp-pet-kbd { pointer-events: none; }
.mp-picker { z-index: 6; }
.mp-picker .mp-card { pointer-events: auto; background: #fffdf6; border-radius: 30px; box-shadow: 5px 8px 0 var(--shadow), inset 0 0 0 5px #fff7e2; }
.mp-card .mp-card-thumb { position: absolute; inset: 15px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mp-card .mp-thumb-canvas { max-width: 100%; max-height: 100%; }
.mp-card.is-current { box-shadow: 0 0 0 8px var(--butter), 5px 8px 0 var(--shadow), 0 0 30px 8px rgba(255,236,170,.8); }
.mp-crayons { z-index: 8; }
.mp-crayons .mp-crayon { pointer-events: auto; border-radius: 30px; }
.mp-crayon .mp-crayon-art { position: absolute; pointer-events: none; transition: transform .18s ease-out, filter .18s; filter: drop-shadow(3px 5px 0 rgba(89,57,31,.25)); }
.mp-crayon.is-picked .mp-crayon-art { transform: translateY(-52px) rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 10px #fff6d8) drop-shadow(0 0 6px var(--butter)) drop-shadow(3px 8px 0 rgba(89,57,31,.2)); }
.mp-crayon.is-picked::after { content: ""; position: absolute; left: 36px; right: 36px; bottom: 6px; height: 12px; border-radius: 6px; background: var(--butter); }
.mp-reduce-motion .mp-crayon .mp-crayon-art { transition: none; }
.mp-tita-bubble { position: absolute; z-index: 5; border-radius: 50%; background: #fffdf6; box-shadow: 5px 8px 0 var(--shadow), inset 0 0 0 5px #fff7e2; pointer-events: none; }
.mp-tita-bubble::after { content: ""; position: absolute; right: 18px; bottom: -22px; border: 18px solid transparent; border-top: 26px solid #fffdf6; transform: rotate(-28deg); }
.mp-tita-dot { position: absolute; left: 22px; top: 22px; width: 132px; height: 132px; border-radius: 50%; opacity: .9; }
.mp-tita-crayon { position: absolute; left: 62px; top: 4px; height: 168px; width: 56px; object-fit: contain; transform: rotate(18deg); filter: drop-shadow(2px 4px 0 rgba(89,57,31,.25)); }
.mp-tick, .mp-pages-btn, .mp-undo, .mp-reset { z-index: 20; border-radius: 50%; transition: opacity .2s; }
.mp-tick { filter: drop-shadow(5px 8px 0 rgba(89,57,31,.22)); }
.mp-tick.is-hidden, .mp-pages-btn.is-hidden, .mp-undo.is-hidden, .mp-reset.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.mp-pages-btn { background: #fff8e6; box-shadow: 4px 6px 0 var(--shadow); }
.mp-undo, .mp-reset { background: transparent; box-shadow: none; }
.mp-undo .mp-btn-art, .mp-reset .mp-btn-art { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.mp-pages-btn .mp-pages-face { position: absolute; pointer-events: none; }
.mp-undo svg, .mp-reset svg { pointer-events: none; padding: 6px; box-sizing: border-box; }
.mp-reset.is-confirm { animation: mp-wiggle .4s ease-in-out infinite; box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--coral, #F69B82), 4px 6px 0 var(--shadow); }
@keyframes mp-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.mp-reduce-motion .mp-reset.is-confirm { animation: none; outline: 8px solid var(--coral, #F69B82); }
.mp-reset-wipe { position: absolute; background: #fffdf6; border-radius: 18px; pointer-events: none; z-index: 8; }
/* lobby fridge */
.mp-fridge { z-index: 3; border-radius: 30px; }
.mp-fridge-frame { position: absolute; pointer-events: none; filter: drop-shadow(2px 4px 0 rgba(89,57,31,.25)); }
.mp-fridge-win { position: absolute; background: #fffdf6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mp-fridge-win canvas { max-width: 100%; max-height: 100%; }
.mp-fridge-frame .mp-img { position: absolute; }
.mp-fridge-frame.is-new { animation: mp-glow 1.6s ease-in-out 3; }

/* ---------- Pet Salon ---------- */
.mp-mirror-glass { position: absolute; z-index: 1; overflow: hidden; background: linear-gradient(160deg, #e9f3f6 0%, #d5e6ee 55%, #c9dce8 100%); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.mp-mirror-flip { position: absolute; inset: 0; transform: scaleX(-1); }
.mp-mirror-flip .mp-rig { opacity: .93; }
.mp-mirror-pet { position: absolute; inset: 0; }
.mp-mirror-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,0) 18%, rgba(255,255,255,.5) 24%, rgba(255,255,255,0) 31%, rgba(255,255,255,0) 60%, rgba(255,255,255,.32) 64%, rgba(255,255,255,0) 69%); }
.mp-mirror-stool, .mp-mirror-frame, .mp-salon-stool { position: absolute; pointer-events: none; }
.mp-mirror-frame { z-index: 2; }
.mp-salon-stool { z-index: 2; }
.mp-salon-pet { z-index: 3; }
.mp-acc-layer { position: absolute; inset: 0; pointer-events: none; }
.mp-acc { position: absolute; filter: drop-shadow(2px 4px 0 rgba(89,57,31,.22)); }
.mp-acc-ghost { position: absolute; z-index: 40; pointer-events: none; filter: drop-shadow(4px 8px 0 rgba(89,57,31,.25)); }
.mp-salon-brush { z-index: 35; pointer-events: none; }
.mp-brush-slot, .mp-style-btn, .mp-acc-card { z-index: 12; background: var(--cream); box-shadow: 5px 8px 0 var(--shadow), inset 0 0 0 6px #fff7e2; }
.mp-style-btn .mp-style-face { position: absolute; left: 26px; top: 26px; width: 110px; height: 110px; pointer-events: none; }
.mp-style-btn .mp-style-face .mp-rig { position: absolute; left: 0; top: 0; }
.mp-style-btn .mp-style-badge { position: absolute; pointer-events: none; }
.mp-style-btn.is-later, .mp-camera.is-later { filter: saturate(.55) opacity(.6); }
.mp-style-btn.is-ready, .mp-camera.is-ready { animation: mp-glow 1.6s ease-in-out infinite; }
.mp-style-btn.is-picked { box-shadow: 0 0 0 7px var(--butter), 5px 8px 0 var(--shadow); background: #fff8de; }
.mp-reduce-motion .mp-style-btn.is-ready, .mp-reduce-motion .mp-camera.is-ready { animation: none; box-shadow: 0 0 0 7px var(--butter); }
.mp-acc-card { border-radius: 34px; touch-action: none; }
.mp-acc-card .mp-img { position: absolute; pointer-events: none; }
.mp-acc-card.is-worn { background: #fff8de; box-shadow: 0 0 0 7px var(--butter), 5px 8px 0 var(--shadow); }
.mp-acc-card.is-worn .mp-acc-card-art { opacity: .45; }
.mp-acc-card.is-worn::after { content: ""; position: absolute; right: 18px; bottom: 16px; width: 30px; height: 16px; border-left: 8px solid var(--jade); border-bottom: 8px solid var(--jade); transform: rotate(-45deg); border-radius: 3px; }
.mp-bare .mp-bare-host { position: absolute; inset: 0; pointer-events: none; }
.mp-bare .mp-bare-face { position: absolute; }
.mp-camera { z-index: 12; border-radius: 40px; filter: drop-shadow(5px 8px 0 rgba(89,57,31,.22)); }
.mp-flash { position: absolute; inset: -200px; z-index: 45; background: #fff; opacity: 0; pointer-events: none; }
.mp-flash.is-on { animation: mp-flash .5s ease-out; }
@keyframes mp-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.mp-reduce-motion .mp-flash.is-on { animation: mp-flash-soft .9s ease-out; }
@keyframes mp-flash-soft { 0% { opacity: .35; } 100% { opacity: 0; } }
.mp-photo { position: absolute; z-index: 44; pointer-events: none; opacity: 0; transform: scale(.7) rotate(-6deg); transition: opacity .25s, transform .35s cubic-bezier(.3,1.4,.5,1); }
.mp-photo.is-shown { opacity: 1; transform: scale(1) rotate(-3deg); }
.mp-reduce-motion .mp-photo { transition: opacity .2s; transform: none; }
.mp-photo-win { position: absolute; overflow: hidden; background-size: 260% auto; background-position: 45% 40%; }
.mp-photo-win .mp-rig { position: absolute; }
.mp-photo-frame { position: absolute; }

/* ---------- Mamo's Tiangge ---------- */
.mp-daddy { z-index: 2; }
.mp-daddy .part-give, .mp-daddy .part-clap { opacity: 0; transition: opacity .12s; }
.mp-daddy .mp-rig-part { transition: opacity .12s, translate .25s ease-out; }
/* he pops up a little so the giving hand and the clapping hands clear the counter */
[data-daddy=clap] .mp-daddy .mp-rig-part { translate: 0 -9.2%; }
[data-daddy=give] .mp-daddy .mp-rig-part { translate: 0 -6%; }
.mp-ti-counter { position: absolute; z-index: 3; pointer-events: none; }
.mp-ti-tag { position: absolute; z-index: 4; transform-origin: 50% 4%; pointer-events: none; filter: drop-shadow(4px 7px 0 rgba(89,57,31,.18)); }
.mp-ti-tag::before { content: ""; position: absolute; left: 50%; top: -60px; height: 76px; border-left: 4px solid #a8764b; }
.mp-ti-tag-art, .mp-ti-tagnum, .mp-ti-tagcoins, .mp-ti-tagitem-host { position: absolute; }
.mp-ti-tagnum .mp-digits { width: 100%; height: 100%; }
.mp-ti-tagcoins { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.mp-ti-tagcoin { position: static; height: auto; filter: drop-shadow(1px 2px 0 rgba(89,57,31,.25)); }
.mp-ti-tagitem { width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.mp-ti-items { z-index: 5; }
.mp-ti-item { background: none; border-radius: 30px; pointer-events: auto; }
.mp-ti-item .mp-ti-item-art { position: absolute; filter: drop-shadow(3px 6px 0 rgba(89,57,31,.2)); }
.mp-ti-item.is-picked::before { content: ""; position: absolute; inset: 6px; border-radius: 34px; background: radial-gradient(closest-side, rgba(255,247,200,.95), rgba(255,236,150,.55) 70%, rgba(255,236,150,0)); animation: mp-glow 1.6s ease-in-out infinite; }
.mp-ti-item.is-picked .mp-ti-item-art { translate: 0 -10px; }
.mp-ti-item.is-sold { visibility: hidden; }
.mp-ti-mini { position: absolute; right: -2px; top: -4px; width: 54px; height: 54px; border-radius: 50%; background: #fffaf0; box-shadow: 2px 4px 0 rgba(89,57,31,.22), inset 0 0 0 4px #f6e7c8; padding: 9px 8px; box-sizing: border-box; }
.mp-ti-mini .mp-digits { width: 100%; height: 100%; }
.mp-ti-tray { z-index: 6; background: none; }
.mp-ti-traycoins { position: absolute; inset: 0; pointer-events: none; }
.mp-ti-paidcoin { position: absolute; filter: drop-shadow(1px 3px 0 rgba(89,57,31,.3)); }
.mp-ti-paidcoin.is-change { animation: mp-glow 1.2s ease-in-out infinite; }
.mp-ti-total { position: absolute; z-index: 6; border-radius: 50%; background: #fffdf6; box-shadow: 5px 8px 0 var(--shadow), inset 0 0 0 5px #e5f2e6; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; pointer-events: none; }
.mp-ti-total.is-shown { opacity: 1; transform: scale(1); }
.mp-ti-total::after { content: ""; position: absolute; left: 8px; bottom: -16px; border: 14px solid transparent; border-top: 22px solid #fffdf6; transform: rotate(34deg); }
.mp-ti-totalnum { position: absolute; inset: 24px 18px; }
.mp-ti-totalnum .mp-digits { width: 100%; height: 100%; }
.mp-ti-mamo { z-index: 7; }
.mp-ti-pet { z-index: 8; }
.mp-ti-basket { position: absolute; z-index: 9; pointer-events: none; }
.mp-ti-basket-in { position: absolute; inset: 0; }
.mp-ti-basket-art, .mp-ti-inbasket { position: absolute; }
.mp-ti-inbasket { filter: drop-shadow(2px 3px 0 rgba(89,57,31,.2)); }
.mp-ti-mat { position: absolute; z-index: 9; border-radius: 40px; background: #fff6e3; box-shadow: 6px 9px 0 var(--shadow), inset 0 0 0 6px #f4e2bf; pointer-events: none; }
.mp-ti-coin { z-index: 10; background: none; border-radius: 34px; }
.mp-ti-stack { position: absolute; inset: 0; pointer-events: none; }
.mp-ti-stackcoin { position: absolute; filter: drop-shadow(1px 4px 0 rgba(89,57,31,.28)); }
.mp-ti-coin.is-empty .mp-ti-stack::after { content: ""; position: absolute; left: 42px; right: 42px; bottom: 26px; height: 24px; border-radius: 50%; background: rgba(89,57,31,.12); }
.mp-ti-count { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.mp-ti-count i { width: 14px; height: 14px; border-radius: 50%; background: #e0a83c; box-shadow: 0 2px 0 rgba(89,57,31,.3); }
.mp-ti-purse { z-index: 10; background: none; }
.mp-ti-purse.is-ready { animation: mp-glow 1.2s ease-in-out infinite; }
.mp-ti-flycoin { position: absolute; z-index: 30; pointer-events: none; filter: drop-shadow(2px 5px 0 rgba(89,57,31,.25)); }
.mp-panel { padding: 30px 56px; }
.mp-panel-row { padding: 6px 0; }
.mp-toggle, .mp-panel-btn { min-height: 70px; }

/* ---------- Pizza Kitchen ---------- */
.mp-pz-pick { position: absolute; inset: 0; z-index: 20; background: rgba(89,57,31,.18); }
.mp-pz-pick.is-hidden { display: none; }
.mp-pz-mode { border-radius: 48px; background: var(--cream); box-shadow: 0 10px 0 rgba(89,57,31,.22); }
.mp-pz-mode.is-glow { outline: 10px solid #fff6d8; }
.mp-pz { position: absolute; z-index: 8; touch-action: none; }
.mp-pz.is-boxed { opacity: 0 !important; pointer-events: none; }
.mp-pz-dough, .mp-pz-sauce, .mp-pz-baked { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mp-pz-baked { z-index: 6; transition: opacity .6s ease; }
.mp-pz-cheese, .mp-pz-tops { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; pointer-events: none; }
.mp-pz-tops { pointer-events: auto; z-index: 5; }
.mp-pz-shred { position: absolute; pointer-events: none; }
.mp-pz-piece { position: absolute; padding: 0; z-index: 5; }
.mp-pz-ghost { position: absolute; z-index: 18; pointer-events: none; filter: drop-shadow(3px 5px 0 rgba(89,57,31,.2)); }
.mp-pz-bowl { z-index: 10; transition: opacity .4s ease, transform .4s ease, filter .4s ease; }
.mp-pz-bowl.is-away { opacity: 0; pointer-events: none; }
.mp-pz-bowl.is-glow { animation: mp-bowl-glow 1.4s ease-in-out infinite; }
@keyframes mp-bowl-glow {
  50% { transform: scale(1.08); filter: drop-shadow(0 0 22px #fff6d8) drop-shadow(0 0 12px #F7C858); }
}
.mp-reduce-motion .mp-pz-bowl.is-glow { animation: none; filter: drop-shadow(0 0 18px #fff6d8) drop-shadow(0 0 8px #F7C858); }
.mp-pz-oven { z-index: 9; background: transparent; }
.mp-pz-oven.is-baking { box-shadow: inset 0 0 40px rgba(255,160,40,.55), 0 0 28px rgba(255,200,80,.55); }
.mp-pz-card { position: absolute; z-index: 12; background: #fff7e2; border-radius: 28px; box-shadow: 6px 8px 0 rgba(89,57,31,.2); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.mp-pz-card-title { font-family: "Trebuchet MS", "Nunito", sans-serif; font-weight: 800; color: var(--cocoa); font-size: 36px; text-align: center; }
.mp-pz-card-row { display: flex; align-items: center; gap: 10px; }
.mp-pz-card-pic { width: 64px; height: 64px; object-fit: contain; }
.mp-pz-dots { display: flex; gap: 8px; }
.mp-pz-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); box-shadow: 2px 2px 0 rgba(89,57,31,.2); }
.mp-pz-shelf { position: absolute; z-index: 6; pointer-events: none; }
.mp-pz-slot { position: absolute; }
.mp-pz-slot-art { width: 100%; height: 100%; object-fit: contain; }
.mp-pz-boxwrap { position: absolute; z-index: 16; }
.mp-pz-box { position: absolute; }
.mp-pz-lid { z-index: 17; }
.mp-pz-sticker { position: absolute; overflow: hidden; border-radius: 50%; background: var(--cream); box-shadow: 3px 4px 0 rgba(89,57,31,.2); }

/* ---------- Travel Photos ---------- */
.mp-tr-pins { position: absolute; inset: 0; z-index: 8; }
.mp-tr-pin { border-radius: 48px; background: transparent; filter: drop-shadow(5px 7px 0 rgba(89,57,31,.2)); }
.mp-tr-pin.is-stamped { outline: 8px solid var(--jade); outline-offset: -8px; }
.mp-tr-camera, .mp-tr-album, .mp-tr-passbtn, .mp-tr-back { z-index: 14; }
.mp-tr-back-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 50%; font-family: "Trebuchet MS", "Nunito", sans-serif; font-weight: 800; font-size: 40px; color: var(--cocoa); box-shadow: 4px 6px 0 rgba(89,57,31,.2); }
.mp-tr-hit { z-index: 11; background: transparent; }
.mp-tr-plane { position: absolute; z-index: 20; pointer-events: none; }
.mp-tr-finder { position: absolute; inset: 80px 80px 120px 80px; z-index: 22; border: 16px solid rgba(255,247,226,.92); border-radius: 36px; box-shadow: inset 0 0 0 6px var(--cocoa), 0 0 0 2000px rgba(89,57,31,.28); display: none; pointer-events: none; }
.mp-tr-finder.is-shown { display: block; }
.mp-tr-dots { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); display: flex; gap: 18px; }
.mp-tr-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,247,226,.5); box-shadow: 2px 2px 0 rgba(89,57,31,.2); }
.mp-tr-dot.is-on { background: var(--butter); }
.mp-tr-instant { position: absolute; z-index: 24; pointer-events: none; opacity: 0; transform: rotate(-4deg) scale(.8); transition: opacity .25s, transform .5s ease-in, left .55s ease-in, top .55s ease-in, width .55s ease-in, height .55s ease-in; }
.mp-tr-instant.is-shown { opacity: 1; transform: rotate(-2deg) scale(1); }
.mp-tr-instant.is-flying { opacity: .95; transform: rotate(8deg) scale(.4); }
.mp-reduce-motion .mp-tr-instant { transition: opacity .2s; }
.mp-tr-instant-photo { position: absolute; object-fit: cover; background: var(--cream); }
.mp-tr-instant-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mp-tr-overlay { position: absolute; inset: 0; z-index: 28; background: rgba(89,57,31,.45); display: none; }
.mp-tr-overlay.is-shown { display: block; }
.mp-tr-album-page { position: absolute; left: 280px; top: 80px; width: 1040px; height: 840px; background: var(--cream); border-radius: 36px; box-shadow: 8px 12px 0 rgba(89,57,31,.25); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mp-tr-album-photo { max-width: 92%; max-height: 82%; object-fit: contain; border-radius: 16px; }
.mp-tr-album-cap, .mp-tr-empty { font-family: "Trebuchet MS", "Nunito", sans-serif; font-weight: 800; font-size: 36px; color: var(--cocoa); margin-top: 12px; }
.mp-tr-nav, .mp-tr-close { z-index: 29; background: var(--cream); border-radius: 50%; font-size: 72px; line-height: 164px; color: var(--cocoa); box-shadow: 4px 6px 0 rgba(89,57,31,.2); }
.mp-tr-passbook { position: absolute; filter: drop-shadow(8px 10px 0 rgba(89,57,31,.22)); }
.mp-tr-slot { position: absolute; opacity: .25; }
.mp-tr-slot.is-got { opacity: 1; }
.mp-tr-slot-art { width: 100%; height: 100%; object-fit: contain; }
.mp-tr-pins.is-hidden, .mp-tr-camera.is-hidden, .mp-tr-back.is-hidden { display: none !important; }

/* ---- Pet Hospital ---- */
.mp-hp-decor { position: absolute; pointer-events: none; z-index: 6; }
.mp-hp-tool { z-index: 16; border-radius: 28px; }
.mp-hp-tool.is-held { filter: drop-shadow(6px 10px 0 rgba(89,57,31,.25)); }
.mp-hp-tool.is-selected { outline: 8px solid #fff6d8; border-radius: 32px; }
.mp-hp-tool.is-placed { pointer-events: none; }
.mp-hp-pethit { background: transparent; z-index: 11; }
.mp-hp-star { position: absolute; pointer-events: none; z-index: 13; animation: mp-hp-twinkle 1.4s ease-in-out infinite; }
.mp-hp-star.is-heart { animation: none; }
.mp-hp-pulse { position: absolute; pointer-events: none; animation: mp-hp-beat .62s ease-in-out infinite; }
.mp-hp-treat { position: absolute; pointer-events: none; z-index: 20; }
.mp-hp-bar { position: absolute; z-index: 15; pointer-events: none; background: var(--cream); border-radius: 16px; box-shadow: 3px 4px 0 rgba(89,57,31,.2); overflow: hidden; }
.mp-hp-bar-fill { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 0; background: var(--jade, #73C5A5); border-radius: 12px; }
.mp-hp-bar.is-rising .mp-hp-bar-fill { animation: mp-hp-rise .9s ease-out forwards; }
.mp-hp-bar.is-done .mp-hp-bar-fill { height: 100%; background: #91B96A; }
@keyframes mp-hp-rise { from { height: 0; } to { height: 100%; } }
@keyframes mp-hp-beat { 0%, 100% { transform: scale(1); opacity: .9; } 40% { transform: scale(1.18); opacity: 1; } }
@keyframes mp-hp-twinkle { 50% { transform: scale(1.12) rotate(-8deg); } }
.mp-reduce-motion .mp-hp-star, .mp-reduce-motion .mp-hp-pulse { animation: none; }
.mp-reduce-motion .mp-hp-bar.is-rising .mp-hp-bar-fill { animation: none; height: 100%; }

/* ---- Counting Pond ---- */
.mp-pd-decor { position: absolute; pointer-events: none; z-index: 6; }
.mp-pd-fish { animation: mp-pd-bob 3.2s ease-in-out infinite; }
.mp-pd-duck { z-index: 12; border-radius: 50%; overflow: hidden; background: transparent; }
.mp-pd-duck-art { position: absolute; pointer-events: none; }
.mp-pd-duck.is-hiding { /* keep the large hit, but the art only peeks at the bottom */ }
.mp-pd-duck.is-hiding .mp-pd-duck-art { animation: mp-pd-peek 2.2s ease-in-out infinite; }
.mp-pd-badge { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(2px 3px 0 rgba(89,57,31,.2)); }
.mp-pd-card { position: absolute; z-index: 18; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; filter: drop-shadow(6px 8px 0 rgba(89,57,31,.2)); }
.mp-pd-card.is-shown { opacity: 1; transform: scale(1); }
.mp-pd-card-art { width: 100%; height: auto; }
.mp-pd-pip { z-index: 11; }
@keyframes mp-pd-bob { 50% { transform: translateY(-8px); } }
@keyframes mp-pd-peek { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-8px); } }
.mp-reduce-motion .mp-pd-fish, .mp-reduce-motion .mp-pd-duck.is-hiding .mp-pd-duck-art { animation: none; }
.mp-reduce-motion .mp-pd-card { transition: opacity .2s; }

/* ---- Lobby family portrait + Tito Nonoy peek ---- */
.mp-family-portrait { z-index: 3; border-radius: 18px; filter: drop-shadow(5px 8px 0 rgba(89,57,31,.2)); animation: mp-portrait-glow 3.6s ease-in-out infinite; }
@keyframes mp-portrait-glow { 50% { filter: drop-shadow(5px 8px 0 rgba(89,57,31,.2)) drop-shadow(0 0 10px rgba(247,200,88,.55)); } }
.mp-reduce-motion .mp-family-portrait { animation: none; }
.mp-btn.mp-family-portrait.is-pressed { transform: translateY(3px) scale(.97); }
.mp-family-portrait .mp-family-still,
.mp-family-portrait .mp-family-wave { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.mp-family-portrait .mp-family-wave { opacity: 0; }
.mp-family-portrait.is-wave .mp-family-still { opacity: 0; }
.mp-family-portrait.is-wave .mp-family-wave { opacity: 1; }
.mp-tito { z-index: 6; background: transparent; }
.mp-tito.is-hello { filter: drop-shadow(0 0 16px #fff6d8); }
.mp-reduce-motion .mp-family-portrait .mp-family-still,
.mp-reduce-motion .mp-family-portrait .mp-family-wave { transition: none; }

/* ---- Mamo & Mia dress-up ---- */
.mp-du-girl { position: absolute; z-index: 11; pointer-events: none; overflow: visible; }
.mp-du-wear-layer, .mp-du-pile { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.mp-du-wear { position: absolute; pointer-events: none; filter: drop-shadow(3px 5px 0 rgba(89,57,31,.18)); }
.mp-du-hit { z-index: 10; background: transparent; }
.mp-du-hit.is-selected { filter: drop-shadow(0 0 16px #F7C858) drop-shadow(0 0 6px #fff6d8); }
.mp-du-item { z-index: 12; border-radius: 28px; }
.mp-du-item.is-used { outline: 6px solid rgba(247,200,88,.85); outline-offset: -6px; }
.mp-du-item.is-on-mamo { box-shadow: inset 0 0 0 8px rgba(246,155,130,.7); }
.mp-du-item.is-on-mia { box-shadow: inset 0 0 0 8px rgba(191,148,185,.7); }
.mp-du-item.is-on-mamo.is-on-mia { box-shadow: inset 0 0 0 8px rgba(246,155,130,.7), inset 0 0 0 16px rgba(191,148,185,.7); }
.mp-du-item.is-lifted { opacity: .45; }
.mp-du-ghost { position: absolute; z-index: 40; pointer-events: none; filter: drop-shadow(4px 8px 0 rgba(89,57,31,.2)); }
.mp-du-ghost-art { width: 100%; height: 100%; object-fit: contain; }
.mp-du-camera, .mp-du-album-btn { z-index: 16; }
.mp-du-photo { z-index: 44; cursor: pointer; }
/* After a moment the card shrinks toward the album button (top-right). */
.mp-du-photo.is-tucking { opacity: 0; transform: translate(560px, -20px) scale(.16) rotate(8deg); pointer-events: none; }
.mp-reduce-motion .mp-du-photo.is-tucking { transform: none; }
.mp-du-photo-img { width: 100%; height: 100%; object-fit: cover; }
.mp-du-album { position: absolute; inset: 0; z-index: 46; display: none; background: rgba(89,57,31,.35); }
.mp-du-album.is-shown { display: block; }
.mp-du-album-page { position: absolute; left: 360px; top: 120px; width: 880px; height: 720px; border-radius: 28px; background: #FFF0CF; padding: 24px; box-sizing: border-box; }
.mp-du-album-photo { width: 100%; height: calc(100% - 60px); object-fit: contain; }
.mp-du-album-cap, .mp-du-empty { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 600 28px/1.2 ui-rounded, "Nunito", system-ui, sans-serif; color: #59391F; }
.mp-du-album-close { z-index: 47; }

/* Tito Nonoy aircon fix-it cameo */
.mp-aircon { background: transparent; box-shadow: none; z-index: 5; position: absolute; }
.mp-aircon .mp-aircon-art { width: 100%; height: 100%; object-fit: contain; pointer-events: none; position: absolute; left: 0; top: 0; }
.mp-aircon .mp-aircon-art.is-hidden { display: none !important; }
.mp-aircon:not(.is-fixed) { animation: mp-aircon-idle 2.4s ease-in-out infinite; }
.mp-aircon.is-fixed .mp-aircon-fixed { filter: drop-shadow(0 0 10px rgba(115, 184, 215, 0.7)); }
.mp-aircon.is-pressed { transform: none; }
.mp-aircon.is-pressed .mp-aircon-art { transform: scale(0.94); }
@keyframes mp-aircon-idle {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.4deg); }
}
.mp-reduce-motion .mp-aircon:not(.is-fixed) { animation: none; }

/* ----- travel album / passport: ChatGPT arrow + close buttons ----- */
.mp-tr-nav, .mp-tr-close { z-index: 29; background: transparent; border-radius: 50%; box-shadow: none; font-size: 0; line-height: 0; color: transparent; }
.mp-tr-nav .mp-btn-art, .mp-tr-close .mp-btn-art { width: 100%; height: 100%; object-fit: contain; }

/* ----- pizza order ticket (replaces the typographic "Order" title) ----- */
.mp-pz-card-ticket { width: 84px; height: auto; margin: 0 auto 4px; display: block; pointer-events: none; }

/* ----- dress-up shoes sit on the socks ----- */
.mp-du-shoe { z-index: 2; }
.mp-du-hat { z-index: 3; }

/* ----- Blocks room ----- */
.mp-blk-floor { position: absolute; pointer-events: none; }
.mp-blk-tray { position: absolute; z-index: 12; }
.mp-blk-item { z-index: 13; border-radius: 24px; background: rgba(255,240,207,.72); box-shadow: 4px 5px 0 rgba(89,57,31,.16); }
.mp-blk-item .mp-btn-art { width: 86%; height: 86%; object-fit: contain; margin: auto; }
.mp-blk-block { position: absolute; z-index: 11; pointer-events: auto; touch-action: none; transform-origin: center center; }
.mp-blk-block img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(3px 5px 0 rgba(89,57,31,.2)); }
.mp-blk-block.is-held { z-index: 20; filter: brightness(1.05); }
.mp-blk-ghost { position: absolute; z-index: 21; pointer-events: none; opacity: .85; }
.mp-blk-ghost img { width: 100%; height: 100%; object-fit: contain; }
.mp-blk-oops { position: absolute; z-index: 18; min-width: 140px; padding: 10px 18px; background: #FFF0CF; border-radius: 22px; box-shadow: 4px 6px 0 rgba(89,57,31,.2); font: 800 36px/1.1 "Trebuchet MS", "Nunito", sans-serif; color: #59391F; text-align: center; opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .18s, transform .18s; }
.mp-blk-oops.is-on { opacity: 1; transform: translateY(0) scale(1); }
.mp-blk-clear, .mp-blk-camera, .mp-blk-album { z-index: 16; }
.mp-blk-album-view { position: absolute; inset: 0; z-index: 46; display: none; background: rgba(89,57,31,.35); }
.mp-blk-album-view.is-shown { display: block; }
.mp-blk-album-page { position: absolute; left: 360px; top: 120px; width: 880px; height: 720px; border-radius: 28px; background: #FFF0CF; padding: 24px; box-sizing: border-box; }
.mp-blk-album-photo { width: 100%; height: calc(100% - 60px); object-fit: contain; }
.mp-blk-album-cap, .mp-blk-empty { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 600 28px/1.2 ui-rounded, "Nunito", system-ui, sans-serif; color: #59391F; }
.mp-blk-album-close { z-index: 47; }
