:root{--bg:#f5f1ea;--panel:#fffdf9;--ink:#1d1b18;--muted:#736c61;--line:#e3dccf;--right:#3867d6;--right-soft:#d9e4ff;--left:#d9702a;--left-soft:#ffe1cb;--ok:#1e9a61;--ok-soft:#cdeedc;--bad:#d93b3b;--bad-soft:#ffd9d6;--radius:16px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{min-height:100vh;margin:0}button{font:inherit;color:inherit}h1,h2,h3,p{margin:0}.button{border:1px solid var(--line);background:var(--panel);cursor:pointer;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:600;transition:background .15s,border-color .15s,transform 50ms;display:inline-flex}.button:hover:not(:disabled){border-color:#cbc2b2}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{opacity:.45;cursor:default}.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.button.ghost{background:0 0;border-color:#0000}.button.ghost:hover{background:#0000000d}.error{background:var(--bad-soft);color:#8f1f1f;border-radius:12px;margin-top:16px;padding:12px 16px;font-weight:500}.error.small{margin-top:10px;padding:8px 12px;font-size:14px}.library{max-width:920px;margin:0 auto;padding:40px 24px 64px}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:20px;font-weight:800;display:flex}.brand-keys{border:2px solid var(--ink);background:linear-gradient(90deg, transparent 30%, var(--ink) 30% 42%, transparent 42% 58%, var(--ink) 58% 70%, transparent 70%) top / 100% 58% no-repeat;border-radius:5px;width:30px;height:24px}.hero{margin-bottom:28px}.hero-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}:lang(ko){word-break:keep-all;overflow-wrap:anywhere}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.language select{appearance:none;border:1px solid var(--line);background:var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23736c61' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat right 12px center / 10px 6px;font:inherit;color:var(--muted);cursor:pointer;border-radius:999px;padding:7px 30px 7px 14px;font-size:14px;font-weight:600}.language select:hover{color:var(--ink)}.language select:focus-visible{outline:2px solid var(--right);outline-offset:2px}.hero h1{letter-spacing:-.03em;max-width:14em;margin-top:28px;font-size:clamp(30px,5vw,46px);line-height:1.08}.hero p{color:var(--muted);max-width:34em;margin-top:14px;font-size:18px;line-height:1.5}.drop{background:var(--panel);text-align:center;cursor:pointer;border:2px dashed #cfc5b3;border-radius:24px;flex-direction:column;align-items:center;gap:10px;padding:44px 24px;transition:border-color .15s,background .15s;display:flex}.drop:hover,.drop.dragging{border-color:var(--right);background:#f7f9ff}.drop.busy{cursor:progress}.drop-title{font-size:20px;font-weight:700}.drop-sub{color:var(--muted);margin-bottom:8px}.spinner{border:3px solid var(--line);border-top-color:var(--right);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.ai-box{border-radius:var(--radius);background:var(--panel);border:1px solid var(--line);margin-top:16px;padding:14px 18px}.ai-box summary{cursor:pointer;font-weight:600}.ai-box p{color:var(--muted);margin:10px 0 12px;font-size:15px;line-height:1.5}.ai-box p.ai-box-credit{color:var(--ok);margin-bottom:0;font-weight:600}.error p{margin:6px 0 10px;font-weight:400}.sheet-offer{border-radius:var(--radius);background:var(--right-soft);border:1px solid #bccdf5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;margin-top:16px;padding:16px 20px;display:flex}.sheet-offer>div:first-child{flex:320px}.sheet-offer p{margin:0;line-height:1.5}.sheet-offer-title{font-weight:700;margin-bottom:4px!important}.sheet-offer-actions{flex-wrap:wrap;gap:8px;display:flex}.checkout{border-radius:var(--radius);width:min(560px,100vw - 24px);max-height:calc(100vh - 24px);color:var(--ink);background:#fff;border:none;padding:0}.checkout::backdrop{background:#1d1b1873}.checkout-head{z-index:1;border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex;position:sticky;top:0}.checkout-head h2{margin:0;font-size:17px}.checkout>.spinner{margin:40px auto}.checkout-body{min-height:1px}.section-title{margin:40px 0 14px;font-size:18px}.samples{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;display:grid}.sample{border-radius:var(--radius);border:1px solid var(--line);background:var(--panel);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:4px;padding:18px;transition:transform .12s,box-shadow .12s;display:flex}.sample:hover{transform:translateY(-2px);box-shadow:0 8px 22px #3c2d1414}.sample-level{text-transform:uppercase;letter-spacing:.06em;color:var(--right);font-size:12px;font-weight:700}.sample-level.level-beginner{color:var(--ok)}.sample-level.level-advanced{color:#8a4fd1}.library-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin:40px 0 14px;display:flex}.library-head .section-title{margin:0}.library-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}@media (width<=480px){.library-filters .segmented{width:100%;display:flex}.library-filters .segmented button{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;padding:7px 8px;font-size:13px;overflow:hidden}}.search{border:1px solid var(--line);background:var(--panel);font:inherit;border-radius:999px;min-width:220px;padding:8px 14px;font-size:14px}.empty{color:var(--muted);padding:16px 0}.sample-title{font-size:17px;font-weight:700}.sample-meta{color:var(--muted);font-size:14px}.how{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:40px;display:grid}.how div{align-items:flex-start;gap:12px;display:flex}.how b{background:var(--ink);color:#fff;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font-size:14px;display:grid}.how p{color:var(--muted);line-height:1.45}.practice{max-width:1240px;margin:0 auto;padding:16px 20px 48px}.topbar{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.song-title{flex:1;min-width:180px}.song-title h1{letter-spacing:-.02em;font-size:22px}.song-title span{color:var(--muted);font-size:14px}.segmented{background:#ebe5da;border-radius:999px;padding:4px;display:inline-flex}.segmented button{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:999px;padding:7px 14px;font-size:14px;font-weight:600}.segmented button.on{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px #0000001f}.detection{align-items:center;gap:8px;display:flex}.detection-label{color:var(--muted);font-size:13px;font-weight:600}.segmented.live{box-shadow:inset 0 0 0 1px var(--ok)}.segmented.pulse{animation:1.8s ease-out infinite detection-pulse}@keyframes detection-pulse{0%{box-shadow:0 0 #1d1b1873}70%,to{box-shadow:0 0 0 12px #1d1b1800}}@media (prefers-reduced-motion:reduce){.segmented.pulse{animation:none}}.input-strip{background:var(--panel);border:1px solid var(--ok);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:12px;padding:10px 16px;display:flex}.input-strip .meter{width:120px;margin-top:0}.input-strip .hearing{min-width:110px;margin-top:0}.input-strip .slider{min-width:200px;margin-top:0;margin-left:auto}.input-strip .error.small{margin-top:0}.progress{background:#e6dfd2;border-radius:999px;height:6px;margin:14px 0 16px;overflow:hidden}.progress div{background:var(--ok);height:100%;transition:width .3s}.stage{grid-template-columns:minmax(250px,320px) 1fr;gap:16px;margin-bottom:16px;display:grid}@media (width<=820px){.stage{grid-template-columns:1fr}}.now,.staff,.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.now{flex-direction:column;justify-content:center;height:250px;padding:18px;display:flex;position:relative;overflow:hidden;container-type:inline-size}.now-meta{color:var(--muted);font-size:14px;font-weight:600}.now-title{text-transform:uppercase;letter-spacing:.08em;margin-top:6px;font-size:15px;font-weight:700}.now-hint{color:var(--muted)}.chips{grid-template-columns:repeat(var(--cols,1), minmax(0, 1fr));align-content:start;gap:8px;min-height:0;margin-top:10px;display:grid}.chip{border:2px solid #0000;border-radius:14px;flex-direction:column;justify-content:center;padding:8px 10px;transition:background .15s,border-color .15s;display:flex;overflow:hidden}.chip.hand-R{background:var(--right-soft);border-color:var(--right)}.chip.hand-L{background:var(--left-soft);border-color:var(--left)}.chip.ok{background:var(--ok-soft);border-color:var(--ok)}.chip-name{font-size:clamp(15px, calc(24cqw / var(--cols,1)), 40px);letter-spacing:-.03em;white-space:nowrap;font-weight:800;line-height:1.05}.chip-sub{font-size:clamp(9px, calc(6.5cqw / var(--cols,1)), 13px);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-weight:600;overflow:hidden}.wrong-note{color:var(--bad);font-weight:600;animation:.35s shake;position:absolute;bottom:12px;left:20px;right:20px}.finished{text-align:center}.finished-icon{color:#e6a817;font-size:28px;line-height:1}.finished h2{margin:4px 0;font-size:19px}.finished p{color:var(--muted);font-size:13px}.finished .row{gap:6px;margin-top:10px}.finished .row .button{padding:7px 12px;font-size:14px}.row{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px;display:flex}.staff{align-items:center;padding:8px 6px;display:flex;overflow:hidden}.staff svg{width:100%;height:auto;display:block}.staff-line,.bar-line,.ledger{stroke:#9d9585;stroke-width:1.2px}.bar-line{stroke:#c3baa9}.clef{fill:#5c554a;font-family:Apple Symbols,Noto Music,Segoe UI Symbol,serif;font-size:72px}.clef.bass{font-size:44px}.column-bg{fill:#fff3cf}.column.past{opacity:.3}.head{fill:var(--ink)}.column.current .head.hand-R{fill:var(--right)}.column.current .head.hand-L{fill:var(--left)}.column.current .head.ok{fill:var(--ok)}.accidental{fill:var(--ink);font-size:15px}.note-name{fill:var(--muted);font-size:11px;font-weight:700}.column.current .note-name.hand-R{fill:var(--right)}.column.current .note-name.hand-L{fill:var(--left)}.keyboard-scroll{border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(#2a2723 0 10px, var(--panel) 10px);padding:10px 0 0;overflow-x:auto}.keyboard{-webkit-user-select:none;user-select:none;touch-action:manipulation;width:100%;position:relative}.keys{height:clamp(150px,22vw,230px);position:relative}.hands{pointer-events:none;z-index:3;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.hands .hand,.hands .tip{transition:transform var(--hand-move,.35s) ease}.hands .tip text{text-anchor:middle;dominant-baseline:central;font-size:11px;font-weight:800}.key{cursor:pointer;border:none;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;display:flex;position:absolute;top:0}.key.white{z-index:1;background:#fbfaf7;border:1px solid #b9b1a3;border-radius:0 0 8px 8px;height:100%;padding-bottom:12px;box-shadow:inset 0 -7px #e6e0d5}.key.black{z-index:2;color:#fff;background:linear-gradient(#3a3631,#121110);border-radius:0 0 6px 6px;height:60%;padding-bottom:8px;box-shadow:0 3px 4px #00000059}.key.white.pressed{background:#e9e3d8}.key.black.pressed{background:#555}.key.white.target.hand-R{background:var(--right-soft);box-shadow:inset 0 -7px 0 var(--right)}.key.white.target.hand-L{background:var(--left-soft);box-shadow:inset 0 -7px 0 var(--left)}.key.black.target.hand-R{background:var(--right)}.key.black.target.hand-L{background:var(--left)}.key.target:not(.heard){animation:1.4s ease-in-out infinite glow}.key.white.heard{background:var(--ok-soft);box-shadow:inset 0 -7px 0 var(--ok)}.key.black.heard{background:var(--ok)}.key.white.wrong{background:var(--bad-soft);animation:.35s shake}.key.black.wrong{background:var(--bad);animation:.35s shake}.key.hearing:before{content:"";background:#9a9184;border-radius:50%;width:8px;height:8px;position:absolute;top:10px}.label{color:#8a8275;pointer-events:none;font-size:12px;font-weight:600}.key.target .label{color:var(--ink);font-size:14px;font-weight:800}.key.black .label,.key.black.target .label{color:#fff;font-size:11px}.finger{background:var(--right);color:#fff;pointer-events:none;border-radius:50%;place-items:center;width:26px;height:26px;margin-bottom:6px;font-size:14px;font-weight:800;display:grid}.hand-L .finger{background:var(--left)}.middle-c{background:#c9a227;border-radius:50%;width:6px;height:6px;position:absolute;top:8px}@keyframes glow{50%{filter:brightness(.9)}}@keyframes shake{25%{translate:-3px}75%{translate:3px}}.controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:16px 0 20px;display:flex}.inputs{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;display:grid}.card{padding:16px}.card-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.card h3{font-size:16px}.card-head p{color:var(--muted);margin-top:2px;font-size:14px}.meter{background:#ebe5da;border-radius:999px;height:8px;margin-top:14px;overflow:hidden}.meter div{background:var(--ok);transform-origin:0;height:100%;transition:transform 50ms linear;transform:scaleX(0)}.hearing{margin-top:8px;font-size:14px;font-weight:600}.slider,.toggle{color:var(--muted);align-items:center;gap:10px;margin-top:10px;font-size:14px;display:flex}.slider input{flex:1}.toggle{color:var(--ink);cursor:pointer;margin-top:14px;font-weight:600}.shortcuts{color:var(--muted);margin-top:10px;font-size:13px}.tempo{color:var(--muted);align-items:center;gap:8px;font-size:14px;display:inline-flex}.tempo input{width:120px}.tempo b{min-width:64px;color:var(--ink)}.toggle.inline{margin-top:0}.beta-tag{background:var(--ink);color:#fff;letter-spacing:.02em;vertical-align:1px;border-radius:999px;margin-right:2px;padding:1px 8px;font-size:12px;font-weight:700;display:inline-block}.sheet-offer p.sheet-offer-note{color:var(--muted);margin-top:8px;font-size:14px}.ai-box a.button{color:inherit;text-decoration:none}.sheet-offer a.button{text-decoration:none}
