.view-detail.materials {
	/* background-color: var(--color-green-alt); */
}

.nav-bar.sub.materials {
	/* background-color: var(--color-green-alt); */
}

.scene-header-label {
	height: 100%;
	margin: 0.9em 0;
	text-align: left;
	font-size: 1.2em;
	font-weight: bold;
	/* color: var(--color-font-light); */
	padding: 0 1em;
}

.scene-header-label .scene-header-label-secondaryinfo {
	float: right;
}

h3 {
	text-align: center;
	/* color: var(--color-green-light); */
}

.scene-content {
	padding: 0 2em;
}

/* === S T A R T === */

#scene-start {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 2em;
	animation: fadein 2s;
	color: var(--color-font-dark);
}

/* === L O G I N === */

#scene-login {
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center;
	justify-content: center;
	animation: fadein 1.5s;
	background: url(../res/img/app/BG_04.png) no-repeat center;
	background-size: cover;
	opacity: 0.99999;
	/* z-index: 1; */
	/* position: relative; */
}

#scene-login .nav-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 3% 0%;
	padding: 3% 0;
	align-items: center;
	justify-content: center;
}

#scene-login .nav-container button {
	width: 85%;
	/* border-radius: 5em; */
}

#scene-login .card {
	/* background: var(--color-background-light); */
	/* background: white; */
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* justify-content: center; */
	overflow: hidden;
	font-size: calc(var(--global-scale) * 4);
	color: var(--color-font-light);
}

.display-mode-standalone-ios #scene-login .card {
	padding-bottom: var(--padding-bottom-ios);
}

#scene-login .login-logo-container {
	background: url(../res/img/app/overruin_w.png) no-repeat center;
	background-size: 110%;
	/* padding: 50%; */
	/* margin-top: 2em; */
	width: 100%;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	filter: drop-shadow(0 0.15rem 0.0rem rgba(0,0,0,0.25));
}

#scene-login .login-logo-container .login-logo {
	filter: drop-shadow(0.2em 0.25em 0.75em var(--color-neutral-0));
	height: 70%;
}

#scene-login .login-contents {
	width: 100%;
	flex: 1;
	padding: 5%;
	/* display: flex; */
	/* flex-direction: column; */
	/* justify-content: center; */
	/* align-items: center; */
	background: none;
}

#scene-login form .hr {
	margin: 9% 0;
	/* border-top-color: var(--color-neutral-50); */
	/* Cutout in the center, about 8 characters wide */
}

#scene-login form .hr::before, #scene-login .vuplex .hr::before {
	background-image: var(--hr-linear-neutral-light-cutout);
}

#scene-login .primary {
	/* background-color: var(--color-green-highlight); */
	/* 	background: background: rgb(137,210,118); */
	/* a radial gradient border at 100% opacity. 0%: HSL(128,58,55) 75%: HSL(128,54,51) 100%: HSL(128,58,45) */
	/* background: radial-gradient(circle, hsl(128, 58%, 55%), hsl(128, 54%, 51%), hsl(128, 58%, 45%)); */
	/* border: none; */
	/* color: white; */
	/* position: relative; */
	/* z-index: 1; */
}

#scene-login .secondary {
	background: white;
	color: #35B045;
	font-weight: 600;
}

#scene-login button2::after {
	content: '';
	position: absolute;
	/* background: red; */
	border: 0.2rem solid rgba(255,255,255,0.5);
	width: calc(100% - 1rem);
	height: calc(100% - 1rem);
	left: 0.3rem;
	top: 0.3rem;
	border-radius: inherit;
}

.preloader-container {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	/* justify-content: center; */
	align-items: center;
	background: white;
	transition: opacity 0.5s ease-out;
	pointer-events: none;
	z-index: 10;
}

.preloader-caption {
	color: #4b417d;
	font-size: 1.1em;
	/* font-weight: bold; */
	position: absolute;
	bottom: 1em;
	left: 1em;
	transition: opacity 1s ease-in;
}

.preloader-bar {
	width: 100%;
	height: 0.5em;
	margin-top: 33vh;
	background: var(--color-green-light);
	transition: width 0.2s ease-in-out;
}

#scene-login .fade {
	animation: 1s fade-out ease-out 1 forwards;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg)
	}
}

/* @keyframes fade-out {
	100% {
		background: rgb(0, 0, 0, 1);
	}
} */

/* @media (orientation: landscape) {
	#scene-login .card {
		border-radius: 0.25em;
		width: 80%;
		height: initial;
		flex-direction: row;
	}

	#scene-login .image {
		width: 40%;
	}

	#scene-login form {
		height: 100%;
		width: 60%;
	}
  } */

/* === S E T U P === */

#scene-setup p {
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
}

#scene-setup p.location-error {
	color: var(--color-red);
}

#scene-setup button {
	/* margin: 0.25em -28em 0.25em 10.5em; */
	/* transform: translate(-50%, 0); */
	/* padding: 1.35em; */
	font-size: 1.3em;
	width: 100%;
	font-family: var(--font-family-secondary);
}

