@font-face {
    font-family: Fredoka;
    src: url("/user/herois-fantasia/fredoka.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

.hero-player-panel,
.hero-payments {
    --portal-background: #0b142c;
    --portal-ink: #eef3ff;
    --portal-muted: #b4c4e0;
    --portal-gold: #ffe1a0;
    --portal-line: #b98d536e;
    color-scheme: dark;
    color: var(--portal-ink);
    background: radial-gradient(ellipse at 50% 0%, #203663, transparent 680px), var(--portal-background);
    font-family: Fredoka, system-ui, sans-serif;
}

.portal-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 20px;
    min-height: 155px;
    padding: clamp(17px, 4vw, 35px);
    border: 1px solid #bc955f;
    border-radius: 16px;
    background:
        linear-gradient(90deg, #131e3dfc, #151d3ad9 46%, #15224726),
        url("/user/herois-rodape/castelo-960.webp") center 42% / cover;
    box-shadow: inset 0 0 0 3px #e2ae632b, 0 10px 28px #050a2163;
}

.portal-intro h1 {
    margin: 0;
    color: var(--portal-gold);
    font: 650 clamp(1.6rem, 4.5vw, 2.7rem)/1.06 Fredoka, system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.portal-intro p { margin: 8px 0 0; color: #d6e3ff; }
.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #ffe6a6;
    border-radius: 9px;
    background: linear-gradient(150deg, #ffefb2, #f4be60 62%, #d89139);
    color: #2d1b07;
    font-weight: 620;
    text-decoration: none;
    text-align: center;
}
.portal-button:hover { filter: brightness(1.1); }
.portal-button--quiet {
    border-color: var(--portal-line);
    background: #1e2e52;
    color: var(--portal-gold);
}
:is(.hero-player-panel, .hero-payments) :is(a, button):focus-visible {
    outline: 2px solid #ffe6a6;
    outline-offset: 3px;
}

.hero-player-panel > nav,
.hero-player-panel > nav:hover {
    position: sticky;
    padding-block: 4px;
    border-bottom: 1px solid var(--portal-line);
    background: #0d162df2;
    box-shadow: 0 8px 22px #050b2280;
}
.hero-player-panel .nav-container {
    min-height: 62px;
    height: auto;
    gap: 10px;
}
.hero-player-panel .nav-left { flex-shrink: 0; }
.hero-player-panel .nav-right { min-width: 0; }
.hero-player-panel .nav-brand {
    display: block;
    margin-left: 12px;
}
.hero-player-panel .nav-brand img {
    display: block;
    width: clamp(62px, 12vw, 98px);
    height: auto;
}
.hero-player-panel .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: #19294c;
    color: var(--portal-gold);
    font-size: 1.1rem;
    cursor: pointer;
}
.hero-player-panel .menu-toggle::before {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
    content: "";
}
.hero-player-panel .menu-callout,
.hero-player-panel #particles-js { display: none; }
.hero-player-panel .nav-right .sodu-display {
    min-width: 0;
    max-width: 100%;
    padding: 7px 11px;
    overflow: auto;
    border: 1px solid #7c9ace42;
    border-radius: 10px;
    background: #182644;
    color: var(--portal-ink);
    font-size: .83rem;
}
.hero-player-panel .sodu-display .username { color: var(--portal-muted) !important; }
.hero-player-panel .coin-icon { color: var(--portal-gold); animation: none; }
.hero-player-panel main { flex: 1; min-width: 0; padding-top: 0; }
.hero-player-panel .player-dashboard {
    width: min(100% - 26px, 1080px);
    margin: clamp(14px, 3vw, 32px) auto 40px;
}
.hero-player-panel .portal-intro { margin-bottom: clamp(12px, 2vw, 21px); }
.hero-player-panel .info-card {
    min-width: 0;
    border-color: #8ca8d14f;
    border-radius: 15px;
    background: linear-gradient(155deg, #1d2d51, #111b34);
    box-shadow: 0 10px 26px #050b256b;
}
.hero-player-panel .info-card-head { border-bottom-color: #8aa0c333; }
.hero-player-panel .info-card-head i {
    flex-shrink: 0;
    border-radius: 9px;
    background: #2d3f67;
    color: var(--portal-gold);
}
.hero-player-panel .info-card-head i::before {
    width: 11px;
    height: 11px;
    border: 1px solid #f7dc9d;
    background: linear-gradient(135deg, #fff1bf, #bb8038);
    transform: rotate(45deg);
    content: "";
}
.hero-player-panel .info-card-head h2,
.hero-player-panel .player-id { color: var(--portal-gold); }
.hero-player-panel .info-row,
.hero-player-panel .player-stat,
.hero-player-panel .empty-player { color: var(--portal-muted); font-weight: 450; }
.hero-player-panel .info-row { border-bottom-color: #8aa0c333; }
.hero-player-panel .info-row strong,
.hero-player-panel .player-name,
.hero-player-panel .player-stat strong {
    color: var(--portal-ink);
    overflow-wrap: anywhere;
}
.hero-player-panel .player-item {
    border-color: #8aa0c333;
    background: #14223d;
}
.hero-player-panel .player-stat { background: #203052; }
.hero-player-panel .player-stat strong { font-weight: 560; }
.hero-player-panel .nav-backdrop { background: #050c20ae; }
.hero-player-panel #navLinks.nav-links {
    visibility: hidden;
    border-radius: 0 16px 16px 0;
    border-color: var(--portal-line);
    background: #101c36;
    color: var(--portal-ink);
    box-shadow: 12px 0 44px #050a1bcf;
}
.hero-player-panel #navLinks.nav-links.visible { visibility: visible; }
.hero-player-panel .drawer-head { border-color: var(--portal-line); }
.hero-player-panel .drawer-logo {
    width: 108px;
    height: 61px;
    flex-basis: 108px;
    border: 0;
    background: none;
    box-shadow: none;
}
.hero-player-panel .drawer-logo::before { content: none; }
.hero-player-panel .drawer-logo-img { width: 100%; height: auto; filter: none; }
.hero-player-panel .drawer-close {
    border: 1px solid var(--portal-line);
    background: #213052;
    color: var(--portal-gold);
    font-size: 1.3rem;
}
.hero-player-panel .drawer-group-title,
.hero-player-panel .drawer-group-title i { color: var(--portal-gold); }
.hero-player-panel #navLinks.nav-links .drawer-primary,
.hero-player-panel #navLinks.nav-links .drawer-secondary {
    color: var(--portal-gold) !important;
    border: 1px solid var(--portal-line) !important;
    background: #1c2e51 !important;
    box-shadow: none !important;
}
.hero-player-panel #navLinks.nav-links :is(.drawer-menu-link, .drawer-menu-button) { color: #e7efff !important; }
.hero-player-panel #navLinks.nav-links :is(.drawer-menu-link, .drawer-menu-button):hover {
    background: #2b3c64 !important;
    color: var(--portal-gold) !important;
}

.portal-footer {
    margin-top: 0;
    padding: 16px 14px;
    border-top: 1px solid var(--portal-line);
    background: #0a132b;
    box-shadow: none;
    color: var(--portal-muted);
    font-size: .85rem;
    text-align: center;
}

.hero-payments {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}
.hero-payments * { box-sizing: border-box; }
.payment-header,
.payment-shell {
    width: min(100% - 28px, 960px);
    margin-inline: auto;
}
.payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 14px;
}
.payment-logo img { display: block; width: 106px; height: auto; }
.payment-shell { flex: 1; margin-block: 12px 38px; }
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.payment-card {
    padding: clamp(15px, 3vw, 25px);
    border: 1px solid #6f8db563;
    border-radius: 14px;
    background: linear-gradient(145deg, #1e2f52, #131e38);
}
.payment-card h2 { margin: 0 0 10px; color: var(--portal-gold); font-size: 1.25rem; font-weight: 610; }
.payment-card p { color: var(--portal-muted); line-height: 1.45; }
.payment-details { margin: 0 0 15px; }
.payment-details div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #6f8db542;
}
.payment-details dt { color: var(--portal-muted); }
.payment-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.payment-symbol,
.resource-art.payments > span {
    display: block;
    width: 40px;
    height: 27px;
    aspect-ratio: auto;
    margin-bottom: 12px;
    border: 1px solid #fff0bd;
    border-radius: 5px;
    background:
        linear-gradient(transparent 24%, #51331c 24% 36%, transparent 36%),
        linear-gradient(145deg, #ffefb4, #e9ad52 58%, #a8642c);
    box-shadow: 0 3px 11px #0c1228b3;
}
.resource-art.payments { --glow: #5e5bae; }
.resource-art.payments > span {
    width: clamp(35px, 9vw, 92px);
    height: auto;
    aspect-ratio: 1.58;
    margin: 0;
    transform: rotate(-8deg);
}

.status.success.portal-login-success {
    gap: 9px;
    border-color: #a4d8ab8a;
    background: #223f46;
    color: #dbffe7;
}
.portal-login-success::before {
    content: "✓";
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #c4eacb;
    color: #21413b;
}

@media (max-width: 760px) {
    .hero-player-panel .dashboard-grid,
    .payment-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-player-panel .player-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-player-panel .nav-right .sodu-display { font-size: .75rem; }
    .portal-intro { min-height: 130px; }
}

@media (max-width: 560px) {
    .hero-player-panel .nav-left {
        display: grid;
        width: 100%;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }
    .hero-player-panel .nav-brand { justify-self: center; margin-left: 0; }
    .hero-player-panel .nav-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-player-panel #navLinks.nav-links { transition: none; }
}
