/* M3-03 (Vault L4): player profile screen. Uses the hub page's materials (premium-pages.css). */
.home-profile-avatar.has-avatar-image { overflow: hidden; padding: 0; background: #1b1f45; }
.home-profile-avatar.has-avatar-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin: clamp(26px, 4vw, 52px) 0 14px;
  padding: clamp(22px, 3.2vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  box-shadow: 0 28px 65px rgba(2,2,23,.35), inset 0 1px rgba(255,255,255,.12);
  color: #fff;
}
.profile-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,8,30,.55), rgba(7,8,30,.05) 60%, rgba(7,8,30,.4)); }
.profile-card > * { position: relative; z-index: 1; }

/* Banner treatments (ids match the Locker's banner items). */
.banner-arena-blue { background: radial-gradient(circle at 85% 20%, rgba(96,182,255,.45), transparent 45%), linear-gradient(120deg, #173a8c, #1e88e5 55%, #0e1b4d); }
.banner-neon-champion { background: radial-gradient(circle at 80% 80%, rgba(98,232,255,.5), transparent 42%), radial-gradient(circle at 15% 10%, rgba(255,64,200,.42), transparent 40%), linear-gradient(130deg, #1a0f3d, #2a1068 50%, #07123a); }
.banner-spark-pioneer { background: radial-gradient(circle at 82% 25%, rgba(255,214,64,.55), transparent 42%), linear-gradient(125deg, #5a2306, #e0701b 52%, #2b0f05); }

.profile-card-avatar { width: clamp(104px, 12vw, 148px); aspect-ratio: 1; overflow: hidden; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(9,11,38,.7); box-shadow: 0 0 0 8px rgba(243,255,32,.14), 0 18px 40px rgba(0,0,0,.35); }
.profile-card-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.profile-card-copy { min-width: 0; }
.profile-card-copy h1 { margin: 12px 0 6px; color: #fff; white-space: normal; overflow-wrap: anywhere; font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 950; letter-spacing: -.05em; line-height: .98; text-transform: uppercase; text-shadow: 0 8px 24px rgba(0,0,0,.3); }
.profile-card-copy small { color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 700; }
.profile-card-copy .hub-pill { color: #f3ff20; border-color: rgba(243,255,32,.5); }

.profile-level { padding: 18px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(9,11,38,.62); backdrop-filter: blur(12px); }
.profile-level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-level-head span { color: #f3ff20; font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.profile-level-head strong { font-size: 2.6rem; font-weight: 950; letter-spacing: -.05em; line-height: 1; }
.profile-xp { height: 10px; margin: 12px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.profile-xp i { display: block; min-width: 4px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3ff20, #9dff6a); }
.profile-level small { color: rgba(255,255,255,.7); font-size: .74rem; font-weight: 700; }

.profile-stats { margin-bottom: 34px; }
.profile-stats > div { min-height: 150px; }
.profile-stats strong { margin-top: 18px; }

.profile-editor { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(13,14,44,.82); backdrop-filter: blur(14px); }
.profile-field { display: grid; gap: 8px; max-width: 420px; }
.profile-field span, .profile-choices legend { color: #d2cbff; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.profile-field input { min-height: 50px; padding: 0 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(5,6,26,.7); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; }
.profile-field input:focus { outline: 3px solid #f3ff20; outline-offset: 2px; }
.profile-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-choices legend { margin-bottom: 10px; padding: 0; }
.profile-choices > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.profile-choice { position: relative; display: block; cursor: pointer; }
.profile-choice input { position: absolute; opacity: 0; pointer-events: none; }
.profile-choice-body { display: grid; gap: 4px; height: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.04); transition: border-color .15s, background .15s, transform .15s; }
.profile-choice-body img { width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: rgba(9,11,38,.8); }
.profile-choice-body strong { color: #fff; font-size: .88rem; font-weight: 900; }
.profile-choice-body small { color: rgba(255,255,255,.6); font-size: .72rem; line-height: 1.35; }
.profile-banner-swatch { display: block; height: 38px; margin-bottom: 6px; border-radius: 9px; }
.profile-choice:hover .profile-choice-body { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.profile-choice input:checked + .profile-choice-body { border-color: #f3ff20; background: rgba(243,255,32,.1); box-shadow: inset 0 0 0 1px #f3ff20; }
.profile-choice input:focus-visible + .profile-choice-body { outline: 3px solid #f3ff20; outline-offset: 2px; }
.profile-choice.is-locked { cursor: not-allowed; }
.profile-choice.is-locked .profile-choice-body { opacity: .5; transform: none; }
.profile-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.profile-save-row .hub-primary { min-height: 52px; padding: 0 26px; border-radius: 12px; cursor: pointer; font-size: .85rem; font-weight: 950; text-transform: uppercase; }
.profile-save-row .hub-primary:disabled { cursor: progress; opacity: .65; }
.profile-message { min-height: 1.2em; color: rgba(255,255,255,.75); font-size: .86rem; font-weight: 700; }
.profile-message.is-success { color: #9dff6a; }
.profile-message.is-error { color: #ff8f9f; }

.profile-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-showcase-slot { display: grid; place-content: center; gap: 6px; min-height: 150px; border: 1px dashed rgba(255,255,255,.3); border-radius: 18px; background: rgba(13,14,44,.55); text-align: center; }
.profile-showcase-slot span { color: #f3ff20; font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.profile-showcase-slot strong { color: rgba(255,255,255,.62); font-size: 1rem; font-weight: 800; }

.profile-status { display: grid; justify-items: center; gap: 14px; max-width: 520px; margin: clamp(48px, 9vw, 120px) auto; padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(13,14,44,.82); color: #fff; text-align: center; }
.profile-status p { color: rgba(255,255,255,.72); line-height: 1.5; }
.profile-status .hub-primary { min-height: 48px; padding: 0 22px; border-radius: 12px; cursor: pointer; font-weight: 950; text-transform: uppercase; }

@media (max-width: 860px) {
  .profile-card { grid-template-columns: auto minmax(0, 1fr); }
  .profile-level { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .profile-card { grid-template-columns: 1fr; justify-items: start; }
  .profile-showcase { grid-template-columns: 1fr; }
  .profile-showcase-slot { min-height: 90px; }
  .profile-choices > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-choice-body { transition: none; }
  .profile-choice:hover .profile-choice-body { transform: none; }
}
