/* Club Cifra — Void Iris + vidro translúcido escuro */
:root {
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-electric-iris: #8052ff;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;

  --font-main: 'PP Neue Montreal', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sheet: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --weight-body: 200; --weight-heading: 400; --weight-label: 600;
  --page-max-width: 1280px;
  --radius-default: 24px; --radius-pill: 9999px;

  /* vidro */
  --glass-bg: rgba(255, 255, 255, .045);
  --glass-bg-strong: rgba(18, 14, 30, .72);
  --glass-line: rgba(255, 255, 255, .06);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .22);
  --glass-shadow: 0 18px 48px -18px rgba(0, 0, 0, .9);
  --lg-blur: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hero > *, .split > *, .song-grid > *, .dict > *, .editor > *, .gear-body > * { min-width: 0; }
html { background: var(--color-void); -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; }
body {
  margin: 0; min-height: 100dvh; background: var(--color-void); color: var(--color-bone-white);
  font-family: var(--font-main); font-feature-settings: "ss01" on;
  font-size: 18px; font-weight: var(--weight-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: var(--weight-heading); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 600; }
::selection { background: rgba(128, 82, 255, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--color-saffron-spark); outline-offset: 3px; border-radius: 12px; }
html { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 10px; border: 3px solid #000; }
::-webkit-scrollbar-track { background: transparent; }
input, textarea { caret-color: var(--color-saffron-spark); }
kbd { font: 600 11px/1 var(--font-sheet); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--color-silver-mist); }
code { font-family: var(--font-sheet); font-size: .85em; color: var(--color-saffron-spark); }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--color-electric-iris); padding: 12px 18px; border-radius: 24px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- fundo ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46vw 40vw at 90% 6%, rgba(128, 82, 255, .34), transparent 70%),
    radial-gradient(40vw 34vw at 4% 62%, rgba(21, 132, 110, .26), transparent 70%),
    radial-gradient(34vw 26vw at 62% 106%, rgba(255, 184, 41, .12), transparent 70%);
}

