/* CSS Document */

:root {
    /* Background color derived */
    --pv-bg-body: #111111;
    --pv-bg-panel: #1b1b1b;
    --pv-bg-card-d: #101010;
    --pv-bg-card-l: #202020;
    --pv-bd-main: #3a3a3a;
    --pv-bd-card: #272727;
    --pv-bd-popup: #505050;
    --pv-bg-input: #545454;
    --pv-bg-btn: #313131;
    --pv-bg-btn2: #3f3f3f;
    /* Static dark-mode values */
    --pv-text: #fff;
    --pv-text-muted: #aaa;
    --pv-text-dim: #888;
    --pv-shadow: #000;
    --pv-sidebar-shadow: 5px 0px 5px #0a0a0a;
    --pv-scroll-thumb: #818181;
    --pv-scroll-track: #141414;
    --pv-img-filter: none;
    --pv-receding-shadow: none;
    /* Value / diff colors */
    --pv-val-top: #7dc0f5;
    --pv-val-mid: #acf56a;
    --pv-val-low: #f5c56a;
    --pv-diff-pos: #acf56a;
    --pv-diff-neg: #f56a6a;
    /* Stability colors */
    --pv-rising: #3fc143;
    --pv-overpaidfor: #83c5f9;
    --pv-doingwell: #716ffb;
    --pv-improving: #ff9d1e;
    --pv-fluctuating: #ac21ff;
    --pv-receding: #fff31f;
    --pv-stable: #d1d1d1;
    --pv-underpaidfor: #d7772c;
    --pv-decreasing: #ff1212;
    --pv-unsafe: #d90909;
}

html.pv-light-mode {
    /* Background color derived */
    --pv-bg-body: #ececec;
    --pv-bg-panel: #e1e1e1;
    --pv-bg-card-d: #d3d3d3;
    --pv-bg-card-l: #ebebeb;
    --pv-bd-main: #9d9d9d;
    --pv-bd-card: #b0b0b0;
    --pv-bd-popup: #7f7f7f;
    --pv-bg-input: #a9a9a9;
    --pv-bg-btn: #cccccc;
    --pv-bg-btn2: #bebebe;
    /* Static light overrides */
    --pv-text: #000;
    --pv-text-muted: #555;
    --pv-text-dim: #666;
    --pv-shadow: #9b9b9b;
    --pv-sidebar-shadow: 5px 0px 5px #9b9b9b;
    --pv-scroll-thumb: #888;
    --pv-scroll-track: #d8d8d8;
    --pv-img-filter: invert(1);
    --pv-receding-shadow: -1px 0px 0 #000, 1px 0px 0 #000, 0px -1px 0 #000, 0px 0.5px 0 #000;
    /* Value / diff colors */
    --pv-val-top: #3094e3;
    --pv-val-mid: #66b71c;
    --pv-val-low: #e7a72e;
    --pv-diff-pos: #66b71c;
    --pv-diff-neg: #ef3737;
    /* Stability colors */
    --pv-rising: #1c9520;
    --pv-overpaidfor: #5497cb;
    --pv-doingwell: #4745e1;
    --pv-improving: #ed8600;
    --pv-fluctuating: #9000e5;
    --pv-receding: #fff31f;
    --pv-stable: #5b5b5b;
    --pv-underpaidfor: #ad5715;
    --pv-decreasing: #f10000;
    --pv-unsafe: #c10000;
}

/* ─────────────────────────────────────────────────────────── */

/* General Classes */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

noscript {
    position: fixed;
    z-index: 2;
    top: 10px;
    border: 2px solid #fff;
    border-radius: 10px;
    background-color: #666666;
    padding: 8px;
    text-align: center;
    margin-left: 25%;
    margin-right: 25%;
    width: 50%;
}

body {
    background-color: var(--pv-bg-body);
    font-family: Inter, sans-serif;
    color: var(--pv-text);
    font-size: 1em;
    font-weight: 400;
    min-width: 730px;
}

h3,
h4,
h5 {
    font-family: Inter, sans-serif;
    font-size: 1.05em;
}

b {
    font-weight: 800;
}

a {
    color: #1e73be;
}

a:hover {
    transition-duration: 0.15s;
    filter: opacity(0.5);
}

hr {
    border: 1px solid #5c5c5c;
}

.main-wrapper {
    width: 100%;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
}

.svl-content {
    width: 98%;
    margin-right: auto;
    margin-left: auto;
}

section.tier-tables {
    align-content: center;
    font-family: Inter, cursive;
    font-size: 35px;
    line-height: 1.3;
    user-select: none;
}

#changelog {
    border-top: 2px solid var(--pv-bd-popup);
    margin: 20px 0 0;
    user-select: text;
}

.tierheading {
    font-family: Inter, cursive;
    font-weight: 600;
    text-align: center;
    color: var(--pv-text);
    font-size: 35px;
    line-height: 1.2;
    margin-bottom: 10px;
    user-select: text;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 40px;
}

.heading {
    font-family: Inter, cursive;
    font-weight: 700;
    text-align: center;
    color: var(--pv-text);
    font-size: 22px;
    line-height: 2;
    margin-bottom: 15px;
    margin-top: 40px;
}

::selection {
    color: #fff;
    background-color: #000000;
}

/* Content Elements */

.intro-text {
    text-align: center;
    font-family: Inter, cursive;
    font-weight: 600;
    color: var(--pv-text);
    font-size: 28px;
    line-height: 1;
    padding: 20px 0px 10px 0px;
    margin-bottom: 10px;
}

/* Local Navigation Menu */

.localnav {
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1px;
    background-color: var(--pv-bg-card-d);
    border: 2px solid var(--pv-bd-main);
    box-shadow: 0 0 8px var(--pv-shadow);
    border-radius: 1em;
    text-align: center;
    text-decoration: none;
    padding: 4px 10px;
    color: #ffffff;
}

div .localnav {
    display: inline-block;
    margin: 5px;
}

div .localnav:hover {
    transition-duration: 0.15s;
    filter: opacity(0.5);
}

.localnav a {
    text-decoration: none;
}

/* Milestones */

.milestones {
    font-family: Inter, sans-serif;
    line-height: 1.5;
    color: var(--pv-text);
}

.milestones h3 {
    font-size: 22px;
}

.milestones td {
    font-size: 18px;
    text-align: center;
    padding-top: 10px;
    border-bottom: var(--pv-bd-card) 1px solid;
}

/* Team Tables */

table.team-table th {
    background-color: #666666;
    font-family: Inter, cursive;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.4;
    width: 650px;
    border-radius: 15px 15px 0 0;
}

table.team-table tr {
    font-family: Inter, serif;
    font-weight: 700;
    text-align: center;
    color: #000000;
    font-size: 25px;
    line-height: 1.2;
}

.team-table a:hover {
    color: #14548C;
    filter: opacity(1);
}

table.team-table tr:nth-child(even) td {
    background-color: #b7b7b7;
    text-decoration: underline;
}

table.team-table tr:nth-child(odd) td {
    background-color: #999999;
    text-decoration: underline;
}

table.team-table tr:last-child td {
    border-radius: 0 0 15px 15px;
}

/* Server List Classes */

#server-list a {
    display: inline-block;
    min-width: 220px;
    margin: 5px 2px;
    padding: 6px 0px;
    font-size: 18px;
    background-color: var(--pv-bg-panel);
    border-radius: 25px;
    box-shadow: 0 0 2px var(--pv-shadow);
}

#server-list a:hover {
    filter: opacity(0.5);
    transition-duration: 0.15s;
}

/* Mobile Trading Server Stylization Optimization */

@media only screen and (max-width: 768px) {
    #server-list a {
        min-width: 260px;
        margin: 8px 15px;
        font-size: 24px !important;
    }
}

/* Feeds /-/ Misc */

.homefeed .homefeed-cell {
    display: inline-block;
}

.advfeed {
    border: #fff 2px solid;
    border-radius: 10px;
    width: 1004px;
    padding: 5px;
    background-color: #1f1f1f;
    min-height: 145px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    text-align: left;
    display: flex;
}

.discordfeed {
    border: #fff 2px solid;
    border-radius: 10px;
    padding: 5px;
    padding-left: 8px;
    ;
    background-color: #1f1f1f;
    min-height: 145px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    text-align: left;
}

