/* CSS Document */

:root {
  /* Background color derived */
  --sv-bg-body:   #111111;
  --sv-bg-panel:  #1b1b1b;
  --sv-bg-card-d: #101010;
  --sv-bg-card-l: #202020;
  --sv-bd-main:   #3a3a3a;
  --sv-bd-card:   #272727;
  --sv-bd-popup:  #505050;
  --sv-bg-input:  #545454;
  --sv-bg-btn:    #313131;
  --sv-bg-btn2:   #3f3f3f;

  /* Static dark-mode values */
  --sv-text:             #fff;
  --sv-text-muted:       #aaa;
  --sv-text-dim:         #888;
  --sv-shadow:           #000;
  --sv-sidebar-shadow:   5px 0px 5px #0a0a0a;
  --sv-scroll-thumb:     #818181;
  --sv-scroll-track:     #141414;
  --sv-img-filter:       none;
  --sv-receding-shadow:  none;

  /* Value / diff colors */
  --sv-val-top:  #7dc0f5;
  --sv-val-mid:  #acf56a;
  --sv-val-low:  #f5c56a;
  --sv-diff-pos: #acf56a;
  --sv-diff-neg: #f56a6a;

  /* Stability colors */
  --sv-rising:       #3fc143;
  --sv-overpaidfor:  #83c5f9;
  --sv-doingwell:    #716ffb;
  --sv-improving:    #ff9d1e;
  --sv-fluctuating:  #ac21ff;
  --sv-receding:     #fff31f;
  --sv-stable:       #d1d1d1;
  --sv-underpaidfor: #d7772c;
  --sv-decreasing:   #ff1212;
  --sv-unsafe:       #d90909;
}

html.sv-light-mode {
  /* Background color derived */
  --sv-bg-body:   #ececec;
  --sv-bg-panel:  #e1e1e1;
  --sv-bg-card-d: #d3d3d3;
  --sv-bg-card-l: #ebebeb;
  --sv-bd-main:   #9d9d9d;
  --sv-bd-card:   #b0b0b0;
  --sv-bd-popup:  #7f7f7f;
  --sv-bg-input:  #a9a9a9;
  --sv-bg-btn:    #cccccc;
  --sv-bg-btn2:   #bebebe;

  /* Static light overrides */
  --sv-text:             #000;
  --sv-text-muted:       #555;
  --sv-text-dim:         #666;
  --sv-shadow:           #9b9b9b;
  --sv-sidebar-shadow:   5px 0px 5px #9b9b9b;
  --sv-scroll-thumb:     #888;
  --sv-scroll-track:     #d8d8d8;
  --sv-img-filter:       invert(1);
  --sv-receding-shadow:  -1px 0px 0 #000, 1px 0px 0 #000, 0px -1px 0 #000, 0px 0.5px 0 #000;

  /* Value / diff colors */
  --sv-val-top:  #3094e3;
  --sv-val-mid:  #66b71c;
  --sv-val-low:  #e7a72e;
  --sv-diff-pos: #66b71c;
  --sv-diff-neg: #ef3737;

  /* Stability colors */
  --sv-rising:       #1c9520;
  --sv-overpaidfor:  #5497cb;
  --sv-doingwell:    #4745e1;
  --sv-improving:    #ed8600;
  --sv-fluctuating:  #9000e5;
  --sv-receding:     #fff31f;
  --sv-stable:       #5b5b5b;
  --sv-underpaidfor: #ad5715;
  --sv-decreasing:   #f10000;
  --sv-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(--sv-bg-body);
	font-family: 'Nunito', sans-serif;
	color: var(--sv-text);
	font-size: 1em;
	font-weight: 400;
	min-width: 730px;
}

h3, h4, h5 {
	font-family: 'Nunito', 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: 'Permanent Marker', cursive;
	font-size: 35px;
	line-height: 1.3;
	user-select: none;
}

#changelog {
	border-top: 2px solid var(--sv-bd-popup);
	margin: 20px 0 0;
	user-select: text;
}

