/* HexaGameHub public player profiles v52 */
:root{
  --profile-bg:#080b18;
  --profile-panel:rgba(14,18,38,.86);
  --profile-panel-2:rgba(12,16,34,.72);
  --profile-border:rgba(255,255,255,.09);
  --profile-text:#eef2ff;
  --profile-muted:#aeb7e8;
  --profile-cyan:#38d5ff;
  --profile-purple:#9b5cf3;
  --profile-gold:#fcd34d;
}
.public-profile-page{
  min-height:100vh;
  padding:24px 16px 54px;
  color:var(--profile-text);
  background:
    radial-gradient(900px 420px at 14% 0%, rgba(14,165,233,.16), transparent 60%),
    radial-gradient(900px 420px at 92% 8%, rgba(155,92,243,.14), transparent 60%);
}
.profile-nav{
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid var(--profile-border);
  background:rgba(8,11,24,.82);
  backdrop-filter:blur(10px);
}
.profile-nav-inner{
  width:min(1160px, calc(100vw - 28px));
  margin:0 auto;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.profile-brand,
.profile-nav-links{
  display:flex;
  align-items:center;
  gap:10px;
}
.profile-brand{
  color:var(--profile-text);
  font-weight:950;
  text-decoration:none;
  letter-spacing:.02em;
}
.profile-logo{
  width:30px;
  height:30px;
  display:inline-block;
  background:linear-gradient(135deg,var(--profile-cyan),var(--profile-purple));
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  box-shadow:0 10px 28px rgba(56,213,255,.22);
}
.profile-nav-links a{
  color:var(--profile-muted);
  text-decoration:none;
  font-weight:850;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:999px;
}
.profile-nav-links a:hover{
  color:#fff;
  border-color:var(--profile-border);
  background:rgba(255,255,255,.035);
}
.profile-shell{
  width:min(1160px, calc(100vw - 28px));
  margin:0 auto 18px;
}
.profile-hero{
  border:1px solid var(--profile-border);
  border-radius:24px;
  padding:22px;
  background:
    radial-gradient(650px 280px at 0% 0%, rgba(56,213,255,.16), transparent 62%),
    radial-gradient(650px 280px at 100% 100%, rgba(155,92,243,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--profile-panel);
  box-shadow:0 24px 64px rgba(0,0,0,.28);
}
.profile-hero-main{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:20px;
  align-items:center;
}
.profile-avatar-wrap{
  width:164px;
  height:164px;
  display:grid;
  place-items:center;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(5,8,18,.50);
  box-shadow:inset 0 0 32px rgba(56,213,255,.08), 0 18px 46px rgba(0,0,0,.25);
}
.profile-badge-img{
  width:132px;
  height:132px;
  object-fit:contain;
  filter:drop-shadow(0 16px 20px rgba(0,0,0,.32));
}
.profile-kicker{
  margin:0 0 4px;
  color:var(--profile-cyan);
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.78rem;
  font-weight:950;
}
.profile-title-wrap h1{
  margin:0;
  font-size:clamp(2.2rem, 7vw, 4.2rem);
  line-height:.98;
  letter-spacing:-.05em;
}
.profile-subtitle{
  margin:10px 0 0;
  color:var(--profile-muted);
  font-size:1.02rem;
  font-weight:750;
}
.profile-subtitle strong{
  color:#fff;
}
.profile-actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.profile-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--profile-border);
  border-radius:999px;
  color:var(--profile-text);
  background:rgba(6,10,24,.62);
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
}
.profile-btn.primary{
  color:#06121e;
  border:0;
  background:linear-gradient(135deg,var(--profile-cyan),var(--profile-purple));
}
.profile-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}
.profile-copy-status{
  min-height:1.2em;
  margin:8px 0 0;
  color:var(--profile-gold);
  font-weight:850;
}
.profile-stat-grid{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.profile-stat{
  padding:13px;
  border:1px solid var(--profile-border);
  border-radius:16px;
  background:rgba(7,11,26,.50);
  min-width:0;
}
.profile-stat span{
  display:block;
  color:var(--profile-muted);
  font-size:.76rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-stat strong{
  display:block;
  margin-top:3px;
  color:#fff;
  font-size:clamp(1.1rem, 2.5vw, 1.6rem);
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.profile-grid-two{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
.profile-card{
  min-width:0;
  border:1px solid var(--profile-border);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015)), var(--profile-panel-2);
  box-shadow:0 18px 46px rgba(0,0,0,.20);
}
.profile-card-head{
  margin-bottom:12px;
}
.profile-card h2{
  margin:0;
  font-size:clamp(1.25rem, 3vw, 1.65rem);
}
.profile-card-head p,
.profile-empty{
  margin:4px 0 0;
  color:var(--profile-muted);
}
.profile-score-list,
.profile-recent-list,
.profile-challenge-list{
  display:grid;
  gap:8px;
}
.profile-score-row,
.profile-recent-row,
.profile-challenge-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(7,11,26,.46);
  color:inherit;
  text-decoration:none;
}
.profile-score-row:hover,
.profile-recent-row:hover{
  border-color:rgba(56,213,255,.28);
  background:rgba(14,165,233,.08);
}
.profile-score-row strong,
.profile-recent-row strong,
.profile-challenge-row strong{
  color:var(--profile-gold);
  font-size:1.08rem;
  font-variant-numeric:tabular-nums;
}
.profile-score-row small,
.profile-recent-row small,
.profile-challenge-row small{
  grid-column:1 / -1;
  color:var(--profile-muted);
  font-weight:750;
}
.score-game,
.profile-recent-row span,
.profile-challenge-row span{
  color:#fff;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-fav-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.profile-fav-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(7,11,26,.46);
}
.profile-fav-card img{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  background:#060a18;
}
.profile-fav-card div{
  padding:10px;
}
.profile-fav-card h3{
  margin:0;
  color:#fff;
  font-size:1rem;
}
.profile-fav-card p{
  margin:3px 0 8px;
  color:var(--profile-muted);
  font-size:.86rem;
}
.profile-fav-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--profile-cyan),var(--profile-purple));
  color:#06121e;
  font-weight:950;
  text-decoration:none;
}
.profile-back{
  color:var(--profile-muted);
  font-weight:900;
  text-decoration:none;
}
.profile-not-found{
  margin-top:48px;
  border:1px solid var(--profile-border);
  border-radius:22px;
  padding:26px;
  background:var(--profile-panel);
}
.profile-not-found h1{
  margin:12px 0 6px;
}
@media (max-width:900px){
  .profile-hero-main{
    grid-template-columns:1fr;
    text-align:center;
  }
  .profile-avatar-wrap{
    margin-inline:auto;
  }
  .profile-actions{
    justify-content:center;
  }
  .profile-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .profile-grid-two{
    grid-template-columns:1fr;
  }
}
@media (max-width:560px){
  .public-profile-page{
    padding:14px 10px 42px;
  }
  .profile-nav-inner{
    min-height:58px;
    width:calc(100vw - 20px);
  }
  .profile-nav-links{
    gap:4px;
  }
  .profile-nav-links a{
    padding:7px 8px;
    font-size:.86rem;
  }
  .profile-brand span:last-child{
    display:none;
  }
  .profile-shell{
    width:calc(100vw - 20px);
    margin-bottom:12px;
  }
  .profile-hero,
  .profile-card{
    border-radius:18px;
    padding:14px;
  }
  .profile-avatar-wrap{
    width:132px;
    height:132px;
    border-radius:22px;
  }
  .profile-badge-img{
    width:108px;
    height:108px;
  }
  .profile-subtitle{
    font-size:.94rem;
  }
  .profile-stat-grid{
    gap:8px;
  }
  .profile-stat{
    padding:10px;
  }
  .profile-fav-grid{
    grid-template-columns:1fr;
  }
  .profile-score-row,
  .profile-recent-row,
  .profile-challenge-row{
    grid-template-columns:1fr;
  }
  .profile-score-row strong,
  .profile-recent-row strong,
  .profile-challenge-row strong{
    justify-self:start;
  }
}