#scene-setup .button-confirm {
	position: absolute;
	bottom: 3vh;
}

#scene-setup .button-logout {
	background: var(--color-background-dark);
	color: var(--color-font-light);
	width: 50%;
	/* transform: translateX(-50%); */
	margin: 2em auto;
}

#scene-setup .locating {
	display: flex;
	height: 100%;

	align-items: center;
	justify-content: center;

	font-size: 2em;

	/* animation: fadein 2s; */
}

/* ===== B E G I N ===== */

#scene-begin {
	/* background: mediumvioletred; */
	justify-content: center;
	position: absolute;
}

#scene-begin #button-confirm {
	/* position: absolute; */
	bottom: 8%;
	/* width: 40px; */
	/* left: 50%; */
	margin: auto;
	/* transform: translateX(-50%); */
}

#scene-begin #priority-factors {
	position: absolute;
	top: 19%;
	left: 7%;
	right: 7%;
	/* padding: 2% 8%; */
	text-align: center;
	font-size: 2em;
	/* background-color: var(--color-background-darkest); */
}

#scene-begin #name {
	/* position: absolute; */
	padding: 2% 8%;
	text-align: center;
	font-size: 2em;
	background-color: var(--color-background-darkest);
	border-radius: 0.25em;
	font-weight: bold;
	font-family: var(--font-family-primary);
}

#scene-begin .controls {
	display: flex;
	justify-content: center;
	position: absolute;
	top: 10%;
	left: 0;
	width: 100%;
	height: 4.4em;
}

#scene-begin #priority-factors table {
	width: 100%;
}

#scene-begin #priority-factors table th {
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: underline;
}

#scene-begin .variant-indicator {
	position: absolute;
	top: 61.75%;
	left: 0.15em;
	right: 0;
	bottom: 40%;
	/* background: rgba(0,0,0,0.5); */

	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1em;
}

#scene-begin .variant-indicator .variant-indicator-item {
	padding: 1em;
	/* margin: 0.25em; */
	background: rgba(255,255,255,0.5);
	border-radius: 50%;

	transform: scale(0.5);
	transition: 0.25s ease;
}

#scene-begin .variant-indicator .variant-indicator-item.selected {
	background: var(--color-green-light);
	transform: scale(1);
}

#scene-begin button {
	padding: 0.5em 1em;
	border: none;
	background-color: var(--color-green-highlight);
	color: white;
	position: relative;
}

#scene-begin .button-prev {
	/* position: absolute; */
	/* left: 1em; */
	/* bottom: 70.5%; */
	background: none;
	color: var(--color-font-light);
	border-color: transparent;
	font-weight: bold;
}

#scene-begin .button-next {
	/* position: absolute; */
	/* right: 2em; */
	/* bottom: 70.5%; */
	background: none;
	color: var(--color-font-light);
	border-color: transparent;
	font-weight: bold;
}

#scene-begin .controls.variant {
    /* background: blue; */
    top: 46%;
    /* gap: 23%; */
    width: 100%;
}

#scene-begin .spacer {
	width: 50%;
}

#scene-begin .controls.variant button {
	border: 0.1em solid;
    border-color: var(--color-font-light);
}

/* ===== E X P L O R E ===== */

#scene-explore {
	z-index: 2;
	height: 100%;
	pointer-events: none;
	color: var(--color-font-light);
}

.map-view-setup {
	position: absolute;
	top: 1em;
	right: 1em;
	padding: 0.55em;
	font-size: 2.4em;
	cursor: pointer;
	background: url(../res/img/ui/explore_settings.svg) center no-repeat;
	background-size: contain;
}

.map-view-mail {
	position: absolute;
	top: 7em;
	right: 2.25em;
	padding: 1.5em;
	/* font-size: 0.4em; */
	cursor: pointer;
	background: url(../res/img/ui/explore_mail.svg) center no-repeat;
	background-size: contain;
}

.map-view-nav {
	position: absolute;
	bottom: 2em;
	width: calc(100% - 4em);
	height: 5em;
	padding: 0 2em;
	display: flex;
	justify-content: space-evenly;
}

.display-mode-standalone-ios .map-view-nav {
	bottom: calc(2em + var(--padding-bottom-ios));
}

.map-view-stats {
	position: absolute;
	top: 3em;
	left: 2em;
	font-size: 1em;
	cursor: pointer;
}

.map-view-stats-image {
	position: relative;
	background: var(--color-background-dark);
	width: 4em;
	height: 4em;
	border-radius: 50%;
	border: 0.25em solid var(--color-font-light);
	margin: 0 auto;
}

.map-view-stats-image div {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-size: 234%;
	background-repeat: no-repeat;
	background-position: 34% 27%;
	transform: scaleX(-1);
}

.map-view-stats-level {
	position: absolute;
	top: 2.5em;
	left: 0.5em;
	width: 2em;
	height: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--color-background-darkest);
	border-radius: 50%;
	font-weight: bold;
}

