/* STATS PANEL */
#stats-handle {
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  width: 16px;
  height: 56px;
  background: linear-gradient(180deg, #1a2e1a 0%, #0f1f0f 100%);
  border: 1px solid rgba(57,255,20,0.25);
  border-right: none;
  border-radius: 6px 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  box-shadow: -2px 0 10px rgba(0,0,0,0.6);
  transition: background 0.15s, border-color 0.15s, opacity 0.3s ease;
  pointer-events: all;
  opacity: 0;
  pointer-events: none;
}
#stats-handle.visible {
  opacity: 1;
  pointer-events: all;
}
#stats-handle:hover {
  background: linear-gradient(180deg, #243824 0%, #162416 100%);
  border-color: rgba(57,255,20,0.5);
}
.stats-handle-arrow {
  font-size: 16px;
  color: #39ff14;
  opacity: 0.6;
  transition: transform 0.3s, opacity 0.15s;
  user-select: none;
  line-height: 1;
}
#stats-handle.open .stats-handle-arrow {
  transform: scaleX(-1);
  opacity: 1;
}
#stats-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 190px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 79;
  pointer-events: none;
  overflow: visible;
  visibility: hidden;
}
#stats-panel.open {
  transform: translateX(0);
  pointer-events: all;
}
#stats-panel-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d1a0d 0%, #080f08 100%);
  border-left: 1px solid rgba(57,255,20,0.15);
  box-shadow: -8px 0 30px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 24px;
}
#stats-panel-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}
#stats-panel-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 10px;
  position: relative;
  z-index: 1;
}
.stats-panel-callsign {
  font-family: 'Courier New', monospace;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #39ff14;
  text-shadow: 0 0 12px rgba(57,255,20,0.5);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 4px;
}
.stats-panel-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.3), transparent);
  position: relative;
  z-index: 1;
}
#stats-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}
.stats-panel-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}
.stats-panel-label {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(57,255,20,0.45);
  text-transform: uppercase;
}
.stats-panel-value {
  font-family: 'Courier New', monospace;
  font-size: 34px;
  font-weight: 700;
  color: #39ff14;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(57,255,20,0.5);
}