.callout {
    width: 1000px;
    /*border: #fff 1.5px solid;*/
    margin-top: 25px;
    margin-bottom: 20px;
}

.content-ad {
    padding-top: 15px;
}

.link-table {
    padding: 20px 0px;
}

/* Header */

header {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--pv-bd-popup);
    margin: 10px 0;
    width: 100%;
}

header img {
    width: 42vw;
    min-width: 520px;
}

.headertext {
    font-family: Inter, cursive;
    font-weight: 500;
    font-size: 18px;
    color: var(--pv-text);
    line-height: 1.3;
    text-align: center;
    width: auto;
}

@media only screen and (max-width: 768px) {
    .headertext {
        font-size: 18px;
    }
}

/* Title Area Classes */

.title-img {
    display: block;
    margin-bottom: 10px;
    margin-top: 18px;
    height: 135px;
}

.home-title-img {
    display: block;
    margin-bottom: 20px;
    margin-top: 10px;
    height: 160px;
}

.title-area {
    font-family: Inter, cursive;
    font-weight: 600;
    font-size: 35px;
    line-height: 1.3;
}

.title-area svg {
    user-select: none;
    width: 100%;
    letter-spacing: -5px;
    font-weight: 500;
}

.title-area svg text {
    text-anchor: middle;
    dominant-baseline: middle;
    text-rendering: geometricPrecision;
    font-display: 'Fredoka-One';
    font-size: 150px;
}

.title-link {
    background: var(--pv-bg-panel);
    display: inline-block;
    border: 2px var(--pv-bd-main) solid;
    padding: 5px 15px;
    border-radius: 30px;
    box-shadow: 0 0 4px 0 var(--pv-shadow);
    margin-top: 8px;
    color: var(--pv-text);
    text-decoration: none;
}

.pv-back-link {
    color: #5865f2;
    font-family: Inter, sans-serif;
}

.pv-spacer-12 {
    margin-bottom: 12px;
}

/* Footer links default to white in dark mode; html.pv-light-mode .footerNav a /
   .credit a already override this. Was 10 duplicated inline style="" in
   footer markup; consolidated here 2026-07-21. */

.footer-content a {
    color: #fff;
}

.title-link-discord {
    background: linear-gradient(180deg, #5865f2, #333ca3);
    border-color: #2c337f;
    color: #fff;
}

.title-link-roblox {
    background: linear-gradient(180deg, #C4281C, #7b1810);
    border-color: #59110c;
    color: #fff;
}

.title-link img {
    width: 40px;
    margin: 0 0 -8px 14px;
}

.pv-nav-divider {
    display: block;
    width: 100%;
    margin: 10px auto;
    border: none;
    border-top: 1px solid var(--pv-bd-main);
}

hr.pv-divider {
    border: none;
    border-top: 1px solid var(--pv-bd-popup);
    margin: 6px 0;
}

/* Mobile Title Area Stylization Optimization */

@media only screen and (max-width: 768px) {
    #HomeTTL {
        height: 100px;
    }
}

/* Items */

#search {
    width: 220px;
    font-family: Inter;
    background: var(--pv-bg-input);
    margin: 8px 0 20px 0;
    padding: 5px 8px;
    border-radius: 12px;
    border: 2px solid var(--pv-bd-main);
    box-shadow: 0 0 3px 0px var(--pv-shadow);
    color: var(--pv-text);
    font-weight: 600;
    font-size: 16px;
    box-sizing: border-box;
}

#search:focus {
    background: #5b5b67;
}

#searchBttn,
#clearFiltersBttn,
#stabilitySelect,
#eventSelect,
#year,
#sortCombinedSelect {
    font-family: Inter;
    background: var(--pv-bg-btn);
    padding: 5px 8px;
    border-radius: 999px;
    margin: 0 0 0 5px;
    border: 2px solid var(--pv-bd-main);
    box-shadow: 0 0 3px 0px var(--pv-shadow);
    color: var(--pv-text);
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
}

#clearFiltersBttn {
    margin: 10px 0 0 0;
}

#searchBttn:hover,
#clearFiltersBttn:hover,
#stabilitySelect:hover,
#eventSelect:hover,
#year:hover,
#sortCombinedSelect:hover {
    opacity: 0.75;
    transition-duration: 0.15s;
}

#alert {
    color: #ff0000;
    margin: 5px 0;
    height: 20px;
}

::placeholder {
    color: var(--pv-text-muted);
    opacity: 1;
}

#filterMsg {
    font-size: 18px;
    font-weight: 900;
}

#stabilitySelect,
#eventSelect,
#year,
#sortCombinedSelect {
    text-align: center;
    padding: 4px;
    margin: 3px;
}

/* Item Cells */

.tier-tables>.itemcolumn {
    margin: -2px -2px;
}

.itemcolumn {
    width: 330px;
    margin: -2px 1px;
    display: inline-block;
}

/* Ensure consistent spacing for dynamically sorted grids on item pages */

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.itemcell {
    border: var(--pv-bd-card) 3px double;
    border-radius: 12px;
    min-height: 135px;
    width: 330px;
    background: linear-gradient(0deg, var(--pv-bg-card-d) 20%, var(--pv-bg-card-l));
    box-shadow: 0 0 3px 1px var(--pv-shadow);
    user-select: text;
    position: relative;
}

.itemcell-untradable-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 20px;
    z-index: 1;
}

html.pv-light-mode .itemcell {
    box-shadow: 0 0 3px 0px var(--pv-shadow);
}

/* Card layout mode */

html.pv-card-layout .itemcolumn {
    width: 210px;
    margin: -2px -2px;
}

html.pv-card-layout .itemcell,
html.pv-card-layout .itemcell-exp {
    width: 205px;
    padding: 1px 0 5px;
}

html.pv-card-layout .itemcell table,
html.pv-card-layout .itemcell-exp table {
    width: 100%;
}

html.pv-card-layout .itemcell table td,
html.pv-card-layout .itemcell-exp table td {
    display: block;
}

html.pv-card-layout .itemimage {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
    display: flex !important;
    justify-content: center;
}

html.pv-card-layout img.itemimage {
    width: 115px !important;
    height: 115px !important;
    object-fit: contain;
    object-position: center bottom;
    display: block !important;
}

html.pv-card-layout .itemcell-exp img.itemimage {
    padding-top: 0;
}

html.pv-card-layout .itemhead {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    padding-top: 4px;
    width: inherit;
}

html.pv-card-layout .itembody {
    text-align: center;
}

html.pv-card-layout .item-origin-row {
    display: none;
}

html.pv-card-layout .item-origin-row+br {
    display: none;
}

/* Origin rows explicitly kept visible in card mode (untradables; uniques awards) */

html.pv-card-layout .item-origin-row.pv-card-keep {
    display: inline;
}

html.pv-card-layout .item-origin-row.pv-card-keep+br {
    display: revert;
}

html.pv-card-layout .item-contains-row {
    display: none;
}

html.pv-card-layout .itemhead img {
    display: none;
}

html.pv-card-layout .effects {
    min-height: 258px !important;
}

html.pv-card-layout .emotes {
    min-height: 243px !important;
}

html.pv-card-layout .radios {
    min-height: 197px !important;
}

html.pv-card-layout .powers {
    min-height: 228px !important;
}

.itemcell table td {
    padding: 0px;
    vertical-align: top;
}

.itemcell table {
    padding-top: 5.5px;
    padding-bottom: 0px;
    max-width: 318px;
}

/* Taller Item Cells [Used for Sets/Pets/Untradables] */

.itemcell-exp {
    border: var(--pv-bd-card) 3px double;
    border-radius: 12px;
    min-height: 151px;
    width: 330px;
    background: linear-gradient(0deg, var(--pv-bg-card-d) 20%, var(--pv-bg-card-l));
    box-shadow: 0 0 3px 1px var(--pv-shadow);
    user-select: text;
}

.itemcell-exp table td {
    padding: 0px;
    vertical-align: top;
}

.itemcell-exp table {
    padding-top: 5.5px;
    padding-bottom: 0px;
    max-width: 318px;
}

.item-contains-row {
    display: block;
    min-height: 2.7em;
}