.map-view-stats-bar-container {
	width: 7em;
	height: 0.85em;
	background: var(--color-background-darkest);
	border-radius: 1.25em;
	border: 0.2em solid white;
	margin-bottom: 0.2em;
	overflow: hidden;
}

.map-view-stats-bar-hp {
	height: 100%;
	background: var(--color-red);
	/* border-radius: 0.25em; */
}

.map-view-stats-bar-mp {
	height: 100%;
	background: var(--color-blue);
	/* border-radius: 0.25em; */
}

.map-view-stats-bar-xp {
	height: 100%;
	background: var(--color-green-highlight);
	/* border-radius: 0.25em; */
}

.map-view-stats-bar {
	width: 100%;
	height: 100%;
	border-radius: 0.25em;
}

.map-view-notifications-inventory {
	position: absolute;
	top: 13em;
	left: 3em;
	cursor: pointer;
	background-size: contain;

	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.map-view-notifications-inventory-item {
	display: flex;
	flex-direction: row;
	font-weight: bold;
	align-items: center;
	animation: 0.25s ease-in-out 1 forwards;
	animation-delay: 2s;
}

.map-view-notifications-inventory-item-icon {
	background: center no-repeat;
	background-size: contain;
	padding: 1.5em;
}

.map-view-notifications-inventory-item-text {
	font-size: 1.5em;
}

.map-view-notifications-level {
	position: absolute;
	top: 15%;
	left: 0;
	right: 0;
	height: 20em;
	font-size: 1.5em;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	/* Fade in for 2 seconds, then Fade out */
	animation: fade-in 0.25s ease-in-out 1 forwards, fade-out 0.25s ease-in-out 1 forwards;
	animation-delay: 0s, 2s;
}

.map-view-notifications-level-item {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 1em;
	width: 100%;
	background: rgba(0,0,0,0.25);
	padding: 0.5em 0;
	border: 0.1em solid var(--color-font-light);
	border-left: none;
	border-right: none;

	overflow: hidden;
}

.map-view-notifications-level-item-icon {
	padding: 2em;
	position: relative;

	/* Slide in from the right, then fade out */
	animation: slide-in-right 0.25s ease-in-out 1 forwards, fade-out 0.25s ease-in-out 1 forwards;
	animation-delay: 0s, 2s;
}

.map-view-notifications-level-item-icon div {
	background: center no-repeat;
	background-size: contain;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.map-view-notifications-level-item-text {
	/* Slide in from the right, then fade out */
	animation: slide-in-right 0.25s ease-in-out 1 forwards, fade-out 0.25s ease-in-out 1 forwards;
	animation-delay: 0s, 2s;
}

.map-view-nav-button {
	width: 4.25em;
	height: 4.25em;
	filter: drop-shadow(0em 0em 0.2em rgba(0,0,0,0.3));
	position: relative;
	cursor: pointer;
}

.map-view-party {
	background:url(../res/img/ui/explore_party.svg) center no-repeat;
}

.map-view-inventory {
	background:url(../res/img/ui/explore_inventory.svg) center no-repeat;
}

.map-view-quests {
	background:url(../res/img/ui/explore_quests.svg) center no-repeat;
}

.map-view-quests-status {
	position: absolute;
	bottom: 2em;
	right: -0.6em;
	width: 1.5em;
	height: 1.5em;
	font-size: 1.5em;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-kerning: auto;
}

.map-view-mail .map-view-quests-status {
	bottom: 1.25em;
	right: -0.5em;
}

.map-view-encounter-list {
	position: absolute;
	bottom: 12em;
	right: 2em;
	padding: 1em;
	border-radius: 0.5em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--color-neutral-100);
	display: flex;
	gap: 0.75em;
	filter: drop-shadow(0em 0em 0.2em rgba(0,0,0,0.3));
	pointer-events: all;
	cursor: pointer;
}

.map-view-encounter-list-resources {
	background: url(../res/img/ui/explore_encounter_resources.svg) center no-repeat;
}

.map-view-encounter-list-quests {
	background: url(../res/img/ui/explore_encounter_quests.svg) center no-repeat;
}

.map-view-encounter-list-enemies {
	background: url(../res/img/ui/explore_encounter_enemies.svg) center no-repeat;
}

.map-view-encounter-list-merchants {
	background: url(../res/img/ui/explore_encounter_merchants.svg) center no-repeat;
}

.map-view-encounter-list-encounter {
	padding: 1.15em;
	background-size: contain;
}

.map-view-encounter-count {
	/* position: absolute; */
	/* top: -1.5em; */
	color: var(--color-font-dark);
	padding: 0em 0em 1em;
	margin: 0 0 1rem;
	border-bottom: 0.1rem solid rgb(0,0,0, 0.2);
	width: 100%;
	opacity: 0.5;
	text-align: center;
	/* font-family: var(--font-family-secondary); */
	font-weight: bold;
}

/* Materials */

#scene-materials .selected-item-background {
	/* position: absolute; */

	width: 100%;
	height: 25%;

	margin-top: 5em;

	background-size: contain;
	background-position: center 0;
	background-repeat: no-repeat;

	filter: drop-shadow(0.2vw 0.1vw 0.25vw var(--color-neutral-0));

	transition: filter 0.012s;
}

