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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0f14;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #eaf2f8;
  user-select: none;
}

#app canvas { display: block; }

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f14;
  color: #9fb4c7;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 100;
  transition: opacity 0.4s;
}

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

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

.panel {
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  padding: 10px 14px;
}

.label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #9fb4c7;
  text-transform: uppercase;
}

#badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#badge.webgpu { color: #7ee2a8; }
#badge.webgl { color: #f2c14e; }

#stats {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 170px;
  font-variant-numeric: tabular-nums;
}

#stats .row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
  padding: 2px 0;
}

#speedbox {
  position: absolute;
  right: 16px;
  bottom: 16px;
  text-align: center;
  min-width: 110px;
}

#speed {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#minimap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

#message {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}

#help {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #c8d6e2;
  white-space: nowrap;
}

#help b { color: #ffffff; }
