/* RH72 2KForge Theme Variables */
:root {
  --forge-black: #090A0C;
  --forge-surface: #121418;
  --forge-elevated: #1C1F26;
  --forge-border: #282C37;
  --metallic-red-core: #D31238;
  --metallic-red-glow: #FF2A55;
  --metallic-red-dark: #7A081D;
  --forge-silver: #E2E8F0;
  --forge-muted: #848B9A;
}

body {
  background-color: var(--forge-black);
  color: var(--forge-silver);
  font-family: 'Inter', 'Roboto Mono', sans-serif;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--forge-black); }
::-webkit-scrollbar-thumb { background: var(--forge-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--metallic-red-core); }

input[type=range] {
  -webkit-appearance: none;
  background: transparent;
  width: 100%;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 12px;
  border-radius: 2px;
  background: var(--forge-silver);
  border: 1px solid var(--forge-black);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--forge-elevated);
  border-radius: 4px;
  border: 1px solid var(--forge-border);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.collapsible-content.open {
  max-height: 1000px;
}

/* Badge Height Caps Glow Effects */
.tier-hof-glow {
  box-shadow: 0 0 12px rgba(147, 112, 219, 0.35);
}
.tier-gold-glow {
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
.tier-silver-glow {
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.25);
}
.tier-bronze-glow {
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.25);
}
.height-active-glow {
  box-shadow: 0 0 18px rgba(211, 18, 56, 0.55), inset 0 0 8px rgba(211, 18, 56, 0.25);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(18, 20, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-header {
  background: rgba(28, 31, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Spotlight Background Overlay */
.spotlight-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(211, 18, 56, 0.08) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
  z-index: 0;
}

/* Physical Sliders Overhaul */
input[type=range].physical-slider::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forge-silver), #888);
  border: 2px solid var(--forge-black);
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  margin-top: -8px;
  transition: transform 0.1s;
}
input[type=range].physical-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 42, 85, 0.8), inset 0 2px 2px rgba(255, 255, 255, 0.8);
}
input[type=range].physical-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, rgba(211, 18, 56, 0.5), rgba(40, 44, 55, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Max-Out Pulse */
@keyframes maxOutPulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}
.max-out-text {
  animation: maxOutPulse 2s infinite ease-in-out;
}
.max-out-bar {
  animation: maxOutPulse 2s infinite ease-in-out;
}

/* Attribute Row Hover */
.attr-row {
  transition: background-color 0.2s, transform 0.2s;
  padding: 4px -4px;
  border-radius: 6px;
}
.attr-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

/* Pill Selectors */
.pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--forge-muted);
  transition: all 0.2s;
}
.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.pill-btn.active {
  background: linear-gradient(135deg, var(--metallic-red-core), var(--metallic-red-dark));
  border-color: var(--metallic-red-glow);
  color: white;
  box-shadow: 0 0 15px rgba(211, 18, 56, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Badge Tier Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-pill.Bronze { color: #CD7F32; border-color: rgba(205, 127, 50, 0.5); box-shadow: 0 0 8px rgba(205, 127, 50, 0.2); }
.badge-pill.Silver { color: #C0C0C0; border-color: rgba(192, 192, 192, 0.5); box-shadow: 0 0 8px rgba(192, 192, 192, 0.2); }
.badge-pill.Gold { color: #FFD700; border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 0 8px rgba(255, 215, 0, 0.2); }
.badge-pill.HallOfFame { color: #9370DB; border-color: rgba(147, 112, 219, 0.5); box-shadow: 0 0 12px rgba(147, 112, 219, 0.4); }
