/* overrides */

body {
	background-image: url("https://olitracker.com/cdn/backgrounds/schematics.jpg") !important;
	background-size: cover !important;
	background-position: center !important;
	background-attachment: fixed !important;
}

#profileMetadata {
	color: #ffffff !important;
}

#profileMetadata * {
	color: #ffffff !important;
}

.bg-base-400 {
	background-color: hsl(245deg 1% 14% / 69%) !important;
}

.tab-picker-option {
	color: #cfd6e6 !important;
}

.tab-picker-option.active {
	color: #52c3fe !important;
}

#lastUpdated {
	color: #ffffff !important;
}

#viewCount {
	color: #ffffff !important;
}

.tab-picker-container {
	background-color: #2a2f3a !important;
}

.search-bar .search-input {
	background-color: #4a4a4a9e !important;
}

/* overrides */

@font-face {
	font-family: "Burbank Big Condensed";
	src: url("/burbank-big-condensed.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.weapon-card {
	width: 95px;
	height: 150px;
	position: relative;
	overflow: hidden;
	background-repeat: repeat;
	background-size: auto;
	cursor: pointer;
}

.weapon-card:hover {
	outline: 3px solid #ffffff;
}

.weapon-card.active {
	outline: 3px solid #fff500;
}

.weapon-card.active:hover {
	outline: 3px solid #fff500;
}

.hero-weapon-card {
	width: 95px;
	height: 150px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.hero-weapon-card:hover {
	outline: 3px solid #ffffff;
}

.hero-weapon-card.active {
	outline: 3px solid #fff500;
}

.hero-weapon-card.active:hover {
	outline: 3px solid #fff500;
}

.survivor-card {
	width: 95px;
	height: 150px;
	position: relative;
	overflow: hidden;
	background-repeat: repeat;
	background-size: auto;
}

.survivor-card:hover {
	outline: 3px solid #ffffff;
}

.survivor-card.active {
	outline: 3px solid #fff500;
}

.survivor-card.active:hover {
	outline: 3px solid #fff500;
}

.weapon-icon {
	position: absolute;
	top: 6px;
	left: -10px;
	right: -10px;
	bottom: 50px;
	background-repeat: no-repeat, repeat;
	background-size: contain, auto;
	background-position: center, center;
	z-index: 1;
}

.hero-weapon-icon {
	position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: 22px;
    background-repeat: no-repeat, repeat;
    background-size: 117% auto, auto;
    background-position: center, center;
    z-index: 1;
}

.power {
	position: absolute;
	top: 0;
	left: 0;
	height: 24px;
	padding: 0 12px 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #000;
	background: rgba(255, 255, 255, 0.65);
	display: flex;
	align-items: center;
	clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
	z-index: 5;
}

.stat-bar {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	height: 24px;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 6px;
	z-index: 999;
}

.stat-bar img {
	height: 16px;
}

.stars {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 22px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 3px;
}

.star {
	width: 16px;
	height: 16px;
	margin: 0 -1px;
}

.weapon-grid {
	width: 100%;
	display: grid;

	grid-template-columns: repeat(auto-fill, 95px);

	gap: 16px;

	justify-content: center;
}

.rarity-Mythic {
	background: #dcca79;
	border: 4px solid #dcca79;
}

.rarity-Mythic .stars,
.rarity-Mythic .hero-hover-tooltip {
	background: #ccb158;
}

.rarity-Legendary {
	background: #ef7d14;
	border: 4px solid #ef7d14;
}

.rarity-Legendary .stars,
.rarity-Legendary .hero-hover-tooltip {
	background: #da6c19;
}

.rarity-Epic {
	background: #9250e0;
	border: 4px solid #9250e0;
}

.rarity-Epic .stars,
.rarity-Epic .hero-hover-tooltip {
	background: #7832ce;
}

.rarity-Rare {
	background: #1f79e6;
	border: 4px solid #1f79e6;
}

.rarity-Rare .stars,
.rarity-Rare .hero-hover-tooltip {
	background: #005cca;
}

.rarity-Uncommon {
	background: #55b81a;
	border: 4px solid #55b81a;
}

.rarity-Uncommon .stars,
.rarity-Uncommon .hero-hover-tooltip {
	background: #3a9a03;
}

.rarity-Transparent {
	background: #1e1e1e80;
}

.rarity-Common {
	background: #7c848c;
	border: 4px solid #7c848c;
}

.rarity-Common .stars,
.rarity-Common .hero-hover-tooltip {
	background: #656b71;
}

.favourite {
	position: absolute;
	top: 0;
	right: 3px;
	width: 22px;
	height: 12px;
	background: #20d8ff;
	z-index: 5;
}

.favourite::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 0;
	height: 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 10px solid #20d8ff;
}

.stw-search-bar .search-container {
	max-width: none;
	gap: 0;
}

.stw-search-bar .search-input {
	padding: 0 50px 0 20px;
}

.stw-search-bar .platform-icons,
.stw-search-bar .search-button {
	display: none;
}

.schematic-popout * {
	box-sizing: border-box;
	font-family: "Burbank", sans-serif;
}

.schematic-popout {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, .7);
	z-index: 9999;
	padding: 15px;
}