#scene-materials h4 {
	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-primary-light);
}

/* Equipment */

.equipment-content-avatar {
	display: flex;
	justify-content: space-evenly;
	margin-bottom: 2em;
	position: absolute;
	width: 15em;
	height: 15em;
	left: 50%;
	top: 3em;
	transform: translateX(-50%);
}

.equipment-content {
	display: flex;
	flex-direction: column;

	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-primary-light);
}

.equipment-content-avatar-title {
	font-weight: bold;
}

.equipment-content-stats {
	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-primary-light);
	flex: 3;
}

.equipment-content-attributes {
	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-primary-light);
	flex: 1;
	padding-top: 0.5em;
}

.list-item-slot {
	position: absolute;
	top: -22%;
	width: 100%;

	text-align: center;

	color: var(--color-font-light);
}

.equipment-content-list .list-item {
	position: absolute;
	width: 7em;
	height: 7em;
	padding-bottom: 0;
}

.equipment-content-list .list-item.armor {
	left: 50%;
	top: 19em;
	transform: translateX(-50%);
}

.equipment-content-list .list-item.handLeft {
	right: 3em;
	top: 9em;
}

.equipment-content-list .list-item.handRight {
	left: 3em;
	top: 9em;
}

.equipment-content-list .list-item.accessoryLeft {
	right: 6em;
	top: 19em;
}

.equipment-content-list .list-item.accessoryRight {
	left: 6em;
	top: 19em;
}

.crafting-slots-item.selected {
	/* border: 0.25em solid var(--color-selected-light); */
	background-color: var(--color-selected-light);
	filter: drop-shadow(0 0 0.1em var(--color-selected-light));
}

#scene-friends .action-button {
	position: absolute;
	margin-top: 14vh;
	height: 2.5em;
	width: 2.5em;
	padding: 0;
}

#scene-friends .friendcode-container {
	position: absolute;
	margin-top: 26vh;
	color: var(--color-font-light);
	font-size: 0.4em;
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
}

#scene-friends .friendcode {
	color: var(--color-font-light);
}

#scene-friends .friendcode-copy {
	padding-left: 0.25em;

	color: var(--color-font-light);

	cursor: pointer;
}

#scene-friends .avatar-container {
	position: absolute;
	top: 15%;
	left: 0;
	right: 0;
	/* bottom: 0; */
	margin: auto;
	width: 14em;
	height: 14em;
}

#scene-messages {

}

#scene-messages .scene-messages-actions {
	margin-top: 2em;
	display: flex;
	justify-content: space-evenly;

}

/* ===== E X P L O R E ===== */

/* === B A T T L E === */

#scene-battle {
	/* background: var(--color-background-darkest); */
}

#scene-battle .action-button {
	font-size: 1.5em;
	width: 4.5em;
	/* color: black; */
	color: transparent;
	text-shadow: 0 0 0 var(--color-green-highlight);
	filter: drop-shadow(0 0 0.25em var(--color-neutral-0));
}

.battle-items {
	background: var(--color-background-light);
	height: 100%;
	overflow-y: scroll;
}

.battle-skills {
	background: var(--color-background-light);
	/* height: 100%; */
	top: 0vh;
	position: absolute;
	right: 0;
	left: 0;
	bottom: 11vh;
	z-index: 1;
	overflow-y: auto;
}

.battle-animal {
	pointer-events: none;
}

.battle-animal-container {
	position: absolute;
	bottom: 30vh;
	left: 4%;
	/* flex: 1; */
	width: 92%;
}

.battle-animal-stats .meter-container {
	/* height: 5vmin; */
	border: 0.2em solid var(--color-neutral-60);
	margin: -0.2em 0;
	font-weight: bold;
}

.enemy .battle-animal-stats .meter-container {
	height: 2.3vh;
}

.battle-animal-image {
	width: 100%;
	height: 10.6em;

	background-size: contain;
	background-position: center 0;
	background-repeat: no-repeat;

	filter: drop-shadow(0.2em 0.25em 0.25em var(--color-neutral-0));
}

