/* ==========================================================================
   Very Online · Recomposition Artistica Unificada
   Combina la estetica oscura obsidian/cuero/diamante de Login & Register con
   los marcos esculpidos, crestas, placas y divisores de Season 1 ("poe2/assets").
   Aplica a Rankings, Portal, Cuenta, Tienda, Mercado, Soporte y Temporada.
   ========================================================================== */

@font-face {
    font-family: "Rankings Futura";
    src: url("/account/futura-condensed.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Account Open Sans";
    src: url("/account/open-sans.woff") format("woff");
    font-display: swap;
}

/* ── 1. Tokens y Lienzo Base (Obsidiana + Cuero + Pizarra Tallada) ──────── */

body.season-theme {
    --vo-obsidian: #07080c;
    --vo-slate-deep: #0c0e14;
    --vo-slate-card: #12151e;
    --vo-slate-elevated: #191e2a;
    --vo-ink: #f4efe2;
    --vo-muted: #b6b1a4;
    --vo-muted-2: #8e8a7f;
    --vo-gold: #e6c782;
    --vo-gold-bright: #fff0c7;
    --vo-gold-edge: rgba(216, 179, 102, 0.36);
    --vo-sapphire: #67c4eb;
    --vo-sapphire-edge: rgba(95, 160, 206, 0.34);
    --vo-panel-shadow: 0 18px 40px rgba(0, 0, 0, 0.62);
    --ink: var(--vo-ink);
    --muted: var(--vo-muted);
    --line: var(--vo-gold-edge);
    --season-heading: var(--vo-gold);
    --season-text: var(--vo-ink);
    --season-muted: var(--vo-muted);
    --season-gold: var(--vo-gold);
    --season-edge: var(--vo-gold-edge);
    --season-panel:
        radial-gradient(ellipse at 50% 0%, rgba(103, 196, 235, 0.06), transparent 60%),
        linear-gradient(160deg, rgba(20, 23, 31, 0.94), rgba(9, 11, 16, 0.97));
    color-scheme: dark;
    color: var(--vo-ink);
    font-family: "Account Open Sans", Inter, system-ui, sans-serif;
    background:
        radial-gradient(ellipse 72% 42% at 50% 0%, rgba(212, 173, 99, 0.14), transparent 64%),
        radial-gradient(ellipse 60% 38% at 18% 12%, rgba(64, 128, 176, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(6, 7, 11, 0.72) 0%, rgba(7, 8, 12, 0.94) 36rem, rgba(5, 6, 9, 0.98) 100%),
        var(--site-background, none) center top / cover no-repeat,
        url("/poe2/assets/62fdc8cd9c7e.webp") center top / 900px auto fixed,
        url("/account/leather.jpg") center top / 680px auto fixed,
        var(--vo-obsidian);
}

body.season-theme .site-shell {
    width: 100%;
    max-width: 1440px;
    min-height: 100svh;
    margin-inline: auto;
    overflow-x: clip;
    background:
        linear-gradient(180deg, rgba(10, 12, 17, 0.90), rgba(7, 8, 12, 0.96)),
        url("/poe2/assets/20e56b942ff3.webp") center top / 960px auto repeat,
        url("/account/leather.jpg") center top / 560px auto repeat;
    border-inline: 1px solid rgba(216, 179, 102, 0.18);
    box-shadow: 0 0 96px rgba(0, 0, 0, 0.85);
}

/* ── 2. Cabecera y Navegacion (Estilo Login/Register + Filigrana Season 1) ── */

body.season-theme .portal-masthead {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid rgba(216, 179, 102, 0.34);
    background:
        linear-gradient(180deg, rgba(17, 18, 24, 0.97), rgba(11, 12, 17, 0.94)),
        url("/account/grunge.png") center / 340px auto repeat;
    background-blend-mode: normal, soft-light;
}

body.season-theme .portal-masthead::after {
    content: "";
    position: absolute;
    inset: auto 0 -10px 0;
    height: 24px;
    background: url("/poe2/assets/75b155b31a45.webp") center / min(1440px, 100%) 100% no-repeat;
    opacity: 0.78;
    pointer-events: none;
}

body.season-theme .portal-brand-row,
body.season-theme .vo-destination-nav,
body.season-theme .portal-grid,
body.season-theme .site-shell > footer,
body.season-theme .site-banner,
body.season-theme .server-overview {
    width: min(100% - 2 * clamp(1rem, 3vw, 2.5rem), 84rem);
    margin-inline: auto;
}

body.season-theme .portal-brand strong {
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.08em;
    color: var(--vo-gold-bright);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

body.season-theme .portal-brand small {
    color: var(--vo-muted);
    font-family: "Account Open Sans", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

body.season-theme :is(.portal-utility, .season-subnav) a {
    font-family: "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vo-muted);
    transition: color 0.18s ease;
}

body.season-theme :is(.portal-utility, .season-subnav) a:is(:hover, :focus-visible, .selected) {
    color: var(--vo-gold-bright);
    text-decoration: none;
}

/* Placas de piedra y oro de Season 1 para la navegacion principal */
body.season-theme .vo-destination-nav {
    gap: clamp(0.45rem, 1vw, 0.85rem);
    padding-block: 0.25rem 1.25rem;
}

body.season-theme .vo-destination-nav a {
    position: relative;
    min-height: 3.15rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(212, 173, 99, 0.34);
    border-radius: 0.35rem;
    border-image: url("/poe2/assets/bc072c4e1745.webp") 22 66 fill / 12px 26px / 2px;
    background: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    color: #e6d5af;
    font: 400 clamp(0.95rem, 1.4vw, 1.15rem)/1.1 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000, 0 0 10px rgba(0, 0, 0, 0.85);
    transition: filter 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

body.season-theme .vo-destination-nav a::before {
    content: none;
}

body.season-theme .vo-destination-nav a:is(:hover, :focus-visible, [aria-current="page"]) {
    border-image-source: url("/poe2/assets/bc36f06e8789.webp");
    color: #fff6dc;
    filter: brightness(1.1);
    text-decoration: none;
}

body.season-theme .vo-destination-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    rotate: 45deg;
    border-top: 2px solid var(--vo-gold);
    border-left: 2px solid var(--vo-gold);
    background: #14161d;
    pointer-events: none;
}

/* Subnav estilo Account Tabs de Login/Register */
body.season-theme .season-subnav {
    justify-content: center;
    gap: 0.25rem clamp(0.6rem, 2vw, 1.8rem);
    padding: 0 1rem;
    border-bottom: 2px solid #8d7c57;
    background:
        linear-gradient(180deg, rgba(19, 20, 26, 0.96), rgba(12, 13, 18, 0.98)),
        url("/account/grunge.png") center / 300px auto repeat;
    background-blend-mode: normal, soft-light;
}

body.season-theme .season-subnav a {
    position: relative;
    padding: 0.72rem 0.65rem;
    font-size: 1.05rem;
    border-bottom: 0;
}

body.season-theme .season-subnav a.selected {
    background: transparent;
    color: #fff;
}

body.season-theme .season-subnav a.selected::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    rotate: 45deg;
    border-top: 2px solid var(--vo-gold);
    border-left: 2px solid var(--vo-gold);
    background: #14151b;
}

body.season-theme .portal-grid {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

body.season-theme .portal-grid > main,
body.season-theme .portal-grid > aside,
body.portal-rankings .character-dashboard > *,
body.portal-rankings .character-archive,
body.portal-rankings .character-archive-panels,
body.portal-rankings .character-archive-panels > [role="tabpanel"] {
    min-width: 0;
    max-width: 100%;
}

body.season-theme .portal-grid.portal-grid-wide {
    grid-template-columns: minmax(0, 1fr);
}

/* ── 3. Hero Banner Artistico con Cresta y Marco 9-Slice ─────────────────── */

body.season-theme .intro,
body.season-theme .portal-page-heading,
body.season-theme .server-overview-intro {
    position: relative;
    isolation: isolate;
    min-height: 13.5rem;
    margin: 0 0 1.65rem;
    padding: clamp(1.75rem, 3.6vw, 3rem) clamp(1.4rem, 3.4vw, 2.75rem);
    border: 1px solid rgba(216, 179, 102, 0.55);
    border-image: url("/poe2/assets/a913b33e21f3.webp") 120 260 / 32px 64px / 7px 9px;
    border-radius: 0.15rem;
    background:
        linear-gradient(96deg, rgba(7, 8, 12, 0.97) 0%, rgba(8, 10, 15, 0.88) 44%, rgba(8, 10, 15, 0.44) 76%, rgba(8, 10, 15, 0.72) 100%),
        linear-gradient(0deg, rgba(7, 8, 12, 0.86), transparent 56%),
        var(--rank-hero-art, url("/poe2/uploads/9c13bbd3-1781-4a62-b61f-f921d1935429.webp")) 70% 28% / cover no-repeat,
        url("/account/grunge.png") center / 320px auto repeat,
        #090b10;
    background-blend-mode: normal, normal, normal, soft-light, normal;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.75),
        0 18px 42px rgba(0, 0, 0, 0.55);
}

body.season-theme .intro:has(> h2.portal-news-heading) {
    min-height: auto;
    padding: 0.85rem 1.25rem;
    margin-block: 1.5rem 1rem;
    border-image: none;
    border-bottom: 1px solid var(--vo-gold-edge);
    background:
        linear-gradient(90deg, rgba(16, 19, 26, 0.94), rgba(10, 12, 16, 0.7)),
        url("/account/grunge.png") center / 280px;
}

body.season-theme .rank-hero-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.season-theme .rank-hero-crest {
    position: absolute;
    top: -18px;
    left: 50%;
    width: min(260px, 64%);
    aspect-ratio: 337 / 93;
    transform: translateX(-50%);
    background: url("/poe2/assets/4818f37e165b.webp") center / contain no-repeat;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 3;
}

body.season-theme .intro .eyebrow,
body.season-theme .portal-page-heading .portal-page-icon,
body.season-theme .server-overview-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.45rem;
    color: var(--vo-gold);
    font: 600 0.85rem/1.2 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px #000;
}

body.season-theme :is(.intro h1, .portal-page-heading h1, .server-overview-intro h2) {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    font: 700 clamp(2rem, 4.2vw, 3.35rem)/1.03 "Cinzel", "Rankings Futura", Georgia, serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vo-gold-bright);
    background-image: url("/poe2/assets/6bb99e5926dd.webp");
    background-repeat: repeat;
    background-size: 3.5rem;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.95));
    text-wrap: balance;
}

