:root {
    --bg-1: #0d111a;
    --bg-2: #101f2f;
    --bg-3: #16273b;
    --text-main: #ebf2ff;
    --text-soft: #9db2d1;
    --line: rgba(146, 180, 221, 0.28);
    --surface: rgba(17, 27, 43, 0.7);
    --surface-strong: rgba(20, 35, 56, 0.92);
    --accent: #4fd1c5;
    --accent-soft: rgba(79, 209, 197, 0.22);
    --warning: #ffb454;
}

* {
    box-sizing: border-box;
}

body.app-shell {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 10% 15%, rgba(79, 209, 197, 0.14), transparent 32%),
        radial-gradient(circle at 85% 8%, rgba(255, 180, 84, 0.12), transparent 28%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2) 42%, var(--bg-3));
}

.orb {
    position: fixed;
    z-index: 0;
    width: 32vmax;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    animation: drift 12s ease-in-out infinite alternate;
}

.orb-a {
    top: -8vmax;
    right: -10vmax;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.52), transparent 68%);
}

.orb-b {
    left: -12vmax;
    bottom: -14vmax;
    background: radial-gradient(circle, rgba(255, 180, 84, 0.44), transparent 68%);
    animation-delay: 1.8s;
}

.site-header,
main {
    position: relative;
    z-index: 1;
}

.glass-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 36, 57, 0.78), rgba(13, 21, 34, 0.78));
    border-radius: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.site-nav {
    animation: reveal 450ms ease-out;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #042e32;
    background: linear-gradient(135deg, var(--accent), #7af8ec);
}

.brand-text {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-block {
    animation: reveal 520ms ease-out;
}

.eyebrow {
    color: var(--warning);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    font-weight: 700;
}

.hero-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.8rem, 2.4vw + 1rem, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 1.02rem;
    max-width: 70ch;
}

.section-label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    color: var(--text-main);
    background: var(--surface-strong);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem var(--accent-soft);
}

.hero-picker-list {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(14, 24, 38, 0.8);
}

.hero-picker-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 0;
    border-bottom: 1px solid rgba(163, 195, 232, 0.16);
    background: transparent;
    color: var(--text-main);
    padding: 0.72rem 0.9rem;
    text-align: left;
}

.hero-picker-item:last-child {
    border-bottom: 0;
}

.hero-picker-item:hover {
    background: rgba(79, 209, 197, 0.12);
}

.hero-picker-item small {
    color: var(--text-soft);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-picker-item-active {
    background: rgba(79, 209, 197, 0.2);
    box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.45);
}

.hero-picker-empty {
    padding: 0.9rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.map-banner {
    min-height: 170px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 19, 30, 0.62);
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center center;
}

#all-compo-link .badge {
    font-size: 0.78rem;
    border: 1px solid rgba(183, 214, 255, 0.34);
    color: #d7e6ff;
    background: rgba(26, 44, 66, 0.95);
    text-decoration: none;
    padding: 0.56rem 0.8rem;
}

.compo-type {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1.2rem;
    background: var(--surface);
    animation: reveal 360ms ease-out;
}

.compo-type h3 {
    font-family: "Sora", sans-serif;
    letter-spacing: 0.02em;
}

.compo-type h4 {
    margin-top: 0.85rem;
    color: var(--text-soft);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.compo-jump-panel {
    animation: reveal 340ms ease-out;
}

.compo-jump-link {
    border-color: rgba(163, 195, 232, 0.35);
    color: var(--text-main);
    background: rgba(21, 33, 52, 0.78);
}

.compo-jump-link:hover {
    border-color: rgba(79, 209, 197, 0.75);
    color: #e9fdff;
}

.compo-style-block {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--surface);
    animation: reveal 360ms ease-out;
    scroll-margin-top: 1.3rem;
    overflow: hidden;
}

.compo-style-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.compo-style-head h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    letter-spacing: 0.02em;
}

.compo-style-count {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.compo-role-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
    min-width: 0;
}