/* ---------- vidro ---------- */
.glass {
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.6);
  backdrop-filter: blur(var(--lg-blur)) saturate(1.6);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  border-radius: var(--radius-default);
  position: relative;
  background-image: linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .035));
}
/* borda de luz do liquid glass: brilho no canto superior e reflexo embaixo */
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, 0) 55%, rgba(180, 150, 255, .28) 85%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background-color: #0d0b14; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background-color: #0d0b14; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- tipografia ---------- */
.display { font-size: clamp(52px, 8.4vw, 113px); line-height: 1.02; letter-spacing: -0.04em; }
.display-sm { font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(42px, 5.8vw, 78px); line-height: 1.05; letter-spacing: -0.04em; }
.h-sm { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.04em; }
.h-xs { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--color-silver-mist); max-width: 520px; }
.muted { color: var(--color-ash-gray); }
.amber { color: var(--color-saffron-spark); }
.tl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ash-gray); }
.tl.c { text-align: center; display: block; }
.link-amber { color: var(--color-saffron-spark); font-size: 14px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.link-amber .ic { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-amber:hover .ic { transform: translate(2px, -2px); } }

/* ---------- botões ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-electric-iris); color: #fff; border-radius: 24px;
  padding: 14px 18px; font-size: 14px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -12px rgba(0, 0, 0, .9);
  transition: transform 160ms var(--ease-out), filter 160ms ease; white-space: nowrap;
}
.btn-primary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { filter: brightness(1.12); } }
.btn-primary.lg { padding: 18px 26px; font-size: 15px; }
.ibtn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  color: var(--color-silver-mist); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.ibtn:active { transform: scale(0.94); }
.ibtn.lg { width: 56px; height: 56px; }
@media (hover: hover) and (pointer: fine) { .ibtn:hover { background: rgba(255, 255, 255, .12); color: #fff; } }
.ibtn.fav.on, .pbtn.fav.on { color: #ff5d8f; }
.ibtn.fav.on .ic, .pbtn.fav.on .ic { fill: currentColor; }
.pbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; font-weight: 400; color: var(--color-bone-white);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.pbtn .ic { width: 18px; height: 18px; }
.pbtn:active { transform: scale(0.97); }
.pbtn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.pbtn[aria-pressed="true"], .pbtn.on { background: rgba(128, 82, 255, .28); border-color: rgba(160, 126, 255, .7); }
@media (hover: hover) and (pointer: fine) { .pbtn:hover { background: rgba(255, 255, 255, .12); } .pbtn[aria-pressed="true"]:hover { background: rgba(128, 82, 255, .38); } }
.pbtn.beat { animation: beat 180ms var(--ease-out); }
@keyframes beat { from { box-shadow: 0 0 0 6px rgba(128, 82, 255, .45); } to { box-shadow: 0 0 0 0 rgba(128, 82, 255, 0); } }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 400; color: var(--color-silver-mist);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .chip:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .1); } }
.tag { font-size: 12px; color: var(--color-silver-mist); padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); white-space: nowrap; }
.lvl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-ash-gray); white-space: nowrap; }
.lvl-0 { color: #4fd1b0; } .lvl-1 { color: var(--color-saffron-spark); } .lvl-2 { color: #ff7a9c; }

/* ---------- cabeçalho ---------- */
.top { position: sticky; top: 0; z-index: 40; padding: 14px 18px 0; }
.nav {
  max-width: var(--page-max-width); margin: 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px; border-radius: 28px;
  background-color: rgba(10, 8, 18, .5);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a {
  font-size: 13px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: var(--color-ash-gray);
  padding: 9px 12px; border-radius: var(--radius-pill); transition: color 160ms ease, background-color 160ms ease;
}
.links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: #fff; } }
.qsearch { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); width: 230px; transition: width 240ms var(--ease-out), border-color 160ms ease; }
.qsearch:focus-within { width: 300px; border-color: rgba(255, 255, 255, .3); }
.qsearch .ic { color: var(--color-ash-gray); width: 18px; height: 18px; }
.qsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; font-weight: 400; }
.qsearch input::placeholder { color: var(--color-ash-gray); }
.qsearch input::-webkit-search-cancel-button { display: none; }
.qresults { position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, 86vw); padding: 8px; background-color: var(--glass-bg-strong); border-radius: 20px; z-index: 50; transform-origin: top right; animation: popin 180ms var(--ease-out); }
.qi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; outline-offset: -2px; }
.qi .ic { color: var(--color-ash-gray); }
.qi span { display: flex; flex-direction: column; min-width: 0; }
.qi b { font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi small { font-size: 12px; color: var(--color-ash-gray); }
.qi:hover, .qi:focus-visible { background: rgba(255, 255, 255, .08); }
.qi.all { justify-content: space-between; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--color-saffron-spark); }
.qi.all .ic { color: inherit; width: 16px; }
.qempty { padding: 12px; color: var(--color-ash-gray); font-size: 15px; }
.menu-btn { display: none; }

/* ---------- estrutura ---------- */
main { max-width: var(--page-max-width); margin: 0 auto; padding: 0 24px 96px; outline: none; }
section + section { margin-top: 120px; }
.page-head { padding: 72px 0 36px; display: grid; gap: 12px; }
.page-head .muted { max-width: 620px; }
.page-head.nf { min-height: 50vh; align-content: center; justify-items: start; gap: 24px; }
.sp { margin: 60px 0 18px; }
.empty { padding: 36px 0; color: var(--color-ash-gray); }
.crumb { padding-top: 48px; font-size: 14px; color: var(--color-ash-gray); }
.crumb a:hover { color: #fff; }
.foot { max-width: var(--page-max-width); margin: 0 auto; padding: 36px 24px 60px; display: grid; gap: 6px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- início ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; min-height: calc(100dvh - 90px); padding: 36px 0 24px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-content: center; position: relative; z-index: 2; }
.hero-art { position: relative; height: min(76vh, 680px); }
#cloud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bigsearch { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; max-width: 560px; border-radius: 32px; }
.bigsearch > .ic { color: var(--color-ash-gray); width: 22px; height: 22px; }
.bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 18px; font-weight: 300; height: 48px; }
.bigsearch input::placeholder { color: var(--color-ash-gray); }
.bigsearch:focus-within { border-color: rgba(255, 255, 255, .32); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; align-items: center; }
.split-head { display: grid; gap: 18px; align-content: start; justify-items: start; position: sticky; top: 120px; }
.split.rev .split-head { position: static; }
.split-head .muted { max-width: 480px; }