.schematic-popout-card {
	width: 95%;
	max-width: 820px;
	background: linear-gradient(180deg, #39415c, #0f1b34);
	color: white;
	overflow: hidden;
	border-radius: 8px;
}

.schematic-popout-header {
	padding: 16px 20px 10px 20px;
	background: #e9e1db;
	color: #4c3a33;
}

.schematic-popout-rarity {
	font-weight: bold;
}

.schematic-popout-title {
	font-family: "Burbank Big Condensed", sans-serif;
	font-size: 24px;
	font-weight: 900;
	margin-top: 10px;
}

.schematic-popout-subtype {
	margin-top: 6px;
	font-weight: bold;
}

.schematic-popout-levelbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
}

.schematic-popout-level-left {
	background: #bfbfbf33;
	padding: 8px 18px;
	font-size: clamp(20px, 3vw, 28px);
	font-weight: bold;
}

.schematic-popout-stars {
	font-size: clamp(18px, 2.5vw, 24px);
	letter-spacing: 4px;
}

.schematic-popout-stars .star {
    width: 26px;
    height: 26px;
}

.schematic-popout-level-right {
	padding-right: 20px;
	font-size: clamp(16px, 2.5vw, 22px);
	font-weight: bold;
}

.schematic-popout-materials {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.schematic-popout-material {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

.schematic-popout-material img {
	width: 28px;
}

.schematic-popout-perk {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	font-size: clamp(14px, 2vw, 16px);
}

.schematic-popout-perk-bars {
	width: 24px;
	margin-right: 12px;
}

.schematic-popout-perk-legendary-bar {
	width: 8px;
	height: 6px;
	background: #ff8b19;
	margin: 3px 0;
}

.schematic-popout-perk-epic-bar {
	width: 8px;
	height: 6px;
	background: #ce59ff;
	margin: 3px 0;
}

.schematic-popout-perk-rare-bar {
	width: 8px;
	height: 6px;
	background: #00afff;
	margin: 3px 0;
}

.schematic-popout-perk-uncommon-bar {
	width: 8px;
	height: 6px;
	background: #61bf00;
	margin: 3px 0;
}

.schematic-popout-perk-common-bar {
	width: 8px;
	height: 6px;
	background: #b7bfc5;
	margin: 3px 0;
}

.schematic-popout-perk-empty-bar {
	width: 8px;
	height: 6px;
	background: #1f1d2e;
	margin: 3px 0;
}

.schematic-popout-sixth-perk {
	padding: 16px 20px;
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.4;
	color: #e4e6ec;
}

.rarity-mythic .schematic-popout-rarity {
	color: bf9323;
}

.rarity-mythic .schematic-popout-title {
	color: #7c5d26;
}

.rarity-mythic .schematic-popout-levelbar {
	background: #977325;
}

.rarity-legendary .schematic-popout-rarity {
	color: #ff7a1a;
}

.rarity-legendary .schematic-popout-title {
	color: #913e1c;
}

.rarity-legendary .schematic-popout-levelbar {
	background: #913e1c;
}

.rarity-epic .schematic-popout-rarity {
	color: #762dd3;
}

.rarity-epic .schematic-popout-title {
	color: #4c197b;
}

.rarity-epic .schematic-popout-levelbar {
	background: #531c8c;
}

.rarity-rare .schematic-popout-rarity {
	color: 0058bf;
}

.rarity-rare .schematic-popout-title {
	color: 00458a;
}

.rarity-rare .schematic-popout-levelbar {
	background: #004995;
}

.rarity-uncommon .schematic-popout-rarity {
	color: #008005;
}

.rarity-uncommon .schematic-popout-title {
	color: #024f03;
}

.rarity-uncommon .schematic-popout-levelbar {
	background: #3c7f00;
}

.rarity-common .schematic-popout-rarity {
	color: #747a80;
}

.rarity-common .schematic-popout-title {
	color: #40464d;
}

.rarity-common .schematic-popout-levelbar {
	background: #4f545b;
}

.stw-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.weapon-grid {
	flex: 1;
}

.schematic-inspect {
	width: 550px;
	flex-shrink: 0;

	position: sticky;
	top: 20px;

	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.hero-loadout {
	width: 550px;
	flex-shrink: 0;

	position: sticky;
	top: 20px;

	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.schematic-filter-button-bar {
	display: flex;
	gap: 10px;
}

.schematic-filter-tile {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.schematic-filter-tile-inner {
	width: 100%;
	height: 100%;
	background: #0c61d9;
	transform: skewX(8deg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.schematic-filter-tile img {
	width: 65%;
	height: 65%;
	transform: skewX(-8deg);
	opacity: .7;
	pointer-events: none;
}

.schematic-filter-tile:hover .schematic-filter-tile-inner {
	background: #177ee6;
	box-shadow: inset 0 0 0 4px #0b94f3;
}

.schematic-filter-tile:hover img {
	opacity: 1;
}

.schematic-filter-tile.active .schematic-filter-tile-inner {
	background: #00aaff;
	box-shadow: inset 0 0 0 4px #66ccff;
}

.schematic-filter-tile.active img {
	opacity: 1;
}

.schematic-filter-tile.active:hover .schematic-filter-tile-inner {
	background: #177ee6;
	box-shadow: inset 0 0 0 4px #0b94f3;
}

.schematic-filter-topbar {
	display: flex;
	align-items: center;
}

.schematic-filter-topbar .stw-search-bar {
	flex: 1;
}

.schematic-filter-button-bar {
	display: flex;
	gap: 10px;
}

/*new survivor squads css*/

.squad {
	width: 100%;
	max-width: 950px;
	background: #141c30;
	border-radius: 6px;
	overflow: hidden;
	margin: 0 auto;
}

.squad-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #2a314a;
}

.squad-icon {
	width: 24px;
}

.squad-title {
	font-family: "Burbank Big Condensed";
	font-size: 28px;
	color: white;
}

.squad-subheader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 14px;
	background: #0f1629;
}

.survivor-fort {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #d6d8df;
	font-size: 18px;
}

.survivor-fort img {
	width: 20px;
}

.survivor-fort-value {
	color: #e8edff;
}

.survivor-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	flex-wrap: wrap;
}

.squad-divider {
	width: 3px;
	height: 90px;
	background: #2c3350;
	margin: 0 6px;
}

.survivor {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.personality {
	margin-top: 6px;
	width: 24px;
}

.personality-matching {
	filter:
		brightness(0) saturate(100%) invert(84%) sepia(72%) saturate(650%) hue-rotate(5deg) brightness(100%) contrast(101%);
}

.survivor-portrait {
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: 22px;
	background-size: cover;
	background-position: center 20%;
	background-repeat: no-repeat;
	z-index: 0;
}

.hero-card *,
.hero-card *::before,
.hero-card *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.hero-card {
	width: 100%;
	max-width: 500px;
	color: white;
	font-family: "Burbank", sans-serif;

	--hero-header-left-side: #ddbc48;
	--hero-header-right-side: #c9ac44;
	--hero-abilities-left: #81724e;
	--hero-abilities-right: #655531;
}

.hero-header {
	height: clamp(70px, 17vw, 95px);
	position: relative;
	background: var(--hero-header-left-side);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	overflow: hidden;
}

.hero-divider {
	position: absolute;
	left: clamp(40px, 10vw, 60px);
	top: 0;
	height: 100%;
	width: auto;
	pointer-events: none;
}

.hero-right-fill {
	background: var(--hero-header-right-side);
	height: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-right: clamp(10px, 3vw, 18px);
}

.hero-power {
	position: absolute;
	left: clamp(8px, 2.5vw, 14px);
	top: clamp(6px, 1.5vw, 12px);
	font-size: clamp(22px, 6vw, 32px);
	z-index: 3;
}

.hero-header-right {
	text-align: right;
	z-index: 2;
}

.hero-title {
	font-family: "Burbank Big Condensed";
	letter-spacing: .05rem;
	font-size: clamp(18px, 5vw, 30px);
	line-height: 1;
}

.hero-meta {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: clamp(6px, 2vw, 10px);
	margin-top: clamp(4px, 1vw, 6px);
}

.hero-stars {
	font-size: clamp(11px, 3vw, 16px);
}

.hero-sub {
	font-size: clamp(12px, 3.5vw, 18px);
}

.hero-abilities-container {
	display: flex;
	height: clamp(38px, 9.5vw, 52px);
}

.hero-abilities-left {
	flex: 1;
	background: var(--hero-abilities-left);
	color: var(--hero-abilities-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(12px, 3.5vw, 18px);
}

.hero-abilities-right {
	flex: 1;
	background: var(--hero-abilities-right);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 2.5vw, 14px);
	position: relative;
}

.hero-abilities-right::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 0;
	width: 40px;
	height: 100%;
	background: var(--hero-abilities-left);
	transform: skewX(-25deg);
}

.hero-abilities-right img {
	width: clamp(24px, 7vw, 38px);
}

.hero-commander {
	display: flex;
	height: clamp(38px, 9.5vw, 52px);
}

.hero-commander-left {
	flex: 1;
	background: linear-gradient(90deg, #0f1f3c, #424f68);
	display: flex;
	align-items: center;
	gap: clamp(8px, 2.5vw, 12px);
	padding-left: clamp(10px, 2.5vw, 14px);
	font-size: clamp(12px, 3.5vw, 18px);
}

.hero-commander-left img {
	width: clamp(18px, 5vw, 26px);
}

.hero-commander-hero {
	box-shadow: inset 0 0 0 3px var(--rarity-main);
}

.hero-commander-hero img {
	transform: translateY(-3px);
}

.hero-team-perk {
	margin-top: clamp(12px, 3.5vw, 18px);
}

.hero-section-title {
	color: #fffff;
	font-size: clamp(14px, 4vw, 20px);
	margin-bottom: 4px;
}

.hero-team-perk-row {
	display: flex;
	align-items: center;
	background: linear-gradient(90deg, #5d1fa6, #2fc6d8);
	padding: clamp(8px, 2vw, 12px);
	font-size: clamp(12px, 3.5vw, 16px);
}

.hero-team-perk-row img {
	width: clamp(20px, 5.5vw, 28px);
	margin-right: clamp(6px, 2vw, 10px);
}

.hero-support {
	margin-top: clamp(10px, 3vw, 16px);
}

.hero-gadgets {
	margin-top: clamp(10px, 3vw, 14px);
}

.hero-support-row,
.hero-gadget-row {
	display: flex;
	align-items: stretch;
	height: clamp(38px, 9.5vw, 52px);
	margin-bottom: clamp(3px, 1vw, 6px);
	font-size: clamp(12px, 3.5vw, 16px);
}

.hero-gadget-row {
	background: #14223f;
}

.hero-commander-icon,
.hero-support-icon,
.hero-gadget-icon {
	width: clamp(40px, 10vw, 54px);
	background: #000724;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: stretch;
}

.hero-commander-icon img,
.hero-support-icon img,
.hero-gadget-icon img {
	width: clamp(20px, 5.5vw, 30px);
}

.hero-support-label,
.hero-gadget-label {
	display: flex;
	align-items: center;
	padding: clamp(6px, 2vw, 10px);
	gap: clamp(6px, 2vw, 10px);
}

.hero-support-label {
	flex: 1;
	background: #162445;
}

.hero-support-hero {
	--rarity-main: #8a3c1e;
	--rarity-bg: #f48116;

	flex-shrink: 0;
	aspect-ratio: 1 / 1;
	width: 100px;

	background: var(--rarity-bg);
	box-shadow: inset 0 0 0 5px var(--rarity-main);

	display: flex;
	align-items: center;
	justify-content: center;

	overflow: visible;
	position: relative;

	min-width: 0;
    min-height: 0;
}

.hero-support-hero::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rarity-main) var(--class-icon) no-repeat center / 85%;
	border: 2px solid var(--rarity-main);
	z-index: 2;
}

.hero-support-hero img {
	height: 100%;
	object-fit: contain;
	object-position: top center;
	display: block;
	transform: translateY(-5px);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
	position: absolute;
}

.hero-rarity-uncommon {
	--hero-header-left-side: #5bb900;
	--hero-header-right-side: #4aa300;
	--hero-abilities-left: #3e8c00;
	--hero-abilities-right: #2e6b00;
	--hero-abilities-text: #81dd0e;
}

.hero-rarity-rare {
	--hero-header-left-side: #00aefe;
	--hero-header-right-side: #0096d8;
	--hero-abilities-left: #007fc0;
	--hero-abilities-right: #0067a0;
	--hero-abilities-text: #00cae1;
}

.hero-rarity-epic {
	--hero-header-left-side: #ce59ff;
	--hero-header-right-side: #b448f0;
	--hero-abilities-left: #9a3ed0;
	--hero-abilities-right: #7f31ac;
	--hero-abilities-text: #9e08c3;
}

.hero-rarity-legendary {
	--hero-header-left-side: #f48116;
	--hero-header-right-side: #dd6f0a;
	--hero-abilities-left: #b55a07;
	--hero-abilities-right: #924806;
	--hero-abilities-text: #efb269;
}

.hero-rarity-mythic {
	--hero-header-left-side: #ddbc48;
	--hero-header-right-side: #c9ac44;
	--hero-abilities-left: #81724e;
	--hero-abilities-right: #655531;
	--hero-abilities-text: #e1d6a7;
	--rarity-main: #7c5d26;
	--rarity-bg: #ddbd48;
}

.hero-portrait-uncommon {
	--rarity-main: #024f03;
	--rarity-bg: #5bb900;
}

.hero-portrait-rare {
	--rarity-main: #00458a;
	--rarity-bg: #00aefe;
}

.hero-portrait-epic {
	--rarity-main: #4c197b;
	--rarity-bg: #ce59ff;
}

.hero-portrait-legendary {
	--rarity-main: #8a3c1e;
	--rarity-bg: #f48116;
}

.hero-portrait-mythic {
	--rarity-main: #7c5d26;
	--rarity-bg: #ddbd48;
}

.loadout-ui{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:2rem;
  margin:auto;

  color:#e6e6e6;
  font-size: 30px;
  margin-bottom: 10px;
}

.loadout-controls{
  display:flex;
  align-items:center;
  gap:0.4em;
}

.loadout-arrow {
  width: 0;
  height: 0;
  cursor: pointer;
}

.loadout-arrow.left {
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid white;
}

.loadout-arrow.right {
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid white;
}

.loadout-count{
  min-width:1ch;
  text-align:center;
}

.hero-hover-tooltip {
    position: fixed;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    display: none;
}

.hero-hover-name {
    text-align: center;
    font-weight: 600;
}

.hero-hover-gadgets {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.hero-hover-gadgets img {
    width: 36px;
    height: 36px;
}

.overview-section {
    margin-bottom: 40px;
}

.overview-title {
    font-size: 30px;
    margin-bottom: 8px;
}

.overview-box {
    background: rgba(30,30,30,0.50);
    border-radius: 8px;

    padding: 16px 8px;

    display: flex;
    justify-content: center;
}

.overview-button {

    width: 100%;
    margin-top: 12px;

    padding: 14px;

    background: rgba(60,60,60,0.9);
    border-radius: 6px;

    font-weight: 600;
    font-size: 16px;

    color: white;
    border: none;

    cursor: pointer;

    transition: background 0.15s ease;
}

.overview-button:hover {
    background: rgba(80,80,80,0.9);
}

.overview-supercharger {
    font-size: 18px;
    gap: 12px;
    align-items: center; /* keep center */
}

.overview-supercharger img {
    width: 64px;
    height: 64px;
    position: relative;
    top: -3px;
}

.supercharger-text {
    display: flex;
    flex-direction: column;
}

.supercharger-title {
    font-weight: 600;
    font-size: 16px;
}

.resource-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.resource-item {
    width: 95px;
    height: 95px;
    border: 3px solid;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-item img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.resource-qty {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 20px;
    color: white;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.8),
        0 0 4px rgba(0,0,0,0.6);
}

.resource-legendary {
    border-color: #edb963;
    background: radial-gradient(circle, #e37d21 0%, #a9673b 100%);
}

.resource-epic {
    border-color: #b528e1;
    background: radial-gradient(circle, #b245e0 0%, #721e9d 100%);
}

.resource-rare {
    border-color: #00edea;
    background: radial-gradient(circle, #0590e1 0%, #0071a2 100%);
}

.resource-uncommon {
    border-color: #6ec102;
    background: radial-gradient(circle, #409402 0%, #387a03 100%);
}

.resource-common {
    border-color: #cacaca;
    background: radial-gradient(circle, #8b9297 0%, #676a6f 100%);
}

.achievement-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.achievement-card {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-icon {
    width: 90px;
    height: 90px;

    align-items: center;
    justify-content: center;

    border: 3px solid #ae7147;
    outline: 4px solid #f6be7c;

    background: rgba(0,0,0,0.35);
    box-sizing: border-box;
}

.achievement-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.achievement-progress {
    margin-top: 8px;
    font-size: 13px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.ssd-grid{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

.ssd-card{
    width:140px;

    display:flex;
    flex-direction:column;
    align-items:center;

    text-align:center;
}

.ssd-title{
    font-weight:600;
    margin-bottom:8px;
}

.ssd-card img{
    width:72px;
    height:auto;   /* prevents stretching */
    display:block;
    margin:6px 0;
}

.ssd-progress{
    font-size:14px;
    color:#ddd;
}

.weapon-card.Melee .stat-bar img:first-child {
    display: none;
}

/* medias */

@media (max-width:1100px) {
	.schematic-inspect {
		display: none;
	}

	.stw-layout {
		flex-direction: column;
		align-items: center;
	}

	.hero-loadout {
		width: 100%;
		position: static;
		order: -1;
		max-height: none;
		overflow: visible;

		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width:700px) {
	.schematic-filter-topbar {
		flex-wrap: wrap;
	}

	.schematic-filter-topbar .stw-search-bar {
		flex: 1 1 100%;
	}

	.schematic-filter-button-bar {
		flex: 1 1 100%;
		display: flex;
		gap: 10px;
		justify-content: center;
		margin-bottom: 15px;
	}

	.squad-divider {
		display: none;
	}

	.survivor-card {
		width: 70px;
		height: 100px;
	}

	.power {
		font-size: 14px;
	}

	.personality {
		width: 18px;
	}
}