.compo-role-lane {
    border: 1px solid rgba(163, 195, 232, 0.22);
    border-radius: 0.85rem;
    padding: 0.65rem;
    background: rgba(11, 24, 38, 0.42);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.compo-role-lane .compo-heroes {
    overflow-x: scroll;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 0.55rem;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 248, 236, 0.55) rgba(21, 33, 52, 0.35);
}

.compo-role-lane .compo-hero {
    flex: 0 0 auto;
}

.compo-role-lane .compo-heroes::-webkit-scrollbar {
    height: 8px;
}

.compo-role-lane .compo-heroes::-webkit-scrollbar-track {
    background: rgba(21, 33, 52, 0.35);
    border-radius: 999px;
}

.compo-role-lane .compo-heroes::-webkit-scrollbar-thumb {
    background: rgba(122, 248, 236, 0.55);
    border-radius: 999px;
}

.compo-role-lane h4 {
    margin: 0 0 0.45rem;
    color: var(--text-soft);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.compo-style-poke {
    box-shadow: inset 0 0 0 1px rgba(88, 180, 255, 0.35);
}

.compo-style-rush {
    box-shadow: inset 0 0 0 1px rgba(255, 176, 87, 0.35);
}

.compo-style-dive {
    box-shadow: inset 0 0 0 1px rgba(120, 243, 190, 0.35);
}

.compo-heroes {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.2rem 0.2rem 0.5rem;
}

.compo-hero {
    min-width: 138px;
    border: 1px solid rgba(159, 193, 255, 0.28);
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(11, 24, 38, 0.88);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.hero-link-card {
    text-decoration: none;
    color: inherit;
}

.compo-hero:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 209, 197, 0.75);
}

.compo-hero img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.compo-hero p {
    margin: 0;
    padding: 0.42rem 0.52rem 0.5rem;
    font-size: 0.82rem;
    text-align: center;
    color: #def2ff;
}

.compo-hero-missing {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    background: rgba(27, 42, 63, 0.9);
}

#player-header img {
    border: 2px solid rgba(174, 214, 255, 0.35);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.player-context .badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.recent-searches-title {
    color: var(--text-soft);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.recent-tag-btn {
    border-color: var(--line);
    background: rgba(23, 38, 59, 0.78);
    color: var(--text-main);
}

.recent-tag-btn:hover {
    border-color: rgba(79, 209, 197, 0.75);
    background: rgba(33, 53, 80, 0.88);
    color: #e9fdff;
}

#player-role > div {
    animation: reveal 360ms ease-out;
}

#player-role > div > div {
    border: 1px solid var(--line) !important;
    background: var(--surface);
}

.player-role-inline-stats {
    color: var(--text-soft);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.player-season-inline-stats {
    color: var(--text-soft);
    font-size: 0.94rem;
    letter-spacing: 0.02em;
}

.player-season-inline-stats strong {
    color: var(--text-main);
    font-family: "Sora", sans-serif;
    font-size: 0.98rem;
}

.top-winrate-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    padding: 1rem;
    height: 100%;
}

.top-winrate-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-soft);
    margin-bottom: 0.6rem;
}

.top-winrate-hero {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.top-winrate-hero.hero-inline-link {
    text-decoration: none;
    color: inherit;
}

.top-winrate-hero img {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(174, 214, 255, 0.3);
}

.top-winrate-name {
    font-weight: 700;
    font-size: 1rem;
}

.top-winrate-value {
    font-family: "Sora", sans-serif;
    color: #7af8ec;
    font-size: 1.35rem;
    line-height: 1;
}

.top-winrate-sub {
    margin-top: 0.35rem;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.summary-stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.34rem 0;
    border-top: 1px solid rgba(163, 195, 232, 0.16);
}

.summary-stat-line:first-of-type {
    border-top: 0;
}

.summary-stat-line span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.summary-stat-line strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.insight-hero-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    padding: 0.9rem;
    height: 100%;
}

.insight-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.insight-tier {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warning);
    font-weight: 700;
}

.insight-winrate {
    font-family: "Sora", sans-serif;
    color: #7af8ec;
    font-size: 1.2rem;
}

