.cd {
  position: relative;
  width: 540px;
  height: 540px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: #ededed;
  font-family: "Geist Variable", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.cd * { box-sizing: border-box; }

.cd-table {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 540px;
  height: 540px;
}

/* the rating, over the candles: one radio a candle, from flame to foot */
.cd-row {
  position: absolute;
  left: 22px;
  top: 112px;
  display: flex;
  width: 496px;
  height: 290px;
}

.cd-candle {
  position: relative;
  flex: 1;
  display: block;
}

.cd-line {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 452px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid #ffffff24;
  font-size: 14px;
  line-height: 20px;
  color: #a1a1a1;
}

.cd-value {
  font-family: "Geist Mono Variable", monospace;
  font-variant-numeric: tabular-nums;
  color: #ededed;
}

.cd-candle button {
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* the ring stands round the candle, not round the whole of its share of the row */
.cd-candle button:focus-visible::after {
  content: "";
  position: absolute;
  inset: 6px 19px 4px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #0070f3;
}
