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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #000000;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

#app {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%) scale(var(--app-scale, 1));
  transform-origin: center center;
  background: #1C1E21;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.header {
  height: 64px;
  margin-top: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.header-meta {
  font-size: 14px;
  font-weight: 500;
  color: #B0B3B8;
  padding: 4px 10px;
  border: 1px solid #3A3B3E;
  border-radius: 999px;
}

.header-meta.live {
  color: #1C1E21;
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

.hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scope {
  position: relative;
  width: 320px;
  height: 320px;
  border: 2px solid #3A3B3E;
  border-radius: 50%;
  overflow: hidden;
  transition: border-color 120ms linear, box-shadow 120ms linear;
}

.scope-ring {
  position: absolute;
  inset: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 1px dashed #3A3B3E;
  border-radius: 50%;
  pointer-events: none;
}

.scope-horizon {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, #3A3B3E 18%, #5A5C5F 50%, #3A3B3E 82%, transparent 100%);
  transform-origin: center center;
  transition: transform 80ms linear;
  will-change: transform;
}

.scope-horizon::before,
.scope-horizon::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 1px;
  height: 14px;
  background: #3A3B3E;
}
.scope-horizon::before { left: calc(50% - 80px); }
.scope-horizon::after  { left: calc(50% + 80px); }

.scope-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.7;
}

.scope-tick {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: #B0B3B8;
  letter-spacing: 1.5px;
  pointer-events: none;
}
.scope-tick-n { top: 4px;    left: 50%; transform: translateX(-50%); }
.scope-tick-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.scope-tick-e { right: 4px;  top: 50%;  transform: translateY(-50%); }
.scope-tick-w { left: 4px;   top: 50%;  transform: translateY(-50%); }

.scope-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transition: transform 80ms linear, opacity 120ms linear, filter 120ms linear;
  will-change: transform;
}

.scope-marker.idle {
  opacity: 0.25;
}

.scope-marker.on-target .scope-marker-glyph {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}

.scope-marker-glyph {
  position: relative;
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  color: #FFFFFF;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear, font-size 120ms linear;
  will-change: transform;
}

.scope.off-screen .scope-marker-glyph {
  font-size: 36px;
}

.scope.on-target {
  border-color: #FFFFFF;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}

.callsign {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.readouts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  font-variant-numeric: tabular-nums;
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 60px;
}

.readout-label {
  font-size: 11px;
  font-weight: 600;
  color: #B0B3B8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.readout-value {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.nav-bar {
  display: flex;
  gap: 12px;
  padding: 0 8px 8px;
}

.nav-item {
  flex: 1;
  height: 88px;
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #3A3B3E;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.8;
  transform: scale(1);
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nav-item.primary {
  border-color: #FFFFFF;
}

.focusable:focus {
  outline: none;
  opacity: 1;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}

.focusable:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.98);
}
