.px-shell{box-sizing:border-box;max-width:780px;margin:auto;padding:24px;background:#fffaf0;border:2px solid #e6d9b9;border-radius:28px;color:#344d48}.px-shell *{box-sizing:border-box}.px-shell button{font:inherit;color:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;min-height:48px}.px-shell button:focus-visible{outline:4px solid #356e87;outline-offset:4px}.px-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.px-back{background:#eeeada;border:0;border-radius:14px;padding:8px 15px;font-size:13px!important}.px-badge{font-size:12px;font-weight:700;background:#e5edda;border-radius:20px;padding:9px 12px}.px-heading{text-align:center}.px-heading h2{font-size:clamp(22px,4vw,29px);margin:24px 0 10px}.px-heading p{font-size:14px;line-height:1.8}.px-fruit-board{max-width:440px;margin:auto;border-radius:28px;background:linear-gradient(#edf3dd,#e8f0dd);padding:8px}.px-fruit{display:block;width:100%;background:none;border:0;padding:0;touch-action:none!important;border-radius:24px;cursor:pointer}.px-fruit svg{display:block;width:100%;max-height:320px}.px-fruit:hover{background:#f4f7e788}.px-half-left{animation:px-left .4s ease-out}.px-half-right{animation:px-right .4s ease-out}.px-status{text-align:center;font-size:16px;font-weight:700;line-height:1.8;min-height:2em;margin:20px 0 14px}.px-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.px-actions button{border:0;border-radius:15px;padding:13px 20px;background:#367c62;color:#fff;box-shadow:0 4px 0 #285c4a}.px-actions .px-again{background:#eee8d7;color:#344d48;box-shadow:0 4px 0 #d8d1bc}.px-hint{text-align:center;font-size:12px;line-height:1.8;color:#627367;margin:24px 0 0}.px-music-scene{display:flex;justify-content:center;align-items:center;gap:25px;font-size:48px;margin:16px 0}.px-note-cloud{font-size:35px;color:#9b8461;letter-spacing:.15em}.px-keyboard{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:12px 10px 15px;border-radius:20px;background:#a3bbaa;box-shadow:0 5px 0 #839d8e}.px-key{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:14px;height:185px;min-width:0;background:#fffef8;border:1px solid #dfd9c8;border-radius:7px 7px 12px 12px;padding:14px 2px;box-shadow:0 5px 0 #ddd8c4;font-size:clamp(13px,2.5vw,20px)!important;transition:transform .1s,background .1s;user-select:none}.px-key small{font-size:10px;color:#7a8476;font-weight:400}.px-key-dot{height:14px;width:14px;border-radius:50%;background:var(--key-color)}.px-key.px-hit{background:#fff1bf;transform:translateY(4px);box-shadow:0 1px 0 #ddd8c4}.px-drums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px auto 0;max-width:520px}.px-drums button{display:flex;align-items:center;flex-direction:column;gap:6px;padding:12px 5px;background:#f6e6d3;border:2px solid #dcc8ac;border-radius:24px;box-shadow:0 4px 0 #e1d2b9;font-size:20px}.px-drums button:nth-child(2){background:#f0e5ee;border-color:#d9c7d5}.px-drums button:nth-child(3){background:#f7edc9;border-color:#dfd3a6}.px-drums button>span{font-size:37px}.px-drums small{font-size:11px;font-weight:400}.px-drums .px-hit{transform:translateY(3px);box-shadow:none;filter:brightness(1.05)}@keyframes px-left{from{transform:translateX(20px)}to{transform:translateX(0)}}@keyframes px-right{from{transform:translate(240px,0) scale(-1,1)}to{transform:translate(260px,0) scale(-1,1)}}@media(max-width:600px){.px-shell{padding:20px 14px}.px-keyboard{gap:3px;padding:9px 6px 12px}.px-key{height:155px;gap:12px}.px-drums{gap:9px}.px-badge{font-size:10px}.px-back{font-size:12px!important;padding:8px 10px}.px-heading p{font-size:13px}.px-status{font-size:14px}.px-music-scene{font-size:38px}.px-note-cloud{font-size:28px}}@media(max-width:350px){.px-shell{padding:16px 8px}.px-badge{display:none}.px-key{height:140px;font-size:12px!important}.px-drums small{font-size:9px}.px-drums button{font-size:17px}.px-actions button{padding:12px;font-size:13px}}@media(prefers-reduced-motion:reduce){.px-shell *{animation:none!important;transition:none!important}}
.px-levels{display:flex;justify-content:center;gap:10px;margin:18px 0}.px-levels button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#fff5d5;border:2px solid #e2d4ab;color:#876f31;border-radius:14px;min-width:82px;padding:8px 10px;font-size:19px}.px-levels button[aria-pressed=true]{border-color:#367c62;background:#e9efdb;color:#365e47;box-shadow:0 0 0 2px #367c6220}.px-levels small{font-size:10px;font-weight:400}.px-fruit-board{height:330px;position:relative;overflow:hidden;isolation:isolate}.px-fruit{position:absolute;left:calc(50% - 110px);top:45px;width:220px;height:220px}.px-fruit svg{width:100%;height:100%}.px-fruit-board[data-level="2"] .px-fruit{animation:px-roll 5s ease-in-out infinite}.px-fruit-board[data-level="3"] .px-fruit{top:10px;animation:px-jump 4.8s infinite}.px-fruit-board.px-cut .px-fruit{animation:none;top:45px}.px-fruit-board.px-cut .px-fruit svg{animation:px-reveal .3s ease-out}.px-fruit:hover{background:none}@keyframes px-roll{0%,100%{transform:translateX(-30%) rotate(-18deg)}50%{transform:translateX(30%) rotate(18deg)}}@keyframes px-jump{0%,15%,100%{transform:translateY(330px) rotate(-12deg)}45%,50%{transform:translateY(0) rotate(4deg);animation-timing-function:ease-in}80%{transform:translateY(330px) rotate(16deg)}}@keyframes px-reveal{from{opacity:.4;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@media(max-width:400px){.px-fruit{width:190px;height:190px;left:calc(50% - 95px);top:55px}.px-fruit-board{height:300px}.px-fruit-board[data-level="2"] .px-fruit{animation-name:px-roll-small}@keyframes px-roll-small{0%,100%{transform:translateX(-17%) rotate(-16deg)}50%{transform:translateX(17%) rotate(16deg)}}}.px-fruit-board .px-fruit:focus-visible{outline-offset:-5px}@media(prefers-reduced-motion:reduce){.px-fruit-board[data-level] .px-fruit{animation:none!important;transform:none!important;top:45px}}
.px-fruit-board{touch-action:none}
.px-fruit-board{border:2px solid #e0e8ca;border-radius:24px;background:#f1f8e9 url('assets/fruit-garden.svg') center/cover no-repeat}.px-music-scene{border-radius:24px;background:linear-gradient(135deg,#fff1dd,#f2eaf8)}
.px-shell [hidden]{display:none!important}.px-mode-choices{display:flex;justify-content:center;gap:14px;margin:18px 0 24px}.px-mode-choices button{border:2px solid #d6d5bd;background:#fff7de;border-radius:18px;padding:16px 22px;font-size:20px}.px-mode-choices button[aria-pressed=true]{border-color:#367c62;background:#e5efdc;box-shadow:0 3px 0 #9bb49a}.px-keyboard[hidden]+.px-drums{margin-top:0}
.px-mode-choices{gap:8px;flex-wrap:wrap}.px-mode-choices button{padding:13px 16px;font-size:17px}.px-bells{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;background:#e9efdc;border-radius:22px;padding:18px 8px}.px-bells button{padding:0 2px 10px;min-height:115px;min-width:0;border:0;background:#fffaf0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(12px,2.5vw,18px)}.px-bells svg{width:100%;max-height:85px;transform-origin:50% 10%}.px-bells .px-hit svg{animation:px-ring .35s ease-out}.px-bells .px-hit{background:#fff0c7}@keyframes px-ring{0%,100%{transform:rotate(0)}25%{transform:rotate(-20deg)}70%{transform:rotate(18deg)}}@media(max-width:400px){.px-mode-choices button{padding:12px 10px;font-size:15px}.px-bells{gap:3px;padding:14px 5px}.px-bells button{min-height:104px;padding:0 1px 8px}}@media(prefers-reduced-motion:reduce){.px-bells .px-hit svg{animation:none}}
.px-bells{align-items:start;padding-bottom:42px}.px-bells button:nth-child(odd){transform:translateY(26px)}.px-bells button:nth-child(even){transform:translateY(0)}@media(max-width:400px){.px-bells{padding-bottom:40px}}
.px-drums button>span>svg{display:block;width:64px;height:50px}.px-drums button:nth-child(4){background:#f7edcf}.px-drums button:nth-child(5){background:#e9eddd}.px-drums button:nth-child(4),.px-drums button:nth-child(5){min-height:130px}
.px-drums button:nth-child(6){background:#f3eccf;min-height:130px}.px-drums button[hidden]{display:none!important}
/* Selection and play scenes are mutually exclusive; navigation stays quiet. */
.px-shell{position:relative;padding-bottom:78px}.px-toolbar .px-back{position:absolute;right:18px;bottom:17px;min-width:76px;min-height:46px;font-size:12px!important;padding:8px 12px;z-index:3}.px-toolbar{justify-content:flex-end}.px-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:620px;margin:24px auto}.px-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:2px solid #dcd4bb;border-radius:24px;background:#edf2e3;padding:20px 10px;box-shadow:0 5px 0 #e1d8bf;min-height:170px!important}.px-choice:nth-child(2){background:#f8ebd2}.px-choice:nth-child(3){background:#eee6ee}.px-choice:nth-child(4){background:#e2efed}.px-choice>span{font-size:62px;line-height:1.3}.px-choice strong{font-size:20px}.px-choice small{font-size:12px;color:#6b7c69}.px-level-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.px-level-menu .px-choice{padding:10px 4px 18px;gap:8px}.px-level-art{width:100%;max-width:180px}.px-level-art svg{display:block;width:100%;height:auto}.px-round-progress{text-align:center;font-size:17px;font-weight:700;margin:14px 0;color:#768153}.px-result{text-align:center;padding:40px 10px}.px-result>div:first-child{font-size:clamp(24px,6vw,44px);line-height:1.6}.px-result h3{font-size:27px;margin:24px 0}.px-paused *{animation-play-state:paused!important}.px-choice:active{transform:translateY(3px);box-shadow:0 2px 0 #e1d8bf}@media(max-width:450px){.px-choice-grid{gap:12px}.px-choice{min-height:146px!important;padding:16px 7px}.px-choice>span{font-size:48px}.px-choice strong{font-size:17px}.px-level-menu{gap:8px}.px-level-menu .px-choice{min-height:145px!important}.px-level-menu .px-choice strong{font-size:18px}.px-level-menu .px-choice small{font-size:11px}}
/* Multi-fruit challenges keep touch targets large; launches remain below → up → below. */
.px-fruit-board .px-fruit{width:160px;height:160px;left:calc(50% - 80px);top:65px}
.px-fruit-board[data-targets="2"] .px-fruit{width:140px;height:140px;left:calc(16% - 40px + var(--fruit-index)*40%);top:78px}
.px-fruit-board[data-targets="3"] .px-fruit{width:120px;height:120px;left:calc(5% - 25px + var(--fruit-index)*31%);top:calc(85px + var(--fruit-index)*18px)}
.px-fruit-board[data-level="2"] .px-fruit{animation:px-roll-many var(--fruit-duration) ease-in-out var(--fruit-delay) infinite}
.px-fruit-board[data-level="3"] .px-fruit{top:10px;animation:px-jump-many var(--fruit-duration) ease-out var(--fruit-delay) infinite both}
.px-fruit-board .px-fruit-cut{animation:none!important;pointer-events:none}
.px-fruit-board .px-fruit-cut svg{animation:px-reveal .3s ease-out}
@keyframes px-roll-many{0%,100%{transform:translateX(calc(-12px * var(--travel-direction))) rotate(-16deg)}50%{transform:translateX(calc(12px * var(--travel-direction))) rotate(16deg)}}
@keyframes px-jump-many{0%,12%,100%{transform:translate(calc(-12px * var(--travel-direction)),330px) rotate(-12deg)}45%,50%{transform:translate(0,0) rotate(4deg);animation-timing-function:ease-in}82%{transform:translate(calc(12px * var(--travel-direction)),330px) rotate(16deg)}}
@media(prefers-reduced-motion:reduce){.px-fruit-board[data-level] .px-fruit{animation:none!important;transform:none!important;top:85px}}

/* Illustrated music studio. Scoped away from fruit games and their full-screen stage. */
:is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-shell{max-width:1040px;padding:22px 28px 78px;background:linear-gradient(145deg,#fffdf5,#fbf5e8);overflow:visible}
:is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-heading{display:block;padding:0 8px 12px;margin:0;text-align:center}
:is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-heading h2{margin:12px 0 7px;font-size:clamp(25px,4vw,34px)}
:is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-heading p{margin:0;color:#75806a}
.px-instrument-menu{max-width:800px;gap:22px;margin:16px auto 12px}
.px-instrument-menu .px-choice{position:relative;gap:4px;padding:12px 18px 23px;min-height:250px!important;border-color:#d8dfc9;background:linear-gradient(150deg,#f4f7e9,#e6eed9);box-shadow:0 6px 0 #d7dfc4;overflow:hidden}
.px-instrument-menu .px-choice:nth-child(2){background:linear-gradient(150deg,#fff7df,#f6eacb);border-color:#e5d8b8;box-shadow:0 6px 0 #e4d7b9}
.px-instrument-menu .px-choice:nth-child(3){background:linear-gradient(150deg,#f5edf0,#e9e1ed);border-color:#dcd2db;box-shadow:0 6px 0 #d8cbd7}
.px-instrument-menu .px-choice:nth-child(4){background:linear-gradient(150deg,#ecf4ee,#deece6);border-color:#cfdfd4;box-shadow:0 6px 0 #cddfd4}
.px-instrument-menu .px-choice img{display:block;width:100%;height:auto;max-width:260px;aspect-ratio:1.28;object-fit:contain;pointer-events:none;transition:transform .18s}
.px-instrument-menu .px-choice strong{font-size:23px;letter-spacing:.04em;line-height:1.6}
.px-instrument-menu .px-choice small{font-weight:500;color:#6b7b64;font-size:12px;line-height:1.7}
.px-instrument-menu .px-choice:hover img{transform:translateY(-3px) rotate(-1deg)}
.px-music-controls{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 0}
.px-music-controls .px-status{margin:0;min-height:0;font-size:17px}
.px-local-sound{border:1px solid #d5d9c2;background:#edf1e2;border-radius:24px;padding:8px 16px;min-height:44px!important;font-size:12px!important;white-space:nowrap;box-shadow:0 2px 0 #d3dac2}
.px-local-sound[aria-pressed="false"]{background:#edece5;color:#7a8073;box-shadow:none}
:is([data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-hint{margin-top:15px;font-size:11px}
/* A full-sized, gently bevelled piano, with a continuous octave of playable white keys. */
.px-piano-case{max-width:950px;margin:14px auto 0;border:3px solid #5d8270;border-radius:22px 22px 17px 17px;padding:16px 20px 0;background:linear-gradient(130deg,#afc7ae,#769d85);box-shadow:0 9px 0 #4f7662,0 16px 20px #62785218}
.px-piano-panel{display:flex;align-items:center;justify-content:center;gap:22px;min-height:62px;margin:0 0 15px;border:2px solid #8ba98d;border-radius:10px;background:linear-gradient(#c4d3b4,#aec6a6);box-shadow:inset 0 3px 0 #dce5c8;color:#486e56;font-size:14px;letter-spacing:.2em;text-align:center}
.px-piano-panel i{display:block;flex:1;max-width:100px;height:2px;background:#88a183;box-shadow:0 3px 0 #d5dfc1}
.px-piano-panel span{padding:0 2px}
.px-piano-case .px-keyboard{position:relative;margin:0;padding:8px 6px 12px;gap:3px;border-radius:9px 9px 13px 13px;background:#35594a;box-shadow:0 4px 0 #4d715e}
.px-piano-case .px-key{position:relative;height:285px;gap:13px;background:linear-gradient(90deg,#f7f4e7,#fffdf3 25%,#fffdf3 75%,#e8e5d6);border:1px solid #d9dac4;border-bottom:6px solid #c7cbb4;border-radius:4px 4px 9px 9px;padding:16px 0 14px;box-shadow:0 4px 0 #cdd1bd;font-size:clamp(16px,2.4vw,25px)!important;touch-action:none}
.px-piano-case .px-key-dot{width:19px;height:19px;background:var(--key-color);box-shadow:inset 0 2px 0 #ffffff50}
.px-piano-case .px-key small{font-size:11px;color:#89917d}
.px-piano-case .px-key.px-hit{background:linear-gradient(#fffdf0 35%,var(--key-color));transform:translateY(4px);box-shadow:none;border-bottom-width:2px}
.px-black-keys{position:absolute;inset:8px 6px 12px;pointer-events:none}
.px-black-keys i{position:absolute;left:calc(var(--black-key)*12.5% - 3.8%);top:0;width:7.6%;height:56%;background:linear-gradient(90deg,#293f36,#506259 25%,#384d42 80%,#283e33);border:2px solid #2a4236;border-bottom:7px solid #20392d;border-radius:0 0 6px 6px;box-shadow:2px 5px 3px #203a4540}
.px-black-keys i:after{content:"";position:absolute;top:5px;left:15%;width:70%;height:85%;border-radius:0 0 4px 4px;border-top:3px solid #8b9985;background:linear-gradient(#65776a00,#7b8c7930)}
.px-piano-trim{height:29px;display:flex;justify-content:center;gap:12px;align-items:center}
.px-piano-trim i{width:24px;height:7px;border-radius:5px;background:linear-gradient(#f5d58b,#b38e4c);box-shadow:0 2px 0 #5b7953}
/* Eight generous, separated bells. Small screens use two ordered rows. */
[data-extra-scene="bells"] .px-bells{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:center;gap:14px;max-width:960px;padding:30px 14px 26px;margin:14px auto 0;background:radial-gradient(ellipse at 50% 90%,#d9e4c6,#f0f4e6 72%);border:1px solid #e2e8d4;border-radius:28px}
[data-extra-scene="bells"] .px-bells button{position:relative;min-width:0;min-height:0;gap:2px;padding:0 0 8px;background:none;border:0;border-radius:16px;transform:none;touch-action:none;transition:background .12s}
[data-extra-scene="bells"] .px-bells img{width:100%;height:auto;max-width:165px;aspect-ratio:auto;object-fit:contain;transform-origin:50% 15%;pointer-events:none;filter:drop-shadow(0 3px 1px #a4ae8e15)}
[data-extra-scene="bells"] .px-bells button>span{font-size:24px;line-height:1.6;font-weight:800;color:#4b6752}
[data-extra-scene="bells"] .px-bells small{height:20px;font-size:10px;color:#7e8c71;font-weight:400}
[data-extra-scene="bells"] .px-bells button.px-hit{background:#fff6d8;box-shadow:0 0 0 3px #ecdaa7}
[data-extra-scene="bells"] .px-bells button.px-hit img{animation:px-bell-ring .32s ease-out}
@keyframes px-bell-ring{0%,100%{transform:rotate(0)}25%{transform:rotate(-13deg)}70%{transform:rotate(11deg)}}
/* A top-down kit: the drumhead itself is the touch target, not an emoji card. */
.px-drum-kit{position:relative;width:min(100%,650px);aspect-ratio:1.16;margin:4px auto 0;isolation:isolate}
.px-drum-rug{position:absolute;inset:5% 2% 1%;border:2px solid #cad6bd;border-radius:44%;background:repeating-linear-gradient(0deg,#dde8d3 0 5px,#e3ecd9 5px 10px);box-shadow:inset 0 0 0 9px #edf1df,inset 0 0 0 12px #cad6bd;transform:rotate(-4deg)}
.px-shell .px-instrument{position:relative;padding:0;border:0;background:transparent;box-shadow:none;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;user-select:none;border-radius:24px;transition:filter .1s,transform .1s}
.px-instrument img{display:block;width:100%;height:auto;pointer-events:none;object-fit:contain;aspect-ratio:1}
.px-instrument-label{display:block;font-size:clamp(18px,2.4vw,25px);line-height:1.4;white-space:nowrap;text-align:center;color:#425c45;text-shadow:0 1px 0 #fff7e5}
.px-instrument-label small{display:block;font-size:clamp(10px,1.4vw,12px);font-weight:500;line-height:1.6;color:#6e7963}
.px-drum-kit .px-instrument{position:absolute;width:42%;border-radius:50%;}
.px-drum-kit .px-cymbal{top:0;left:1%;transform:rotate(-6deg)}
.px-drum-kit .px-snare{top:0;right:1%;transform:rotate(7deg)}
.px-drum-kit .px-kick{width:49%;left:25.5%;bottom:0}
.px-drum-kit .px-instrument-label{position:absolute;top:39%;left:0;width:100%}
.px-drum-kit .px-cymbal .px-instrument-label{top:65%;font-size:clamp(14px,2.2vw,20px)}
.px-drum-kit .px-cymbal .px-instrument-label small{display:none}
.px-drum-kit .px-instrument.px-hit{transform:scale(.965);filter:brightness(1.08) drop-shadow(0 0 5px #d8ad43)}
.px-drum-kit .px-instrument.px-hit:after{content:"";position:absolute;inset:23%;border:3px solid #d8a550aa;border-radius:50%;animation:px-drum-ripple .3s ease-out;pointer-events:none}
@keyframes px-drum-ripple{from{transform:scale(.75);opacity:1}to{transform:scale(1.8);opacity:0}}
/* A real toybox composition: instruments sit at different heights in a wooden tray. */
.px-toybox{position:relative;isolation:isolate;width:min(100%,700px);margin:14px auto 0;aspect-ratio:1.25;min-height:360px}
.px-toybox-inside{position:absolute;z-index:-1;inset:8% 1% 5%;border:11px solid #bc925d;border-radius:32px 32px 22px 22px;background:repeating-linear-gradient(95deg,#f1dfbc 0 39px,#ecdbb7 40px 42px);box-shadow:inset 0 7px 12px #8c683e25,0 8px 0 #996c3f,0 16px 20px #92754118;transform:perspective(800px) rotateX(5deg)}
.px-toybox-front{position:absolute;z-index:1;pointer-events:none;bottom:0;left:0;width:100%;height:20%;border:3px solid #a37b4d;border-top:6px solid #f4d59c;border-radius:5px 5px 23px 23px;background:linear-gradient(#ddb578,#c3985e);box-shadow:0 5px 0 #956d41;display:flex;align-items:center;justify-content:center}
.px-toybox-front:before,.px-toybox-front:after{content:"";position:absolute;top:34%;width:17%;height:3px;background:#c4985e;box-shadow:0 13px 0 #e9c68b;border-radius:50%}
.px-toybox-front:before{left:5%}.px-toybox-front:after{right:5%}
.px-toybox-front span{background:#fff0ca;border:2px solid #c29154;border-radius:13px;padding:7px 19px;font-size:clamp(11px,2vw,15px);color:#7d7149;letter-spacing:.12em;box-shadow:0 2px 0 #b48a50}
.px-toybox .px-instrument{position:absolute;width:39%}
.px-toybox .px-tambourine{left:3%;top:7%;transform:rotate(-12deg)}
.px-toybox .px-jingle{right:5%;top:-4%;width:33%;transform:rotate(13deg)}
.px-toybox .px-castanets{right:23%;top:32%;width:29%;transform:rotate(-6deg)}
.px-toybox .px-instrument-label{font-size:clamp(15px,2.2vw,22px);margin-top:-5%}
.px-toybox .px-instrument-label small{font-size:clamp(10px,1.5vw,12px)}
.px-toybox .px-instrument.px-hit{filter:brightness(1.08) drop-shadow(0 0 6px #fff5bb);animation:px-toy-shake .22s ease-in-out}
@keyframes px-toy-shake{0%,100%{translate:0 0}30%{translate:-3px -5px}70%{translate:3px -2px}}
@media(max-width:850px){[data-extra-scene="bells"] .px-bells{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 20px;padding:24px 20px}.px-piano-case .px-key{height:260px}}
@media(max-width:600px){
 :is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-shell{width:calc(100% + 28px);margin-left:-14px;padding:16px 10px 72px;border-radius:24px}
 :is([data-extra-scene="music-selection"],[data-extra-scene="piano"],[data-extra-scene="bells"],[data-extra-scene="drums"],[data-extra-scene="rhythm"]) .px-heading{padding-bottom:8px}
 .px-instrument-menu{gap:14px 12px;margin:14px 0 8px}.px-instrument-menu .px-choice{padding:8px 5px 16px;min-height:185px!important;border-radius:21px}.px-instrument-menu .px-choice strong{font-size:18px}.px-instrument-menu .px-choice small{font-size:10px}.px-instrument-menu .px-choice img{max-width:210px}
 .px-piano-case{padding:9px 7px 0;border-radius:15px 15px 12px 12px;border-width:2px;margin:14px -2px 0}.px-piano-panel{min-height:51px;margin-bottom:9px;gap:9px;font-size:11px;letter-spacing:.12em}.px-piano-panel i{max-width:34px}.px-piano-case .px-keyboard{gap:2px;padding:6px 3px 9px}.px-piano-case .px-key{height:235px;gap:12px;padding-bottom:14px;font-size:17px!important;border-bottom-width:4px}.px-piano-case .px-key-dot{width:14px;height:14px}.px-piano-case .px-key small{font-size:9px}.px-black-keys{inset:6px 3px 9px}.px-black-keys i{border-width:1px;border-bottom-width:5px}.px-piano-trim{height:24px;gap:8px}.px-piano-trim i{width:19px;height:6px}
 [data-extra-scene="bells"] .px-bells{gap:23px 13px;padding:17px 7px 15px;border-radius:22px}[data-extra-scene="bells"] .px-bells button>span{font-size:21px}[data-extra-scene="bells"] .px-bells small{font-size:9px;height:16px}
 .px-drum-kit{aspect-ratio:1.04;margin:12px auto 4px}.px-drum-kit .px-instrument{width:46%}.px-drum-kit .px-kick{width:55%;left:22.5%;bottom:0}.px-drum-kit .px-cymbal{left:0}.px-drum-kit .px-snare{right:0}.px-drum-kit .px-instrument-label{font-size:18px}.px-drum-kit .px-instrument-label small{font-size:9px}.px-drum-kit .px-cymbal .px-instrument-label{font-size:14px}
 .px-toybox{min-height:420px;aspect-ratio:auto;margin-top:28px}.px-toybox-inside{inset:9% 0 5%;border-width:8px;border-radius:24px}.px-toybox .px-tambourine{width:52%;left:1%;top:11%}.px-toybox .px-jingle{width:43%;right:1%;top:0}.px-toybox .px-castanets{width:42%;right:11%;top:34%}.px-toybox-front{height:17%;border-radius:5px 5px 18px 18px}.px-toybox-front span{font-size:11px;padding:7px 12px;letter-spacing:.05em}.px-toybox-front:before,.px-toybox-front:after{width:11%}.px-toybox .px-instrument-label{font-size:17px}.px-toybox .px-instrument-label small{font-size:10px}
 .px-music-controls{gap:12px;margin-top:24px}.px-music-controls .px-status{font-size:15px}
}
@media(max-width:360px){.px-instrument-menu .px-choice strong{font-size:16px}.px-instrument-menu .px-choice small{font-size:9px}.px-instrument-menu .px-choice{min-height:165px!important}.px-piano-case .px-key{height:220px;font-size:15px!important}.px-key-dot{width:12px;height:12px}.px-toybox{min-height:380px}.px-toybox .px-castanets{top:36%}[data-extra-scene="bells"] .px-bells{gap:22px 9px}.px-drum-kit .px-instrument-label{font-size:16px}.px-drum-kit .px-instrument-label small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.px-shell .px-instrument,.px-shell .px-instrument img,.px-instrument-menu img{animation:none!important;transition:none!important}.px-drum-kit .px-instrument.px-hit:after{animation:none;opacity:.5}.px-toybox .px-instrument.px-hit{translate:0 0}}

/* Swipe-only slicing: each original fruit is clipped along the real pointer segment. */
.px-fruit-board{user-select:none;-webkit-user-select:none;overscroll-behavior:contain;cursor:crosshair}
.px-fruit-board .px-fruit{cursor:crosshair;-webkit-tap-highlight-color:transparent}
.px-fruit-board .px-fruit-cut svg{animation:none}
.px-fruit-piece{transform:translate(var(--slice-x),var(--slice-y));animation:px-fruit-separate .32s ease-out both}
@keyframes px-fruit-separate{from{transform:translate(0,0)}to{transform:translate(var(--slice-x),var(--slice-y))}}
.px-swipe-trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:hidden}
.px-swipe-trail path{fill:none;stroke:#fffdf0;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #e7b756);animation:px-swipe-fade .24s ease-out forwards}
@keyframes px-swipe-fade{0%{opacity:1;stroke-width:5}100%{opacity:0;stroke-width:1}}
@media(prefers-reduced-motion:reduce){.px-fruit-piece{animation:none}.px-swipe-trail path{animation:none;opacity:.7}}

/* The play scene uses the viewport; the existing global mute button is moved here only
   while playing and restored on exit. Menus/music/shape layouts remain unchanged. */
.px-fruit-immersive{position:fixed;inset:0;z-index:100;background:#fffaf0;height:100vh;height:100dvh;scroll-margin:0!important}
.px-fruit-immersive .px-shell{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;margin:0;border:0;border-radius:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden}
.px-fruit-immersive .px-toolbar{flex:none;justify-content:space-between;gap:8px;min-height:58px;padding:0 2px 5px}
.px-fruit-immersive .px-toolbar .px-back{position:static;flex:none;min-width:64px;min-height:48px;padding:8px 10px;font-size:12px!important;z-index:auto}
.px-fruit-immersive .px-heading{display:block;flex:1;max-width:none;min-width:0;margin:0;padding:0;text-align:center}
.px-fruit-immersive .px-heading h2{margin:0;font-size:clamp(17px,4.7vw,26px);line-height:1.5;white-space:nowrap}
.px-fruit-immersive .px-heading p{margin:1px 0 0;font-size:11px;line-height:1.4}
.px-fruit-immersive .px-badge{display:none}
.px-fruit-immersive #sound{flex:none;margin:0;min-height:48px;min-width:58px;padding:7px 10px;font-size:12px}
.px-fruit-immersive .px-content{position:relative;display:flex;flex:1;min-height:0;flex-direction:column}
.px-fruit-immersive .px-fruit-board{flex:1;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:0;border-radius:22px;background-size:cover;touch-action:none}
.px-fruit-immersive .px-round-progress{position:absolute;left:15px;top:9px;margin:0;z-index:3;pointer-events:none;font-size:13px;padding:4px 10px;border-radius:12px;background:#fffaf0d9}
.px-fruit-immersive .px-status{position:absolute;left:10px;right:10px;bottom:49px;margin:0;min-height:1.5em;pointer-events:none;font-size:13px;text-shadow:0 1px 2px #fffaf0}
.px-fruit-immersive .px-hint{flex:none;margin:5px 0 0;font-size:10px;line-height:1.5}
.px-fruit-immersive .px-fruit-board .px-fruit{left:0!important;top:0!important;animation:none!important;will-change:transform}
.px-fruit-immersive .px-fruit-board .px-fruit-cut{will-change:auto}
.px-fruit-immersive[data-extra-scene="fruit-result"] .px-content{justify-content:center}
@media(max-height:460px){.px-fruit-immersive .px-toolbar{min-height:48px;padding-bottom:3px}.px-fruit-immersive .px-heading p{display:none}.px-fruit-immersive .px-hint{font-size:9px;line-height:1.2;margin-top:2px}.px-fruit-immersive .px-status{bottom:32px}.px-fruit-immersive .px-round-progress{top:5px;font-size:11px}}

/* Instrument framing: retain the wooden signs at the top, finish at the instrument. */
.wood-nav.px-music-nav{scroll-margin-top:0;padding-top:5px;padding-bottom:9px}
.px-music-framed .px-shell{position:relative;height:var(--px-frame-height,calc(100svh - 100px));min-height:0;padding:8px 12px 6px;border-radius:18px;display:grid;grid-template-rows:48px minmax(0,1fr);gap:4px;overflow:hidden}
.px-music-framed .px-toolbar{position:absolute;left:10px;top:10px;margin:0;z-index:5}
.px-music-framed .px-toolbar .px-back{position:static;min-width:64px;min-height:40px;font-size:11px!important;padding:7px 10px;box-shadow:none}
.px-music-framed .px-badge{display:none}
.px-music-framed .px-heading{grid-row:1;align-self:center;margin:0;padding:0 76px;text-align:center}
.px-music-framed .px-heading h2{font-size:clamp(20px,3vw,27px);line-height:1.3;margin:0;white-space:nowrap}
.px-music-framed .px-heading p{display:none}
.px-music-framed .px-content{grid-row:2;position:static;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center}
.px-music-framed .px-music-controls{display:contents}
.px-music-framed .px-local-sound{position:absolute;right:10px;top:10px;z-index:5;min-height:40px!important;padding:7px 11px;font-size:10px!important}
.px-music-framed .px-status,.px-music-framed .px-hint{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.px-music-framed .px-piano-case{height:100%;width:100%;max-width:none;min-height:0;display:grid;grid-template-rows:clamp(30px,7svh,58px) minmax(0,1fr) 20px;gap:8px;margin:0;padding:10px 14px 0;border-radius:16px 16px 12px 12px;box-shadow:0 4px 0 #4f7662}
.px-music-framed .px-piano-panel{min-height:0;margin:0;font-size:clamp(10px,1.5vw,14px)}
.px-music-framed .px-piano-case .px-keyboard{height:100%;min-height:0}
.px-music-framed .px-piano-case .px-key{height:100%;min-height:0;justify-content:flex-end;gap:clamp(5px,1.8svh,15px)}
.px-music-framed .px-piano-trim{height:20px}
/* Black keys are real, named buttons above the white keys. */
.px-black-keys .px-sharp{position:absolute;left:calc(var(--black-key)*12.5%);translate:-50% 0;top:0;width:7.6%;min-width:24px;height:56%;min-height:0;padding:0 0 10px;pointer-events:auto;touch-action:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;background:linear-gradient(90deg,#293f36,#506259 25%,#384d42 80%,#283e33);border:2px solid #2a4236;border-bottom:7px solid #20392d;border-radius:0 0 6px 6px;box-shadow:2px 5px 3px #203a4540;color:#f6f6dd;font-size:18px;user-select:none}
.px-black-keys .px-sharp:before{content:"";position:absolute;top:5px;left:15%;width:70%;height:75%;border-radius:0 0 4px 4px;border-top:3px solid #8b9985;background:linear-gradient(#65776a00,#7b8c7930);pointer-events:none}
.px-black-keys .px-sharp small{font-size:10px;color:#d3ddc8;z-index:1}
.px-black-keys .px-sharp span{z-index:1}
.px-black-keys .px-sharp.px-hit{transform:translateY(3px);background:linear-gradient(#496659,#6d8e76);border-bottom-width:3px;box-shadow:1px 2px 2px #203a4540}
/* A loosely staggered line, rather than a regimented shelf of bells. */
.px-music-framed[data-extra-scene="bells"] .px-bells{height:100%;width:100%;max-width:none;margin:0;padding:26px 16px;gap:16px;align-content:center;background:radial-gradient(ellipse at 50% 60%,#e4eccf,#f4f6e7);overflow:visible}
.px-music-framed[data-extra-scene="bells"] .px-bells button{justify-self:center;width:100%;max-width:160px;transform:translateY(-25px) rotate(-4deg)}
.px-music-framed[data-extra-scene="bells"] .px-bells button:nth-child(even){transform:translateY(28px) rotate(4deg)}
.px-music-framed[data-extra-scene="bells"] .px-bells button:nth-child(3n){rotate:2deg}
.px-music-framed[data-extra-scene="bells"] .px-bells img{max-height:calc(var(--px-frame-height) - 175px);width:100%;object-fit:contain}
/* Drawings alone are the drum pads. Accessible names remain available. */
.px-music-framed .px-drum-kit{width:min(100%,calc((var(--px-frame-height) - 62px)*1.15));height:100%;max-width:860px;max-height:100%;aspect-ratio:auto;margin:0}
.px-music-framed .px-drum-kit .px-instrument-label{display:none}
.px-music-framed .px-drum-kit .px-cymbal,.px-music-framed .px-drum-kit .px-snare{top:0}
.px-music-framed .px-drum-kit .px-kick{bottom:0}
.px-music-framed .px-drum-kit .px-instrument{width:min(44%,calc((var(--px-frame-height) - 62px)*.53))}
.px-music-framed .px-drum-kit .px-kick{width:min(52%,calc((var(--px-frame-height) - 62px)*.6));left:50%;translate:-50% 0}
/* Strong lacquer colors distinguish each toy from the warm wooden box. */
.px-music-framed .px-toybox{width:min(100%,calc((var(--px-frame-height) - 60px)*1.25));height:100%;max-width:850px;min-height:0;aspect-ratio:auto;margin:0}
.px-music-framed .px-toybox-inside{background:repeating-linear-gradient(95deg,#f8edce 0 39px,#f1e5c4 40px 42px)}
.px-music-framed .px-toybox .px-castanets{top:auto;bottom:20%;right:24%;width:29%}
.px-music-framed .px-toybox .px-instrument-label{font-size:clamp(11px,2vw,19px);line-height:1.4;min-height:0;margin-top:-5%;color:#344f60;text-shadow:0 1px 0 white}
@media(max-width:850px){
 .px-music-framed[data-extra-scene="bells"] .px-bells{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));align-content:stretch;align-items:center;padding:16px 14px;gap:18px}
 .px-music-framed[data-extra-scene="bells"] .px-bells button{max-height:100%;transform:translateY(-11px) rotate(-4deg)}
 .px-music-framed[data-extra-scene="bells"] .px-bells button:nth-child(even){transform:translateY(14px) rotate(4deg)}
 .px-music-framed[data-extra-scene="bells"] .px-bells img{max-height:calc((var(--px-frame-height) - 190px)/2)}
}
@media(max-width:600px){
 .px-music-framed .px-shell{width:calc(100% + 28px);padding:6px 7px 5px;gap:2px;grid-template-rows:45px minmax(0,1fr);border-radius:16px}
 .px-music-framed .px-toolbar{left:7px;top:8px}.px-music-framed .px-toolbar .px-back{min-width:60px;padding:7px 8px;min-height:38px;font-size:10px!important}
 .px-music-framed .px-local-sound{right:7px;top:8px;padding:7px 9px;min-height:38px!important}
 .px-music-framed .px-heading{padding:0 63px}.px-music-framed .px-heading h2{font-size:19px}
 .px-music-framed .px-piano-case{padding:6px 5px 0;gap:6px;grid-template-rows:clamp(28px,6svh,45px) minmax(0,1fr) 16px}
 .px-music-framed .px-piano-case .px-key{height:100%;font-size:16px!important;padding-bottom:12px;gap:9px}.px-music-framed .px-piano-trim{height:16px}
 .px-black-keys .px-sharp{border-width:1px;border-bottom-width:5px;padding-bottom:9px;gap:6px;font-size:14px}.px-black-keys .px-sharp small{font-size:8px}
 .px-music-framed[data-extra-scene="bells"] .px-bells{gap:14px 10px;padding:15px 9px}
 .px-music-framed[data-extra-scene="bells"] .px-bells button>span{font-size:19px}
 .px-music-framed .px-toybox{width:min(100%,calc((var(--px-frame-height) - 56px)*.92));min-height:0;height:100%;margin:0}
 .px-music-framed .px-toybox .px-tambourine{top:8%;left:0;width:52%}.px-music-framed .px-toybox .px-jingle{top:0;right:1%;width:43%}
 .px-music-framed .px-toybox .px-castanets{top:auto;bottom:20%;right:13%;width:41%}
 .px-music-framed .px-toybox .px-instrument-label{font-size:12px}
}
@media(max-height:520px){
 .px-music-framed .px-shell{grid-template-rows:38px minmax(0,1fr);padding-top:4px}.px-music-framed .px-heading h2{font-size:18px}.px-music-framed .px-toolbar,.px-music-framed .px-local-sound{top:5px}
 .px-music-framed .px-piano-case{grid-template-rows:22px minmax(0,1fr) 10px;gap:3px;padding-top:4px}.px-music-framed .px-piano-panel{font-size:9px}.px-music-framed .px-piano-trim{height:10px}
 .px-music-framed .px-piano-case .px-key small,.px-music-framed .px-sharp small{display:none}.px-music-framed .px-piano-case .px-key{gap:4px;padding-bottom:5px}.px-music-framed .px-key-dot{height:9px;width:9px}
 .px-music-framed[data-extra-scene="bells"] .px-bells{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:1fr;gap:4px;padding:6px}.px-music-framed[data-extra-scene="bells"] .px-bells img{max-height:calc(var(--px-frame-height) - 105px)}.px-music-framed[data-extra-scene="bells"] .px-bells button{transform:translateY(-5px) rotate(-3deg)}.px-music-framed[data-extra-scene="bells"] .px-bells button:nth-child(even){transform:translateY(6px) rotate(3deg)}.px-music-framed[data-extra-scene="bells"] .px-bells button>span{font-size:14px}.px-music-framed[data-extra-scene="bells"] .px-bells small{display:none}
}
/* Keep sign names and the two-character Fa label on one line at narrow widths. */
.wood-nav.px-music-nav button{white-space:nowrap}
@media(max-width:700px){.wood-nav.px-music-nav button{font-size:14px;padding:10px 5px;min-height:48px}}
@media(max-width:360px){.px-music-framed .px-piano-case .px-key{font-size:13px!important}.px-music-framed .px-piano-case .px-key>span:not(.px-key-dot){white-space:nowrap}}
/* Keep the top-down kit together on tall phones instead of pulling drums apart. */
.px-music-framed .px-drum-kit{height:auto;aspect-ratio:1.06;max-height:100%;align-self:center}

@media(max-width:600px){.px-music-framed .px-toybox .px-tambourine{left:6%;width:49%}}

/* Instrument illustrations stay free of text, including older cached markup. */
:is([data-extra-scene="rhythm"],[data-extra-scene="drums"]) .px-instrument-label,:is([data-extra-scene="rhythm"],[data-extra-scene="drums"]) .px-toybox-front>span{display:none!important}

/* Four distinct, text-free toys. The triangle fills the lower-left gap. */
.px-music-framed .px-toybox .px-triangle{left:4%;top:auto;bottom:21%;width:min(38%,calc((var(--px-frame-height) - 60px)*.35));transform:rotate(-8deg)}
.px-music-framed .px-toybox .px-castanets{right:4%;width:35%}
@media(max-width:600px){
 .px-music-framed .px-toybox .px-triangle{left:3%;bottom:21%;width:min(42%,calc((var(--px-frame-height) - 56px)*.35))}
 .px-music-framed .px-toybox .px-castanets{right:3%;width:41%}
}
