body {
  font-family: system-ui, sans-serif;
  background: #0b1020;
  color: #ffffff;
  display: flex;
  flex-direction: column; /* per pulsante sotto */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.game {
  background: #151a33;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 {
  margin-top: 0;
}

.category {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.masked-word {
  font-size: 1.6rem;
  letter-spacing: 0.4rem;
  margin: 1rem 0;
}

.controls input {
  width: 70%;
  padding: 0.5rem;
  font-size: 1rem;
}

.controls button {
  padding: 0.5rem 1rem;
}

.hints {
  margin-top: 1rem;
}

.hints ul {
  list-style: none;
  padding: 0;
}

.status {
  margin-top: 1rem;
  opacity: 0.9;
}

.message {
  margin-top: 1rem;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #33415c;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Pulsante classifica */
#showLeaderboardBtn {
  display: block;
  margin: 1rem auto;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: #33415c;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

#showLeaderboardBtn:hover {
  background-color: #33415c;
}
