/* Keyboard controls in the article's embedded player. */
.setting.game16-keys {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
}
#lane-choices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
#lane-choices button, .lane-presets button {
  color: var(--ink);
  background: #24252d;
  border: 1px solid #666574;
  border-radius: 8px;
  cursor: pointer;
}
#lane-choices button {
  min-width: 0;
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 3px 1px;
}
#lane-choices small { color: #c6c2ba; font-size: 10px; line-height: 1.1; }
#lane-choices kbd { font-family: inherit; font-size: 12px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.lane-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.lane-presets button { flex: 1 1 auto; min-height: 32px; padding: 4px 7px; font-size: 11px; }
#lane-choices button[aria-pressed=true], .lane-presets button[aria-pressed=true] {
  color: #ffe4a1;
  background: #413425;
  border-color: #f3cc7d;
}
#lane-choices button:focus-visible, .lane-presets button:focus-visible { outline: 2px solid #ffe4a1; outline-offset: 1px; }
@media (any-pointer: fine) {
  .pad[data-key-label]::after {
    content: attr(data-key-label);
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    border-radius: 4px;
    padding: 1px 5px;
    background: #10111bde;
    color: #fff;
    font: 700 12px/1.2 system-ui, sans-serif;
    white-space: nowrap;
  }
}
