.moles-body {
  background: #0a1f2a;
}

.moles-body .mole-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 209, 158, 0.14), transparent 21rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    #071c27;
}

.mole-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 48rem);
  margin: 0 auto;
  justify-self: center;
}

.mole-hole {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 8.4rem;
  border: 0;
  border-radius: 0.7rem;
  background:
    radial-gradient(ellipse at 50% 72%, #031017 0 32%, transparent 33%),
    linear-gradient(180deg, #183542, #102832);
  color: #e8f7ff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0.5rem 1rem rgba(0, 0, 0, 0.22);
  grid-column: span 2;
}

.mole-hole:nth-child(5) {
  grid-column: 2 / span 2;
}

.mole-hole:disabled {
  cursor: default;
}

.mole-hole:focus-visible {
  outline: 3px solid #62b7ff;
  outline-offset: 3px;
}

.hole-label {
  position: absolute;
  left: 0.55rem;
  top: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0d2330;
  color: #9fb9c7;
  font-size: 0.8rem;
}

.mole-token {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  width: 3.7rem;
  height: 3.1rem;
  transform: translate(-50%, 1.2rem) scale(0.2);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mole-token::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.25rem 0;
  border-radius: 50% 50% 42% 42%;
  background: var(--mole-colour, #728693);
  box-shadow: inset -0.35rem -0.28rem 0 rgba(0, 0, 0, 0.16);
}

.mole-token::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.3rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #06121a;
  box-shadow: 1.35rem 0 0 #06121a, 0.68rem 0.62rem 0 -0.05rem #f4c7a2;
}

.mole-hole.revealed .mole-token {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.mole-hole.hit {
  background:
    radial-gradient(ellipse at 50% 72%, #031017 0 32%, transparent 33%),
    linear-gradient(180deg, rgba(39, 213, 159, 0.34), #102832);
}

.mole-hole.hit .mole-token {
  --mole-colour: #25d49e;
}

.mole-hole.miss {
  background:
    radial-gradient(ellipse at 50% 72%, #031017 0 32%, transparent 33%),
    linear-gradient(180deg, rgba(255, 40, 84, 0.3), #102832);
}

.mole-hole.miss::after {
  content: "MISS";
  position: absolute;
  right: 0.6rem;
  bottom: 0.65rem;
  color: #ff7390;
  font-size: 0.78rem;
  font-weight: 950;
}

.mole-hole.pick {
  box-shadow: inset 0 0 0 0.2rem #ffffff, 0 0.5rem 1rem rgba(0, 0, 0, 0.22);
}

.mole-hole.auto-selected {
  background:
    radial-gradient(ellipse at 50% 72%, #031017 0 32%, transparent 33%),
    linear-gradient(180deg, #ffd229, #f29a13);
  color: #061a25;
  box-shadow: inset 0 0 0 0.12rem rgba(255, 255, 255, 0.22), 0 0.5rem 1rem rgba(0, 0, 0, 0.22);
}

.auto-sequence-label {
  position: absolute;
  right: 0.6rem;
  top: 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  max-width: calc(100% - 4rem);
  padding: 0 0.45rem;
  border-radius: 0.25rem;
  background: rgba(8, 29, 41, 0.76);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-selection-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: #132f3d;
  color: #dff2fb;
  font-size: 0.9rem;
  font-weight: 850;
}

.auto-selection-controls[hidden] {
  display: none;
}

.auto-selection-controls > div {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.auto-selection-controls .text-button {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
}

.moles-body .multiplier-rail {
  display: flex;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.2rem 0 0.4rem;
  scrollbar-color: #496c7d #0a202b;
}

.moles-body .multiplier-chip {
  flex: 0 0 auto;
  min-width: 5.5rem;
  min-height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #183442;
  border: 0.2rem solid #284756;
  color: #9db7c5;
  font-size: 0.82rem;
  font-weight: 950;
}

.moles-body .multiplier-chip.hit {
  border-color: #25d49e;
  color: #e8fff8;
}

.moles-body .multiplier-chip.current {
  background: #1b8a6d;
  color: #ffffff;
}

.moles-body .round-banner {
  position: static;
  transform: none;
  min-height: 2.65rem;
  margin: 0 auto;
  width: min(31rem, 100%);
  justify-self: center;
}

.moles-body .round-banner.win {
  background: rgba(35, 211, 158, 0.92);
  color: #03150f;
}

.moles-body .round-banner.loss {
  background: rgba(255, 40, 84, 0.92);
}

@media (max-width: 760px) {
  .mole-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mole-hole,
  .mole-hole:nth-child(5) {
    grid-column: auto;
  }

  .mole-hole {
    min-height: 7.2rem;
  }
}
