.chakra-figure {
  position: relative;
  max-width: 660px;
  margin: 4px auto 12px;
  width: 100%;
  aspect-ratio: 1.38;
  isolation: isolate;
}
.chakra-figure canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.chakra-figure button {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  z-index: 1;
  border: 1px solid #847893;
  background: #373044;
  color: #dfd9ed;
  border-radius: 50%;
  font-size: clamp(9px, 1vw, 12px);
  font-variant-numeric: tabular-nums;
  height: clamp(17px, 3vw, 25px);
  width: clamp(17px, 3vw, 25px);
}
.chakra-figure button.occupied {
  border: 2px solid #c4b1e8;
  color: white;
}
.chakra-figure button.overlaid {
  box-shadow: 0 0 0 2px #a3cbd6;
}
.chakra-figure button.active,
.chakra-grid button.active {
  background: #eee3ff;
  color: #37204a;
  border-color: white;
  z-index: 2;
}
.chakra-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin: 8px 12px 14px;
  border: 1px solid #574d66;
  border-radius: 5px;
  overflow: hidden;
}
.chakra-grid button {
  border-right: 1px solid #554b62;
  border-bottom: 1px solid #554b62;
  border-radius: 0;
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 1px;
  text-align: center;
  font-size: clamp(8px, 0.85vw, 12px);
  line-height: 1.14;
  min-height: 40px;
  padding: 2px;
  color: #dfd5ec;
  background: #393044;
  overflow-wrap: anywhere;
}
.chakra-grid button.star {
  background: #473d54;
  color: #f5e7ff;
}
.chakra-grid button.struck {
  background: #66516e;
}
.chakra-grid button small {
  font-size: 8px;
  letter-spacing: 0.3px;
  color: #dfc68e;
}
.chakra-details .stat {
  white-space: normal;
}
.chakra-details .stat b {
  font-size: 14px;
}
.chakra-list td {
  white-space: normal;
}
.chakra-figure button:focus-visible,
.chakra-grid button:focus-visible {
  outline: 3px solid #e5c26a;
  outline-offset: -2px;
  z-index: 3;
}
@media (max-width: 600px) {
  .chakra-figure {
    aspect-ratio: 1.05;
  }
  .chakra-grid {
    margin: 6px;
  }
  .chakra-grid button {
    min-height: 34px;
  }
  .chakra-figure button {
    font-size: 10px;
    width: 20px;
    height: 20px;
  }
}
