* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #060712;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: none;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #060712;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#hud-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.hud-card {
  background: rgba(6, 8, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hud-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8fa0c5;
  text-transform: uppercase;
}

.hud-value {
  font-size: 16px;
  font-weight: 900;
  color: #00f2fe;
  margin-top: 2px;
}

#shield-val {
  color: #ff2a5f;
}

#score-val {
  color: #ffffff;
}

#controls-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
  pointer-events: auto;
}

.hud-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  background: rgba(6, 8, 20, 0.85);
  color: #00f2fe;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  transition: all 0.2s ease;
  outline: none;
}

.hud-btn:hover, .hud-btn:focus {
  background: #00f2fe;
  color: #060814;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

.hidden-btn {
  display: none !important;
}
