/* Distinct, dry campaign locations. The chapter and battle data stay in the existing DOM. */
html.survival-portrait .frame_company_2[class*="chapter20"] { --survival-campaign-world: url('../img/company/survival/world_02_bunker.webp'); }
html.survival-portrait .frame_company_2[class*="chapter30"] { --survival-campaign-world: url('../img/company/survival/world_03_outpost.webp'); }
html.survival-portrait .frame_company_2[class*="chapter40"] { --survival-campaign-world: url('../img/company/survival/world_04_mine.webp'); }
html.survival-portrait .frame_company_2[class*="chapter50"] { --survival-campaign-world: url('../img/company2/survival/dead_forest_route.webp'); }
html.survival-portrait .frame_company_2[class*="chapter60"] { --survival-campaign-world: url('../img/company/survival/world_06_lab.webp'); }
html.survival-portrait .frame_company_2[class*="chapter70"] { --survival-campaign-world: url('../img/company/survival/world_07_ore.webp'); }
html.survival-portrait .frame_company_2[class*="chapter80"] { --survival-campaign-world: url('../img/company/survival/world_08_quarry.webp'); }
html.survival-portrait .frame_company_2[class*="chapter90"] { --survival-campaign-world: url('../img/company/survival/world_09_sulfur.webp'); }
html.survival-portrait .frame_company_2[class*="chapter100"] { --survival-campaign-world: url('../img/company/survival/world_10_power.webp'); }
html.survival-portrait .frame_company_2[class*="chapter110"] { --survival-campaign-world: url('../img/company/survival/world_11_archive.webp'); }
html.survival-portrait .frame_company_2.company13-mode { --survival-campaign-world: url('../img/company/survival/world_13_citadel.webp'); }

html.survival-portrait body .game .frame_company_2[class*="chapter"] {
	background-image: var(--survival-campaign-world) !important;
	background-position: center top !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
}

html.survival-portrait body .game .frame_company_2.company13-mode > .fortuna-screen {
	background-image: var(--survival-campaign-world) !important;
	background-position: center top !important;
	background-size: cover !important;
}

html.survival-portrait body .game:has(> .frame_company_2[class*="chapter20"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_02_bunker.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter30"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_03_outpost.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter40"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_04_mine.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter50"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_05_forest.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter60"]) > .company_card_pick > .card-pick-bg,
html.survival-portrait body .game > .company6_element_pick > .element-pick-bg { background-image: url('../img/company/survival/world_06_lab.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter70"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_07_ore.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter80"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_08_quarry.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter90"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_09_sulfur.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter100"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_10_power.webp') !important; }
html.survival-portrait body .game:has(> .frame_company_2[class*="chapter110"]) > .company_card_pick > .card-pick-bg { background-image: url('../img/company/survival/world_11_archive.webp') !important; }

/* Existing counters and costs use these resource classes; only their art changes. */
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.wood > .icon { background-image: url('../img/ui/survival/resources/salvage_lumber.webp') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.ore > .icon { background-image: url('../img/ui/survival/resources/ore_samples.webp') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.moon_ore > .icon { background-image: url('../img/company/survival/mat_ore.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.stone_ore > .icon { background-image: url('../img/company/survival/mat_stone.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.sulfur > .icon { background-image: url('../img/company/survival/mat_sulfur.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.crystal > .icon { background-image: url('../img/company/survival/mat_battery.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.knowledge_runes > .icon { background-image: url('../img/company/survival/mat_data.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.ancient_ash > .icon { background-image: url('../img/company/survival/mat_ash.png') !important; }
html.survival-portrait body .game .frame_company_2.company_resource_top > .interface > .top > .campaign_resource.black_resin > .icon { background-image: url('../img/company/survival/mat_resin.png') !important; }
/* Mode 13 uses the same live heading without replacing its three stage cards,
   horizontal swipe, tickets, reward, wheel, or combat handlers. */
html.survival-portrait .frame_company_2.company13-mode > .survival-route-header {
  position: absolute; inset: 0 0 auto; height: 148px; z-index: 190; pointer-events: none;
  color: #f4e6d5; font-family: var(--br-display);
}
.frame_company_2 .survival-route-header > .location-help {
  top: 4px; right: 7px; bottom: auto; width: 28px; height: 28px;
  pointer-events: auto; font-size: 18px;
}
.frame_company_2.company13-mode .survival-route-header > .location-help {
  top: 117px;
}
html.survival-portrait body .game .frame_company_2.company13-mode .survival-route-context {
	position: absolute; inset: 116px 41px auto 8px; height: 31px; padding: 2px 7px; box-sizing: border-box;
  border-left: 3px solid #e9a45b; background: linear-gradient(90deg,#211d18ed,transparent);
}
html.survival-portrait body .game .frame_company_2.company13-mode .survival-route-title {
	font-size: 12px; line-height: 15px;
}
html.survival-portrait body .game .frame_company_2.company13-mode .survival-route-stage {
	font-size: 8px; line-height: 10px;
}
html.survival-portrait body .game .frame_company_2.company13-mode > .interface > .left > .icon:first-child,
html.survival-portrait body .game .frame_company_2.company13-mode .fortuna-entry {
	background: #182d3cef !important; border-color: #b8996d !important;
}




html.survival-portrait body .game .frame_company_2.company13-mode .company13-resource.shard > .icon,
html.survival-portrait body .game .frame_company_2.company13-mode .avatar_shard,
html.survival-portrait body .game .frame_company_2.company13-mode .appearance_shard {
	background-image: url('../img/ui/survival/resources/avatar_shard.webp') !important;
}
html.survival-portrait body .game .frame_company_2.company13-mode .company13-resource.super-shard > .icon,
html.survival-portrait body .game .frame_company_2.company13-mode .super_appearance_shard {
	background-image: url('../img/company/survival/rare_core.png') !important;
}

/* The tenfold raid is a second action, so both controls share the clear strip
   between the leader card and the chapter bar when the raid is unlocked. */
html.survival-portrait body .game .frame_company_2.company13-mode > .chapter:has(> #chapter_enemy_raid_btn_2:not(.hide)) > #chapter_enemy_btn_2,
html.survival-portrait body .game .frame_company_2.company13-mode > .chapter > #chapter_enemy_raid_btn_2:not(.hide) {
	top: 429px !important; width: calc(50% - 8px) !important; height: 39px !important;
	font: 800 11px/35px Arial, sans-serif !important;
}
html.survival-portrait body .game .frame_company_2.company13-mode > .chapter:has(> #chapter_enemy_raid_btn_2:not(.hide)) > #chapter_enemy_btn_2 {
	left: 6px !important; right: auto !important;
}
html.survival-portrait body .game .frame_company_2.company13-mode > .chapter > #chapter_enemy_raid_btn_2:not(.hide) {
	left: auto !important; right: 6px !important;
}

html.survival-portrait .frame_company_2.company13-mode :is(.survival-route-kind,.survival-route-mode) { display: none; }
