/* v45: real responsive controls; artwork is decorative and never replaces music notation. */
:root{--forest:#243b32;--ivory:#f5efe6;--ochre:#d8a75a;--berry:#8e3b46;--terra:#b85f43;--olive:#8a9c8c}*{box-sizing:border-box}button,select{touch-action:manipulation}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8e3b46!important;outline-offset:3px}button:disabled{cursor:default}body{color:var(--forest);background:#f5efe6!important}body[data-look=playful]{background:radial-gradient(ellipse at 0 10%,#eed9b67a,transparent 65%),radial-gradient(ellipse at 100% 85%,#c5cdb74d,transparent 60%),#f5efe6!important}body[data-look=clean]{background:#f4f4ef!important}
.worldSprite{display:inline-block;flex:0 0 auto;width:76px;height:76px;background-image:url('assets/world-atlas-v45.webp');background-size:300% 200%;background-repeat:no-repeat;vertical-align:middle;pointer-events:none}.worldSprite.drum{background-position:0 0}.worldSprite.shaker{background-position:50% 0}.worldSprite.marimba{background-position:100% 0}.worldSprite.seed{background-position:0 100%}.worldSprite.pebble{background-position:50% 100%}.worldSprite.sprout{background-position:100% 100%}.rfBuddy .worldSprite{width:100%;height:100%}.rfBuddy{background:none!important;overflow:visible}.rfBuddy:before,.rfBuddy:after{display:none!important}.worldPanel{max-width:760px;padding:22px;margin:12px auto;border:1px solid #c5ae87;border-radius:28px;background:linear-gradient(150deg,#fffdf8,#fcf3df);box-shadow:0 12px 26px #65502d14;color:#243b32;font:16px/1.45 system-ui,sans-serif}.worldPanel button,.worldPanel select{font:inherit;min-height:44px;border:1px solid #a89477;border-radius:14px;padding:9px 13px;color:#243b32;background:#fffdf7;cursor:pointer}.worldPanel button[aria-pressed=true]{background:#f2d68f;box-shadow:inset 0 0 0 1px #816743}.worldPanel button.primary{background:#d8a75a!important;color:#243b32!important;border-color:#926b30;font-weight:750}.worldPanel button:disabled{opacity:.55}.worldHeading{display:flex;align-items:center;gap:12px;padding:0!important;margin:0 0 10px;border:0;background:none!important}.worldHeading>div{flex:1;min-width:0}.worldHeading h2{font:750 clamp(20px,3.5vw,27px)/1.2 system-ui;margin:3px 0}.worldEyebrow{font-size:10px;letter-spacing:.15em;font-weight:750;color:#8c4533}.worldPrompt{font-size:19px;font-weight:650;min-height:54px;margin:8px 0}.worldActions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}.worldGift:empty{display:none}.worldGift{padding:9px 12px;background:#eef0df;border-radius:12px;font-size:14px}.buddyPocket{margin:12px 0;font:14px/1.4 system-ui;color:#243b32}.buddyPocket summary,.moreWays summary{cursor:pointer;min-height:44px;padding:10px 12px;border:1px solid #b9c1b4;border-radius:12px;background:#fffdf8;width:max-content;max-width:100%}.buddyPocket [data-buddy-items]{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.buddyItem{font-size:13px;background:#f1e3c8;border:1px solid #c7ad82;border-radius:30px;padding:6px 10px}.moreWays{margin:8px 0}.moreWays[open]{padding-bottom:8px}.moreWays .modes{margin-top:8px}.worldToast{font:14px/1.45 system-ui;margin:8px 0;color:#466345}.worldToast:empty{display:none}
/* Sequence: four stable pad positions; tower counts completed levels from bottom to top. */
.sequenceMode #catchStage,.sequenceMode .echoView{display:none!important}.sequenceGame{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:18px;align-items:center}.sequencePads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sequencePads .soundPad{min-height:126px;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #bca784;border-radius:28px;background:linear-gradient(145deg,#fffdf8,#e9ddc5);box-shadow:0 5px 0 #c4ab823f,inset 0 1px 0 #fff;padding:8px}.feltBall{width:75px;height:75px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#acbba1,#5e7458 60%,#3d5241);box-shadow:inset -4px -5px 8px #243b3230,0 5px 8px #243b3220}.pad1 .feltBall{background:radial-gradient(circle at 32% 28%,#f2d18f,#d8a75a 60%,#ae792d)}.pad2 .feltBall{background:radial-gradient(circle at 32% 28%,#e7a585,#b85f43 60%,#87422e)}.pad3 .feltBall{background:radial-gradient(circle at 32% 28%,#d58b9d,#8e3b46 60%,#6a2937)}.padNumber{position:absolute;right:12px;bottom:8px;font-weight:750;font-size:14px}.sequencePads .soundPad:disabled{opacity:1;cursor:default}.sequencePads .soundLit{box-shadow:0 0 0 4px #d8a75a,inset 0 0 20px #fbe7a7!important;background:#fff6d5!important}.soundLit .feltBall{filter:brightness(1.3)}#seqCount{min-height:24px;font-size:14px;margin:10px 0}.echoTower{display:flex;flex-direction:column;align-items:center;gap:8px;align-self:center}.towerFlower{font-size:30px}.echoTower ol{list-style:none;display:flex;flex-direction:column-reverse;gap:10px;padding:0;margin:0}.echoTower li{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:2px solid #9aab96;color:#53654e;font-size:13px;background:#f5f0e5}.echoTower .towerDone{background:#f0c65a;border-color:#a27529;box-shadow:0 0 10px #dfb95950;color:#243b32;font-weight:800}.echoTower .towerCurrent{outline:2px solid #8e3b46;outline-offset:3px}
/* Little band: one visible bar editor, all bars play in sequence. */
body[data-band=open] #catchStage,body[data-band=open] #rhythmMixer{display:none!important}#littleBand .worldHeading .worldSprite{width:84px;height:84px}.starterLoops{padding:12px;background:#efe5d0;border-radius:16px;margin:8px 0 12px}.starterLoops strong{font-size:14px}.starterLoops .worldActions{margin-bottom:0}.bandBarTools{display:flex;align-items:center;gap:8px;justify-content:space-between}.bandBarTools nav{display:flex;gap:6px;flex-wrap:wrap}.bandBarTools nav button{min-width:65px}.bandSmall{font-size:13px;margin:8px 0 12px;color:#51624e}.bandTrack{border:1px solid #d2c2a4;border-radius:20px;background:#fffdf8;padding:10px;margin:12px 0}.bandTrackHead{display:flex;align-items:center;gap:8px}.bandTrackHead .worldSprite{width:60px;height:60px}.bandTrackHead label{display:flex;align-items:center;gap:8px;flex:1;font-size:13px;font-weight:750}.bandTrackHead select{max-width:155px;font-size:15px;padding:7px}.bandTrackToggle{white-space:nowrap;font-size:13px!important;padding:7px 9px!important}.bandPatterns{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 10px}.bandPatterns button{font-size:12px;padding:6px 10px;min-height:44px;background:#f3eee3}.bandBeatGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bandBeatGrid .bandBeat{min-width:0;min-height:84px;border-radius:15px;display:flex;position:relative;align-items:center;justify-content:center;padding:8px 3px 22px;background:#ebc69d;box-shadow:inset 0 1px 0 #fff8,0 3px 0 #bc835b2a}.bandTrack:nth-child(2) .bandBeat{background:#e3c47b}.bandTrack:nth-child(3) .bandBeat{background:#e6c4cc}.bandBeatGrid .silenceFrame{background:#fffaf0!important;border:2px solid #acb39e;box-shadow:none}.bandBeat small{position:absolute;bottom:3px;left:0;width:100%;font-size:12px}.beatSoundDots{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.beatSoundDots i{display:block;width:9px;height:9px;border-radius:50%;background:#243b32}.melodyDot{height:32px;width:32px;border-radius:50%;display:grid;place-items:center;font-weight:750;background:#fffaf0;color:#243b32;border:1px solid #8e3b46;transform:translateY(calc(var(--pitch)*-3px + 6px))}.bandBeatGrid .playingBeat{outline:3px solid #d69f31;outline-offset:1px;box-shadow:inset 0 0 15px #f7e5af}.bandTrack[data-enabled=false]{background:#f3f0e8}.bandTrack[data-enabled=false] .bandTrackHead{opacity:.9}#bandPalette{margin:12px 0}#bandEditPrompt{font-size:14px;margin-bottom:6px}#bandChoices button,#bandChoices select{font-size:13px}.bandTransport{display:flex;align-items:center;flex-wrap:wrap;gap:8px;position:sticky;bottom:8px;z-index:5;border:1px solid #a58d64;background:#fffaf0f5;border-radius:18px;padding:10px;box-shadow:0 5px 20px #243b3218}.bandTransport span{font-size:13px}.bandDiscoveries{margin:14px 0}.bandDiscoveries summary{font-size:15px;font-weight:750;cursor:pointer;min-height:44px;padding:10px 0}.bandDiscoveries p{font-size:14px;margin:7px 0}.conductorMode .bandPatterns,.conductorMode .bandBeatGrid,.conductorMode #bandPalette,.conductorMode .bandBarTools,.conductorMode .starterLoops,.conductorMode .bandSmall{display:none!important}.conductorMode .bandTrack{padding:20px}.conductorMode .bandTrackToggle{font-size:18px!important;min-width:110px}.conductorMode .bandTrackHead .worldSprite{width:86px;height:86px}
/* Fruit illustrations: same answers and rhythm/audio paths as the established game. */
.fruitArt{display:inline-block;width:1.25em;height:1.25em;vertical-align:middle;background-image:url('assets/fruit-atlas-v45.webp');background-size:300% 200%;background-repeat:no-repeat}.fruit-P{background-position:0 0}.fruit-A{background-position:50% 0}.fruit-W{background-position:100% 0}.fruit-S{background-position:0 100%}.fruit-N{background-position:50% 100%}.fruit-H{background-position:100% 100%}.legendItem .fruit{min-height:75px}.legendItem .fruit:has(.fruitArt+.fruitArt){font-size:2.5rem}.fallingFruit .fruitArt{width:100%;height:100%}.fruitWelcome .rfBuddy{width:100px;height:100px}body[data-game=fruit] .legendItem{background:#fffaf0!important;box-shadow:0 5px 14px #91642e12!important}.legendItem .hear,.showMeControl{background:#efd18e!important;border:2px solid #9b753b!important;color:#243b32!important}.worldNoteGold{font-size:45px;color:#b4822e;display:block;margin:4px 0;text-shadow:0 2px 1px #f2d594}.questStart,.questIntro,#noteJourney{background:linear-gradient(145deg,#fffdf8,#fcf3df)!important;border-radius:24px!important;box-shadow:0 8px 20px #91642e10!important}.questComplete{border:1px solid #d7ba7c!important;background:#f9edce!important}.questComplete button{min-height:44px}
/* Deliberately distinct clean skin, same targets and positions. */
body[data-look=clean] .worldPanel,body[data-look=clean] .questStart,body[data-look=clean] .questIntro,body[data-look=clean] #noteJourney,body[data-look=clean] .legendItem{background:#fff!important;border:1px solid #bdc6b9!important;border-radius:8px!important;box-shadow:none!important}body[data-look=clean] .worldPanel button,body[data-look=clean] .worldPanel select,body[data-look=clean] .showMeControl,body[data-look=clean] .legendItem .hear{border-radius:7px!important;box-shadow:none!important}body[data-look=clean] .worldEyebrow{visibility:hidden}body[data-look=clean] .worldHeading>.worldSprite{visibility:hidden}body[data-look=clean] .soundPad{background:#f4f5ef!important;border:1px solid #a9b4a0!important;box-shadow:none!important;border-radius:8px!important}body[data-look=clean] .feltBall{box-shadow:none;background:#657b63}body[data-look=clean] .pad1 .feltBall{background:#d8a75a}body[data-look=clean] .pad2 .feltBall{background:#b85f43}body[data-look=clean] .pad3 .feltBall{background:#8e3b46}body[data-look=clean] .bandTrack,body[data-look=clean] .starterLoops{border-radius:8px;background:#f5f6f0;box-shadow:none}body[data-look=clean] .bandBeatGrid .bandBeat{border-radius:6px;box-shadow:none;background:#e9eadf}body[data-look=clean] .bandTransport{border-radius:8px;box-shadow:none;background:#fff}body[data-look=clean] .echoTower .towerDone{box-shadow:none}body[data-look=clean] .rfBuddy{opacity:.9}body[data-look=clean] .worldSprite{filter:saturate(.5)}body[data-look=clean] .worldNoteGold{text-shadow:none}body[data-look=clean] .worldGift{background:#eef1e9;border-radius:6px}
@media(max-width:600px){.worldPanel{padding:14px;border-radius:22px}.worldHeading{gap:8px}.worldHeading .worldSprite{width:54px;height:54px}.worldEyebrow{font-size:8px;letter-spacing:.08em}.worldHeading h2{font-size:20px}.worldPrompt{font-size:17px;min-height:50px}.sequenceGame{gap:12px;grid-template-columns:minmax(0,1fr) 36px}.sequencePads{gap:9px}.sequencePads .soundPad{min-height:101px;border-radius:22px}.feltBall{width:57px;height:57px}.echoTower ol{gap:9px}.echoTower li{width:26px;height:26px}.towerFlower{font-size:25px}.sequenceMain .worldActions button{font-size:13px;padding:8px 10px}.bandTrackHead{gap:5px}.bandTrackHead .worldSprite{width:44px;height:44px}.bandTrackHead label{display:block;font-size:11px}.bandTrackHead select{font-size:13px;max-width:120px;padding:6px}.bandBeatGrid{gap:6px}.bandBeatGrid .bandBeat{min-height:70px}.beatSoundDots{gap:3px}.beatSoundDots i{width:7px;height:7px}.bandTrack{padding:8px}.bandTrackToggle{font-size:12px!important;padding:6px 8px!important}.bandBarTools{align-items:flex-start}.bandBarTools button{font-size:12px}.bandTransport>button{font-size:14px}.conductorMode .bandTrackHead .worldSprite{width:54px;height:54px}.conductorMode .bandTrackToggle{min-width:90px;font-size:15px!important}.starterLoops .worldActions button{font-size:13px}.worldPanel .worldActions{gap:6px}#bandChoices .worldActions{gap:6px}}
@media(prefers-reduced-motion:reduce){.worldPanel *,.rfBuddy,.soundPad{animation:none!important;transition:none!important}.echoTower .towerDone{box-shadow:none}.soundLit{outline:3px solid #8e3b46}}

.beatSoundDots{position:relative;display:block;width:100%;height:25px}.beatSoundDots i{position:absolute;top:8px;transform:translateX(-50%)}

#catchArena .fallingFruit{width:1em;height:1em}.fallingFruit .fruitArt{display:block}

.worldHeading>.rfBuddy{display:inline-block;flex:0 0 auto;width:76px;height:76px}body[data-look=clean] .worldHeading>.rfBuddy{visibility:hidden}@media(max-width:600px){.worldHeading>.rfBuddy{width:54px;height:54px}}

.newArt .worldSprite{width:125px;height:125px}.createArt{gap:10px}.createArt .worldSprite{width:105px;height:105px}.hubSoundBalls{display:flex;gap:10px}.hubSoundBalls i{width:25px;height:25px;border-radius:50%;background:#d8a75a}.hubSoundBalls i:nth-child(2){background:#b85f43}.hubSoundBalls i:nth-child(3){background:#8a9c8c}.hubSoundBalls i:nth-child(4){background:#8e3b46}.echoArt{gap:20px}@media(max-width:420px){.createArt .worldSprite{width:85px;height:85px}.hubSoundBalls{gap:6px}.hubSoundBalls i{width:20px;height:20px}}
body[data-size=large] .worldPanel{max-width:900px;font-size:18px;padding:24px}body[data-size=large] .worldPrompt{font-size:22px}body[data-size=large] .soundPad{min-height:145px}body[data-size=large] .feltBall{width:85px;height:85px}body[data-size=large] .bandBeatGrid .bandBeat{min-height:100px}body[data-size=large] .worldPanel button,body[data-size=large] .worldPanel select{min-height:50px}@media(max-width:600px){body[data-size=large] .worldPanel{padding:14px}body[data-size=large] .feltBall{width:65px;height:65px}body[data-size=large] .soundPad{min-height:118px}}