.itemcell-exp img.itemimage {
    padding-top: 10.5px;
}

.pv-highlight {
    animation: pv-highlight-flash 5s ease-out;
}

@keyframes pv-highlight-flash {
    0% {
        box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.9);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(88, 101, 242, 0);
    }
}

.itemimage {
    font-family: Inter, sans-serif;
    text-align: left;
    color: var(--pv-text);
    font-size: 16px;
    width: 115px !important;
    height: 115px !important;
    max-width: 122px;
    padding-top: 3px;
    padding-right: 7px;
}

.itemimage:hover {
    filter: opacity(0.9);
    transition-duration: 0.15s;
}

.itemimage[src$="n-a.webp"] {
    filter: var(--pv-img-filter);
}

.itemimage[src$="n-a.webp"]:hover {
    filter: opacity(0.9) var(--pv-img-filter);
}

#popUp-image[src$="n-a.webp"],
.pv-item-card-image[src$="n-a.webp"] {
    filter: var(--pv-img-filter);
}

/* Style for clickable image button wrapper */

td.itemimage button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

td.itemimage button:focus {
    outline: none;
}

.itemhead {
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: underline;
    line-height: 1.3;
    color: var(--pv-text);
    width: 194px;
    padding-top: 3px;
    text-align: left;
}

.itemhead img {
    cursor: help;
    width: 20px;
    float: right;
}

.itembody {
    font-family: Inter, sans-serif;
    font-size: 11.3px;
    line-height: 1.35;
    color: var(--pv-text);
    text-align: left;
    vertical-align: middle;
}

.itembody img {
    margin: 0 1px -4px;
    max-height: 15px;
    border-radius: 50%;
}

.itembody b {
    font-weight: 900;
}

.itemstability {
    font-weight: 800 !important;
}

.rising {
    color: var(--pv-rising);
}

.overpaidfor {
    color: var(--pv-overpaidfor);
}

.doingwell {
    color: var(--pv-doingwell);
}

.improving {
    color: var(--pv-improving);
}

.fluctuating {
    color: var(--pv-fluctuating);
}

.receding {
    color: var(--pv-receding);
    text-shadow: var(--pv-receding-shadow);
}

.stable {
    color: var(--pv-stable);
}

.underpaidfor {
    color: var(--pv-underpaidfor);
}

.decreasing {
    color: var(--pv-decreasing);
}

.unsafe {
    color: var(--pv-unsafe);
}

.rainbow-text {
    background: linear-gradient(90deg, #ff7e7e, #ffbe7d, #ffff7c, #7bff7b, #7d7dff, #c580ff, #ff7e7e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 5s linear infinite;
    text-decoration-color: #fff !important;
}

@keyframes rainbow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

img[src*="stability/stable"] {
    box-shadow: 0 0 0 1px #3c3c3c;
}

html.pv-light-mode img[src*="stability/stable"] {
    box-shadow: none;
}

html.pv-light-mode img[src*="stability/Receding"] {
    box-shadow: var(--pv-receding-shadow);
}

.sidebar img,
footer img,
.itemhead img,
#shout img {
    filter: var(--pv-img-filter);
}

img[alt="Item Badge"] {
    cursor: help;
}

sep::before {
    font-family: 'Arial';
    margin: 0 10px;
    content: '•';
}

/* Mobile Item Grid Optimization (400-500px) */

