/* Quarrylight game UI styles */
html,
body {
  margin: 0;
  padding: 0;
  background: #10161f;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#game-canvas {
  position: fixed;
  inset: 0;
  display: block;
  cursor: crosshair;
}

#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

#hotbar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(12, 16, 24, 0.62);
  border: 1px solid rgba(148, 168, 192, 0.35);
  border-radius: 10px;
  z-index: 40;
}

#hotbar > div {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 210, 225, 0.28);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hotbar > div.sel {
  border: 2px solid #ffd479;
  box-shadow: 0 0 8px rgba(255, 212, 121, 0.55);
}

#start-card {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8eef6;
  font-size: 20px;
  letter-spacing: 0.08em;
  z-index: 30;
  cursor: pointer;
}

#new-world {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 41;
  color: #dce6f2;
  background: rgba(12, 16, 24, 0.65);
  border: 1px solid rgba(148, 168, 192, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.touchbtn {
  position: fixed;
  z-index: 50;
  color: #fff;
  background: rgba(12, 16, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  user-select: none;
}

.touch-pad {
  left: 14px;
  bottom: 76px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: 0.9;
}

.touch-jump {
  right: 14px;
  bottom: 150px;
  width: 84px;
  height: 56px;
  font-size: 15px;
}

.touch-break {
  right: 14px;
  top: 120px;
  width: 84px;
  height: 56px;
  font-size: 15px;
}

.touch-place {
  right: 14px;
  top: 190px;
  width: 84px;
  height: 56px;
  font-size: 15px;
}

.touchbtn b {
  font-size: 20px;
  opacity: 0.85;
}
