.vg-media { margin: 18px 0 24px; max-width: 100%; }
.vg-media-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; cursor: zoom-in; }
.vg-media img { display: block; max-width: 100%; height: auto; border-radius: 4px; image-rendering: pixelated; }
.vg-media figcaption { margin-top: 9px; color: #bdb9ad; font-size: 13px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.vg-media-details { display: block; margin-top: 6px; color: #b4c7b9; font-size: 12px; line-height: 1.5; }
.v-page-content .vg-media figcaption, .v-page-content .vg-rank-emblems figcaption, .v-page-content .vg-cadence figcaption { color: #473723; }
.v-page-content .vg-media-details { color: #335339; }
.v-page-content .vg-gallery-search { color: #44361d; }
.v-page-content .vg-avatar-fallback { color: #594833; }
.v-page-content .vg-gallery-empty { color: #473723; }
.vg-media-link:focus-visible, .vg-lightbox button:focus-visible { outline: 2px solid #e8c871; outline-offset: 4px; }
.vg-sprite-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); gap: 14px 12px; margin: 18px 0 24px; }
.vg-sprite-gallery .vg-media { margin: 0; min-width: 0; padding: 12px 6px; border-bottom: 1px solid #494638; }
.vg-sprite .vg-media-link { display: grid; place-items: center; min-height: 94px; }
.vg-sprite img { width: auto; height: auto; max-width: 112px; max-height: 88px; min-width: 32px; object-fit: contain; }
.vg-sprite-gallery .vg-sprite img { transform: scale(1.5); max-width: 72px; max-height: 54px; }
.vg-sprite-gallery .vg-media[hidden] { display: none; }
.vg-gallery-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: #e1d5b4; font-size: 13px; }
.vg-gallery-search input { box-sizing: border-box; width: 240px; max-width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #655d48; border-radius: 4px; background: #171a1b; color: #f0eadb; }
.vg-gallery-empty { color: #bdb9ad; }
.vg-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vg-comparison section { min-width: 0; }
.vg-comparison h3 { margin: 14px 0 4px; font-size: 16px; }
.vg-comparison .vg-sprite-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vg-comparison figcaption { font-size: 11px; }
.vg-vocation-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; border-top: 1px solid #514936; padding-top: 20px; }
.vg-vocation-showcase > h2 { grid-column: 1 / -1; margin: 0 0 10px; }
.vg-vocation-choice { min-width: 0; text-align: center; }
.vg-vocation-choice h3 { font-size: 15px; }
.vg-vocation-choice .vg-media { margin: 10px 0; }
.vg-vocation-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; margin-right: 5px; }
.vg-vip-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style-position: inside; }
.vg-vip-sequence li { min-width: 0; border-bottom: 1px solid #514936; }
.vg-vip-sequence h3 { display: inline; font-size: 15px; }
.vg-cadence { margin: 20px 0; }
.vg-cadence-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; margin: 12px 0; }
.vg-cadence-row strong { font-size: 13px; }
.vg-cadence-track { height: 34px; background: #171b1c; border: 1px solid #494b42; }
.vg-cadence-track span { display: flex; align-items: center; justify-content: flex-end; box-sizing: border-box; height: 100%; padding-right: 9px; background: #806a39; color: #fff; font-size: 12px; }
.vg-cadence-row:nth-child(2) .vg-cadence-track span { background: #4b815d; }
.vg-cadence figcaption { margin-top: 12px; color: #bdb9ad; font-size: 12px; line-height: 1.5; }
.vg-character-appearance { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.vg-character-appearance img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.vg-online-outfit { display: block; width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; margin: 0 auto; }
.vg-online-outfit[hidden], .vg-character-appearance img[hidden], .vg-avatar-fallback[hidden], .vg-gallery-empty[hidden] { display: none; }
.vg-vip-sequence .vg-sprite img, .vg-vocation-choice .vg-sprite img { width: 64px; height: 64px; object-fit: contain; }
.vanguard-guide[data-guide-page="bosses-raids"] .vg-sprite img { width: 128px; height: 128px; max-width: 160px; max-height: 160px; }
.vanguard-offer-image > a { display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; }
.vanguard-offer-image img { image-rendering: pixelated; }
.vg-avatar-fallback { color: #bdb9ad; font-size: 12px; }
.vg-rank-emblems { display: flex; justify-content: center; gap: 32px; padding: 16px 0; }
.vg-rank-emblems figure { margin: 0; text-align: center; }
.vg-rank-emblems figcaption { margin-top: 10px; font-size: 13px; color: #e3dac6; }
.vg-rank-emblem { display: grid; place-items: center; width: 58px; height: 68px; clip-path: polygon(0 0, 100% 0, 92% 70%, 50% 100%, 8% 70%); background: #6c392a; color: #f8df9e; font-family: Georgia, serif; font-size: 25px; font-weight: bold; }
.vg-rank-titan { background: #344d57; color: #e1e9ed; }
.vg-rank-hero { background: #3c5141; color: #d8e6bb; }
.vg-lightbox { box-sizing: border-box; width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 50px 16px 16px; border: 1px solid #716344; border-radius: 6px; background: #101415; color: #eee6d3; }
.vg-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.vg-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 155px); width: auto; height: auto; margin: auto; object-fit: contain; image-rendering: pixelated; }
.vg-lightbox img.vg-lightbox-sprite { width: 256px; height: 256px; }
.vg-lightbox p { margin: 12px 40px 0; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.vg-lightbox button { display: grid; place-items: center; position: absolute; width: 36px; height: 36px; border: 1px solid #62583f; border-radius: 4px; background: #232929; color: #fff0cf; font-size: 24px; cursor: pointer; }
.vg-lightbox-close { top: 8px; right: 10px; }
.vg-lightbox-zoom { top: 8px; right: 54px; }
.vg-lightbox-zoom[hidden] { display: none; }
.vg-lightbox-canvas { max-height: calc(100dvh - 185px); overflow: auto; overscroll-behavior: contain; }
.vg-lightbox.vg-zoomed .vg-lightbox-canvas img { max-width: none; max-height: none; }
.vg-lightbox-prev { bottom: 10px; left: 10px; }
.vg-lightbox-next { bottom: 10px; right: 10px; }
.vg-lightbox button:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) {
    .vg-online-summary > tbody > tr,
    .vg-online-summary > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; }
    .vg-online-summary > tbody > tr > td { padding: 0 0 10px !important; }
    .vg-vocation-icon { display: block; margin: 0 auto 4px; }
    .vg-character-details > tbody > tr,
    .vg-character-details > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
    .v-page-content .TableContainer .vg-character-details td,
    .v-page-content .TableContainer .vg-character-account-list td { overflow-wrap: normal; word-break: normal; }
    .vg-character-details .TableContent { table-layout: auto; }
    .vg-character-table-scroll { max-width: 100%; overflow-x: auto; contain: inline-size; }
    .v-page-content .TableContainer .vg-character-skills,
    .v-page-content .TableContainer .vg-character-account-list { min-width: 500px !important; max-width: none !important; }
    .vg-comparison { grid-template-columns: 1fr; gap: 4px; }
    .vg-sprite-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .vg-vocation-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-vip-sequence { grid-template-columns: 1fr; }
    .vg-media { margin: 14px 0 20px; }
    .vg-rank-emblems { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .vg-media, .vg-lightbox { scroll-behavior: auto; } }
