.profile-page { border-top: 1px solid var(--line); min-height: calc(100vh - var(--header)); }
.profile-signed-out { padding: 48px var(--site-gutter); }
.profile-signed-out h1 {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -0.02em;
}
.packs-sign-in {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
}
.packs-sign-in p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.packs-sign-in button {
  min-height: 44px;
  padding: 8px 16px;
  color: var(--paper);
  background: var(--background);
  border: 1px solid var(--paper);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.packs-sign-in button:hover { border-color: var(--yellow); color: var(--yellow); }

.profile-workspace {
  --paper: #f3f3df;
  --muted: #b8c3b0;
  --faint: #8c977f;
  --acid: #f3fa35;
  --gold: #f2c45c;
  --ink: #080a08;
  width: min(var(--site-frame-width), 100%);
  padding: 28px var(--site-gutter) 72px;
}
.profile-band {
  background:
    radial-gradient(55% 140% at 0 0, #f2c45c1f 0%, #f3fa350a 40%, #0000 70%),
    radial-gradient(120% 90% at 50% 0, #1c2618 0%, #080a08 72%);
  border: 1px solid #f3f3df1a;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px 28px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px #000, inset 0 1px #f3f3df14;
}
.profile-band:before {
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #f3f3df05 0 1px, #0000 1px 72px);
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#000, #0000 85%);
  mask-image: linear-gradient(#000, #0000 85%);
}
.profile-band > * { min-width: 0; position: relative; }
.profile-band-identity { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 64px;
  height: 64px;
  color: var(--muted);
  background: #f3f3df0a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px #f3f3df24;
  overflow: hidden;
}
.profile-avatar .player-avatar { width: 100%; height: 100%; border: 0; font-size: 28px; display: grid; place-items: center; font-weight: 800; }
.profile-handle {
  overflow-wrap: anywhere;
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 0.9;
}
.profile-edit {
  background: transparent;
  color: var(--paper);
  border: 1px solid #f3f3df33;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 14px;
}
.profile-edit:hover { border-color: var(--acid); color: var(--acid); }
.profile-band-counts { display: flex; gap: 8px; margin: 0; }
.profile-band-counts > div {
  background: #f3f3df0a;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 96px;
  padding: 12px 14px 10px;
  box-shadow: inset 0 0 0 1px #f3f3df12;
}
.profile-band-counts dd {
  color: var(--paper);
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  order: -1;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 0.9;
}
.profile-band-counts dt {
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}
.profile-sections { margin-top: 12px; padding-block: 10px; position: sticky; top: var(--header); z-index: 3; background: #080a08; }
.profile-section-nav {
  background: #f3f3df08;
  border-radius: 14px;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px #f3f3df14;
}
.profile-section-nav button {
  min-height: 42px;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 800;
}
.profile-section-nav button:hover { color: var(--paper); }
.profile-section-nav button[aria-selected="true"] { background: var(--acid); color: #080a08; }
.profile-main { min-width: 0; padding: 22px 0 0; }
.profile-section-heading h2 {
  color: var(--paper);
  font-family: var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 800;
  line-height: 0.9;
}
.profile-section-heading p { color: var(--muted); margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.profile-state {
  background:
    radial-gradient(70% 90% at 15% 0, #f3fa3512, #0000 60%),
    radial-gradient(120% 90% at 50% 0, #1c2618, #080a08 75%);
  border: 1px solid #f3f3df14;
  border-radius: 24px;
  max-width: 760px;
  margin-top: 28px;
  padding: 36px 34px 38px;
}
.profile-state h3 {
  color: var(--paper);
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 0.95;
}
.profile-state p { max-width: 48ch; color: var(--muted); margin: 14px 0 24px; font-size: 15px; line-height: 1.55; }
.profile-primary, .profile-secondary {
  min-height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.profile-primary { background: var(--acid); color: #080a08; border: 0; }
.profile-primary:hover { background: #dfe92b; }
.profile-secondary { color: var(--paper); background: #f3f3df0a; border: 1px solid #f3f3df33; }
.profile-secondary:hover { border-color: #f3f3df80; }
.profile-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.profile-collection figure { margin: 0; }
.profile-collection img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(0 18px 22px #000a);
  background: #050705;
}
.profile-collection figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0 0;
}
.profile-collection strong {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.profile-collection small { color: var(--muted); font-size: 13px; }
.profile-pack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #f3f3df1a;
  border-radius: 18px;
  background: linear-gradient(160deg, #f3f3df0b, #f3f3df03 60%);
}
.profile-pack-row strong {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 800;
}
.profile-pack-row p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.profile-account { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) {
  .profile-workspace { padding: 18px var(--site-gutter) 48px; }
  .profile-band { border-radius: 20px; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .profile-avatar { width: 44px; height: 44px; }
  .profile-handle { font-size: 32px; }
  .profile-section-nav { width: 100%; display: flex; }
  .profile-section-nav button { flex: 1; padding: 0 8px; font-size: 15px; }
  .packs-sign-in { flex-direction: column; align-items: flex-start; }
}
