/* Commander HQ — canonical profile hero (/profile.html) */
.hq-wrap { margin-bottom: 18px; }
.hq-card {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(22,199,132,.45);
  background: #0c1424;
  box-shadow: 0 0 0 1px rgba(22,199,132,.08), 0 24px 64px rgba(0,0,0,.55), 0 0 80px rgba(22,199,132,.12);
}
.hq-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 0% 0%, rgba(22,199,132,.22), transparent 50%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(56,189,248,.12), transparent 45%);
}
.hq-head {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 0; gap: 12px;
}
.hq-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #4ade80; text-shadow: 0 0 24px rgba(74,222,128,.5); }
.hq-play-btn {
  font-size: 12px; font-weight: 800; padding: 8px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #1ed987, #16c784); color: #021a0e; text-decoration: none;
  box-shadow: 0 4px 20px rgba(22,199,132,.45); transition: transform .15s, box-shadow .15s;
}
.hq-play-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(22,199,132,.6); }
.hq-hero {
  position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center; padding: 16px 20px 20px;
}
.hq-identity { display: flex; align-items: center; gap: 14px; }
.hq-avatar-wrap { position: relative; flex-shrink: 0; }
.hq-avatar-ring {
  width: 76px; height: 76px; border-radius: 50%; padding: 3px;
  background: linear-gradient(145deg, #4ade80, #16c784, #38bdf8);
  box-shadow: 0 0 28px rgba(22,199,132,.4);
}
.hq-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: #021a0e;
}
.hq-lvl-badge {
  position: absolute; bottom: -4px; right: -4px;
  min-width: 36px; padding: 3px 7px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border: 2px solid #0c1424; box-shadow: 0 4px 12px rgba(0,0,0,.4);
  font-size: 10px; font-weight: 900; color: #021a0e; line-height: 1.1;
}
.hq-lvl-badge span { display: block; font-size: 14px; font-weight: 900; }
.hq-title { font-size: 1.75rem; font-weight: 900; color: #f8fafc; margin: 0; letter-spacing: -.03em; line-height: 1; }
.hq-title em { font-style: normal; color: #4ade80; }
.hq-user { font-size: 13px; color: #94a3b8; margin-top: 5px; font-weight: 600; }
.hq-xp-block { margin-top: 12px; max-width: 420px; }
.hq-xp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hq-xp-now { font-size: 13px; font-weight: 800; color: #f1f5f9; font-family: ui-monospace, monospace; }
.hq-xp-track { height: 12px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hq-xp-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0d9668, #16c784, #6ee7a0, #16c784);
  background-size: 200% 100%;
  animation: hq-xp-flow 3s linear infinite;
  box-shadow: 0 0 16px rgba(22,199,132,.6);
  transition: width .4s ease;
}
@keyframes hq-xp-flow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.hq-modes-col { display: flex; flex-direction: column; gap: 8px; min-width: 148px; }
.hq-mode-card {
  padding: 10px 14px; border-radius: 12px; text-align: right;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  transition: border-color .15s, transform .15s;
}
.hq-mode-card:hover { border-color: rgba(22,199,132,.35); transform: translateX(-2px); }
.hq-mode-card.is-best { border-color: rgba(251,191,36,.4); background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(0,0,0,.2)); }
.hq-mode-name { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.hq-mode-val { font-size: 1.15rem; font-weight: 900; margin-top: 2px; }
.hq-mode-val.muted { color: #475569; font-size: 1rem; }
.hq-stats-row {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 0 20px 18px; border-top: 1px solid rgba(255,255,255,.05);
  margin-top: -4px; padding-top: 14px;
}
.hq-stat {
  text-align: center; padding: 12px 8px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
}
.hq-stat-val { font-size: 1.5rem; font-weight: 900; color: #f8fafc; line-height: 1; }
.hq-stat-lbl { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-top: 5px; }
.hq-social { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.hq-pill {
  font-size: 11px; font-weight: 700; color: #cbd5e1; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(22,199,132,.25); background: rgba(22,199,132,.08); text-decoration: none;
}
.hq-pill b { color: #fff; }
.hq-skel {
  height: 280px; border-radius: 20px;
  background: linear-gradient(90deg,#131d32 25%,#1e2d4a 50%,#131d32 75%);
  background-size: 200% 100%; animation: hq-shimmer 1.4s infinite;
  border: 1px solid rgba(22,199,132,.2);
}
@keyframes hq-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

@media (max-width: 900px) {
  .hq-hero { grid-template-columns: 1fr; text-align: center; }
  .hq-identity { justify-content: center; }
  .hq-modes-col { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: 0; }
  .hq-mode-card { flex: 1; min-width: 100px; text-align: center; }
  .hq-xp-block { max-width: none; margin-left: auto; margin-right: auto; }
  .hq-stats-row { grid-template-columns: repeat(2, 1fr); }
}
