* {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, #2c003e, #000);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
  width: 90vw;
  max-width: 600px;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2vw; /* smaller space between holes */
  margin-top: 2vh;
}

.hole {
  width: 20vw;
  height: 20vw;
  max-width: 120px;
  max-height: 120px;
  background: #222;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.mole {
  width: 16.5vw;
  height: 16.5vw;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  display: none;
}

.mole.active {
  display: block;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin: auto;
}

#timeSelectDiv {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.6rem);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

#timeSelect {
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: clamp(0.3rem, 0.5vh, 0.6rem) clamp(0.5rem, 1vw, 1rem);
  border-radius: clamp(0.3rem, 1vw, 0.6rem);
  border: none;
  background: #444;
  color: white;
  cursor: pointer;
  min-width: 4rem;
  max-width: 8rem;
  width: auto;
}

button {
  margin: 1vh 1vw;
  padding: clamp(0.5rem, 1vh, 1rem) clamp(1rem, 2vw, 2rem);
  border: none;
  border-radius: clamp(0.3rem, 1vw, 0.8rem);
  background: #ff4081;
  color: white;
  cursor: pointer;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

button:hover {
  background: #ff79a8;
}

.footer {
  margin-top: 2vh;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: #aaa;
}

#timeLeftDiv {
  display: none;
}

#game {
  cursor: url('./img/hammer_up.png') 50 50, auto;
}

#game * {
  cursor: url('./img/hammer_up.png') 50 50, auto;
}

#game * * {
  cursor: url('./img/hammer_up.png') 50 50, auto;
}