.battle-animal-container.enemy {
	/* flex: 1.25; */
	position: absolute;
	top: 18%;
	left: 11%;
	/* transform: translateX(-192%); */
	width: 19vh;
	height: 2.7vh;
	transition: opacity 0.35s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.battle-animal-container.enemy .battle-animal-image {
	transform: scaleX(-1);
}

.battle-animal-container.party {
	transition: opacity 0.35s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.battle-ui-container {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	pointer-events: all;
}

.battle-ui-container.input {
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	display: flex;
	flex-direction: column;

	justify-content: center;
	align-items: center;
	
	transition: opacity 0.35s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.button-cancel {
	position: absolute;
	bottom: 9vh;
	left: 3vw;
}

.button-show-items {
	position: absolute;
	right: 1em;
	top: 3%;
	height: 2.5em;
	/* margin-top: -15vmin; */
	background: url(../res/img/ui/explore_inventory.svg) center no-repeat;
	background-size: contain;
	/* font-size: 0.4em; */
}

.button-show-skills {
	position: absolute;
	bottom: 2vh;
	left: 0;
	height: 4em;
	right: 0;
	width: 15vw;
	margin: auto;
	font-family: var(--font-family-secondary);
	background: url(../res/img/ui/battle_skills.svg) center no-repeat;
	background-size: contain;
	border: none;
	z-index: 1;
}

button.button-show-run {
	position: absolute;
	left: 1em;
	top: 3%;
	height: 2.5em;
	background: url(../res/img/ui/battle_flee.svg) center no-repeat;
	background-size: contain;
}

.battle-skills-quick {
	/* margin-bottom: 11vh; */
	position: absolute;
	width: 100%;
	padding-bottom: 6vh;
	background: rgba(0,0,0,0.2);
	border-top: var(--color-border-list-toolbar);
	bottom: 0;
}

.display-mode-standalone-ios .battle-skills-quick {
	bottom: calc(6vh + var(--padding-bottom-ios));
}

.battle-skills-quick .list-item-container {
	justify-content: center;
	grid-template-columns: repeat(auto-fill, minmax(26%, 1fr));
	width: 28em;
	margin: 0em auto 0em;
	gap: 1em;
}

.battle-skills-quick .list-item-container .list-item:first-child, .battle-skills-quick .list-item-container .list-item:last-child {
	margin-top: 4em;
}

#scene-battle .target {
	/* border: 1px solid var(--color-red); */
}

#scene-battle .source {
	/* border: 1px solid var(--color-blue); */
}

.battle-ui-container.party {
	/* padding-bottom: 1.35em; */
	transition: opacity 0.35s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.battle-message {
	padding: 1em 0;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	min-height: 5%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* background: var(--color-background-darkest); */
	font-family: var(--font-family-primary);
	font-weight: 500;
	font-size: 1.25em;
	color: var(--color-font-light);
	/* font-weight: bold; */
	z-index: 2;
}

.battle-message .messagebox {
	width: 90%;
}

/* ===== R E S O U R C E  _  S T O N E ===== */

#scene-resource-stone .resource-action {
	/* position: absolute; */
	/* bottom: 5%; */
	/* right: 0; */
	/* left: 50%; */
	/* transform: translateX(-50%); */
	/* margin: auto; */
	/* width: 5em; */
}

/* #scene-resource-stone .meter-container {
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	margin: auto;
} */

#scene-resource-stone .encounter-ambush {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	gap: 1em;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	background: rgba(0,0,0,0.75);
}

#scene-resource-stone .encounter-ambush .encounter-ambush-title {
	font-family: var(--font-family-secondary);
	font-size: 1.5em;
	font-weight: bold;
	color: var(--color-font-light);
}

#scene-resource-stone .encounter-ambush .encounter-ambush-content {
	font-family: var(--font-family-secondary);
	font-size: 1.25em;
	color: var(--color-font-light);
}

#scene-resource-stone .scene-encounter-content {
	text-align: center;
	align-items: center;
	padding-top: 2em;
	gap: 1em;
	transition: opacity 0.35s ease;
}

/* ===== R E S O U R C E  _  S T O N E ===== */

#scene-repair .resource-action {
	/* position: absolute; */
	/* bottom: 5%; */
	/* right: 0; */
	/* left: 1em; */
	/* transform: translateX(-50%); */
	/* margin: auto; */
	/* width: 5em; */
}

/* #scene-repair .meter-container {
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	margin: auto;
} */

#scene-repair .scene-encounter-content {
	text-align: center;
	align-items: center;
	padding-top: 2em;
	gap: 1em;
	transition: opacity 0.35s ease;
	pointer-events: all;
}

/* ===== M E R C H A N T ===== */

#scene-merchant {
	background: url(../res/img/app/BG_01.png) no-repeat center;
	background-size: cover;
	background-filter: blur(0.5em);
}

#scene-merchant .merchant-image {
	background: url(../res/img/icons/ENCMERCH/0.png) no-repeat center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	position: absolute;
	top: 8em;
	left: -10em;
	padding: 16em;
	transform: scaleX(-1);
}

#scene-merchant .messagebox {
	width: 21em;
	position: absolute;
	right: 2em;
	top: 9em;
}

#scene-merchant .scene-header-label {
	height: initial;
}

.dialog-encounter-img {
	/* width: 50%; */
	height: 75%;
	/* padding: 10% 0; */
	margin: 0 auto;
}

.dialog-encounter-header {
    text-align: center;
}

.dialog-encounter-tier {
	/* float: right; */
	font-weight: 400;
}

.dialog-encounter-element {
	/* margin-top: -6%; */
	text-align: center;
	margin-bottom: 4em;
}

.dialog-encounter-controls {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
	/* margin-top: 10%; */
	margin-bottom: 13%;
}

.dialog-encounter-img-container {
	display: flex;
	/* background-color: var(--color-neutral-20); */
	border-radius: 0.25em;
	/* height: 20em; */
	justify-content: center;
	align-items: center;
	flex: 0.9;
	/* display: none; */
	opacity: 0;
}

