*{box-sizing:border-box}body{margin:0;background:#f3f1eb;color:#182c30;font:16px system-ui,sans-serif}main{max-width:1000px;margin:auto;padding:34px 20px}header,.bar{display:flex;align-items:center;gap:15px}header span{display:grid;place-items:center;border-radius:12px;background:#17494d;color:#fff;width:46px;height:46px;font-size:27px}h1{font: bold clamp(32px,5vw,52px) Georgia,serif;letter-spacing:-.04em;margin:0}form{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:24px 0}label{display:grid;gap:6px;font-size:13px;font-weight:650;flex:1}select,#start{border:1px solid #a8b5ae;border-radius:7px;padding:10px;font:inherit;background:#fff;color:inherit;min-height:43px}#start{background:#19595b;color:white;font-weight:bold;cursor:pointer}section{background:#fffcf6;border:1px solid #d4d4c9;border-radius:16px;padding:clamp(14px,3vw,32px)}.bar{justify-content:space-between}h2{font-size:17px;margin:0}progress{width:30%;accent-color:#167272}svg{display:block;width:100%;height:clamp(190px,34vh,300px);color:#202623}#keyboard{display:flex;position:relative;height:clamp(125px,22vh,200px);max-width:680px;margin:auto;padding:0;border:3px solid #212927;border-radius:8px;overflow:hidden;background:#212927}.key{flex:1;border:1px solid #26332f;border-radius:0 0 4px 4px;background:#fffdf7;cursor:pointer;touch-action:manipulation}.black{position:absolute;top:0;width:8.5%;height:62%;transform:translateX(-50%);background:#232a28}.key.good{background:#37bd77}.key.bad{background:#ee565b}.key:focus-visible{outline:4px solid #1383c7;outline-offset:-5px}.key:disabled{opacity:1;cursor:default}#message{text-align:center;min-height:25px;margin:20px 0 0;font-weight:600}@media(max-width:600px){main{padding:18px 12px}form{display:grid;grid-template-columns:1fr 1fr;gap:8px}select{min-width:0;width:100%}#start{grid-column:span 2}header span{width:38px;height:38px}}

.key{display:grid;align-items:end;justify-items:center;padding:0 0 10px;font:600 16px system-ui;color:#384642}.key.black{color:white}

.atalhos{max-width:680px;margin:14px auto 0;text-align:center;font-size:14px;line-height:1.6}.atalhos kbd{font:bold 16px system-ui;padding:0 5px;background:#ebece6;border-radius:4px}

.rhythm{max-width:680px;margin:0 auto 16px}.rhythm .bar{font-size:14px}.rhythm output{font-variant-numeric:tabular-nums}#scale{position:relative;height:14px;background:#dce6de;margin:9px 0 0;border-radius:3px}#scale i{position:absolute;left:var(--goal,100%);height:20px;top:-3px;border-left:3px solid #c56812;transform:translateX(-100%)}#fill{height:100%;background:#418886}.figuras{display:grid;grid-template-columns:1fr 1fr 2fr 4fr 4fr 4fr;margin-bottom:4px}.figuras span{position:relative;display:grid;place-items:center;min-width:0}.figuras span::after{content:"";position:absolute;right:0;bottom:100%;height:14px;border-right:1px solid #78938c}.figuras svg{width:100%;max-width:25px;height:32px;color:#202623}.rhythm small,#reading{font-size:13px}#reading{min-height:1.4em}.key.pressed{background:#8cc8c2}

#fill{width:0;background:#2878bf}#fill[data-estado="certo"]{background:#238445}#fill[data-estado="longo"]{background:#cb3942}
