/* Chess page. */

.scope-select select {
  font: inherit;
  font-size: 14px;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 32px 7px 14px;
  max-width: 100%;
  cursor: pointer;
}

.reign-label {
  font-size: 12px;
  fill: var(--ink);
  font-weight: 600;
}

.reign-years {
  font-size: 11px;
  fill: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.era-tag.fide {
  border-style: dashed;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.record-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.record-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.record-card .value {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.record-card .detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.score-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
  background: var(--wash);
}

.score-bar span {
  background: var(--c);
}

.h2h-score {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
