/* A paper canvas, a treasure shelf, and a small friendly music studio. */
@keyframes toy-robot-dance{0%,100%{transform:translateX(-3px) rotate(-9deg)}25%{transform:translate(3px,-9px) rotate(8deg)}50%{transform:translate(-2px,0) rotate(-8deg)}75%{transform:translate(5px,-13px) rotate(9deg)}}
@keyframes toy-helicopter-hover{0%,100%{transform:translateY(1px) rotate(-2deg)}50%{transform:translateY(-23px) rotate(3deg)}}
@keyframes toy-helicopter-rotor{to{transform:translateX(-50%) rotate(360deg)}}
@keyframes toy-pinwheel-twirl{to{transform:rotate(360deg)}}
@keyframes toy-jack-pop{0%,100%{transform:translateY(8px) scaleY(.88)}25%,75%{transform:translateY(-6px) scaleY(1)}48%{transform:translateY(-28px) scaleY(1.08)}}
.stage-toy[data-toy-kind=toy_robot].is-on>img{animation:toy-robot-dance .72s ease-in-out infinite}
.stage-toy[data-toy-kind=toy_helicopter].is-on>img{animation:toy-helicopter-hover 2s ease-in-out infinite}
.stage-toy[data-toy-kind=toy_pinwheel].is-on>img{animation:toy-pinwheel-twirl 1.1s linear infinite;transform-origin:50% 50%}
.stage-toy[data-toy-kind=toy_jack_box].is-on>img{animation:toy-jack-pop 1.7s cubic-bezier(.2,.7,.3,1) infinite}
.stage-toy[data-toy-kind=toy_helicopter]{width:105px}
.toy-rotor{position:absolute;width:65px;height:8px;background:linear-gradient(90deg,#e5a64a,#7db8dc,#5d8aab,#e5a64a);border:2px solid #53738c;border-radius:50%;top:7px;left:50%;transform:translateX(-50%);pointer-events:none;opacity:.98}
.stage-toy[data-toy-kind=toy_helicopter].is-on .toy-rotor{animation:toy-helicopter-rotor .14s linear infinite}
@media(prefers-reduced-motion:reduce){.stage-toy[data-toy-kind^=toy_].is-on>img,.stage-toy .toy-rotor{animation:none!important}}
.reduce-motion .stage-toy[data-toy-kind^=toy_].is-on>img,.reduce-motion .toy-rotor{animation:none!important}

.band-settings{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:700;white-space:nowrap;color:inherit}
.band-settings select{min-height:40px;max-width:178px;font-size:16px;font-weight:700;padding:6px 8px;border:2px solid #91b48c;border-radius:9px;background:#fffdf0;color:#264c30}
.band-settings select:focus-visible{outline:3px solid #e9af40;outline-offset:2px}
.band-settings small{font-size:16px}
.area-music-strip{flex-wrap:wrap;gap:8px}
@media(max-width:750px){.area-music-strip{gap:5px}.band-settings{font-size:16px}.band-settings select{max-width:130px;font-size:16px;padding:4px}}

#play-area-view{animation:none;transform:none}.shelf-treasure{touch-action:pan-y!important}.shelf-treasure img{pointer-events:auto!important;touch-action:none}.area-expanded .shelf-treasure{touch-action:pan-x!important}
.area-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:0 0 24px}.area-heading .back-link{display:block;margin-bottom:18px}.area-heading h1{font-size:clamp(32px,4vw,49px);letter-spacing:-1.7px;margin:10px 0}.area-heading p{max-width:650px;line-height:1.6;color:#68715c;font-size:18px}.area-save{flex:none;font-size:16px;font-weight:bold;color:#53704c;background:#edf2df;padding:12px 15px;border-radius:20px;max-width:210px}.area-workspace{border:1px solid #d9dfca;border-radius:24px;background:#f5f3e6;overflow:hidden;box-shadow:0 6px 0 #d9e0c6}.area-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:15px 18px;border-bottom:1px solid #dce2ce;background:#fefbf0}.area-controls .button{font-size:16px;padding:12px 17px;min-height:44px}.area-controls .small-button,.move-buttons button{border:1px solid #d6ddc7;background:#fffefa;border-radius:10px;color:#365440;min-height:44px;font-size:16px;font-weight:800;padding:10px 12px;box-shadow:0 2px 0 #dce1cc}.area-controls button:disabled{opacity:.45}.area-volume{font-size:16px;display:flex;align-items:center;gap:7px;font-weight:bold;margin:0 8px}.area-volume input{width:90px;min-height:44px;accent-color:#497549}.area-studio{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:630px}.area-shelf{padding:20px 14px;display:flex;flex-direction:column;min-width:0;border-right:1px solid #d7dec7;background:#eff0df}.shelf-heading h2{font-size:20px;margin:8px 0;letter-spacing:-.5px}.shelf-heading a{font-size:16px;color:#426746;font-weight:bold}.shelf-heading .eyebrow{font-size:16px;letter-spacing:1.5px}.shelf-filters{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0 12px}.shelf-filters button{border:1px solid #d2dcc0;background:#fefdf4;border-radius:20px;min-height:34px;padding:7px 10px;font-size:16px;font-weight:bold;color:#436246}.shelf-filters button[aria-pressed=true]{background:#416a4b;color:#fff;border-color:#416a4b}.shelf-items{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start;max-height:438px;overflow:auto;padding:3px 6px 12px 2px;overscroll-behavior:contain}.shelf-treasure{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:9px 4px;min-height:108px;border:1px solid #d9dfc9;border-radius:12px;background:#fffdf5;color:#3e563d;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}.shelf-treasure img{width:63px;height:53px;object-fit:contain;pointer-events:none}.shelf-treasure b{font-size:16px;line-height:1.2}.shelf-treasure small{font-size:16px;color:#83856e}.shelf-treasure.is-placed{background:#e7ecd8;border-style:dashed}.shelf-treasure.is-armed{outline:3px solid #d9a844;outline-offset:-2px;background:#fff2c7}.area-place{font-size:16px;padding:12px 8px;min-height:44px;margin-top:12px;white-space:normal}.shelf-empty{font-size:18px;grid-column:1/-1;line-height:1.5}.area-canvas-wrap{min-width:0;display:flex;flex-direction:column;padding:0 18px 17px}.area-music-strip{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:52px;font-size:16px;color:#6d735b}.area-music-strip b{font-size:16px;color:#416747}.area-beats{display:flex;gap:5px}.area-beats i{width:8px;height:8px;border-radius:100%;background:#d5ddc6}.area-beats i.on{background:#d8a344;box-shadow:0 0 0 3px #f0deb3}.band-count{margin-left:auto;font-weight:bold;font-size:16px}.area-canvas{position:relative;min-height:430px;flex:1;overflow:hidden;border:2px solid #d7dec7;border-radius:18px;background-color:#fffefa;background-image:radial-gradient(#ced8c244 .7px,transparent .7px);background-size:20px 20px;box-shadow:inset 0 -40px 50px #f3efdd66;touch-action:pan-y;isolation:isolate}.area-canvas.has-backdrop{background-size:cover;background-position:center}.area-canvas.drag-over{border-color:#d7a648;box-shadow:inset 0 0 0 4px #f3d67677}.area-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#9b9f86;pointer-events:none;padding:20px}.area-empty[hidden]{display:none}.area-empty>span{font-size:45px;color:#d1c78d}.area-empty h2{font-size:24px;color:#718167;letter-spacing:-.8px}.area-empty p{font-size:18px;line-height:1.9}.area-pieces,.area-effects{position:absolute;inset:0;pointer-events:none}.stage-piece{position:absolute;transform:translate(-50%,-68%);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;background:transparent;border:0;color:#405b3f;cursor:grab;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;min-width:64px;min-height:70px;width:clamp(74px,9vw,104px);z-index:2}.stage-piece:active{cursor:grabbing}.stage-piece>img{width:100%;height:78px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 3px #49654026)}.stage-monkey{width:clamp(82px,11vw,118px);height:155px;z-index:1}.stage-avatar{display:block;position:relative;width:100%;height:126px;pointer-events:none;transform-origin:50% 90%}.stage-avatar>.paps-gear-body{height:100%;width:100%;object-fit:contain}.stage-avatar .paps-equipment-layer{position:absolute;inset:0;height:100%;width:100%;pointer-events:none}.monkey-hands{display:none;position:absolute;right:-5px;top:52%;font-size:23px;color:#dfac45;transform:rotate(12deg)}.stage-piece.is-performing .monkey-hands{display:block;animation:area-note var(--beat) infinite}.piece-name{position:relative;font-size:14px;font-weight:bold;border-radius:12px;padding:3px 7px;background:#fffbedeb;box-shadow:0 2px 4px #39564010;max-width:140px;white-space:nowrap}.piece-state{font-size:14px;padding:3px 6px;border-radius:10px;background:#f0f1e0;margin-top:3px;white-space:nowrap}.stage-instrument{z-index:3;width:clamp(73px,10vw,106px);transform:translate(-50%,-38%)}.stage-instrument[data-toy-kind=piano]{width:clamp(110px,15vw,145px)}.stage-instrument[data-toy-kind=upright_bass]{width:clamp(79px,11vw,115px)}.stage-instrument[data-toy-kind=upright_bass]>img{height:108px}.stage-instrument.is-on .piece-state{background:#47784d;color:#fff9e7}.stage-instrument.is-on>img{filter:drop-shadow(0 0 9px #efd07999)}.stage-instrument.is-queued .piece-state{background:#fbe3a2;color:#6e5925}.stage-clothes{z-index:4;min-height:35px;min-width:30px;width:32px;opacity:.6}.stage-clothes>img{height:25px}.stage-clothes .piece-name{display:none}.stage-clothes:hover,.stage-clothes:focus-visible,.stage-clothes.is-selected{opacity:1}.stage-piece.is-selected{outline:2px dashed #b28a37;outline-offset:6px;border-radius:15px}.stage-piece:focus-visible{outline:3px solid #517948;outline-offset:7px}.stage-monkey.is-performing .stage-avatar{animation:area-bop var(--beat) ease-in-out infinite}.stage-monkey.is-riding .stage-avatar{animation:area-pedal .6s ease-in-out infinite}.stage-monkey.is-dancing .stage-avatar{animation:area-dance .4s ease-in-out 5}.stage-toy[data-toy-kind=stationary_bike]{width:125px;z-index:3;transform:translate(-50%,-38%)}.stage-toy[data-toy-kind=stationary_bike].is-on>img{animation:area-pedal .3s infinite}.stage-toy[data-toy-kind=spinning_top].is-on>img{animation:area-spin 1s linear infinite}.stage-toy[data-toy-kind=train].is-on>img{animation:area-train 6s ease-in-out infinite}.stage-toy[data-toy-kind=kite].is-on>img{animation:area-kite 3s ease-in-out infinite}.stage-toy[data-toy-kind=bubble_machine].is-on>img{animation:area-bop 1.1s infinite}.stage-toy[data-toy-kind=football].toy-action>img{animation:area-ball .45s ease-in-out 6}.stage-toy[data-toy-kind=rocket].toy-action>img{animation:area-rocket 2.8s ease-in-out}.stage-toy[data-toy-kind=treasure].toy-action>img{animation:area-treasure .45s 6}.stage-piece.toy-action>img{animation:area-bop .5s 5}.area-effects{z-index:5;overflow:hidden}.area-particle{position:absolute;width:22px;height:22px;animation:area-float 3s var(--delay) ease-out forwards;font-size:23px;color:#d3a03c}.particle-bubble{border-radius:50%;border:1px solid #98bfd58c;background:radial-gradient(circle at 30% 27%,#fff 0 8%,transparent 14%),linear-gradient(130deg,#ffb7d333,#a9d8f833,#c1e9ab44);box-shadow:inset -3px -3px 5px #afd3e74d;width:29px;height:29px}.particle-treasure{color:hsl(var(--hue) 58% 55%)}.area-message{min-height:32px;font-size:18px;line-height:1.6;margin:14px 0 7px;color:#586c4d}.area-selection{display:flex;align-items:center;gap:15px;min-height:58px;padding:11px 13px;background:#fdfbf0;border:1px solid #dce0cc;border-radius:13px;font-size:16px;color:#6e775f}.area-selection>b{color:#40583f;white-space:nowrap}.area-selection>p{margin:0;line-height:1.6}.area-selection-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.area-selection select{padding:8px 7px;border:1px solid #d7ddc8;border-radius:8px;font-size:16px;max-width:160px;min-height:40px;background:#fffef9;color:#3c573c}.area-owner{font-size:16px;display:flex;align-items:center;gap:6px}.area-selection .small-button{font-size:16px;min-height:40px;white-space:nowrap;padding:8px}.move-buttons{display:flex;gap:3px}.move-buttons button{padding:5px 9px;min-width:36px;min-height:40px;font-size:16px}.area-help{display:flex;flex-wrap:wrap;gap:9px 25px;padding:14px 19px;font-size:16px;line-height:1.5;color:#7b8169;border-top:1px solid #d9dfca}.area-drag-ghost{position:fixed;z-index:1000;pointer-events:none;width:85px;height:95px;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-55%);opacity:.85;background:#fff9e8dd;border:2px solid #d6b04e;border-radius:15px;padding:6px;box-shadow:0 10px 25px #2b473733}.area-drag-ghost img{width:70px;height:60px;object-fit:contain}.area-drag-ghost b,.area-drag-ghost .piece-name{font-size:14px}.area-drag-ghost small,.area-drag-ghost .piece-state,.area-drag-ghost .paps-equipment-layer{display:none}.area-drag-ghost .stage-avatar{height:65px;width:70px}.area-expanded{position:fixed;inset:8px;z-index:100;display:flex;flex-direction:column;box-shadow:0 0 0 15px #3b513ade;border-radius:18px}.area-expanded .area-studio{min-height:0;flex:1;overflow:hidden}.area-expanded .area-canvas{min-height:120px}.area-expanded .shelf-items{max-height:none;flex:1}.area-expanded .area-controls{padding:8px 12px}.area-expanded .area-help{display:none}.area-expanded .area-selection{min-height:48px}.area-screen-open{overflow:hidden}.clubhouse-copy>.text-button{margin-top:8px}.shop-item>[data-area-shop]{font-size:16px;margin-top:8px}.shop-welcome .collection-count{display:block;margin-top:14px}
@keyframes area-bop{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}@keyframes area-note{0%,100%{transform:rotate(10deg) translateY(0)}50%{transform:rotate(-15deg) translateY(-5px)}}@keyframes area-pedal{0%,100%{transform:translateY(1px) rotate(-2deg)}50%{transform:translateY(-2px) rotate(2deg)}}@keyframes area-dance{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-15px) rotate(6deg)}}@keyframes area-spin{to{transform:rotateY(360deg)}}@keyframes area-train{0%,100%{transform:translateX(-25px)}50%{transform:translateX(25px)}}@keyframes area-kite{0%,100%{transform:translate(-5px,-5px) rotate(-7deg)}50%{transform:translate(7px,-23px) rotate(8deg)}}@keyframes area-ball{0%,100%{transform:translateY(0) scaleX(1.06)}50%{transform:translateY(-45px) scaleX(.98)}}@keyframes area-rocket{0%,100%{transform:translateY(0)}15%{transform:translateY(4px) rotate(-3deg)}60%{transform:translateY(-185px) rotate(8deg);opacity:1}75%{transform:translateY(-230px);opacity:0}90%{transform:translateY(0);opacity:0}}@keyframes area-treasure{50%{transform:scale(1.13) rotate(3deg)}}@keyframes area-float{0%{opacity:0;transform:translate(0,0) scale(.5)}12%{opacity:.9}100%{opacity:0;transform:translate(var(--drift),-210px) scale(1.4)}}
@media(max-width:1000px){.area-heading{align-items:flex-start}.area-save{font-size:16px;max-width:170px}.area-studio{grid-template-columns:195px minmax(0,1fr)}.area-shelf{padding:17px 10px}.area-canvas-wrap{padding:0 12px 12px}.area-selection{flex-direction:column;align-items:flex-start;gap:7px}.area-music-strip{font-size:16px;gap:9px}.band-count{margin-left:0}.stage-monkey{height:139px}.stage-avatar{height:110px}.area-controls{gap:6px;padding:12px}.area-controls .small-button{font-size:16px;padding:8px}.area-volume{margin:0}.area-volume input{width:64px}}
@media(max-width:700px){.area-heading{display:block;margin-bottom:17px}.area-heading h1{font-size:34px}.area-heading p{font-size:18px}.area-save{display:inline-block;max-width:none;padding:8px 12px}.area-studio{display:flex;flex-direction:column;min-height:0}.area-canvas-wrap{order:0}.area-shelf{order:1;border-right:0;border-top:1px solid #d7dec7;padding:12px}.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.shelf-heading .eyebrow{display:none}.shelf-heading h2{font-size:16px;margin:0}.shelf-filters{margin:9px 0}.shelf-items{grid-template-columns:repeat(4,minmax(0,1fr));max-height:240px;gap:6px;padding-bottom:5px}.shelf-treasure{min-height:88px;padding:6px 3px}.shelf-treasure img{width:52px;height:44px}.shelf-treasure b{font-size:16px}.shelf-treasure small{font-size:16px}.area-place{margin-top:8px;font-size:16px}.area-canvas{min-height:420px;flex:none}.area-controls .button{font-size:16px;padding:9px}.area-controls .small-button{font-size:16px}.area-volume{font-size:16px}.area-controls{gap:5px}.area-music-strip{min-height:46px;gap:5px 10px}.area-music-strip>span:first-child{font-size:16px}.area-message{font-size:18px}.area-empty h2{font-size:21px}.stage-monkey{width:86px;height:130px}.stage-avatar{height:100px}.stage-instrument{width:76px}.stage-piece>img{height:64px}.stage-instrument[data-toy-kind=piano]{width:105px}.stage-instrument[data-toy-kind=upright_bass]>img{height:90px}.piece-name{font-size:14px;padding:2px 5px}.piece-state{font-size:14px}.area-selection select{font-size:16px;max-width:128px}.area-help{font-size:16px;gap:6px;padding:12px}.area-expanded{inset:4px}.area-expanded .area-studio{display:grid;grid-template-rows:minmax(0,1fr) 180px;overflow:hidden}.area-expanded .area-canvas-wrap{min-height:0;overflow:hidden;padding:0 8px 5px}.area-expanded .area-canvas{flex:1;min-height:0}.area-expanded .area-shelf{min-height:0;padding:7px 10px;display:block;overflow:auto}.area-expanded .shelf-items{max-height:none;display:flex;overflow:auto;padding:3px 3px 8px;gap:7px}.area-expanded .shelf-treasure{flex:0 0 73px;min-height:82px}.area-expanded .area-place{padding:8px;font-size:16px;min-height:35px;margin-top:0}.area-expanded .area-message{min-height:24px;margin:5px 0;font-size:18px}.area-expanded .area-selection{min-height:40px;padding:5px;gap:3px;flex-direction:row;flex-wrap:wrap}.area-expanded .area-selection>p{font-size:18px}.area-expanded .area-music-strip{min-height:35px}.area-expanded .area-controls{padding:6px;gap:4px}.area-expanded .area-controls button{min-height:36px}.area-expanded .shelf-heading{display:none}.area-expanded .shelf-filters{margin:0 0 3px}.area-expanded .area-selection .small-button,.area-expanded .area-selection select,.area-expanded .move-buttons button{min-height:32px;padding:4px 6px}}
@media(prefers-reduced-motion:reduce){.stage-piece *, .area-particle{animation:none!important}.area-particle{display:none}}.reduce-motion .stage-piece *,.reduce-motion .area-particle{animation:none!important}.reduce-motion .area-particle{display:none}

/* Tune selection stays above the enlarged studio and works without native dialog APIs. */
.area-song-library{margin-top:30px;padding:24px;border:1px solid #d6ddc7;border-radius:22px;background:#fffdf4;color:#3c573c}.area-song-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.area-song-heading h2{font-size:26px;margin:8px 0}.area-song-heading p{max-width:630px;font-size:18px;line-height:1.6;margin:0 0 18px;color:#69755d}.area-song-heading>span{white-space:nowrap;font-size:16px;font-weight:bold;background:#edf2df;padding:8px 12px;border-radius:14px}.area-song-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.area-song-form label{font-size:16px;font-weight:bold}.area-song-form input{min-height:44px;min-width:140px;max-width:100%;padding:10px 12px;border:1px solid #cbd7b8;border-radius:10px;font:inherit;font-size:16px}.area-song-form .button{min-height:44px;font-size:16px}.area-songs{display:grid;gap:12px;margin:20px 0;max-height:450px;overflow:auto}.area-song{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;background:#f1f5e6;border:1px solid #dae3c7;border-radius:14px;min-width:0}.area-song h3{font-size:16px;overflow-wrap:anywhere;margin:0 0 6px}.area-song p,.area-song small{font-size:18px;line-height:1.5;margin:0;color:#68775d}.area-song small{display:block;margin-top:7px;color:#38643f;font-weight:800}.area-song-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none;max-width:280px}.area-song-actions .small-button{min-height:44px;font-size:16px;border-radius:10px;padding:9px 12px;border:1px solid #b9cba6;background:#fffdf4;color:#36533a;font-weight:bold}.area-song-actions .text-button{min-height:44px}.area-song-empty{font-size:18px;line-height:1.6;color:#758267}.area-song-note{font-size:18px;color:#7e846d;margin:12px 0 0;line-height:1.6}.area-song-form :focus-visible,.area-song-actions :focus-visible,.area-volume-options :focus-visible{outline:3px solid #d79432;outline-offset:3px}.area-instrument-volume{border:0;padding:0;margin:20px 0 0}.area-instrument-volume legend{font-size:16px;font-weight:bold;margin-bottom:9px}.area-volume-options{display:flex;gap:8px}.area-volume-options button{flex:1;min-height:44px;border:2px solid #d5dfc2;border-radius:12px;background:#f4f7e8;color:#344f37;font:inherit;font-size:16px;font-weight:800;cursor:pointer}.area-volume-options button[aria-pressed=true]{background:#41694a;color:#fff;border-color:#41694a}.area-expanded .area-canvas-wrap{overflow:auto}
@media(max-width:700px){.area-song-library{padding:18px}.area-song{align-items:flex-start;flex-direction:column}.area-song-actions{max-width:none}.area-song-form input{flex:1}.area-song-heading{gap:10px}.area-song-heading h2{font-size:24px}}
.area-tune-open{overflow:hidden}
.area-tune-picker[hidden]{display:none}
.area-tune-picker{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:18px;background:#19362bbd}
.area-tune-panel{width:100%;max-width:440px;max-height:calc(100vh - 36px);overflow:auto;background:#fffdf4;border:3px solid #d5dfbf;border-radius:24px;padding:25px;box-shadow:0 18px 70px #0a221b66;color:#354c32}
.area-tune-panel h2{margin:8px 0;font-size:27px}
.area-tune-panel>p{font-size:18px;line-height:1.65;margin:0 0 18px}
.area-tune-options{display:grid;gap:10px}
.area-tune-options button{display:grid;grid-template-columns:48px minmax(0,1fr);text-align:left;align-items:center;column-gap:12px;min-height:76px;padding:12px;border:2px solid #d5dfc2;background:#f4f7e8;color:#344f37;border-radius:15px;font:inherit;cursor:pointer}
.area-tune-options button>span{grid-row:span 2;font-size:23px;text-align:center;color:#658547}
.area-tune-options button>b{font-size:16px}.area-tune-options button>small{font-size:16px;color:#728064;margin-top:4px}
.area-tune-options button:hover,.area-tune-options button.is-current{background:#e4f0ce;border-color:#789e50}
.area-tune-options button:focus-visible,.area-tune-actions button:focus-visible{outline:3px solid #d79432;outline-offset:3px}
.area-tune-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:20px}.area-tune-actions button{min-height:44px}
.stage-instrument .piece-state{max-width:125px;white-space:normal;text-align:center;line-height:1.25}
@media(max-width:540px){.area-tune-picker{padding:12px}.area-tune-panel{padding:19px;max-height:calc(100vh - 24px)}.area-tune-panel h2{font-size:24px}.area-tune-options button{min-height:72px}}

/* Native full screen and its window-filling fallback share the same studio. */
.area-controls .area-fullscreen-button{border:2px solid #497549;background:#fff2c7;color:#284c35;font-weight:900}
.area-fullscreen-button:focus-visible{outline:3px solid #d79432;outline-offset:3px}
#play-area-view.area-fullscreen{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;width:100%;max-width:none;height:100%;height:100dvh;min-height:0;margin:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);overflow:hidden;background:#f5f3e6;color:#365440}
.area-fullscreen>.area-heading{display:none}
.area-fullscreen .area-expanded{position:relative;inset:auto;z-index:auto;flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}
.area-fullscreen .area-controls{flex-shrink:0;padding:9px 12px}
.area-fullscreen .area-controls button{min-height:44px}
.area-fullscreen .area-studio{min-height:0;flex:1;overflow:hidden}
.area-fullscreen .area-shelf{min-height:0;overflow:hidden}
.area-fullscreen .shelf-heading,.area-fullscreen .shelf-filters,.area-fullscreen .area-place{flex-shrink:0}
.area-fullscreen .shelf-items{min-height:0;max-height:none;flex:1}
.area-fullscreen .area-canvas-wrap{min-height:0;overflow:auto;overscroll-behavior:contain}
.area-fullscreen .area-music-strip,.area-fullscreen .area-message,.area-fullscreen .area-selection{flex-shrink:0}
.area-fullscreen>.area-song-library{display:none}
.area-fullscreen.area-songs-open .area-workspace{flex:none}
.area-fullscreen.area-songs-open .area-studio{display:none}
.area-fullscreen.area-songs-open>.area-song-library{display:block;flex:1;min-height:0;margin:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain}
.area-fullscreen .area-tune-panel{max-height:calc(100dvh - 36px)}
@media(max-width:700px){
  .area-fullscreen .area-expanded .area-studio{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 160px}
  .area-fullscreen .area-expanded .area-shelf{display:grid;grid-template-columns:minmax(0,1fr) 105px;grid-template-rows:auto minmax(0,1fr);gap:4px 8px;overflow:hidden;padding:7px 10px}
  .area-fullscreen .shelf-filters{grid-column:1/-1;margin:0}
  .area-fullscreen .shelf-items{grid-column:1;grid-row:2;display:flex;overflow:auto;padding:3px 3px 5px;gap:7px}
  .area-fullscreen .shelf-treasure{flex:0 0 73px;min-height:82px}
  .area-fullscreen .area-place{grid-column:2;grid-row:2;align-self:center;min-height:44px;margin:0;padding:8px;font-size:16px}
  .area-fullscreen .area-controls{gap:5px;padding:7px}
}
@media(max-width:700px) and (max-height:550px){
  .area-fullscreen .area-expanded .area-studio{grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .area-fullscreen .area-expanded .area-shelf{order:0;display:flex;flex-direction:column;border-top:0;border-right:1px solid #d7dec7}
  .area-fullscreen .area-canvas-wrap{order:1}
  .area-fullscreen .shelf-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .area-fullscreen .shelf-treasure{min-width:0}
  .area-fullscreen .area-place{align-self:stretch;margin-top:4px}
}

/* Labels appear on demand so the musician stays visible behind the instrument. */
.stage-instrument .piece-name,.stage-instrument .piece-state{position:absolute;left:50%;transform:translateX(-50%);opacity:0;visibility:hidden;pointer-events:none;white-space:nowrap;max-width:180px;z-index:5}
.stage-instrument .piece-name{top:calc(100% + 3px)}
.stage-instrument .piece-state{top:calc(100% + 24px);margin:0}
.stage-instrument.is-selected .piece-name,.stage-instrument.is-selected .piece-state,.stage-instrument:focus-visible .piece-name,.stage-instrument:focus-visible .piece-state{opacity:1;visibility:visible}
@media(hover:hover){.stage-instrument:hover .piece-name,.stage-instrument:hover .piece-state{opacity:1;visibility:visible}}

.stage-monkey.is-drop-target{outline:3px dashed #d39b37;outline-offset:4px;border-radius:22px;background:#f9e6a044}

/* Off-canvas drops return placed treasures to the shelf. */
.area-canvas.drag-remove{border-color:#b75f42;box-shadow:inset 0 0 0 4px #b75f4226}
.area-drag-ghost.is-removing{border-color:#b75f42;background:#fff1e8;opacity:1}
.area-drag-hint{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);padding:7px 10px;border-radius:10px;background:#3e6547;color:#fff;font-size:18px;font-weight:800;white-space:nowrap;box-shadow:0 3px 8px #29453233}
.area-drag-ghost.is-removing .area-drag-hint{background:#974b34}

/* Real riders share their equipment's moving rig; buttons remain independent. */
.playground-group{position:absolute;width:240px;height:200px;transform:translate(-50%,-65%) scale(var(--playground-scale,1));transform-origin:50% 65%;z-index:2;pointer-events:none}
.playground-group.is-drop-target{outline:3px dashed #d39b37;outline-offset:7px;border-radius:24px;background:#f9e6a044}
.playground-art{position:absolute;inset:0;width:240px;height:200px;pointer-events:none;overflow:visible}
.stage-piece.stage-playground{inset:0;width:240px;height:200px;min-height:0;transform:none;display:block;z-index:1;pointer-events:auto}
.stage-playground .piece-name,.stage-playground .piece-state{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;pointer-events:none}
.stage-playground .piece-name{top:179px;font-size:14px}.stage-playground .piece-state{top:199px;margin:0;font-size:14px;background:#fffaf0}
.playground-rig{position:absolute;inset:0;width:240px;height:200px;z-index:2;pointer-events:none;animation-play-state:paused!important;animation-delay:calc(var(--ride-phase,0) * var(--ride-duration,2.5s) * -1)}
.playground-group.is-on .playground-rig{animation-play-state:running!important}
.playground-seat{position:absolute;width:0;height:0;pointer-events:none}
.stage-monkey.mounted-piece{left:0;top:0;width:68px;height:82px;min-height:0;min-width:0;transform:translate(-50%,-100%);z-index:3;pointer-events:auto}
.stage-monkey.mounted-piece .stage-avatar{height:82px;width:68px}
.mounted-piece .piece-name{position:absolute;left:50%;top:-21px;transform:translateX(-50%);white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none}
.mounted-piece:focus-visible .piece-name,.mounted-piece.is-selected .piece-name{opacity:1;visibility:visible}
@media(hover:hover){.mounted-piece:hover .piece-name{opacity:1;visibility:visible}}
.stage-instrument.mounted-piece{left:10px;top:-32px;width:38px;height:32px;min-width:32px;min-height:32px;z-index:4;pointer-events:auto}
.stage-instrument.mounted-piece>img{height:31px}.stage-instrument.mounted-piece .piece-state{top:34px}
.stage-clothes.mounted-piece{left:36px;top:-65px;width:22px;height:24px;min-width:22px;min-height:24px;z-index:4;pointer-events:auto}.stage-clothes.mounted-piece>img{height:18px}
.playground-empty-seat{position:absolute;left:-11px;top:-27px;width:22px;height:22px;border:2px dashed #72926a;border-radius:50%;display:grid;place-items:center;color:#4b6c47;font-size:18px;background:#fff9e6dd;pointer-events:none}
.rig-bounce{animation:playground-bounce var(--ride-duration,2.5s) ease-in-out infinite}
.rig-swing{animation:playground-swing var(--ride-duration,2.5s) ease-in-out infinite}
.rig-seesaw{animation:playground-seesaw var(--ride-duration,2.5s) ease-in-out infinite}
.rig-slide{animation:playground-slide var(--ride-cycle,5s) linear infinite}
.rig-round{animation:playground-round var(--ride-cycle,5s) linear infinite}
.rig-round>.playground-seat{animation:playground-round-upright var(--ride-cycle,5s) linear infinite;transform-origin:0 0;animation-play-state:paused!important}
.playground-group.is-on .rig-round>.playground-seat{animation-play-state:running!important}
.playground-group[data-playground-kind="merry_go_round"] .stage-monkey.mounted-piece{width:53px;height:64px}
.playground-group[data-playground-kind="merry_go_round"] .mounted-piece .stage-avatar{width:53px;height:64px}
.rig-spring{animation:playground-spring var(--ride-duration,2.5s) ease-in-out infinite}
@keyframes playground-bounce{0%,50%,100%{transform:translateY(0)}25%,75%{transform:translateY(-59px)}}
@keyframes playground-swing{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}
@keyframes playground-seesaw{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
@keyframes playground-slide{0%,100%{transform:translate(0,0)}12%{transform:translate(0,-29px)}24%{transform:translate(0,-60px)}36%{transform:translate(0,-104px)}44%{transform:translate(30px,-107px)}70%{transform:translate(133px,1px)}82%{transform:translate(135px,1px)}94%{transform:translate(0,1px)}}
@keyframes playground-round{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes playground-round-upright{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
@keyframes playground-spring{0%,100%{transform:rotate(-9deg) translateY(-2px)}50%{transform:rotate(9deg) translateY(3px)}}
@media(prefers-reduced-motion:reduce){.playground-rig,.rig-round>.playground-seat{animation:none!important}}
.reduce-motion .playground-rig,.reduce-motion .rig-round>.playground-seat{animation:none!important}
.area-playback-paused .playground-group.is-on .playground-rig,.area-playback-paused .playground-group.is-on .rig-round>.playground-seat,.area-playback-paused .stage-piece img,.area-playback-paused .stage-avatar,.area-playback-paused .monkey-hands,.area-playback-paused .toy-rotor{animation-play-state:paused!important}

.stage-instrument[data-toy-kind="drum_kit"]:not(.mounted-piece){width:76px}
@media(max-width:700px){.stage-instrument[data-toy-kind="drum_kit"]:not(.mounted-piece){width:68px}}

/* Fill Party has its own fills; keep the optional control visibly unavailable. */
[data-area-action="drum-fill"]:disabled{background:#e3e4df;color:#777c72;border-color:#c9cdc4;box-shadow:none;opacity:.65;cursor:default}

/* Instruments use the same responsive proportions as their musician, not the canvas height. */
.area-workspace{--musician-scale:1}
@media(max-width:1000px){.area-workspace{--musician-scale:.875}}
@media(max-width:700px){.area-workspace{--musician-scale:.8}}
.stage-instrument{
  --instrument-width:78px;--instrument-height:60px;--instrument-image-height:58px;
  --instrument-x:0px;--instrument-y:-34px;--instrument-anchor-y:0px;
  --instrument-pose-y:0px;
  --instrument-scale:var(--musician-scale,1);
}
.stage-piece.stage-instrument[data-toy-kind]{
  width:calc(var(--instrument-width) * var(--instrument-scale));
  height:calc(var(--instrument-height) * var(--instrument-scale));
  min-width:44px;min-height:44px;justify-content:center;
  transform:translate(calc(-50% + var(--instrument-x) * var(--instrument-scale)),calc(-50% + (var(--instrument-y) + var(--instrument-pose-y)) * var(--instrument-scale) + var(--instrument-anchor-y)));
}
.stage-piece.stage-instrument>img{width:100%;height:calc(var(--instrument-image-height) * var(--instrument-scale));object-fit:contain;flex:none}
/* Guitars sit across the waist and chest; little string instruments stay proportionate. */
.stage-instrument:is([data-toy-kind="guitar"],[data-toy-kind="electric_guitar"],[data-toy-kind="slide_guitar"],[data-toy-kind="resonator_guitar"],[data-toy-kind="bass"]){--instrument-width:90px;--instrument-height:70px;--instrument-image-height:68px;--instrument-x:5px;--instrument-y:-34px}
.stage-instrument[data-toy-kind="ukulele"]{--instrument-width:74px;--instrument-height:58px;--instrument-image-height:56px;--instrument-x:4px;--instrument-y:-35px}
.stage-instrument[data-toy-kind="banjo"]{--instrument-width:72px;--instrument-height:72px;--instrument-image-height:70px;--instrument-x:6px;--instrument-y:-32px}
.stage-instrument[data-toy-kind="mandolin"]{--instrument-width:64px;--instrument-height:64px;--instrument-image-height:62px;--instrument-x:5px;--instrument-y:-36px}
.stage-instrument:is([data-toy-kind="violin"],[data-toy-kind="fiddle"]){--instrument-width:80px;--instrument-height:62px;--instrument-image-height:60px;--instrument-x:10px;--instrument-y:-42px}
.stage-instrument[data-toy-kind="accordion"]{--instrument-width:86px;--instrument-height:66px;--instrument-image-height:64px;--instrument-y:-35px}
/* The endpins and floor instruments reach the monkey's feet while the necks reach its hands. */
.stage-instrument[data-toy-kind="upright_bass"]{--instrument-width:144px;--instrument-height:112px;--instrument-image-height:110px;--instrument-x:24px;--instrument-y:-28px}
.stage-instrument[data-toy-kind="cello"]{--instrument-width:128px;--instrument-height:98px;--instrument-image-height:96px;--instrument-x:18px;--instrument-y:-24px}
.stage-instrument[data-toy-kind="harp"]{--instrument-width:112px;--instrument-height:86px;--instrument-image-height:84px;--instrument-x:16px;--instrument-y:-18px}
.stage-instrument[data-toy-kind="piano"]{--instrument-width:120px;--instrument-height:90px;--instrument-image-height:88px;--instrument-y:-14px}
.stage-instrument[data-toy-kind="drum_kit"]{--instrument-width:136px;--instrument-height:102px;--instrument-image-height:100px;--instrument-y:-12px}
.stage-instrument[data-toy-kind="bass_drum"]{--instrument-width:104px;--instrument-height:80px;--instrument-image-height:78px;--instrument-y:-8px}
.stage-instrument[data-toy-kind="drums"]{--instrument-width:92px;--instrument-height:72px;--instrument-image-height:70px;--instrument-y:-14px}
.stage-instrument[data-toy-kind="steel_drum"]{--instrument-width:90px;--instrument-height:70px;--instrument-image-height:68px;--instrument-y:-16px}
.stage-instrument[data-toy-kind="xylophone"]{--instrument-width:100px;--instrument-height:76px;--instrument-image-height:74px;--instrument-y:-24px}
/* Mouthpieces meet the face; hand percussion rests at hand height. */
.stage-instrument[data-toy-kind="horn"]{--instrument-width:84px;--instrument-height:66px;--instrument-image-height:64px;--instrument-x:12px;--instrument-y:-46px}
.stage-instrument[data-toy-kind="saxophone"]{--instrument-width:86px;--instrument-height:68px;--instrument-image-height:66px;--instrument-x:16px;--instrument-y:-40px}
.stage-instrument[data-toy-kind="flute"]{--instrument-width:86px;--instrument-height:66px;--instrument-image-height:64px;--instrument-x:-23px;--instrument-y:-46px}
.stage-instrument[data-toy-kind="clarinet"]{--instrument-width:68px;--instrument-height:68px;--instrument-image-height:66px;--instrument-x:12px;--instrument-y:-45px}
.stage-instrument[data-toy-kind="harmonica"]{--instrument-width:42px;--instrument-height:44px;--instrument-image-height:26px;--instrument-y:-65px}
.stage-instrument[data-toy-kind="maracas"]{--instrument-width:66px;--instrument-height:52px;--instrument-image-height:50px;--instrument-x:12px;--instrument-y:-35px}
.stage-instrument:is([data-toy-kind="cymbals"],[data-toy-kind="tambourine"],[data-toy-kind="handbells"]){--instrument-width:62px;--instrument-height:50px;--instrument-image-height:48px;--instrument-x:10px;--instrument-y:-38px}
/* Keep both microphone sizes; move their heads up to singing height. */
.stage-instrument:is([data-toy-kind="microphone"],[data-toy-kind="choir_microphone"]){--instrument-width:60px;--instrument-height:52px;--instrument-image-height:48px;--instrument-x:16px;--instrument-y:-58px}
/* Round monkey illustrations have a lower mouth and shorter legs than the tall portraits. */
.stage-instrument[data-musician-shape="round"]{--instrument-pose-y:18px}
.stage-instrument[data-musician-shape="round"]:is([data-toy-kind="microphone"],[data-toy-kind="choir_microphone"],[data-toy-kind="horn"],[data-toy-kind="saxophone"],[data-toy-kind="flute"],[data-toy-kind="clarinet"],[data-toy-kind="harmonica"]){--instrument-pose-y:40px}
.stage-instrument[data-musician-shape="round"]:is([data-toy-kind="violin"],[data-toy-kind="fiddle"]){--instrument-pose-y:35px}
.stage-instrument[data-musician-shape="round"]:is([data-toy-kind="upright_bass"],[data-toy-kind="cello"],[data-toy-kind="harp"],[data-toy-kind="piano"],[data-toy-kind="drum_kit"],[data-toy-kind="bass_drum"],[data-toy-kind="drums"],[data-toy-kind="steel_drum"]){--instrument-pose-y:-12px}
.stage-instrument[data-musician-shape="round"][data-toy-kind="piano"]{--instrument-pose-y:18px}
.stage-instrument[data-musician-shape="round"][data-toy-kind="drum_kit"]{--instrument-pose-y:12px}
/* Riders keep the same playing poses, scaled to the character sitting on the equipment. */
.stage-piece.stage-instrument.mounted-piece[data-toy-kind]{--instrument-scale:.65;--instrument-anchor-y:-18px;left:0;top:0;min-width:32px;min-height:32px}
.playground-group[data-playground-kind="merry_go_round"] .stage-piece.stage-instrument.mounted-piece[data-toy-kind]{--instrument-scale:.5;--instrument-anchor-y:-14px}
.stage-instrument.mounted-piece .piece-state{top:calc(100% + 24px)}

/* Bicycles and skipping activities use the same saved, draggable rider controls. */
.rig-cycle{animation:playground-cycle var(--ride-cycle,5s) ease-in-out infinite}
.bicycle-wheel,.bicycle-crank{transform-box:fill-box;transform-origin:center;animation:bicycle-spin var(--skip-duration,1.25s) linear infinite;animation-play-state:paused}
.playground-group.is-on .bicycle-wheel,.playground-group.is-on .bicycle-crank{animation-play-state:running}
.cyclist-legs{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.is-cyclist:not([data-toy-kind="pap"]) .paps-gear-body{clip-path:polygon(0 0,100% 0,100% 70%,0 70%)}
.cycle-leg{transform-origin:32px 54px;animation:cycle-knee var(--skip-duration,1.25s) ease-in-out infinite;animation-play-state:paused}
.cycle-leg-back{animation-delay:calc(var(--skip-duration,1.25s) * -.5)}
.playground-group.is-on .cycle-leg{animation-play-state:running}
.playground-group[data-playground-kind="bicycle"] .stage-monkey .stage-avatar{animation:none}
.skip-rope-layer.rope-back{z-index:1}.skip-rope-layer.rope-front{z-index:4}
.skip-rope{transform-origin:120px 119px;animation:skip-turn var(--skip-duration,1.25s) linear infinite,skip-front-visibility var(--skip-duration,1.25s) steps(1,end) infinite;animation-play-state:paused;animation-delay:calc(var(--rope-phase,0) * var(--skip-duration,1.25s) * -.5)}
[data-playground-kind="jump_rope"] .skip-rope{transform-origin:120px 116px}
.rope-back .skip-rope{animation-name:skip-turn,skip-back-visibility}
.skip-rope.rope-1{animation-direction:reverse,normal}
.playground-group.is-on .skip-rope{animation-play-state:running}
.rig-skip{animation:monkey-skip var(--skip-duration,1.25s) ease-in-out infinite;animation-delay:calc(var(--skip-phase,0) * var(--skip-duration,1.25s) * -1)}
.rig-turn-left{animation:rope-turner-left var(--skip-duration,1.25s) ease-in-out infinite}
.rig-turn-right{animation:rope-turner-right var(--skip-duration,1.25s) ease-in-out infinite}
.playground-group:is([data-playground-kind="group_jump_rope"],[data-playground-kind="double_dutch"]) .mounted-piece.stage-monkey{width:56px;height:76px}
.playground-group:is([data-playground-kind="group_jump_rope"],[data-playground-kind="double_dutch"]) .mounted-piece .stage-avatar{width:56px;height:76px}
.playground-group[data-playground-kind="double_dutch"] .rig-skip .stage-monkey{width:49px;height:70px}
.playground-group[data-playground-kind="double_dutch"] .rig-skip .stage-avatar{width:49px;height:70px}
.playground-group[data-playground-kind="double_dutch"] .rig-skip{animation-duration:calc(var(--skip-duration,1.25s) * .5);animation-delay:calc(var(--skip-duration,1.25s) * -.25)}
.playground-group:is([data-playground-kind="jump_rope"],[data-playground-kind="group_jump_rope"],[data-playground-kind="double_dutch"]) .mounted-piece .piece-name{font-size:14px;background:#fffaf0e8;border-radius:5px;padding:2px}
.area-selection [data-area-action="playground-toggle"]:disabled{opacity:.6;cursor:default}
@keyframes playground-cycle{0%,100%{transform:translateX(-16px)}50%{transform:translateX(16px)}}
@keyframes bicycle-spin{to{transform:rotate(360deg)}}
@keyframes cycle-knee{0%,100%{transform:rotate(-16deg)}50%{transform:rotate(20deg)}}
@keyframes skip-turn{0%,100%{transform:scaleY(1)}25%,75%{transform:scaleY(0)}50%{transform:scaleY(-.85)}}
@keyframes skip-front-visibility{0%,75%,100%{opacity:0}25%{opacity:1}}
@keyframes skip-back-visibility{0%,75%,100%{opacity:1}25%{opacity:0}}
@keyframes monkey-skip{0%,25%,80%,100%{transform:translateY(0)}50%{transform:translateY(-29px)}65%{transform:translateY(-13px)}}
@keyframes rope-turner-left{0%,100%{transform:translate(0,-2px) rotate(-1deg)}50%{transform:translate(0,2px) rotate(1deg)}}
@keyframes rope-turner-right{0%,100%{transform:translate(0,2px) rotate(1deg)}50%{transform:translate(0,-2px) rotate(-1deg)}}

/* One raised foreground stick layer follows every drummer and instrument. */
.stage-piece.stage-instrument.has-drumsticks{z-index:12;overflow:visible}
.stage-instrument.has-drumsticks>img{position:relative;z-index:0}
.stage-monkey.has-drums .monkey-hands{display:none}
.stage-monkey.is-drumming .stage-avatar{animation:drummer-bop var(--beat,.625s) ease-in-out infinite}
.drummer-arms{position:absolute;top:0;left:0;width:100%;height:calc(var(--instrument-image-height) * var(--instrument-scale));z-index:2;overflow:visible;pointer-events:none}
.drum-arm{transform:rotate(0deg)}
.stage-instrument.has-drumsticks.is-on .drum-left{animation:drum-left-strike var(--beat,.625s) ease-in-out infinite}
.stage-instrument.has-drumsticks.is-on .drum-right{animation:drum-right-strike var(--beat,.625s) ease-in-out infinite}
.stage-instrument.has-drumsticks.is-on>img{animation:none}
.stage-instrument.has-drumsticks.is-on[data-drum-hit="left"] .drum-left,.stage-instrument.has-drumsticks.is-on[data-drum-hit="right"] .drum-right{filter:drop-shadow(0 0 2px #efc45d)}
@keyframes drum-left-strike{0%,45%,100%{transform:rotate(0deg)}22%{transform:rotate(110deg)}}
@keyframes drum-right-strike{0%,50%,100%{transform:rotate(0deg)}72%{transform:rotate(-110deg)}}
@keyframes drummer-bop{0%,100%{transform:translateY(0)}30%,80%{transform:translateY(1.5px)}}
.area-playback-paused .skip-rope,.area-playback-paused .bicycle-wheel,.area-playback-paused .bicycle-crank,.area-playback-paused .cycle-leg,.area-playback-paused .drum-arm{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.skip-rope,.bicycle-wheel,.bicycle-crank,.cycle-leg,.drum-arm{animation:none!important}.rope-front .skip-rope{opacity:0}}
.reduce-motion .skip-rope,.reduce-motion .bicycle-wheel,.reduce-motion .bicycle-crank,.reduce-motion .cycle-leg,.reduce-motion .drum-arm{animation:none!important}
.reduce-motion .rope-front .skip-rope{opacity:0}
.skipper-arms{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.rope-hand{animation:turn-rope-hand var(--skip-duration,1.25s) linear infinite;animation-play-state:paused}
.rope-hand-right{animation-direction:reverse}
.playground-group.is-on .rope-hand{animation-play-state:running}
.area-playback-paused .rope-hand{animation-play-state:paused!important}
@keyframes turn-rope-hand{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
@media(prefers-reduced-motion:reduce){.rope-hand{animation:none!important}}
.reduce-motion .rope-hand{animation:none!important}

/* Seven choices fit a normal window; very short screens and zoom can still scroll. */
.area-tune-panel{box-sizing:border-box;max-width:620px;padding:18px;max-height:calc(100dvh - 24px)}
.area-tune-panel .eyebrow{font-size:.72rem}.area-tune-panel h2{font-size:1.35rem;line-height:1.2;margin:5px 0 8px}.area-tune-panel>p{font-size:.9rem;line-height:1.35;margin:0 0 10px}
.area-tune-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.area-tune-options button{min-height:58px;grid-template-columns:28px minmax(0,1fr);column-gap:6px;padding:6px 8px;border-radius:11px}.area-tune-options button>span{font-size:1rem}.area-tune-options button>b{font-size:.92rem;line-height:1.2}.area-tune-options button>small{font-size:.73rem;line-height:1.2;margin-top:2px;color:#4a6042}
.area-tune-panel .area-instrument-volume{margin-top:12px}.area-tune-panel .area-instrument-volume legend{font-size:.85rem;margin-bottom:6px}.area-tune-panel .area-volume-options button{font-size:.9rem;min-height:40px}.area-tune-panel .area-tune-actions{margin-top:12px;gap:6px}.area-tune-panel .area-tune-actions button{font-size:.85rem;min-height:40px;padding:7px 10px}
@media(max-width:440px){.area-tune-picker{padding:8px}.area-tune-panel{padding:12px;max-height:calc(100dvh - 16px)}.area-tune-options{grid-template-columns:minmax(0,1fr);gap:5px}.area-tune-options button{min-height:44px;grid-template-columns:30px minmax(0,1fr) auto;gap:6px}.area-tune-options button>span{grid-row:auto}.area-tune-options button>small{max-width:68px;text-align:right;font-size:.68rem}.area-tune-panel>p{font-size:.85rem}}

/* Named songs are separate from mixable melodic loops. */
.area-tune-groups{display:grid;gap:20px;margin:20px 0}.area-tune-group{border:2px solid #c5ddcf;border-radius:18px;padding:16px;background:#f3faf4}.area-tune-group-songs{border-color:#c7b6df;background:#f8f4fd}.area-tune-group h3{margin:0 0 8px;font-size:1.25rem;line-height:1.3}.area-tune-group p{margin:0 0 14px;line-height:1.5}.area-tune-group .area-tune-options{margin:0}.area-song-switch-actions{display:grid;gap:12px;margin:24px 0}.area-song-switch-actions button{min-height:52px;white-space:normal}.area-song-confirm strong{display:inline}.area-tune-group button small{white-space:normal}.area-tune-group .area-tune-options button{min-height:52px}.area-tune-group .area-tune-options b{font-size:16px}@media(max-width:480px){.area-tune-group{padding:12px}.area-tune-group .area-tune-options{grid-template-columns:1fr}.area-tune-panel{max-width:100%}}
