:root {
  --mole-red: rgba(239, 68, 68, 0.95);
  --mole-red-soft: rgba(239, 68, 68, 0.16);
}

.moleHud {
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.moleHudItem {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.moleHudLabel {
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.65);
}

.moleHudVal {
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.88);
}

.moleStatus {
  margin: 10px 0 14px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px 12px;
  border-radius: 999px;
}

.moleBoard {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.moleCell {
  appearance: none;
  border: 0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-right: 3px solid rgba(15, 23, 42, 0.12);
  border-bottom: 3px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  user-select: none;
  transition: transform 90ms ease, filter 160ms ease, background 160ms ease;
  position: relative;
}

.moleCell:nth-child(3n) {
  border-right: 0;
}
.moleCell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.moleCell:active {
  transform: scale(0.985);
}

.moleCell.isMole {
  background: linear-gradient(180deg, var(--mole-red-soft), rgba(255, 255, 255, 0.2));
}

.moleCell.isMole::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 16px;
  background: var(--mole-red);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
  transform: scale(1);
  animation: molePop 180ms ease-out;
}

@keyframes molePop {
  from {
    transform: scale(0.92);
    filter: brightness(1.05);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
  }
}

.moleActions {
  margin-top: 14px;
  gap: 10px;
}

@media (max-width: 420px) {
  .moleHud {
    padding: 8px 10px;
  }
  .moleBoard {
    border-radius: 18px;
    height: min(380px, 86vw);
  }
}