.insight-role {
    color: var(--text-soft);
    text-transform: capitalize;
    font-size: 0.84rem;
}

.insight-stats {
    margin-top: 0.4rem;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.map-stat-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--surface);
    animation: reveal 360ms ease-out;
}

.map-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.map-rank {
    display: inline-flex;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.map-name {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
}

.map-pick-share {
    font-family: "Sora", sans-serif;
    color: #7af8ec;
    font-size: 0.95rem;
}

.map-subline {
    margin-top: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.map-subline a {
    color: #9edcff;
    text-decoration: none;
}

.map-subline a:hover {
    color: #d5f1ff;
}

.archetype-grid {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archetype-chip {
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(21, 33, 52, 0.78);
}

.archetype-chip span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.archetype-chip strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    color: #d5f3ff;
}

.archetype-chip.is-dominant {
    box-shadow: 0 0 0 2px rgba(122, 248, 236, 0.42) inset;
    border-color: rgba(122, 248, 236, 0.6);
}

.map-archetype-poke.is-dominant {
    background: linear-gradient(180deg, rgba(88, 180, 255, 0.24), rgba(21, 33, 52, 0.78));
}

.map-archetype-rush.is-dominant {
    background: linear-gradient(180deg, rgba(255, 176, 87, 0.24), rgba(21, 33, 52, 0.78));
}

.map-archetype-dive.is-dominant {
    background: linear-gradient(180deg, rgba(120, 243, 190, 0.24), rgba(21, 33, 52, 0.78));
}

.map-style-highlight {
    margin-top: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 33, 52, 0.78);
    text-decoration: none;
}

.map-style-highlight span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.map-style-highlight strong {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    color: #d5f3ff;
}

.map-style-highlight.map-archetype-poke {
    border-color: rgba(88, 180, 255, 0.52);
    background: linear-gradient(180deg, rgba(88, 180, 255, 0.24), rgba(21, 33, 52, 0.78));
}

.map-style-highlight.map-archetype-rush {
    border-color: rgba(255, 176, 87, 0.52);
    background: linear-gradient(180deg, rgba(255, 176, 87, 0.24), rgba(21, 33, 52, 0.78));
}

.map-style-highlight.map-archetype-dive {
    border-color: rgba(120, 243, 190, 0.52);
    background: linear-gradient(180deg, rgba(120, 243, 190, 0.24), rgba(21, 33, 52, 0.78));
}

.map-style-highlight:hover {
    border-color: rgba(79, 209, 197, 0.72);
    filter: brightness(1.04);
}

.tier-block,
.most-played-block {
    margin-top: 0.95rem;
}

.tier-block h4,
.most-played-block h4 {
    margin: 0 0 0.55rem;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(163, 195, 232, 0.2);
    border-radius: 0.7rem;
    padding: 0.42rem 0.5rem;
    margin-bottom: 0.42rem;
}

.tier-row-role-tank {
    border-color: rgba(255, 183, 107, 0.42);
    background: rgba(255, 183, 107, 0.1);
}

.tier-row-role-damage {
    border-color: rgba(255, 120, 120, 0.42);
    background: rgba(255, 120, 120, 0.1);
}

.tier-row-role-support {
    border-color: rgba(122, 248, 236, 0.42);
    background: rgba(122, 248, 236, 0.1);
}

.tier-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.55rem;
    border-radius: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
}

.tier-s .tier-pill,
.tier-pill.tier-s {
    background: #ffd166;
    color: #3b2a00;
}

.tier-a .tier-pill,
.tier-pill.tier-a {
    background: #ff9f6e;
    color: #3f1400;
}

.tier-b .tier-pill,
.tier-pill.tier-b {
    background: #7eb6ff;
    color: #081d46;
}

.tier-hero-name {
    font-weight: 700;
    line-height: 1.1;
}

.hero-inline-link {
    color: inherit;
    text-decoration: none;
}

.hero-inline-link:hover {
    color: #e9fdff;
}

