body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 20px;
  box-sizing: border-box;
  background-color: rgb(204, 166, 134);
  color: hsl(238, 16%, 45%);
  font-family: sans-serif;
}

h1 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-decoration: underline;
  font-size: 2.5rem;
}

.hex-wrapper {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

#game {
  width: 300px;
  height: 346px;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  color: white;
  cursor: pointer;
  user-select: none;
  text-align: center;
  white-space: pre-line;
  touch-action: manipulation;
  padding: 40px;
  box-sizing: border-box;
  transition: transform 0.1s ease;
  line-height: 1.3;
}

#game:active {
  transform: scale(0.97);
}

.idle     { background-color: #2b6cb0; } /* Blue: start or result */
.waiting  { background-color: #c53030; } /* Red: wait for green */
.ready    { background-color: #2f855a; } /* Green: click now! */
.too-soon { background-color: #d69e2e; } /* Amber: clicked too early */

h1, .hex-wrapper, .stats, footer {
  position: relative;
  z-index: 1;
}

.stats {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(238, 16%, 45%);
  background-color: rgba(255, 255, 255, 0.35);
  padding: 12px 24px;
  border-radius: 999px;
  flex-wrap: wrap;
  justify-content: center;
}

#mode-btn,
#reset-btn,
#mute-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(238, 16%, 45%);
  background: transparent;
  border: 2px solid hsl(238, 16%, 45%);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#mode-btn:hover,
#reset-btn:hover,
#mute-btn:hover,
#mode-btn.challenge-active {
  background-color: hsl(238, 16%, 45%);
  color: white;
}

footer {
  font-size: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: #718096;
}

footer a {
  color: hsl(238, 16%, 45%);
  text-decoration: underline;
}

footer a:hover {
  text-decoration: underline;
  color: hsl(290, 61%, 43%);
}

#particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  top: 0;
  border-radius: 50%;
  background-color: white;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translate(0, -10vh);
  }
  50% {
    transform: translate(var(--drift), 50vh);
  }
  100% {
    transform: translate(0, 110vh);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  #game {
    width: 240px;
    height: 277px;
    font-size: 1.6rem;
    padding: 30px;
  }

  .stats {
    gap: 12px 18px;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
  }

  footer {
    font-size: 1rem;
  }
}

.footer-sep {            /* the · between 'Created by Guerz' and '← Projects' */
  margin: 0 8px;         /* space on both sides of the dot */
}
