.dirg-game .puzzle-grid th {
  padding: 0;
  width: 25%;
}
.dirg-game .puzzle-grid th button,
.dirg-game .puzzle-grid th .dirg-reference {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  height: 3.5rem;
  aspect-ratio: auto;
  padding: 0.25rem;
  border-color: #d4dfef;
  background: #d4dfef;
  color: #172438;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}
.dirg-game .puzzle-grid th [hidden] {
  display: none;
}
.dirg-game .puzzle-grid th .dirg-reference {
  width: 100%;
  border: 1px solid #aa8fd6;
  border-radius: 0.2rem;
  background: color-mix(in srgb, #aa8fd6 24%, var(--bs-secondary-bg));
  color: var(--grid-ink);
}
.dirg-game .puzzle-grid th button + .dirg-reference:not([hidden]) {
  margin-top: 0.25rem;
}
.dirg-game .puzzle-grid th button[hidden] + .dirg-reference {
  margin-top: 0;
}
.dirg-game .puzzle-grid th button:enabled:hover {
  border-color: #f0f5fc;
  background: #f0f5fc;
}
.dirg-game .puzzle-grid th button[aria-pressed="true"] {
  border-color: #f0f5fc;
  box-shadow: 0 0 0 2px #8ca9cd;
}
.dirg-game .puzzle-grid th button:disabled[data-correct="false"] {
  border-color: var(--grid-line);
  background: var(--bs-tertiary-bg);
  color: var(--grid-muted);
  cursor: default;
}
.dirg-game .puzzle-grid th button[data-correct="true"] {
  border-color: var(--lap-raptor-teal);
  background: color-mix(
    in srgb,
    var(--lap-raptor-teal) 24%,
    var(--bs-secondary-bg)
  );
  color: var(--grid-ink);
}
.dirg-game .puzzle-grid [data-guess-icon] {
  flex-shrink: 0;
}
.dirg-driver {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.5rem;
  border: 1px solid #33465e;
  border-radius: 0.2rem;
  background: #1b2b42;
  color: var(--grid-ink);
  font-family: "Fira Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.dirg-game [data-game-error] {
  color: #f0b429;
  margin-top: 0.75rem;
}
.dirg-game .grid-driver-option {
  font-family: inherit;
  font-weight: 400;
}
@media (max-width: 480px) {
  .dirg-driver {
    padding: 0.25rem;
    font-size: 0.95rem;
  }
  .dirg-game .puzzle-grid th button,
  .dirg-game .puzzle-grid th .dirg-reference {
    padding: 0.25rem;
    gap: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.1;
  }
}