.tierheading {
    font-family: 'Fredoka One', cursive;
    font-weight: 600;
    text-align: center;
    color: var(--sv-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: 'Permanent Marker', cursive;
    font-weight: 700;
    text-align: center;
    color: var(--sv-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: 'Permanent Marker', cursive;
    font-weight: 600;
    color: var(--sv-text);
    font-size: 28px;
    line-height: 1;
    padding: 20px 0px 10px 0px;
    margin-bottom: 10px;
}

	/* Local Navigation Menu */

.localnav {
	font-family: 'Nunito', sans-serif;
	font-size: 20px;
	background-color: var(--sv-bg-card-d);
	border: 2px solid var(--sv-bd-main);
	box-shadow: 0 0 8px var(--sv-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: 'Nunito', sans-serif;
	line-height: 1.5;
	color: var(--sv-text);
}

.milestones h3 {
	font-size: 22px;
}

.milestones td {
    font-size: 18px;
    text-align: center;
    padding-top: 10px;
    border-bottom: var(--sv-bd-card) 1px solid;
}

	/* Team Tables */

table.team-table th {
	background-color: #666666; 
	font-family: 'Fredoka One', 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: 'Nunito', 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(--sv-bg-panel);
	border-radius: 25px;
	box-shadow: 0 0 2px var(--sv-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;
	}
	
	#ServersTTL {
		height: 100px;
	}
	
}

	/* 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: 'Nunito', 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: 'Nunito', 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(--sv-bd-popup);
    margin: 10px 0;
	width: 100%;
}

header img {
	width: 42vw;
	min-width: 520px;
}

.headertext {
    font-family: 'Fredoka One', cursive;
    font-weight: 500;
	font-size: 18px;
    color: var(--sv-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: 'Fredoka One', 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(--sv-bg-panel);
    display: inline-block;
    border: 2px var(--sv-bd-main) solid;
    padding: 5px 15px;
    border-radius: 30px;
    box-shadow: 0 0 4px 0 var(--sv-shadow);
    margin-top: 8px;
    color: var(--sv-text);
    text-decoration: none;
}

.sv-back-link {
    color: #5865f2;
    font-family: 'Nunito', sans-serif;
}

.sv-spacer-12 {
    margin-bottom: 12px;
}

/* Footer links default to white in dark mode; html.sv-light-mode .footerNav a /
   .credit a already override this. Was 10 duplicated inline style="" in
   footer.php; 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;
}

.sv-nav-divider {
	display: block;
	width: 100%;
	margin: 10px auto;
	border: none;
	border-top: 1px solid var(--sv-bd-main);
}

hr.sv-divider {
	border: none;
	border-top: 1px solid var(--sv-bd-popup);
	margin: 6px 0;
}

	/* Mobile Title Area Stylization Optimization */

@media only screen and (max-width: 768px) {
	
	#HomeTTL {
		height: 100px;
	}
	
}

/* Items */

#search, #year {
    width: 220px;
    font-family: 'Nunito';
    background: var(--sv-bg-input);
    margin: 8px 0 20px 0;
    padding: 5px 8px;
    border-radius: 12px;
    border: 2px solid var(--sv-bd-main);
    box-shadow: 0 0 3px 0px var(--sv-shadow);
    color: var(--sv-text);
    font-weight: 600;
    font-size: 16px;
    box-sizing: border-box;
}

#year {
    width: 63px !important;
    margin: 8px 3px 20px 3px !important;
}

#search:focus #year:focus {
    background: #5b5b67;
}

#searchBttn, #filterBttn, #clearFiltersBttn, #stabilitySelect, #eventSelect, #sortCombinedSelect {
    font-family: 'Nunito';
    background: var(--sv-bg-btn);
    padding: 5px 8px;
    border-radius: 12px;
    margin: 0 0 0 5px;
    border: 2px solid var(--sv-bd-main);
    box-shadow: 0 0 3px 0px var(--sv-shadow);
    color: var(--sv-text);
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
}

#filterBttn, #clearFiltersBttn {
    margin: 0;
}

#filterBttn {
    margin: 0 0 0 10px;
    border-radius: 12px 0 0 12px;
}

#clearFiltersBttn {
    border-radius: 0 12px 12px 0;
    margin: 0 0 0 -3px;
}

#searchBttn:hover, #filterBttn:hover, #clearFiltersBttn:hover, #stabilitySelect:hover, #eventSelect:hover, #sortCombinedSelect:hover {
    opacity: 0.75;
    transition-duration: 0.15s;
}

#alert {
    color: #ff0000;
    margin: -5px 0;
    height: 20px;
}

::placeholder {
  color: var(--sv-text-muted);
  opacity: 1;
}

#filterMsg {
    font-size: 18px;
    font-weight: 900;
}

#stabilitySelect, #eventSelect, #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(--sv-bd-card) 3px double;
	border-radius: 12px;
    min-height: 135px;
    width: 330px;
	background: linear-gradient(0deg, var(--sv-bg-card-d) 20%, var(--sv-bg-card-l));
	box-shadow: 0 0 3px 1px var(--sv-shadow);
	user-select: text;
	position: relative;
}

.itemcell-untradable-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	height: 20px;
	z-index: 1;
}

html.sv-light-mode .itemcell {
	box-shadow: 0 0 3px 0px var(--sv-shadow);
}

/* Card layout mode */
html.sv-card-layout .itemcolumn { width: 210px; margin: -2px -2px; }
html.sv-card-layout .itemcell,
html.sv-card-layout .itemcell-exp { width: 205px; padding: 1px 0 5px; }
html.sv-card-layout .itemcell table,
html.sv-card-layout .itemcell-exp table { width: 100%; }
html.sv-card-layout .itemcell table td,
html.sv-card-layout .itemcell-exp table td { display: block; }
html.sv-card-layout .itemimage { width: 100% !important; max-width: 100%; padding: 0; display: flex !important; justify-content: center; }
html.sv-card-layout img.itemimage { width: 115px !important; height: 115px !important; object-fit: contain; object-position: center bottom; display: block !important; }
html.sv-card-layout .itemcell-exp img.itemimage { padding-top: 0; }
html.sv-card-layout .itemhead { text-align: center; font-size: 18px; font-weight: 800; padding-top: 4px; width: inherit; }
html.sv-card-layout .itembody { text-align: center; }
html.sv-card-layout .item-origin-row { display: none; }
html.sv-card-layout .item-origin-row + br { display: none; }
/* Origin rows explicitly kept visible in card mode (untradables; uniques awards) */
html.sv-card-layout .item-origin-row.sv-card-keep { display: inline; }
html.sv-card-layout .item-origin-row.sv-card-keep + br { display: revert; }
html.sv-card-layout .item-contains-row { display: none; }
html.sv-card-layout .itemhead img { display: none; }