body.season-theme .intro > p:not(.eyebrow),
body.season-theme .portal-page-heading p,
body.season-theme .server-overview-copy > p:not(.server-overview-kicker) {
    max-width: 58ch;
    margin: 0.7rem 0 0;
    color: #e4ded0;
    font-size: 0.96rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px #000;
}

/* ── 4. Pestanas de Ranking (Placas Esculpidas de Piedra y Oro) ─────────── */

body.season-theme .rank-tabs,
body.season-theme .rank-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin: 0 0 1.4rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(216, 179, 102, 0.24);
}

body.season-theme .rank-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(212, 173, 99, 0.28);
    border-radius: 0.28rem;
    border-image: url("/poe2/assets/bc072c4e1745.webp") 22 66 fill / 11px 24px / 1px;
    background: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
    color: #dad0bc;
    font: 400 1.05rem/1 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000;
    transition: filter 0.16s ease, color 0.16s ease;
}

body.season-theme .rank-tab:is(:hover, :focus-visible) {
    border-image-source: url("/poe2/assets/bc36f06e8789.webp");
    color: #fff5d6;
    filter: brightness(1.12);
    text-decoration: none;
}

body.season-theme .rank-tab.is-active,
body.season-theme .rank-tab[aria-selected="true"],
body.season-theme .rank-tab[aria-current="page"] {
    border-image-source: url("/poe2/assets/bc36f06e8789.webp");
    color: #fff9e6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(235, 194, 107, 0.45);
}

