* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: #0C0D14;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  font-family: 'Courier New', monospace;
  color: #fff;
  overflow: hidden;
}

#game-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 8px;
  gap: 8px;
}

#hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  background: #13141D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.hud-group { display: flex; flex-direction: column; align-items: center; }
.hud-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: #888; }
.hud-value { font-size: 22px; font-weight: 700; color: #00ff88; }

#next-bubble {
  display: block;
  margin-top: 4px;
}

#game-canvas {
  display: block;
  background: #0e0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: crosshair;
  width: 100%;
  max-width: 380px;
}

#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#overlay.hidden { display: none; }

#overlay-box {
  background: #13141D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
}

#overlay-box h1 {
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: 3px;
  color: #00ff88;
}

.subtitle { color: #aaa; font-size: 14px; margin-bottom: 8px; }
.controls-hint { color: #666; font-size: 12px; margin-bottom: 24px; }

.game-btn {
  background: #00ff88;
  color: #0C0D14;
  border: none;
  padding: 14px 28px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.game-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hidden { display: none !important; }