@media only screen and (max-width: 500px) {
    table.team-table th {
        font-size: 34px;
        line-height: 1.7;
    }
    sep::before {
        font-family: 'Arial';
        margin: 0 10px;
        content: '•';
    }
    /* Tighter separator inside item grid cards only; popups and the
	   item-detail (?detail=) view keep the larger spacing above. */
    .itemcell sep::before,
    .itemcell-exp sep::before {
        margin: 0 5px;
    }
    html,
    body,
    #body {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    .title-area {
        font-size: 24px;
    }
    .title-area img,
    header img {
        max-width: 70%;
        min-width: 0;
        width: auto;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
    .title-img {
        max-width: 100% !important;
        max-height: 120px;
        margin-left: auto;
        margin-right: auto;
    }
    .title-link {
        font-size: 22px;
        padding: 6px 13px;
    }
    .title-link img {
        width: 30px;
        margin: 0 0 -7px 10px;
    }
    .tierheading {
        font-size: 26px;
        margin-top: 25px;
    }
    .pv-catalog-updated {
        font-size: 13px;
    }
    html #shout {
        font-size: 16px !important;
        line-height: 1.15 !important;
    }
    .localnav {
        font-size: 14px;
        line-height: 1;
        padding: 6px 8px;
    }
    div .localnav {
        margin: 3px;
    }
    /* Suggested Pages row (root index) — extra breathing room so the
	   pills aren't prone to misclicks on touch screens. */
    .pv-suggested-pages .localnav {
        margin: 4px 6px;
    }
    #filterMsg {
        font-size: 14px;
    }
    #search {
        width: 60vw;
        max-width: 220px;
    }
    #searchBttn,
    #stabilitySelect,
    #eventSelect,
    #year,
    #sortCombinedSelect {
        font-size: 13px;
        padding: 4px 6px;
        margin: 3px 2px;
    }
    #clearFiltersBttn {
        font-size: 13px;
        padding: 4px 6px;
    }
    #clearFiltersBttn {
        margin: 3px 0 3px -3px;
    }
    .grid {
        gap: 3px;
    }
    .itemcolumn {
        width: calc(50% - 1.5px) !important;
        margin: 0 !important;
    }
    html.pv-card-layout .itemcolumn {
        width: calc((100% - 6px) / 3) !important;
        margin: 0 !important;
    }
    .itemcell,
    .itemcell-exp,
    html.pv-card-layout .itemcell,
    html.pv-card-layout .itemcell-exp {
        width: 100% !important;
        min-height: 0;
        box-sizing: border-box;
    }
    .itemimage {
        width: 60px !important;
        height: 60px !important;
        padding: 0 2px 0;
    }
    .itemcell,
    .itemcell-exp {
        padding: 3px 0;
    }
    .itemcell-exp {
        min-height: 100px;
    }
    .itemcell-exp img.itemimage {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    img.itemimage {
        object-fit: contain;
    }
    img.itemimage {
        box-sizing: border-box;
    }
    html.pv-card-layout img.itemimage {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px;
        padding: 2px 0;
        margin: 2px 0;
    }
    html.pv-card-layout td.itemimage {
        height: auto !important;
    }
    .itemhead {
        font-size: 10px;
        width: auto;
        padding-top: 0;
        padding-bottom: 1px;
        line-height: 1.1;
    }
    html.pv-card-layout .itemhead {
        font-size: 11px;
        line-height: 1.1;
        padding: 0 0 2px;
    }
    html.pv-card-layout .itemcell,
    html.pv-card-layout .itemcell-exp {
        padding: 0 0 3px !important;
    }
    .itembody {
        font-size: 7.5px;
        line-height: 1.2;
    }
    .itembody img {
        max-height: 9px;
        height: 9px;
        margin: 0 1px -2px !important;
    }
    .addvalue,
    .removevalue,
    .customvalue {
        height: 10px !important;
        font-size: 7.5px !important;
    }
    .addvalue,
    .removevalue {
        width: 20px !important;
        margin: 2px 2px 0;
    }
    html:not(.pv-card-layout):not(.pv-list-layout) .addvalue,
    html:not(.pv-card-layout):not(.pv-list-layout) .removevalue {
        margin-top: 0;
    }
    .customvalue {
        width: 10px !important;
    }
    html.pv-card-layout .itembody {
        font-size: 7.5px;
        line-height: 1.2;
    }
    html.pv-card-layout .itembody img {
        max-height: 9px;
        margin: 0 1px -2px !important;
    }
    html.pv-card-layout .addvalue,
    html.pv-card-layout .removevalue,
    html.pv-card-layout .customvalue {
        height: 10px;
        font-size: 7px;
    }
    html.pv-card-layout .addvalue,
    html.pv-card-layout .removevalue {
        width: 14px;
    }
    html.pv-card-layout .customvalue {
        width: 10px;
    }
    .item-origin-row {
        display: none;
    }
    .item-origin-row+br {
        display: none;
    }
    /* Origin rows explicitly kept visible on mobile (untradables; uniques
	   awards) -- same pv-card-keep marker already used to keep them visible
	   in card mode, so these stay consistent across all layout modes. */
    .item-origin-row.pv-card-keep {
        display: inline;
    }
    .item-origin-row.pv-card-keep+br {
        display: revert;
    }
    .pv-pctchange {
        display: none;
    }
    html.pv-card-layout .effects {
        min-height: 172px !important;
    }
    html.pv-card-layout .emotes {
        min-height: 163px !important;
    }
    html.pv-card-layout .powers {
        min-height: 154px !important;
    }
    html.pv-card-layout .radios {
        min-height: 118px !important;
    }
    /* Standard mode: image vertically centered within the row; itemhead/itembody
	   (and the cell content as a whole) stay anchored to the top of the cell. */
    html:not(.pv-card-layout) .itemcell table td.itemimage,
    html:not(.pv-card-layout) .itemcell-exp table td.itemimage {
        vertical-align: middle;
    }
    html:not(.pv-card-layout) .itemcell table td:not(.itemimage),
    html:not(.pv-card-layout) .itemcell-exp table td:not(.itemimage) {
        vertical-align: top;
    }
    html:not(.pv-card-layout) .itemcell,
    html:not(.pv-card-layout) .itemcell-exp {
        display: flex !important;
        align-items: flex-start;
    }
    /* Card mode: no vertical centering anywhere, everything sits at the top. */
    html.pv-card-layout .itemcell table td,
    html.pv-card-layout .itemcell-exp table td {
        vertical-align: top;
    }
    html.pv-card-layout .itemcell,
    html.pv-card-layout .itemcell-exp {
        display: flex !important;
        align-items: flex-start;
    }
    /* The above rule also matches .pv-item-inv-cellwrap.itemcell (the inventory
	   calculator's wrapper in the item-detail row and the popup), which needs to
	   stay display:contents so its inline-flex .controls keeps the text-align:center
	   centering from its parent instead of being blockified into a left-anchored
	   flex item. */
    .pv-item-inv-cellwrap.itemcell {
        display: contents !important;
    }
    .itemcell table,
    .itemcell-exp table {
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }
    .itemcell-untradable-badge {
        height: 16px;
        top: 4px;
        right: 4px;
    }
    html #invCalc {
        width: 170px !important;
        padding: 8px !important;
        bottom: 120px !important;
    }
    html #invCalcTitle {
        font-size: 12px !important;
    }
    html #invValue {
        font-size: 14px !important;
    }
    html #invRange {
        font-size: 11px;
    }
    html #invCalc .pv-open-inventory {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    html #popUp {
        width: 78vw !important;
        top: 5vh !important;
        transform: translateX(-50%) !important;
    }
    html #popUp-body {
        font-size: 16px;
    }
    html .pv-modal {
        top: 5vh !important;
        transform: translateX(-50%) !important;
    }
    .pv-promo-banner-mobile>div:first-child {
        font-size: 4vw !important;
    }
    .pv-promo-banner-mobile a {
        font-size: 4vw !important;
    }
    html #popUpTitle {
        font-size: 20px !important;
    }
    html #popUp .hidebttn {
        font-size: 38px !important;
        top: 9px !important;
        right: 10px !important;
    }
    html #pv-favorite-toggle {
        font-size: 32px !important;
        top: 12px !important;
        right: 44px !important;
    }
    html .svbtext {
        padding: 0 8px !important;
    }
    html .sidebar {
        width: 75vw !important;
        max-width: 290px !important;
        z-index: 10 !important;
    }
    html .sidebar .hidebttn {
        font-size: 68px !important;
        padding: 0 !important;
        top: 2px !important;
        right: 16px !important;
        left: auto !important;
    }
    html nav table {
        width: 100% !important;
    }
    html nav ul {
        width: 100% !important;
    }
    html nav ul a {
        width: 100% !important;
    }
    html nav ul li {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 21px !important;
        padding: 7px 14px !important;
        line-height: 1.6 !important;
    }
    html nav ul li img {
        height: 30px !important;
        padding-right: 12px !important;
    }
    html h3.sidebar-header {
        font-size: 21px !important;
        line-height: 1.2 !important;
        margin: 16px 0 !important;
        padding-left: 10px !important;
    }
    html .viewbttn {
        font-size: 32px !important;
    }
    html .viewbttn div {
        height: 4px !important;
        width: 28px !important;
    }
    html #changelog .footertext {
        font-size: 16px !important;
    }
    html .pv-footer-hide-mobile,
    html .pv-footer-faq {
        display: none !important;
    }
    html footer {
        padding: 20px 12px !important;
    }
    html footer table {
        width: 100% !important;
    }
    html td.footerNav {
        width: auto !important;
    }
    html .footerNav {
        font-size: 12px !important;
    }
    html .footerNav div {
        white-space: nowrap;
    }
    html footer .credit {
        font-size: 14px !important;
    }
    html footer .copyright {
        font-size: 12px !important;
    }
}

/* Footer */

footer {
    clear: both;
    display: block;
    padding: 35px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px var(--pv-bd-popup) solid;
}

.footertext {
    font-family: Inter, sans-serif;
    font-size: 21.4px;
    line-height: 1.4;
    color: var(--pv-text);
    margin-left: auto;
    margin-right: auto;
}

footer .credit {
    font-size: 20.2px;
}

footer .copyright {
    font-size: 15px;
    line-height: 1.2;
    color: var(--pv-text-muted);
}

footer a:hover {
    filter: opacity(0.5);
    transition-duration: 0.05s;
}

#footerbar {
    clear: both;
    text-align: center;
    padding: 12px 0px;
    background-color: transparent;
    width: 100%;
}

.footerNav {
    width: 20%;
    border-left: 1px var(--pv-bd-card) solid;
    padding-left: 14px;
}

html.pv-light-mode a.localnav,
html.pv-light-mode .footerNav a,
html.pv-light-mode .credit a,
html.pv-light-mode .itembody a {
    color: var(--pv-text) !important;
}

/* Mobile Footer Optimization */

@media only screen and (max-width: 768px) {
    footer .credit {
        line-height: 1.2;
        font-size: 19px;
    }
    footer .copyright {
        padding-top: 3px;
        line-height: 1.3;
    }
    .footerNav {
        font-size: 15px;
        width: 20%;
    }
}

/* SV "Broad" Classes [Information-Oriented Pages] (Not SVB as in "Supreme Values Bot" LOL) */

.svb-header {
    font-family: Inter, cursive;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
    color: var(--pv-text);
    font-size: 30px;
    line-height: 1.5;
    margin: 40px 0px 20px 0px;
}

.svbtext {
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pv-text);
    margin: 5px 0px;
    padding: 0px 60px;
}

.svbtext a {
    text-decoration: underline;
    color: #1e73be;
}

.svbtext a:hover {
    transition-duration: 0.15s;
    filter: opacity(0.5);
}

/* Pop Ups */

/* Fixes item-image spacing when experimental features are active */

.itemcell button:not(.addvalue):not(.removevalue):not(.customvalue) {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.itemcell-exp button:not(.addvalue):not(.removevalue):not(.customvalue) {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

/* Experimental Features Pop-Up */

#popUpOverlay {
    z-index: 999;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

#popUp {
    z-index: 1000;
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 13px 18px;
    overflow-y: auto;
    max-height: 85vh;
    background: var(--pv-bg-card-d);
    color: var(--pv-text);
    border: 3px double var(--pv-bd-card);
    border-radius: 13px 0 0 13px;
    box-shadow: 0px 0px 24px var(--pv-shadow);
    transition-duration: 0.25s;
}

#popUp .hidebttn {
    position: absolute;
    top: 9px;
    right: 10px;
    font-family: Inter, sans-serif;
    font-size: 45px;
    line-height: 0.6;
    padding: 0;
    color: var(--pv-text);
    background-color: transparent;
    border: none;
    transition-duration: 0.15s;
}

#popUp-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 6px 0 10px;
}

#popUp-info {
    flex: 1;
    min-width: 0;
}

#popUp-stability-icon {
    border-radius: 50%;
}

#popUp-image {
    display: none;
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    padding-top: 5px;
}

