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

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

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 600px;
  max-height: 800px;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #2d2d44;
}

#hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  z-index: 10;
  pointer-events: none;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#overlay-content {
  text-align: center;
  color: white;
  padding: 30px;
}

#overlay-title {
  font-size: 36px;
  margin-bottom: 15px;
}

#overlay-text {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.9;
}

#overlay-btn {
  padding: 15px 40px;
  font-size: 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

#overlay-btn:hover {
  transform: scale(1.05);
}

#overlay-btn:active {
  transform: scale(0.95);
}
