@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Bricolage+Grotesque:wght@600;700;800&display=swap');
:root{color-scheme:dark;--bg:#100d22;--panel:#1c1731;--line:#392e53;--text:#f7f2ff;--muted:#c1b5d8;--accent:#caa1ff;--cyan:#8cf4e7;font:16px 'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,.account,select,input{background:#241b3c;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:.65rem .85rem}button,.account{cursor:pointer;font-weight:700}button:hover,.account:hover{border-color:var(--accent)}:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}[hidden]{display:none!important}
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem max(1.25rem,calc((100% - 1140px)/2));border-bottom:1px solid #2c2341;background:#151027}.top nav{display:flex;gap:1.4rem;color:var(--muted)}.top nav a:hover{color:white}.brand{font:800 1.65rem 'Bricolage Grotesque',sans-serif;white-space:nowrap}.brand span{color:var(--accent);margin-left:.18rem}.account{white-space:nowrap}main{max-width:1140px;margin:auto;padding:0 1.25rem 3rem}section{margin:3.2rem 0;scroll-margin-top:1.25rem}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:370px;gap:1.2rem;margin-top:1.7rem}.hero-art{margin:0;min-width:0}.hero-art img{display:block;width:100%;height:auto;border-radius:20px}.hero-art figcaption{color:var(--muted);font-size:.85rem;margin-top:.45rem;text-align:right}.tag{color:var(--cyan);font-weight:800;letter-spacing:.1em;font-size:.85rem}h1,h2,h3{font-family:'Bricolage Grotesque',sans-serif;margin:.4rem 0 .7rem}h1{font-size:clamp(3rem,6.2vw,5rem);line-height:.96;letter-spacing:-.055em}h1 em{font-style:normal;color:var(--accent)}h2{font-size:clamp(1.9rem,4vw,2.65rem);letter-spacing:-.03em}p{line-height:1.5}.hero p,.muted{color:var(--muted)}.hero p{font-size:1.13rem;max-width:34ch}.actions,.formats{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.primary{display:inline-block;background:var(--accent);color:#211034;border:1px solid transparent;border-radius:10px;padding:.68rem .95rem;font-weight:800}.primary:hover{background:#dfc4ff}.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:.7rem}.selected{background:#49336a;border-color:#b88af4}
.studio,.music,.cards article{border:1px solid var(--line);background:var(--panel);border-radius:16px}.studio{display:grid;grid-template-columns:180px 1fr;overflow:hidden}.studio aside{display:flex;flex-direction:column;gap:.55rem;padding:1rem;border-right:1px solid var(--line)}.studio aside button{text-align:left}.palette{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.palette button{aspect-ratio:1;padding:0;border:2px solid transparent}.palette button[aria-pressed=true]{border-color:white}.custom{display:flex;align-items:center;gap:.4rem;font-size:.88rem}.custom input{padding:2px;width:36px;height:30px}.work{padding:1rem;min-width:0}#board{display:block;width:100%;aspect-ratio:2;outline:1px solid #55416f;border:0;border-radius:0;background:#110d21;touch-action:none;cursor:crosshair;image-rendering:pixelated}.draw-actions{margin-top:.85rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.8rem}.cards article{padding:1rem}.cards article h3{font-size:1.2rem}.cards article p{min-height:1.4rem}.thumb{width:100%;height:88px;object-fit:contain;background:#141026;border-radius:8px;image-rendering:pixelated}.music{padding:1rem}.keys{display:flex;gap:3px;margin:.9rem 0}.keys button{flex:1;padding:.8rem .15rem;height:100px;background:#eadcff;color:#281747;touch-action:manipulation}.keys button:active,.keys button.active{background:#b681ff}.keys .sharp{background:#34244d;color:white;height:67px}.music input,.draw-actions input{min-width:0;max-width:100%}footer{display:flex;justify-content:space-between;padding:1.5rem max(1.25rem,calc((100% - 1100px)/2));border-top:1px solid var(--line);color:var(--muted)}footer p{margin:0}#notice{position:fixed;bottom:1rem;right:1rem;max-width:min(410px,calc(100% - 2rem));background:#332251;border:1px solid var(--accent);border-radius:12px;padding:.8rem 1rem;z-index:2}
@media(max-width:730px){.top{flex-wrap:wrap}.top nav{order:3;flex-basis:100%;justify-content:space-between;gap:.4rem}.hero{grid-template-columns:1fr}.studio{grid-template-columns:1fr}.studio aside{border-right:0;border-bottom:1px solid var(--line);flex-direction:row;flex-wrap:wrap;align-items:center}.studio aside h3{width:100%}.palette{grid-template-columns:repeat(8,1fr);width:min(300px,100%)}.section-head{align-items:start;flex-wrap:wrap}.keys button{font-size:.72rem}}
.keys button:focus-visible{position:relative;z-index:1}.cards button{margin:.15rem .2rem .15rem 0}

.grid-size{color:var(--muted);margin:0 0 .55rem;font-size:.9rem}#board:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}

#percussion{margin:0 0 1rem}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:16px;width:min(480px,calc(100% - 2rem));padding:1.25rem}dialog::backdrop{background:#100d22c9}dialog label{display:grid;gap:.4rem;margin:.6rem 0}#install{position:fixed;bottom:1rem;left:1rem;z-index:1}

.hero-art{position:relative;display:grid;grid-template-columns:1fr}.hero-art img,.hero-art #productPixels{grid-area:1/1}.hero-art #productPixels{z-index:1;align-self:start;justify-self:start;width:34%;height:auto;aspect-ratio:2;margin:26.55% 0 0 33.3%;image-rendering:pixelated}.hero-art figcaption{grid-row:2}