.dialog-encounter-header h2 {
    text-transform: uppercase;
}

.dialog-encounter-title {
    font-size: 5em;
    font-family: "Finger Paint";
}

.dialog-encounter-content {
    text-align: center;
    font-size: 1.3em;
    margin: 0em 0 3em;
}

.footer {
	font-size: 0.7em;
	padding-bottom: 1em;
	font-family: var(--font-family-secondary);
	letter-spacing: 0;
	text-align: center;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 85%;
	font-weight: 700;
}

.footer span {
	flex: 1;
}

.dialog-rewards-list .container-table {
	/* padding: 4% 7%; */
	margin: 0 auto;
}

.battle-animal-stats {
	height: 1.35em;
}



#scene-resource {
	height: 100%;
}

.map-view {
	/* pointer-events: all; */
	height: 100%;
	width: 100%;
	position: absolute;
	background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 15%, rgba(0,0,0,0) 85%, rgba(0,0,0,0.3) 100%);
	animation: fadein 0.15s ease-in;
}

.map-view-header {
    pointer-events: all;
	/* Drop shadow */
}

.scene-party-player {
    text-align: center;
}

.scene-party-player-username {
    font-size: 1.9em;
    font-weight: bold;
    margin: 1.5em 0;
}

.scene-party-player-level {
    font-weight: bold;
    font-family: var(--font-family-secondary);
    margin: 1em 0 0.3em;
    font-size: 1em;
}

.scene-party-player-xp {
    width: 75%;
    height: 1.5em;
    margin: 0em auto;
}

.scene-party-player-gold {
    /* position: absolute; */
    right: 4%;
    top: 7vh;
    flex: 1;
}

.scene-party-player-startdate {
    flex: 1;
}

.scene-party-player-distance {
    flex: 1;
}

.scene-party-player-more {
    display: flex;
    width: 85%;
    margin: 2em auto 0;
    padding: 2em 0;
    border-top: 0.1em solid var(--color-hr-subtle);
    /* border-top: var(--color-border-list-toolbar); */
}

.scene-party-data-title {
    font-weight: bold;
    font-family: var(--font-family-secondary);
    margin-bottom: 0.3em;
}

.scene-party-data {
    font-family: var(--font-family-secondary);
    opacity: 0.6;
}

.scene-encounter-quest {
	background: url(../res/img/app/BG_03.png) no-repeat center;
	background-size: cover;
}

.scene-encounter-quest .quest-details-description {
	position: absolute;
	bottom: 3.75em;
	left: -0.25em;
	right: 0.25em;
	width: calc(100% + 0.5em);
}

.display-mode-standalone-ios .scene-encounter-quest .quest-details-description {
	bottom: calc(3.75em + var(--padding-bottom-ios));
}

.scene-encounter-quest .quest-title {
	position: absolute;
	top: 0;
	bottom: 14em;
	left: 0;
	right: 0;
	padding: 0 1em;
	margin: 0;
	width: calc(100% - 2em);
	font-family: var(--font-family-primary);
	font-size: 4em;
	background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%,  rgba(0,0,0,0.0) 100%);
	z-index: 1;
}

.quest-character {
	position: absolute;
	top: 19%;
	left: 0;
	height: 58%;
	width: 100%;
	background: no-repeat center;
	background-size: contain;
	filter: drop-shadow(0 0 0.2em rgba(0,0,0,0.75));
}

.quest-details {
	font-family: var(--font-family-secondary);
	flex: 1;
	padding: 2em;
	background: rgba(8, 33, 38, 0.5);
	border-radius: 1em;
	box-sizing: border-box;
	-webkit-backdrop-filter: blur(0.15em);
	backdrop-filter: blur(0.15em);
	border-radius: 0.5em;
	box-shadow: inset 0 0 1.3em rgba(0, 0, 0, 0.85), 0 0 1.3em rgba(0,0,0,0.45);
	/* position: absolute;
	 */
	width: 75%;
	/* top: 50%;
	 */
	/* left: 50%;
	 */
	/* transform: translate(-50%, -50%);
	 */
	margin: 4.5em auto;
}

.quest-details::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    border: var(--border-width) solid transparent;
    background: linear-gradient(0deg, hsl(25deg 0% 64%), hsl(25deg 0% 56%));
    /* background: red; */
    /* background-position: 0 0;
    background-size: 100% 100%; */
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.scene-encounter .quest-details {
	flex: none;
}

.quest-content {
    display: flex;
    flex-direction: column;
    height: 22em;
    overflow-y: scroll;
}

.quest-pin-btn {
	position: absolute;
	top: 0;
	right: 0;
	padding: 1em;
	background: var(--color-background-darkest);
	border-radius: 0 0 0 1em;
	filter: drop-shadow(0 0 0.2em rgba(0,0,0,0.75));
	font-size: 1em;
}

.quest-pin-btn.pinned {
	background-color: var(--color-green-highlight);
}