body.season-theme .rank-tab.is-active::after,
body.season-theme .rank-tab[aria-selected="true"]::after,
body.season-theme .rank-tab[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 18% -3px 18%;
    border-block-end: 2px solid var(--vo-gold-bright);
    pointer-events: none;
}

/* ── 5. Marcos Esculpidos para Tarjetas, Filtros y Sidebar ──────────────── */

body.season-theme :is(
    .card,
    .rank-filter,
    .character-panel,
    .char-stat,
    .fort-card,
    .rank-summary-card,
    .portal-empty-state,
    .portal-ticket,
    .donation-method,
    .server-module,
    .server-facts > div
) {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(212, 173, 99, 0.34);
    border-image: url("/poe2/assets/2ddf9fdee2c8.webp") 120 240 / 26px 48px / 4px 5px;
    border-radius: 0.2rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(103, 196, 235, 0.06), transparent 58%),
        linear-gradient(155deg, rgba(19, 23, 31, 0.94), rgba(9, 11, 16, 0.97)),
        url("/account/grunge.png") center / 340px auto repeat;
    background-blend-mode: normal, normal, soft-light;
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 184, 0.08),
        var(--vo-panel-shadow);
    color: var(--vo-ink);
}

body.season-theme .card::after,
body.season-theme .character-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6px;
    border: 1px solid rgba(216, 179, 102, 0.12);
    pointer-events: none;
}

