/* FPK Armory: Player profile. All selectors are scoped to this page. */
.vh-profile {
    --vh-bg: #110b08;
    --vh-surface: #1c120d;
    --vh-card: #241810;
    --vh-border: #57351f;
    --vh-orange: #f5a33d;
    --vh-gold: #ffc16a;
    --vh-ink: #fff3e7;
    --vh-muted: #bba695;
    background: radial-gradient(ellipse 65% 370px at 50% 0%, rgba(245,163,61,.09), transparent 80%), var(--vh-bg);
    color: var(--vh-ink);
    min-height: 72vh;
    padding: 35px 0 75px;
}
.vh-profile *, .vh-tooltip * {box-sizing: border-box;}
.vh-profile .vh-container {width: min(1330px, calc(100% - 40px)); margin-inline: auto;}
.vh-profile .vh-back {display: inline-block; color: var(--vh-orange); font-size: 13px; font-weight: 700; text-decoration: none; margin: 0 0 25px;}
.vh-profile .vh-back:hover {color: var(--vh-gold);}
.vh-profile .vh-player-header {display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 28px;}
.vh-profile .vh-eyebrow {color: var(--vh-orange); letter-spacing: .16em; font-size: 11px; font-weight: 800;}
.vh-profile .vh-player-header h1 {font-size: clamp(35px, 5vw, 57px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 9px; color: var(--vh-ink);}
.vh-profile .vh-player-header p {margin: 0; color: var(--vh-muted); font-size: 12px;}
.vh-profile .vh-header-level {display: flex; align-items: center; gap: 14px; padding: 13px 19px; border: 1px solid #79502f; border-radius: 12px; background: #312015;}
.vh-profile .vh-header-level span {font-size: 10px; letter-spacing: .14em; color: #d6aa7e; font-weight: 800;}
.vh-profile .vh-header-level strong {font-size: 33px; line-height: 1; color: var(--vh-gold);}
.vh-profile .vh-panel {background: linear-gradient(160deg, #21160f 0%, #18100c 100%); border: 1px solid var(--vh-border); border-radius: 15px;}
.vh-profile .vh-armory-panel {padding: 27px 28px 30px;}
.vh-profile .vh-section-title {display: flex; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 1px solid rgba(144,94,50,.32); padding-bottom: 15px; margin-bottom: 21px;}
.vh-profile .vh-section-title h2 {font-size: 25px; line-height: 1.2; font-weight: 800; margin: 7px 0 0; color: var(--vh-ink);}
.vh-profile .vh-section-title h2 em {color: var(--vh-gold); font-style: normal;}
.vh-profile .vh-hover-hint {color: #aa9584; font-size: 11px; padding-bottom: 3px;}
.vh-profile .vh-character-layout {display: grid; grid-template-columns: minmax(0,1fr) minmax(180px, 300px) minmax(0,1fr); align-items: stretch; gap: 24px;}
.vh-profile .vh-equipment-column {display: flex; flex-direction: column; gap: 9px; min-width: 0;}
.vh-profile .vh-equipment-column h3, .vh-profile .vh-extra-equipment h3 {margin: 0 0 4px; font-size: 10px; font-weight: 800; letter-spacing: .15em; color: #b69778;}
.vh-profile .vh-slot {appearance: none; display: flex; align-items: center; gap: 12px; border: 1px solid #4d3423; border-radius: 10px; background: #281a12; padding: 9px 11px; text-align: left; min-height: 65px; min-width: 0; color: var(--vh-ink); width: 100%; font: inherit;}
.vh-profile button.vh-slot {cursor: pointer; transition: border-color .18s, background .18s, transform .18s;}
.vh-profile button.vh-slot:hover, .vh-profile button.vh-slot:focus-visible, .vh-profile button.vh-slot.vh-selected {border-color: var(--vh-orange); background: #352216; outline: none; transform: translateY(-1px);}
.vh-profile .vh-slot-image {display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border: 1px solid #755438; border-radius: 9px; background: #130d0a; font-size: 28px; color: #6d5644;}
.vh-profile .vh-slot-image img {display: block; width: 40px; height: 40px; image-rendering: pixelated; object-fit: contain;}
.vh-profile .vh-slot-fallback {font-size: 23px; color: #a98e75;}
.vh-profile .vh-slot-text {display: flex; flex-direction: column; gap: 5px; min-width: 0;}
.vh-profile .vh-slot-text small {font-size: 10px; letter-spacing: .07em; color: #b69e88; text-transform: uppercase;}
.vh-profile .vh-slot-text strong {font-size: 13px; line-height: 1.3; color: #f3e3d1; overflow-wrap: anywhere;}
.vh-profile .vh-slot-empty {opacity: .50; border-style: dashed; background: #1c130e;}
.vh-profile .vh-slot-equipped.rarity-scrappy .vh-slot-image {border-color: #a2a2a2;}
.vh-profile .vh-slot-equipped.rarity-common .vh-slot-image {border-color: #e2e2e2;}
.vh-profile .vh-slot-equipped.rarity-rare .vh-slot-image {border-color: #598aff;}
.vh-profile .vh-slot-equipped.rarity-epic .vh-slot-image {border-color: #e94dff;}
.vh-profile .vh-slot-equipped.rarity-omega .vh-slot-image {border-color: #f6b735;}
.vh-profile .vh-character-center {position: relative; isolation: isolate; display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 475px; padding: 8px 14px 15px; border: 1px solid rgba(116,76,43,.35); border-radius: 12px; background: radial-gradient(ellipse at 50% 45%, rgba(245,163,61,.10), transparent 65%), linear-gradient(180deg, rgba(59,36,23,.27), rgba(20,13,9,.25)); overflow: hidden;}
.vh-profile .vh-character-glow {position: absolute; z-index: -1; width: 190px; height: 290px; left: 50%; top: 42%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(245,163,61,.13); filter: blur(55px); pointer-events: none;}
.vh-profile .vh-character-skin {height: 325px; width: auto; max-width: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 17px 16px rgba(0,0,0,.55));}
.vh-profile .vh-level-track {margin-top: 20px; width: 100%; max-width: 225px; height: 9px; background: #4b3525; border: 1px solid #67432b; overflow: hidden; border-radius: 99px;}
.vh-profile .vh-level-track span {display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e47c1d, #ffd28c);}
.vh-profile .vh-character-progress {margin: 9px 0 0; color: var(--vh-muted); font-size: 11px;}
.vh-profile .vh-extra-equipment {margin-top: 22px; border-top: 1px solid rgba(144,94,50,.32); padding-top: 20px;}
.vh-profile .vh-extra-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px;}
.vh-profile .vh-stats {display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 18px 0 26px;}
.vh-profile .vh-stat {display: flex; flex-direction: column; gap: 12px; padding: 17px 15px; border: 1px solid var(--vh-border); border-radius: 11px; background: #241810; min-width: 0;}
.vh-profile .vh-stat small {font-size: 11px; color: #c3ab96;}
.vh-profile .vh-stat strong {font-size: clamp(20px, 2.2vw, 27px); line-height: 1; color: var(--vh-gold); white-space: nowrap;}
.vh-profile .vh-lower-grid {display: grid; grid-template-columns: minmax(0,1.55fr) minmax(285px,1fr); gap: 20px;}
.vh-profile .vh-main-column, .vh-profile .vh-aside-column {display: flex; flex-direction: column; gap: 20px;}
.vh-profile .vh-detail-panel {padding: 24px;}
.vh-profile .vh-detail-panel .vh-section-title h2 {font-size: 21px;}
.vh-profile .vh-muted {color: var(--vh-muted); margin: 0; font-size: 13px;}
.vh-profile .vh-pills {display: flex; flex-wrap: wrap; gap: 9px;}
.vh-profile .vh-pill {display: inline-flex; align-items: center; gap: 12px; border: 1px solid #65432b; border-radius: 8px; background: #302016; color: #e6d4be; padding: 9px 12px; font-size: 12px;}
.vh-profile .vh-pill b {color: var(--vh-gold); border-radius: 5px; background: #493019; padding: 3px 6px;}
.vh-profile .vh-detail-list {display: flex; flex-direction: column;}
.vh-profile .vh-detail-list > div {display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(114,74,43,.32); font-size: 12px;}
.vh-profile .vh-detail-list > div:last-child {border-bottom: none;}
.vh-profile .vh-detail-list span {color: #c4af9b;}
.vh-profile .vh-detail-list strong {color: var(--vh-gold); font-size: 14px;}
.vh-profile .vh-snapshot-note {font-size: 12px; color: var(--vh-muted); text-align: center; margin: 26px 0 0;}
.vh-profile .vh-not-found {padding: 55px; text-align: center;}
.vh-profile .vh-not-found h1 {margin: 0 0 12px;}
.vh-profile .vh-not-found p {color: var(--vh-muted);}
.vh-profile .vh-not-found a {color: var(--vh-orange);}
/* Tooltip lives on document body so it cannot be clipped by a panel. */
.vh-tooltip {position: fixed; z-index: 99999; width: min(355px, calc(100vw - 24px)); max-height: min(75vh, 620px); overflow-y: auto; background: linear-gradient(150deg,#180f14,#130e0c 80%); border: 1px solid #c37b39; box-shadow: 0 16px 48px rgba(0,0,0,.65); border-radius: 12px; padding: 18px; color: #f2e8df; font: 13px/1.45 system-ui, sans-serif; pointer-events: none;}
.vh-tooltip[hidden] {display: none;}
.vh-tooltip .vh-tooltip-name {font-size: 18px; line-height: 1.3; color: #ffc16a; font-weight: 800; margin-bottom: 5px;}
.vh-tooltip .vh-tooltip-name.rarity-scrappy {color:#c7c7c7;}
.vh-tooltip .vh-tooltip-name.rarity-rare {color:#6ea4ff;}
.vh-tooltip .vh-tooltip-name.rarity-epic {color:#f05aff;}
.vh-tooltip .vh-tooltip-name.rarity-omega {color:#ffc14d;}
.vh-tooltip .vh-tooltip-rarity {font-size: 12px; color: #d7ac81; margin-bottom: 13px;}
.vh-tooltip .vh-tooltip-line {margin: 2px 0; overflow-wrap: anywhere;}
.vh-tooltip .vh-tooltip-space {height: 10px;}
.vh-tooltip .vh-tooltip-group {color: #aca09c; margin: 12px 0 4px;}
@media (max-width: 1100px) {
    .vh-profile .vh-character-layout {grid-template-columns: minmax(0,1fr) minmax(150px,245px) minmax(0,1fr); gap: 12px;}
    .vh-profile .vh-stats {grid-template-columns: repeat(3,minmax(0,1fr));}
    .vh-profile .vh-slot {padding: 8px; gap: 8px;}
    .vh-profile .vh-slot-image {width: 40px; height: 40px; flex-basis: 40px;}
    .vh-profile .vh-slot-image img {width: 34px; height: 34px;}
}
@media (max-width: 780px) {
    .vh-profile .vh-container {width: min(100% - 24px, 650px);}
    .vh-profile .vh-armory-panel {padding: 18px 14px;}
    .vh-profile .vh-character-layout {grid-template-columns: repeat(2,minmax(0,1fr));}
    .vh-profile .vh-character-center {grid-column: 1 / -1; grid-row: 1; min-height: 300px; padding: 12px;}
    .vh-profile .vh-character-skin {height: 245px;}
    .vh-profile .vh-equipment-left {grid-column: 1; grid-row: 2;}
    .vh-profile .vh-equipment-right {grid-column: 2; grid-row: 2;}
    .vh-profile .vh-extra-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
    .vh-profile .vh-lower-grid {grid-template-columns: 1fr;}
    .vh-profile .vh-hover-hint {display: none;}
}
@media (max-width: 500px) {
    .vh-profile .vh-player-header {align-items: flex-start; gap: 13px;}
    .vh-profile .vh-header-level {padding: 9px 10px; gap: 7px; flex-direction: column;}
    .vh-profile .vh-header-level span {font-size: 8px;}
    .vh-profile .vh-header-level strong {font-size: 24px;}
    .vh-profile .vh-slot {min-height: 54px; gap: 7px; padding: 6px;}
    .vh-profile .vh-slot-image {width: 35px; height: 35px; flex-basis: 35px; font-size: 20px;}
    .vh-profile .vh-slot-image img {width: 31px; height: 31px;}
    .vh-profile .vh-slot-text small {font-size: 8px;}
    .vh-profile .vh-slot-text strong {font-size: 11px;}
    .vh-profile .vh-stats {grid-template-columns: repeat(2,minmax(0,1fr));}
    .vh-profile .vh-stat {padding: 13px;}
    .vh-profile .vh-detail-panel {padding: 18px;}
}
@media (prefers-reduced-motion: reduce) {
    .vh-profile button.vh-slot {transition: none;}
}

/* ==============================================
   CHARACTER EXP + GOD REPUTATION (v3)
   ============================================== */
.vh-profile .vh-character-center {
    justify-content: space-between;
    gap: 12px;
    min-height: 475px;
    padding: 16px 14px 19px;
    overflow: visible;
}

.vh-profile .vh-exp {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 245px;
    outline: none;
    cursor: help;
}

.vh-profile .vh-exp-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: .06em;
    font-weight: 800;
    color: #d0b49c;
}
.vh-profile .vh-exp-heading span:last-child {color: #ffc16a; white-space: nowrap;}
.vh-profile .vh-exp .vh-level-track {
    margin: 0;
    width: 100%;
    max-width: none;
    height: 12px;
    border-radius: 5px;
    background: #100c09;
    border: 1px solid #785031;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.vh-profile .vh-exp .vh-level-track > span {
    background: linear-gradient(90deg, #bd6926, #f5a33d 65%, #ffd37b);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(245,163,61,.35);
}
.vh-profile .vh-exp-tooltip {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 5px);
    width: max-content;
    max-width: 240px;
    padding: 9px 12px;
    border: 1px solid #a3703b;
    background: #1a100c;
    border-radius: 8px;
    color: #ffe0ae;
    box-shadow: 0 10px 22px rgba(0,0,0,.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
    text-align: center;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.vh-profile .vh-exp:hover .vh-exp-tooltip,
.vh-profile .vh-exp:focus .vh-exp-tooltip,
.vh-profile .vh-exp:focus-visible .vh-exp-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}
.vh-profile .vh-exp:focus-visible .vh-level-track {
    outline: 2px solid #ffc16a;
    outline-offset: 3px;
}

.vh-profile .vh-character-center .vh-character-skin {
    position: relative;
    z-index: 1;
    display: block;
    height: clamp(190px, 26vw, 278px);
    margin: auto 0;
}

.vh-profile .vh-gods {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid rgba(144,94,50,.4);
    text-align: center;
}
.vh-profile .vh-gods-heading {
    color: #bca086;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 10px;
}
.vh-profile .vh-gods-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 3px;
}
.vh-profile .vh-god {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    color: var(--god-color);
}
.vh-profile .vh-god img {
    display: block;
    width: 36px;
    height: 36px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.65));
}
.vh-profile .vh-god strong {
    position: relative;
    margin-top: -9px;
    color: #fff3e7;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 3px rgba(0,0,0,.9);
}
.vh-profile .vh-god-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--god-color);
    overflow-wrap: anywhere;
}
@media (max-width: 780px) {
    .vh-profile .vh-character-center {min-height: 370px;}
    .vh-profile .vh-character-center .vh-character-skin {height: 210px;}
    .vh-profile .vh-exp {max-width: 285px;}
    .vh-profile .vh-gods {max-width: 285px;}
}
@media (max-width: 420px) {
    .vh-profile .vh-character-center .vh-character-skin {height: 200px;}
}
@media (prefers-reduced-motion: reduce) {
    .vh-profile .vh-exp-tooltip {transition: none;}
}

/* ==============================================
   PROFILE TABS + GEAR/STATS DATA (v4)
   ============================================== */
.vh-profile .vh-profile-tabs {
    display: flex;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    margin: 0 0 21px;
    padding: 6px;
    background: #1b120e;
    border: 1px solid #57351f;
    border-radius: 13px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #855535 #1b120e;
}
.vh-profile .vh-profile-tab {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #cbb8a8;
    font: inherit;
    font-weight: 750;
    font-size: 13px;
    white-space: nowrap;
    min-height: 43px;
    padding: 10px 17px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.vh-profile .vh-profile-tab:hover {
    color: #fff3e7;
    background: #332116;
}
.vh-profile .vh-profile-tab.is-active,
.vh-profile .vh-profile-tab[aria-selected="true"] {
    color: #fff0d2;
    background: linear-gradient(180deg, #5c381d, #3a2518);
    border-color: #a66c38;
    box-shadow: inset 0 -2px 0 #f5a33d;
}
.vh-profile .vh-profile-tab:focus-visible {
    outline: 2px solid #ffc16a;
    outline-offset: -3px;
}
.vh-profile .vh-tab-panel[hidden] { display: none !important; }
.vh-profile .vh-tab-panel { min-width: 0; outline: none; }
.vh-profile .vh-tab-panel > .vh-panel,
.vh-profile .vh-tab-panel > .vh-two-panel-grid { margin-bottom: 19px; }
.vh-profile .vh-tab-panel > :last-child { margin-bottom: 0; }
.vh-profile .vh-detail-panel { padding: 26px 28px; }
.vh-profile .vh-detail-panel .vh-section-title h2 { font-size: clamp(20px, 2.5vw, 26px); }
.vh-profile .vh-detail-panel .vh-section-title em { font-style: normal; color: #ffc16a; }
.vh-profile .vh-section-description {
    color: #b9a18c;
    font-size: 13px;
    line-height: 1.7;
    margin: -4px 0 19px;
}
.vh-profile .vh-count-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    border: 1px solid #765032;
    background: #332216;
    padding: 5px 12px;
    color: #f2c58c;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.vh-profile .vh-attribute-grid,
.vh-profile .vh-data-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.vh-profile .vh-attribute,
.vh-profile .vh-data-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 11px;
    min-width: 0;
    padding: 15px 16px;
    border-radius: 10px;
    border: 1px solid #4d3526;
    background: linear-gradient(160deg, #2b1d14, #21160f);
}
.vh-profile .vh-attribute span,
.vh-profile .vh-data-cell span {
    font-size: 11px;
    color: #cbb3a0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.vh-profile .vh-attribute strong,
.vh-profile .vh-data-cell strong {
    font-size: 22px;
    line-height: 1.1;
    color: #ffc16a;
    font-weight: 800;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.vh-profile .vh-two-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}
.vh-profile .vh-two-panel-grid .vh-data-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.vh-profile .vh-empty-state {
    background: #261910;
    border: 1px dashed #6f492e;
    padding: 24px;
    border-radius: 10px;
    line-height: 1.7;
}
.vh-profile .vh-skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 13px;
}
.vh-profile .vh-skill-card {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
    border: 1px solid #69452d;
    border-radius: 11px;
    background: linear-gradient(155deg, #302018, #21160f);
    padding: 16px;
}
.vh-profile .vh-skill-mark,
.vh-profile .vh-build-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    background: #4a2e1c;
    border: 1px solid #89582f;
    border-radius: 10px;
    font-size: 22px;
    color: #ffc16a;
}
.vh-profile .vh-skill-copy { flex: 1; min-width: 0; }
.vh-profile .vh-skill-copy h3 {
    color: #fff3e7;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.vh-profile .vh-skill-copy span { font-size: 11px; color: #a9927e; }
.vh-profile .vh-skill-card > strong {
    color: #ffc16a;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}
.vh-profile .vh-build-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
}
.vh-profile .vh-build-card {
    border: 1px solid #69452d;
    border-radius: 12px;
    background: #261911;
    padding: 19px;
    min-width: 0;
}
.vh-profile .vh-build-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.vh-profile .vh-build-card h3 { color: #fff3e7; margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.vh-profile .vh-build-card .vh-data-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.vh-profile .vh-build-card .vh-data-cell strong { font-size: 16px; }
@media (max-width: 1110px) {
    .vh-profile .vh-attribute-grid,
    .vh-profile .vh-data-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .vh-profile .vh-skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
    .vh-profile .vh-profile-tabs { gap: 2px; }
    .vh-profile .vh-profile-tab { padding: 9px 13px; font-size: 12px; }
    .vh-profile .vh-two-panel-grid { grid-template-columns: minmax(0,1fr); }
    .vh-profile .vh-attribute-grid,
    .vh-profile .vh-data-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .vh-profile .vh-build-grid { grid-template-columns: minmax(0,1fr); }
    .vh-profile .vh-detail-panel { padding: 21px 18px; }
}
@media (max-width: 510px) {
    .vh-profile .vh-section-title { flex-wrap: wrap; align-items: start; }
    .vh-profile .vh-skill-grid { grid-template-columns: minmax(0,1fr); }
    .vh-profile .vh-attribute,
    .vh-profile .vh-data-cell { padding: 12px; }
    .vh-profile .vh-attribute strong,
    .vh-profile .vh-data-cell strong { font-size: 19px; }
    .vh-profile .vh-two-panel-grid .vh-data-grid,
    .vh-profile .vh-build-card .vh-data-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .vh-profile .vh-profile-tab { transition: none; }
}


/* ===========================================================
   V5: COMPACT VAULT HUNTERS EQUIPMENT + SCROLLABLE GEAR STATS
   =========================================================== */
.vh-profile .vh-character-layout {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(210px, 265px) minmax(170px, 1fr) minmax(255px, 1.15fr);
    gap: 17px;
    align-items: start;
}
.vh-profile .vh-equipment-column { gap: 7px; }
.vh-profile .vh-equipment-column h3 { margin-bottom: 11px; }
.vh-profile .vh-equipment-column .vh-slot {
    width: 100%;
    min-height: 50px;
    padding: 2px 4px;
    gap: 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
    box-shadow: none;
}
.vh-profile .vh-equipment-column .vh-slot-empty {
    opacity: 0.65;
    border-style: solid;
}
.vh-profile .vh-equipment-column .vh-slot-equipped:hover,
.vh-profile .vh-equipment-column .vh-slot-equipped:focus-visible,
.vh-profile .vh-equipment-column .vh-slot-equipped.vh-selected {
    background: rgba(245,163,61,.09);
    border-color: rgba(245,163,61,.38);
    transform: none;
}
.vh-profile .vh-equipment-column .vh-slot-image {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid #4b382d;
    border-radius: 11px;
    background: #18120e;
    color: #785f4b;
}
.vh-profile .vh-equipment-column .vh-slot-image img { width: 41px; height: 41px; }
.vh-profile .vh-equipment-column .vh-slot-text { min-width: 0; }
.vh-profile .vh-equipment-column .vh-slot-text strong {
    color: #f4e6d6;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.vh-profile .vh-equipment-column .vh-slot-empty .vh-slot-text strong { color: #9e8775; font-weight: 500; }
.vh-profile .vh-equipment-column .vh-slot-equipped.rarity-scrappy .vh-slot-text strong { color: #bdbdbd; }
.vh-profile .vh-equipment-column .vh-slot-equipped.rarity-rare .vh-slot-text strong { color: #6ca5ff; }
.vh-profile .vh-equipment-column .vh-slot-equipped.rarity-epic .vh-slot-text strong { color: #f05aff; }
.vh-profile .vh-equipment-column .vh-slot-equipped.rarity-omega .vh-slot-text strong { color: #ffc16a; }
.vh-profile .vh-equipment-column .vh-slot-equipped.rarity-common .vh-slot-text strong { color: #f4e6d6; }
.vh-profile .vh-character-center { min-width: 0; min-height: 457px; }
.vh-profile .vh-character-center .vh-character-skin { height: clamp(190px, 23vw, 272px); }

/* The whole sidebar has fixed height; only the attribute rows scroll. */
.vh-profile .vh-gear-sidebar {
    min-width: 0;
    height: 457px;
    display: flex;
    flex-direction: column;
    border: 1px solid #5d3c25;
    border-radius: 12px;
    background: linear-gradient(150deg, #2b1c13, #1b120e);
    overflow: hidden;
}
.vh-profile .vh-gear-sidebar-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 15px 8px;
}
.vh-profile .vh-gear-sidebar-head .vh-eyebrow { font-size: 9px; }
.vh-profile .vh-gear-sidebar-head h3 {
    margin: 3px 0 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff3e7;
}
.vh-profile .vh-gear-sidebar-head h3 em { font-style: normal; color: #ffc16a; }
.vh-profile .vh-gear-sidebar-head .vh-count-pill { padding: 3px 8px; font-size: 10px; }
.vh-profile .vh-combat-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    flex: none;
    gap: 12px;
    padding: 12px 15px 13px;
    border-bottom: 1px solid #523522;
}
.vh-profile .vh-combat-highlight { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.vh-profile .vh-combat-highlight + .vh-combat-highlight { border-left: 1px solid #67442e; }
.vh-profile .vh-combat-highlight strong { font-size: 22px; color: #ffc16a; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vh-profile .vh-combat-highlight span { color: #bda996; font-size: 10px; letter-spacing: .06em; font-weight: 800; }
.vh-profile .vh-gear-stat-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #98612d #21160f;
    min-height: 0;
    flex: 1;
    padding: 12px 15px 16px;
}
.vh-profile .vh-gear-stat-scroll::-webkit-scrollbar { width: 7px; }
.vh-profile .vh-gear-stat-scroll::-webkit-scrollbar-thumb { background: #98612d; border-radius: 99px; }
.vh-profile .vh-gear-stat-scroll::-webkit-scrollbar-track { background: #21160f; }
.vh-profile .vh-gear-stat-scroll:focus-visible { outline: 2px solid #ffc16a; outline-offset: -2px; }
.vh-profile .vh-stat-category + .vh-stat-category { margin-top: 15px; }
.vh-profile .vh-stat-category h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #a99584; }
.vh-profile .vh-stat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12px; line-height: 1.4; }
.vh-profile .vh-stat-line span { min-width: 0; color: #dfc6ae; overflow-wrap: anywhere; }
.vh-profile .vh-stat-line strong { flex: none; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff1dd; white-space: nowrap; }
.vh-profile .vh-stat-zero { opacity: .48; }
.vh-profile .vh-stat-category-defense .vh-stat-line:not(.vh-stat-zero) span { color: #f0cf68; }
.vh-profile .vh-stat-category-general .vh-stat-line:not(.vh-stat-zero) span { color: #78d7a5; }
.vh-profile .vh-stat-category-utility .vh-stat-line:not(.vh-stat-zero) span { color: #89d9f5; }
.vh-profile .vh-stat-category-offense .vh-stat-line:not(.vh-stat-zero) span { color: #f5a483; }

@media (max-width: 1150px) {
    .vh-profile .vh-character-layout { grid-template-columns: minmax(165px,1fr) minmax(200px,270px) minmax(165px,1fr); gap: 15px; }
    .vh-profile .vh-gear-sidebar { grid-column: 1 / -1; height: 335px; }
}
@media (max-width: 780px) {
    .vh-profile .vh-character-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .vh-profile .vh-character-center { grid-column: 1 / -1; grid-row: 1; min-height: 365px; }
    .vh-profile .vh-character-center .vh-character-skin { height: 215px; }
    .vh-profile .vh-equipment-left { grid-column: 1; grid-row: 2; }
    .vh-profile .vh-equipment-right { grid-column: 2; grid-row: 2; }
    .vh-profile .vh-gear-sidebar { grid-column: 1 / -1; grid-row: 3; height: 370px; }
}
@media (max-width: 490px) {
    .vh-profile .vh-character-layout { grid-template-columns: minmax(0,1fr); }
    .vh-profile .vh-character-center { grid-column: 1; grid-row: 1; }
    .vh-profile .vh-equipment-left { grid-column: 1; grid-row: 2; }
    .vh-profile .vh-equipment-right { grid-column: 1; grid-row: 3; }
    .vh-profile .vh-gear-sidebar { grid-column: 1; grid-row: 4; }
    .vh-profile .vh-equipment-column { gap: 4px; }
}


/* ===========================================================
   V6: EXACT COMBAT STATS / OFFENSIVE / DEFENSIVE / GENERAL / UTILITY
   Values are filled by player.php from actual snapshot attributes.
   =========================================================== */
.vh-profile .vh-gear-sidebar {
    background: linear-gradient(155deg, #201711, #17110e);
    border-color: #5a3d2a;
}
.vh-profile .vh-combat-highlights {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 18px 12px 15px;
    background: rgba(0, 0, 0, .14);
    border-bottom: 1px solid #4b3425;
}
.vh-profile .vh-combat-highlight {
    min-width: 0;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
}
.vh-profile .vh-combat-highlight + .vh-combat-highlight {
    border-left: 1px solid #67442e;
}
.vh-profile .vh-combat-highlight > strong,
.vh-profile .vh-combat-highlight .vh-offense-values strong {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.vh-profile .vh-offense-values {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    min-height: 27px;
    white-space: nowrap;
}
.vh-profile .vh-combat-highlight .vh-offense-damage { color: #f15a53; }
.vh-profile .vh-combat-highlight .vh-offense-power { color: #d56ce8; }
.vh-profile .vh-combat-highlight .vh-offense-separator { color: #806858; font-size: 20px; }
.vh-profile .vh-combat-highlight-defense > strong { color: #f4efe8; }
.vh-profile .vh-combat-highlight > span {
    color: #ad9d90;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .08em;
}
.vh-profile .vh-combat-highlight small {
    color: #786b5f;
    font-size: 8px;
    letter-spacing: .04em;
    line-height: 1.2;
}
.vh-profile .vh-gear-stat-scroll { padding: 12px 14px 18px; }
.vh-profile .vh-stat-category + .vh-stat-category { margin-top: 16px; }
.vh-profile .vh-stat-category h4 {
    font-size: 14px;
    color: #9e9084;
    margin: 0 0 5px;
    font-weight: 750;
}
.vh-profile .vh-stat-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
    line-height: 1.5;
}
.vh-profile .vh-stat-line .vh-stat-label {
    color: #ead9c9;
    min-width: 0;
    overflow-wrap: anywhere;
}
.vh-profile .vh-stat-line strong {
    color: #fff5e9;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    flex: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-violet { color: #d57bea; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-red { color: #f16a68; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-amber { color: #e4a267; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-gold { color: #ffd056; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-orange { color: #f5a33d; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-lime { color: #a5e95a; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-green { color: #77d99f; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-sky { color: #83d2f3; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-cyan { color: #54e6e9; }
.vh-profile .vh-stat-category .vh-stat-line .vh-stat-label.tone-pink { color: #fb638d; }


/* =============================================================
   V7: STATISTICS SHOWCASE — FPK BRONZE / COPPER / TEAL
   ============================================================= */
.vh-profile .vh-statistics-panel {
    padding: clamp(20px, 2.6vw, 36px);
    background:
        radial-gradient(ellipse 75% 250px at 50% 0%, rgba(245,163,61,.075), transparent 90%),
        linear-gradient(160deg, #21160f 0%, #150e0a 100%);
}
.vh-profile .vh-statistics-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(128,79,44,.32);
}
.vh-profile .vh-statistics-intro h2 {
    margin: 8px 0 0;
    color: #fff3e7;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
    line-height: 1.1;
}
.vh-profile .vh-statistics-intro h2 em {color:#ffc16a; font-style:normal;}
.vh-profile .vh-statistics-note {color:#ac9684; font-size:11px; text-align:right;}
.vh-profile .vh-stats-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}
.vh-profile .vh-stats-hero {
    --stat-accent: #f5a33d;
    min-width: 0;
    min-height: 265px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 16px 17px;
    border: 1px solid rgba(146,97,57,.52);
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--stat-accent) 8%, transparent), transparent 72%), #261911;
    box-shadow: 0 8px 30px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,232,192,.045);
}
.vh-profile .vh-stats-hero-conqueror {--stat-accent:#78bde5;}
.vh-profile .vh-stats-hero-delver {--stat-accent:#96c989;}
.vh-profile .vh-stats-hero-head {
    display: flex; align-items:center; justify-content:center; gap:8px;
    color:var(--stat-accent); font-size: 11px; font-weight:850;
    letter-spacing:.2em; text-transform:uppercase;
}
.vh-profile .vh-stats-hero-mark {font-size:14px; opacity:.85;}
.vh-profile .vh-stats-hero-number {
    color:var(--stat-accent); font-size:clamp(38px,4.5vw,59px);
    font-weight:900; letter-spacing:-.045em; line-height:1.08;
    margin-top:13px; font-variant-numeric:tabular-nums;
}
.vh-profile .vh-stats-hero-unit {
    margin-top:4px; color:#aa9481; font-size:10px;
    font-weight:850; letter-spacing:.12em;
}
.vh-profile .vh-stats-hero-detail {
    display:flex; flex-direction:column; gap:10px;
    align-self:stretch; margin-top:auto; padding-top:24px;
}
.vh-profile .vh-stats-hero-detail > div {
    display:flex; align-items:baseline; justify-content:center;
    flex-wrap:wrap; gap:6px 9px; line-height:1.35;
}
.vh-profile .vh-stats-hero-detail strong {
    font-size:16px; font-weight:850; color:#fff0da;
    font-variant-numeric:tabular-nums;
}
.vh-profile .vh-stats-hero-detail span {font-size:12px; color:#bca796;}
.vh-profile .vh-stats-divider {
    display:flex; align-items:center; gap:17px;
    margin:34px 0 19px; color:#f5a33d;
    font-size:12px; font-weight:850; letter-spacing:.15em;
    text-align:center;
}
.vh-profile .vh-stats-divider::before,
.vh-profile .vh-stats-divider::after {
    content:''; height:1px; flex:1; min-width:15px;
    background:linear-gradient(90deg,transparent,rgba(181,113,54,.55),transparent);
}
.vh-profile .vh-pylons {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
}
.vh-profile .vh-pylon {
    display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:19px 15px 16px; text-align:center;
    background:linear-gradient(140deg,#2a1c13,#1b120e);
    border:1px solid rgba(133,84,48,.52); border-radius:10px;
}
.vh-profile .vh-pylon-icon {font-size:24px; color:#f5a33d; line-height:1;}
.vh-profile .vh-pylon strong {font-size:28px; line-height:1.2; color:#fff2e0; font-weight:850; font-variant-numeric:tabular-nums;}
.vh-profile .vh-pylon > span:last-child {font-size:10px; letter-spacing:.1em; font-weight:800; color:#ad9581;}
.vh-profile .vh-objective-table-wrapper {
    border-radius:11px; border:1px solid #583b28; background:#1b130e;
    overflow-x:auto; scrollbar-width:thin; scrollbar-color:#714c33 #1b130e;
}
.vh-profile .vh-objective-table {width:100%; border-collapse:collapse; min-width:470px;}
.vh-profile .vh-objective-table thead {background:#2d1d13;}
.vh-profile .vh-objective-table th,
.vh-profile .vh-objective-table td {
    padding:11px 17px; border-bottom:1px solid rgba(141,93,54,.25);
}
.vh-profile .vh-objective-table thead th {
    color:#bfa58e; font-size:10px; font-weight:800; text-transform:uppercase;
    letter-spacing:.105em; text-align:right;
}
.vh-profile .vh-objective-table thead th:first-child {text-align:left;}
.vh-profile .vh-objective-table tbody th {
    color:#eee0d1; font-weight:650; font-size:13px; text-align:left;
}
.vh-profile .vh-objective-table tbody td {
    color:#fff3e7; font-weight:850; font-size:13px;
    text-align:right; font-variant-numeric:tabular-nums;
}
.vh-profile .vh-objective-table tbody tr:nth-child(even) {background:rgba(255,233,194,.018);}
.vh-profile .vh-objective-table tbody tr:hover {background:rgba(245,163,61,.055);}
.vh-profile .vh-objective-table tbody tr:last-child > * {border-bottom:0;}
.vh-profile .vh-objective-table tbody td.vh-outcome-won {color:#8ddc91;}
.vh-profile .vh-objective-table tbody td.vh-outcome-bailed {color:#ffc16a;}
.vh-profile .vh-objective-table tbody td.vh-outcome-failed {color:#ec8177;}
.vh-profile .vh-objective-table .vh-objective-empty {
    padding:31px 16px; color:#a99280; text-align:center; font-weight:500;
}
.vh-profile .vh-statistics-chest-data .vh-data-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
.vh-profile .vh-stats-disclaimer {
    margin:23px 0 0; padding:13px 15px; border-radius:8px;
    color:#ab9481; background:rgba(122,75,41,.10); font-size:11px; line-height:1.6;
}
@media (max-width:900px) {
    .vh-profile .vh-stats-hero-grid {gap:9px;}
    .vh-profile .vh-stats-hero {padding:22px 10px 17px;}
    .vh-profile .vh-stats-hero-detail span {font-size:11px;}
    .vh-profile .vh-statistics-chest-data .vh-data-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:690px) {
    .vh-profile .vh-stats-hero-grid {grid-template-columns:1fr; gap:11px;}
    .vh-profile .vh-stats-hero {min-height:unset; padding:22px;}
    .vh-profile .vh-stats-hero-number {font-size:47px;}
    .vh-profile .vh-stats-hero-detail {margin-top:0; padding-top:18px;}
    .vh-profile .vh-statistics-intro {align-items:start;}
    .vh-profile .vh-statistics-note {max-width:120px;}
    .vh-profile .vh-pylons {gap:10px;}
    .vh-profile .vh-statistics-chest-data .vh-data-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:420px) {
    .vh-profile .vh-statistics-panel {padding:16px 12px;}
    .vh-profile .vh-stats-hero {padding:19px 14px;}
    .vh-profile .vh-pylon {padding:14px 8px;}
    .vh-profile .vh-statistics-chest-data .vh-data-grid {grid-template-columns:1fr;}
}


/* =====================================================
   ABILITIES — Minecraft-style ability tree (v9)
   ===================================================== */
.vh-profile .vh-abilities-panel {
    padding: clamp(20px, 3vw, 34px);
    overflow: visible;
    background:
      radial-gradient(ellipse at 23% -15%, rgba(224,124,42,.07), transparent 45%),
      linear-gradient(145deg,#23170f,#160e0b);
}
.vh-profile .vh-abilities-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(183,115,53,.29);
}
.vh-profile .vh-abilities-intro h2 {
    color: #fff0e1;
    font-size: clamp(23px,2.6vw,31px);
    line-height:1.2;
    margin: 6px 0 0;
}
.vh-profile .vh-abilities-intro h2 em {font-style:normal;color:#ffc16a;}
.vh-profile .vh-abilities-count {
    display: inline-flex;
    align-items: center;
    color: #f3c48d;
    background: rgba(248,173,79,.08);
    border: 1px solid rgba(231,154,69,.28);
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}
.vh-profile .vh-ability-category {margin: 0 0 28px;}
.vh-profile .vh-ability-category:last-of-type {margin-bottom:8px;}
.vh-profile .vh-ability-category h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 900;
    color: #f5a33d;
    letter-spacing: .12em;
}
.vh-profile .vh-ability-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
    overflow: visible;
}
.vh-profile .vh-ability-tile {
    display: flex;
    position: relative;
    isolation: isolate;
    justify-content: center;
    align-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border: 1px solid #3b2a20;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(160deg,#191210,#090809);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.42),0 2px 6px rgba(0,0,0,.15);
    color:#cfac7b;
    cursor: help;
    font: inherit;
    transition: border-color .15s,transform .15s,background .15s,box-shadow .15s;
}
.vh-profile .vh-ability-tile img {
    display: block;
    width: 38px;
    height: 38px;
    max-width:none;
    object-fit: contain;
    image-rendering: pixelated;
}
.vh-profile .vh-ability-tile.is-locked img {
    filter: grayscale(1) brightness(.50);
    opacity: .55;
}
.vh-profile .vh-ability-tile.is-unlocked {
    border-color: #aa6c33;
    background: radial-gradient(circle at 50% 18%, #58341d, #170e0b 80%);
    box-shadow: inset 0 0 0 1px rgba(245,163,61,.13),0 3px 10px rgba(0,0,0,.24);
}
.vh-profile .vh-ability-tile.is-unlocked img {
    filter: drop-shadow(0 1px 3px rgba(245,163,61,.18));
}
.vh-profile .vh-ability-tile:hover,
.vh-profile .vh-ability-tile:focus-visible {
    transform: translateY(-3px);
    border-color: #ffc16a;
    box-shadow: 0 0 0 2px rgba(245,163,61,.24),0 8px 19px rgba(0,0,0,.4);
    outline: none;
    z-index: 8;
}
.vh-profile .vh-ability-fallback {font-size:21px;opacity:.55;}
.vh-profile .vh-ability-rank {
    position: absolute;
    z-index:1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px 4px 0 0;
    padding: 0 3px;
    min-width:26px;
    font-size: 11px;
    line-height: 1.18;
    font-weight: 900;
    white-space: nowrap;
    color: #ffd27b;
    text-shadow: 0 2px 3px #000,0 -1px 2px #000,1px 0 2px #000;
    background: rgba(0,0,0,.80);
    font-variant-numeric: tabular-nums;
}
.vh-profile .vh-ability-popover {
    pointer-events: none;
    position: absolute;
    z-index: 30;
    display:flex;
    flex-direction:column;
    gap:3px;
    width: max-content;
    max-width: min(230px, 80vw);
    left: 50%;
    top: calc(100% + 9px);
    transform: translate(-50%,-4px);
    opacity: 0;
    visibility: hidden;
    padding: 9px 12px;
    border: 1px solid #9e6332;
    border-radius: 8px;
    background: #120d0a;
    box-shadow: 0 12px 30px rgba(0,0,0,.55);
    color: #f7e4ce;
    text-align:left;
    line-height:1.35;
    white-space: normal;
    transition: opacity .15s, transform .15s,visibility .15s;
}
.vh-profile .vh-ability-popover strong {font-size: 12px;color: #ffe0ad;}
.vh-profile .vh-ability-popover span {font-size: 11px;color: #c9ac8b;}
.vh-profile .vh-ability-tile:hover .vh-ability-popover,
.vh-profile .vh-ability-tile:focus .vh-ability-popover,
.vh-profile .vh-ability-tile:focus-visible .vh-ability-popover {
    opacity:1;
    visibility: visible;
    transform: translate(-50%,0);
}
.vh-profile .vh-abilities-footnote {
    margin: 25px 0 0;
    border-top:1px solid rgba(170,105,48,.24);
    padding-top:15px;
    font-size:11px;
    line-height:1.6;
    color: #ac927f;
}
@media (max-width: 650px) {
  .vh-profile .vh-abilities-panel {padding:17px 13px;}
  .vh-profile .vh-ability-icon-grid {gap:7px;}
  .vh-profile .vh-ability-tile {flex-basis:49px;width:49px;height:49px;}
  .vh-profile .vh-ability-tile img {width:34px;height:34px;}
  .vh-profile .vh-ability-category {margin-bottom:22px;}
  .vh-profile .vh-ability-popover {max-width:180px;}
}
@media (prefers-reduced-motion: reduce) {
  .vh-profile .vh-ability-tile,.vh-profile .vh-ability-popover {transition:none;}
}


/* ==============================================
   ABILITIES / SKILLS - API SPRITE LAYOUT FIX (v12)
   Works with player.php's icon-only button markup.
   ============================================== */
.vh-profile .vh-abilities-panel {
    min-width: 0;
    padding: 29px 30px;
    overflow: visible;
}
.vh-profile .vh-ability-category {
    margin: 0 0 28px;
    min-width: 0;
}
.vh-profile .vh-ability-icon-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    overflow: visible;
}
.vh-profile .vh-ability-icon-grid > .vh-ability-tile {
    /* The site-wide button styling must not expand these into text cards. */
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 55px;
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    height: 55px;
    min-height: 55px;
    max-height: 55px;
    margin: 0;
    padding: 5px;
    overflow: visible;
    border: 1px solid rgba(129, 88, 55, .50);
    border-radius: 11px;
    background: linear-gradient(155deg, #23170f 0%, #120d0b 90%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 3px 10px rgba(0,0,0,.21);
    color: #ffce84;
    cursor: help;
    font: inherit;
    line-height: 1;
}
.vh-profile .vh-ability-tile > img {
    display: block;
    width: 40px !important;
    height: 40px !important;
    min-width: 0;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    image-rendering: pixelated;
}
.vh-profile .vh-ability-tile.is-locked { background: linear-gradient(155deg,#171110,#100b0a); }
.vh-profile .vh-ability-tile.is-locked > img {filter: grayscale(1) brightness(.48); opacity: .52;}
.vh-profile .vh-ability-tile.is-unlocked {
    border-color: #d88f44;
    background: radial-gradient(circle at 45% 22%,rgba(184,106,43,.35),#21140e 80%);
    box-shadow: inset 0 0 0 1px rgba(251,173,84,.15),0 3px 12px rgba(0,0,0,.3);
}
.vh-profile .vh-ability-tile.is-unlocked > img {opacity:1;filter: drop-shadow(0 1px 2px rgba(252,169,77,.22));}
.vh-profile .vh-ability-tile > .vh-ability-popover {
    /* Descriptions stay invisible until hover / keyboard focus. */
    position: absolute;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 3px;
    top: calc(100% + 10px);
    left: 50%;
    width: max-content;
    max-width: 220px;
    transform: translate(-50%, -5px);
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid #a66c38;
    background: #16100e;
    box-shadow: 0 10px 28px rgba(0,0,0,.6);
    color: #fce7d0;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s,transform .15s,visibility .15s;
}
.vh-profile .vh-ability-tile:hover > .vh-ability-popover,
.vh-profile .vh-ability-tile:focus-visible > .vh-ability-popover {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.vh-profile .vh-ability-tile > .vh-ability-rank {
    position: absolute;
    bottom: -2px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    min-width: 27px;
    padding: 1px 4px;
    background: rgba(0,0,0,.88);
    border-radius: 5px 5px 0 0;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    color: #ffd28a;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px #000;
}
.vh-profile .vh-ability-tile:hover,
.vh-profile .vh-ability-tile:focus-visible {
    border-color: #ffc16a;
    transform: translateY(-2px);
    outline: 2px solid rgba(255,193,106,.20);
    outline-offset: 1px;
    z-index: 10;
}
.vh-profile .vh-skill-mark > img,
.vh-profile .vh-slot-image > img {image-rendering:pixelated;}
@media(max-width:600px) {
    .vh-profile .vh-abilities-panel {padding: 18px 15px;}
    .vh-profile .vh-ability-icon-grid {gap: 8px;}
    .vh-profile .vh-ability-icon-grid > .vh-ability-tile {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        flex-basis: 50px;
    }
    .vh-profile .vh-ability-tile > img {width: 35px !important;height: 35px !important;max-width:35px !important;max-height:35px !important;}
}


/* ==========================================
   CACHED VAULT HUNTERS SKILL DESCRIPTIONS v13
   Abilities, Talents, Expertise, Prestige
   ========================================== */
.vh-profile .vh-skill-card.has-metadata {
    position: relative;
    cursor: help;
    transition: border-color .15s ease, background .15s ease;
}
.vh-profile .vh-skill-card.has-metadata:hover,
.vh-profile .vh-skill-card.has-metadata:focus-visible {
    border-color: #e6a557;
    outline: 2px solid rgba(245, 163, 61, .25);
    outline-offset: 2px;
    z-index: 20;
}
.vh-profile .vh-skill-tooltip {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 80;
    left: 8px;
    bottom: calc(100% + 10px);
    width: min(320px, 82vw);
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #89582f;
    border-radius: 10px;
    background: linear-gradient(150deg, #211710 0%, #0d0b0a 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .68);
    color: #f4e6d9;
    white-space: normal;
    transition: opacity .12s ease, visibility .12s ease;
}
.vh-profile .vh-skill-card:hover > .vh-skill-tooltip,
.vh-profile .vh-skill-card:focus-visible > .vh-skill-tooltip {
    visibility: visible;
    opacity: 1;
}
.vh-profile .vh-meta-name {
    display: block;
    color: #ffc16a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 4px;
}
.vh-profile .vh-meta-points {
    display: block;
    color: #f5a33d;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 11px;
}
.vh-profile .vh-meta-description {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
    color: #eee0d4;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.vh-profile .vh-meta-description .is-bold {font-weight:800;}
.vh-profile .vh-meta-description .is-italic {font-style:italic;}
.vh-profile .vh-meta-description .is-underlined {text-decoration:underline;}
.vh-profile .vh-meta-description .is-strikethrough {text-decoration:line-through;}
/* Larger, readable ability hover cards without changing the icon grid. */
.vh-profile .vh-ability-popover {
    width: max-content;
    min-width: 195px;
    max-width: min(320px, 82vw);
    white-space: normal;
    text-align: left;
    padding: 12px 14px;
}
.vh-profile .vh-ability-popover .vh-meta-name {font-size:15px;}
.vh-profile .vh-ability-popover .vh-meta-points {font-size:12px;}
.vh-profile .vh-ability-popover .vh-meta-description {font-size:12px;}
@media (max-width:600px) {
    .vh-profile .vh-skill-tooltip {left:0;width:min(285px,84vw);}
    .vh-profile .vh-ability-popover {max-width: min(290px,82vw);}
}

/* ==============================================
   TALENT TREE v15 — FPK pumpkin edition
   ============================================== */
.vh-profile .vh-talents-panel {padding:24px 22px 22px;}
.vh-profile .vh-talent-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.vh-profile .vh-talent-toolbar > div {display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;}
.vh-profile .vh-talent-toolbar strong {font-size:17px;color:#ffe0ae;}
.vh-profile .vh-talent-toolbar span:not(.vh-talent-invested) {color:#ad9480;font-size:12px;}
.vh-profile .vh-talent-invested {color:#fbc276;font-size:12px;font-weight:800;white-space:nowrap;border:1px solid #654327;border-radius:20px;padding:6px 11px;background:#302016;}
.vh-profile .vh-talent-scroller {position:relative;max-width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #49321e;border-radius:12px;background:#130e0b;scrollbar-color:#80522e #20150f;scrollbar-width:thin;outline-offset:3px;}
.vh-profile .vh-talent-scroller:focus-visible {outline:2px solid #ffc16a;}
.vh-profile .vh-talent-canvas {position:relative;isolation:isolate;min-height:410px;background:radial-gradient(ellipse at 35% 30%,rgba(245,163,61,.07),transparent 58%),repeating-linear-gradient(0deg,transparent 0,transparent 81px,rgba(155,96,50,.17) 82px,rgba(155,96,50,.17) 83px),repeating-linear-gradient(90deg,transparent 0,transparent 73px,rgba(120,77,39,.06) 74px),linear-gradient(135deg,#1c1510,#120e0b);}
.vh-profile .vh-talent-wires {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:visible;}
.vh-profile .vh-talent-wires > path {fill:none;stroke:#9c7750;stroke-width:2.4;stroke-linecap:round;opacity:.57;}
.vh-profile .vh-talent-wires > .vh-talent-cross {stroke:#e85d4a;stroke-width:3;opacity:.98;}
.vh-profile .vh-talent-node {appearance:none;position:absolute;z-index:2;display:grid;place-items:center;width:45px;height:45px;border:1px solid #5b4635;border-radius:9px;background:linear-gradient(160deg,#31231a,#19130f);box-shadow:0 4px 10px rgba(0,0,0,.35),inset 0 1px rgba(255,255,255,.05);padding:5px;cursor:help;transition:border-color .15s,background .15s,transform .15s;color:#c9a178;font:inherit;}
.vh-profile .vh-talent-node .vh-talent-icon {width:30px;height:30px;display:grid;place-items:center;line-height:1;font-size:23px;}
.vh-profile .vh-talent-node .vh-talent-icon img {display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;}
.vh-profile .vh-talent-node.is-unlearned {background:linear-gradient(155deg,#27211c,#181410);border-color:#473b31;}
.vh-profile .vh-talent-node.is-unlearned .vh-talent-icon {filter:grayscale(.8) brightness(.62);opacity:.73;}
.vh-profile .vh-talent-node.is-learned {background:linear-gradient(140deg,#49311d,#241810);border-color:#f5a33d;box-shadow:0 0 0 1px rgba(245,163,61,.22),0 5px 19px rgba(245,163,61,.09);}
.vh-profile .vh-talent-node:hover,.vh-profile .vh-talent-node:focus-visible,.vh-profile .vh-talent-node.vh-selected {z-index:3;outline:2px solid #ffc16a;outline-offset:2px;transform:translateY(-2px);border-color:#ffc16a;background:#51311d;}
.vh-profile .vh-talent-rank {position:absolute;right:-6px;bottom:-8px;min-width:22px;border-radius:5px;padding:2px 4px;background:#120c09;border:1px solid #9b6a38;color:#ffce83;font-size:10px;font-weight:900;text-align:center;white-space:nowrap;line-height:1.15;box-shadow:0 2px 5px rgba(0,0,0,.5);}
.vh-profile .vh-talent-legend {margin-top:13px;display:flex;flex-wrap:wrap;align-items:center;gap:16px;color:#ab927d;font-size:11px;}
.vh-profile .vh-talent-legend > span {display:inline-flex;align-items:center;gap:7px;}
.vh-profile .vh-legend-dot {display:inline-block;width:9px;height:9px;border-radius:2px;border:1px solid #66503b;background:#271d16;}
.vh-profile .vh-legend-dot.is-learned {border-color:#f5a33d;background:#ae6825;}
.vh-talent-popover {position:fixed;z-index:99998;width:min(310px,calc(100vw - 22px));max-height: min(70vh,500px);overflow-y:auto;padding:15px 16px;pointer-events:none;border:1px solid #bd8346;border-radius:10px;background:linear-gradient(145deg,#221711,#100d0b);box-shadow:0 16px 42px rgba(0,0,0,.72);font:13px/1.55 system-ui,sans-serif;color:#f7ede3;}
.vh-talent-popover[hidden] {display:none!important;}
.vh-talent-popover .vh-meta-name {font-size:17px;font-weight:850;color:#ffb344;margin-bottom:4px;}
.vh-talent-popover .vh-meta-points {color:#ffc16a;font-size:12px;margin-bottom:12px;}
.vh-talent-popover .vh-meta-description {color:#ebdcd0;font-size:12px;white-space:pre-line;line-height:1.65;margin:0;overflow-wrap:anywhere;}
.vh-talent-popover .vh-meta-description .is-bold {font-weight:800;}
.vh-talent-popover .vh-meta-description .is-italic {font-style:italic;}
.vh-talent-popover .vh-meta-description .is-underlined {text-decoration:underline;}
.vh-talent-popover .vh-meta-description .is-strikethrough {text-decoration:line-through;}
.vh-talent-popover .vh-talent-tooltip-group {border-top:1px solid #674528;color:#b9a08d;margin-top:11px;padding-top:9px;font-size:11px;}
@media(max-width:760px){.vh-profile .vh-talents-panel {padding:18px 12px;}.vh-profile .vh-talent-toolbar {align-items:flex-start;}.vh-profile .vh-talent-toolbar > div {gap:4px;flex-direction:column;}.vh-profile .vh-talent-invested {font-size:10px;}.vh-profile .vh-talent-legend {gap:10px;}}
@media(prefers-reduced-motion:reduce){.vh-profile .vh-talent-node{transition:none;}}

/* v16: visually complete rails with a separate emphasis for real metadata. */
.vh-profile .vh-talent-wires > .vh-talent-wire-guide {
    stroke:#a77c53;
    stroke-width:2.2;
    stroke-dasharray:none;
    opacity:.32;
}
.vh-profile .vh-talent-wires > .vh-talent-wire-group {
    stroke:#c1a187;
    stroke-width:2.7;
    opacity:.82;
}
.vh-profile .vh-talent-wires > .vh-talent-wire-required {
    stroke:#efa759;
    stroke-width:2.8;
    opacity:.9;
}
/* A fixed tooltip must remain above tab panes and the horizontal scroller. */
.vh-talent-popover {z-index:2147483000;}

/* v17: Ability tooltip is now fixed to the viewport, not inside each icon.
   This prevents edge-of-grid tooltips from being clipped or overlapped. */
.vh-ability-global-popover {
    position: fixed;
    z-index: 2147483001;
    width: min(325px, calc(100vw - 24px));
    max-height: min(70vh, 500px);
    overflow-y: auto;
    padding: 15px 16px;
    border: 1px solid #bd8346;
    border-radius: 10px;
    background: linear-gradient(145deg, #221711, #100d0b);
    box-shadow: 0 16px 42px rgba(0,0,0,.72);
    color: #f7ede3;
    font: 13px/1.55 system-ui, sans-serif;
    pointer-events: none;
}
.vh-ability-global-popover[hidden] { display: none !important; }
.vh-profile .vh-ability-tile.vh-selected {
    border-color: #ffc16a;
    outline: 2px solid rgba(255,193,106,.20);
    outline-offset: 1px;
    z-index: 10;
}
.vh-ability-global-popover .vh-meta-name {color:#f5a33d;font-size:16px;font-weight:850;}
.vh-ability-global-popover .vh-meta-points {font-size:12px;color:#ffc16a;}
.vh-ability-global-popover .vh-meta-description {font-size:12px;white-space:pre-line;color:#ebdcd0;}
.vh-ability-global-popover .vh-meta-notice {color:#aa9380;font-style:italic;}

/* ===========================================
   TALENT TREE v18 — fixed positions / wires
   =========================================== */
.vh-profile .vh-talent-canvas {
    min-height: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(169,108,65,.19) 80px, rgba(169,108,65,.19) 81px),
        linear-gradient(155deg,#211710,#120e0b);
}
.vh-profile .vh-talent-node {
    width:36px;
    height:36px;
    padding:3px;
    border-radius:6px;
}
.vh-profile .vh-talent-node .vh-talent-icon {width:27px;height:27px;}
.vh-profile .vh-talent-wires > .vh-talent-wire-reference {
    stroke:#a09b98;
    stroke-width:2.6;
    opacity:.77;
    stroke-linecap:round;
}
.vh-profile .vh-talent-wires > .vh-talent-wire-exclusive {
    stroke:#b55b4c;
    stroke-width:2.3;
    opacity:.95;
}
.vh-profile .vh-talent-wires > .vh-talent-cross {
    stroke:#ed6251;
    stroke-width:2.6;
    opacity:1;
}


/* ===================================================
   EXPERTISE GRID v23 — reference-style four columns
   =================================================== */
.vh-profile .vh-expertise-panel {min-height:580px;}
.vh-profile .vh-expertise-toolbar {
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
    gap:10px; color:#aa907b; font-size:12px; margin:0 0 18px;
}
.vh-profile .vh-expertise-count {
    border:1px solid #6d4729; border-radius:30px; background:#302016;
    padding:5px 12px; color:#ffd193; font-weight:800; white-space:nowrap;
}
.vh-profile .vh-expertise-board {
    width:min(100%,570px); margin:0 auto; padding:29px 18px 33px;
    border:1px solid rgba(115,78,46,.55); border-radius:13px;
    background:linear-gradient(150deg,#1c1510 0%,#140e0b 100%);
    box-shadow:inset 0 1px 0 rgba(255,208,141,.045);
}
.vh-profile .vh-expertise-grid {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
    justify-items:center; align-items:center; width:min(100%,465px);
    margin:0 auto; column-gap:0; row-gap:44px;
}
.vh-profile .vh-expertise-node {
    appearance:none; position:relative; display:grid; place-items:center;
    width:62px; height:62px; padding:5px; border:1px solid transparent;
    background:transparent; border-radius:12px; color:#dfc7aa; font:inherit;
    cursor:help; transition:background .16s,border-color .16s,transform .16s;
}
.vh-profile .vh-expertise-icon {
    width:49px; height:49px; display:grid; place-items:center;
    color:#af8b64; font-size:28px;
}
.vh-profile .vh-expertise-icon img {
    display:block; width:100%; height:100%; object-fit:contain;
    image-rendering:pixelated;
}
.vh-profile .vh-expertise-node.is-locked .vh-expertise-icon {
    filter:grayscale(.85) brightness(.54); opacity:.63;
}
.vh-profile .vh-expertise-node.is-learned .vh-expertise-icon {
    filter:drop-shadow(0 2px 7px rgba(245,163,61,.14));
}
.vh-profile .vh-expertise-node:hover,
.vh-profile .vh-expertise-node:focus-visible,
.vh-profile .vh-expertise-node.vh-selected {
    background:#382519; border-color:#b37a43; transform:translateY(-2px);
    outline:2px solid rgba(255,193,106,.25); outline-offset:2px;
}
.vh-profile .vh-expertise-node:hover .vh-expertise-icon,
.vh-profile .vh-expertise-node:focus-visible .vh-expertise-icon {
    filter:none; opacity:1;
}
.vh-profile .vh-expertise-rank {
    position:absolute; right:-5px; bottom:-4px; z-index:1;
    min-width:22px; padding:2px 4px; border-radius:5px;
    background:#160f0b; border:1px solid #ad7941; color:#ffd18e;
    font-size:10px; font-weight:850; line-height:1.2;
    box-shadow:0 3px 6px rgba(0,0,0,.5);
}
.vh-profile .vh-expertise-legend {
    display:flex; justify-content:center; flex-wrap:wrap; gap:22px;
    color:#aa917c; font-size:11px; margin-top:17px;
}
.vh-profile .vh-expertise-legend > span {display:inline-flex;gap:7px;align-items:center;}
.vh-profile .vh-expertise-dot {width:8px;height:8px;border-radius:50%;background:#554438;}
.vh-profile .vh-expertise-dot.is-learned {background:#f5a33d;}
@media(max-width:620px) {
    .vh-profile .vh-expertise-panel {min-height:0;}
    .vh-profile .vh-expertise-board {padding:18px 8px 24px;}
    .vh-profile .vh-expertise-grid {row-gap:22px;}
    .vh-profile .vh-expertise-node {width:52px;height:52px;padding:3px;}
    .vh-profile .vh-expertise-icon {width:43px;height:43px;}
}
@media(prefers-reduced-motion:reduce) {
    .vh-profile .vh-expertise-node {transition:none;}
}

/* ========================================================
   RESEARCH TAB v26 — deterministic icon rows
   Three icons: standard columns
   Two icons: centered between those columns
   One icon: centered in the middle
   ======================================================== */
.vh-profile .vh-research-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: #bda48d;
    font-size: 12px;
}
.vh-profile .vh-research-count {
    padding: 6px 12px;
    border: 1px solid #81532b;
    border-radius: 99px;
    background: #302015;
    color: #ffd08d;
    font-weight: 800;
    white-space: nowrap;
}
.vh-profile .vh-research-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}
.vh-profile .vh-research-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.vh-profile .vh-research-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #6d4527;
    border-radius: 9px;
    background: linear-gradient(155deg, #281a12, #1b120d);
    box-shadow: 0 6px 16px rgba(8, 4, 2, .16);
}
.vh-profile .vh-research-group-header {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border-bottom: 1px solid rgba(212, 130, 55, .33);
    background: linear-gradient(100deg, #51301c, #332117);
}
.vh-profile .vh-research-group-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #f39c40, #ffca80, #a86633);
}
.vh-profile .vh-research-group-header h3 {
    margin: 0;
    color: #fff0df;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}
.vh-profile .vh-research-group-icon {
    display: grid;
    place-items: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: #f5a33d;
}
.vh-profile .vh-research-group-icon img {
    display: block;
    width: 19px !important;
    height: 19px !important;
    object-fit: contain;
    image-rendering: pixelated;
}
/* Icon rows are independent of tooltip templates and of CSS nth-child counting. */
.vh-profile .vh-research-group:not(.vh-research-extra) .vh-research-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 17px 15px 19px;
}
.vh-profile .vh-research-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: 100%;
    min-height: 45px;
    gap: 0;
}
/* In the regular 3-icon row, each icon occupies 2/6 of the width. */
.vh-profile .vh-research-row--3 > .vh-research-item:nth-child(1) { grid-column: 1 / span 2; }
.vh-profile .vh-research-row--3 > .vh-research-item:nth-child(2) { grid-column: 3 / span 2; }
.vh-profile .vh-research-row--3 > .vh-research-item:nth-child(3) { grid-column: 5 / span 2; }
/* Two icons are *between* the three positions above, like the game. */
.vh-profile .vh-research-row--2 > .vh-research-item:nth-child(1) { grid-column: 2 / span 2; }
.vh-profile .vh-research-row--2 > .vh-research-item:nth-child(2) { grid-column: 4 / span 2; }
/* Creeper Power and Automatic Genius sit in the exact center. */
.vh-profile .vh-research-row--1 > .vh-research-item { grid-column: 3 / span 2; }
.vh-profile .vh-research-item {
    appearance: none;
    position: relative;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 5px;
    border: 1px solid #795037;
    border-radius: 7px;
    background: #211710;
    box-shadow: inset 0 1px 0 rgba(255, 229, 194, .06);
    color: #c3a387;
    cursor: help;
    font: inherit;
    transition: background .15s, border-color .15s, transform .15s;
}
.vh-profile .vh-research-item-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    font-size: 20px;
}
.vh-profile .vh-research-item-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}
.vh-profile .vh-research-item.is-locked {
    border-color: #514033;
    background: #1b130f;
}
.vh-profile .vh-research-item.is-locked .vh-research-item-icon {
    filter: grayscale(.72) brightness(.82);
    opacity: .78;
}
.vh-profile .vh-research-item.is-unlocked {
    border-color: #b77c42;
    background: linear-gradient(145deg, #402a19, #2b1a10);
    box-shadow: inset 0 0 0 1px rgba(255, 181, 96, .09);
}
.vh-profile .vh-research-check {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid #b7834d;
    border-radius: 50%;
    background: #342312;
    color: #ffc16a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.vh-profile .vh-research-item:is(:hover, :focus-visible, .vh-selected) {
    z-index: 1;
    outline: 2px solid rgba(255, 193, 106, .3);
    outline-offset: 2px;
    transform: translateY(-1px);
    border-color: #ffba66;
    background: #49311c;
}
.vh-profile .vh-research-item:is(:hover, :focus-visible) .vh-research-item-icon {
    filter: none;
    opacity: 1;
}
/* Unexpected research unlocks: flowing grid, rather than forced rows. */
.vh-profile .vh-research-extra { margin-top: 16px; }
.vh-profile .vh-research-extra .vh-research-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding: 16px;
}
.vh-talent-popover .vh-research-tooltip-group {
    margin-top: 5px;
    color: #c6ad96;
    font-size: 12px;
}
.vh-talent-popover .vh-research-tooltip-state {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(195, 132, 75, .28);
    color: #a8907a;
    font-size: 12px;
    font-weight: 800;
}
.vh-talent-popover .vh-research-tooltip-state.is-unlocked { color: #ffc16a; }
@media (max-width: 1050px) {
    .vh-profile .vh-research-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vh-profile .vh-research-column:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vh-profile .vh-research-column:last-child .vh-research-group:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .vh-profile .vh-research-columns { grid-template-columns: 1fr; gap: 14px; }
    .vh-profile .vh-research-column { gap: 14px; }
    .vh-profile .vh-research-column:last-child { grid-column: auto; display: flex; }
    .vh-profile .vh-research-column:last-child .vh-research-group:last-child { grid-column: auto; }
    .vh-profile .vh-research-group:not(.vh-research-extra) .vh-research-items { gap: 13px; padding: 16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .vh-profile .vh-research-item { transition: none; }
}

/* ===========================================================
   PRESTIGE LADDER v28 — exact 2–7 icon tiers from screenshot
   =========================================================== */
.vh-profile .vh-prestige-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #b9a28f;
    font-size: 12px;
    margin-bottom: 14px;
}
.vh-profile .vh-prestige-count {
    color: #ffca88;
    border: 1px solid #74502b;
    background: #2e1e13;
    font-weight: 800;
    border-radius: 99px;
    padding: 6px 12px;
    white-space: nowrap;
}
.vh-profile .vh-prestige-stage {
    --prestige-node: 44px;
    --prestige-gap: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
    padding: 20px 18px 35px;
    border: 1px solid #674027;
    border-radius: 14px;
    background:
        radial-gradient(ellipse 170px 130px at 50% 12%, rgba(175,111,201,.14),transparent 100%),
        radial-gradient(ellipse 500px 260px at 50% 95%, rgba(213,129,47,.075),transparent 80%),
        linear-gradient(140deg, #1f1511 0%,#120d0c 62%,#1b130f 100%);
    box-shadow: inset 0 0 60px rgba(0,0,0,.28);
}
.vh-profile .vh-prestige-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .23;
    background-image: radial-gradient(#7a5237 0.65px, transparent .7px);
    background-size: 11px 11px;
    mask-image: radial-gradient(ellipse at 50% 40%,#000 12%,transparent 78%);
}
.vh-profile .vh-prestige-apex {
    display: grid;
    place-items: center;
    position: relative;
    width: 110px;
    height: 115px;
    margin-bottom: 3px;
}
.vh-profile .vh-prestige-apex::before {
    content:'';
    position:absolute;
    inset:8px 13px 17px;
    border-radius:50%;
    background:radial-gradient(circle at 50% 45%,#56405d 0%,#302531 42%,#1d171e 67%,transparent 72%);
    box-shadow:0 0 36px rgba(165,102,188,.14);
}
.vh-profile .vh-prestige-apex::after {
    content:'';
    position:absolute;
    top:79px;
    bottom:-13px;
    left:calc(50% - .5px);
    border-left:1px solid rgba(171,134,178,.52);
    z-index:-1;
}
.vh-profile .vh-prestige-emblem {
    z-index:1;
    display:grid;
    place-items:center;
    width:74px;
    height:74px;
    filter:drop-shadow(0 0 14px rgba(174,98,205,.36));
}
.vh-profile .vh-prestige-emblem svg { width:58px;height:58px;display:block; }
.vh-profile .vh-prestige-tier {
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    padding-top:3px;
    padding-bottom:14px;
}
.vh-profile .vh-prestige-tier-nodes {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:var(--prestige-gap);
    width:max-content;
    max-width:100%;
}
.vh-profile .vh-prestige-power {
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    display:grid;
    place-items:center;
    flex:0 0 var(--prestige-node);
    width:var(--prestige-node);
    height:var(--prestige-node);
    padding:5px;
    border:1px solid #645043;
    border-radius:9px;
    background:linear-gradient(145deg,#2c2625,#161314);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 3px 9px rgba(0,0,0,.38);
    color:#d7c1a9;
    cursor:pointer;
    transition:border-color .15s,background .15s,transform .15s,box-shadow .15s;
}
.vh-profile .vh-prestige-power.is-locked .vh-prestige-power-icon {
    filter:grayscale(1) brightness(.76);
    opacity:.71;
}
.vh-profile .vh-prestige-power.is-learned {
    border-color:#dfa45d;
    background:linear-gradient(145deg,#4b3320,#261c16);
    box-shadow:0 0 16px rgba(245,163,61,.19),inset 0 1px 0 rgba(255,221,164,.18);
}
.vh-profile .vh-prestige-power:hover,
.vh-profile .vh-prestige-power:focus-visible,
.vh-profile .vh-prestige-power.vh-selected {
    transform:translateY(-2px);
    z-index:2;
    outline:none;
    border-color:#ffb655;
    background:#412b1f;
    box-shadow:0 0 0 2px rgba(245,163,61,.13),0 7px 19px rgba(0,0,0,.42);
}
.vh-profile .vh-prestige-power-icon {
    position:relative;
    display:block;
    width:100%;
    height:100%;
    background-position:center;
    background-repeat:no-repeat;
    background-size:contain;
    image-rendering:pixelated;
}
.vh-profile .vh-prestige-power-icon img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    image-rendering:pixelated;
}
.vh-profile .vh-prestige-power-dot {
    position:absolute;
    top:-3px;
    right:-3px;
    width:8px;
    height:8px;
    background:#ffc16a;
    border:1px solid #4b2c11;
    border-radius:50%;
    box-shadow:0 0 8px #f5a33d;
}
.vh-profile .vh-prestige-tier-shelf {
    width:calc(var(--prestige-columns)*var(--prestige-node) + (var(--prestige-columns) - 1)*var(--prestige-gap) + 32px);
    max-width:100%;
    height:5px;
    margin-top:13px;
    border-radius:2px;
    border-top:1px solid #927052;
    background:linear-gradient(90deg,transparent,#573b32 15%,#5c3d35 50%,#573b32 85%,transparent);
    box-shadow:0 2px 7px rgba(0,0,0,.5);
}
.vh-profile .vh-prestige-finish {
    margin-top:4px;
    color:#9d806d;
    letter-spacing:.22em;
    font-size:9px;
    font-weight:800;
}
.vh-profile .vh-prestige-legend {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
    padding-top:17px;
    color:#bdab98;
    font-size:12px;
}
.vh-profile .vh-prestige-legend span {display:inline-flex;align-items:center;gap:8px;}
.vh-profile .vh-prestige-legend-dot {
    display:inline-block;
    border-radius:50%;
    width:9px;height:9px;
    background:#65534b;
    border:1px solid #8e715f;
}
.vh-profile .vh-prestige-legend-dot.is-learned {
    background:#f5a33d;
    border-color:#f9c879;
}
.vh-prestige-tooltip-tier {
    border-top:1px solid #60422f;
    padding-top:8px;
    margin-top:12px;
    color:#ad927c;
    font-size:11px;
}
.vh-profile .vh-prestige-other {
    margin-top:18px;
    border:1px solid #604229;
    border-radius:9px;
    padding:13px 16px;
    font-size:12px;
    color:#bda890;
}
.vh-profile .vh-prestige-other summary{cursor:pointer;color:#ffd08d;font-weight:700;}
.vh-profile .vh-prestige-other-entries {display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;}
.vh-profile .vh-prestige-other-entries span{background:#2b1e16;border:1px solid #57402c;padding:8px 10px;border-radius:6px;}
.vh-profile .vh-prestige-other-entries strong{margin-left:8px;color:#f5a33d;}
@media (max-width:570px) {
    .vh-profile .vh-prestige-stage {--prestige-node:36px;--prestige-gap:8px;padding:13px 5px 24px;}
    .vh-profile .vh-prestige-power {border-radius:7px;padding:4px;}
    .vh-profile .vh-prestige-apex {height:104px;}
    .vh-profile .vh-prestige-tier {padding-bottom:11px;}
    .vh-profile .vh-prestige-tier-shelf {margin-top:10px;}
    .vh-profile .vh-prestige-finish {font-size:8px;}
}
@media (prefers-reduced-motion:reduce) {
    .vh-profile .vh-prestige-power {transition:none;}
}

/* ===========================================================
   PRESTIGE EMBLEM GUIDE — v29
   Reuses the floating talent tooltip; no new JavaScript needed.
   =========================================================== */
.vh-profile .vh-prestige-emblem {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: help;
    transition: transform .15s ease, filter .15s ease;
}
.vh-profile .vh-prestige-emblem:hover,
.vh-profile .vh-prestige-emblem:focus-visible,
.vh-profile .vh-prestige-emblem.vh-selected {
    transform: scale(1.06);
    filter: drop-shadow(0 0 12px rgba(212, 148, 241, .34));
}
.vh-profile .vh-prestige-emblem:focus-visible {
    outline: 2px solid #d8a9ef;
    outline-offset: 4px;
}
.vh-talent-popover .vh-prestige-guide-title {
    color: #e3b0f1;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.3;
}
.vh-talent-popover .vh-prestige-guide-subtitle {
    color: #bba7c0;
    font-size: 12px;
    margin-top: 3px;
}
.vh-talent-popover .vh-prestige-guide-rules {
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(194, 131, 205, .46);
    border-bottom: 1px solid rgba(194, 131, 205, .46);
    color: #f1e3ee;
    line-height: 1.55;
}
.vh-talent-popover .vh-prestige-guide-owned {
    color: #fff3e7;
    font-weight: 650;
}
.vh-talent-popover .vh-prestige-guide-owned strong {
    color: #ffc16a;
    font-weight: 850;
}
.vh-talent-popover .vh-prestige-guide-bonus {
    color: #c6b2c4;
    font-size: 12px;
    margin: 3px 0 0;
}
.vh-talent-popover .vh-prestige-guide-bonus strong { color: #ffca87; }
@media (prefers-reduced-motion: reduce) {
    .vh-profile .vh-prestige-emblem { transition: none; }
}


/* ==========================================================
   GREED PROGRESSION v30 — points overlay + learned nodes
   ========================================================== */
.vh-profile .vh-greed-content {display:flex;flex-direction:column;gap:18px;}
.vh-profile .vh-greed-hero {
    position:relative; min-height:210px; display:flex;align-items:center;
    padding:34px 235px 34px 29px; isolation:isolate; overflow:hidden;
    border:1px solid #80522f; border-radius:15px;
    background:
      radial-gradient(circle at 90% 40%, rgba(248,174,73,.18),transparent 40%),
      radial-gradient(circle at 4% 50%, rgba(135,91,40,.11),transparent 48%),
      linear-gradient(130deg,#2e1d13 0%,#1a120e 64%,#140e0c 100%);
}
.vh-profile .vh-greed-hero::before {content:"";position:absolute;inset:0;pointer-events:none;opacity:.15;background:repeating-linear-gradient(125deg,transparent 0 18px,#a57647 19px,transparent 20px 50px);z-index:-1;}
.vh-profile .vh-greed-hero-main {display:flex;align-items:center;gap:24px;min-width:0;}
.vh-profile .vh-greed-emblem {flex:0 0 78px;width:78px;height:78px;display:grid;place-items:center;border-radius:24px;transform:rotate(45deg);border:1px solid #b67b3e;background:linear-gradient(145deg,#57311d,#20150d);box-shadow:0 0 32px #ec973533,inset 0 0 18px #eca74e26;}
.vh-profile .vh-greed-emblem span {color:#ffc977;font-size:45px;line-height:1;transform:rotate(-45deg);text-shadow:0 0 22px #fba84388;}
.vh-profile .vh-greed-kicker {color:#f8a746;letter-spacing:.15em;font-weight:850;font-size:10px;}
.vh-profile .vh-greed-hero-title {font-size:clamp(26px,3.1vw,42px);font-weight:900;line-height:1.15;letter-spacing:-.035em;color:#fff0db;margin:8px 0 10px;}
.vh-profile .vh-greed-hero-title em {color:#ffc16a;font-style:normal;}
.vh-profile .vh-greed-hero p {margin:0;color:#cdb39f;font-size:13px;line-height:1.6;max-width:510px;}
.vh-profile .vh-greed-points-overlay {position:absolute;top:50%;right:30px;transform:translateY(-50%);width:165px;height:165px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;border-radius:50%;border:2px solid #cd8841;background:radial-gradient(circle at 40% 22%,#5e3a1f 0%,#2d1a10 55%,#1b120d 100%);box-shadow:0 0 0 7px rgba(245,163,61,.06),0 0 40px rgba(239,154,50,.19),inset 0 0 25px rgba(0,0,0,.4);}
.vh-profile .vh-greed-points-icon {color:#fbd395;font-size:16px;line-height:1;}
.vh-profile .vh-greed-points-overlay strong {color:#ffd38c;font-size:50px;line-height:1.07;font-weight:900;font-variant-numeric:tabular-nums;}
.vh-profile .vh-greed-points-overlay span:not(.vh-greed-points-icon) {color:#ffb64d;font-size:10px;font-weight:900;letter-spacing:.12em;}
.vh-profile .vh-greed-points-overlay small {color:#a98f76;font-size:9px;letter-spacing:.16em;}
.vh-profile .vh-greed-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.vh-profile .vh-greed-stat {min-width:0;display:flex;flex-direction:column;gap:9px;padding:17px 16px;border:1px solid #65442b;border-radius:11px;background:linear-gradient(155deg,#2b1c13,#1b120e);}
.vh-profile .vh-greed-stat span {font-size:11px;color:#cfb398;font-weight:700;}
.vh-profile .vh-greed-stat strong {color:#ffd18b;font-weight:900;font-size:30px;line-height:1;font-variant-numeric:tabular-nums;}
.vh-profile .vh-greed-stat small {font-size:10px;color:#a18a76;line-height:1.5;}
.vh-profile .vh-greed-stat-ascension {border-color:#594039;background:linear-gradient(155deg,#29201c,#1d1513);}
.vh-profile .vh-greed-stat-ascension strong {color:#cfb7fa;}
.vh-profile .vh-greed-nodes-panel {padding:22px;border:1px solid #664029;border-radius:13px;background:linear-gradient(150deg,#251910,#17100c);}
.vh-profile .vh-greed-nodes-head {display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #513620;padding-bottom:16px;margin-bottom:17px;}
.vh-profile .vh-greed-nodes-head h3 {font-size:21px;color:#fff1de;margin:5px 0 0;font-weight:850;}
.vh-profile .vh-greed-nodes-head h3 em {color:#ffc16a;font-style:normal;}
.vh-profile .vh-greed-node-count {color:#d3a97b;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid #6c4d31;border-radius:24px;padding:6px 11px;background:#322215;}
.vh-profile .vh-greed-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:29px 12px;text-align:center;border:1px dashed #5d402b;border-radius:10px;background:#1a120e;}
.vh-profile .vh-greed-empty-symbol {display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#382517;border:1px solid #785331;font-size:35px;color:#e8ac65;}
.vh-profile .vh-greed-empty strong {font-size:15px;color:#ffe0b6;}
.vh-profile .vh-greed-empty span {max-width:530px;color:#aa9585;font-size:12px;line-height:1.5;}
.vh-profile .vh-greed-nodes {display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:16px 12px;}
.vh-profile .vh-greed-node-entry {display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0;text-align:center;}
.vh-profile .vh-greed-node {position:relative;width:62px;height:62px;padding:9px;display:grid;place-items:center;appearance:none;border:1px solid #af7740;border-radius:11px;background:linear-gradient(145deg,#3b281b,#241910);box-shadow:inset 0 1px 0 #b77a3733;cursor:pointer;transition:transform .14s,border-color .14s,background .14s;}
.vh-profile .vh-greed-node:hover,.vh-profile .vh-greed-node:focus-visible,.vh-profile .vh-greed-node.vh-selected {outline:none;transform:translateY(-2px);border-color:#ffca80;background:#4c3120;}
.vh-profile .vh-greed-node-icon {width:38px;height:38px;display:grid;place-items:center;color:#f3b66a;font-size:26px;}
.vh-profile .vh-greed-node-icon img {max-width:38px;max-height:38px;image-rendering:pixelated;}
.vh-profile .vh-greed-node-check {position:absolute;right:-6px;bottom:-5px;display:grid;place-items:center;width:20px;height:20px;background:#24452c;border:1px solid #67a575;color:#a7f2b4;border-radius:50%;font-size:12px;font-weight:800;}
.vh-profile .vh-greed-node-label {color:#e8d4c2;font-size:11px;line-height:1.35;overflow-wrap:anywhere;}
.vh-profile .vh-greed-note {font-size:11px;line-height:1.55;color:#977e6c;margin:0;}
@media(max-width:860px){.vh-profile .vh-greed-hero{padding-right:210px;}.vh-profile .vh-greed-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.vh-profile .vh-greed-hero{padding:23px 20px;min-height:0;display:flex;flex-direction:column;gap:22px;align-items:stretch;}.vh-profile .vh-greed-hero-main{gap:15px;}.vh-profile .vh-greed-emblem{width:52px;height:52px;flex-basis:52px;border-radius:16px;}.vh-profile .vh-greed-emblem span{font-size:32px;}.vh-profile .vh-greed-points-overlay{position:static;transform:none;border-radius:12px;width:100%;height:auto;padding:15px 20px;flex-direction:row;gap:12px;justify-content:center;flex-wrap:wrap;}.vh-profile .vh-greed-points-overlay strong{font-size:30px;}.vh-profile .vh-greed-points-overlay small{font-size:9px;}.vh-profile .vh-greed-stats{gap:9px;}.vh-profile .vh-greed-stat{padding:14px 12px;}.vh-profile .vh-greed-nodes-panel{padding:15px;}.vh-profile .vh-greed-nodes{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));}}
@media(prefers-reduced-motion:reduce){.vh-profile .vh-greed-node{transition:none;}}


/* ================================================
   GREED TREE (v31): Server-authoritative layout
   ================================================ */
.vh-profile .vh-greed-tree-panel {
    padding:20px 18px 18px;
    border:1px solid #6b462d;
    border-radius:13px;
    background:linear-gradient(145deg,#25190f 0%,#16100d 100%);
    min-width:0;
}
.vh-profile .vh-greed-tree-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #51351f;padding-bottom:14px}
.vh-profile .vh-greed-tree-heading h3 {font-size:21px;font-weight:850;color:#fff1dc;margin:6px 0 0}
.vh-profile .vh-greed-tree-heading h3 em {color:#ffc16a;font-style:normal}
.vh-profile .vh-greed-tree-hint {font-size:11px;color:#a9988a;margin:12px 0 14px}
.vh-profile .vh-greed-tree-scroll {max-width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#68462a #160e0b;background:radial-gradient(ellipse at center,#221b17,#110f0e 72%);border:1px solid #493323;border-radius:12px}
.vh-profile .vh-greed-tree-canvas {position:relative;margin:0 auto;isolation:isolate;background-image:linear-gradient(#eab67106 1px,transparent 1px),linear-gradient(90deg,#eab67106 1px,transparent 1px);background-size:80px 80px;}
.vh-profile .vh-greed-tree-lines {position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:0}
.vh-profile .vh-greed-tree-lines line {stroke-width:1.6;stroke:rgba(194,162,136,.29);stroke-linecap:round}
.vh-profile .vh-greed-tree-lines line.is-acquired {stroke:#d69c56;stroke-width:2.1;filter:drop-shadow(0 0 3px #dfa75b55)}
.vh-profile .vh-greed-tree-node {position:absolute;z-index:1;transform:translate(-50%,-50%);width:36px;height:36px;display:flex;justify-content:center;align-items:center;padding:5px;border-radius:9px;border:1px solid #594431;background:linear-gradient(155deg,#30241c,#14100e);box-shadow:0 2px 7px #0007;cursor:pointer;transition:border-color .12s,background .12s,filter .12s}
.vh-profile .vh-greed-tree-node.is-major {width:46px;height:46px;border-color:#8b694c;background:linear-gradient(145deg,#3a291d,#1b130d)}
.vh-profile .vh-greed-tree-node img {width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
.vh-profile .vh-greed-tree-node.is-locked img {filter:grayscale(.8) brightness(.62);opacity:.77}
.vh-profile .vh-greed-tree-node.is-learned {border-color:#e6ad68;background:linear-gradient(145deg,#54361e,#22160f);box-shadow:0 0 16px #da953a26}
.vh-profile .vh-greed-tree-node:hover,.vh-profile .vh-greed-tree-node:focus-visible,.vh-profile .vh-greed-tree-node.vh-selected {outline:none;z-index:3;border-color:#ffc16a;background:#52331f;box-shadow:0 0 0 2px #b47d3e50,0 0 12px #eea2473d}
.vh-profile .vh-greed-tree-placeholder {color:#a58b6b;font-size:20px}
.vh-profile .vh-greed-tree-name {position:absolute;top:calc(100% + 5px);left:50%;width:125px;transform:translateX(-50%);text-align:center;white-space:normal;color:var(--node-color,#ffc16a);font-size:10px;font-weight:750;text-shadow:0 2px 3px #000;pointer-events:none;line-height:1.15}
.vh-profile .vh-greed-tree-tip-detail {font-size:12px;color:#dbb27d;margin-top:7px}
@media (max-width:700px) { .vh-profile .vh-greed-tree-panel{padding:14px 10px} .vh-profile .vh-greed-tree-heading{align-items:flex-start;flex-direction:column} }

/* ================================================
   GREED TREE v33 — one responsive, scrollbar-free tree
   ================================================ */
.vh-profile .vh-greed-tree-scroll {
    width:100%;
    max-width:100%;
    max-height:none;
    overflow:visible;
    border-radius:12px;
    scrollbar-width:none;
}
.vh-profile .vh-greed-tree-canvas {
    position:relative;
    width:100%;
    height:auto;
    aspect-ratio:var(--tree-ratio, 3 / 2);
    container-type:inline-size;
    isolation:isolate;
    background-image:
      linear-gradient(rgba(234,182,113,.035) 1px,transparent 1px),
      linear-gradient(90deg,rgba(234,182,113,.025) 1px,transparent 1px);
    background-size:9% 11%;
}
.vh-profile .vh-greed-tree-lines {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:0;
    overflow:hidden;
}
.vh-profile .vh-greed-tree-lines line {
    stroke-width:1.5;
    stroke:rgba(190,157,129,.37);
}
.vh-profile .vh-greed-tree-node {
    width:clamp(12px,2.6cqw,31px);
    height:clamp(12px,2.6cqw,31px);
    padding:clamp(1px,.3cqw,4px);
    border-radius:clamp(3px,.55cqw,7px);
    z-index:2;
}
.vh-profile .vh-greed-tree-node.is-major {
    width:clamp(16px,3.25cqw,38px);
    height:clamp(16px,3.25cqw,38px);
}
.vh-profile .vh-greed-tree-placeholder {
    font-size:clamp(9px,1.5cqw,18px);
}
.vh-profile .vh-greed-tree-label-layer {
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:3;
}
.vh-profile .vh-greed-tree-label {
    position:absolute;
    display:block;
    box-sizing:border-box;
    padding:1px 2px;
    text-align:center;
    color:var(--label-color,#ffc16a);
    background:rgba(15,10,8,.79);
    border-radius:3px;
    font-size:clamp(6px,.93cqw,10px);
    font-weight:800;
    line-height:1.15;
    white-space:normal;
    overflow-wrap:normal;
    text-shadow:0 1px 2px #000;
    pointer-events:none;
}
.vh-profile .vh-greed-tree-node:hover,
.vh-profile .vh-greed-tree-node:focus-visible,
.vh-profile .vh-greed-tree-node.vh-selected {
    z-index:4;
}
@media(max-width:700px){
  .vh-profile .vh-greed-tree-panel {padding:14px 8px}
  .vh-profile .vh-greed-tree-hint {font-size:11px}
}

/* ==========================================================
   FPK ARMORY V35 — BUILDS / SKILL ALTAR
   Compact, wrapped rows, per-skill ranks and Export controls.
   ========================================================== */
.vh-profile .vh-builds-panel { padding: clamp(20px, 3vw, 36px); font-family:"Segoe UI",Arial,sans-serif; }
.vh-profile .vh-build-page-intro {
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    padding-bottom:18px;border-bottom:1px solid #4b301e;margin-bottom:6px;
}
.vh-profile .vh-build-page-intro h2 {margin:5px 0 0;color:#fff3e7;}
.vh-profile .vh-build-section {
    border-bottom:1px solid rgba(141,83,39,.36);padding:26px 0 30px;
}
.vh-profile .vh-build-section:last-of-type {border-bottom:0;}
.vh-profile .vh-build-section-heading {
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    margin-bottom:20px;
}
.vh-profile .vh-build-section-headings h3 {
    margin:0;color:#f5a33d;font-size:clamp(19px,2vw,23px);
    font-weight:850;text-transform:uppercase;letter-spacing:.035em;
}
.vh-profile .vh-build-subtitle {
    display:block;margin-top:5px;color:#b79a85;font-size:12px;letter-spacing:.02em;
}
.vh-profile .vh-build-export {
    display:inline-flex;align-items:center;justify-content:center;min-width:96px;
    padding:10px 19px;border-radius:999px;border:1px solid #ffb34b;
    background:linear-gradient(180deg,#ffc353,#f69b16);color:#221006;
    font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;
    cursor:pointer;transition:filter .15s ease,transform .15s ease;
}
.vh-profile .vh-build-export:hover:not(:disabled) {filter:brightness(1.12);transform:translateY(-1px);}
.vh-profile .vh-build-export:focus-visible {outline:2px solid #fff3e7;outline-offset:3px;}
.vh-profile .vh-build-export:disabled {opacity:.35;cursor:not-allowed;}
.vh-profile .vh-build-export.is-copied {background:#5b945c;border-color:#92cb84;color:#fff;}
.vh-profile .vh-build-export.is-error {background:#963b32;border-color:#f58b77;color:#fff;}
.vh-profile .vh-build-skills {
    display:flex;flex-wrap:wrap;align-content:start;gap:12px 10px;
    max-width:1000px;
}
.vh-profile .vh-build-skill {
    position:relative;flex:0 0 47px;width:47px;height:47px;
    display:grid;place-items:center;padding:5px 5px 11px;
    border:1px solid #62452d;border-radius:12px;
    background:linear-gradient(150deg,#251a13,#100e0d);
    box-shadow:inset 0 1px 0 rgba(255,193,106,.10);
    color:#ffc16a;cursor:pointer;overflow:visible;
    transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.vh-profile .vh-build-skill:hover,
.vh-profile .vh-build-skill.vh-selected,
.vh-profile .vh-build-skill:focus-visible {
    border-color:#f5a33d;background:#382316;z-index:3;transform:translateY(-2px);
}
.vh-profile .vh-build-skill:focus-visible {outline:2px solid #f5a33d;outline-offset:2px;}
.vh-profile .vh-build-skill-image {display:block;width:34px;height:34px;image-rendering:pixelated;}
.vh-profile .vh-build-skill-image img {width:100%;height:100%;object-fit:contain;image-rendering:pixelated;}
.vh-profile .vh-build-skill-rank {
    position:absolute;bottom:0;left:50%;transform:translateX(-50%);
    font-size:10px;font-weight:900;color:#ffc537;text-shadow:0 1px 2px #000;
    white-space:nowrap;line-height:1.15;letter-spacing:-.025em;
    background:rgba(11,9,8,.93);padding:1px 4px 2px;border-radius:4px;
}
.vh-profile .vh-build-empty {
    color:#b9a08c;padding:20px 18px;margin:0;
    background:#20160f;border:1px dashed #5e3e28;border-radius:10px;
}
.vh-profile .vh-build-greed-count {font-size:11px;color:#b69b83;margin:13px 0 0;}
.vh-profile .vh-build-footer-note {font-size:12px;line-height:1.65;color:#a88c78;margin:16px 0 0;}
@media(max-width:600px) {
    .vh-profile .vh-build-section-heading {align-items:flex-start;}
    .vh-profile .vh-build-export {min-width:78px;padding:9px 12px;}
    .vh-profile .vh-build-skills {gap:9px 8px;}
    .vh-profile .vh-build-skill {width:43px;height:43px;flex-basis:43px;}
    .vh-profile .vh-build-skill-image {width:31px;height:31px;}
}
@media(prefers-reduced-motion:reduce) {
    .vh-profile .vh-build-export,.vh-profile .vh-build-skill {transition:none;}
}
