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

body {
  background: #0D0D0D;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hud {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  font-family: 'Courier New', monospace;
}

#score, #level {
  color: #F5F5F0;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#state-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: #0D0D0D;
  transition: opacity 0.4s ease;
}

#state-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#title {
  font-family: 'Courier New', monospace;
  color: #F5F5F0;
  font-size: 28px;
  letter-spacing: 8px;
  font-weight: normal;
}

#instruction {
  font-family: 'Courier New', monospace;
  color: #C7923E;
  font-size: 12px;
  letter-spacing: 3px;
}

#start-btn {
  font-family: 'Courier New', monospace;
  background: transparent;
  color: #F5F5F0;
  border: 1px solid #F5F5F0;
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#start-btn:hover, #start-btn:active {
  background: #F5F5F0;
  color: #0D0D0D;
}

#result {
  font-family: 'Courier New', monospace;
  color: #C7923E;
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 8px;
}
