#kidspace-play [hidden]{display:none!important}
#kidspace-play .music-entry{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:.6rem;width:100%;min-height:53px;padding:4px .65rem 4px 4px;border:2px solid #775282;border-radius:13px;background:#fff7eb;color:#2a3751;text-align:left}
#kidspace-play .music-entry img,.song-track img{display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:1;border-radius:6px}
#kidspace-play .music-entry strong,#kidspace-play .music-entry small{display:block}
#kidspace-play .music-entry small{font-size:.78rem}
.music-top{display:flex;align-items:center;justify-content:space-between;gap:.35rem;margin-bottom:.16rem}
.music-top h2{margin:0!important;font-size:clamp(1.22rem,2.7vw,2rem);color:#273a5a}
#kidspace-play .music-top button{flex:none;min-height:34px;margin:0;padding:.25rem .4rem}
#kidspace-play .music-credit{margin:.2rem 0 .5rem;font-size:.84rem;color:#344362}
#kidspace-play .music-groups{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.92fr);gap:6px 10px;align-content:start}
#kidspace-play .song-group:first-child{grid-row:span 2}
#kidspace-play .song-group h3{font:800 .78rem/1.2 system-ui;color:#3f3152;margin:2px 0 4px}
#kidspace-play .song-group ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}
#kidspace-play .song-track{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;align-items:center;gap:5px;width:100%;min-height:45px;padding:3px;text-align:left;border:1px solid #846d91;border-radius:9px;background:#fff8eb;color:#203554}
#kidspace-play .song-track strong{display:block;font:800 clamp(.74rem,1.18vw,.93rem)/1.13 system-ui}
#kidspace-play .song-track small{display:block;font:650 .66rem/1.2 system-ui;color:#46546c;padding-top:2px}
#kidspace-play .song-track[aria-pressed=true]{border-color:#293376;background:#e3e7ff;box-shadow:inset 2px 0 #3d4795}
#kidspace-play .song-play{text-align:center;font-size:.76rem}
#kidspace-play .music-player{margin-top:7px;padding:.32rem .4rem .2rem;border:1px dashed #7e6897;border-radius:8px;background:#f8f2ff;color:#293858}
#kidspace-play #music-playing{font:720 .76rem/1.18 system-ui;margin:0 0 .18rem}
#kidspace-play #song-audio{height:34px;width:100%;display:block}
#kidspace-play .song-error{font-size:.8rem;color:#762739;margin-top:.2rem}
@media(max-width:560px){#kidspace-play .music-groups{grid-template-columns:minmax(0,1fr);gap:5px}#kidspace-play .song-group:first-child{grid-row:auto}#kidspace-play .song-group h3{font-size:.73rem;margin:0 0 3px}#kidspace-play .song-track{grid-template-columns:31px minmax(0,1fr) 18px;min-height:39px}.music-top h2{font-size:1.18rem}}

/* Big, illustrated controls for preschool readers. Track data and player behavior are unchanged. */
#kidspace-play .song-rainbow{
 font-family:KidSpaceKnit,system-ui,sans-serif;font-weight:800;letter-spacing:0;
 line-height:1.1;display:inline;-webkit-font-smoothing:antialiased
}
#kidspace-play .yarn-word{white-space:nowrap}
#kidspace-play .r0{color:#a32344}#kidspace-play .r1{color:#195385}#kidspace-play .r2{color:#297047}
#kidspace-play .r3{color:#533992}#kidspace-play .r4{color:#806002}#kidspace-play .r5{color:#086471}#kidspace-play .r6{color:#89254e}
#kidspace-play .music-entry{grid-template-columns:61px minmax(0,1fr) auto;min-height:68px;border-radius:30px;background:#fff8df;gap:9px;padding:4px 12px 4px 4px}
#kidspace-play .music-entry strong{font-size:clamp(1rem,1.9vw,1.35rem);line-height:1.13}
#kidspace-play .music-entry-art{position:relative;display:block;width:58px;height:56px;border-radius:45%;background:#e5daf7;border:2px dashed #8767a6}
#kidspace-play .music-entry .music-entry-pal,#kidspace-play .music-entry:hover,#kidspace-play .song-bubble:hover{border-color:#5d407e}
#kidspace-play .music-top{margin-bottom:2px;flex-wrap:wrap}
#kidspace-play .music-top h2 .song-rainbow{font-size:clamp(1.25rem,2.7vw,1.9rem)}
#kidspace-play .music-top button{min-height:40px;border-radius:17px}
#kidspace-play .music-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
#kidspace-play .song-group:first-child{grid-row:auto;grid-column:1/-1}
#kidspace-play .song-group:first-child ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#kidspace-play .song-group h3{font:780 clamp(.76rem,1.35vw,.93rem)/1.2 system-ui;margin:1px 0 4px}
#kidspace-play .song-bubble{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:131px;height:100%;padding:5px 4px;gap:4px;text-align:center;border:2px solid #9279a1;border-radius:23px;background:#fffbf0;box-shadow:0 2px 0 #51356423;min-width:0;color:#233551;touch-action:manipulation}
#kidspace-play .song-bubble[data-theme=sunrise]{--felt:#ffebbd;--seam:#ac7a32}
#kidspace-play .song-bubble[data-theme=twilight]{--felt:#e1def7;--seam:#8271b0}
#kidspace-play .song-bubble[data-theme=garden]{--felt:#deedd2;--seam:#588661}
#kidspace-play .song-bubble[data-theme=party]{--felt:#f1def3;--seam:#a25da8}
#kidspace-play .song-bubble[data-theme=sky]{--felt:#d5ebfc;--seam:#5385a8}
#kidspace-play .song-art{position:relative;display:block;overflow:hidden;isolation:isolate;width:min(100%,99px);height:clamp(50px,9vh,83px);flex:none;border-radius:45%;border:2px dashed var(--seam);background:repeating-linear-gradient(135deg,#fff3 0 2px,transparent 2px 5px),var(--felt)}
#kidspace-play .song-art img{position:absolute;display:block;object-fit:contain;width:65%;height:95%;border-radius:0;filter:drop-shadow(1px 3px 2px #2f244552)}
#kidspace-play .song-art img.lead{bottom:-4%;left:2%}
#kidspace-play .song-art img.pal{height:66%;width:52%;bottom:1%;right:1%}
#kidspace-play .song-bubble[data-theme=twilight] .song-art img.pal{top:5%;bottom:auto}
#kidspace-play .song-art .song-play{display:grid;place-items:center;position:absolute;bottom:4px;right:5px;min-width:21px;min-height:21px;border-radius:50%;background:#25395b;color:#fff;border:1px solid #fff;font-size:.65rem}
#kidspace-play .song-bubble .song-title{font:800 clamp(.89rem,1.5vw,1.15rem)/1.12 system-ui;margin:auto 0 0}
#kidspace-play .song-artist{font:600 .73rem/1.1 system-ui;color:#384966;display:block;margin-top:2px}
#kidspace-play .song-bubble[aria-pressed=true]{border-color:#4b3485;background:#eee8ff;box-shadow:0 0 0 2px #6450aa38}
@media(max-width:410px){#kidspace-play .song-bubble .song-title{font-size:.86rem}#kidspace-play .song-bubble{min-height:123px;padding-inline:2px;border-radius:18px}#kidspace-play .song-group:first-child ul{gap:4px}}
/* Keep the yarn stitching visible without letting thin fibers wash out the title. */
#kidspace-play .song-rainbow{-webkit-text-stroke:.32px currentColor}
#kidspace-play .song-bubble .song-title{font-size:clamp(.98rem,1.6vw,1.24rem)}
#kidspace-play .song-art{width:min(100%,112px);height:clamp(56px,10vh,94px)}
#kidspace-play .song-art .song-play{min-width:25px;min-height:25px;font-size:.75rem}
@media(max-width:410px){#kidspace-play .song-bubble .song-title{font-size:.94rem}}

/* One classroom, different corners. Crops are CSS-only; the wallpaper and
   original Yarn Brigade tokens are shared with the rest of the site. */
#kidspace-play .hunt-art{
 background:linear-gradient(#21162524,#21162550),url('../playroom-assets/yarn-classroom.webp') center 78% / 119% auto no-repeat,#785b49;
}
#kidspace-play .coin-set{gap:4px 2px}
#kidspace-play .token-coin{box-shadow:0 3px 0 #2a20385c,0 2px 7px #251c29a6}
#kidspace-play .token-coin img{object-position:50% 50%;margin:0;transform:none}
#kidspace-play .music-entry-art{
 border-radius:50%;overflow:hidden;
 background:linear-gradient(#fff3d748,#fff3d71c),url('../playroom-assets/yarn-classroom.webp') 70% 20% / 270% auto no-repeat,#e5daf7;
}
#kidspace-play .music-entry .music-entry-pal{width:62%;height:85%;left:10%;top:9%;bottom:auto}
#kidspace-play .song-bubble[data-theme=sunrise]{--room-spot:17% 45%} /* craft table */
#kidspace-play .song-bubble[data-theme=twilight]{--room-spot:100% 56%} /* soft chair */
#kidspace-play .song-bubble[data-theme=garden]{--room-spot:16% 7%} /* sunny window */
#kidspace-play .song-bubble[data-theme=party]{--room-spot:88% 91%} /* rainbow rug */
#kidspace-play .song-bubble[data-theme=sky]{--room-spot:69% 15%} /* bookshelf */
#kidspace-play .song-art{
 width:min(100%,clamp(62px,10vh,94px));height:auto;aspect-ratio:1;border-radius:50%;
 overflow:visible;border:2px dashed var(--seam);
 background-image:linear-gradient(#fff4de35,#f5e6d02e),url('../playroom-assets/yarn-classroom.webp');
 background-position:center,var(--room-spot);
 background-size:100% 100%,255% auto;
 background-repeat:no-repeat;
 box-shadow:inset 0 0 0 1px #fff9;
}
#kidspace-play .song-art img{
 margin:0;object-position:center;
 filter:drop-shadow(0 1px 1px #201826b0) drop-shadow(0 0 3px #fff1d5a0);
}
#kidspace-play .song-art img.lead{top:10%;bottom:auto;left:12%;right:auto;width:57%;height:80%}
#kidspace-play .song-art img.pal{top:31%;bottom:auto;left:53%;right:auto;width:36%;height:54%}
#kidspace-play .song-bubble[data-theme=twilight] .song-art img.pal{top:13%;left:54%;width:32%;height:41%}
#kidspace-play .song-bubble[data-theme=garden] .song-art img.lead{left:9%;width:55%}
#kidspace-play .song-bubble[data-theme=garden] .song-art img.pal{top:16%;left:47%;width:46%;height:73%}
#kidspace-play .song-bubble[data-theme=sky] .song-art img.lead{top:11%;left:11%;width:78%;height:78%;bottom:auto}
#kidspace-play .song-bubble[data-theme=sky] .song-art img.pal{top:48%;left:47%;width:43%;height:38%}
#kidspace-play .song-art .song-play{right:-3px;bottom:-2px;box-shadow:0 1px 3px #36295470}
@media(max-width:430px){#kidspace-play .hunt-art{background-size:135% auto}}

/* Close-up portraits: mask the original character at the circle, never expose a cut-out torso edge. */
#kidspace-play .portrait-frame{display:block;position:relative;overflow:hidden;border-radius:50%;isolation:isolate}
#kidspace-play .portrait-frame .portrait-person{
 position:absolute;display:block;width:164%;max-width:none;height:auto;aspect-ratio:1;
 left:-32%;right:auto;top:-5%;bottom:auto;margin:0;border-radius:0;object-fit:contain;object-position:center;
 filter:drop-shadow(0 1px 2px #21182e75);
}
#kidspace-play .portrait-frame .portrait-haley{left:-45%}
#kidspace-play .music-entry-art .portrait-frame,#kidspace-play .song-art .portrait-lead{position:absolute;inset:0}
#kidspace-play .song-art.has-portrait .song-play{z-index:2}
#kidspace-play .hunt-art{container-type:inline-size}
#kidspace-play .hunt-guide{
 flex:none;width:min(62cqw,clamp(78px,17vh,150px));aspect-ratio:1;
 background:#d6e8f9;border:2px dashed #55759d;box-shadow:0 3px 7px #20182b80
}
