.lotto-drawn {
  display: flex;
  gap: 0.5rem;
}

.lotto-drawn li {
  display: grid;
  place-items: center;
  width: clamp(2.4rem, 10vw, 3.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.25);
  box-shadow: inset 0 0 0 2px var(--line);
  font: 800 clamp(1rem, 4.5vw, 1.35rem) / 1 var(--display);
}

/* Ivory balls, gold for a match. */
.lotto-drawn li[data-state] {
  background: radial-gradient(circle at 35% 30%, #fff, #e9e2cf 65%, #c9bea2);
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.35);
  color: #1b1400;
  animation: ball-in 0.3s ease-out;
}

.lotto-drawn li[data-state="hit"] {
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 60%, var(--gold-deep));
}

@keyframes ball-in {
  from {
    transform: translateY(-1rem) scale(0.6);
    opacity: 0;
  }
}

.lotto-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  width: min(100%, 24rem);
}

.lotto-number {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.22);
  color: var(--ink);
  font-weight: 700;
}

.lotto-number:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.12);
}

.lotto-number:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.lotto-number:disabled {
  opacity: 0.45;
}

.lotto-number[aria-pressed="true"] {
  background: var(--chip-blue);
  color: #fff;
  opacity: 1;
}

.lotto-number[data-state="drawn"] {
  box-shadow: inset 0 0 0 2px var(--ink);
  opacity: 1;
}

.lotto-number[data-state="hit"] {
  background: var(--gold);
  color: var(--gold-ink);
  opacity: 1;
}

.lotto-picked {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.paytable {
  width: min(100%, 24rem);
  font-size: 0.9375rem;
}

.paytable p {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.paytable li {
  display: grid;
  grid-template-columns: 1fr auto 6rem;
  gap: 1rem;
  align-items: baseline;
}

.paytable small {
  color: var(--muted);
}

.paytable b {
  font-weight: 700;
  text-align: right;
}