.quest-image {
    flex: 1;
    /* display: flex; */
    justify-content: end;
    flex-direction: column;
    padding: 0 1em;
    /* background-color: var(--color-neutral-20); */
    /* border-radius: 1em; */
    position: relative;
}

.quest-details-title {
    font-weight: bold;
    text-align: center;
    padding: 0 0 1em;
    font-size: 1.5em;
    /* text-decoration: underline; */
}

.quest-details-description {
	font-family: var(--font-family-secondary);
	/* opacity: 0.5;
	 */
	/* border-top: 0.1em solid var(--color-hr-subtle); */
	font-size: 1.25em;
	font-weight: 500;
	color: var(--color-font-light);
	margin: 25em 0em 0;
	min-height: 5em;
	/* width: 100%; */
	/* background: var(--color-background-dark); */
}

.quest-details-description-menu {
	font-family: var(--font-family-secondary);
	/* opacity: 0.5;
	 */
	/* border-top: 0.1em solid var(--color-hr-subtle); */
	border-radius: 0.5em;
	padding: 1.3em;
	font-size: 1em;
	color: var(--color-font-light);
	margin: 2em 9em 0em 0em;
	min-height: 7em;
	/* background: var(--color-background-dark); */
}

.quest-details-objectives {
    /* border-bottom: 0.1em solid var(--color-hr-subtle); */
    margin-bottom: 2em;
}

.quest-details-rewards {
	/* border-bottom: 0.1em solid var(--color-hr-subtle); */
	margin-top: 2em;
}

.quest-details-item-label {
    text-transform: capitalize;
    font-weight: bold;
    /* color: var(--color-font-accent-primary); */
    opacity: 0.75;
    margin-bottom: 0.5em;
}

.quest-details-list {
    display: flex;
    text-align: center;
    width: 100%;
    margin-bottom: 1em;
}

.quest-details-item-value {
    opacity: 1;
    font-weight: 600;
    /* color: var(--color-font-accent-secondary); */
}

.quest-details-list-item {
    flex: 1;
}

.quest-details-list-items {
    width: 100%;
    /* opacity: 0.5; */
}

.quest-image-picture {
    flex: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../res/img/icons/ENCQUEST/0.png');
    /* margin: 2em; */
    /* background-color: var(--color-neutral-20); */
    border-radius: 1em;
    filter: var(--drop-shadow-50);
    position: absolute;
    left: 26em;
    right: 1em;
    top: 4em;
    bottom: -5em;
}

.quest-overlay {
	background: rgba(0,0,0,0.75);
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
}

.quest-title {
    font-size: 1.9em;
    font-weight: bold;
    /* margin: 0em 0 0.7em; */
    text-align: center;
    min-height: 2.2em;
    justify-content: center;
    align-items: center;
    display: flex;
    width: fit-content;
    padding: 0.75em 3em;
    margin: 2em auto;
    color: #EFFBC0;
    /* background: rgba(0,0,0,0.2); */
}

.quest-title-menu {
    font-size: 1.9em;
    font-weight: bold;
    /* margin: 0em 0 0.7em; */
    text-align: center;
    min-height: 0.2em;
    justify-content: center;
    align-items: center;
    display: flex;
    width: fit-content;
    padding: 0 3em;
    margin: 0.2em auto;
    color: #EFFBC0;
    margin-top: 1.5em;
}

.quest-content-container {
	position: relative;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
	padding-bottom: 1em;
}

.quest-btn-claim {
    font-size: 1em;
    margin: 1em 6.5em;
    width: 50%;
    background-color: var(--color-completed);
    color: white;
    font-weight: bold;
}

.quest-actions {
	/* position: absolute; */
	bottom: 12%;
	width: 50%;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.scene-items-item-container {
    display: flex;
    padding: 1em 0;
    margin: auto 0;
    background: rgba(0,0,0,0.25);
	border: 0.2em solid rgba(255,255,255,0.57);
	border-left: none;
	border-right: none;
}

.scene-items-item-visuals {
    flex: 1;
}

.scene-items-item-details {
    flex: 1;
	display: flex;
	flex-direction: column;
    /* background: var(--color-background-darkest); */
    /* border-radius: 1em; */
    padding: 0 2em;
    font-family: var(--font-family-secondary);
}

.scene-items-item-visuals-photo {
    width: 100%;
    height: 13em;
    background: center no-repeat;
    background-size: contain;
    filter: drop-shadow(var(--drop-shadow-50));
}

.scene-items-item-details-title {
	display: flex;
	justify-content: space-between;
    font-size: 1.5em;
	font-weight: bold;
	font-family: var(--font-family-primary);
	margin: 0.5em 0;
}

.scene-items-item-details-count {
	color: var(--color-green-highlight);
}

.scene-items-item-visuals-info {
    font-family: var(--font-family-secondary);
    padding: 3%;
}

.scene-items-item-details-info {
	flex: 1;
	min-height: 3.2em;
	margin-bottom: 1em;
	font-size: 1.25em;
	font-weight: 600;
}

.scene-items-item-details-header {margin: 0 0 0.4em;}

.scene-items-item-details-actions {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	font-size: 0.5em;
}

.scene-items-item-details-actions button {
	background: var(--color-green-highlight);
	color: white;
	border: none;
	padding: 0.5em 1em;
}

.scene-items-item-details-info .view-detail-gold-icon {
	padding: 0.4em;
}

.scene-items-item-details-use .list-item {
	height: 8em;
}

.setup-detail {
    flex: 1;
    background: var(--color-background-light);
    color: var(--color-font-dark);
    font-family: var(--font-family-secondary);
    /* padding: 1.15em; */
    font-size: 1em;
}

#scene-setup {
    padding: 0;
}

