:root{
  --bg:#f7f1e6; --card:#fffdf8; --ink:#1a1a1a; --mut:#555; --line:#d9cfbd;
  --acc:#7a1f2b; --acc2:#5c1520; --rh:#2456c9; --lh:#e07b00;
  --ok:#17803d; --bad:#c62828; --soft:#efe6d6;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:20px}
html.fs2{font-size:24px}
html.fs3{font-size:28px}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.4;-webkit-text-size-adjust:100%}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;margin:.3em 0;line-height:1.2}
h1{font-size:1.9rem} h2{font-size:1.5rem} h3{font-size:1.2rem}
p{margin:.5em 0}
a{color:var(--acc)}

/* topo */
.top{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem;max-width:900px;margin:0 auto}
.top .ttl{flex:1;text-align:center;font-weight:700;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top button{min-height:2.4rem;padding:.3rem .7rem;font-size:.9rem}
main{max-width:900px;margin:0 auto;padding:.8rem .8rem 3rem}

/* aviso de cookies */
.cookies{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--card);border-top:3px solid var(--acc);box-shadow:0 -4px 16px rgba(0,0,0,.15);padding:.8rem 1rem 4.5rem;max-width:900px;margin:0 auto} /* 4.5rem embaixo: o selo "Powered by Netlify" fica no canto e cobria o botão Aceito */
body{padding-bottom:4rem} /* o selo da Netlify não cobre o fim da página */
.cookies p{margin:0 0 .6rem;font-size:.95rem}

