/* Public profile: the same stage and skills as your own profile, then arena rank, loadout and a pet trophy case. */

.pp { container-type: inline-size; display: grid; gap: 16px; --pp-ink: #22302a; --pp-muted: #6b7a70; --pp-card: #fff; --pp-soft: #f3f5f2; --pp-line: #e3e8e2; --pp-gold: #b7791f; color: var(--pp-ink); }
html[data-theme="dark"] .pp { --pp-ink: #eef0f5; --pp-muted: #aab2bf; --pp-card: #272b34; --pp-soft: #313641; --pp-line: #3a404b; --pp-gold: #e8b35c; }
.pp > .profile-stage, .pp > .profile-skills-sheet { margin: 0; }
.pp-identity { margin: -6px 0 0; color: var(--pp-muted); font-size: 14px; font-weight: 600; text-align: center; }
.pp .profile-skill { cursor: default; }
.pp .profile-skill:hover { background: #f8f8fc; border-color: #e1e1ea; }
html[data-theme="dark"] .pp .profile-skill:hover { background: inherit; }
.pp-card { padding: 18px; border: 1px solid var(--pp-line); border-radius: 22px; background: var(--pp-card); }
.pp-card h2 { margin: 0; font: 700 22px/1.2 var(--serif); }

/* Arena */
.pp-arena { display: flex; align-items: center; gap: 16px; }
.pp-arena img { width: 72px; height: 72px; object-fit: contain; }
.pp-arena span { display: grid; gap: 2px; }
.pp-arena small { color: var(--pp-muted); font-size: 13px; font-weight: 700; }
.pp-arena strong { font: 700 26px/1.1 var(--serif); }
.pp-arena em { color: var(--pp-muted); font-size: 14px; font-style: normal; font-weight: 600; }

/* Loadout */
.pp-slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pp-slot { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; }
.pp-slot-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 86px; margin-bottom: 6px; border-radius: 14px; background: var(--pp-soft); }
.pp-slot-art > img:first-child { width: 64%; height: 64%; object-fit: contain; }
.pp-slot-art .pp-slot-icon { width: 34% !important; height: 34% !important; opacity: .35; }
.pp-slot-art .item-enchantment-badge { position: absolute; inset: auto 4px 4px auto; }
.pp-slot small { color: var(--pp-muted); font-size: 11px; font-weight: 700; }
.pp-slot strong { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pp-slot.is-empty strong { color: var(--pp-muted); font-weight: 600; }
.pp-bonuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pp-line); }
.pp-bonuses span { display: grid; justify-items: center; gap: 2px; }
.pp-bonuses span + span { border-left: 1px solid var(--pp-line); }
.pp-bonuses img { width: 24px; height: 24px; }
.pp-bonuses strong { font-size: 20px; }
.pp-bonuses small { color: var(--pp-muted); font-size: 12.5px; }
.pp-bonuses span:nth-child(1) img { filter: invert(38%) sepia(80%) saturate(900%) hue-rotate(190deg); }
.pp-bonuses span:nth-child(2) img { filter: invert(55%) sepia(90%) saturate(900%) hue-rotate(350deg); }
.pp-bonuses span:nth-child(3) img { filter: invert(30%) sepia(90%) saturate(1800%) hue-rotate(340deg); }
.pp-bonuses span:nth-child(4) img { filter: invert(35%) sepia(60%) saturate(1500%) hue-rotate(250deg); }

/* Pets */
.pp-pets > header { display: flex; align-items: baseline; justify-content: space-between; }
.pp-pets > header span { color: var(--pp-muted); font-size: 13px; font-weight: 700; }
.pp-pet-group { margin-top: 16px; }
.pp-pet-group h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.pp-pet-group h3 span { color: var(--pp-muted); font-size: 12px; }
.pp-pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pp-pet-grid.is-showcase { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pp-pet { display: grid; justify-items: center; gap: 2px; padding: 10px 8px 10px; border: 1px solid var(--pp-line); border-radius: 16px; background: var(--pp-soft); text-align: center; }
.pp-pet > img, .pp-pet > .pet-unillustrated { width: 60px; height: 60px; object-fit: contain; margin-bottom: 4px; }
.pp-pet strong { font-size: 12.5px; line-height: 1.2; }
.pp-pet small { color: var(--pp-muted); font-size: 11px; line-height: 1.25; }
.pp-pet.is-missing { border-style: dashed; background: transparent; }
.pp-pet.is-missing > img { filter: brightness(0); opacity: .12; }
.pp-pet.is-missing strong { color: var(--pp-muted); }
.is-showcase .pp-pet { padding: 14px 10px 12px; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--pp-gold) 16%, var(--pp-card)) 0, var(--pp-card) 70%); border-color: color-mix(in srgb, var(--pp-gold) 30%, var(--pp-line)); }
.is-showcase .pp-pet > img { width: 92px; height: 92px; filter: drop-shadow(0 6px 6px rgba(30, 40, 30, .16)); }
.is-showcase .pp-pet strong { font-size: 14px; }
.is-showcase .pp-pet.kind-trophy small { color: var(--pp-gold); font-weight: 700; }
.pp-pet.is-following { border-color: #2f7a50; box-shadow: inset 0 0 0 1px #2f7a50; }
.pp-pet.is-following small { color: #2f7a50; font-weight: 800; }
html[data-theme="dark"] .pp-pet.is-following { border-color: #6fcf97; box-shadow: inset 0 0 0 1px #6fcf97; }
html[data-theme="dark"] .pp-pet.is-following small { color: #6fcf97; }
html[data-theme="dark"] .pp-pet.is-missing > img { filter: brightness(0) invert(1); opacity: .1; }

@container (max-width: 560px) {
  .pp-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-bonuses strong { font-size: 17px; }
}
