html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #14161a;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  touch-action: none;
}

/* Кнопка звука: поверх canvas в правом верхнем углу (M — тот же тумблер). */
#mute-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.35);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#mute-btn:hover {
  background: rgba(10, 12, 16, 0.55);
}

/* Экраны — HTML-оверлеи поверх canvas (impl-plan 3.3). */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.6);
}

.hidden {
  display: none;
}

.card {
  min-width: 280px;
  padding: 32px 48px;
  border-radius: 16px;
  background: #e9d8a6; /* набережная из палитры Батуми */
  color: #2b2d33;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.card h1 {
  margin: 0 0 16px;
  font-size: 28px;
}

.card p {
  margin: 6px 0;
  font-size: 18px;
}

.card-score {
  font-size: 24px;
  font-weight: 700;
}

.card button {
  margin-top: 20px;
  padding: 10px 32px;
  border: none;
  border-radius: 10px;
  background: #3bb8ae; /* море */
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.card button:hover {
  filter: brightness(1.08);
}
