:root {
  --bg: #f0fdf4;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #166534;
  --accent-dark: #14532d;
  --border: #d1fae5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #dcfce7 0%, var(--bg) 45%, #ecfeff 100%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 1.9rem;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.hud p {
  margin: 0;
  color: var(--muted);
}

#startBtn {
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 10px;
}

#startBtn:hover {
  background: var(--accent-dark);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hole {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #86efac;
  background: radial-gradient(circle at 50% 40%, #bbf7d0 0%, #4d7c0f 80%);
  overflow: hidden;
}

.mole {
  position: absolute;
  left: 50%;
  bottom: -60%;
  transform: translateX(-50%);
  width: 75%;
  height: 75%;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #a16207, #713f12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: bottom 0.15s ease;
}

.hole.active .mole {
  bottom: 8%;
}

.mole:disabled {
  cursor: default;
}

.message {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.message p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .topbar h1 {
    font-size: 1.4rem;
  }

  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
