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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050712;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
}

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

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
}

#loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #18254c 0%, #090d1f 70%, #040610 100%);
  z-index: 20;
  transition: opacity 0.35s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-box {
  width: min(440px, 86vw);
  padding: 28px 32px;
  background: rgba(34, 46, 108, 0.88);
  border: 2px solid #151c47;
  box-shadow:
    inset 0 2px 0 rgba(160, 185, 255, 0.28),
    0 12px 36px rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  text-align: center;
  color: #f4f7ff;
}

.loading-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #7ef068;
  text-shadow:
    -2px -2px 0 #142c11,
     2px -2px 0 #142c11,
    -2px  2px 0 #142c11,
     2px  2px 0 #142c11,
     0    3px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.loading-subtitle {
  font-size: 14px;
  color: #d8e2ff;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 16px;
}

.loading-bar-track {
  width: 100%;
  height: 14px;
  background: #0e1433;
  border: 2px solid #070a1c;
  border-radius: 7px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #32b846, #7ef068);
  transition: width 0.2s ease;
}