.tier-hero-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tier-winrate {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.tier-empty {
    color: var(--text-soft);
    font-size: 0.79rem;
}

.map-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.map-hero-chip {
    border: 1px solid rgba(163, 195, 232, 0.3);
    background: rgba(21, 33, 52, 0.78);
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    font-size: 0.79rem;
}

.hero-inline-chip {
    text-decoration: none;
    color: inherit;
}

.hero-inline-chip:hover {
    border-color: rgba(79, 209, 197, 0.72);
    color: #e9fdff;
}

.hero-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
}

.hero-profile-card,
.hero-vitals-panel,
.hero-fit-panel,
.hero-perks-panel,
.hero-counters-panel,
.hero-abilities-panel,
.hero-story-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.hero-profile-card {
    padding: 1rem;
}

.hero-profile-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hero-portrait-lg {
    width: 180px;
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(174, 214, 255, 0.3);
    object-fit: cover;
}

.hero-badge-row .badge,
.hero-meta-row .badge {
    font-weight: 600;
}

.hero-story-card {
    padding: 1rem;
}

.hero-story-card h3,
.hero-vitals-panel h3,
.hero-fit-panel h3,
.hero-perks-panel h3,
.hero-counters-panel h3,
.hero-abilities-panel h3 {
    margin: 0 0 0.75rem;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.hero-story-card p,
.hero-ability-card p {
    margin: 0;
    color: var(--text-soft);
}

.hero-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-fit-panel,
.hero-vitals-panel,
.hero-perks-panel,
.hero-counters-panel,
.hero-abilities-panel {
    padding: 1rem;
}

.hero-counters-grid {
    display: grid;
    gap: 0.65rem;
}

.hero-counter-row {
    border: 1px solid rgba(163, 195, 232, 0.22);
    border-radius: 0.8rem;
    padding: 0.6rem;
    background: rgba(11, 24, 38, 0.4);
}

.hero-counter-tank {
    border-color: rgba(88, 169, 255, 0.45);
    background: rgba(88, 169, 255, 0.12);
}

.hero-counter-dps {
    border-color: rgba(255, 120, 120, 0.45);
    background: rgba(255, 120, 120, 0.12);
}

.hero-counter-support {
    border-color: rgba(255, 189, 88, 0.45);
    background: rgba(255, 189, 88, 0.12);
}

.hero-counter-role {
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.45rem;
}

.hero-counter-tank .hero-counter-role {
    color: #8fc7ff;
}

.hero-counter-dps .hero-counter-role {
    color: #ff9a9a;
}

.hero-counter-support .hero-counter-role {
    color: #ffd58f;
}

.hero-counter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-counter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(163, 195, 232, 0.26);
    border-radius: 999px;
    padding: 0.18rem 0.52rem 0.18rem 0.18rem;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(16, 30, 47, 0.68);
}

.hero-counter-tank .hero-counter-chip {
    border-color: rgba(88, 169, 255, 0.45);
}

.hero-counter-dps .hero-counter-chip {
    border-color: rgba(255, 120, 120, 0.45);
}

.hero-counter-support .hero-counter-chip {
    border-color: rgba(255, 189, 88, 0.45);
}

.hero-counter-chip img {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
}

.hero-counter-chip span {
    font-size: 0.77rem;
}

.hero-counter-chip strong {
    font-size: 0.72rem;
    color: var(--warning);
}

.hero-counter-empty {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-vitals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hero-vital-card {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.75rem;
    background: rgba(13, 24, 37, 0.62);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-vital-card span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-soft);
}

.hero-vital-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
}

.hero-vital-health {
    border-color: rgba(88, 233, 156, 0.5);
}

.hero-vital-armor {
    border-color: rgba(255, 189, 88, 0.5);
}

.hero-vital-shields {
    border-color: rgba(120, 169, 255, 0.5);
}

.hero-vital-total {
    border-color: rgba(173, 191, 215, 0.5);
}

.hero-perks-grid {
    display: grid;
    gap: 0.75rem;
}

.hero-perks-section + .hero-perks-section {
    margin-top: 0.9rem;
}