html.sv-card-layout .effects,
html.sv-card-layout .emotes { min-height: 243px !important; }
html.sv-card-layout .radios { min-height: 0 !important; }
html.sv-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(--sv-bd-card) 3px double;
	border-radius: 12px;
    min-height: 151px;
    width: 330px;
	background: linear-gradient(0deg, var(--sv-bg-card-d) 20%, var(--sv-bg-card-l));
	box-shadow: 0 0 3px 1px var(--sv-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;
}

.sv-highlight {
	animation: sv-highlight-flash 5s ease-out;
}

@keyframes sv-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: 'Nunito', sans-serif;
    text-align: left;
	color: var(--sv-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.png"] {
	filter: var(--sv-img-filter);
}

.itemimage[src$="N_A.png"]:hover {
	filter: opacity(0.9) var(--sv-img-filter);
}

#popUp-image[src$="N_A.png"],
.sv-item-card-image[src$="N_A.png"] {
	filter: var(--sv-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: 'Nunito', sans-serif;
	font-size: 17px;
	font-weight: 700;
	text-decoration: underline;
	line-height: 1.3;
	color: var(--sv-text);
	width: 194px;
	padding-top: 3px;
	text-align: left;
}

.itemhead img {
	cursor: help;
	width: 20px;
	float: right;
}

.itembody {
    font-family: 'Nunito', sans-serif;
    font-size: 11.3px;
    line-height: 1.35;
    color: var(--sv-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(--sv-rising); }
.overpaidfor  { color: var(--sv-overpaidfor); }
.doingwell    { color: var(--sv-doingwell); }
.improving    { color: var(--sv-improving); }
.fluctuating  { color: var(--sv-fluctuating); }
.receding     { color: var(--sv-receding); text-shadow: var(--sv-receding-shadow); }
.stable       { color: var(--sv-stable); }
.underpaidfor { color: var(--sv-underpaidfor); }
.decreasing   { color: var(--sv-decreasing); }
.unsafe       { color: var(--sv-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.sv-light-mode img[src*="stability/Stable"] {
	box-shadow: none;
}

html.sv-light-mode img[src*="stability/Receding"] {
	box-shadow: var(--sv-receding-shadow);
}

.sidebar img, footer img, .itemhead img, #shout img {
	filter: var(--sv-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 (?item=) 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;
	}

	.sv-values-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. */
	.sv-suggested-pages .localnav {
		margin: 4px 6px;
	}

	#filterMsg {
		font-size: 14px;
	}

	#search {
		width: 60vw;
		max-width: 220px;
	}

	#year {
		width: 66px !important;
	}

	#searchBttn, #stabilitySelect, #eventSelect, #sortCombinedSelect {
		font-size: 13px;
		padding: 4px 6px;
		margin: 3px 2px;
	}

	#filterBttn, #clearFiltersBttn {
		font-size: 13px;
		padding: 4px 6px;
	}

	#filterBttn {
		margin: 3px 0 3px 5px;
	}

	#clearFiltersBttn {
		margin: 3px 0 3px -3px;
	}

	.grid {
		gap: 3px;
	}

	.itemcolumn {
		width: calc(50% - 1.5px) !important;
		margin: 0 !important;
	}

	html.sv-card-layout .itemcolumn {
		width: calc((100% - 6px) / 3) !important;
		margin: 0 !important;
	}

	.itemcell, .itemcell-exp,
	html.sv-card-layout .itemcell, html.sv-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.sv-card-layout img.itemimage {
		width: 60px !important;
		height: 60px !important;
		max-width: 60px;
		padding: 2px 0;
		margin: 2px 0;
	}

	html.sv-card-layout td.itemimage {
		height: auto !important;
	}

	.itemhead {
		font-size: 10px;
		width: auto;
		padding-top: 0;
		padding-bottom: 1px;
		line-height: 1.1;
	}

	html.sv-card-layout .itemhead {
		font-size: 11px;
		line-height: 1.1;
		padding: 0 0 2px;
	}

	html.sv-card-layout .itemcell,
	html.sv-card-layout .itemcell-exp {
		padding: 0 0 3px !important;
	}

	.itembody {
		font-size: 7.5px;
		line-height: 1.2;
	}

	.itembody img {
		max-height: 9px;
		margin: 0 1px -2px;
	}

	.addvalue, .removevalue, .customvalue {
		height: 10px !important;
		font-size: 7.5px !important;
	}

	.addvalue, .removevalue {
		width: 20px !important;
		margin: 2px 2px 0;
	}

	html:not(.sv-card-layout):not(.sv-list-layout) .addvalue,
	html:not(.sv-card-layout):not(.sv-list-layout) .removevalue {
		margin-top: 0;
	}

	.customvalue {
		width: 10px !important;
	}

	html.sv-card-layout .itembody {
		font-size: 7.5px;
		line-height: 1.2;
	}

	html.sv-card-layout .itembody img {
		max-height: 9px;
		margin: 0 1px -2px;
	}

	html.sv-card-layout .addvalue,
	html.sv-card-layout .removevalue,
	html.sv-card-layout .customvalue {
		height: 10px;
		font-size: 7px;
	}

	html.sv-card-layout .addvalue,
	html.sv-card-layout .removevalue {
		width: 14px;
	}

	html.sv-card-layout .customvalue {
		width: 10px;
	}

	.item-origin-row {
		display: none;
	}

	.item-origin-row + br {
		display: none;
	}

	.sv-pctchange {
		display: none;
	}

	html.sv-card-layout .effects,
	html.sv-card-layout .emotes {
		min-height: 172px !important;
	}

	html.sv-card-layout .powers {
		min-height: 154px !important;
	}

	html.sv-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(.sv-card-layout) .itemcell table td.itemimage,
	html:not(.sv-card-layout) .itemcell-exp table td.itemimage {
		vertical-align: middle;
	}
	html:not(.sv-card-layout) .itemcell table td:not(.itemimage),
	html:not(.sv-card-layout) .itemcell-exp table td:not(.itemimage) {
		vertical-align: top;
	}
	html:not(.sv-card-layout) .itemcell,
	html:not(.sv-card-layout) .itemcell-exp {
		display: flex !important;
		align-items: flex-start;
	}

	/* Card mode: no vertical centering anywhere, everything sits at the top. */
	html.sv-card-layout .itemcell table td,
	html.sv-card-layout .itemcell-exp table td {
		vertical-align: top;
	}
	html.sv-card-layout .itemcell,
	html.sv-card-layout .itemcell-exp {
		display: flex !important;
		align-items: flex-start;
	}

	/* The above rule also matches .sv-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. */
	.sv-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;
		padding: 1px 0 !important;
	}

	html #invRange {
		font-size: 11px;
	}

	html #invCalc .sv-inv-btn {
		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 .sv-modal {
		top: 5vh !important;
		transform: translateX(-50%) !important;
	}

	.sv-promo-banner-mobile > div:first-child {
		font-size: 4vw !important;
	}

	.sv-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 #sv-fav-btn {
		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 .sv-footer-hide-mobile,
	html .sv-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(--sv-bd-popup) solid;
}