body.season-theme .char-stat {
    border-image: none;
    border-color: rgba(103, 196, 235, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.35);
    padding: 0.95rem 1.05rem;
}

body.season-theme .char-stat-label,
body.season-theme .acct-stat-label {
    color: var(--vo-gold);
    font: 600 0.78rem/1.2 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.season-theme .char-stat strong,
body.season-theme .acct-stat strong {
    color: var(--vo-gold-bright);
    font: 400 1.75rem/1.15 "Rankings Futura", "Cinzel", Georgia, serif;
}

body.season-theme .acct-stat {
    border: 1px solid rgba(103, 196, 235, 0.25);
    background: linear-gradient(160deg, rgba(22, 27, 36, 0.9), rgba(11, 13, 19, 0.95));
}

body.season-theme :is(.card h2, .card h3, .section-title h2, .character-panel h2, .portal-empty-state h2, .server-module h2) {
    color: var(--vo-gold-bright);
    font-family: "Rankings Futura", "Cinzel", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

body.season-theme .section-title {
    position: relative;
    margin: 1.75rem 0 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 0;
}

body.season-theme .section-title::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 9px;
    background: url("/poe2/assets/a412fd194f91.webp") center / 100% 28px no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

body.season-theme .section-title h2 {
    font-size: 1.45rem;
}

/* ── 6. Botones Ornate RPG y Formularios Glass Oscuro ───────────────────── */

body.season-theme :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(212, 173, 99, 0.44);
    border-radius: 0.15rem;
    background:
        linear-gradient(180deg, rgba(16, 19, 26, 0.92), rgba(8, 10, 14, 0.96)),
        url("/account/grunge.png") center / 240px;
    background-blend-mode: normal, soft-light;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.65);
    color: #f6f1e4;
    font: 0.95rem/1.4 "Account Open Sans", Inter, sans-serif;
}

body.season-theme :is(input, select, textarea):focus-visible,
body.season-theme :is(a, button):focus-visible {
    outline: 2px solid #f0d28e;
    outline-offset: 3px;
}

body.season-theme :is(.button, button:not(.quiet, .eq-slot, .inv-cell, .item-popup-close, .character-archive-tab, .rank-tab)) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.55rem 1.45rem;
    border: 1px solid rgba(212, 173, 99, 0.5);
    border-radius: 0.2rem;
    border-image: url("/replica/assets/poe2-button-frame@2x.webp") 34 116 fill / 12px 30px / 2px 4px;
    background: transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    color: #ffefc7;
    font: 400 1.08rem/1.1 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000;
    transition: filter 0.16s ease, transform 0.16s ease;
}

body.season-theme :is(.button, button:not(.quiet, .eq-slot, .inv-cell, .item-popup-close, .character-archive-tab, .rank-tab)):hover:not(:disabled) {
    filter: brightness(1.16);
    color: #fff;
    text-decoration: none;
}

body.season-theme .button-secondary {
    border-image-source: url("/replica/assets/poe2-button-frame-blue@3x.webp");
    border-image-slice: 52 174 fill;
    border-image-width: 12px 30px;
    color: #dcefff;
}

/* ── 7. Tablas de Rankings (Obsidiana + Acero, Anulando .rank-table-classic) */

body.season-theme .rank-table-wrap,
body.portal-rankings .rank-list {
    overflow: auto;
    border: 1px solid rgba(103, 196, 235, 0.28);
    border-radius: 0.2rem;
    background:
        linear-gradient(180deg, rgba(11, 14, 20, 0.96), rgba(7, 9, 13, 0.98));
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.55), 0 14px 30px rgba(0, 0, 0, 0.48);
    scrollbar-color: #7c673b #0b0d12;
}