#popUp-itemName {
    font-size: 20px;
}

#popUp-aliases {
    font-style: italic;
}

#popUpTitle {
    border-bottom: 1px solid var(--pv-bd-popup);
    color: var(--pv-text);
    font-size: 23px;
    line-height: 1.3;
    padding: 0 38px 5px 0;
    margin-bottom: 5px;
}

#pv-item-details-link {
    margin: 10px 0 6px;
}

/* Mobile Pop-Up Optimization */

@media only screen and (max-width: 768px) {
    #popUp {
        font-size: 22px;
        width: 92vw;
        max-width: 520px;
        padding-bottom: 25px;
    }
    #popUp-itemName {
        font-size: 28px;
    }
    #popUpTitle {
        font-size: 33px;
    }
    #popUp .hidebttn {
        font-size: 65px;
    }
    #popUp-image {
        display: none !important;
    }
    #invCalc {
        width: 280px !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    #invCalc button {
        font-size: 16px !important;
    }
    #invCalcTitle {
        font-size: 16px !important;
        white-space: nowrap;
    }
    #invValue {
        font-size: 21px !important;
        white-space: nowrap;
    }
    #invRange {
        white-space: nowrap;
    }
    #pv-appearance-dialog {
        width: 92vw;
        max-width: 480px;
        padding: 26px;
    }
    #pv-inventory-dialog {
        width: 92vw;
        max-width: 520px;
    }
    .pv-modal-title {
        font-size: 28px;
        margin-bottom: 22px;
        padding-bottom: 14px;
    }
    .pv-modal-label {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .pv-seg-btn {
        font-size: 20px;
        padding: 14px 0;
    }
    .pv-modal-btn {
        font-size: 21px;
        padding: 14px 0;
    }
}

/* Inventory Calculator */

#invCalc {
    z-index: 4;
    position: fixed !important;
    display: block;
    right: 0 !important;
    bottom: 130px !important;
    width: 200px;
    padding: 10px !important;
    background-color: var(--pv-bg-panel);
    color: var(--pv-text);
    border-top: 2px solid var(--pv-bd-popup);
    border-left: 2px solid var(--pv-bd-popup);
    border-bottom: 2px solid var(--pv-bd-popup);
    border-radius: 18px 0 0 18px;
    box-shadow: 0px 0px 10px var(--pv-shadow);
}

#invCalc.pv-popup-open {
    bottom: 60px !important;
}

#invCalc button {
    padding: 0 5px;
    font-family: Inter, sans-serif;
    background-color: var(--pv-bg-btn2);
    border: none;
    border-radius: 1em;
    color: var(--pv-text);
    cursor: pointer;
    user-select: none;
}

#invCalc button:hover {
    filter: opacity(0.5);
    transition-duration: 0.15s;
}

#invCalcTitle {
    font-size: 18px;
    font-weight: 800;
    text-decoration: underline;
}

#invRange {
    font-size: 14px;
}

.itemvalue {
    margin-right: 1px;
    /* color: #acf56a;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; */
    font-weight: 900;
}

.itemrange {
    /* color: #acf56a;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; */
    font-weight: 900;
}

.addvalue,
.removevalue,
.customvalue {
    background-color: var(--pv-bg-btn2);
    height: 14px;
    padding: 0;
    font-size: 11px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    border: 1px solid var(--pv-bd-card);
    color: var(--pv-text);
    user-select: none;
}

.addvalue,
.removevalue {
    width: 25px;
    border-radius: 5px;
}

.customvalue {
    width: 20px;
    border-radius: 0 5px 5px 0;
}

.addvalue:hover,
.removevalue:hover,
.customvalue:hover {
    filter: opacity(0.5);
    transition-duration: 0.15s;
}

/* Selected-item detail: Value History / Similar Items sections. Were
   duplicated inline style="" on 12 pages; consolidated here 2026-07-21. */

.pv-history-wrap,
.pv-similar-wrap {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #565656;
}

.pv-wrap-label {
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 3px;
}

.pv-similar-wrap .pv-wrap-label {
    margin-bottom: 6px;
}

.pv-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Selected-item detail: "last updated" line, stability icon, aliases text.
   Were duplicated inline style="" on 12 pages; consolidated here 2026-07-21. */

.pv-item-updated {
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: var(--pv-text-muted);
    text-align: center;
}

.pv-stability-icon {
    height: 16px;
    vertical-align: middle;
    border-radius: 50%;
}

.pv-aliases {
    font-style: italic;
}

/* Visually-hidden but crawlable page <h1> (SEO). Was a duplicated inline
   style="" on 12 pages; consolidated here 2026-07-21. */

.pv-h1-hidden {
    font-size: 0;
    margin: -4px;
}

/* "Item Not Found" block (?detail= view, no match). Was a duplicated inline
   style="" on 12 pages; consolidated here 2026-07-21. */

.pv-item-notfound {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.pv-item-notfound h1 {
    color: var(--pv-text);
    font-family: Inter, cursive;
    font-size: 26px;
    text-decoration: underline;
}

.pv-item-notfound p {
    color: var(--pv-text-muted);
    font-family: Inter, sans-serif;
    font-size: 14px;
}

.pv-item-notfound a {
    color: #5865f2;
}

/* Category-page breadcrumb nav. Was a duplicated inline style="" on 12 pages;
   consolidated here 2026-07-21. */

.pv-breadcrumb {
    max-width: 900px;
    margin: 12px auto 4px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: var(--pv-text-muted);
    text-align: center;
}

.pv-breadcrumb a {
    color: var(--pv-text-muted);
}

.pv-breadcrumb-current {
    color: var(--pv-text);
}

/* SEO description sentence on item-detail pages, shown under the breadcrumb. */

.pv-item-seo-desc {
    max-width: 500px;
    margin: 12px auto;
    padding: 0 18px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pv-text-muted);
    text-align: center;
    box-sizing: border-box;
}

/* Category-page title block. Was a duplicated inline style="" on 14 pages;
   consolidated here 2026-07-21. */

.pv-cat-title {
    color: var(--pv-text);
    font-size: 26px;
    font-weight: 800;
    font-family: Inter, cursive;
    line-height: 1.2;
    text-decoration: underline;
    margin: 10px auto 6px;
    max-width: 900px;
}

.pv-cat-subtitle {
    color: var(--pv-text-muted);
    font-size: 14px;
    line-height: 1.2;
    font-family: Inter, sans-serif;
    margin: 0 auto 8px;
    max-width: 820px;
}

/* Selected-item detail card (?detail= view). Was a byte-identical <style> block
   duplicated in 12 category pages; consolidated here 2026-07-21. */

.pv-item-card {
    position: relative;
    width: 500px;
    max-width: 92vw;
    box-sizing: border-box;
    margin: 16px auto;
    padding: 13px 18px;
    background: var(--pv-bg-card-d);
    color: var(--pv-text);
    border: 3px double var(--pv-bd-card);
    border-radius: 13px;
    box-shadow: 0px 0px 24px var(--pv-shadow);
    text-align: left;
    font-family: Inter, sans-serif;
}

.pv-item-card-title {
    border-bottom: 1px solid var(--pv-bd-popup);
    font-size: 23px;
    line-height: 1.3;
    font-family: Inter, cursive;
    padding: 0 38px 5px 0;
    margin: 0 0 5px;
}

.pv-item-card-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 6px;
}

.pv-item-card-info {
    flex: 1;
    min-width: 0;
}

.pv-item-card-info>div {
    margin: 2px 0;
}

.pv-item-card-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    padding-top: 5px;
}

.pv-item-favorite-toggle {
    position: absolute;
    top: 13px;
    right: 18px;
    background: none;
    border: none;
    font-size: 35px;
    line-height: 0.6;
    padding: 0;
    cursor: pointer;
    color: var(--pv-text-dim);
}

.pv-item-inv-row {
    text-align: center;
    margin: 18px 0;
}