.footertext {
	font-family: 'Nunito', sans-serif;
	font-size: 21.4px;
	line-height: 1.4;
	color: var(--sv-text);
	margin-left: auto;
	margin-right: auto;
}

footer .credit {
	font-size: 20.2px;
}

footer .copyright {
	font-size: 15px;
	line-height: 1.2;
	color: var(--sv-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(--sv-bd-card) solid;
	padding-left: 14px;
}

html.sv-light-mode a.localnav,
html.sv-light-mode .footerNav a,
html.sv-light-mode .credit a,
html.sv-light-mode .itembody a {
	color: var(--sv-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: 'Fredoka One', cursive;
    font-weight: 500;
    text-align: center;
	text-decoration: underline;
    color: var(--sv-text);
    font-size: 30px;
	line-height: 1.5;
	margin: 40px 0px 20px 0px;
}

.svbtext {
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sv-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(--sv-bg-card-d);
	color: var(--sv-text);
	border: 3px double var(--sv-bd-card);
	border-radius: 13px 0 0 13px;
	box-shadow: 0px 0px 24px var(--sv-shadow);
	transition-duration: 0.25s;
}

#popUp .hidebttn {
	position: absolute;
	top: 9px;
	right: 10px;
	font-family: 'Nunito', sans-serif;
	font-size: 45px;
	line-height: 0.6;
	padding: 0;
	color: var(--sv-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(--sv-bd-popup);
	color: var(--sv-text);
	font-size: 23px;
	line-height: 1.3;
	padding: 0 38px 5px 0;
	margin-bottom: 5px;
}

#sv-view-more-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;
	}

	#sv-theme-panel {
		width: 92vw;
		max-width: 480px;
		padding: 26px;
	}

	#sv-inv-modal {
		width: 92vw;
		max-width: 520px;
	}

	.sv-modal-title {
		font-size: 28px;
		margin-bottom: 22px;
		padding-bottom: 14px;
	}

	.sv-modal-label {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.sv-seg-btn {
		font-size: 20px;
		padding: 14px 0;
	}

	.sv-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(--sv-bg-panel);
	color: var(--sv-text);
	border-top: 2px solid var(--sv-bd-popup);
	border-left: 2px solid var(--sv-bd-popup);
	border-bottom: 2px solid var(--sv-bd-popup);
	border-radius: 18px 0 0 18px;
	box-shadow: 0px 0px 10px var(--sv-shadow);
}
#invCalc.sv-popup-open { bottom: 60px !important; }

#invCalc button {
	padding: 0 5px;
	font-family: 'Nunito', sans-serif;
	background-color: var(--sv-bg-btn2);
	border: none;
	border-radius: 1em;
	color: var(--sv-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;
}
	
#invValue {
	font-size: 16px;
    padding: 2px 0;
}

