* {
  box-sizing: border-box;
}
body {
  overflow-y: scroll;
  font-family:
    "Roboto", "Noto Sans JP", "Noto Color Emoji", "Noto Sans KR",
    "Noto Sans HK", "Noto Sans TC", "Noto Sans SC", "Noto Sans", sans-serif;
}

.panel {
  width: min(420px, 92vw);
  aspect-ratio: 1/1;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
}

.judgeCanvasBlock,
.judgeResultBlock {
  width: min(420px, 92vw);
}

canvas {
  display: block;
}

svg.best {
  color: #fff;
}
svg.best * {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
}

#simBox {
  border-radius: 0 !important;
  font-variant-numeric: tabular-nums;
}

.tweetIcon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.rankNo {
  width: 3rem;
  flex: 0 0 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--bs-light);
}

.thumb {
  width: 50px;
  height: 50px;
  padding: 6px;
  margin-left: 6px;
  margin-right: 6px;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  color: #111;
}

.thumb .thumbSvg {
  width: 100%;
  height: 100%;
}
.thumb .thumbSvg * {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3.2;
}

.val {
  font-variant-numeric: tabular-nums;
}

.communityCanvas {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1/1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #fff;
  border: 1px solid var(--bs-border-color);
}