body.season-theme .rank-table,
body.portal-rankings .rank-table-classic {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    color: #e7e2d4;
}

body.season-theme .rank-table thead th,
body.portal-rankings .rank-table-classic thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.78rem 0.75rem;
    border-bottom: 1px solid rgba(216, 179, 102, 0.44);
    background:
        linear-gradient(180deg, #1d2330, #11141c),
        url("/account/grunge.png") center / 240px;
    background-blend-mode: normal, soft-light;
    color: #ecd194;
    font: 400 0.95rem/1.15 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

body.season-theme .rank-table thead th.num,
body.portal-rankings .rank-table-classic thead th.num {
    text-align: right;
}

body.season-theme .rank-table tbody td,
body.portal-rankings .rank-table-classic tbody td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(103, 196, 235, 0.10);
    background: rgba(12, 15, 21, 0.92);
    color: #e5dfd1;
}

body.season-theme .rank-table tbody tr:nth-child(odd) td,
body.portal-rankings .rank-table-classic tbody tr:nth-child(odd) td {
    background: rgba(18, 22, 31, 0.88);
}

body.season-theme .rank-table tbody tr:hover td,
body.season-theme .rank-table tbody tr:focus-within td,
body.portal-rankings .rank-table-classic tbody tr:hover td,
body.portal-rankings .rank-table-classic tbody tr:focus-within td {
    background: linear-gradient(90deg, rgba(212, 173, 99, 0.16), rgba(68, 130, 179, 0.12));
}

body.season-theme .rank-table .num,
body.portal-rankings .rank-table-classic .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.season-theme .rank-table .rank-name,
body.portal-rankings .rank-table-classic td a.rank-name {
    color: #f0cf84;
    font: 400 1.05rem/1.2 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.03em;
}

body.season-theme .rank-table .rank-name:hover,
body.portal-rankings .rank-table-classic td a.rank-name:hover {
    color: #fff3d1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body.season-theme .rank-position {
    display: inline-grid;
    place-items: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.35rem;
    border: 1px solid rgba(216, 179, 102, 0.28);
    border-radius: 999px;
    background: #171b25;
    color: #d7c7a0;
    font: 400 0.95rem/1 "Rankings Futura", "Cinzel", Georgia, serif;
}

body.season-theme .rank-position.is-top {
    border-color: #f0cc79;
    background: linear-gradient(145deg, #f3d991, #9c6a23);
    color: #1a1207;
    box-shadow: 0 0 12px rgba(216, 179, 102, 0.35);
}

body.season-theme .pill {
    border: 1px solid rgba(103, 196, 235, 0.32);
    border-radius: 0.15rem;
    background: rgba(24, 34, 48, 0.65);
    color: #cce3f3;
}

body.season-theme .pill-gold {
    border-color: rgba(216, 179, 102, 0.5);
    background: rgba(132, 95, 36, 0.28);
    color: #f4dca1;
}

body.season-theme .pill-online {
    border-color: rgba(98, 196, 146, 0.5);
    background: rgba(39, 114, 78, 0.26);
    color: #a4e4c2;
}

/* ── 8. Ficha de Personaje (3 Columnas: Details | Equipment | Unique Kills) ─ */

body.portal-rankings .character-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr) minmax(0, 1.08fr);
    gap: clamp(0.85rem, 1.5vw, 1.35rem);
    align-items: stretch;
    margin-bottom: 1.65rem;
}

body.portal-rankings .character-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(0.95rem, 1.5vw, 1.25rem);
    border-image: url("/poe2/assets/e79cef601467.webp") 120 240 / 28px 54px / 5px 5px;
}

body.portal-rankings .character-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(216, 179, 102, 0.22);
}

body.portal-rankings .character-panel-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.48rem);
}

/* Columna izquierda: Details (filas alternas inspiradas en la captura) */
body.portal-rankings .character-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

body.portal-rankings .character-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.46rem 0.7rem;
    border-bottom: 1px solid rgba(103, 196, 235, 0.08);
    background: rgba(12, 14, 20, 0.72);
    font-size: 0.84rem;
}

body.portal-rankings .character-facts > div:nth-child(odd) {
    border-inline-start: 2px solid rgba(103, 196, 235, 0.36);
    background: linear-gradient(90deg, rgba(28, 34, 47, 0.88), rgba(16, 20, 28, 0.76));
}

