/* Sound of Self × Kids Educational Website Design (Canva reference). */
:root {
 --study-ink:#252043;--study-muted:#5d5772;--study-paper:#fbf7ed;--study-card:#fffefd;
 --study-purple:#6846b5;--study-purple-ink:#fff;--study-lavender:#ebe4fc;--study-ring:#c2aff1;
 --study-mint:#e4f6f3;--study-peach:#ffefd4;--study-pink:#f5e5f1;--study-stroke:#e4dbed;
 --study-coral:#ff7a70;--study-coral-edge:#d94f4d;--study-action:#241e3e;
}
:root[data-theme=dark] {
 --study-ink:#fbf3ff;--study-muted:#d7cbe5;--study-paper:#211b32;--study-card:#322944;
 --study-purple:#c6aafb;--study-purple-ink:#211234;--study-lavender:#382957;--study-ring:#9274ce;
 --study-mint:#1b3b3d;--study-peach:#493348;--study-pink:#412b49;--study-stroke:#665778;
 --study-coral:#ff8a7f;--study-coral-edge:#cb5857;
}
html[data-theme] body:is([data-view=home],[data-view=games],[data-view=tools],[data-view=classes]){
 background:var(--study-paper)!important;
}
html[data-theme] body:is([data-view=home],[data-view=games],[data-view=tools],[data-view=classes]) #masthead.masthead {
 width:100%;background:var(--study-card);color:var(--study-ink);border:0;
 box-shadow:0 1px 0 color-mix(in srgb,var(--study-stroke) 55%,transparent);
}
body[data-view=home] #masthead .mast-inner {width:min(1200px,100%);min-height:73px;display:flex;gap:clamp(6px,1.25vw,17px)}
body[data-view] #masthead .brand .canva-brand{height:clamp(43px,4vw,55px)}
body[data-view] #masthead :is(.room-menu summary,.class-link){background:transparent;color:var(--study-ink);border:1px solid var(--study-stroke);border-radius:100px}
body[data-view] #masthead .class-link{background:var(--study-purple);color:var(--study-purple-ink);border-color:transparent}
body[data-view] #masthead .room-menu .top-nav{background:var(--study-card);color:var(--study-ink)}
.template-nav{display:flex;align-items:center;gap:clamp(7px,1.8vw,22px)}
.template-nav a{display:flex;align-items:center;min-height:44px;padding:4px 2px;font-weight:750;white-space:nowrap}
.template-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.template-studio,.template-studio a{color:var(--study-ink)}
html[data-theme] body[data-view=home] :is(#room,#colophon){width:100%;padding-inline:0;background:var(--study-paper);color:var(--study-ink)}
html[data-theme] body[data-view=home] #colophon{max-width:1150px;padding-inline:clamp(16px,4vw,34px)}
html[data-theme] body:is([data-view=games],[data-view=tools],[data-view=classes]) :is(#room,#colophon){background:var(--study-paper);color:var(--study-ink)}
body:is([data-view=games],[data-view=tools],[data-view=classes]) .launch-grid{background:var(--study-lavender)}
.template-inner{width:min(1150px,100%);margin-inline:auto;padding-inline:clamp(16px,4vw,34px)}
.template-studio h1,.template-studio h2,.template-studio h3{color:var(--study-ink);line-height:1.1;letter-spacing:-.025em}
.template-studio h1{font-size:clamp(2.18rem,5.65vw,4.6rem);line-height:1.02;text-wrap:balance;max-width:12ch;margin:17px 0 20px}
.template-studio h1 em{font-style:normal;color:var(--study-purple)}
.template-hero{
 background:var(--study-lavender);position:relative;isolation:isolate;overflow:hidden;
}
.template-hero::before,.template-hero::after{content:"";position:absolute;width:clamp(170px,24vw,330px);aspect-ratio:1;border-radius:50%;background:var(--study-ring);opacity:.27;z-index:-1}
.template-hero::before{top:10%;left:-12%}.template-hero::after{bottom:-53%;right:-5%}
.template-hero-inner{display:grid;align-items:center;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:12px;padding-block:clamp(33px,6.25vw,80px)}
.template-badge{display:inline-flex;align-items:center;gap:7px;border-radius:100px;background:var(--study-card);color:var(--study-purple);padding:7px 14px;font-size:.83rem;font-weight:800;box-shadow:0 4px color-mix(in srgb,var(--study-ring) 42%,transparent)}
.template-badge::before{content:"♪";font-size:1.05em}
.template-lead{max-width:40ch;color:var(--study-muted);font-size:clamp(.98rem,1.65vw,1.18rem);line-height:1.55;margin:0 0 22px}
a.template-cta{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:9px 20px;background:var(--study-coral);box-shadow:0 5px var(--study-coral-edge);color:var(--study-action);border-radius:15px;font-weight:850}
.template-cta:hover{filter:brightness(1.06)}.template-cta:active{translate:0 2px;box-shadow:0 3px var(--study-coral-edge)}
.template-hero-art{display:grid;place-items:center;min-width:0;position:relative;isolation:isolate}
.template-disc{display:grid;place-items:center;width:clamp(110px,24vw,295px);aspect-ratio:1;max-width:95%;border-radius:50%;background:var(--study-card);border:clamp(10px,2.3vw,30px) solid var(--study-ring);box-shadow:inset 0 -9px color-mix(in srgb,var(--study-ring) 67%,transparent);color:var(--study-purple)}
.template-disc svg{width:55%;height:55%}
.floating-note{position:absolute;color:#c34e62;font-size:clamp(1rem,2.6vw,2.3rem);font-weight:750;line-height:1}
.first{left:4%;top:8%;rotate:-14deg}.second{right:1%;top:25%;color:#bb7a0c;rotate:10deg}.third{left:4%;bottom:10%;color:#258e7f}.fourth{right:4%;bottom:3%;color:#edb830}
.template-section{padding-block:clamp(35px,5.6vw,68px);scroll-margin-top:16px}
.template-title{text-align:center;margin:0 auto clamp(20px,3.2vw,36px);max-width:58ch}
.template-title>p{color:var(--study-purple);text-transform:uppercase;font-size:.79rem;font-weight:850;letter-spacing:.13em;margin:0 0 8px}
.template-title h2{font-size:clamp(1.8rem,4vw,3rem);margin:0 0 7px}
.template-title>div{color:var(--study-muted);line-height:1.55;font-size:1rem}
.template-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,20px)}
.template-card{
 min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:9px;padding:clamp(13px,2.2vw,25px);
 border-radius:22px;background:var(--study-peach);transition:box-shadow .15s ease
}
.template-card:nth-child(2){background:var(--study-mint)}.template-card:nth-child(3){background:var(--study-pink)}
.template-card:hover{box-shadow:0 0 0 2px var(--study-purple)}
.template-card h3,.template-panel h3{font-size:clamp(1.19rem,2.2vw,1.55rem);margin:0}
.template-card p,.template-panel p{color:var(--study-muted);line-height:1.49;margin:0}
.template-card strong{margin-top:auto;color:var(--study-ink);padding-top:3px}
.template-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--study-card)}
.template-card-icon svg{width:24px;height:24px}
.template-lavender{background:var(--study-lavender)}.template-mint{background:var(--study-mint)}
.template-studio .template-grid {background:var(--study-card);border:1px solid var(--study-stroke);margin:0}
.template-choices+.template-grid{margin-top:16px}
.template-lab{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr);gap:16px;margin-top:18px}
.template-panel{padding:clamp(14px,2.2vw,25px);background:var(--study-card);border-radius:20px;border:1px solid var(--study-stroke)}
.template-panel h3+p{margin:6px 0 14px}
.template-piano{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;margin:12px 0}
.template-piano button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;padding:0 0 9px;min-height:83px;background:#fffcf4;color:#2c214d;border:1px solid #a79abf;border-bottom:5px solid #b7a7d7;border-radius:5px 5px 10px 10px;line-height:1}
.template-piano button.is-sounding,.template-piano button:active{background:#dbcbfe;border-bottom-color:#6846b5}
.template-piano button kbd{font:700 .68rem system-ui;color:#62547a}
.template-inline{display:inline-flex;align-items:center;min-height:44px;color:var(--study-purple)!important;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.template-zippy{display:flex;align-items:center;gap:12px;margin:0 0 6px}
.template-zippy img{width:72px;height:72px;object-fit:contain}
.template-studio .pulse-dots i{color:var(--study-ink);border-color:var(--study-purple)}.template-studio .pulse-dots i.lit{color:var(--study-purple-ink);background:var(--study-purple)}
.template-studio #spin,.template-listen{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 14px;border:0;border-radius:11px;background:var(--study-purple);color:var(--study-purple-ink);font-weight:800}
.template-listen svg{width:19px;height:19px}
.family-panel{max-width:785px;margin-inline:auto}
.family-buttons{display:flex;flex-wrap:wrap;gap:7px}
.family-buttons button{min-height:44px;padding:6px 13px;border:1px solid var(--study-stroke);background:var(--study-card);color:var(--study-ink);border-radius:100px;font-weight:800}
.family-buttons button[aria-pressed=true]{background:#82d5c5;color:#172b39;border-color:transparent}
.family-content{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;margin:13px 0}
#family-emoji{display:grid;place-items:center;width:60px;aspect-ratio:1;border-radius:16px;background:var(--study-peach);font-size:2rem}
.family-panel .template-small{font-size:.84rem;margin:10px 0 0}
.template-studio #daily{margin:0 auto}
.template-studio #daily .message-window{background:var(--study-card);border-color:var(--study-stroke)}
.template-studio #daily .message-window>header{background:var(--study-lavender);color:var(--study-ink)}
.template-studio #daily .message-paper{background:var(--study-card);color:var(--study-ink)}
.template-studio :is(a,button):focus-visible,#masthead .template-nav a:focus-visible{outline:3px solid var(--study-purple);outline-offset:3px}
@media(max-width:760px){
 body[data-view=home] #masthead .mast-inner{min-height:61px}.template-nav{display:none}
 .template-lab{grid-template-columns:minmax(0,1fr)}.template-studio .pulse-dots{display:flex}
}
@media(max-width:530px){
 .template-choices{grid-template-columns:minmax(0,1fr)}
 .template-card{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:4px 11px;border-radius:16px}
 .template-card-icon{width:38px;height:38px;grid-row:1/3}.template-card p{grid-column:2}.template-card strong{grid-column:2}
 .template-hero-inner{grid-template-columns:minmax(0,1fr) minmax(67px,26%);gap:7px}
 .template-disc{width:100%;border-width:7px}.floating-note{display:none}
 .template-studio h1{margin:13px 0;max-width:12ch;font-size:clamp(1.96rem,8vw,2.9rem)}
 .template-badge{padding:5px 8px;font-size:.73rem}.template-lead{margin-bottom:14px}
 .template-piano button{min-height:66px;font-size:.86rem}
}
@media(prefers-reduced-motion:reduce){.template-card{transition:none}}
html[data-quiet=true] .template-card{transition:none}
.template-pink{background:var(--study-pink)}
/* Match the shared activity header to the front door without changing game controls. */
html[data-sos-studio=true][data-theme] .sos-mast{
 background:var(--study-card);color:var(--study-ink);border-color:var(--study-stroke)
}
html[data-sos-studio=true][data-theme] .sos-mast :is(.sos-explore,.sos-account)>summary{
 color:var(--study-ink);border-color:var(--study-stroke);border-radius:100px
}
html[data-sos-studio=true][data-theme] .sos-game-back{color:var(--study-ink)}
html[data-sos-studio=true][data-theme] .sos-mast .canva-brand{width:auto;height:clamp(32px,4vw,46px);max-width:100%;max-height:46px}
html[data-sos-studio=true][data-theme] .sos-game-mast .canva-brand{height:clamp(28px,3.6vw,37px);max-height:37px}
