/* Bright, tactile controls shared by the playground and Subby Buddy. */
.pg-header-actions .toy-nav,.buddy-toy{
 --toy-face:#d5b5ff;--toy-light:#f4dfff;--toy-edge:#8060b8;--toy-ink:#432467;
 display:inline-flex;align-items:center;justify-content:center;gap:9px;position:relative;
 min-height:46px;padding:8px 15px;border:2px solid #fff9;border-radius:17px;
 background:linear-gradient(165deg,var(--toy-light),var(--toy-face) 80%);color:var(--toy-ink);
 font:500 15px/1.15 FM-Fredoka,Fredoka,sans-serif;text-decoration:none;white-space:nowrap;
 box-shadow:inset 0 2px 1px #fffa,inset 0 -2px 2px #0000000a,0 5px 0 var(--toy-edge),0 9px 16px #09162a24;
 cursor:pointer;transition:transform .16s,box-shadow .16s,filter .16s;flex-shrink:0;
}
.pg-header-actions .games-link{--toy-face:#ffd259;--toy-light:#fff1a0;--toy-edge:#c08426;--toy-ink:#583709;rotate:-2deg}
.pg-header-actions .grownup-link{margin:0;--toy-face:#bb9ef2;--toy-light:#ecddff;--toy-edge:#8662b9;--toy-ink:#44256d;rotate:1deg}
.pg-header-actions .fm-feedback-launch{--toy-face:#6bdac2;--toy-light:#c7ffee;--toy-edge:#399b87;--toy-ink:#15554b;rotate:-1deg}
.pg-header-actions .toy-nav svg,.buddy-toy svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;filter:drop-shadow(0 1px 0 #fff9)}
.pg-header-actions .toy-nav:hover,.buddy-toy:hover{transform:translateY(-2px);filter:brightness(1.03);box-shadow:inset 0 2px 1px #fffa,0 7px 0 var(--toy-edge),0 12px 18px #09162a24}
.pg-header-actions .toy-nav:active,.buddy-toy:active{transform:translateY(4px);box-shadow:inset 0 1px 2px #0001,0 1px 0 var(--toy-edge)}
.pg-header-actions .toy-nav:focus-visible,.buddy-toy:focus-visible{outline:3px solid #553a85;outline-offset:7px}
.pg-header-actions{padding-bottom:6px}
#shelfTitle,#grownups{scroll-margin-top:28px}
.advanced-bar{gap:12px;margin-top:8px;padding-bottom:6px}
.advanced-bar .advanced-button{font-size:14px;min-height:44px;padding:6px 13px;gap:8px}
.advanced-bar .reset-top{font-size:13px;min-height:44px;padding:6px 12px}
.buddy-toy.reset-top{--toy-light:#ffd3b6;--toy-face:#ff9c89;--toy-edge:#b55e58;--toy-ink:#612f37}
.buddy-control-icon{position:relative;display:flex}
.buddy-control-icon i{font-style:normal;position:absolute;right:-4px;top:-6px;font-size:12px;color:#805a17;text-shadow:0 1px #fff}
.advanced-bar .fm-feedback-compact{min-height:40px;width:40px}
.wordmark{white-space:nowrap}
#splash h1{letter-spacing:-2px;text-shadow:0 2px 0 #fffa,0 5px 0 #c58b53,0 8px 0 #815832,0 12px 17px #142b4866}
#splash h1 span{color:#ffdf85}

#buddy-checkpoint{box-sizing:border-box;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:24px 28px 22px;inset:0;border:3px solid #fff;border-radius:32px;background:radial-gradient(ellipse at 50% 0,#efe3ff 0,transparent 58%),#fff9ee;box-shadow:0 10px 0 #c1acd2,0 30px 100px #13243980;color:#433355;font:16px/1.4 FM-Fredoka,Fredoka,sans-serif;text-align:center;overflow:auto}
#buddy-checkpoint::backdrop{background:#112336ad;backdrop-filter:blur(7px)}
#buddy-checkpoint [hidden]{display:none!important}
#buddy-checkpoint *{box-sizing:border-box}
#buddy-checkpoint button,#buddy-checkpoint input{font-family:inherit}
#buddy-checkpoint .buddy-dialog-close{position:absolute;right:14px;top:12px;width:35px;height:35px;padding:0;border:1px solid #b9a5cb;border-radius:50%;background:#fff8;color:#715287;font-size:25px;cursor:pointer}
.buddy-dialog-art{height:95px;display:flex;align-items:center;justify-content:center;gap:19px;margin:-10px 0 0}
.buddy-dialog-art img{width:100px;height:108px;object-fit:contain;filter:drop-shadow(0 6px 3px #80678826);rotate:-6deg}
.buddy-dialog-art span{color:#b08538;font-size:27px;rotate:12deg}.buddy-dialog-art span:last-child{font-size:36px;color:#9c7dcc;rotate:-12deg}
#buddy-checkpoint .buddy-eyebrow{font-size:10px;letter-spacing:1.7px;color:#846895;margin:13px 0 7px}
#buddy-checkpoint h2{font-size:29px;font-weight:500;line-height:1.1;margin:0 0 9px;letter-spacing:-.6px}
#buddy-checkpoint-copy{margin:0;font-size:15px;color:#77667e}
.buddy-equation{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 12px 10px;font-size:39px;line-height:1.15;color:#5d3c84;letter-spacing:1px}
.buddy-question-mark{color:#c18638}
.buddy-answer-label{display:block;font-size:12px;color:#7c678a;margin:0 0 5px}
#buddy-answer{display:block;width:104px;height:62px;margin:0 auto;border:2px solid #bfa2d6;border-radius:18px;background:#fff;color:#52356f;text-align:center;font-size:32px;box-shadow:inset 0 3px 0 #e9e1f0;outline-offset:4px}
#buddy-answer:focus-visible{outline:3px solid #9470bb}
#buddy-answer[aria-invalid=true]{border-color:#c16b63;background:#fff4ee}
#buddy-quiz-feedback{font-size:14px;min-height:40px;line-height:1.35;margin:12px 0 10px;color:#835d59}
#buddy-checkpoint .buddy-unlock{width:100%;min-height:49px;--toy-light:#ffeeb2;--toy-face:#ffd26a;--toy-edge:#be9144;--toy-ink:#594014;font-size:18px;gap:22px}
#buddy-checkpoint .buddy-dialog-back{display:block;margin:17px auto 0;padding:8px;border:0;background:transparent;color:#746082;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#buddy-checkpoint button:focus-visible{outline:3px solid #8762b1;outline-offset:4px}
.buddy-reset-note{font-size:15px;line-height:1.6;color:#7b6682;margin:22px 0}
#buddy-reset-confirm{width:100%;min-height:49px;font-size:17px}
@media(max-width:760px){
 .pg-header{height:auto;min-height:112px;flex-wrap:wrap;justify-content:center;gap:15px;padding:19px 0 15px}
 .pg-header-actions{gap:10px;justify-content:center}
 .pg-header-actions .toy-nav{min-height:43px;padding:8px 12px;font-size:13px;gap:7px;border-radius:15px}
 .pg-header-actions .toy-nav svg{width:21px;height:21px}
 .pg-header-actions .fm-feedback-launch span{display:inline}
 .pg-header-actions .fm-feedback-launch{width:auto}
}
@media(max-width:680px){
 .advanced-bar{gap:8px;margin-top:5px;padding-bottom:5px}
 .advanced-bar .advanced-button{font-size:11px;min-height:40px;padding:5px 8px;gap:5px;border-radius:13px}
 .advanced-bar .reset-top{font-size:11px;min-height:40px;padding:5px 8px;gap:5px;border-radius:13px}
 .advanced-bar .buddy-toy svg{width:19px;height:19px}
 .advanced-bar .fm-feedback-compact{min-height:38px;width:34px;padding:6px}
 .wordmark b{display:block}
 #splash h1{font-size:clamp(39px,10vw,60px)!important}
}
@media(max-width:360px){
 .pg-header-actions{gap:8px;width:100%}
 .pg-header-actions .toy-nav{padding:8px;font-size:12px;gap:5px}
 .pg-header-actions .toy-nav svg{width:18px;height:18px}
 .advanced-bar{gap:7px}
 .advanced-bar .advanced-button,.advanced-bar .reset-top{padding:5px 7px;font-size:10px;gap:4px}
 #buddy-checkpoint{padding:22px 20px 16px}
 #buddy-checkpoint h2{font-size:26px}
}
@media(max-height:600px){
 #buddy-checkpoint{padding-top:15px;padding-bottom:14px}
 .buddy-dialog-art{height:58px}.buddy-dialog-art img{height:70px;width:70px}
 #buddy-checkpoint .buddy-eyebrow{margin:8px 0 5px}
 .buddy-equation{padding-top:10px;font-size:31px}
 #buddy-answer{height:48px;font-size:26px}
 #buddy-quiz-feedback{min-height:32px;margin:9px 0}
}
@media(prefers-reduced-motion:reduce){.pg-header-actions .toy-nav,.buddy-toy{transition:none}}

/* One compact play row; the scene keeps the space below it. */
.top-bar{flex-wrap:nowrap;gap:12px;align-items:center;padding:12px 0 9px}
.play-controls{flex-wrap:nowrap;gap:9px;align-items:center}
.play-controls .advanced-bar{display:contents}
.play-controls .advanced-button,.play-controls .reset-top{height:50px;min-height:50px;padding:7px 12px;gap:7px;font-size:12px}
.play-controls .control-menu summary{height:50px;min-height:50px}
#optionsMenu .fm-feedback-launch{width:100%;display:flex;gap:10px;justify-content:flex-start;margin-top:10px;background:#ffffff14;color:#fff}
#optionsMenu .fm-feedback-launch span{display:inline}
#optionsMenu .fm-feedback-launch svg{width:21px;height:21px}
@media(max-width:1100px){.play-controls .advanced-button>span:last-child,.play-controls .reset-top>span{display:none}.play-controls .advanced-button,.play-controls .reset-top{width:47px;padding:8px}.play-controls .control-label small{font-size:9px}}
@media(max-width:760px){.top-bar{gap:8px;padding:9px 0 7px}.play-controls{gap:6px}.play-controls .control-label,.play-controls .menu-indicator{display:none}.play-controls .control-menu summary,.play-controls .advanced-button,.play-controls .reset-top,#optionsMenu summary{width:44px;height:44px;min-height:44px;padding:6px;justify-content:center;border-radius:14px}.play-controls .control-icon{width:29px;height:29px}.wordmark{font-size:16px!important}.wordmark b{display:block}.header-area{padding-top:7px!important}.play-controls .control-panel{top:67px}}
@media(max-width:370px){.wordmark{display:none}.top-bar{gap:6px}.play-controls{gap:6px}.brand-panel .hub-return{width:30px!important;height:40px!important}.play-controls .control-panel{top:65px}}
@media(max-width:760px){.play-controls .control-menu summary .control-icon{display:grid;place-items:center}.play-controls .control-menu summary img.control-icon{display:block}.play-controls .control-menu .menu-indicator{display:none}}
