/* Player profile — public trophy case */

.back-arcade { color: var(--ink-dim); text-decoration: none; font-weight: 800; letter-spacing: 1px; }
.back-arcade:hover { color: var(--neon-cyan); }

.profile-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 20px 80px;
}

/* player tabs (same look as the stats page) */
.stats-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.stats-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.stats-tab:hover { border-color: var(--tab-color); }
.stats-tab.is-active {
  border-color: var(--tab-color);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 18px -4px var(--tab-color);
}
.stats-tab .tab-photo {
  width: 28px; height: 28px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--tab-color);
}
.stats-tab .tab-name { font-size: 13px; letter-spacing: 1px; }

/* hero */
.profile-hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 10%, var(--p-glow, rgba(34,211,238,0.18)), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 28px 24px;
  text-align: center;
  overflow: hidden;
}
.hero-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid var(--p-color, #22d3ee);
  box-shadow: 0 0 34px var(--p-glow, rgba(34,211,238,0.5));
  animation: heroAvatarIn 0.6s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes heroAvatarIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.hero-name { font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.hero-title {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-yellow);
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 6px;
  min-height: 10px;
}
.hero-badge {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
  animation: heroBadgeFloat 3.4s ease-in-out infinite;
  animation-delay: var(--i, 0s);
}
@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.hero-badges-empty { color: var(--ink-dim); font-size: 13px; letter-spacing: 1px; }

.hero-facts {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.fact { text-align: center; }
.fact .num { display: block; font-size: 24px; font-weight: 900; color: var(--neon-cyan); }
.fact .num.fire { color: #fb923c; text-shadow: 0 0 14px rgba(251,146,60,0.55); }
.fact .lbl { font-size: 11px; letter-spacing: 2px; color: var(--ink-dim); text-transform: uppercase; }
.hero-title .title-chip { font-size: 14px; letter-spacing: 3px; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* collection wall */
.section-heading {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 34px 0 14px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.coll-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px 8px 10px;
  text-align: center;
}
.coll-item img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.coll-item.locked img { filter: grayscale(1) brightness(0.42); }
.coll-item .nm { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; margin-top: 6px; }
.coll-item.locked .nm { color: var(--ink-dim); }
.coll-item .sub { font-size: 10px; color: var(--ink-dim); margin-top: 3px; }
.coll-item.owned { border-color: rgba(74,222,128,0.35); }

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 6px 6px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  width: var(--pct, 0%);
}

/* achievements */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.ach-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.ach-card.unlocked {
  border-color: rgba(250,204,21,0.5);
  background: rgba(250,204,21,0.05);
  box-shadow: 0 0 18px rgba(250,204,21,0.1);
}
.ach-card.unlocked .ach-emoji { animation: achPop 2.6s ease-in-out infinite; }
@keyframes achPop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18) rotate(-5deg); }
}
.ach-emoji { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.ach-card:not(.unlocked) .ach-emoji { filter: grayscale(0.8) brightness(0.7); }
.ach-body { flex: 1; min-width: 0; }
.ach-name { font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.ach-desc { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.ach-grants { font-size: 10px; color: var(--neon-cyan); margin-top: 5px; letter-spacing: 0.5px; }
.ach-done { font-size: 11px; font-weight: 900; color: var(--neon-yellow); letter-spacing: 2px; margin-top: 6px; }
.ach-progress { font-size: 10px; color: var(--ink-dim); margin-top: 3px; }
.ach-card .progress-track { margin: 8px 0 0; }

/* per-game record strip */
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.record-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
}
.record-card .emoji { font-size: 26px; }
.record-card .g-name { font-size: 12px; font-weight: 800; }
.record-card .g-line { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.record-card .g-wins { margin-left: auto; font-size: 20px; font-weight: 900; color: var(--neon-green); }
