.perfil-icon {
    --icon-size: 28px;
    display: inline-grid;
    flex: 0 0 auto;
    width: var(--icon-size);
    height: var(--icon-size);
    place-items: center;
    vertical-align: middle;
}
.perfil-icon::before {
    width: var(--icon-w, 100%);
    height: var(--icon-h, 100%);
    background-image: url("simbolos.webp");
    background-position: var(--icon-position);
    background-size: var(--icon-atlas);
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 3px #080d19aa);
    content: "";
}

/* Public home */
.site-header .perfil-menu-trigger {
    width: 46px;
    height: 44px;
    border: 1px solid #8fbee871;
    border-radius: 13px 5px;
    background: radial-gradient(ellipse at 50% 35%, #394f7599, transparent), #152238;
}
.site-header .perfil-menu-trigger > .perfil-icon {
    --icon-size: 32px;
    position: relative;
    width: var(--icon-size);
    height: var(--icon-size);
    background: none;
    box-shadow: none;
    transition: transform .2s ease;
}
.site-header .menu[open] .perfil-menu-trigger > .perfil-icon,
.site-header .perfil-menu-trigger:hover > .perfil-icon { transform: scale(1.1); }
.site-header .menu-links {
    width: min(265px, calc(100vw - 32px));
    padding: 6px;
    overflow: auto;
    max-height: min(350px, 65dvh);
    border: 1px solid #88b8dc62;
    border-radius: 13px;
    background: #142136;
    box-shadow: 0 16px 34px #0009;
}
.site-header .menu-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 9px;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
}
.site-header .menu-links a + a { margin-top: 2px; }
.site-header .header-account .perfil-icon { --icon-size: 19px; }
.hero + .realm .perfil-resource-art > .perfil-icon {
    --icon-size: clamp(37px, 9vw, 103px);
    width: var(--icon-size);
    height: var(--icon-size);
    aspect-ratio: auto;
    display: inline-grid;
    margin: 0;
    border: 0;
    box-shadow: none;
    transform: none;
    background: none;
    filter: drop-shadow(0 3px 5px #080d21b3);
    transition: transform .25s ease;
}
.resource-events .perfil-resource-art { --glow: #795822; }
.perfil-resource-art.treasure { --glow: #603871; }
.perfil-resource-art.payments { --glow: #69512d; }
.resource:is(:hover,:focus-visible) .perfil-resource-art .perfil-icon { transform: translateY(-3px) scale(1.05); }

/* Player profile and character information */
.hero-player-panel .nav-container { position: relative; }
.hero-player-panel .nav-left .nav-brand { margin-inline: 0; }
.hero-player-panel .player-dashboard.perfil-v2 { --perfil-cyan: #a4dfef; --perfil-muted: #a8b9cc; }
.hero-player-panel .perfil-v2 .chama-profile {
    min-height: 292px;
    align-content: center;
    padding: clamp(38px, 6vw, 72px) 20px 31px;
    overflow: hidden;
    border: 1px solid #84b8db66;
    border-radius: 24px 8px;
    background:
        radial-gradient(ellipse at 50% 39%, #1b263494 3%, transparent 67%),
        linear-gradient(0deg, #122137 1%, #13213b9c 47%, #15284043),
        url("/user/herois-rodape/arena-herois-960.webp") center 40% / cover,
        #132238;
    box-shadow: inset 0 0 0 4px #b7d6f012, 0 14px 34px #07101888;
}
.hero-player-panel .perfil-v2 .chama-profile::before {
    background: radial-gradient(ellipse at 50% 41%, #93412259, transparent 41%);
}
.perfil-v2 .chama-emblem { margin-bottom: 7px; }
.perfil-v2 .chama-medallion {
    background:
        radial-gradient(circle, #0d1534a0, #3c2419b0),
        url("/user/herois-rodape/arena-herois-960.webp") 50% 35% / 340% auto,
        #221d36;
}
.perfil-v2 .chama-profile .chama-player-name {
    position: relative;
    max-width: 100%;
    padding: 2px 12px 9px;
    margin: 12px 0 0;
    font-size: clamp(1.85rem, 5.3vw, 3.6rem);
    letter-spacing: -.035em;
    line-height: 1.06;
    overflow-wrap: anywhere;
}
.perfil-v2 .chama-player-name::after {
    position: absolute;
    inset: auto 10% 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffbf76 50%, transparent);
    box-shadow: 0 0 13px #ffae66ad;
    transform-origin: center;
    animation: perfil-title-flare 4.6s ease-in-out infinite;
    content: "";
}
@supports (background-clip: text) {
    .perfil-v2 .chama-profile .chama-player-name {
        background: linear-gradient(110deg, #ffd3a1 24%, #fff6d5 38%, #fff 49%, #ffc678 59%, #ffd3a1 75%) 120% 0 / 250% 100%;
        background-clip: text;
        filter: drop-shadow(0 3px 3px #201321);
        animation: chama-name-shine 5.8s ease-in-out infinite;
    }
}
.perfil-recharge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    gap: 9px;
    margin-top: 16px;
    padding: 5px 15px 5px 11px;
    border: 1px solid #ffe0a9;
    border-radius: 13px 5px;
    background: linear-gradient(115deg, #6c3b1f, #b16933 48%, #63391f);
    box-shadow: inset 0 0 0 3px #ffe8bc2b, 0 0 19px #ffaf4d59;
    color: #fff1cb;
    font: 700 1rem/1.15 system-ui, sans-serif;
    text-decoration: none;
    animation: perfil-recharge-glow 3.8s ease-in-out infinite;
}
.perfil-recharge .perfil-icon { --icon-size: 30px; }
.perfil-recharge-arrow { margin-inline-start: 3px; font-size: 1.4rem; }
.perfil-recharge:is(:hover,:focus-visible) { background: linear-gradient(115deg, #824624, #c1783c, #824624); }
@keyframes perfil-title-flare {
    0%, 100% { opacity: .58; transform: scaleX(.58); }
    50% { opacity: 1; transform: scaleX(1); }
}
@keyframes perfil-recharge-glow {
    0%, 100% { box-shadow: inset 0 0 0 3px #ffe8bc2b, 0 0 13px #ffaf4d53; }
    50% { box-shadow: inset 0 0 0 3px #ffe8bc3d, 0 0 30px #ffaf4d96; }
}
.hero-player-panel .perfil-v2 .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 17px;
}
.hero-player-panel .perfil-v2 .dashboard-grid > .info-card {
    padding: clamp(13px, 2.7vw, 23px);
    border: 1px solid #7aa4c65e;
    border-radius: 16px 5px;
    background: linear-gradient(151deg, #213743, #172b36 58%, #162633);
    color: #e5edf5;
    box-shadow: inset 0 0 0 3px #b2c6f00a, 0 12px 26px #08131c56;
}
.hero-player-panel .perfil-v2 .dashboard-grid > .info-card:nth-child(2) {
    border-color: #a392c855;
    background: linear-gradient(135deg, #2e2d47, #202337 69%);
}
.hero-player-panel .perfil-v2 .info-card-head {
    gap: 9px;
    padding: 0 0 10px;
    border: none;
}
.hero-player-panel .perfil-v2 .info-card-head h2,
.hero-player-panel .perfil-v2 .info-card:first-child .info-card-head h2 {
    margin: 0;
    color: #e4e9ff;
    font: 700 clamp(1.29rem, 2.4vw, 1.62rem)/1.15 system-ui, sans-serif;
    letter-spacing: -.035em;
}
.hero-player-panel .perfil-v2 .info-card-head .perfil-icon { --icon-size: 29px; }
.hero-player-panel .perfil-v2 .info-card-body { padding: 0; }
.hero-player-panel .perfil-v2 .info-card:first-child .info-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    gap: 7px;
}
.hero-player-panel .perfil-v2 .info-card:first-child .info-row {
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 3px;
    min-width: 0;
    padding: 9px 11px;
    margin: 0;
    border: 1px solid #89becb2a;
    border-radius: 8px 3px;
    background: #1124319e;
}
.hero-player-panel .perfil-v2 .info-card:first-child .info-row span {
    color: var(--perfil-muted);
    font: 500 .77rem/1.3 system-ui, sans-serif;
}
.hero-player-panel .perfil-v2 .info-card:first-child .info-row strong {
    max-width: 100%;
    color: #e7f4f6;
    font: 650 .95rem/1.35 system-ui, sans-serif;
    text-align: start;
    overflow-wrap: anywhere;
}
.hero-player-panel .perfil-v2 .player-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 11px;
}
.hero-player-panel .perfil-v2 .player-item,
.hero-player-panel .perfil-v2 .player-item + .player-item {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #d9cff62f;
    border-radius: 11px 4px;
    background: #15192cb0;
}
.hero-player-panel .perfil-v2 .player-name { color: #eae3ff; font-family: system-ui, sans-serif; font-size: 1.14rem; }
.hero-player-panel .perfil-v2 .player-id { color: #ccb2f2; }
.hero-player-panel .perfil-v2 .arena-emblems { margin: 11px 0 0; gap: 5px; }
.hero-player-panel .perfil-v2 .arena-emblems .player-stat {
    min-width: 0;
    padding: 8px 4px;
    border: 1px solid #969dd154;
    border-radius: 8px 3px;
    background: linear-gradient(160deg, #373651, #23283d);
    color: #d4d9e9;
    font: 500 .76rem/1.3 system-ui, sans-serif;
}
.hero-player-panel .perfil-v2 .arena-emblems .player-stat strong {
    color: #eee3ff;
    font: 750 clamp(.98rem, 2.5vw, 1.45rem)/1.14 system-ui, sans-serif;
}
.hero-player-panel .perfil-v2 .arena-record { margin-top: 10px; border-color: #c5bade45; }
.hero-player-panel .perfil-v2 .arena-record summary { padding: 9px 2px 0; color: #e2d1fc; }
.hero-player-panel .perfil-v2 .arena-record[open] summary { padding-bottom: 9px; }
.hero-player-panel .perfil-v2 .arena-record .player-stat { background: #292c45; }

@media (max-width: 500px) {
    .hero-player-panel .perfil-v2 .info-card:first-child .info-card-body {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .hero-player-panel .perfil-v2 .info-row:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .perfil-recharge, .perfil-v2 .chama-player-name::after,
    .perfil-v2 .chama-profile .chama-player-name { animation: none; }
    .site-header .perfil-menu-trigger .perfil-icon, .resource .perfil-resource-art .perfil-icon { transition: none; }
}
@media (forced-colors: active) {
    .perfil-v2 .chama-profile .chama-player-name { color: CanvasText; background: none; animation: none; }
}

/* Atlas coordinates */
.perfil-icon-menu { --icon-w: 100.0000%; --icon-h: 85.0746%; --icon-position: 54.08593% 90.81036%; --icon-atlas: 1871.64179% 2200.00000%; }
.perfil-icon-home { --icon-w: 100.0000%; --icon-h: 78.8732%; --icon-position: 35.58749% 79.21536%; --icon-atlas: 1766.19718% 2239.28571%; }
.perfil-icon-download { --icon-w: 81.5385%; --icon-h: 100.0000%; --icon-position: 72.27311% 99.91590%; --icon-atlas: 2366.03774% 1929.23077%; }
.perfil-icon-shield { --icon-w: 100.0000%; --icon-h: 85.8974%; --icon-position: 37.24490% 57.45577%; --icon-atlas: 1607.69231% 1871.64179%; }
.perfil-icon-book { --icon-w: 100.0000%; --icon-h: 94.1176%; --icon-position: 35.66610% 90.75630%; --icon-atlas: 1844.11765% 1959.37500%; }
.perfil-icon-scroll { --icon-w: 96.2264%; --icon-h: 100.0000%; --icon-position: 19.11887% 54.62115%; --icon-atlas: 2458.82353% 2366.03774%; }
.perfil-icon-events { --icon-w: 100.0000%; --icon-h: 93.3333%; --icon-position: 30.44953% 57.43243%; --icon-atlas: 1672.00000% 1791.42857%; }
.perfil-icon-gift { --icon-w: 90.0000%; --icon-h: 100.0000%; --icon-position: 50.88161% 100.00000%; --icon-atlas: 1990.47619% 1791.42857%; }
.perfil-icon-coins { --icon-w: 100.0000%; --icon-h: 95.9459%; --icon-position: 0.00000% 86.47506%; --icon-atlas: 1694.59459% 1766.19718%; }
.perfil-icon-account { --icon-w: 95.2381%; --icon-h: 100.0000%; --icon-position: 18.34171% 79.59698%; --icon-atlas: 2090.00000% 1990.47619%; }
