@import url("player-achievements.css?v=1795219269");
/*
 * player-profile.css — public player profile. Uses the platform components
 * (.page-heading, .card, .metric-grid from player-platform.css); only the layout
 * of the hero (avatar + identity) and the loadout list are defined here.
 */
.pp-back { display: inline-block; margin-bottom: 14px; font-size: 11px; letter-spacing: .6px; }

/* ---- Hero: half-bust avatar without background + identity card ---- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 20px; align-items: end; margin-bottom: 20px; }
.pp-avatar { position: relative; height: clamp(340px, 46vw, 520px); }
.pp-avatar .character-viewer { height: 100%; background: transparent; border: 0; box-shadow: none; padding: 0; }
/* stage without the viewer backdrop (player-profile.js renames .viewer-stage to .pp-avatar-stage) */
.pp-avatar-stage { position: relative; height: 100%; touch-action: pan-y; }
.pp-avatar-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.pp-avatar-stage .viewer-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; background: none; }
.pp-avatar-stage .viewer-loading[hidden] { display: none; }
/* Viewer controls are not part of an avatar: the profile shows the character only. */
.pp-avatar .viewer-masthead, .pp-avatar .viewer-toolbar, .pp-avatar .viewer-options, .pp-avatar .viewer-hint, .pp-avatar .viewer-note { display: none; }
/* soft fade at the waist so the half bust has no hard cut */
.pp-avatar canvas { mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }

.pp-identity { display: grid; gap: 14px; }
.pp-identity .portal-profile-clan { margin: 0; }
.pp-grade { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.pp-grade > div { display: grid; gap: 3px; flex: 1; min-width: 0; }
.pp-grade small { color: var(--muted); font-size: 11px; }
.pp-grade b { font: 600 20px/1.1 Barlow, sans-serif; }
.pp-grade span { color: var(--muted); font-size: 12px; }

/* ---- Metrics: 6 public counters ---- */
.pp-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---- Loadout ---- */
.pp-loadout { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; margin: 16px 0 0; background: var(--line); border-top: 1px solid var(--line); }
.pp-loadout > div { margin: 0; padding: 13px 20px; background: var(--panel); }
.pp-loadout dt { font-size: 10px; letter-spacing: .6px; color: var(--muted); }
.pp-loadout dd { margin: 4px 0 0; font-weight: 600; }

@media (max-width: 1100px) { .pp-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pp-hero { grid-template-columns: 1fr; gap: 0; }
  .pp-avatar { height: 360px; }
  .pp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Arena layout (25/11/2026) ----
 * Under /arena the profile loads without player-platform.css: frame, cards and metrics are defined here,
 * matching the clan page (.portal-wrap). Achievements come from the @import at the top. */
body.ar-body .pp { --panel: #24292c; --panel-soft: #ffffff08; --line: #a7b1b13b; box-sizing: border-box; width: 100%; max-width: 1320px; margin: 0 auto; padding: 40px 36px 70px; background: #1a2023ed; }
body.ar-body .pp .pp-back { color: var(--accent); font-family: var(--mono); text-decoration: none; }
body.ar-body .pp .page-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
body.ar-body .pp .page-heading h1 { display: flex; align-items: center; gap: 12px; margin: 0; font: 34px/1.1 var(--heading); overflow-wrap: anywhere; }
body.ar-body .pp .card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
body.ar-body .pp .section-padding { padding: 22px; }
body.ar-body .pp .card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
body.ar-body .pp .card-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
body.ar-body .pp .metric-grid { display: grid; gap: 12px; }
body.ar-body .pp .metric { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
body.ar-body .pp .metric > div { color: var(--muted); font-size: 11px; letter-spacing: .6px; }
body.ar-body .pp .metric strong { display: block; margin-top: 10px; font-size: 28px; font-weight: 500; line-height: 1; }
body.ar-body .pp .pp-hero { align-items: center; margin-bottom: 0; }
body.ar-body .pp .pp-identity { align-content: start; }
body.ar-body .pp .portal-rank-text b { font-size: 14px; white-space: normal; }
body.ar-body .pp .portal-rank-text small { font-size: 12px; }
body.ar-body .pp .pp-tabs { margin-top: 8px; }
@media (max-width: 1000px) { body.ar-body .pp { padding-inline: 25px; } }
@media (max-width: 760px) {
  body.ar-body .pp { padding: 28px 16px 50px; }
  body.ar-body .pp .page-heading h1 { font-size: 28px; }
  body.ar-body .pp .metric strong { font-size: 24px; }
}
/* r2 25/11/2026 */ body.ar-body .pp .portal-rank>.portal-rank-text{max-width:none}
