:root { font-size: 16px; }
body  { line-height: 1.4; }

.profile-avatar {
  display: block;
  margin: 6px auto 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  object-fit: cover;
  background: #111;
}

.profile-pic-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  padding: 20px 10px 10px;
  margin: 0 auto;
}

.profile-pic-option {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 6px;
  transition: border 0.2s ease, transform 0.2s ease;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic-option img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
}

.profile-pic-option:hover {
  border: 3px solid #FFD700;
  transform: scale(1.04);
}

.profile-pic-option.selected {
  border: 3px solid #00BFFF;
}

.username-color-box {
  background-color: #1E1E1E;
  border: 2px solid #FFD700;
}

.color-picker-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#saveColorButton {
  padding: 6px 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#saveColorButton:hover { background-color: #45a049; }

.help-text {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #bbb;
}

@media (max-width: 480px) {
  .profile-avatar { width: 76px; height: 76px; }
  .profile-pic-selection { gap: 12px; padding: 16px 8px 8px; }
}

.profile-topbar{
    position: fixed;     
    top: 1px;
    z-index: 950;
    max-width: 900px;
    margin: 10px auto 0;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
  }
  
  .profile-topbar .btn{
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    cursor: pointer;
  }
  .profile-topbar .btn:hover{ filter: brightness(1.05); }
  
  .profile-topbar .btn-green{ background:#2ca24d; }

.banner-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:12px;
  padding:10px;
}
.banner-option{
  height:84px;
  border:2px solid #FFD700;
  border-radius:10px;
  background-size:cover;
  background-position:center;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.banner-option:hover{ transform: translateY(-2px); box-shadow:0 8px 16px rgba(0,0,0,.35); }
.banner-option.selected{ box-shadow:0 0 0 3px #00BFFF inset; }

.team-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
  filter: blur(10px) brightness(.6);
  transform: scale(1.1);
}

.banner-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.banner-option{
  display:block;
  width:100%;
  aspect-ratio: 3 / 1.2;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.banner-option:hover{ filter: brightness(1.05); }
.banner-option.selected{ border-color:#00BFFF; }


.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.stat{
  background:#222;
  border:1px solid #444;
  border-radius:10px;
  padding:12px;
  text-align:center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.stat-value{
  font-size:22px;
  font-weight:800;
  color:#FFD700;
  line-height:1.1;
}
.stat-label{
  margin-top:6px;
  font-size:13px;
  color:#bbb;
}

@media (max-width:480px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-value{ font-size:20px; }
}