.slist { list-style: none; margin: 0; padding: 6px; }
.srow { display: grid; grid-template-columns: auto 1fr auto 44px 72px 40px; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 18px; transition: background-color 160ms ease; }
.slist:not(:has(.rank)) .srow { grid-template-columns: 1fr auto 44px 72px 40px; }
.srow + .srow { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
@media (hover: hover) and (pointer: fine) { .srow:hover { background: rgba(255, 255, 255, .06); box-shadow: none; } .srow:hover + .srow { box-shadow: none; } }
.rank { font: 400 14px/1 var(--font-sheet); color: var(--color-ash-gray); width: 22px; font-variant-numeric: tabular-nums; }
.srow-main { display: flex; flex-direction: column; min-width: 0; padding: 4px 0; }
.st { font-size: 18px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa { font-size: 14px; color: var(--color-ash-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key { font: 600 15px/1 var(--font-sheet); color: var(--color-saffron-spark); text-align: center; }

.demo { padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.demo-dia { display: grid; justify-items: center; gap: 6px; min-width: 170px; }
.demo-name { font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.demo-prog { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { font: 600 15px/1 var(--font-sheet); padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--color-silver-mist); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.pchip.on { background: rgba(255, 184, 41, .16); border-color: rgba(255, 184, 41, .55); color: var(--color-saffron-spark); }
.pchip:active { transform: scale(0.96); }

.toolrow { display: grid; gap: 12px; }
.tool { display: flex; align-items: center; gap: 18px; padding: 24px; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.tool > .ic:first-child { width: 28px; height: 28px; color: var(--color-electric-iris); }
.tool span { display: flex; flex-direction: column; flex: 1; }
.tool b { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.tool small { color: var(--color-ash-gray); font-size: 15px; }
.tool .go { color: var(--color-ash-gray); transition: transform 200ms var(--ease-out), color 200ms ease; }
.tool.wide { margin-bottom: 18px; }
@media (hover: hover) and (pointer: fine) { .tool:hover { background-color: rgba(255, 255, 255, .09); } .tool:hover .go { transform: translate(3px, -3px); color: #fff; } }
.tool:active { transform: scale(0.99); }

.gearcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gcat { padding: 30px 24px; display: grid; gap: 4px; min-height: 140px; align-content: end; transition: background-color 200ms ease; }
.gcat:first-child { grid-row: span 2; background-color: rgba(128, 82, 255, .14); }
.gcat b { font-size: 27px; font-weight: 400; letter-spacing: -.02em; }
.gcat small { color: var(--color-ash-gray); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .gcat:hover { background-color: rgba(255, 255, 255, .1); } }

/* ---------- filtros ---------- */
.filters { padding: 14px; display: grid; gap: 10px; margin-bottom: 24px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .14); margin: 0 6px; }

/* ---------- cifra ---------- */
.song-head { padding: 60px 0 36px; display: grid; gap: 18px; }
.artist { font-size: 21px; color: var(--color-silver-mist); }
.artist a { color: var(--color-saffron-spark); font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 6px 0 0; }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ash-gray); }
.meta dd { margin: 4px 0 0; font-size: 18px; font-weight: 400; }
.meta dd small { color: var(--color-ash-gray); font-size: 14px; font-weight: 300; }
.meta .strum { font-family: var(--font-sheet); letter-spacing: .1em; }
.about { max-width: 640px; }
.song-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.tools { position: sticky; top: 100px; padding: 18px; display: grid; gap: 18px; max-height: calc(100dvh - 120px); overflow: auto; overscroll-behavior: contain; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tg.col { flex-direction: column; align-items: stretch; }
.tg.toggles { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.tg .tl { display: flex; align-items: center; gap: 8px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper output { min-width: 78px; text-align: center; font: 600 15px/1 var(--font-sheet); }
#outKey { color: var(--color-saffron-spark); font-size: 18px; }
.scrollrow { display: flex; align-items: center; gap: 12px; }
.scrollrow .pbtn { flex: none; min-width: 110px; justify-content: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-top: -8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; }
.songchords { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini { display: grid; align-content: start; justify-items: center; gap: 2px; padding: 8px 2px 4px; border-radius: 14px; transition: background-color 160ms ease; }
.mini span { font: 600 14px/1 var(--font-sheet); color: var(--color-saffron-spark); }
@media (hover: hover) and (pointer: fine) { .mini:hover { background: rgba(255, 255, 255, .07); } }

.sheet { --fs: 18px; padding: 36px clamp(18px, 4vw, 48px) 60px; font-family: var(--font-sheet); font-size: var(--fs); font-weight: 400; line-height: 1.35; min-height: 60vh; background-color: rgba(8, 6, 14, .5); }
.sheet .part { font-family: var(--font-main); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ash-gray); margin: 18px 0 10px; }
.sheet .part:first-child { margin-top: 0; }
.sheet .row { margin: 0 0 .35em; display: flex; flex-wrap: wrap; align-items: flex-end; }
.sheet .row.plain { margin-bottom: .2em; }
.sheet .seg { display: inline-flex; flex-direction: column; }
.sheet .cw { min-height: 1.35em; white-space: nowrap; padding-right: .6ch; }
.sheet .ly { white-space: pre; color: #ececec; }
.sheet .gap { height: .9em; }
.sheet .inst { gap: 1.2ch; align-items: center; }
.sheet .rep { color: var(--color-ash-gray); font-size: .85em; }
.ch { font: inherit; font-weight: 600; color: var(--color-saffron-spark); padding: 0 2px; margin: 0 -2px; border-radius: 6px; transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .ch:hover { background: rgba(255, 184, 41, .16); } }
.tab { margin: 6px 0 18px; padding: 14px 18px; border-radius: 16px; background: rgba(0, 0, 0, .45); color: var(--color-silver-mist); font-size: calc(var(--fs) * .82); line-height: 1.4; overflow-x: auto; }
.fab { display: none; }

/* ---------- desenho do acorde ---------- */
.dia { display: block; overflow: visible; }
.dia-line { stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; }
.dia-nut { fill: #fff; }
.dia-dot { fill: var(--color-electric-iris); }
.dia-open { fill: none; stroke: #fff; stroke-width: 1.3; }
.dia-mark { fill: var(--color-ash-gray); font: 600 11px var(--font-main); }
.dia-fret { fill: var(--color-ash-gray); font: 600 11px var(--font-sheet); }

/* ---------- balão ---------- */
.pop { position: fixed; z-index: 60; width: 224px; padding: 14px; display: grid; justify-items: center; gap: 8px; background-color: var(--glass-bg-strong); border-radius: 22px; }
.pop.in { animation: popin 200ms var(--ease-out); }
@keyframes popin { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.pop-h b { font: 600 20px/1.2 var(--font-sheet); color: var(--color-saffron-spark); }
.pop-h .ibtn { width: 32px; height: 32px; }
.pop-l { font-size: 13px; color: var(--color-ash-gray); text-align: center; }
.pop-a { display: flex; align-items: center; gap: 6px; }
.pop-a .ibtn { width: 32px; height: 32px; }
.pop-n { font: 400 12px var(--font-sheet); color: var(--color-ash-gray); }

/* ---------- modal de listas ---------- */
.sheet-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .55); }
.sheet-modal:not([hidden]) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-modal[hidden] { display: none; }
.sm-card { width: min(460px, 100%); padding: 24px; display: grid; gap: 18px; background-color: var(--glass-bg-strong); animation: popin 220ms var(--ease-out); }
.sm-card .pop-h b { font: 400 21px/1.25 var(--font-main); color: #fff; }
.picklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); text-align: left; }
.pick span { flex: 1; font-weight: 400; }
.pick small { color: var(--color-ash-gray); font-size: 13px; }
.pick.on { background: rgba(128, 82, 255, .22); }
.pick.on .ic { color: #b9a0ff; }
.newlist { display: flex; gap: 8px; }
.newlist.glass { padding: 8px; margin-bottom: 30px; max-width: 560px; }
.newlist input, .fields input, .fields select, .ta textarea {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 18px; outline: none; font-weight: 400; font-size: 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: border-color 160ms ease;
}
.newlist input:focus, .fields input:focus, .fields select:focus, .ta textarea:focus { border-color: rgba(255, 184, 41, .7); }
::placeholder { color: var(--color-ash-gray); opacity: 1; }
select option { background: #120e1e; color: #fff; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 12px 20px; font-size: 15px; font-weight: 400; background-color: var(--glass-bg-strong); border-radius: var(--radius-pill); transform: translate(-50%, 140%); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- dicionário ---------- */
.dict { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.dict-pick { padding: 24px; display: grid; gap: 12px; position: sticky; top: 100px; }
.roots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.rbtn { height: 44px; border-radius: 14px; font: 600 15px/1 var(--font-sheet); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.rbtn:active, .qbtn:active { transform: scale(0.96); }
.rbtn[aria-checked="true"] { background: var(--color-electric-iris); border-color: transparent; }
.quals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qbtn { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid transparent; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.qbtn b { font: 600 14px/1 var(--font-sheet); color: var(--color-saffron-spark); min-width: 42px; }
.qbtn span { font-size: 13px; color: var(--color-silver-mist); font-weight: 300; }
.qbtn[aria-checked="true"] { background: rgba(255, 184, 41, .12); border-color: rgba(255, 184, 41, .45); }
@media (hover: hover) and (pointer: fine) { .rbtn:hover, .qbtn:hover { background-color: rgba(255, 255, 255, .1); } .rbtn[aria-checked="true"]:hover { background: var(--color-electric-iris); } }
.dict-out { display: grid; gap: 36px; }
.dict-name { display: grid; gap: 6px; }
.voicings { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.voicing { margin: 0; padding: 24px 18px; display: grid; justify-items: center; gap: 12px; }
.voicing figcaption { font-size: 14px; color: var(--color-silver-mist); text-align: center; }
.field { display: grid; gap: 12px; }
.field-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background-color 160ms ease; }
.fchip small { font: 400 11px var(--font-sheet); color: var(--color-ash-gray); }
.fchip b { font: 600 16px var(--font-sheet); color: var(--color-saffron-spark); }
@media (hover: hover) and (pointer: fine) { .fchip:hover { background: rgba(255, 255, 255, .1); } }

/* ---------- afinador ---------- */
.tuner, .metro { padding-top: 72px; align-items: center; }
.tuner .split-head, .metro .split-head { position: static; }
.status { min-height: 1.5em; font-size: 15px; max-width: 460px; }
.meter { padding: 36px 30px 30px; display: grid; gap: 24px; justify-items: center; }
.gauge { position: relative; width: min(100%, 420px); aspect-ratio: 2 / 1.05; overflow: hidden; }
.ticks i { position: absolute; left: 50%; bottom: 0; width: 2px; height: 92%; margin-left: -1px; transform-origin: 50% 100%; transform: rotate(calc(var(--i) * 7deg)); }
.ticks i::before { content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.ticks i:nth-child(5n + 1)::before { height: 22px; background: rgba(255, 255, 255, .5); }
.ticks i:nth-child(11)::before { height: 30px; background: var(--color-saffron-spark); }
.needle { position: absolute; left: 50%; bottom: 0; width: 3px; height: 86%; margin-left: -1.5px; border-radius: 3px; background: #fff; transform-origin: 50% 100%; transition: transform 140ms var(--ease-out), background-color 200ms ease; }
.needle::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: inherit; }
.needle.ok { background: #4fd1b0; }
.tnote { display: grid; justify-items: center; gap: 4px; }
.tnote span { font-size: 96px; line-height: 1; letter-spacing: -.04em; transition: color 200ms ease; }
.tnote span.ok { color: #4fd1b0; }
.tnote small { font-size: 15px; color: var(--color-ash-gray); text-align: center; }
.strings { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.sbtn { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.sbtn b { font: 600 20px var(--font-sheet); }
.sbtn small { font-size: 11px; color: var(--color-ash-gray); text-align: center; line-height: 1.3; }
.sbtn:active { transform: scale(0.95); background: rgba(128, 82, 255, .3); }

/* ---------- metrônomo ---------- */
.mbox { padding: 36px 30px; display: grid; gap: 24px; justify-items: center; }
.bpm { display: flex; align-items: center; gap: 24px; }
.bpm output { font-size: clamp(88px, 10vw, 128px); line-height: .9; letter-spacing: -.05em; min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.mbox input[type="range"] { width: 100%; }
.beats { display: flex; gap: 12px; height: 24px; align-items: center; }
.beat { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform 90ms var(--ease-out), background-color 90ms ease; }
.beat.first { width: 20px; height: 20px; }
.beat.on { background: var(--color-electric-iris); transform: scale(1.25); }
.beat.first.on { background: var(--color-saffron-spark); }
.mrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.seg-ctl { display: flex; padding: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); }
.seg-ctl button { padding: 8px 14px; border-radius: var(--radius-pill); font: 600 14px var(--font-sheet); color: var(--color-ash-gray); transition: background-color 160ms ease, color 160ms ease; }
.seg-ctl button[aria-checked="true"] { background: #fff; color: #000; }

/* ---------- equipamentos ---------- */
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grow { display: grid; grid-template-columns: 1fr auto 110px 150px 24px; gap: 18px; align-items: center; padding: 18px 24px; border-radius: 20px; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.grow:active { transform: scale(0.995); }
.gmain { display: flex; flex-direction: column; min-width: 0; }
.gmain b { font-size: 20px; font-weight: 400; letter-spacing: -.01em; }
.gmain small { color: var(--color-ash-gray); font-size: 15px; }
.price { font: 400 14px var(--font-sheet); color: var(--color-silver-mist); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow .go { color: var(--color-ash-gray); width: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .grow:hover { background-color: rgba(255, 255, 255, .09); } .grow:hover .go { transform: translate(3px, -3px); color: #fff; } }
.gear-head { padding-top: 24px; align-items: start; grid-template-columns: 7fr 5fr; }
.gear-head .split-head { position: static; }
.specs { padding: 30px; display: grid; gap: 24px; }
.price-big { display: grid; gap: 4px; }
.price-big small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ash-gray); }
.price-big b { font-size: 42px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.specs dl { margin: 0; display: grid; }
.specs dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
.specs dt { color: var(--color-ash-gray); font-weight: 400; }
.specs dd { margin: 0; font-weight: 400; }
.gear-body { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gb { padding: 30px; display: grid; gap: 12px; align-content: start; }
.gb.wide { grid-column: 1 / -1; }
.gb .h-xs + .bul { margin-bottom: 12px; }
.bul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--color-silver-mist); }
.bul li::marker { color: var(--color-electric-iris); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 75ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--color-silver-mist); }
.steps li::before { content: counter(s); font: 600 14px/28px var(--font-sheet); width: 28px; height: 28px; border-radius: 50%; text-align: center; background: rgba(255, 184, 41, .14); color: var(--color-saffron-spark); }

/* ---------- minhas ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 4px; }
.tabs a { padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: var(--color-ash-gray); white-space: nowrap; background: rgba(255, 255, 255, .04); }
.tabs a[aria-current="page"] { background: #fff; color: #000; }
.listbox { margin-top: 36px; }
.listbox + .listbox { margin-top: 36px; }
.lb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ed-form { padding: 24px; display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label, .ta { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ash-gray); }
.fields select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9a9a9a 50%), linear-gradient(135deg, #9a9a9a 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.ta textarea { height: auto; min-height: 360px; padding: 14px 18px; font: 400 15px/1.45 var(--font-sheet); resize: vertical; white-space: pre; overflow-wrap: normal; text-transform: none; letter-spacing: 0; color: #fff; }
.hint { font-size: 14px; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.err { color: #ff8f9f; font-size: 15px; flex-basis: 100%; }
.err:empty { display: none; }
.ed-prev { display: grid; gap: 12px; position: sticky; top: 100px; }
.ed-prev .sheet { max-height: calc(100dvh - 160px); overflow: auto; min-height: 0; padding: 24px; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .links a { padding: 9px 8px; font-size: 12px; }
  .qsearch { width: 170px; } .qsearch:focus-within { width: 220px; }
  .qsearch kbd { display: none; }
}
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .nav-cta { display: none; }
  .links {
    position: fixed; left: 18px; right: 18px; top: 84px; margin: 0; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 24px; background-color: var(--glass-bg-strong); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--glass-shadow);
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right; pointer-events: none; visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .menu-open .links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
  .links a { font-size: 15px; padding: 14px 16px; }
  .qsearch { width: auto; flex: 1; max-width: 360px; } .qsearch:focus-within { width: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 48px; }
  .hero-art { order: -1; height: 300px; margin: 0 -24px -60px; }
  .split, .split.rev, .gear-head { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .split.rev > .split-head { order: -1; }
  .split-head { position: static; }
  section + section { margin-top: 96px; }
  .song-grid { grid-template-columns: minmax(0, 1fr); }
  .tools { position: static; max-height: none; }
  .songchords { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .dict { grid-template-columns: 1fr; }
  .dict-pick { position: static; }
  .roots { grid-template-columns: repeat(12, 1fr); }
  .editor { grid-template-columns: 1fr; }
  .ed-prev { position: static; }
  .fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
    padding: 14px 20px; border-radius: var(--radius-pill); background: var(--color-electric-iris); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 30px -8px rgba(0, 0, 0, .9); transition: transform 160ms var(--ease-out);
  }
  .fab:active { transform: scale(0.96); }
  .fab.on { background: #fff; color: #000; }
}
@media (max-width: 640px) {
  :root { --lg-blur: 14px; }
  main { padding: 0 16px 96px; }
  .top { padding: 10px 10px 0; }
  .nav { gap: 8px; padding: 8px 8px 8px 14px; }
  .brand span { display: none; }
  .links { left: 10px; right: 10px; top: 72px; }
  .hero-art { margin: 0 -16px -60px; height: 260px; }
  .bigsearch { padding-left: 16px; }
  .bigsearch .btn-primary { padding: 14px; }
  .srow, .slist:not(:has(.rank)) .srow { grid-template-columns: 1fr 36px 40px; gap: 8px; }
  .srow .rank, .srow .tag, .srow .lvl { display: none; }
  .demo { grid-template-columns: 1fr; justify-items: center; padding: 24px; }
  .demo-prog { justify-content: center; }
  .gearcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcat b { font-size: 21px; overflow-wrap: anywhere; }
  .gcat:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 110px; }
  .grow { grid-template-columns: 1fr 24px; gap: 6px 12px; padding: 16px 18px; }
  .grow .tag, .grow .lvl { display: none; }
  .grow .price { grid-row: 2; text-align: left; }
  .gear-body { grid-template-columns: 1fr; }
  .specs dl div { grid-template-columns: 1fr; gap: 2px; }
  .roots { grid-template-columns: repeat(6, 1fr); }
  .strings { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .tg:not(.col) { flex-wrap: wrap; }
  .meta { gap: 12px 24px; }
  .sheet { padding: 24px 16px 48px; }
  .tool { padding: 18px; } .tool b { font-size: 21px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- impressão ---------- */
@media print {
  body { background: #fff; color: #000; }
  #bg, .glow, .top, .tools, .fab, .foot, .pop, .toast, .about { display: none !important; }
  .glass { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
  .song-grid { display: block; }
  .sheet { padding: 0; color: #000; }
  .sheet .ly { color: #000; }
  .ch { color: #000; text-decoration: underline; }
  .h-lg { font-size: 32px; color: #000; }
  .artist, .artist a, .meta dd { color: #000; }
}