.pv-item-inv-row .controls {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.pv-item-inv-cellwrap.itemcell {
    display: contents;
    border: none;
    border-radius: 0;
    min-height: 0;
    width: auto;
    background: none;
    box-shadow: none;
    position: static;
}

.pv-item-inv-row .addvalue,
.pv-item-inv-row .removevalue,
.pv-item-inv-row .customvalue {
    height: 32px !important;
    font-size: 16px !important;
}

.pv-item-inv-row .addvalue,
.pv-item-inv-row .removevalue {
    width: 56px !important;
    border-radius: 11px !important;
    margin: 0 5px;
}

.pv-item-inv-row .customvalue {
    display: block !important;
    width: 32px !important;
    border-radius: 0 11px 11px 0 !important;
}

.customvalue-input {
    font-family: Inter, sans-serif;
}

.pv-item-inv-row .customvalue-input {
    background-color: var(--pv-bg-input);
    text-align: right;
    color: var(--pv-text);
    width: 56px !important;
    height: 32px !important;
    font-size: 15px !important;
    font-weight: 700;
    border: none;
    border-radius: 11px 0 0 11px !important;
    padding: 0 6px;
    margin: 0 0 0 4px;
    box-sizing: border-box;
}

#popUp-inv-row {
    margin: 2px 0;
}

#popUp-inv-row .controls {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

#popUp-inv-row .addvalue,
#popUp-inv-row .removevalue,
#popUp-inv-row .customvalue {
    height: 22px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

#popUp-inv-row .addvalue,
#popUp-inv-row .removevalue {
    width: 42px !important;
    border-radius: 7px !important;
    margin: 0 6px 0 0;
}

#popUp-inv-row .customvalue {
    display: block !important;
    width: 28px !important;
    border-radius: 0 7px 7px 0 !important;
}

html.pv-no-inv-calc #popUp-inv-row .customvalue {
    display: none !important;
}

#popUp-inv-row .customvalue-input {
    background-color: var(--pv-bg-input);
    text-align: right;
    color: var(--pv-text);
    width: 42px !important;
    height: 22px !important;
    font-size: 12px !important;
    font-weight: 700;
    border: none;
    border-radius: 7px 0 0 7px !important;
    padding: 0 4px;
    margin: 0;
    box-sizing: border-box;
}

.itembody input {
    background-color: var(--pv-bg-input);
    text-align: right;
    color: var(--pv-text);
    width: 30px;
    max-height: 12px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 5px 0 0 5px;
    padding: 0 3px;
    margin: 0 0 0 2px;
}

/* Sidebar All */

.sidebar {
    position: fixed;
    overflow-x: hidden;
    overflow-y: scroll;
    z-index: 2;
    width: 440px;
    transform: translateX(-100%);
    transition: transform 0.25s;
    background-color: var(--pv-bg-body);
    filter: none;
    top: 0px;
    left: 0px;
}

/* Close/Hide Button [Navigation] */

.sidebar .hidebttn {
    position: absolute;
    padding: 0 0 0 20px;
    text-decoration: none;
    text-align: left;
    color: var(--pv-text);
    font-weight: 700;
    transition-duration: 0.15s;
}

.hidebttn:hover {
    filter: opacity(0.5);
    cursor: pointer;
}

/* View Button [Navigation] */

.viewbttn {
    position: fixed;
    z-index: 1;
    background-color: transparent;
    color: var(--pv-text);
    border: none;
    float: left;
    transition-duration: 0.15s;
    cursor: pointer;
    padding: 10px 18px;
}

.viewbttn:hover {
    filter: opacity(0.7);
}

.viewbttn div {
    background-color: var(--pv-text);
    margin: 8px 0;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--pv-shadow);
}

/* Sidebar CSS [Navigation] */

nav {
    padding-top: 0px;
    margin-top: 0px;
}

nav table {
    padding: 0 0 0 2px;
}

nav ul a {
    display: block;
    width: 205px;
    text-decoration: none;
}

nav ul>span {
    display: block;
    width: 205px;
}

nav ul {
    list-style-type: none;
    padding-left: 0px;
}

nav ul li a {
    color: var(--pv-text);
}

nav ul li {
    display: flex;
    align-items: center;
    font-family: Inter, sans-serif;
    font-weight: 700;
    color: var(--pv-text);
    border-bottom: 1px var(--pv-bd-card) solid;
    white-space: nowrap;
}

nav ul li:hover span {
    transition-duration: 0.15s;
    filter: opacity(0.4);
}

nav ul li:hover img {
    transition-duration: 0.15s;
    filter: opacity(0.4);
}

html.pv-light-mode nav ul li:hover img {
    filter: opacity(0.4) invert(1);
}

/* Inventory modal -- clickable rows */

/* The sitewide "a:hover { filter: opacity(0.5) }" rule (see top of file)
   would otherwise composite-darken this whole row, buttons included --
   filter on an ancestor can't be undone by a child's own filter, so it has
   to be cancelled here on the anchor itself. The darken-on-hover affordance
   is then reapplied to just the text spans, leaving the +1/-1 buttons (in
   .pv-inventory-row-adjust) with their own independent hover state. */

.pv-inventory-row-link:hover {
    filter: none;
}

.pv-inventory-row-link:hover>span:not(.pv-inventory-row-adjust) {
    filter: opacity(0.6);
    transition-duration: 0.15s;
}

.pv-inventory-row-adjust {
    display: flex;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.pv-inventory-row-plus,
.pv-inventory-row-minus {
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    line-height: 1;
    width: 26px;
    height: 18px;
    padding: 0;
    cursor: pointer;
    opacity: 0.85;
}

.pv-inventory-row-plus {
    background: #75d122;
    border-radius: 9px 0 0 9px;
}

.pv-inventory-row-minus {
    background: #eb3e3e;
    border-radius: 0 9px 9px 0;
}

.pv-inventory-row-plus:hover,
.pv-inventory-row-minus:hover {
    opacity: 1;
    transition-duration: 0.15s;
}

/* Sidebar CSS 768px+ */

@media only screen and (min-width: 769px) {
    #navSidebar {
        width: 220px;
        transform: translateX(0);
        filter: drop-shadow(var(--pv-sidebar-shadow));
    }
    #main {
        width: calc(98% - 220px);
        margin-left: calc(1% + 220px);
    }
    #body {
        min-width: 1125px;
    }
    .sidebar {
        height: calc(100% - 10px);
        padding-top: 10px;
    }
    .sidebar .hidebttn {
        font-size: 45px;
    }
    .viewbttn {
        font-size: 39px;
    }
    .viewbttn div {
        height: 6px;
        width: 36px;
    }
    nav ul li {
        padding: 0px 20px 0px 10px;
        font-size: 19px;
        line-height: 1.8;
    }
    nav ul li img {
        padding-right: 12px;
        height: 20px !important;
    }
    h3.sidebar-header {
        font-family: Inter, sans-serif;
        font-weight: 900;
        color: var(--pv-text);
        font-size: 20px;
        line-height: 0;
        margin: 20px 0;
        padding-left: 10px;
        text-decoration: underline;
    }
}

/* Sidebar CSS <768px */

@media only screen and (max-width: 768px) {
    .sidebar {
        height: calc(100% - 10px);
        padding-top: 10px;
    }
    .sidebar .hidebttn {
        font-size: 100px;
        padding: 0 0 0 60px;
    }
    .viewbttn {
        font-size: 65px;
    }
    .viewbttn div {
        height: 5px;
        width: 35px;
    }
    nav ul a {
        width: 425px !important;
    }
    nav ul li {
        padding: 0px 18px;
        font-size: 40px;
        line-height: 1.8;
    }
    nav ul li img {
        padding-right: 20px;
        height: 45px !important;
    }
    h3.sidebar-header {
        font-family: Inter, sans-serif;
        font-weight: 900;
        color: var(--pv-text);
        font-size: 42px;
        line-height: 0;
        margin: 42px 0;
        padding-left: 10px;
        text-decoration: underline;
    }
}

/* Scrollbar */

/* Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--pv-scroll-thumb) var(--pv-bg-body);
}

.sidebar:hover {
    scrollbar-color: var(--pv-scroll-thumb) var(--pv-scroll-track);
}

/* Chrome, Edge, and Safari */

*::-webkit-scrollbar-thumb:hover {
    opacity: 0.85;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--pv-bg-body);
    border: none;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: var(--pv-scroll-thumb);
}