/* v52: profile trophy room, badge progression, and challenge links */
.profile-hero{
  position:relative;
  overflow:hidden;
}
.profile-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(8,11,24,.96), rgba(8,11,24,.72) 55%, rgba(8,11,24,.94)),
    var(--profile-hero-image, none) center/cover no-repeat;
  opacity:.56;
  pointer-events:none;
}
.profile-hero > *{
  position:relative;
  z-index:1;
}
.profile-hero-main{
  grid-template-columns:auto minmax(0,1fr) minmax(250px,340px);
}
.profile-avatar-wrap{
  width:138px;
  height:138px;
  border-radius:26px;
}
.profile-badge-img{
  width:98px;
  height:98px;
}
.profile-title-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:8px 0 0;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(252,211,77,.28);
  background:rgba(252,211,77,.10);
  color:#fff5c2;
  font-weight:950;
  letter-spacing:.02em;
}
.profile-btn-hot{
  border-color:rgba(252,211,77,.35);
  background:linear-gradient(135deg, rgba(252,211,77,.18), rgba(155,92,243,.22));
  color:#fff7cc;
}
.profile-hero-side{
  display:grid;
  gap:10px;
  min-width:0;
}
.profile-feature-game,
.profile-badge-progress-card{
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:rgba(5,8,18,.55);
  box-shadow:0 14px 34px rgba(0,0,0,.20);
  overflow:hidden;
}
.profile-feature-game{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:stretch;
}
.profile-feature-game img{
  width:100%;
  height:100%;
  min-height:106px;
  object-fit:cover;
  background:#060a18;
}
.profile-feature-game div{
  padding:12px;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
.profile-feature-game span,
.profile-progress-head span{
  color:var(--profile-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.68rem;
  font-weight:950;
}
.profile-feature-game strong,
.profile-progress-head strong{
  color:#fff;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-feature-game a{
  width:max-content;
  margin-top:4px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--profile-cyan),var(--profile-purple));
  color:#06121e;
  font-weight:950;
  text-decoration:none;
  font-size:.82rem;
}
.profile-badge-progress-card{
  padding:13px;
}
.profile-progress-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.profile-progress-track{
  height:9px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  margin:10px 0 8px;
}
.profile-progress-track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--profile-cyan),var(--profile-purple),var(--profile-gold));
  box-shadow:0 0 18px rgba(56,213,255,.25);
}
.profile-badge-progress-card p{
  margin:0;
  color:var(--profile-muted);
  font-size:.84rem;
}
.profile-showcase{
  border:1px solid var(--profile-border);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015)), var(--profile-panel-2);
  box-shadow:0 18px 46px rgba(0,0,0,.20);
}
.profile-showcase-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.profile-showcase-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.profile-showcase-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:13px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:18px;
  background:rgba(7,11,26,.48);
}
.profile-showcase-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(56,213,255,.10);
  border:1px solid rgba(56,213,255,.18);
  font-size:1.15rem;
}
.profile-showcase-card small{
  display:block;
  color:var(--profile-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.66rem;
  font-weight:950;
}
.profile-showcase-card strong{
  display:block;
  color:#fff;
  font-weight:950;
  line-height:1.14;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-showcase-card p{
  margin:3px 0 0;
  color:var(--profile-muted);
  font-size:.84rem;
  line-height:1.25;
}
.profile-score-actions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.profile-score-actions a,
.profile-score-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(6,10,24,.72);
  color:var(--profile-text);
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-size:.82rem;
}
.profile-score-actions button{
  background:linear-gradient(135deg,rgba(56,213,255,.16),rgba(155,92,243,.20));
  color:#dff7ff;
}
@media (max-width:1020px){
  .profile-hero-main{
    grid-template-columns:auto minmax(0,1fr);
  }
  .profile-hero-side{
    grid-column:1 / -1;
    grid-template-columns:1fr 1fr;
  }
  .profile-showcase-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:900px){
  .profile-hero-main{
    grid-template-columns:1fr;
  }
  .profile-title-badge{
    margin-inline:auto;
  }
}
@media (max-width:620px){
  .profile-hero::before{
    opacity:.42;
  }
  .profile-avatar-wrap{
    width:104px;
    height:104px;
    border-radius:20px;
  }
  .profile-badge-img{
    width:74px;
    height:74px;
  }
  .profile-title-wrap h1{
    font-size:clamp(2rem, 12vw, 3rem);
  }
  .profile-title-badge{
    font-size:.88rem;
  }
  .profile-hero-side{
    grid-template-columns:1fr;
  }
  .profile-feature-game{
    grid-template-columns:92px minmax(0,1fr);
  }
  .profile-feature-game img{
    min-height:96px;
  }
  .profile-showcase{
    padding:13px;
    border-radius:18px;
  }
  .profile-showcase-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .profile-showcase-card{
    padding:11px;
  }
  .profile-score-actions a,
  .profile-score-actions button{
    flex:1 1 130px;
  }
}
