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

body {
  font-family: Arial, sans-serif;
  background: #1a1a2e;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
}

h1 {
  margin-bottom: 8px;
}

.hint {
  color: #aaa;
  margin-bottom: 16px;
  font-size: 14px;
}

#game {
  position: relative;
  width: 400px;
  height: 500px;
  background: #16213e;
  border: 3px solid #0f3460;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

#score {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
}

#player {
  position: absolute;
  bottom: 20px;
  left: 180px;
  width: 40px;
  height: 40px;
  background: #4ecca3;
  border-radius: 6px;
}

.obstacle {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #e94560;
  border-radius: 6px;
}

.bullet {
  position: absolute;
  width: 6px;
  height: 16px;
  background: #ffe66d;
  border-radius: 3px;
  box-shadow: 0 0 6px #ffe66d;
}

#game-over {
  margin-top: 20px;
}

#game-over h2 {
  color: #e94560;
  margin-bottom: 8px;
}

#game-over p {
  margin-bottom: 16px;
}

#restart {
  padding: 10px 24px;
  font-size: 16px;
  background: #4ecca3;
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#restart:hover {
  background: #3db892;
}

.hidden {
  display: none;
}