.hero-perks-section h4 {
    margin: 0 0 0.6rem;
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

.hero-perk-card {
    border: 1px solid rgba(163, 195, 232, 0.22);
    border-radius: 0.85rem;
    padding: 0.85rem;
    background: rgba(11, 24, 38, 0.42);
}

.hero-perk-card-top {
    border-color: rgba(255, 180, 84, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 180, 84, 0.25) inset;
}

.hero-perk-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.hero-perk-head img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.hero-perk-head h4 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
}

.hero-perk-percent {
    margin-left: auto;
    border: 1px solid rgba(79, 209, 197, 0.5);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #9df6ef;
    background: rgba(19, 54, 69, 0.62);
}

.hero-perk-recommended {
    margin: 0 0 0.4rem;
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-perk-description {
    margin: 0;
    color: var(--text-soft);
}

.hero-fit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.hero-fit-card {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-fit-card span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.hero-fit-card strong {
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.hero-fit-poke {
    background: linear-gradient(180deg, rgba(88, 180, 255, 0.18), rgba(21, 33, 52, 0.78));
}

.hero-fit-rush {
    background: linear-gradient(180deg, rgba(255, 176, 87, 0.18), rgba(21, 33, 52, 0.78));
}

.hero-fit-dive {
    background: linear-gradient(180deg, rgba(120, 243, 190, 0.18), rgba(21, 33, 52, 0.78));
}

.hero-abilities-grid {
    display: grid;
    gap: 0.75rem;
}

.hero-ability-card {
    border: 1px solid rgba(163, 195, 232, 0.22);
    border-radius: 0.85rem;
    padding: 0.85rem;
    background: rgba(11, 24, 38, 0.42);
}

.hero-ability-head {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.hero-ability-head img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.hero-ability-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-family: "Sora", sans-serif;
}

.map-hero-chip small {
    color: var(--text-soft);
}

.maps-role-filter .btn {
    border-color: rgba(163, 195, 232, 0.35);
    color: var(--text-main);
    background: rgba(21, 33, 52, 0.78);
}

.maps-role-filter .btn:hover {
    border-color: rgba(79, 209, 197, 0.75);
    color: #e9fdff;
}

.maps-role-filter .btn.active {
    border-color: rgba(79, 209, 197, 0.9);
    background: rgba(79, 209, 197, 0.22);
    color: #d9ffff;
}

#myTable_wrapper {
    color: var(--text-main);
}

#myTable,
table.dataTable {
    border-color: var(--line) !important;
}

table.dataTable thead th {
    color: #d6f5f2;
    background: rgba(23, 43, 66, 0.96);
    border-bottom: 1px solid var(--line) !important;
}

table.dataTable tbody td {
    background: rgba(15, 24, 38, 0.66);
    color: var(--text-main);
}

table.dataTable.stripe > tbody > tr.odd > *,
table.dataTable.display > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px rgba(79, 209, 197, 0.04);
}

.dataTables_length select,
.dataTables_filter input {
    color: var(--text-main) !important;
    border: 1px solid var(--line) !important;
    background: var(--surface-strong) !important;
    border-radius: 0.5rem;
}

.dataTables_paginate .paginate_button {
    color: var(--text-main) !important;
    border-radius: 0.45rem !important;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    from {
        transform: translateY(-10px) scale(1);
    }

    to {
        transform: translateY(10px) scale(1.08);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .map-banner {
        min-height: 130px;
    }

    .compo-hero {
        min-width: 120px;
    }

    .map-stat-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .archetype-grid {
        grid-template-columns: 1fr;
    }

    .map-subline {
        flex-direction: column;
        align-items: flex-start;
    }

    .compo-role-grid {
        grid-template-columns: 1fr;
    }

    .hero-page-grid {
        grid-template-columns: 1fr;
    }

    .hero-profile-top {
        flex-direction: column;
    }

    .hero-fit-grid {
        grid-template-columns: 1fr;
    }

    .hero-vitals-grid {
        grid-template-columns: 1fr;
    }
}
