/* sharing, trial, store, about */
.sharebtn{padding:8px 14px}
body.student header.top .links,body.student .back,body.student footer,body.student #shareBtn,body.student #trialBar,body.student .tool-head .spacer{display:none}
#trialBar{background:linear-gradient(90deg,#6c4cf5,#ff5d8f);color:#fff;text-align:center;padding:7px 12px;font-weight:700;font-size:.9rem;display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
#trialBar a{color:#fff;text-decoration:underline}
#trialBar .tbtn{border:0;background:#ffd23f;color:#1f1d47;border-radius:999px;padding:4px 14px;font-weight:800}
body.class-mode #trialBar{display:none}
.xmodal{position:fixed;inset:0;background:rgba(31,29,71,.6);z-index:200;display:grid;place-items:center;padding:16px;overflow:auto}
.xmodal.lock{background:rgba(31,29,71,.88);z-index:150}
.xbox{background:#fff;color:var(--ink);border-radius:26px;padding:26px;max-width:560px;width:100%;box-shadow:0 30px 80px rgba(0,0,0,.4);position:relative}
.xbox h2{margin:0 0 8px}.xclose{position:absolute;top:12px;inset-inline-end:14px;border:0;background:#f3f0ea;border-radius:50%;width:34px;height:34px;font-weight:800}
.xsub{color:var(--ink2)}.xrow{display:flex;gap:10px;margin:10px 0;align-items:center}.xrow.wrap{flex-wrap:wrap}
.xrow input{flex:1;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit;min-width:0}
.xhow{background:#f7f4ee;border-radius:16px;padding:12px 16px;margin-top:10px}.xhow ol{margin:6px 0 0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px}
.xwarn{background:#fff3cd;border-radius:12px;padding:10px 12px;margin-top:10px;font-size:.88rem;font-weight:700}
.xlist{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:4px;font-weight:700}.xlist.light{color:#e8e6ff}
.xprice{font-family:Fredoka;font-weight:700;font-size:1.2rem;color:var(--purple)}.member .xprice{color:var(--yellow)}
.member{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:24px}
.member h2{margin:8px 0}.mcta{display:flex;flex-direction:column;gap:8px;align-items:center}.mcta small{color:#c9c7ef}
.sthead{margin:10px 0 4px}.stlead,.stnote{color:var(--ink2)}.stcats{margin:10px 0 18px;display:flex;gap:8px;flex-wrap:wrap}
.prodgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.prod{background:#fff;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.part{height:120px;display:grid;place-items:center;font-size:3.4rem;position:relative}.part .badge{position:absolute;top:10px;inset-inline-end:10px}
.pbody{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}.pbody h3{margin:0}.pbody p{margin:0;color:var(--ink2);flex:1}
.pmeta{display:flex;gap:12px;flex-wrap:wrap;font-size:.8rem;font-weight:800;color:var(--ink2)}
.freebox{margin-top:26px;background:#fff;border-radius:24px;padding:20px 24px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;box-shadow:var(--shadow)}.freebox h3,.freebox p{margin:0}
.about{align-items:start}
.maker-col{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.maker{width:150px;height:150px;border-radius:50%;object-fit:cover;border:5px solid var(--purple);box-shadow:var(--shadow)}
.about-text h2{margin-top:0}
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:16px 0}
.about-grid h4{margin:0 0 4px}.about-grid ul{margin:0;padding-inline-start:18px;color:var(--ink2);display:flex;flex-direction:column;gap:3px}
.faq summary{cursor:pointer;font-weight:800;color:var(--purple)}.faq p{margin:8px 0 0}
.fret-wrap{background:#fff;border-radius:18px;padding:8px;overflow-x:auto;margin:8px 0 14px}.fretb{min-width:720px;width:100%;height:auto;display:block}
.fp{cursor:pointer}.fp:hover rect{fill:rgba(108,76,245,.15)}
#printArea{display:none}
@media print{body>*:not(#printArea){display:none!important}#printArea{display:block}.pstaff{width:100%;height:auto;margin:6px 0}}
body.student #topnav,body.student .tool-head .back,body.student a[href="#home"]{display:none!important}
body.student .brand{pointer-events:none;cursor:default}
body.student .brand{display:flex!important}

/* ===== Music & Movement 2 ===== */
.cup-row{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin:14px 0}
.cup-tile{background:linear-gradient(160deg,#3b2f6b,#2a2150);border:3px solid transparent;border-radius:16px;padding:6px 4px;color:#fff;font-family:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;transition:transform .12s,border-color .12s}
.cup-tile small{position:absolute;top:4px;inset-inline-start:8px;opacity:.6;font-size:.75rem}
.cup-tile b{font-size:.78rem;font-weight:600}
.cup-tile .cup-ic{width:100%;max-width:70px}
.cup-tile.edit{cursor:pointer}.cup-tile.edit:hover{border-color:#ffd23f}
.cup-tile.on{border-color:#ffd23f;transform:scale(1.08);background:linear-gradient(160deg,#6c4cf5,#4a34b8)}
.cup-chant{text-align:center;font-weight:700;opacity:.85;margin:6px 0 10px;font-size:1.05rem}
.mv-tip{text-align:center;opacity:.8;font-size:.92rem;margin:8px auto;max-width:640px}
.sc-stage,.pc-stage,.fr-stage,.bb-stage{border-radius:18px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.25);margin:10px auto;max-width:720px}
.sc-stage svg,.pc-stage svg,.fr-stage svg,.bb-stage svg{display:block;width:100%;height:auto}
.pc-stage{background:radial-gradient(circle at 50% 50%,#8fd0ff,#4a8fd8)}
.sc-lyrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin:8px 0}
.sc-line{background:rgba(255,255,255,.1);border-radius:12px;padding:8px 12px;border:2px solid transparent}
.sc-line.on{border-color:#ffd23f;background:rgba(255,210,63,.18)}
.sc-line small{display:block;opacity:.7}
.sc-free{grid-column:1/-1;text-align:center;opacity:.85}
.swatches{display:inline-flex;gap:6px}.sw{width:28px;height:28px;border-radius:50%;border:3px solid #fff4;cursor:pointer}.sw.on{border-color:#fff}
.chips2{display:inline-flex;flex-wrap:wrap;gap:6px}
.chips2 .chip{border:2px solid #fff3;background:transparent;color:inherit;border-radius:999px;padding:6px 12px;cursor:pointer;font-family:inherit}
.chips2 .chip.on{background:#ffd23f;color:#2a2150;border-color:#ffd23f;font-weight:700}
.pc-top{display:flex;justify-content:center}.pc-dyn{display:flex;align-items:baseline;gap:10px}
.pc-dyn .dyn{font-family:Fredoka,serif;font-style:italic;font-size:2.4rem;font-weight:700;color:#ffd23f}
.bb-row{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin:10px 0}
.bb-step{background:rgba(255,255,255,.1);border-radius:12px;padding:6px 2px;text-align:center;display:flex;flex-direction:column;font-size:1.3rem;border:3px solid transparent}
.bb-step span{font-size:.75rem;opacity:.7}.bb-step small{font-size:.75rem;font-weight:700;min-height:1em}
.bb-step.hit{background:rgba(240,138,36,.3)}.bb-step.on{border-color:#ffd23f;transform:scale(1.07)}
@media(max-width:560px){.cup-row{grid-template-columns:repeat(4,1fr)}.cup-tile b{font-size:.7rem}}
.mv-arena .status{font-size:1.2rem;white-space:normal;text-align:center;max-width:680px;margin-inline:auto;line-height:1.35;overflow-wrap:anywhere}
.mv-arena .status{display:block !important;white-space:normal !important;overflow:visible !important;height:auto !important;min-height:2.4em}
.mv-arena .status b{display:inline}

/* shop & social links */
.linkbox{background:#fff;border:2px solid #ece6ff;border-radius:18px;padding:14px 16px;margin:14px 0;color:#1f1d47}
.linkbox h3{margin:0 0 4px}.linkbox p{margin:0 0 8px;opacity:.8}
.lnks{display:flex;flex-wrap:wrap;gap:8px}
.lnk{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:#f1edff;color:#4a34b8;font-weight:700;text-decoration:none;border:2px solid transparent;transition:transform .12s}
.lnk:hover{transform:translateY(-2px);border-color:#6c4cf5}
.lnks.foot{justify-content:center;margin-top:10px}
body.student .linkbox,body.student #footLinks{display:none !important}

/* ===== printables ===== */
body.student #printBtn{display:none !important}
@page{size:A4;margin:12mm}
.ppage{font-family:Fredoka,'Segoe UI',system-ui,sans-serif;color:#1f1d47;background:#fff;page-break-after:always;break-after:page;display:flex;flex-direction:column;min-height:268mm}
.ppage:last-child{page-break-after:auto;break-after:auto}
.phead{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:4px solid #6c4cf5;padding-bottom:6px;margin-bottom:8px}
.phead small{color:#6c4cf5;font-weight:700}.phead h1{margin:2px 0 0;font-size:24pt}
.pname{font-size:10pt;text-align:right;line-height:1.8}
.pintro{font-size:10.5pt;margin:6px 0 10px;color:#444}
.ph2{font-size:13pt;margin:12px 0 6px;color:#6c4cf5}
.pnote{font-size:9.5pt;color:#555;margin:6px 0}
.pline{border-bottom:1.5px solid #999;height:20px}
.pfoot{margin-top:auto;display:flex;justify-content:space-between;font-size:8.5pt;color:#777;border-top:1px solid #ccc;padding-top:4px}
.plog{width:100%;border-collapse:collapse;font-size:10pt}.plog th,.plog td{border:1.5px solid #bbb;padding:8px 6px;text-align:start}.plog th{background:#f1edff}
.pcheck{list-style:none;padding:0;margin:0}.pcheck li{display:flex;gap:8px;align-items:center;margin:7px 0;font-size:11pt}.cb{width:15px;height:15px;border:2px solid #1f1d47;border-radius:3px;display:inline-block}
.preflect p{margin:8px 0 0;font-size:10.5pt}
.rbar{display:flex;gap:0;border:2px solid #1f1d47;border-radius:6px;margin:5px 0;height:66px;flex:none}
.rbar .rcell{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;border-inline-end:1.5px dashed #aaa;padding:2px}
.rbar .rcell:last-child{border-inline-end:none}
.rbar .rcell svg{height:40px;width:100%}.rbar .rcell small{font-size:8.5pt;font-weight:700}
.rbar.blank{height:46px}
.pst{margin:6px 0}.pst .staff{width:100%;height:auto;max-height:78px}
.pans{display:flex;gap:6px;justify-content:space-around;margin-top:-8px}.pans span{border-bottom:1.5px solid #666;height:16px;flex:1;margin:0 8px}
.pstaff2{width:100%;height:60px}
.pcut{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);gap:0}
.pcard{border:1.5px dashed #777;padding:8px 4px;text-align:center;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.pcard .pe{font-size:30pt;line-height:1.1}.pcard b{font-size:11pt}.pcard small{font-size:8.5pt;color:#666}
.pgrid{border-collapse:collapse;width:100%;font-size:8.5pt;margin:6px 0}.pgrid th,.pgrid td{border:1px solid #888;height:22px;text-align:center;padding:0 2px}.pgrid td.b,.pgrid th.b{border-inline-start:2.5px solid #1f1d47}.pgrid th:first-child{text-align:start;white-space:nowrap;padding:0 6px;background:#f1edff}
.phs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.phc{border:3px solid var(--c);border-radius:12px;text-align:center;padding:4px}.phc .hsv svg{width:100%;height:auto;max-height:120px}.phc b{font-size:16pt;display:block}.phc small{font-size:8.5pt;display:block;color:#555}
.pchords{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.pchord{width:100%;height:auto;max-height:210px}
.pbars{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.pbar4{border:2px solid #1f1d47;display:flex;align-items:center;gap:0;height:46px}.pbar4 b{padding:0 10px;font-size:14pt;border-inline-end:2px solid #1f1d47;min-width:44px}.pbar4 span{flex:1;text-align:center;border-inline-end:1px dashed #999;height:100%}
.precs{display:flex;gap:18px;justify-content:center}.prec{width:70px;height:auto}
.pkeys{width:100%;height:auto}
.pbars8{display:flex;gap:6px;align-items:flex-end;height:160px}.pbar8{flex:1;background:var(--c);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:6px;color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}.pbar8 b{font-size:14pt;text-shadow:0 1px 2px #0006}.pbar8 small{font-size:9pt}
.pfret{width:100%;height:auto;margin:6px 0}
.pdyn{display:flex;align-items:flex-end;gap:6px;height:130px}.pdyn div{flex:1;height:var(--h);background:#6c4cf5;border-radius:6px 6px 0 0;display:flex;align-items:flex-start;justify-content:center;color:#fff;font-style:italic;padding-top:4px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.prings{display:flex;gap:10px}.prings svg{flex:1;width:50%;height:auto}
.pdrib{display:flex;align-items:center;gap:8px;margin:6px 0}.pdrib b{width:110px;font-size:10.5pt}.pdrib div{flex:1;display:flex;border:2px solid #1f1d47;height:42px}.pdrib span{flex:1;text-align:center;line-height:40px;font-size:15pt;border-inline-end:1px dashed #aaa}.pdrib span.b{border-inline-start:2px solid #1f1d47}
.pdraw{border:2px dashed #888;border-radius:10px;height:150mm}
.pkey{margin-top:12px;border:2px dashed #aaa;border-radius:10px;padding:6px 10px;font-size:9.5pt}.pkey p{margin:2px 0}
@media print{body>*:not(#printArea){display:none!important}#printArea{display:block!important}#printArea.pk{display:block!important}}
@media(max-width:1200px){#printBtn span{display:none}#printBtn{padding-inline:12px}}

/* ---------- 3D Ukulele Studio and 3D Solfège Hands (js/tools-3d.js) ---------- */
.s3d{display:flex;flex-direction:column;gap:12px}
.s3d [hidden]{display:none!important}
.s3d-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.s3d-seg{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.s3d-chip{border:2px solid #e5e7eb;background:#fff;border-radius:999px;padding:6px 12px;font-weight:700;cursor:pointer;min-width:44px;min-height:40px;color:inherit}
.s3d-chip.on{background:#6c4cf5;color:#fff;border-color:#6c4cf5}
.s3d-btn{border:0;border-radius:14px;padding:10px 14px;font-weight:800;background:linear-gradient(135deg,#ff9f1c,#ff5d8f);color:#fff;cursor:pointer;min-height:44px}
.s3d-btn.ghost{background:#eef2f7;color:#334155}
.s3d-btn:disabled{opacity:.45;cursor:default}
.s3d-host{width:100%;height:min(60vh,440px);min-height:300px;border-radius:20px;overflow:hidden;background:radial-gradient(circle at 50% 30%,#fff8ec,#f1e4d0 70%,#e6d2b8)}
.s3d-box{position:relative;width:100%;height:100%}
.s3d-canvas{width:100%;height:100%;display:block;cursor:grab}
.s3d-canvas:active{cursor:grabbing}
.s3d-loading,.s3d-fail{display:flex;align-items:center;justify-content:center;height:100%;padding:20px;text-align:center;font-weight:700;color:#475569}
.s3d-card{background:#fff;border-radius:18px;padding:14px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.s3d-name{font-size:1.25rem;font-weight:900}
.s3d-cols{display:grid;grid-template-columns:1fr 130px;gap:12px;align-items:center}
.s3d-list{margin:6px 0 0;padding-inline-start:20px;line-height:1.6}
.s3d-diagbox{display:flex;justify-content:center}
.s3d-diag{width:120px;height:auto;color:#334155}
.s3d-stars{text-align:center;font-weight:800}
.s3d-star{background:#fff7d6;border-radius:999px;padding:4px 12px}
.s3d-msg{color:#6c4cf5}
.s3d-note{font-size:.9rem;opacity:.8;text-align:center;max-width:680px;margin:0 auto}
.s3d-lbl{font-weight:700}
.s3d-step{font-weight:800}
.s3d-keys{gap:6px}
.s3d-key{--c:#999;border:0;border-radius:14px;padding:8px 10px;min-width:62px;background:color-mix(in srgb,var(--c) 22%,#fff);color:#1f2937;cursor:pointer;display:flex;flex-direction:column;align-items:center;min-height:52px}
.s3d-key.on{outline:3px solid var(--c)}
.s3d-key b{font-size:1.05rem}
.s3d-key small{font-weight:700}
.s3d-syl{text-align:center}
.s3d-big{font-size:2.4rem;font-weight:900}
.s3d-note-name{font-size:1.2rem;font-weight:800;opacity:.8}
.s3d-small{font-size:.9rem;opacity:.8}
.s3d-refbox{text-align:center}
.s3d-refsvg .hsign{width:90px;height:90px}
.s3d kbd{font-size:.7rem;padding:1px 5px;border-radius:5px;background:rgba(0,0,0,.08)}
@media(max-width:560px){.s3d-cols{grid-template-columns:1fr}.s3d-diagbox{order:-1}}
.s3d-practice{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:18px;padding:12px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.s3d-ctl input[type=range]{vertical-align:middle;width:160px}
.s3d-prview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.s3d-pbox{background:#f8f5ef;border-radius:14px;padding:8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:110px;justify-content:center}
.s3d-pbox small{font-weight:700;opacity:.75}
.s3d-count{font-size:2.4rem;font-weight:900;color:#6c4cf5}
.s3d-now{font-size:1.9rem;font-weight:900}
.s3d-nextbox .s3d-diag{width:70px}
@media(max-width:560px){.s3d-prview{grid-template-columns:1fr}}

/* ===== open strings song: clean layout, seeds and score links ===== */
.ukicon{width:1em;height:1em;vertical-align:-.15em;display:inline-block;flex:none}
.caticon .ukicon{width:34px;height:34px}
.tool .art .ukicon{width:92px;height:92px}
.kit-tabs .ukicon{width:1.1em;height:1.1em}
.hold-emoji .ukicon{width:170px;height:170px}
.sg-arena{padding-bottom:22px}
.sg-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;margin:14px 0 26px}
.sg-w{background:rgba(255,255,255,.08);border:3px solid var(--c);border-radius:16px;padding:12px 8px;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:transform .12s,background .12s}
.sg-w b{font-family:Fredoka;font-weight:700;font-size:1.45rem;color:#fff;line-height:1.1;overflow-wrap:anywhere;text-align:center}
.sg-w i{font-style:normal;display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:999px;background:var(--c);color:#1f1d47;font-weight:800;font-family:Fredoka;font-size:1.1rem}
.sg-w.on{background:var(--c);transform:scale(1.06)}
.sg-w.on b{color:#1f1d47}
.sg-w.on i{background:#1f1d47;color:var(--c)}
.sg-neck{background:linear-gradient(90deg,#5b3a1e,#7a4b26);border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:18px;margin-top:6px}
.sg-str{display:flex;align-items:center;gap:14px;cursor:pointer;min-height:44px}
.sg-lab{width:42px;height:42px;border-radius:50%;background:var(--c);color:#1f1d47;display:grid;place-items:center;font-weight:800;font-family:Fredoka;font-size:1.1rem;flex:none;box-shadow:0 3px 0 rgba(0,0,0,.35)}
.sg-line{flex:1;height:5px;background:linear-gradient(#fff,#bbb);border-radius:3px;box-shadow:0 2px 0 rgba(0,0,0,.4)}
.sg-str.vib .sg-line{background:var(--c);animation:vib .5s linear}
.sg-score{margin-top:18px;display:flex;flex-direction:column;gap:12px;text-align:start}
.sg-score h3{margin:0;font-family:Fredoka;font-size:1.3rem}
.sg-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sg-row .lbl{min-width:100%;font-size:.9rem;opacity:.85;font-weight:700}
.sg-row code{background:rgba(255,255,255,.1);padding:6px 10px;border-radius:10px;word-break:break-all;font-size:.85rem;flex:1}
.sg-input{flex:1;min-width:180px;padding:10px 12px;border-radius:12px;border:2px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:inherit;font:inherit}
.sg-col .sg-input,.sg-row textarea.sg-input{width:100%}
.sg-btn{padding:10px 16px;border-radius:999px;border:0;background:#ffd23f;color:#1f1d47;font-weight:800;cursor:pointer;font:inherit}
.sg-btn.ghost{background:transparent;color:inherit;border:2px solid rgba(255,255,255,.35)}
.sg-make summary{cursor:pointer;font-weight:800;padding:6px 0}
.sg-err{min-height:1.2em;font-weight:700;color:#ffd23f}
@media (max-width:560px){ .sg-w b{font-size:1.2rem} .sg-neck{padding:14px} }

/* ===== Spotify backing tracks (on every page) ===== */
.sp-fab{position:fixed;left:14px;bottom:14px;z-index:900;border:0;border-radius:999px;background:#1db954;color:#06210f;font:inherit;font-weight:800;padding:11px 16px;box-shadow:0 8px 20px rgba(0,0,0,.25);cursor:pointer}
.sp-panel{position:fixed;left:14px;bottom:70px;z-index:901;width:min(390px,calc(100vw - 28px));max-height:78vh;overflow:auto;background:#fff;color:#1f1d47;border-radius:18px;padding:14px;box-shadow:0 18px 40px rgba(0,0,0,.3);font-family:Nunito,sans-serif}
.sp-panel[hidden]{display:none}
.sp-head{display:flex;justify-content:space-between;align-items:center;font-family:Fredoka,sans-serif;font-size:1.1rem}
.sp-head button{border:0;background:#eee;border-radius:50%;width:32px;height:32px;cursor:pointer;font-size:1rem}
.sp-row{display:flex;gap:8px;margin:10px 0}
.sp-row input{flex:1;min-width:0;padding:9px 10px;border-radius:10px;border:2px solid #ddd;font:inherit}
.sp-row button{border:0;border-radius:10px;background:#1db954;color:#06210f;font-weight:800;padding:0 14px;cursor:pointer;font:inherit}
.sp-err{min-height:1.2em;color:#b42318;font-weight:700;font-size:.9rem}
.sp-panel iframe{border-radius:12px;display:block;width:100%;margin-top:6px}
.sp-note{font-size:.8rem;color:#55537a;margin:8px 0 0;line-height:1.4}
.sp-tools{display:flex;gap:8px;justify-content:flex-end;margin-top:6px}
.sp-tools button{border:2px solid #ddd;background:#fff;border-radius:999px;padding:4px 12px;cursor:pointer;font:inherit;font-size:.85rem;color:#1f1d47}
.s3d-ov{position:absolute;inset:0;pointer-events:none}
.s3d-ov svg{width:100%;height:100%;display:block}

/* ===== class toolkit: my classes (CSV) and spin the wheel ===== */
.cls-box{display:flex;flex-direction:column;gap:8px;background:#f7f5ff;border-radius:14px;padding:10px}
.cls-box select,.cls-box #clsName{width:100%;border:2px solid var(--line);border-radius:12px;padding:8px;font:inherit;background:#fff}
.cls-box .row{display:flex;gap:6px;flex-wrap:wrap}
.cbtn-sm{border:2px solid var(--line);background:#fff;border-radius:12px;padding:7px 10px;font:inherit;font-weight:800;cursor:pointer;color:var(--ink)}
.cls-box label.cbtn-sm{display:inline-block;text-align:center}
.cls-msg{min-height:1.2em;font-size:.85rem;color:var(--ink2)}
.wheel-wrap{position:relative;width:min(420px,100%);margin:0 auto}
#wheelCv{width:100%;height:auto;display:block}
.wheel-pin{position:absolute;top:-6px;left:50%;transform:translateX(-50%);font-size:2rem;color:#e0262b;z-index:2;line-height:1}
.wheel-result{min-height:2.4em;text-align:center;font-family:Fredoka,sans-serif;font-size:1.8rem;margin:12px 0}
.wheel-edit{margin-top:14px}
.wheel-edit textarea{width:100%;min-height:120px;border:2px solid var(--line);border-radius:14px;padding:10px;font:inherit}
.wheel-edit .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}

/* ===== wheel editor: per-option text, colour and picture; saved wheels ===== */
.wrow{display:flex;align-items:center;gap:6px;margin-bottom:6px;flex-wrap:wrap}
.wnum{width:1.6em;text-align:center;font-weight:800;color:var(--ink2)}
.wrow .wtxt{flex:1 1 140px;min-width:0;border:2px solid var(--line);border-radius:10px;padding:6px 8px;font:inherit}
.wrow .wcol{width:44px;height:36px;border:2px solid var(--line);border-radius:10px;padding:2px;background:#fff;cursor:pointer}
.wpic{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:36px;padding:0 6px;cursor:pointer}
.wpic img{width:26px;height:26px;object-fit:cover;border-radius:6px;display:block}
.wrow .wnoimg,.wrow .wdel{padding:5px 8px}
.wheel-save{margin-top:14px;padding-top:12px;border-top:2px dashed var(--line);display:flex;flex-direction:column;gap:8px}
.wheel-save .row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.wheel-save input[type=text],.wheel-save select{flex:1 1 180px;border:2px solid var(--line);border-radius:12px;padding:8px;font:inherit;background:#fff}
.wheel-res-img{width:44px;height:44px;object-fit:cover;border-radius:10px;vertical-align:middle;margin-right:6px}

/* teacher guide on every game page */
.tguide{max-width:920px;margin:26px auto 10px;background:#fff;color:#1f1d47;border-radius:18px;padding:12px 18px;box-shadow:0 6px 20px rgba(31,29,71,.08)}
.tguide summary{cursor:pointer;font-weight:800;font-size:1.1rem}
.tguide .tg-body{margin-top:10px;line-height:1.55}
.tguide ol{padding-inline-start:22px}
.tguide li{margin:4px 0}
.pguide li{margin:6px 0}
/* sight-reading staff */
.sr-score{background:#fff;color:#1f1d47;border-radius:18px;padding:14px}
.sr-systems svg{width:100%;max-width:960px;height:auto;display:block;margin:0 auto 6px}
.sr-n.on{filter:drop-shadow(0 0 4px #ffd23f)}
.sr-n.on .sr-head{stroke:#e0262b}

/* ---- Elements of Music and Instrument Families ---- */
.th-body{margin-top:12px}
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.th-card{background:var(--card,#fff);border-radius:14px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.th-card p{margin:6px 0 10px;font-size:.95rem}
.th-name{font-weight:800;font-size:1.05rem}
.th-inst{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.th-q{max-width:640px}
.th-prog{font-size:.9rem;opacity:.75;margin:0 0 6px}
.th-ask{font-size:1.1rem;font-weight:700;margin:4px 0 10px}
.th-opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:14px 0}
.th-opt{padding:12px 14px;border-radius:12px;border:2px solid #ddd;background:#fff;font-weight:700;font-size:1rem;cursor:pointer;text-align:start}
.th-opt:hover:not([disabled]){border-color:#6c4cf5}
.th-opt.right{border-color:#22c55e;background:#dcfce7}
.th-opt.wrong{border-color:#ef4444;background:#fee2e2}
.th-opt[disabled]{cursor:default}
.th-fb{min-height:1.5em;margin:6px 0}
.th-end{text-align:center;padding:24px 8px}

/* ---- Movement Builder ---- */
.mb-summary{margin:8px 0;font-size:.95rem}
.mb-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.mb-now{margin:12px 0;padding:16px;border-radius:16px;background:linear-gradient(135deg,#14b8a6,#6c4cf5);color:#fff;text-align:center}
.mb-now-sec{font-size:.95rem;opacity:.9}
.mb-now-move{font-size:2rem;font-weight:800;margin:6px 0}
.mb-now-next{font-size:1rem;opacity:.95}
.mb-bar{height:8px;background:#e5e7eb;border-radius:6px;overflow:hidden;margin-bottom:10px}
.mb-bar div{height:100%;width:0;background:#14b8a6;transition:width .2s}
.mb-h{margin:16px 0 6px}
.mb-add,.mb-lib,.mb-chips,.mb-saved,.mb-save,.mb-custom,.mb-sec-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mb-sections{display:grid;gap:10px}
.mb-sec{background:var(--card,#fff);border-radius:14px;padding:12px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.mb-sec-head{justify-content:space-between;margin-bottom:6px}
.mb-bars input{width:64px;margin-inline-start:4px}
.mb-chips{margin:6px 0}
.mb-chip{background:#ecfdf5;border-color:#14b8a6}
.mb-empty{opacity:.7;font-size:.9rem}
.mb-lib{margin:6px 0}
.mb-custom{margin-top:6px}
.mb-custom input,.mb-save input{padding:6px 10px;border-radius:10px;border:1px solid #ccc;min-width:180px}
.mb-saved-item{display:inline-flex;gap:2px}

/* ---- Movement Builder: play screen and cup/brain groups ---- */
.mb-grp{margin:4px 0}
.mb-grp small{display:block;opacity:.7;font-weight:700}
.mb-warn{font-size:.9rem;color:#b45309;background:#fef3c7;padding:8px;border-radius:10px}
.mb-songat{display:inline-flex;gap:6px;align-items:center}
.mb-songat input{width:90px;padding:4px 8px;border-radius:8px;border:1px solid #ccc}
.mb-play{text-align:center}
.mb-stage{padding:24px 12px;border-radius:24px;background:linear-gradient(135deg,#14b8a6,#6c4cf5);color:#fff;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.mb-stage-sec{font-size:1.1rem;opacity:.9;font-weight:700}
.mb-stage-move{display:flex;flex-direction:column;align-items:center;gap:6px}
.mb-big-e{font-size:6rem;line-height:1}
.mb-big-n{font-size:clamp(2rem,7vw,3.5rem);font-weight:900;text-align:center;line-height:1.1}
.mb-stage .mb-bar{width:100%;max-width:520px;background:rgba(255,255,255,.3)}
.mb-stage .mb-bar div{background:#fff}
.mb-stage .lb-dot{background:rgba(255,255,255,.35)}
.mb-stage .lb-dot.on{background:#ffd23f}

/* ---- Elements of Music Lab, Phase 2: Melody and Pitch ---- */
a.lb-el{text-decoration:none;color:inherit;display:block}
a.lb-el:hover{outline:2px solid #6c4cf5}
.mel-syl{display:inline-block;margin:0 4px;padding:4px 10px;border-radius:10px;background:#f5f3ff;font-weight:700}
.mel-row{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.mel-cards{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.mel-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px;border-radius:14px;border:3px solid #6c4cf5;background:#fff;cursor:pointer;font:inherit}
.mel-card.done{opacity:.35;border-style:dashed}
.mel-card[disabled]{cursor:default}
.mel-pads{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:10px 0}
.mel-pad{padding:12px 6px;border-radius:14px;border:none;background:linear-gradient(135deg,#ff5d8f,#6c4cf5);color:#fff;font-weight:800;font-size:1rem;cursor:pointer}
.mel-pad.on{transform:scale(1.08);box-shadow:0 0 0 4px #ffd23f}
.mel-pad[disabled]{opacity:.5;cursor:default}
.pel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.pel-btn{font-size:1.1rem;text-align:center}
.hsm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:10px 0}
.hsm-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border-radius:14px;border:3px solid transparent;background:#fff;cursor:pointer;font:inherit}
.hsm-card.right{border-color:#22c55e}
.hsm-card.wrong{border-color:#ef4444}
.cmp-staff{display:flex;flex-wrap:wrap;gap:6px;min-height:52px;padding:10px;border-radius:14px;background:#fff7ed;margin:8px 0}
.cmp-note{padding:6px 10px;border-radius:10px;background:#f59e0b;color:#fff;font-weight:800}
.mel-h{margin:12px 0 6px}
.pno{position:relative;display:flex;height:180px;border-radius:0 0 12px 12px;background:#222;padding:6px 6px 0;max-width:640px;margin:0 auto}
.pno-w{flex:1;margin:0 2px;background:#fff;border:1px solid #333;border-radius:0 0 8px 8px;cursor:pointer;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;font:inherit;font-weight:700}
.pno-w:active{filter:brightness(.8)}
.pno-b{position:absolute;top:6px;width:7%;height:58%;background:#111;border:none;border-radius:0 0 6px 6px;cursor:pointer;z-index:1}
.pno-b:active{background:#6c4cf5}
.xyl{display:flex;align-items:flex-end;gap:8px;justify-content:center;max-width:640px;margin:0 auto;padding:10px}
.xyl-bar{width:56px;border:none;border-radius:10px 10px 4px 4px;color:#111;font-weight:800;cursor:pointer;padding-top:6px;font:inherit;box-shadow:0 4px 0 rgba(0,0,0,.2)}
.xyl-bar:active{transform:translateY(3px)}

/* Elements labs, Phases 3 to 5: shared layouts */
.hrm-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0}
.hrm-note{width:52px;height:64px;border:2px solid #333;border-radius:0 0 10px 10px;background:#fff;font:inherit;font-weight:800;cursor:pointer}
.hrm-note.on{background:#fde68a}
.hrm-note:disabled{opacity:.7;cursor:default}
.hrm-slot{min-width:64px;min-height:64px;border:2px solid #333;border-radius:12px;background:#fff;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.hrm-slot.on{background:#bfdbfe;border-color:#1d4ed8}
.hrm-tapbtn{display:block;margin:14px auto;width:180px;height:180px;border-radius:50%;border:none;background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;font:inherit;font-size:1.6rem;font-weight:900;cursor:pointer;box-shadow:0 8px 0 rgba(0,0,0,.2)}
.hrm-tapbtn:active{transform:translateY(4px)}
.lb-opts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0}
.lb-opt{min-height:44px;padding:8px 12px;border:2px solid #333;border-radius:12px;background:#fff;font:inherit;cursor:pointer}
.lb-opt.right{background:#bbf7d0;border-color:#15803d}
.lb-opt.wrong{background:#fecaca;border-color:#b91c1c}
.lb-opt:disabled{cursor:default}

/* Elements labs, Phases 3 to 5: shared layouts */
.hrm-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0}
.hrm-note{width:52px;height:64px;border:2px solid #333;border-radius:0 0 10px 10px;background:#fff;font:inherit;font-weight:800;cursor:pointer}
.hrm-note.on{background:#fde68a}
.hrm-note:disabled{opacity:.7;cursor:default}
.hrm-slot{min-width:64px;min-height:64px;border:2px solid #333;border-radius:12px;background:#fff;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.hrm-slot.on{background:#bfdbfe;border-color:#1d4ed8}
.hrm-tapbtn{display:block;margin:14px auto;width:180px;height:180px;border-radius:50%;border:none;background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;font:inherit;font-size:1.6rem;font-weight:900;cursor:pointer;box-shadow:0 8px 0 rgba(0,0,0,.2)}
.hrm-tapbtn:active{transform:translateY(4px)}
.lb-opts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0}
.lb-opt{min-height:44px;padding:8px 12px;border:2px solid #333;border-radius:12px;background:#fff;font:inherit;cursor:pointer}
.lb-opt.right{background:#bbf7d0;border-color:#15803d}
.lb-opt.wrong{background:#fecaca;border-color:#b91c1c}
.lb-opt:disabled{cursor:default}

/* Music Quest, Phase 5 */
.qst-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.qst-tabs .chip.on{background:#1e1b4b;color:#fff}
.qst-map{display:grid;gap:10px}
.qst-isl{display:flex;gap:12px;align-items:flex-start;padding:12px;border:2px solid #e5e7eb;border-radius:14px;background:#fff}
.qst-isl.locked{opacity:.6}
.qst-isl-e{font-size:2rem;min-width:44px;text-align:center}
.qst-isl-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.qst-bar{width:100%;height:10px;border-radius:6px;background:#e5e7eb;overflow:hidden}
.qst-bar span{display:block;height:100%;background:linear-gradient(90deg,#8b5cf6,#22c55e)}
.qst-stars{color:#f59e0b;letter-spacing:1px}
.qst-card{padding:12px;border:2px solid #e5e7eb;border-radius:14px;background:#fff;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.qst-team{display:flex;align-items:center;gap:8px}
.qst-name{flex:1;min-width:0;padding:8px;border:2px solid #ddd;border-radius:10px;font:inherit}
.qst-pts{min-width:36px;text-align:center;font-size:1.2rem}
.qst-timer{font-size:2.6rem;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}
.qst-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.qst-badge{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border:2px solid #e5e7eb;border-radius:14px;background:#f9fafb;text-align:center;opacity:.6}
.qst-badge.earned{opacity:1;background:#fef9c3;border-color:#f59e0b}
.qst-badge span{font-size:2rem}
.qst-tablewrap{overflow-x:auto}
.qst-table{width:100%;border-collapse:collapse;font-size:.9rem}
.qst-table th,.qst-table td{padding:8px;border-bottom:1px solid #e5e7eb;text-align:start}

/* ---- Elements hub: icon-card grid ---- */
.lb-el-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:14px 0 22px}
.lb-el-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:150px;padding:16px 10px;border-radius:18px;color:#fff;text-decoration:none;text-align:center;box-shadow:0 6px 16px rgba(0,0,0,.14);transition:transform .15s ease,box-shadow .15s ease}
.lb-el-card:hover,.lb-el-card:focus-visible{transform:translateY(-3px) scale(1.02);box-shadow:0 10px 22px rgba(0,0,0,.2);outline:none}
.lb-el-big{font-size:2.6rem;line-height:1;text-shadow:0 2px 6px rgba(0,0,0,.25)}
.lb-el-card b{font-size:1.02rem;text-shadow:0 1px 3px rgba(0,0,0,.25)}
.lb-el-card small{font-size:.8rem;opacity:.92;background:rgba(255,255,255,.22);border-radius:999px;padding:2px 10px}

/* ---- Game cards: a different colour for each card ---- */
.lb-games .lb-card{border-top:6px solid var(--cc,#6c4cf5)}
.lb-games .lb-card:nth-child(6n+1){--cc:#ef4444;background:linear-gradient(180deg,#fff1f1,#fff)}
.lb-games .lb-card:nth-child(6n+2){--cc:#f59e0b;background:linear-gradient(180deg,#fff8e6,#fff)}
.lb-games .lb-card:nth-child(6n+3){--cc:#22c55e;background:linear-gradient(180deg,#eefcf3,#fff)}
.lb-games .lb-card:nth-child(6n+4){--cc:#3b82f6;background:linear-gradient(180deg,#eef5ff,#fff)}
.lb-games .lb-card:nth-child(6n+5){--cc:#8b5cf6;background:linear-gradient(180deg,#f5f0ff,#fff)}
.lb-games .lb-card:nth-child(6n+6){--cc:#ec4899;background:linear-gradient(180deg,#fff0f7,#fff)}
.lb-card-e{font-size:2.2rem}

/* ---- Game banner ---- */
.lb-banner{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:18px;color:#fff;margin:6px 0 10px;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.lb-banner-e{font-size:2.6rem;line-height:1;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.lb-banner .lb-title{margin:0;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.25)}
.lb-banner-sym{display:block;font-size:1.3rem;letter-spacing:.35em;opacity:.9;margin-top:2px}

/* ---- Notation symbols ---- */
.sym{font-size:1.25em;line-height:1;font-family:"Segoe UI Symbol","Noto Music","Noto Sans Symbols 2",serif}
.lb-blk .sym{font-size:1.15em}

/* ---- Board games: Music Journey ---- */
.bd-board{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:12px 0}
.bd-sq{position:relative;min-height:54px;border-radius:12px;background:#fff;border:2px solid #e5e7eb;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.25rem}
.bd-sq .bd-g{font-family:"Segoe UI Symbol","Noto Music",serif}
.bd-start{background:#dcfce7;border-color:#22c55e}
.bd-finish{background:#fef3c7;border-color:#f59e0b}
.bd-star{background:#fef9c3;border-color:#eab308}
.bd-rest{background:#e0e7ff;border-color:#6366f1}
.bd-q{background:#fff}
.bd-t{display:flex;gap:3px;min-height:12px;margin-top:2px}
.bd-t i{display:block;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.bd-dot{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle;margin-right:4px}
.bd-askbox{margin:10px 0}
@media (max-width:480px){.bd-board{gap:4px}.bd-sq{min-height:46px;font-size:1.05rem}}

/* ---- Board games: Symbol Memory ---- */
.bm-grid{display:grid;gap:8px;margin:12px 0}
.bm-card{min-height:76px;border-radius:14px;border:2px solid #cbd5e1;background:linear-gradient(135deg,#6c4cf5,#ec4899);color:#fff;font-size:1.6rem;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:6px;font-family:inherit}
.bm-card.up{background:#fff;color:#111;border-color:#6c4cf5}
.bm-card.ok{border-color:#16a34a}
.bm-card small{font-size:.8rem;line-height:1.2;text-align:center}
.bm-sym{font-size:2.2rem;font-family:"Segoe UI Symbol","Noto Music",serif}
.bm-card:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}

/* ---- Subscribe button in the header ---- */
.subscribe-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:linear-gradient(135deg,#6c4cf5,#ec4899);color:#fff !important;font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(108,76,245,.3)}
.subscribe-btn:hover,.subscribe-btn:focus-visible{filter:brightness(1.08);outline:none;transform:translateY(-1px)}
@media (max-width:480px){.subscribe-btn{padding:6px 10px;font-size:.78rem;box-shadow:none}}
@media (max-width:480px){.subscribe-btn .sub-price{display:none}}
@media (max-width:480px){.sheets{gap:8px}.sheet{width:92px;height:122px;padding:9px}}
@media (max-width:380px){.sheets{gap:6px}.sheet{width:82px;height:110px;padding:7px}}

/* ---- Reviews section ---- */
.reviews{max-width:720px;margin:40px auto 10px;padding:24px 18px;text-align:center;background:#fff;border-radius:18px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.reviews h2{margin:0 0 8px}
.reviews p{margin:0 0 16px;color:#55537a}
.review-btn{display:inline-block;padding:12px 22px;border-radius:999px;background:linear-gradient(135deg,#6c4cf5,#ec4899);color:#fff !important;font-weight:700;text-decoration:none}
.review-btn:hover,.review-btn:focus-visible{filter:brightness(1.08);outline:none}
