/* Ciclo das quintas: roda de bolhas que gira, painel do tom e teclado de duas oitavas. */
.quintas__dica { margin: -12px 0 12px; color: var(--tinta-suave); font-size: 15px; }
.roda {
  --d: min(100vw - 32px, 420px); --giro: 0; --cor: 0;
  position: relative; width: var(--d); height: var(--d); margin: 0 auto; border-radius: 50%;
  /* A fatia de cima marca os sete acordes do tom: três maiores, três menores e o diminuto. */
  background: conic-gradient(from -45deg, hsl(var(--cor) 90% 90%) 90deg, #f6f7f9 0);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.bolha {
  --a: calc((var(--i) - var(--giro)) * 30deg);
  position: absolute; left: 50%; top: 50%; width: var(--t); height: var(--t); margin: calc(var(--t) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--d) * var(--r) * -1)) rotate(calc(var(--a) * -1)) scale(var(--s, 1));
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), background .2s;
  display: grid; place-content: center; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid hsl(calc(var(--i) * 30) 70% 45%); border-bottom-width: 5px;
  background: hsl(calc(var(--i) * 30) 90% 74%); color: var(--tinta); font-family: var(--fonte); line-height: 1;
}
.bolha b { font-weight: 900; }
.bolha small { font-size: 10px; font-weight: 800; margin-top: 2px; }
.bolha small:empty { display: none; }
.bolha:active { border-bottom-width: 2px; filter: brightness(.94); }
.bolha--maior { --r: .42; --t: calc(var(--d) * .16); font-size: 18px; }
.bolha--menor { --r: .27; --t: calc(var(--d) * .13); font-size: 14px; }
.bolha--dim { --r: .155; --t: calc(var(--d) * .095); font-size: 11px; }
.bolha--dim small { display: none; }
.bolha--fora { background: #fff; border-color: var(--linha); color: var(--tinta-suave); }
.bolha--dim.bolha--fora { --s: .45; font-size: 0; background: var(--linha); border-width: 0; cursor: default; }
.roda--na-mao .bolha { transition: none; }
.roda__centro {
  position: absolute; inset: 40%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: hsl(var(--cor) 80% 45%); color: #fff; line-height: 1; pointer-events: none; transition: background .3s;
}
.roda__centro b { font-size: 24px; font-weight: 900; }
.roda__centro span { font-size: 11px; font-weight: 800; }

.gira { display: flex; justify-content: center; gap: 12px; margin: 14px 0 20px; }
.gira .botao { margin: 0; cursor: pointer; font-family: var(--fonte); border-width: 0 0 4px; }

.tom { border: 2px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.tom h2 { margin: 0; font-size: 26px; font-weight: 900; }
.tom p { margin: 4px 0 0; color: var(--tinta-suave); }
.tom p b { color: var(--tinta); }
.tom__escala { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; }
.tom__escala h3 { margin: 0; font-size: 18px; font-weight: 800; }
.tom__escala .botao { margin: 0; min-height: 44px; padding: 8px 18px; cursor: pointer; font-family: var(--fonte); border-width: 0 0 4px; }
.qteclado { position: relative; display: flex; height: 110px; }
.qtecla--branca { flex: 1; background: #fff; border: 2px solid #b9c0c9; border-bottom-width: 6px; border-radius: 0 0 6px 6px; margin-right: -2px; }
.qtecla--preta { position: absolute; top: 0; width: 4.4%; height: 62%; background: var(--tinta); border-radius: 0 0 4px 4px; z-index: 1; }
.qtecla--escala.qtecla--branca { background: #eaf7ec; }
.qtecla--escala.qtecla--preta { background: var(--principal-degrau); }
.qtecla--acesa.qtecla--branca, .qtecla--acesa.qtecla--preta { background: var(--destaque); }
#escala-notas { text-align: center; font-size: 14px; margin-top: 10px; }

.bolha--soando { --s: 1.25; z-index: 1; background: var(--destaque); border-color: var(--destaque-degrau); }
.progs__titulo { margin: 24px 0 10px; font-size: 20px; font-weight: 900; }
.progs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prog { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; }
.prog > div { min-width: 0; }
.prog__graus { color: var(--tinta-suave); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.prog p { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prog__acorde { padding: 4px 10px; border-radius: 10px; background: #f1f3f5; font-weight: 900; font-size: 17px; transition: background .1s, transform .1s; }
.prog__acorde--vez { background: var(--destaque); transform: scale(1.12); }
.prog__tocar { margin: 0; flex: none; min-width: 52px; justify-content: center; padding: 10px; cursor: pointer; font-family: var(--fonte); border-width: 0 0 4px; }
