/* BLACK RAIN inventory keeps the live item, supply, fragment and capacity DOM. */
.frame_profile .inventory-sort { display: none; }
html.survival-portrait body .game .frame_profile.inventory-popup-open {
	background: linear-gradient(180deg, rgba(5, 13, 20, .69), rgba(5, 13, 20, .78) 78%, #06111a 90%, #06111a) !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup {
	left: 8px !important;
	top: 111px !important;
	width: calc(100% - 16px) !important;
	height: 435px !important;
	background: linear-gradient(156deg, rgba(32, 53, 65, .98), rgba(8, 20, 30, .98) 47%, rgba(8, 19, 28, .99)) !important;
	border: 1px solid #9a8569 !important;
	border-radius: 10px !important;
	box-shadow: 0 0 0 2px #07101ae6, 0 15px 32px #000c, inset 0 1px #e8c79b55 !important;
	color: #f2e8d8 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup::before {
	left: 9px !important;
	top: 91px !important;
	width: calc(100% - 18px) !important;
	height: 298px !important;
	background: #091924cf !important;
	border: 1px solid #6b7c83 !important;
	border-radius: 6px !important;
	box-shadow: inset 0 0 23px #050c13a3 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .h1 {
	left: 14px !important;
	top: 8px !important;
	width: calc(100% - 62px) !important;
	height: 29px !important;
	font: 800 20px/28px var(--br-display) !important;
	text-align: left !important;
	color: #fff3dc !important;
	text-shadow: 0 2px 4px #000 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-close {
	right: 10px !important;
	top: 9px !important;
	width: 29px !important;
	height: 29px !important;
	border: 1px solid #9daeb2 !important;
	border-radius: 5px !important;
	background: linear-gradient(#3e5663, #1b303d) !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-tabs {
	left: 9px !important;
	top: 46px !important;
	width: calc(100% - 18px) !important;
	height: 36px !important;
	gap: 4px !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-tabs > .inventory-tab {
	height: 34px !important;
	font: 800 10px/33px var(--br-display) !important;
	border-color: #6f858b !important;
	background: #213947 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-tabs > .inventory-tab.active {
	background: linear-gradient(#dfab72, #a66842) !important;
	border-color: #f4c894 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-tab-label {
	height: 34px !important;
	line-height: 33px !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-items-active > .inventory-sort {
	display: block;
	position: absolute;
	top: 9px;
	right: 49px;
	width: 91px;
	height: 28px;
	padding: 0 5px;
	border: 1px solid #be9b70;
	border-radius: 5px;
	background: linear-gradient(#344858, #182d3b);
	color: #f2c58f;
	font: 800 10px/26px var(--br-display);
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
}
@media (max-width: 700px) {
	html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .h1 {
		font-size: 16px !important;
	}
	html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-sort {
		width: 85px;
		font-size: 9px;
	}
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .itemBlock,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-runes,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-shards {
	left: 15px !important;
	top: 99px !important;
	width: calc(100% - 30px) !important;
	height: 285px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	grid-auto-rows: 64px !important;
	gap: 6px !important;
	padding: 0 1px 4px !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .itemBlock > .item3,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-runes > .inventory-rune-slot,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-shards > .inventory-shard-slot {
	height: 63px !important;
	border: 1px solid #6d838a !important;
	border-radius: 5px !important;
	background: linear-gradient(148deg, #233b4a, #0f2330 80%) !important;
	box-shadow: inset 0 1px #eff7ef26, 0 1px 2px #0009 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .itemBlock > .item > .shop_icon {
	left: 3px !important;
	top: 2px !important;
	width: calc(100% - 6px) !important;
	height: calc(100% - 4px) !important;
	filter: drop-shadow(0 2px 3px #0007) !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .itemBlock > .item3 > .inventory-supply-art {
	background-size: 72% 72% !important;
	background-position: center 41% !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-item-level {
	position: absolute;
	left: 3px;
	bottom: 2px;
	z-index: 2;
	max-width: calc(100% - 29px);
	padding: 1px 4px;
	border-radius: 2px;
	background: #0a1a24d9;
	font: 800 9px/11px Arial, sans-serif;
	color: #f0d4ad;
	text-shadow: 0 1px 2px #000;
	white-space: nowrap;
	pointer-events: none;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup > .inventory-footer {
	left: 13px !important;
	bottom: 9px !important;
	width: calc(100% - 26px) !important;
	height: 29px !important;
	border: 1px solid #697d82 !important;
	border-radius: 5px !important;
	background: #142936e8 !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-capacity {
	padding-left: 31px !important;
	font: 700 12px/28px Arial, sans-serif !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-footer-icon {
	left: 5px !important;
	top: 3px !important;
	width: 21px !important;
	height: 21px !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-capacity-plus {
	top: 0 !important;
	width: 33px !important;
	height: 33px !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-capacity-plus::after {
	font: 800 20px/31px Arial, sans-serif !important;
}

/* The test account has no stored gear. Show that truth instead of a wall of blanks. */
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-survival-empty {
	display: none;
	position: absolute;
	left: 23px;
	right: 23px;
	top: 164px;
	z-index: 4;
	padding: 14px 12px;
	border: 1px dashed #789099;
	border-radius: 8px;
	background: #172f3bdc;
	color: #e6e9e5;
	font: 700 12px/17px Arial, sans-serif;
	text-align: center;
	text-shadow: 0 1px 2px #000;
	pointer-events: none;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-survival-empty img {
	display: block;
	width: 45px;
	height: 45px;
	margin: 0 auto 9px;
	object-fit: contain;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-items-active.inventory-empty-items > .inventory-survival-empty,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-runes-active.inventory-empty-runes > .inventory-survival-empty,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-shards-active.inventory-empty-shards > .inventory-survival-empty {
	display: block;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-items-active.inventory-empty-items > .itemBlock > .item3,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-runes-active.inventory-empty-runes > .inventory-runes > .inventory-rune-slot,
html.survival-portrait body .game .frame_profile.inventory-popup-open > .items.profile-items-popup.inventory-tab-shards-active.inventory-empty-shards > .inventory-shards > .inventory-shard-slot {
	visibility: hidden !important;
}

/* The catalog has 200 unnamed supply SKUs. Keep their ID/price/amount live;
   replace the visible fantasy food art with existing production survival art. */
html.survival-portrait body .game .frame_profile.inventory-popup-open .inventory-footer-icon-items {
	background-image: url('../img/company/survival/crate_closed.png') !important;
	filter: none !important;
}
html.survival-portrait body .game .frame_profile.inventory-popup-open .itemBlock .inventory-supply-art,
html.survival-portrait body .game :is(#sellDial, #resultArena) .inventory-supply-art {
	background-image: url('../img/company/survival/crate_closed.png') !important;
	background-size: 78% 78% !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-color: transparent !important;
}
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-01 { background-image: url('../img/items/survival/salvage/salvage_01.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-02 { background-image: url('../img/items/survival/salvage/salvage_02.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-03 { background-image: url('../img/items/survival/salvage/salvage_03.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-04 { background-image: url('../img/items/survival/salvage/salvage_04.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-05 { background-image: url('../img/items/survival/salvage/salvage_05.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-06 { background-image: url('../img/items/survival/salvage/salvage_06.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-07 { background-image: url('../img/items/survival/salvage/salvage_07.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-08 { background-image: url('../img/items/survival/salvage/salvage_08.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-09 { background-image: url('../img/items/survival/salvage/salvage_09.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-10 { background-image: url('../img/items/survival/salvage/salvage_10.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-11 { background-image: url('../img/items/survival/salvage/salvage_11.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-12 { background-image: url('../img/items/survival/salvage/salvage_12.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-13 { background-image: url('../img/items/survival/salvage/salvage_13.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-14 { background-image: url('../img/items/survival/salvage/salvage_14.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-15 { background-image: url('../img/items/survival/salvage/salvage_15.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-16 { background-image: url('../img/items/survival/salvage/salvage_16.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-17 { background-image: url('../img/items/survival/salvage/salvage_17.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-18 { background-image: url('../img/items/survival/salvage/salvage_18.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-19 { background-image: url('../img/items/survival/salvage/salvage_19.png') !important; }
html.survival-portrait body .game :is(.frame_profile.inventory-popup-open .itemBlock, #sellDial, #resultArena) .inventory-supply-art.salvage-20 { background-image: url('../img/items/survival/salvage/salvage_20.png') !important; }

/* The supply sale uses the existing buttons and handlers in a dry, opaque view. */
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) {
	--inventory-sale-offset: 99px;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 600px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	transform: none !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	background: linear-gradient(180deg, #07131b27, #07131b7a 52%, #07131b60), url('../img/items/survival/inventory_sale_dry.webp') center / cover no-repeat !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #f2eee4 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale::before {
	content: '';
	position: absolute;
	left: 6px;
	right: 6px;
	top: calc(16px + var(--inventory-sale-offset));
	height: 344px;
	border: 1px solid #8f714c; border-image: url('../img/ui/survival/metal_dialog_edge.webp') 24 / 9px stretch;
	border-radius: 7px;
	background: #211e1b url('../img/ui/survival/dark_dialog_steel.webp') center / cover no-repeat;
	box-shadow: 0 8px 22px #030c14d9, inset 0 1px #e9c99b5c;
	pointer-events: none;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale.has-sell-10::before { height: 414px; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale > * { z-index: 1 !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale.has-sell-all { --inventory-sale-offset: 99px; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale.has-sell-10 { --inventory-sale-offset: 95px; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .h1 {
	left: 20px !important;
	top: calc(54px + var(--inventory-sale-offset)) !important;
	width: calc(100% - 76px) !important;
	height: 32px !important;
	transform: none !important;
	font: 800 22px/31px var(--br-display) !important;
	text-align: left !important;
	color: #fff0d9 !important;
	text-shadow: 0 1px 3px #000 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .close {
	left: auto !important;
	right: 20px !important;
	top: calc(49px + var(--inventory-sale-offset)) !important;
	width: 34px !important;
	height: 34px !important;
	background: #302b23 url('../img/ui/survival/kit/button_close.webp') center / 72% no-repeat !important;
	border: 1px solid #987c55 !important;
	border-radius: 5px !important;
	box-shadow: 0 2px 7px #0009 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .text {
	left: 20px !important;
	top: calc(97px + var(--inventory-sale-offset)) !important;
	width: calc(100% - 40px) !important;
	min-height: 0 !important;
	height: 53px !important;
	padding: 8px 10px !important;
	box-sizing: border-box !important;
	background: #191b1bee !important;
	border: 1px solid #685f50 !important;
	border-radius: 5px !important;
	font: 700 14px/18px Arial, sans-serif !important;
	text-align: left !important;
	color: #e8e7dd !important;
	text-shadow: 0 1px 2px #000 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .text > .name {
	color: #f2c58b !important;
	font: inherit !important;
	text-shadow: 0 1px 2px #000 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .text > .price {
	min-width: 0 !important;
	margin: 0 2px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font: 800 16px/18px var(--br-display) !important;
	color: #efbc80 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .text > .pic16 {
	position: relative !important;
	left: auto !important;
	top: 2px !important;
	width: 15px !important;
	height: 15px !important;
	margin: 0 1px !important;
	filter: none !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) .coin { background: url('../img/ui/survival/resources/credit_steel.webp') center / contain no-repeat !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) .gold { background: url('../img/ui/survival/resources/plasma_credit.webp') center / contain no-repeat !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .shopDialItem {
	left: 20px !important;
	top: calc(167px + var(--inventory-sale-offset)) !important;
	width: calc(100% - 40px) !important;
	height: 104px !important;
	background: linear-gradient(145deg,#292b29,#181b1d) !important;
	border: 1px solid #786a57 !important;
	border-radius: 6px !important;
	box-shadow: inset 0 1px #e1f3f039 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .shopDialItem::before,
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .shopDialItem::after { display: none !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .shopDialItem > .pic {
	left: 9px !important;
	top: 9px !important;
	width: 85px !important;
	height: 85px !important;
	background-size: 80% 80% !important;
	filter: drop-shadow(0 3px 4px #0009) !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .shopDialItem > .name {
	left: 101px !important;
	right: 9px !important;
	top: 17px !important;
	bottom: auto !important;
	height: 68px !important;
	display: flex !important;
	align-items: center !important;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	text-overflow: clip !important;
	font: 800 15px/21px var(--br-display) !important;
	text-align: left !important;
	color: #f2eee4 !important;
	text-shadow: 0 1px 2px #000 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .btn {
	left: 20px !important;
	top: calc(285px + var(--inventory-sale-offset)) !important;
	width: calc(100% - 40px) !important;
	height: 42px !important;
	padding: 0 12px !important;
	background: url('../img/ui/survival/bronze_action.webp') center / 100% 100% no-repeat !important;
	border: none !important;
	border-radius: 5px !important;
	box-shadow: 0 2px 5px #0008, inset 0 1px #ffe1ad55 !important;
	font: 800 15px/40px var(--br-display) !important;
	color: #fff0dc !important;
	text-shadow: 0 1px 2px #000 !important;
}
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .btn.btn-sell-multi,
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .btn.btn-sell-all { top: calc(334px + var(--inventory-sale-offset)) !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting).has-sell-10 > .btn.btn-sell-all { top: calc(383px + var(--inventory-sale-offset)) !important; }
html.survival-portrait body .game #sellDial.popup.survival-inventory-sale:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .btn .pic16 {
	display: inline-block !important;
	position: relative !important;
	top: 2px !important;
	width: 13px !important;
	height: 13px !important;
	margin-left: 3px !important;
}

/* Existing inventory confirmations stay server driven, with a legible title. */
html.survival-portrait body .game #error.popup.survival-inventory-message:not(.survival-system-simple):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) { opacity: 1 !important; background: linear-gradient(180deg, #0b1d27, #07151e 75%) !important; }
html.survival-portrait body .game #error.popup.survival-inventory-message.survival-inventory-pass-info:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) {
	background: linear-gradient(#07131b1a, #07131b63), url('../img/items/survival/inventory_pass_gate_dry.webp') center / cover no-repeat !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-message.survival-inventory-capacity-offer:not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) {
	background: linear-gradient(#07131b26, #07131b70), url('../img/items/survival/inventory_storage_dry.webp') center / cover no-repeat !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-message:is(.survival-inventory-pass-info,.survival-inventory-capacity-offer)::before {
	content: '';
	position: absolute;
	left: 6px;
	right: 6px;
	top: var(--inventory-message-start, 58px);
	height: 360px;
	border: 1px solid #8f714c; border-image: url('../img/ui/survival/metal_dialog_edge.webp') 24 / 9px stretch;
	border-radius: 7px;
	background: #211e1b url('../img/ui/survival/dark_dialog_steel.webp') center / cover no-repeat;
	box-shadow: 0 8px 22px #030c14d9, inset 0 1px #e9c99b5c;
	pointer-events: none;
}
html.survival-portrait body .game #error.popup.survival-inventory-message.survival-inventory-capacity-offer::before { --inventory-message-start: 110px; height: 253px; }
html.survival-portrait body .game #error.popup.survival-inventory-message:is(.survival-inventory-pass-info,.survival-inventory-capacity-offer) > * { z-index: 1 !important; }
html.survival-portrait body .game #error.popup.survival-inventory-message:is(.survival-inventory-pass-info,.survival-inventory-capacity-offer) > .text { border-color: #a28a72 !important; background: #171817ec !important; }
html.survival-portrait body .game #error.popup.survival-inventory-message:not(.survival-system-simple):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .title {
	position: absolute !important;
	left: 20px !important;
	top: var(--inventory-message-title, 122px) !important;
	width: calc(100% - 76px) !important;
	font: 800 21px/27px var(--br-display) !important;
	color: #f2ecdf !important;
	text-align: left !important;
	text-shadow: 0 1px 3px #000 !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-message:not(.survival-system-simple):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .text {
	left: 20px !important;
	top: var(--inventory-message-text, 174px) !important;
	width: calc(100% - 40px) !important;
	max-height: 250px !important;
	padding: 14px !important;
	font: 700 14px/20px Arial, sans-serif !important;
	color: #e9e8df !important;
	background: #201e1ded !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-message:not(.survival-system-simple):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) .text .btn {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	display: block !important;
	width: 100% !important;
	height: 40px !important;
	margin: 14px 0 0 !important;
	background: url('../img/ui/survival/bronze_action.webp') center / 100% 100% no-repeat !important;
	border: none !important;
	border-radius: 5px !important;
	font: 800 15px/38px var(--br-display) !important;
	color: #fff0dd !important;
	text-align: center !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-message:not(.survival-system-simple):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) .gold { background: url('../img/ui/survival/resources/plasma_credit.webp') center / contain no-repeat !important; }

html.survival-portrait body .game #error.popup.survival-inventory-capacity-offer {
  --inventory-message-title: 157px;
  --inventory-message-text: 210px;
}
html.survival-portrait body .game #error.popup.survival-inventory-message:is(.survival-inventory-pass-info,.survival-inventory-capacity-offer):not(#coinPopup):not(#goldPopup):not(#energyPopup):not(#payRobo):not(#companyDailyQuest):not(#eventHunting) > .close {
  top: var(--inventory-close, 69px) !important;
  right: 15px !important;
  left: auto !important;
  width: 33px !important;
  height: 33px !important;
  background: url('../img/ui/survival/kit/button_close.webp') center / contain no-repeat !important;
}
html.survival-portrait body .game #error.popup.survival-inventory-capacity-offer { --inventory-close: 121px; }