.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(--sv-bg-btn2);
	height: 14px;
	padding: 0;
	font-size: 11px;
    font-family: 'Nunito', sans-serif;
	font-weight: 600;
    line-height: 1.25;
	border: 1px solid var(--sv-bd-card);
	color: var(--sv-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. */
.sv-history-wrap,
.sv-similar-wrap {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #565656;
}
.sv-wrap-label {
	font-size: 11px;
	opacity: 0.6;
	margin-bottom: 3px;
}
.sv-similar-wrap .sv-wrap-label {
	margin-bottom: 6px;
}
.sv-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. */
.sv-item-updated {
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	color: var(--sv-text-muted);
	text-align: center;
}
.sv-stability-icon {
	height: 16px;
	vertical-align: middle;
	border-radius: 50%;
}
.sv-aliases {
	font-style: italic;
}

/* Visually-hidden but crawlable page <h1> (SEO). Was a duplicated inline
   style="" on 12 pages; consolidated here 2026-07-21. */
.sv-h1-hidden {
	font-size: 0;
	margin: -4px;
}

/* "Item Not Found" block (?item= view, no match). Was a duplicated inline
   style="" on 12 pages; consolidated here 2026-07-21. */
.sv-item-notfound {
	max-width: 700px;
	margin: 40px auto;
	text-align: center;
}
.sv-item-notfound h1 {
	color: var(--sv-text);
	font-family: 'Fredoka One', cursive;
	font-size: 26px;
	text-decoration: underline;
}
.sv-item-notfound p {
	color: var(--sv-text-muted);
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
}
.sv-item-notfound a {
	color: #5865f2;
}

/* Category-page breadcrumb nav. Was a duplicated inline style="" on 12 pages;
   consolidated here 2026-07-21. */
.sv-breadcrumb {
	max-width: 900px;
	margin: 12px auto 4px;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	color: var(--sv-text-muted);
	text-align: center;
}
.sv-breadcrumb a {
	color: var(--sv-text-muted);
}
.sv-breadcrumb-current {
	color: var(--sv-text);
}

/* Category-page title block. Was a duplicated inline style="" on 14 pages;
   consolidated here 2026-07-21. */
.sv-cat-title {
	color: var(--sv-text);
	font-size: 26px;
	font-weight: 800;
	font-family: 'Fredoka One', cursive;
	line-height: 1.2;
	text-decoration: underline;
	margin: 10px auto 6px;
	max-width: 900px;
}
.sv-cat-subtitle {
	color: var(--sv-text-muted);
	font-size: 14px;
	line-height: 1.2;
	font-family: 'Nunito', sans-serif;
	margin: 0 auto 8px;
	max-width: 820px;
}

/* Selected-item detail card (?item= view). Was a byte-identical <style> block
   duplicated in 12 category pages; consolidated here 2026-07-21. */
.sv-item-card {
	position: relative;
	width: 500px;
	max-width: 92vw;
	box-sizing: border-box;
	margin: 16px auto;
	padding: 13px 18px;
	background: var(--sv-bg-card-d);
	color: var(--sv-text);
	border: 3px double var(--sv-bd-card);
	border-radius: 13px;
	box-shadow: 0px 0px 24px var(--sv-shadow);
	text-align: left;
	font-family: 'Nunito', sans-serif;
}
.sv-item-card-title {
	border-bottom: 1px solid var(--sv-bd-popup);
	font-size: 23px;
	line-height: 1.3;
	font-family: 'Fredoka One', cursive;
	padding: 0 38px 5px 0;
	margin: 0 0 5px;
}
.sv-item-card-body { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; }
.sv-item-card-info { flex: 1; min-width: 0; }
.sv-item-card-info > div { margin: 2px 0; }
.sv-item-card-image { width: 110px; height: 110px; object-fit: contain; flex-shrink: 0; padding-top: 5px; }
.sv-item-fav-btn {
	position: absolute;
	top: 13px;
	right: 18px;
	background: none;
	border: none;
	font-size: 35px;
	line-height: 0.6;
	padding: 0;
	cursor: pointer;
	color: var(--sv-text-dim);
}

.sv-item-inv-row {
	text-align: center;
	margin: 18px 0;
}

.sv-item-inv-row .controls {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
}

.sv-item-inv-cellwrap.itemcell {
	display: contents;
	border: none;
	border-radius: 0;
	min-height: 0;
	width: auto;
	background: none;
	box-shadow: none;
	position: static;
}

.sv-item-inv-row .addvalue,
.sv-item-inv-row .removevalue,
.sv-item-inv-row .customvalue {
	height: 32px !important;
	font-size: 16px !important;
}

.sv-item-inv-row .addvalue,
.sv-item-inv-row .removevalue {
	width: 56px !important;
	border-radius: 11px !important;
	margin: 0 5px;
}

.sv-item-inv-row .customvalue {
	display: block !important;
	width: 32px !important;
	border-radius: 0 11px 11px 0 !important;
}

.customvalue-input {
	font-family: 'Nunito', sans-serif;
}

.sv-item-inv-row .customvalue-input {
	background-color: var(--sv-bg-input);
	text-align: right;
	color: var(--sv-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.sv-no-inv-calc #popUp-inv-row .customvalue { display: none !important; }

#popUp-inv-row .customvalue-input {
	background-color: var(--sv-bg-input);
	text-align: right;
	color: var(--sv-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(--sv-bg-input);
    text-align: right;
    color: var(--sv-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(--sv-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(--sv-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(--sv-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(--sv-text);
	margin: 8px 0;
    border-radius: 5px;
	box-shadow: 0 0 5px var(--sv-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(--sv-text);
}

nav ul li {
	display: flex;
	align-items: center;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	color: var(--sv-text);
	border-bottom: 1px var(--sv-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.sv-light-mode nav ul li:hover img {
	filter: opacity(0.4) invert(1);
}

	/* Inventory modal -- clickable rows */

.sv-inv-row-link:hover {
	filter: opacity(0.6);
	transition-duration: 0.15s;
}

		/* Sidebar CSS 768px+ */

@media only screen and (min-width: 769px) {
	
	#navSidebar {
		width: 220px;
		transform: translateX(0);
		filter: drop-shadow(var(--sv-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: 'Nunito', sans-serif;
	    font-weight: 900;
	    color: var(--sv-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: 'Nunito', sans-serif;
	    font-weight: 900;
	    color: var(--sv-text);
	    font-size: 42px;
	    line-height: 0;
		margin: 42px 0;
		padding-left: 10px;
		text-decoration: underline;
	}

}


/* Scrollbar */

	/* Firefox */

* {
	scrollbar-width: thin;
	scrollbar-color: var(--sv-scroll-thumb) var(--sv-scroll-track);
}

.sidebar:hover {
	scrollbar-color: var(--sv-scroll-thumb) var(--sv-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(--sv-scroll-track);
	border: none;
}

.sidebar:hover::-webkit-scrollbar-thumb {
	background-color: var(--sv-scroll-thumb);
}

.sidebar:hover::-webkit-scrollbar-thumb:hover {
	opacity: 0.85;
}

*::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

*::-webkit-scrollbar-track {
	background: var(--sv-scroll-track);
	border-left: 1px solid var(--sv-bd-card);
}

*::-webkit-scrollbar-thumb {
	background-color: var(--sv-scroll-thumb);
	border-radius: 6px;
	border: 2px solid var(--sv-scroll-track);
}

/* Inventory items popup: track should match the modal's own background
   (--sv-bg-panel), not the generic theme scroll-track color. */
#sv-inv-modal-body {
	scrollbar-color: var(--sv-scroll-thumb) var(--sv-bg-panel);
}

#sv-inv-modal-body::-webkit-scrollbar-track {
	background: var(--sv-bg-panel);
}

#sv-inv-modal-body::-webkit-scrollbar-thumb {
	border: 2px solid var(--sv-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(--sv-val-top); }
.val-mid { color: var(--sv-val-mid); }
.val-low { color: var(--sv-val-low); }
.val-sub1 { color: var(--sv-diff-neg); }

/* Ranged values — color comes from val-* pct class when present; N/A inherits body text */
.itemrange { font-weight: 900; }

/* Diff colors */
.sv-diff-pos { color: var(--sv-diff-pos); }
.sv-diff-neg { color: var(--sv-diff-neg); }

/* No-color accessibility mode */
html.sv-no-color .val-top,
html.sv-no-color .val-mid,
html.sv-no-color .val-low,
html.sv-no-color .val-sub1,
html.sv-no-color .rising,
html.sv-no-color .overpaidfor,
html.sv-no-color .doingwell,
html.sv-no-color .improving,
html.sv-no-color .fluctuating,
html.sv-no-color .receding,
html.sv-no-color .stable,
html.sv-no-color .underpaidfor,
html.sv-no-color .decreasing,
html.sv-no-color .unsafe,
html.sv-no-color .sv-diff-pos,
html.sv-no-color .sv-diff-neg { color: var(--sv-text); text-shadow: none; }
html.sv-no-color .pct-key { display: none; }

html.sv-no-inv-calc .addvalue,
html.sv-no-inv-calc .removevalue,
html.sv-no-inv-calc .customvalue-input,
html.sv-no-inv-calc .customvalue { display: none; }
html.sv-no-inv-calc #invCalc { display: none !important; }
html.sv-no-inv-calc .inv-controls-label { display: none; }
html.sv-no-inv-calc .sv-item-inv-row .customvalue { display: none !important; }
html.sv-card-layout .inv-calc-hide { display: none; }
html.sv-card-layout .inv-controls-label { display: none; }

@media only screen and (max-width: 768px) {
	html.sv-card-layout .inv-calc-hide {
		display: inline;
	}
}

.sv-mobile-only-break {
	display: none;
}
@media only screen and (max-width: 768px) {
	.sv-mobile-only-break {
		display: inline;
	}
}
html.sv-no-inv-calc .sv-mobile-only-break {
	display: inline;
}
html.sv-card-layout.sv-no-inv-calc .sv-mobile-only-break {
	display: none;
}

/* Percentile legend */
.pct-key {
	margin: 10px 0 0;
	text-align: center;
	padding: 8px 12px;
	width: fit-content;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	opacity: 0.75;
	letter-spacing: 0.02em;
	background: var(--sv-bg-panel);
	border: 1px solid var(--sv-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 */
.sv-list-wrap {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 20px;
	overflow-x: auto;
	box-shadow: 0px 0px 18px var(--sv-shadow);
}

.sv-wrap-scroll-mobile .sv-list-wrap {
	max-width: 1200px;
}

.sv-list-table {
	width: 100%;
	min-width: 200px;
	border-collapse: collapse;
	table-layout: fixed;
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
}

.sv-list-table thead th {
	padding: 0px;
	color: #000;
	font-family: 'Permanent Marker', cursive;
	font-weight: 700;
	font-size: 18px;
	white-space: nowrap;
	text-align: center;
	border-bottom: 1px solid var(--sv-bg-body);
}

.sv-list-table tbody tr,
.sv-list-table tr.itemcolumn {
	display: table-row;
	width: auto;
	margin: 0;
	cursor: pointer;
	transition: filter 0.15s;
}

.sv-list-table tbody tr:hover {
	filter: brightness(0.92);
}

.sv-list-table td {
	padding: 1px;
	text-align: center;
	color: #1a1a1a;
	white-space: nowrap;
	border-right: 1px solid var(--sv-bg-body);
}

.sv-list-table td:last-child {
	border-right: none;
}

.sv-list-table td.sv-list-name {
	font-weight: 700;
	white-space: normal;
}

.sv-list-table .stable,
.stability-key .stable {
	color: #000;
}

.stability-key .stable {
	text-shadow: 0 0 3px rgba(255,255,255,0.7);
}
html.sv-light-mode .stability-key .stable {
	text-shadow: none;
}

.sv-list-table .rising,
.sv-list-table .overpaidfor,
.sv-list-table .doingwell,
.sv-list-table .improving,
.sv-list-table .fluctuating,
.sv-list-table .receding,
.sv-list-table .underpaidfor,
.sv-list-table .decreasing,
.sv-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);
}

.sv-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);
}

.sv-list-diff-pos {
	color: #16a34a;
}

.sv-list-diff-neg {
	color: #dc2626;
}

.sv-list-table td.sv-list-wrap-cell {
	white-space: normal;
	word-break: break-word;
}

.sv-list-contains-cell a {
	color: #000 !important;
}

@media only screen and (max-width: 768px) {
	.sv-list-table { font-size: 13px; min-width: 500px; }
	.sv-list-table thead th { padding: 8px 6px; font-size: 14px; }
	.sv-list-table td { padding: 6px; }
}

@media only screen and (max-width: 500px) {
	.sv-list-table { font-size: 12px; min-width: 440px; }
	.sv-list-table thead th { padding: 6px 4px; font-size: 13px; }
	.sv-list-table td { padding: 5px 4px; }
}


/* SV Modal System */

#sv-modal-backdrop {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.65);
	z-index: 200;
}

.sv-modal {
	display: none;
	position: fixed;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	background: var(--sv-bg-panel);
	color: var(--sv-text);
	border: 2px solid var(--sv-bd-popup);
	border-radius: 14px;
	box-shadow: 0 0 30px var(--sv-shadow);
	font-family: 'Nunito', sans-serif;
	z-index: 201;
}

#sv-theme-panel {
	width: 300px;
	padding: 22px;
}

#sv-inv-modal {
	width: 460px;
	max-width: 92vw;
	max-height: 70vh;
	flex-direction: column;
}

.sv-modal-title {
	font-weight: 800;
	font-size: 19px;
	margin-bottom: 16px;
	text-align: center;
	border-bottom: 1px solid var(--sv-bd-main);
	padding-bottom: 10px;
}

.sv-modal-section {
	margin-bottom: 10px;
}

.sv-modal-label {
	font-size: 13px;
	font-weight: 900;
	margin-bottom: 6px;
	color: var(--sv-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sv-seg-row {
	display: flex;
	gap: 6px;
}

.sv-seg-btn {
	flex: 1;
	padding: 6px 0;
	background: var(--sv-bg-card-d);
	border: 1px solid var(--sv-bd-card);
	border-radius: 8px;
	color: var(--sv-text-dim);
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.15s;
}

.sv-seg-btn.sv-active {
	background: var(--sv-bg-btn2);
	border-color: var(--sv-bd-popup);
	color: var(--sv-text);
}

.sv-seg-btn:hover { opacity: 0.8; }

.sv-seg-btn-locked {
	opacity: 0.35;
	cursor: not-allowed;
}
.sv-seg-btn-locked:hover { opacity: 0.35; }

#sv-theme-hue-row {
	margin-bottom: 12px;
	display: none;
}

#sv-theme-hue {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 12px;
	border-radius: 6px;
	cursor: pointer;
	outline: none;
	border: 1px solid var(--sv-bd-main);
	background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

#sv-theme-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;
}

#sv-theme-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;
}

.sv-modal-footer {
	display: flex;
	gap: 8px;
}

.sv-modal-btn {
	flex: 1;
	padding: 9px 0;
	background: var(--sv-bg-btn2);
	border: 1px solid var(--sv-bd-popup);
	border-radius: 8px;
	color: var(--sv-text);
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 15px;
	transition: opacity 0.15s;
}

.sv-modal-btn-close {
	padding: 7px 12px;
	background: var(--sv-bg-btn2);
	border: 1px solid var(--sv-bd-popup);
	border-radius: 8px;
	color: var(--sv-text-muted);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: opacity 0.15s;
}

.sv-modal-btn:hover,
.sv-modal-btn-close:hover { opacity: 0.7; }

.sv-modal-head {
	padding: 14px 16px 10px;
	border-bottom: 1px solid var(--sv-bd-main);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sv-modal-head > span {
	font-weight: 800;
	font-size: 15px;
}

.sv-modal-head-close {
	background: var(--sv-bg-btn2);
	border: 1px solid var(--sv-bd-popup);
	border-radius: 8px;
	color: var(--sv-text-muted);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px 6px;
	transition: opacity 0.15s;
}

.sv-modal-head-close:hover { opacity: 0.7; }

#sv-inv-modal-body {
	overflow-y: auto;
	flex: 1;
	padding: 8px 16px 4px;
}

#sv-inv-modal-body > div,
#sv-inv-modal-body > a {
	font-size: 16px !important;
	padding: 6px 0 !important;
}

#sv-inv-modal-body > div > span:last-child span,
#sv-inv-modal-body > a > span:last-child span {
	font-size: 13px !important;
}

#sv-inv-modal .sv-modal-head > span {
	font-size: 19px;
}

#sv-inv-modal-total {
	padding: 8px 16px;
	font-size: 15px;
	text-align: right;
	color: var(--sv-text-muted);
}

.sv-modal-foot {
	padding: 10px 16px;
	border-top: 1px solid var(--sv-bd-main);
}

.sv-inv-foot-row {
	display: flex;
	gap: 8px;
}

.sv-inv-clear-btn {
	width: 100%;
	flex: 1;
	padding: 8px 0;
	background: var(--sv-bg-btn2);
	border: 1px solid var(--sv-bd-popup);
	border-radius: 8px;
	color: var(--sv-text-muted);
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-size: 15px;
	font-weight: 700;
	transition: opacity 0.15s;
}

.sv-inv-clear-btn:hover { opacity: 0.7; }

#sv-ctrl-btns {
	position: fixed;
	top: 28px;
	right: 18px;
	z-index: 5;
	display: flex;
	gap: 6px;
	align-items: center;
}

