* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Press Start 2P', cursive;
  background: #111 url('background_main.jpeg') center/cover fixed;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

.logo {
  max-width: 90%;
  max-height: 200px;
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

.tagline {
  font-size: 0.7rem;
  margin-bottom: 2rem;
  color: #ffcc00;
  text-shadow: 2px 2px 0 #000;
}

#main-menu, .overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.75);
  z-index: 10;
  gap: 0.8rem;
}

.overlay {
  display: none;
}

button {
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #ff4500;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  min-width: 180px;
}

button:hover, button:active {
  background: #ff6347;
  transform: scale(1.05);
}

#gameCanvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: none;
  background: #000;
  touch-action: none;
}

#hud {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 0.75rem;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
}

#combo-display {
  color: #ff0;
  margin-top: 6px;
  min-height: 1.2em;
}

#level-display {
  margin-top: 4px;
  color: #0ff;
}

#high-score-list {
  list-style: decimal inside;
  margin: 1rem 0;
  font-size: 0.8rem;
  text-align: left;
  max-height: 40vh;
  overflow-y: auto;
}

#high-score-list li {
  margin: 0.4rem 0;
}
