body {
  margin: 0;
  padding: 0;
  background: #0b0f17;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

.container {
  width: 90%;
  margin: auto;
  padding-top: 20px;
}

.glow-header {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #8beaff;
  text-shadow: 0 0 10px #00aaff;
}

/* Hard lock performance chart height */
.panel {
  height: 320px !important;
  max-height: 320px !important;
  min-height: 320px !important;
  overflow: hidden !important;
  position: relative;
}

/* Force canvas to stay inside the fixed panel */
.panel canvas {
  height: 100% !important;
  width: 100% !important;
  max-height: 100% !important;
  display: block !important;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.summary-card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.meta-category {
  margin-bottom: 20px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#leaderboardContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.leaderboard-row {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 8px;
}

.leaderboard-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.leaderboard-total {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.leaderboard-bar {
  display: flex;
  height: 14px;
  border-radius: 6px;
  overflow: hidden;
}

/* Sticky glowing navigation bar */
.nav-links {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;

  padding: 14px 0;
  background: rgba(10, 10, 20, 0.55); /* subtle transparency */
  backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(120, 0, 255, 0.35);
  box-shadow: 0 0 12px rgba(120, 0, 255, 0.25);
}

/* Link styling */
.nav-links a {
  color: #a67cff; /* soft End-dimension purple */
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;

  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Hover glow */
.nav-links a:hover {
  color: #d7b3ff;
  text-shadow: 0 0 8px #b57bff, 0 0 14px #b57bff;
}

/* Active section underline (optional) */
.nav-links a.active {
  border-bottom: 2px solid #b57bff;
  padding-bottom: 4px;
}
.health-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 25px 0;
  padding: 10px 16px;
  background: rgba(10, 10, 20, 0.55);
  border: 1px solid rgba(181, 123, 255, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(181, 123, 255, 0.25);
}

.health-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
}

.health-item .label {
  color: #a67cff;
  margin-bottom: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.health-item .value {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  min-width: 48px;
  text-align: center;
}

/* Color states */
.health-green {
  background: rgba(0, 255, 170, 0.25);
  border: 1px solid rgba(0, 255, 170, 0.6);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
}

.health-yellow {
  background: rgba(255, 200, 0, 0.25);
  border: 1px solid rgba(255, 200, 0, 0.6);
  box-shadow: 0 0 8px rgba(255, 200, 0, 0.4);
}

.health-red {
  background: rgba(255, 80, 80, 0.25);
  border: 1px solid rgba(255, 80, 80, 0.6);
  box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
}

.bar { height: 100%; }
.bar.survival { background: #5ec8ff; }
.bar.adventure { background: #b57bff; }
.bar.creative { background: #ff6ec7; }
.bar.spectator { background: #6ee7c8; }