.sv-ctrl-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	transition-duration: 0.15s;
}

.sv-ctrl-btn img {
	width: 40px;
	filter: var(--sv-img-filter);
}

.sv-ctrl-btn:hover { opacity: 0.7; }

#sv-inv-row {
	margin-top: 6px;
	display: flex;
	gap: 6px;
	justify-content: center;
}

.sv-inv-btn {
	background: var(--sv-bg-panel);
	border: 2px solid var(--sv-bd-main);
	border-radius: 8px;
	color: var(--sv-text);
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
}

.sv-inv-btn:hover { opacity: 0.7; }

#sv-fav-btn {
	position: absolute;
	top: 13px;
	right: 50px;
	background: none;
	border: none;
	font-size: 35px;
	line-height: 0.6;
	padding: 0;
	cursor: pointer;
	color: var(--sv-text-dim);
}


/* Similar Items Cells */

.sv-sim-cell {
	display: block;
	background: var(--sv-bg-card-l);
	border: 1px solid var(--sv-bd-card);
	border-radius: 6px;
	padding: 8px 6px 7px;
	text-align: center;
	box-sizing: border-box;
	text-decoration: none;
	min-width: 0;
}

.sv-sim-cell:hover {
	opacity: 0.85;
	transition-duration: 0.15s;
}

