/* Practice keyboard page (keyboard.html) */
.kb-page { user-select: none; -webkit-user-select: none; }
.kb-page .brand { text-decoration: none; }
.kb-controls { display: flex; align-items: center; gap: 10px; }
.kb-range { min-width: 7em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.kb-help { margin: 0 auto 14px; padding: 0 16px; max-width: 46em; color: var(--ink-soft); text-align: center; }

.kb {
  --black-w: calc(100% / var(--whites) * 0.62);
  position: relative;
  display: flex;
  margin: 0 12px;
  height: min(58vh, 340px);
  touch-action: none;
}
.kb-key {
  flex: 1;
  position: relative;
  border: 1px solid #c9c1b2;
  border-radius: 0 0 10px 10px;
  background: #fffdf8;
  color: #5d6270;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 12px;
  font: 700 13px/1.2 Nunito, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kb-key small { font-size: 10px; font-weight: 600; }
.kb-key.is-down { background: #dcefec; }
.kb-key--black {
  position: absolute;
  top: 0;
  z-index: 2;
  width: var(--black-w);
  height: 60%;
  border-color: #1f2430;
  background: #1f2430;
}
.kb-key--black.is-down { background: #1f6f6b; }
.kb-name { pointer-events: none; text-align: center; }
.kb-hide-names .kb-name { visibility: hidden; }
.kb-labels { display: block; margin: 16px; text-align: center; color: var(--ink-soft); font-weight: 600; }
