* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 16px;
  color: #1f2330;
}
.wrap { max-width: 420px; margin: 0 auto; text-align: center; }
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
#newbtn {
  background: #4f46e5; color: white; border: 0; padding: 8px 14px;
  border-radius: 6px; cursor: pointer;
}
#newbtn:hover { background: #4338ca; }
#newbtn:disabled { background: #9ca3af; cursor: not-allowed; }
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #1f2330;
  padding: 8px;
  border-radius: 6px;
  user-select: none;
}
.hole {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111827;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}
.mole {
  position: absolute;
  inset: 0;
  background: #f59e0b;
  border-radius: 50%;
  transform: translateY(110%);
  transition: transform 0.15s ease-out;
}
.hole.up .mole { transform: translateY(15%); }
.hole.whacked .mole { background: #84cc16; transform: translateY(110%); }
.result {
  margin-top: 16px;
  padding: 12px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
}
.result.hidden { display: none; }