/* botões */
button,.btn{font:inherit;font-size:1rem;cursor:pointer;border:2px solid var(--line);background:#fff;color:var(--ink);border-radius:14px;padding:.6rem 1rem;min-height:3rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-align:center}
button:active,.btn:active{transform:scale(.98)}
button:disabled{opacity:.45;cursor:not-allowed}
.primary{background:var(--acc);border-color:var(--acc);color:#fff;font-weight:700}
.ok{background:var(--ok);border-color:var(--ok);color:#fff;font-weight:700}
.bad{background:var(--bad);border-color:var(--bad);color:#fff;font-weight:700}
.big{font-size:1.25rem;min-height:4rem;width:100%;border-radius:18px}
.wide{width:100%}
.stack{display:grid;gap:.7rem}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.link{background:none;border:none;color:var(--acc);text-decoration:underline;min-height:auto;padding:.3rem}

/* cartões */
.card{background:var(--card);border:2px solid var(--line);border-radius:20px;padding:1.1rem;margin:.8rem 0}
.center{text-align:center}
.mut{color:var(--mut)}
.small{font-size:.85rem}

/* início */
.hero{text-align:center;padding:1rem 0 .3rem}
.hero h1{color:var(--acc)}
.path{display:flex;justify-content:flex-start;gap:.9rem;align-items:center;text-align:left;width:100%;padding:1.1rem;border-radius:22px;min-height:6rem;background:var(--card);border:2px solid var(--line)}
.path .ic{font-size:2.4rem;flex:none}
.path b{display:block;font-size:1.25rem}
.path span{color:var(--mut);font-size:.95rem}
.path.main{border-color:var(--acc);background:#fff}

/* mapa das fases */
.fase{display:flex;align-items:center;gap:.8rem;width:100%;text-align:left;padding:.8rem 1rem;border-radius:18px;background:var(--card);border:2px solid var(--line);min-height:4.6rem}
.fase .num{flex:none;width:2.8rem;height:2.8rem;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem}
.fase.cur{border-color:var(--acc)} .fase.cur .num{background:var(--acc);color:#fff}
.fase.done .num{background:var(--ok);color:#fff}
.fase.lock{opacity:.6}
.fase .info{flex:1}
.fase .info b{display:block}
.stars{color:#d19a00;letter-spacing:.1em;font-size:1.2rem}
.stars .off{color:#cfc6b4}
.bar{height:.9rem;background:var(--soft);border-radius:99px;overflow:hidden;margin:.3rem 0}
.bar i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .4s}
.barlbl{font-weight:700}

/* treino */
.chord{font-size:clamp(3.4rem,17vw,6.5rem);font-weight:800;line-height:1.05;margin:.3rem 0 0;font-family:Georgia,serif}
.chord small{display:block;font-size:1.1rem;font-weight:600;color:var(--mut);font-family:"Segoe UI",system-ui,sans-serif}
.timer{font-variant-numeric:tabular-nums;color:var(--mut)}
.result{font-size:1.4rem;font-weight:800;margin:.4rem 0}
.result.ok{color:var(--ok);background:none;border:none}.result.bad{color:var(--bad);background:none;border:none}
.record{display:inline-block;background:#fff4cc;color:#7a5200;border-radius:99px;padding:.2rem .8rem;font-weight:700;margin:.3rem 0}
.viz{display:flex;flex-direction:column;gap:.6rem;align-items:center;margin:.6rem 0}
.kb{width:100%;max-width:640px;height:auto}
.staff{width:230px;max-width:70%;height:auto}
.notes{font-size:1.15rem;margin:.4rem 0}
.notes .lh{color:var(--lh);font-weight:800}
.notes .rh{color:var(--rh);font-weight:800}
.legend{display:flex;gap:1rem;justify-content:center;font-size:.85rem;color:var(--mut);flex-wrap:wrap}
.legend i{display:inline-block;width:.9rem;height:.9rem;border-radius:3px;vertical-align:-2px;margin-right:.3rem}
.pill{display:inline-block;font-size:.8rem;padding:.2rem .7rem;border-radius:99px;background:#e2f4ea;color:var(--ok);font-weight:700}
.topline{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}

/* pratique: acordes da fase e grupos II – V – I */
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}
.chip{min-height:2.6rem;padding:.3rem .7rem;font-weight:700}
.chip small{font-weight:400;font-size:.75rem}
.grupo{border:2px solid var(--line);border-radius:14px;padding:.3rem .6rem .1rem;margin:.5rem 0;background:var(--soft)}
.glbl{font-size:.8rem;font-weight:800;color:var(--acc);letter-spacing:.05em}

.rodape{text-align:center;padding:0 0 1.5rem;font-size:.85rem}
.rodape a{color:var(--mut)}

/* dicionário */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(7.5rem,1fr));gap:.6rem}
.grid button{min-height:4rem;font-size:1.2rem;font-weight:700}
.search{display:flex;gap:.5rem}
.search input{flex:1;font:inherit;font-size:1.2rem;padding:.6rem .9rem;border:2px solid var(--line);border-radius:14px;min-width:0}

/* cursos */
.curso h3{margin-top:0}
.vidph{background:#2b2b2b;color:#eee;border-radius:14px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;text-align:center;padding:1rem;margin:.5rem 0;font-size:.95rem}
.vid{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;margin:.5rem 0}
.vid.vert{aspect-ratio:9/16;width:auto;height:min(70vh,560px);max-width:100%;display:block;margin:.5rem auto}

/* modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:20;display:flex;align-items:center;justify-content:center;padding:.8rem}
.modal .box{background:var(--card);border-radius:22px;max-width:560px;width:100%;max-height:92vh;overflow:auto;padding:1.2rem}
.campo{display:grid;gap:.2rem;font-weight:700}
.campo input{font:inherit;font-size:1.15rem;font-weight:400;padding:.6rem .8rem;border:2px solid var(--line);border-radius:14px;min-width:0}

/* listas */
.lst{display:grid;gap:.4rem}
.lst div{display:flex;justify-content:space-between;gap:.5rem;padding:.45rem .2rem;border-bottom:1px solid var(--line)}
.tag{padding:.1rem .6rem;border-radius:99px;font-size:.8rem;font-weight:700;white-space:nowrap}
.t-ok{background:#e2f4ea;color:var(--ok)}.t-mid{background:#fff4cc;color:#7a5200}.t-new{background:#eee;color:var(--mut)}
.toggle{display:flex;gap:.6rem;align-items:center;font-size:1.05rem;padding:.4rem 0}
.toggle input{width:1.6rem;height:1.6rem}
