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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #6ea3c7;
  font-family: 'Courier New', Courier, monospace;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  pointer-events: none;
  z-index: 5;
}
#crosshair::before, #crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 60, 40, 0.85);
}
#crosshair::before { left: 8px; top: 0; width: 2px; height: 18px; }
#crosshair::after { top: 8px; left: 0; width: 18px; height: 2px; }

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee;
  background: #1a2733;
  font-size: 20px;
  letter-spacing: 2px;
  z-index: 50;
}

#hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 14px 14px;
  z-index: 10;
  pointer-events: none;
  flex-wrap: wrap;
}

.gauge {
  background: rgba(10, 16, 22, 0.72);
  border: 1px solid rgba(160, 200, 220, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
  color: #cdeeff;
  min-width: 108px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.gauge-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7fb8d9;
  margin-bottom: 4px;
}

.gauge-value {
  font-size: 22px;
  font-weight: bold;
  color: #eaffff;
  line-height: 1.1;
}

.gauge-value .unit {
  font-size: 11px;
  color: #9fd0e8;
  font-weight: normal;
}

.throttle-bar {
  width: 90px;
  height: 14px;
  border: 1px solid #7fb8d9;
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}
.throttle-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4fd67a, #ffd24f 70%, #ff5f4f 100%);
  transition: width 0.08s linear;
}

.compass {
  position: relative;
  width: 100px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(160,200,220,0.4);
  border-radius: 3px;
  background: rgba(0,0,0,0.35);
}
.compass-rose {
  position: absolute;
  top: 2px;
  left: 50%;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 2px;
  color: #bfe9ff;
}
.compass-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: #ff5f4f;
}

.horizon-frame {
  position: relative;
  width: 90px;
  height: 60px;
  margin: 2px auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(160,200,220,0.4);
}
.horizon-sky-ground {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: linear-gradient(to bottom, #4a90d9 0%, #4a90d9 50%, #8a5a2f 50%, #8a5a2f 100%);
  transform-origin: center center;
}
.horizon-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}
.horizon-bug {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 8px;
  margin: -4px 0 0 -13px;
  border-bottom: 3px solid #ffd24f;
  pointer-events: none;
}

#help {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(10, 16, 22, 0.65);
  color: #cdeeff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid rgba(160, 200, 220, 0.35);
}
#help-hide {
  color: #7fb8d9;
  font-size: 10px;
}
#help.hidden { display: none; }
