/* NightGame — Aim Lab */
#fps-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: crosshair;
}

#fps-overlay,
#fps-result,
#fps-pause {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}
#fps-overlay { z-index: 2; }

.fps-overlay-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(124, 92, 255, 0.25);
  max-height: 92vh;
  overflow-y: auto;
}
.fps-overlay-card h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.fps-overlay-card .sub { color: var(--text-muted); margin-bottom: 1.5rem; }
.controls {
  list-style: none;
  text-align: left;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: grid;
  gap: 0.45rem;
}
.controls b { color: var(--cyan); font-weight: 600; }
.fps-overlay-card .btn { display: block; width: 100%; max-width: 280px; margin: 0.7rem auto 0; }
.site-header { z-index: 3; }
.hidden { display: none !important; }

/* classement */
.aimlab-board {
  margin-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  text-align: left;
}
.aimlab-board h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.aimlab-board .lb-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.aimlab-board .lb-rank { width: 2rem; text-align: center; }
.aimlab-board .lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.aimlab-board .lb-score { font-family: "Orbitron", sans-serif; color: var(--cyan); font-weight: 700; }
.aimlab-board .lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet);
  flex: 0 0 auto;
}
.aimlab-board .lb-avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #38e1ff);
  color: #fff;
  font: 700 0.95rem/1 "Orbitron", sans-serif;
}
.aimlab-board .lb-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 0.5rem 0; }

/* pause / sensibilité */
.sens-label { display: block; color: var(--text-muted); margin-bottom: 0.6rem; font-size: 0.9rem; }
#sens-range { width: 100%; margin-bottom: 0.4rem; accent-color: var(--cyan); }
.sens-value { color: var(--cyan); font-family: "Orbitron", sans-serif; font-weight: 700; }
.result-best { color: #ffd700; font-weight: 700; margin-bottom: 1rem; }
#result-score { font-family: "Orbitron", sans-serif; color: var(--cyan); font-weight: 700; }