.sv-sim-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	margin: 0 auto 5px;
}

.sv-sim-img-ph {
	width: 72px;
	height: 72px;
	margin: 0 auto 5px;
}

.sv-sim-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--sv-text);
	line-height: 1.25;
	margin-bottom: 3px;
	white-space: normal;
	word-break: break-word;
	text-decoration: none;
}

.sv-sim-value {
	display: block;
	font-size: 11px;
	color: var(--sv-text-muted);
	white-space: normal;
	word-break: break-word;
	text-decoration: none;
}

.sv-sim-meta {
	display: block;
	font-size: 10px;
	color: var(--sv-text-dim);
	text-decoration: none;
}


/* Chart Range Buttons */

.sv-range-btns {
	display: flex;
	gap: 4px;
	margin-bottom: 7px;
	flex-wrap: wrap;
}

.sv-range-btn {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 10px;
	border: 1px solid var(--sv-bd-card);
	background: transparent;
	color: var(--sv-text-dim);
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
}

.sv-range-btn.sv-active {
	background: var(--sv-bg-btn2);
	border-color: var(--sv-bd-main);
	color: var(--sv-text);
}


/* Chart SVG */

.sv-chart-grid { stroke: var(--sv-bd-card); }
.sv-chart-label { fill: var(--sv-text-dim); color: var(--sv-text-dim); }


/* Chart Tooltip */

.sv-chart-tip {
	position: absolute;
	background: var(--sv-bg-card-l);
	border: 1px solid var(--sv-bd-card);
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 11px;
	pointer-events: none;
	display: none;
	z-index: 10;
	font-family: 'Nunito', sans-serif;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--sv-text);
}


/* Mobile value history timeframe button visibility */

@media only screen and (max-width: 768px) {

	.sv-range-btn.sv-active {
		color: var(--sv-text);
		background: var(--sv-bg-btn2);
	}

}
