body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(circle at 60% 30%, #d8ecff 70%, #eaf6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.container {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 1.2rem 2.5rem 1.2rem;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 10px 40px rgba(70,110,170,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: 2.5em;
  margin-bottom: 0.6em;
  font-weight: bold;
  color: #263869;
  letter-spacing: -1px;
  text-align: center;
}
.score {
  font-size: 1.23em;
  margin-bottom: 2em;
  color: #3181d7;
  text-align: center;
  font-weight: 500;
  user-select: none;
}
#score-label {
  font-weight: 600;
}
.game-board {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 1.7em;
  width: 100%;
}
.mole-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 30%, #ccc 74%, #888 100%);
  border: 0;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 2px 20px rgba(30,60,99,0.17);
  transition: background 0.2s, transform 0.17s, box-shadow 0.15s;
  outline: none;
  font-size: 0;
  position: relative;
  z-index: 1;
}
.mole-btn:focus-visible {
  border: 2.5px solid #3181d7;
  box-shadow: 0 0 0 5px #bcd8ff;
}
.mole-btn:active, .active:active {
  transform: scale(0.98);
}
.active {
  background: radial-gradient(circle at 37% 30%, #3adb5b 74%, #168036 100%);
  box-shadow: 0 2px 24px rgba(50,225,65,0.25);
  filter: drop-shadow(0 0 7px #69f16a);
  animation: molepop 0.27s;
}
@keyframes molepop {
  0% { transform: scale(0.88);}
  80% { transform: scale(1.10);}
  100% { transform: scale(1);}
}
#msg-bar {
  font-size: 1.05em;
  color: #fff;
  background: linear-gradient(90deg, #50bcf2 70%, #3181d7 100%);
  border-radius: 7px;
  margin-bottom: 15px;
  padding: 10px 18px;
  min-height: 33px;
  display: none;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 20px rgba(49,129,215,0.10);
}
#win-message {
  font-size: 1.8em;
  color: #238c23;
  font-weight: bold;
  margin: 22px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  letter-spacing: -1px;
}
#win-message .emoji {
  font-size: 1.15em;
  vertical-align: middle;
}
.win-text {
  font-size: inherit;
  margin: 0 10px;
  font-weight: 700;
  letter-spacing: 0;
}
#restart {
  margin-top: 18px;
  background: linear-gradient(#e9ffe1 50%, #f8f8f8 100%);
  color: #212121;
  border: 2px solid #3181d7;
  border-radius: 9px;
  padding: 13px 37px;
  font-size: 1.15em;
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(50,80,140,0.07);
  transition: background 0.17s, border 0.17s, box-shadow 0.12s;
}
#restart:focus-visible, #restart:hover {
  background: #d2f8cf;
  border-color: #255fa8;
  box-shadow: 0 4px 18px rgba(49,129,215,0.13);
}
@media (max-width: 530px) {
  .container { padding: 1rem 0.5rem; max-width: 99vw; }
  .game-board { gap: 10px; }
  #win-message { font-size: 1.22em; }
  .mole-btn { width: 66px; height: 66px; }
  #restart { padding: 10px 14vw; }
}
