body {
  font-family: verdana;
  font-size: 15px;
  background-color: #2f2f2f;
  color: #f0f0f0;
  margin: 0;
  overflow: hidden;
}

/* Buttons & sliders (if needed) */
.button {
  background-color: #606060;
  border: none;
  color: white;
  padding: 10px 10px;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}
.slider {
  -webkit-appearance: none;
  width: 80px;
  height: 6px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
}

/* Profile overlay */
#profile a { color: #f0f0f0; text-decoration: underline; }
#profile h2, #profile h3, #profile h4 { margin: 0.2em 0; }
#profile p { margin: 0.5em 0; }
#profile hr {
  border: 0;
  height: 1px;
  background: #606060;
  margin: 1em 0;
}
#profile {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(47,47,47,0.90);
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
  max-height: 80vh;
  overflow-y: auto;
}
#profile a { pointer-events: auto; }

#profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}
#headshot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background-color: rgba(80,80,80,0.5);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  color: #f0f0f0;
  pointer-events: auto;
  transition: background 0.3s ease;
}
#toggle-btn:hover { background-color: rgba(100,100,100,0.7); }
#toggle-icon { margin-left:6px; transition: transform 0.3s ease; }
#toggle-btn.collapsed #toggle-icon { transform: rotate(180deg); }

#profile-details {
  transition: max-height 0.5s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
}
#profile-details.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

/* Responsive tweaks */
@media screen and (max-width: 768px) {
  #profile { max-width: 90%; padding: 15px; top:10px; left:10px; font-size:14px; }
  #headshot { width: 60px; height: 60px; }
}
@media screen and (max-width: 480px) {
  #profile { padding:10px; font-size:12px; max-height:90vh; }
  #headshot { width:40px; height:40px; }
}

/* Gold hover */
#profile a:hover { color: gold; }
#profile:hover hr { border-color: darkgoldenrod; }