body.portal-rankings .character-facts dt {
    color: #a9b5c7;
}

body.portal-rankings .character-facts dd {
    color: #f4efe2;
    font-weight: 600;
    text-align: right;
}

body.portal-rankings .character-facts dd a {
    color: #6bc4eb;
}

/* Columna central: Escenario de Equipment con marco Season 1 + cresta */
body.portal-rankings .character-panel-equipment {
    border-image: url("/poe2/assets/e7c7cf1c7da2.webp") 160 150 / 44px 40px / 6px 6px;
    background:
        radial-gradient(68% 58% at 50% 48%, rgba(69, 138, 189, 0.20), rgba(14, 18, 28, 0.94) 68%, rgba(7, 9, 13, 0.98) 100%),
        url("/account/grunge.png") center / 280px auto repeat;
    background-blend-mode: normal, soft-light;
}

body.portal-rankings .character-equipment-crest {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 196px;
    aspect-ratio: 330 / 73;
    transform: translateX(-50%);
    background: url("/poe2/assets/4b7c60956080.webp") center / contain no-repeat;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
    pointer-events: none;
    z-index: 3;
}

body.portal-rankings .equipment-stage {
    display: grid;
    place-items: center;
    flex: 1;
    padding: 0.6rem 0.25rem;
    border: 1px solid rgba(103, 196, 235, 0.18);
    border-radius: 0.2rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(92, 168, 224, 0.16), transparent 68%),
        rgba(6, 8, 12, 0.65);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.72);
}

body.portal-rankings .character-panel-equipment .character-hint {
    margin-top: 0.65rem;
    text-align: center;
    color: #9cb0c7;
}

/* Columna derecha: Telemetry + Last Unique Kills */
body.portal-rankings .character-telemetry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

body.portal-rankings .character-telemetry-chip {
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(103, 196, 235, 0.25);
    border-radius: 0.15rem;
    background: linear-gradient(180deg, rgba(24, 30, 42, 0.92), rgba(11, 14, 20, 0.95));
    text-align: center;
}

body.portal-rankings .character-telemetry-chip span {
    display: block;
    color: #9bb1c9;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.portal-rankings .character-telemetry-chip strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--vo-gold-bright);
    font: 400 1.2rem/1.1 "Rankings Futura", "Cinzel", Georgia, serif;
}

body.portal-rankings .character-uniques-wrap {
    flex: 1;
    max-height: 22rem;
    overflow: auto;
}

body.portal-rankings .character-uniques-wrap .rank-table {
    min-width: 0;
    font-size: 0.8rem;
}

body.portal-rankings .character-uniques-wrap .rank-table th,
body.portal-rankings .character-uniques-wrap .rank-table td {
    padding: 0.48rem 0.55rem;
}

/* Panel inferior con pestanas del personaje */
body.portal-rankings .character-archive {
    position: relative;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
}

body.portal-rankings .character-archive::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 9px;
    background: url("/poe2/assets/a412fd194f91.webp") center / 100% 28px no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

body.portal-rankings .character-archive-tablist {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
    padding: 0.25rem 0.1rem 0.85rem;
    scrollbar-color: #7c673b #0b0d12;
}

body.portal-rankings .character-archive-tab {
    flex: none;
    scroll-snap-align: start;
    cursor: pointer;
}

