.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

/* the tabs are small carved stones; the open one and the one under the gamepad glow jade */
.tabs button {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  background: none;
  border: 0 solid var(--color-clear);
  border-image: url('../assets/ui/kit/stone-button.png') 8 fill / 8px / 0 stretch;
  padding: 8px 12px;
  cursor: pointer;
  image-rendering: pixelated;
}

.tabs button[aria-selected='true'] {
  color: var(--color-mint-light);
  filter: drop-shadow(0 0 4px var(--color-green));
}

.tabs button.sel {
  color: var(--color-gold);
  filter: drop-shadow(0 0 4px var(--color-gold));
}

.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.keys td {
  padding: 6px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 22%, transparent);
  vertical-align: top;
}

.keys td:first-child {
  color: var(--color-text-muted);
  padding-right: 14px;
  white-space: nowrap;
}

kbd.k {
  font-family: var(--font-display);
  font-size: var(--font-size-2xs);
  padding: 1px 6px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent);
  border-bottom-width: 2px;
  border-radius: 0;
  background: color-mix(in srgb, var(--color-night-deep) 70%, transparent);
  color: var(--color-text);
  white-space: nowrap;
}

.wmeta {
  color: var(--color-text-muted);
  margin: 0 0 8px;
  font-size: var(--font-size-sm);
}

.wmeta b {
  color: var(--color-text);
}

.moves {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.moves th {
  font-family: var(--font-display);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-medium);
  color: var(--color-text-muted);
  text-align: left;
  padding: 6px 8px;
  background: color-mix(in srgb, var(--color-night-deep) 70%, transparent);
}

.moves td {
  padding: 6px 8px;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 22%, transparent);
  vertical-align: middle;
}

.moves td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tag-l {
  display: inline-block;
  font-size: var(--font-size-2xs);
  color: var(--color-teal);
  border: 1px solid var(--color-teal-deep);
  border-radius: var(--radius-md);
  padding: 0 5px;
  margin: 1px 3px 1px 0;
  white-space: nowrap;
}

.tips {
  margin: 0;
  padding-left: 18px;
}

.tips li {
  margin: 0 0 8px;
  color: var(--color-text);
}

.tips b {
  color: var(--color-accent);
}

.try {
  margin: 10px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.try b {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  margin-right: 6px;
}

/* a phone held upright has no room for four columns of moves: each move takes two lines, its input,
   name and damage, then its notes */
@media (max-width: 480px) {
  .moves tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    border-top: 1px solid color-mix(in srgb, var(--color-gold) 22%, transparent);
  }

  .moves td {
    border-top: 0;
  }

  .moves td:last-child,
  .moves th:last-child {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}