.sidebar:hover::-webkit-scrollbar-thumb:hover {
    opacity: 0.85;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--pv-bg-body);
    border-left: 1px solid var(--pv-bd-card);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--pv-scroll-thumb);
    border-radius: 6px;
    border: 2px solid var(--pv-bg-body);
}

/* Inventory items popup: track should match the modal's own background
   (--pv-bg-panel), not the generic theme scroll-track color. */

#pv-inventory-list {
    scrollbar-color: var(--pv-scroll-thumb) var(--pv-bg-panel);
}

#pv-inventory-list::-webkit-scrollbar-track {
    background: var(--pv-bg-panel);
}

#pv-inventory-list::-webkit-scrollbar-thumb {
    border: 2px solid var(--pv-bg-panel);
}

::-webkit-outer-spin-button,
::-webkit-inner-spin-button {
    display: none;
}

/* Breakpoint Classes */

/* Mobile */

@media only screen and (max-width: 768px) {
    .otherDisp {
        display: none;
    }
    html {
        float: left;
    }
    #shout {
        font-size: 10px !important;
    }
    #tagline {
        margin-top: 15px;
        font-size: 20px !important;
    }
    .customvalue,
    .itembody input {
        display: none;
    }
    .content-ad ins {
        width: 468px !important;
        height: 90px !important;
    }
    .content-ad {
        padding-left: calc(50% - 248px);
        padding-right: calc(50% - 248px);
    }
}

/* Other */

@media only screen and (min-width: 768px) {
    .mobDisp {
        display: none;
    }
}

@media only screen and (max-width: 1700px) {
    #contributors {
        display: block !important;
    }
    #story {
        width: 100% !important;
        text-align: center !important;
        margin: 15px 0;
    }
}

@media only screen and (min-width: 1536px) {
    html {
        zoom: 1.1;
    }
}

/* PlayWire */

#shout {
    margin: 0 0 10px;
}

div[data-pw-desk="leaderboard_btf"],
div[data-pw-mobi="leaderboard_btf"],
div[data-pw-mobi="leaderboard_atf"],
#leaderboard_atf {
    padding: 10px 0;
    line-height: 0;
}

/* Value percentile tier colors */

.val-top {
    color: var(--pv-val-top);
}

.val-mid {
    color: var(--pv-val-mid);
}

.val-low {
    color: var(--pv-val-low);
}

.val-sub1 {
    color: var(--pv-diff-neg);
}

/* Ranged values — color comes from val-* pct class when present; N/A inherits body text */

.itemrange {
    font-weight: 900;
}

/* Diff colors */

.pv-diff-pos {
    color: var(--pv-diff-pos);
}

.pv-diff-neg {
    color: var(--pv-diff-neg);
}

/* No-color accessibility mode */

html.pv-no-color .val-top,
html.pv-no-color .val-mid,
html.pv-no-color .val-low,
html.pv-no-color .val-sub1,
html.pv-no-color .rising,
html.pv-no-color .overpaidfor,
html.pv-no-color .doingwell,
html.pv-no-color .improving,
html.pv-no-color .fluctuating,
html.pv-no-color .receding,
html.pv-no-color .stable,
html.pv-no-color .underpaidfor,
html.pv-no-color .decreasing,
html.pv-no-color .unsafe,
html.pv-no-color .pv-diff-pos,
html.pv-no-color .pv-diff-neg {
    color: var(--pv-text);
    text-shadow: none;
}

html.pv-no-color .pct-key {
    display: none;
}

html.pv-no-inv-calc .addvalue,
html.pv-no-inv-calc .removevalue,
html.pv-no-inv-calc .customvalue-input,
html.pv-no-inv-calc .customvalue {
    display: none;
}

html.pv-no-inv-calc #invCalc {
    display: none !important;
}

html.pv-no-inv-calc .inv-controls-label {
    display: none;
}

html.pv-no-inv-calc .pv-item-inv-row .customvalue {
    display: none !important;
}

html.pv-card-layout .inv-calc-hide {
    display: none;
}

html.pv-card-layout .inv-controls-label {
    display: none;
}

@media only screen and (max-width: 768px) {
    html.pv-card-layout .inv-calc-hide {
        display: inline;
    }
}

.pv-mobile-only-break {
    display: none;
}

@media only screen and (max-width: 768px) {
    .pv-mobile-only-break {
        display: inline;
    }
}

html.pv-no-inv-calc .pv-mobile-only-break {
    display: inline;
}

html.pv-card-layout.pv-no-inv-calc .pv-mobile-only-break {
    display: none;
}

/* Percentile legend */

.pct-key {
    margin: 10px 0 0;
    text-align: center;
    padding: 8px 12px;
    width: fit-content;
    font-family: Inter, sans-serif;
    font-size: 13px;
    opacity: 0.75;
    letter-spacing: 0.02em;
    background: var(--pv-bg-panel);
    border: 1px solid var(--pv-bd-main);
    border-radius: 8px;
}

.stability-key {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 0;
    box-sizing: border-box;
}

/* List View -- old-style stability-colored table, homage to the site's original layout */

.pv-list-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px;
    overflow-x: auto;
    box-shadow: 0px 0px 18px var(--pv-shadow);
}

.pv-wrap-scroll-mobile .pv-list-wrap {
    max-width: 1200px;
}

.pv-list-table {
    width: 100%;
    min-width: 200px;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: Inter, sans-serif;
    font-size: 16px;
}

.pv-list-table thead th {
    padding: 0px;
    color: #000;
    font-family: Inter, cursive;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid var(--pv-bg-body);
}

.pv-list-table tbody tr,
.pv-list-table tr.itemcolumn {
    display: table-row;
    width: auto;
    margin: 0;
    cursor: pointer;
    transition: filter 0.15s;
}

.pv-list-table tbody tr:hover {
    filter: brightness(0.92);
}

.pv-list-table td {
    padding: 1px;
    text-align: center;
    color: #1a1a1a;
    white-space: nowrap;
    border-right: 1px solid var(--pv-bg-body);
}

.pv-list-table td:last-child {
    border-right: none;
}

.pv-list-table td.pv-list-name {
    font-weight: 700;
    white-space: normal;
}

.pv-list-table .stable,
.stability-key .stable {
    color: #000;
}

.stability-key .stable {
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}

html.pv-light-mode .stability-key .stable {
    text-shadow: none;
}

.pv-list-table .rising,
.pv-list-table .overpaidfor,
.pv-list-table .doingwell,
.pv-list-table .improving,
.pv-list-table .fluctuating,
.pv-list-table .receding,
.pv-list-table .underpaidfor,
.pv-list-table .decreasing,
.pv-list-table .unsafe {
    text-shadow: -1px 0px 0 rgba(0, 0, 0, 0.5), 1px 0px 0 rgba(0, 0, 0, 0.5), 0px -1px 0 rgba(0, 0, 0, 0.5), 0px 0.5px 0 rgba(0, 0, 0, 0.5);
}

.pv-list-diff {
    font-weight: 400;
    text-shadow: -1px 0px 0 rgba(0, 0, 0, 0.5), 1px 0px 0 rgba(0, 0, 0, 0.5), 0px -1px 0 rgba(0, 0, 0, 0.5), 0px 0.5px 0 rgba(0, 0, 0, 0.5);
}

.pv-list-diff-pos {
    color: #16a34a;
}

.pv-list-diff-neg {
    color: #dc2626;
}

.pv-list-table td.pv-list-wrap-cell {
    white-space: normal;
    word-break: break-word;
}

.pv-list-contains-cell a {
    color: #000 !important;
}

@media only screen and (max-width: 768px) {
    .pv-list-table {
        font-size: 13px;
        min-width: 500px;
    }
    .pv-list-table thead th {
        padding: 8px 6px;
        font-size: 14px;
    }
    .pv-list-table td {
        padding: 6px;
    }
}

@media only screen and (max-width: 500px) {
    .pv-list-table {
        font-size: 12px;
        min-width: 440px;
    }
    .pv-list-table thead th {
        padding: 6px 4px;
        font-size: 13px;
    }
    .pv-list-table td {
        padding: 5px 4px;
    }
}

/* SV Modal System */

#pv-dialog-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
}