body.portal-rankings .inv-grid {
    border-color: rgba(212, 173, 99, 0.36);
    background: linear-gradient(180deg, #10141c, #080a0f);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.72);
    margin-bottom: 0;
}

body.portal-rankings button.inv-cell {
    border-color: rgba(103, 196, 235, 0.24);
    background: linear-gradient(180deg, #181e2a, #0b0e14);
}

body.portal-rankings button.inv-cell:is(:hover, :focus-visible) {
    border-color: var(--vo-gold);
    box-shadow: 0 0 0 1px rgba(216, 179, 102, 0.4), 0 0 14px rgba(103, 196, 235, 0.28);
}

/* ── 9. Sidebar & Footer ────────────────────────────────────────────────── */

body.season-theme .portal-side .card {
    padding: 1.15rem;
}

body.season-theme .portal-side h2 {
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(216, 179, 102, 0.28);
    color: var(--vo-gold-bright);
    font: 400 1.25rem/1.15 "Rankings Futura", "Cinzel", Georgia, serif;
    letter-spacing: 0.05em;
}

body.season-theme .portal-side .block {
    display: inline-flex;
    width: 100%;
    margin-top: 0.5rem;
}

body.season-theme .portal-side .account-links a,
body.season-theme .portal-side .quick-links a,
body.season-theme .portal-side a:not(.button),
body.season-theme .portal-grid > main a:not(.button, .rank-tab, .button-secondary),
body.season-theme .portal-text-link,
body.season-theme .server-secondary-link {
    color: var(--vo-gold);
}

body.season-theme :is(.portal-side a:not(.button), .portal-grid > main a:not(.button, .rank-tab, .button-secondary)):is(:hover, :focus-visible) {
    color: var(--vo-gold-bright);
    text-decoration: underline;
}

body.season-theme .site-shell > footer {
    margin-top: auto;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(216, 179, 102, 0.28);
    color: var(--vo-muted-2);
}

/* ── 10. Adaptacion Responsiva y Accesibilidad ──────────────────────────── */

@media (max-width: 1140px) {
    body.portal-rankings .character-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
    }

    body.portal-rankings .character-panel-uniques {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body.season-theme .portal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.season-theme .portal-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
}

body.portal-rankings .character-archive-panels .rank-table {
    min-width: 100%;
}

@media (max-width: 640px) {
    html,
    body.season-theme {
        overflow-x: clip;
    }

    body.season-theme {
        background-attachment: scroll;
    }

    body.season-theme .portal-brand-row,
    body.season-theme .vo-destination-nav,
    body.season-theme .portal-grid,
    body.season-theme .site-shell > footer,
    body.season-theme .site-banner,
    body.season-theme .server-overview {
        width: calc(100% - 1.25rem);
        margin-inline: auto;
    }

    body.season-theme .portal-brand-row {
        gap: 0.55rem 0.75rem;
    }

    body.season-theme .portal-utility {
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
    }

    body.season-theme .vo-destination-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        padding-bottom: 0.95rem;
    }

    body.season-theme .vo-destination-nav a {
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.45rem 0.45rem;
        border-image-width: 9px 14px;
        border-image-outset: 0;
        font-size: 0.84rem;
        letter-spacing: 0.025em;
    }

    body.season-theme .season-subnav {
        flex-wrap: wrap;
        gap: 0.15rem 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    body.season-theme .season-subnav a {
        padding: 0.42rem 0.35rem;
        font-size: 0.9rem;
    }

    body.season-theme .intro,
    body.season-theme .portal-page-heading,
    body.season-theme .server-overview-intro {
        min-height: 11rem;
        border-image-width: 22px 36px;
        border-image-outset: 2px;
    }

    body.season-theme :is(.card, .rank-filter, .character-panel, .fort-card, .rank-summary-card) {
        border-image-width: 18px 32px;
        border-image-outset: 1px;
    }

    body.portal-rankings .character-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    body.portal-rankings .character-panel-uniques {
        grid-column: auto;
    }

    body.season-theme .rank-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    body.season-theme .rank-tab {
        flex: none;
    }
}

@media (forced-colors: active) {
    body.season-theme,
    body.season-theme .site-shell,
    body.season-theme .portal-masthead,
    body.season-theme .season-subnav,
    body.season-theme .intro,
    body.season-theme .portal-page-heading,
    body.season-theme .card,
    body.season-theme .rank-filter,
    body.season-theme .character-panel,
    body.season-theme .rank-tab,
    body.season-theme .vo-destination-nav a,
    body.season-theme :is(.button, button:not(.quiet, .eq-slot, .inv-cell, .item-popup-close)) {
        background: Canvas !important;
        color: CanvasText !important;
        border-image: none !important;
        border: 1px solid ButtonText !important;
        box-shadow: none !important;
    }

    body.season-theme :is(.intro h1, .portal-page-heading h1, .server-overview-intro h2) {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: CanvasText !important;
        color: CanvasText !important;
        filter: none !important;
    }

    body.season-theme :is(.rank-tab.is-active, .rank-tab[aria-selected="true"], .rank-tab[aria-current="page"], .vo-destination-nav a[aria-current="page"]) {
        border-color: Highlight !important;
        outline: 2px solid Highlight;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.season-theme *,
    body.season-theme *::before,
    body.season-theme *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