.setup-detail-row {
    padding: 1em 2em;
    border-bottom: 0.1em solid var(--color-font-dark);
    display: flex;
    flex-direction: row;
}

.setup-detail-row-text {
    flex: 3;
}

.setup-detail-row-action {
    flex: 1;
    display: flex;
    justify-content: right;
}

.setup-detail-row-text-header {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 0.6em;
    font-family: var(--font-family-primary);
}

#scene-setup hr {
    border-color: var(--font-color-dark);
}

#scene-resource-stone .resource-action.finish, #scene-repair .resource-action.finish {
    /* left: 13%; */
    /* margin: 0; */
    position: absolute;
    top: 1em;
    left: -8.5em;
}

#scene-resource-stone .list-item {
	pointer-events: all;
}

#scene-base {
	background: var(--color-black);
}

#scene-base .scene-encounter-content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: 1em 2em;
	pointer-events: all;
}

#scene-base .view-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow-y: auto;
    pointer-events: all;
}

#scene-base .scene-encounter-content {
    flex: 0;
    /* width: 95%; */
}

#scene-base .base-size-indicator {
	margin-left: 0.75em;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--color-font-light);
	opacity: 0.8;
}

#scene-base .view-detail-grid {
	/* background: red; */
	margin: auto;
	width: 90%;
	/* height: 100%; */
	gap: 0.3em;
	display: grid;
	grid-template-columns: repeat(var(--base-grid-cols, 3), minmax(0, 1fr));
	pointer-events: all;
}

#scene-base .view-detail-grid-item {
	background: #6d6d78;
	width: 100%;
	aspect-ratio: 1;
	border: 0.1em solid var(--color-background-dark);
	border-radius: 0.35em;
	cursor: pointer;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.8em;
	font-weight: 500;
	color: var(--color-font-light);
	pointer-events: all;
}

#scene-base .view-detail-grid-item.populated {
    background: var(--color-background-light);
    color: var(--color-font-dark);
}

#scene-base .view-detail-grid-item.delete {
    background: var(--color-red);
    color: var(--color-font-dark);
}

#scene-base .base-upgrade {
	margin: 1.5em auto 0;
	width: 90%;
	padding: 1em 1.25em;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 0.5em;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	color: var(--color-font-light);
}

#scene-base .base-upgrade h3 {
	margin: 0;
	text-align: left;
	font-size: 1.1em;
}

#scene-base .base-upgrade p {
	margin: 0;
}

#scene-base .base-upgrade-costs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
}

#scene-base .base-upgrade-costs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-width: 9em;
	padding: 0.35em 0.6em;
	border-radius: 0.35em;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.85em;
	font-weight: 600;
}

#scene-base .base-upgrade-costs li.insufficient {
	background: rgba(255, 87, 34, 0.18);
	color: var(--color-red);
}

#scene-base .base-upgrade-costs .cost-label {
	flex: 1;
	text-align: left;
}

#scene-base .base-upgrade-costs .cost-value {
	margin-left: 1em;
	text-align: right;
}

#scene-base .base-upgrade .action-button {
	align-self: flex-start;
	min-width: 12em;
}

#scene-base .base-upgrade-note {
	font-size: 0.85em;
	opacity: 0.8;
}

#scene-base .base-upgrade-complete {
	background: rgba(0, 0, 0, 0.2);
}

#scene-base .delete {
    background: var(--color-red);
}

#scene-base .craft {
    background: var(--color-blue);
}

.scene-encounter-content.story {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #4f4777;
	background: #1B1A21;
	color: var(--color-font-dark);
	color: white;
	font-size: 1.8em;
	padding: 60% 0%;
	display: flex;
	justify-content: end;
	pointer-events: all;
	transition: opacity 0.5s ease;
	overflow: hidden;
}

.story .messagebox {
	width: 104%;
	margin-left: -2%;
	font-size: 0.8em;
}

.story .hidden {
	visibility: hidden;
}

.story .fadeIn {
	opacity: 0;
	animation: 1s fade-in ease-out 1 forwards;
	animation-name: fade-in;
}

.story button {
	background: none;
	color: var(--color-font-dark);
}

.map-view-vuplex {
    background: var(--color-background-darkest);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.map-view-map-toggle {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
    /* margin: 0 auto; */
    background: var(
    --color-purple-dark);
    padding: 1rem 2rem;
    pointer-events: all;
    border-radius: 0.6em;
}