* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #151a20;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.menu-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #34465c 0%, #151a20 70%);
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.menu h1 {
  font-size: 64px;
  letter-spacing: 12px;
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.hint {
  color: #aebcd0;
  font-size: 13px;
  letter-spacing: 2px;
}

.btn {
  min-width: 150px;
  margin: 5px;
  padding: 13px 28px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #f7fbff;
  background: #263345;
  border: 1px solid #556b86;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: #344761;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: #d99a18;
  border-color: #ffc83d;
  color: #1b1405;
}

.btn.primary:hover {
  background: #ffc83d;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

#pause {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.72);
}

#pause.hidden {
  display: none;
}

#voice-ui {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.voice-btn {
  min-width: 140px;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 2px;
}

#voice-status {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

#voice-status.hidden {
  visibility: hidden;
}

#voice-status.error {
  color: #ff7676;
  font-size: 14px;
  letter-spacing: 1px;
  max-width: 320px;
  text-align: right;
}

#voice-player {
  width: 260px;
  max-width: 70vw;
}

#voice-player.hidden {
  display: none;
}