.pv-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--pv-bg-panel);
    color: var(--pv-text);
    border: 2px solid var(--pv-bd-popup);
    border-radius: 14px;
    box-shadow: 0 0 30px var(--pv-shadow);
    font-family: Inter, sans-serif;
    z-index: 201;
}

#pv-appearance-dialog {
    width: 300px;
    padding: 22px;
}

#pv-inventory-dialog {
    width: 460px;
    max-width: 92vw;
    max-height: 70vh;
    flex-direction: column;
}

.pv-modal-title {
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 1px solid var(--pv-bd-main);
    padding-bottom: 10px;
}

.pv-modal-section {
    margin-bottom: 10px;
}

.pv-modal-label {
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--pv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pv-seg-row {
    display: flex;
    gap: 6px;
}

.pv-seg-btn {
    flex: 1;
    padding: 6px 0;
    background: var(--pv-bg-card-d);
    border: none;
    border-radius: 999px;
    color: var(--pv-text-dim);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.15s;
}

.pv-seg-btn.pv-active {
    background: var(--pv-bg-btn2);
    color: var(--pv-text);
}

.pv-seg-btn:hover {
    opacity: 0.8;
}

.pv-seg-btn-locked {
    opacity: 0.35;
    cursor: not-allowed;
}

.pv-seg-btn-locked:hover {
    opacity: 0.35;
}

#pv-appearance-hue-row {
    margin-bottom: 12px;
    display: none;
}

#pv-appearance-hue {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    border: 1px solid var(--pv-bd-main);
    background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

#pv-appearance-hue::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #888;
    cursor: pointer;
    box-shadow: 0 0 4px #000;
}

#pv-appearance-hue::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #888;
    cursor: pointer;
    box-shadow: 0 0 4px #000;
}

.pv-modal-footer {
    display: flex;
    gap: 8px;
}

.pv-modal-btn {
    flex: 1;
    padding: 9px 0;
    background: var(--pv-bg-btn2);
    border: none;
    border-radius: 999px;
    color: var(--pv-text);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.15s;
}

.pv-modal-btn-close {
    padding: 7px 14px;
    background: var(--pv-bg-btn2);
    border: none;
    border-radius: 999px;
    color: var(--pv-text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.15s;
}

.pv-modal-btn:hover,
.pv-modal-btn-close:hover {
    opacity: 0.7;
}

.pv-modal-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--pv-bd-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pv-modal-head>span {
    font-weight: 800;
    font-size: 15px;
}

.pv-modal-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-modal-head-close {
    background: var(--pv-bg-btn2);
    border: 1px solid var(--pv-bd-popup);
    border-radius: 8px;
    color: var(--pv-text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    transition: opacity 0.15s;
}

.pv-modal-head-close:hover {
    opacity: 0.7;
}

.pv-modal-head-refresh {
    background: var(--pv-bg-btn2);
    border: 1px solid var(--pv-bd-popup);
    border-radius: 8px;
    color: var(--pv-text-muted);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 3.5px;
    transition: opacity 0.15s;
}

.pv-modal-head-refresh:hover {
    opacity: 0.7;
}

@keyframes pv-spin-once {
    to {
        transform: rotate(360deg);
    }
}

.pv-modal-head-refresh.pv-spin-once {
    animation: pv-spin-once 0.4s ease;
}

#pv-inventory-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px 16px 4px;
}

#pv-inventory-list>div,
#pv-inventory-list>a {
    font-size: 16px !important;
    padding: 6px 0 !important;
}

#pv-inventory-list>div>span:last-child span,
#pv-inventory-list>a>span:last-child span {
    font-size: 13px !important;
}

#pv-inventory-dialog .pv-modal-head>span {
    font-size: 19px;
}

#pv-inventory-summary {
    padding: 8px 16px;
    font-size: 15px;
    text-align: right;
    color: var(--pv-text-muted);
}

.pv-modal-foot {
    padding: 10px 16px;
    border-top: 1px solid var(--pv-bd-main);
}

.pv-inventory-foot-row {
    display: flex;
    gap: 8px;
}

.pv-inventory-clear-btn {
    width: 100%;
    flex: 1;
    padding: 8px 0;
    background: var(--pv-bg-btn2);
    border: 1px solid var(--pv-bd-popup);
    border-radius: 8px;
    color: var(--pv-text-muted);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.15s;
}

.pv-inventory-clear-btn:hover {
    opacity: 0.7;
}

#pv-toolbar-actions {
    position: fixed;
    top: 28px;
    right: 18px;
    z-index: 5;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pv-ctrl-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition-duration: 0.15s;
}

.pv-ctrl-btn img {
    width: 40px;
    filter: var(--pv-img-filter);
}

.pv-ctrl-btn:hover {
    opacity: 0.7;
}

#pv-inventory-row {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.pv-open-inventory {
    background: var(--pv-bg-panel);
    border: 2px solid var(--pv-bd-main);
    border-radius: 8px;
    color: var(--pv-text);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.pv-open-inventory:hover {
    opacity: 0.7;
}

#pv-favorite-toggle {
    position: absolute;
    top: 13px;
    right: 50px;
    background: none;
    border: none;
    font-size: 35px;
    line-height: 0.6;
    padding: 0;
    cursor: pointer;
    color: var(--pv-text-dim);
}

/* Similar Items Cells */

.pv-sim-cell {
    display: block;
    background: var(--pv-bg-card-l);
    border: 1px solid var(--pv-bd-card);
    border-radius: 6px;
    padding: 8px 6px 7px;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    min-width: 0;
}

.pv-sim-cell:hover {
    opacity: 0.85;
    transition-duration: 0.15s;
}

.pv-sim-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 5px;
}

.pv-sim-img[src$="n-a.webp"],
.pv-inventory-row-img[src$="n-a.webp"] {
    filter: var(--pv-img-filter);
}

.pv-sim-img-ph {
    width: 72px;
    height: 72px;
    margin: 0 auto 5px;
}

.pv-sim-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--pv-text);
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
}

.pv-sim-value {
    display: block;
    font-size: 11px;
    color: var(--pv-text-muted);
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
}

.pv-sim-meta {
    display: block;
    font-size: 10px;
    color: var(--pv-text-dim);
    text-decoration: none;
}

/* Chart Range Buttons */

.pv-range-btns {
    display: flex;
    gap: 4px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.pv-range-btn {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--pv-bd-card);
    background: transparent;
    color: var(--pv-text-dim);
    cursor: pointer;
    font-family: Inter, sans-serif;
}

.pv-range-btn.pv-active {
    background: var(--pv-bg-btn2);
    border-color: var(--pv-bd-main);
    color: var(--pv-text);
}

/* Chart SVG */

.pv-chart-grid {
    stroke: var(--pv-bd-card);
}

.pv-chart-label {
    fill: var(--pv-text-dim);
    color: var(--pv-text-dim);
}

/* Chart Tooltip */

.pv-chart-tip {
    position: absolute;
    background: var(--pv-bg-card-l);
    border: 1px solid var(--pv-bd-card);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    pointer-events: none;
    display: none;
    z-index: 10;
    font-family: Inter, sans-serif;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--pv-text);
}

/* Mobile value history timeframe button visibility */

@media only screen and (max-width: 768px) {
    .pv-range-btn.pv-active {
        color: var(--pv-text);
        background: var(--pv-bg-btn2);
    }
}
html,body,button,input,select,textarea{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}h1,h2,h3,.heading,.svb-header{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-weight:750}
/* Center category navigation and controls, which sit outside the aligned main element. */
body:has(.pv-cat-title){text-align:center}
body:has(.pv-cat-title) #navSidebar{text-align:left}
body:has(.pv-cat-title) a.localnav{display:inline-flex;align-items:center;justify-content:center;margin:6px 7px;padding:7px 15px;border:1px solid #594b70;border-radius:999px;background:linear-gradient(145deg,#211d29,#17161b);box-shadow:0 3px 10px #0007, inset 0 1px #ffffff12;color:#f5f1fb;transition:transform .16s ease,border-color .16s ease,background .16s ease}
body:has(.pv-cat-title) a.localnav:hover{transform:translateY(-2px);border-color:#c37b9b;background:linear-gradient(145deg,#302232,#1c1920);filter:none}
body:has(.pv-cat-title) #search{margin:10px 5px 18px}
