:root{color-scheme:dark;font-family:Inter,Segoe UI,Arial,sans-serif;background:#101820;color:#edf3f2;font-size:16px;--mint:#a5ead2;--blue:#9fbfff;--muted:#9aaab0}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select{cursor:pointer}button{min-height:44px;border-radius:9px;padding:11px 19px;font-weight:600}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #e7c880;outline-offset:4px}.shell{max-width:1200px;margin:auto;padding:0 40px}header{height:102px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #28343c}.brand{color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:28px;letter-spacing:-1px;font-weight:600}.brand-mark{color:var(--mint);font-size:36px}.brand-sub{font-size:11px;letter-spacing:2px;margin:6px 0 0 12px;font-weight:500}.connect{border:1px solid #657f78;background:transparent;color:var(--mint)}.intro{display:flex;justify-content:space-between;gap:40px;align-items:center;padding:48px 0 42px}.eyebrow,.mini-label{font-size:11px;letter-spacing:2px;font-weight:600;color:var(--mint)}h1{font-size:clamp(36px,4vw,54px);font-weight:500;line-height:1.1;letter-spacing:-2px;margin:16px 0}p{line-height:1.65;color:var(--muted);margin:12px 0 0}.connection{width:300px;border-left:1px solid #34444a;padding-left:28px}.connection label{display:block;font-size:13px;margin:18px 0 7px;color:var(--muted)}.connection p[role]{color:#e4efec;font-size:16px}.tiny{font-size:13px;line-height:1.6}.studio{background:#16212a;border:1px solid #30404a;border-radius:18px;overflow:hidden;box-shadow:0 25px 80px #0002}.song-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px 20px}.song-row h2{font-size:24px;font-weight:500;letter-spacing:-.5px;margin:8px 0 0}.song-row h2 span{font-size:13px;font-weight:400;color:var(--muted);display:inline-block;margin-left:12px;letter-spacing:0}.legend{display:flex;gap:18px;font-size:13px;white-space:nowrap}.legend i{display:inline-block;height:9px;width:9px;border-radius:3px;margin-right:6px}.left{background:var(--blue)}.right{background:var(--mint)}.settings{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 28px;padding-bottom:23px;border-bottom:1px solid #30404a}.settings label{display:grid;gap:8px;font-size:13px;color:var(--muted)}select{appearance:none;background:#1d2b35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23aabbbf' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;color:#edf3f2;border:1px solid #3a4b57;border-radius:7px;padding:11px 32px 11px 12px;width:100%;font-size:14px;min-height:44px}select:disabled{opacity:.6}.feedback{padding:20px 28px 18px;display:flex;gap:16px;align-items:center;justify-content:space-between}.pill{font-size:10px;letter-spacing:1.5px;color:var(--mint)}.feedback p{color:#edf3f2;font-size:18px;margin:5px 0 0}.feedback #progress-text{font-size:13px;color:var(--muted);white-space:nowrap}.roll-wrap{height:255px;position:relative;background:linear-gradient(#101a23,#111e27)}canvas{display:block;width:100%;height:255px}.strike-label{position:absolute;bottom:8px;left:10px;font-size:9px;letter-spacing:1px;color:#8ea4ae;pointer-events:none}#keyboard{position:relative;height:136px;touch-action:none;border-top:3px solid var(--mint);background:#dfe6e4}.key{position:absolute;top:0;padding:0;min-height:0;border-radius:0 0 5px 5px;display:flex;align-items:flex-end;justify-content:center;user-select:none;touch-action:none}.key.white{height:132px;background:linear-gradient(#f7f8f4,#e0e6e2);border:1px solid #98a5aa;color:#35454a;z-index:1;padding-bottom:12px;font-size:12px}.key.black{height:82px;background:linear-gradient(#26313c,#10161e);border:1px solid #080e15;z-index:2;color:transparent}.key.expected-R{background:var(--mint)}.key.white.expected-R{background:linear-gradient(#d7f9ec,var(--mint))}.key.white.expected-L{background:linear-gradient(#dbe6ff,var(--blue))}.key.white.pressed,.key.black.pressed{background:#efc97c;color:#19232b}.key.white.matched{background:#68c5a7}.key.white.wrong,.key.black.wrong{background:#f09d92}.key .middle{border-bottom:2px solid #405a61;padding-bottom:2px}.transport{padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.actions,.options{display:flex;gap:12px;align-items:center}.primary{background:var(--mint);color:#142a25;border:1px solid var(--mint)}.secondary{background:transparent;color:#dce7ea;border:1px solid #40525f}.options{font-size:13px;color:var(--muted);gap:22px}.options label{display:flex;gap:7px;align-items:center;cursor:pointer}input[type=checkbox]{accent-color:var(--mint);width:16px;height:16px}progress{display:block;width:calc(100% - 56px);height:4px;margin:0 28px;border:0;border-radius:4px;background:#2e3e47;accent-color:var(--mint)}progress::-webkit-progress-bar{background:#2e3e47;border-radius:4px}progress::-webkit-progress-value{background:var(--mint);border-radius:4px}.bottom-line{display:flex;justify-content:space-between;gap:16px;padding:15px 28px 22px;font-size:12px;color:var(--muted)}.help{display:grid;grid-template-columns:1fr 1fr;gap:70px;margin:45px 0}.help h3{font-weight:500;font-size:21px;margin:12px 0 0}.help p{font-size:14px}.help p.tiny{font-size:13px}.help strong{color:#c8d8db;font-weight:500}footer{border-top:1px solid #293841;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#81969e;padding:24px 0 35px}@media(max-width:780px){.shell{padding:0 18px}.brand-sub{display:none}header{height:80px}.intro{gap:24px;padding:30px 0}.connection{width:250px;padding-left:20px}h1{font-size:36px}.song-row{align-items:flex-start}.song-row h2 span{display:block;margin:7px 0 0}.legend{flex-direction:column;gap:9px}.settings{grid-template-columns:1fr 1fr}.help{gap:28px}.transport{flex-wrap:wrap}.bottom-line{flex-direction:column;gap:8px}}@media(max-width:520px){.shell{padding:0 12px}.intro{display:block}.connection{width:100%;border-left:0;padding:20px 0 0}.connection label{margin:12px 0 7px}.connection .tiny{margin-top:8px}.intro h1 br{display:none}h1{font-size:36px}.intro p br{display:none}.song-row{padding:20px 16px}.song-row h2{font-size:21px}.settings{margin:0 16px;gap:12px}.feedback{padding:18px 16px}.feedback p{font-size:16px}.transport{padding:18px 16px}.bottom-line{padding:15px 16px 20px}.help{grid-template-columns:1fr;gap:25px;margin:30px 0}progress{width:calc(100% - 32px);margin:0 16px}.key.white{font-size:10px}.key.white span{writing-mode:vertical-rl;letter-spacing:1px}.options{gap:16px}footer{font-size:11px}}

.library{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:0 28px 24px}.library>label:first-child{font-size:14px;color:var(--muted)}.library select{width:auto;min-width:230px;flex:1}.library p{flex-basis:100%;margin:0;font-size:13px}.import-button{border:1px solid #657f78;border-radius:8px;padding:12px 16px;color:var(--mint);font-size:14px;cursor:pointer}.import-button input{display:block;max-width:200px;margin-top:8px;font-size:12px}.song-row h2 .song-name{display:block;font-size:24px;color:#edf3f2;margin:0}.song-row h2 #song-description{display:block;margin:8px 0 0;line-height:1.5}.piano-scroll{overflow-x:auto}.key.black.expected-R{background:var(--mint);color:#14252c}.key.black.expected-L{background:var(--blue);color:#14252c}.key.black.matched{background:#68c5a7}.primary:disabled{opacity:.5;cursor:not-allowed}@media(max-width:520px){.library{padding:0 16px 20px}.library select{min-width:190px}}

.key.black.expected-R,.key.black.expected-L{box-shadow:inset 0 0 0 2px #233642}

/* Full 88-key grand piano with ivory fronts, raised ebony sharps and red felt. */
.piano-scroll{background:#0b0f13;scrollbar-color:#5a676c #111a20}
#keyboard{height:182px;background:#111820;border-top:9px solid #5b1e20;box-shadow:inset 0 3px 0 #a14743,inset 0 7px 0 #1d2429}
#keyboard::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#581a1d,#a4433f 35%,#681c20 75%,#3d1518);z-index:4;pointer-events:none}
.key.white{height:170px;background:linear-gradient(90deg,#d0d3d1 0%,#fffefa 14%,#f8f7ef 75%,#c5c9c8 100%);border:1px solid #939a9b;border-top:0;border-bottom:4px solid #a9b0b0;border-radius:0 0 5px 5px;box-shadow:inset 0 9px 8px #a3a8a44d,2px 2px 3px #090f1780;color:#566166;padding-bottom:9px;font-size:11px;font-weight:500}
.key.black{height:108px;background:linear-gradient(90deg,#090c11 0%,#343b43 18%,#111820 58%,#070a0f 100%);border:1px solid #05080d;border-bottom:8px solid #080c11;border-radius:0 0 5px 5px;box-shadow:inset 1px 1px 2px #73828c66,2px 5px 5px #0009;z-index:3}
.key.white.expected-R{background:linear-gradient(90deg,#83d1b9,#d9fff1 36%,#96ddc5);border-bottom-color:#4ea98b}
.key.white.expected-L{background:linear-gradient(90deg,#83a1d1,#e5ebff 36%,#a2bbef);border-bottom-color:#688acc}
.key.black.expected-R{background:linear-gradient(90deg,#297f69,#a5ead2 42%,#3d9d83);border-bottom-color:#1b6453}
.key.black.expected-L{background:linear-gradient(90deg,#4861a2,#9fbfff 42%,#5978bb);border-bottom-color:#3c538d}
.key.white.pressed,.key.black.pressed{background:#efc97c;border-bottom-color:#a88336;transform:translateY(2px)}
.key.white.matched,.key.black.matched{background:#68c5a7}
.key.white.wrong,.key.black.wrong{background:#f09d92}
.key.white:focus-visible,.key.black:focus-visible{outline:3px solid #f4cf78;outline-offset:-4px}
.key.white .middle{color:#172b33;font-weight:700;border-bottom:2px solid #405a61}
