/* ===== B U T T O N ===== */

button {
	position: relative;
	padding: 0.6em 1.2em;
	border-color: transparent;
	/* border-style: solid; */
	/* border-width: var(--border-width); */
	border-radius: var(--border-radius);
	/* border-image: radial-gradient(circle, hsl(60deg 70% 83%) 0%, hsl(102deg 72% 81%) 50%, hsl(60deg 70% 83%) 100%) 1; */
	font-size: calc(var(--global-scale) * 4);
	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-primary-heavy);
	/* text-transform: uppercase; */
	cursor: pointer;
	pointer-events: all;
	/* color: var(--color-neutral-0); */
	background: radial-gradient(circle, hsl(128, 58%, 55%), hsl(128, 54%, 51%), hsl(128, 58%, 45%));
	/* background-clip: padding-box; */
	color: white;
	/* z-index: 1; */
	overflow: visible;
	box-sizing: border-box;
}

button.bordered::before {
    content: "";
    display: block;
    position: absolute;
    top: calc(var(--border-width) * -1.5);
    left: calc(var(--border-width) * -1.5);
    right: calc(var(--border-width) * -1.5);
    bottom: calc(var(--border-width) * -1.5);
    z-index: -1;
    /* background: radial-gradient(circle, hsl(128, 58%, 55%), hsl(128, 54%, 51%), hsl(128, 58%, 45%)); */
    background: radial-gradient(circle, hsl(60deg 70% 83%) 0%, hsl(102deg 72% 81%) 50%, hsl(60deg 70% 83%) 100%);
    /* background: red; */
    background-position: 0 0;
    background-size: 100% 100%;
    border-radius: var(--border-radius);
    /* background: red; */
}

button:disabled {
	color: rgba(0,0,0,0.25);
	background: var(--color-neutral-60);
}

button.green {
	background: var(--color-green);
}

/* ===== I N P U T S ===== */

.input-text {
	position: relative;
	width: 85%;
	height: 3em;
	margin: 1.5em auto;
}

.input-text-input {
	position: absolute;
	width: 94%;
	height: 3.2em;
	padding: 0 3%;
	background: rgba(8, 33, 38, 0.5);
	border-width: 0 0 var(--border-width) 0;
	border-style: solid;
	border-color: var(--color-border-input);
	border-radius: var(--border-radius);
	color: var(--color-font-light);
	font-size: calc(var(--global-scale) * 3.5);
	font-family: var(--font-family-secondary);
	font-weight: bold;
	/* inner shadow 20% */
	box-shadow: inset 0 0 0.2em rgba(0, 0, 0, 0.2);
	outline: none;
	backdrop-filter: blur(2em);
}

.input-text-input:focus {
	/* color: white; */
	border-color: var(--color-border-input-focus);
}

/* .input-text-input:focus::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: var(--border-radius);
	border: 0.1em solid var(--color-border-input-focus);
	top: 0;
	left: 0;
	z-index: 1;
} */

/* placeholder */
.input-text-input::placeholder {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

.input-text-label {
	/* position: absolute;
	top: -22%;
	left: 3%;
	padding: 0 2%;
	font-size: 1em;
	background: var(--color-game-background); */
	display: none;
}

.kathara-logo {
	width: 10rem;
	height: 4rem;
	background: url(../res/img/app/klabs-light.png) no-repeat center;
	background-size: contain;
}

/* ===== H R ===== */

hr {
	border: none;
	background: red;
	height: 0.15em;
	width: 100%;
	background: var(--hr-linear-neutral-dark);
}

/* ===== T O A S T ===== */

.toast {
	/* position: absolute; */
	/* top: 4vh; */
	/* left: 0; */
	/* right: 0; */
	width: 88%;
	padding: 1.5em 1.5em;
	margin: auto;
	margin-bottom: 0.6em;
	background: white;
	color: var(--color-neutral-0);
	border: 0.25em solid var(--color-green-dark);
	border-radius: 0.55em;
	filter: drop-shadow(0.2em 0.25em 0.75em var(--color-neutral-0));
	z-index: 1000;
	cursor: pointer;
}

.toast.error {
	background: var(--color-red);
	color: var(--color-font-light);
}

/* ===== M E S S A G E   B O X ===== */
.messagebox {
	position: relative;
	background: rgba(8, 33, 38, 0.5);
	/* background-clip: padding-box; */
	font-size: 1em;
	color: white;
	/* z-index: 1; */
	/* overflow: hidden; */
	box-sizing: border-box;
	-webkit-backdrop-filter: blur(0.15em);
	backdrop-filter: blur(0.15em);
	border-radius: 0.5em;
	padding: 2em;
	/* text-wrap: balance; */

	/* inner shadow */
	box-shadow: inset 0 0 1.3em rgba(0, 0, 0, 0.85), 0 0 1.3em rgba(0,0,0,0.45);
	pointer-events: all;
	cursor: pointer;
}

.messagebox::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    border: var(--border-width) solid transparent;
    background: linear-gradient(0deg, hsl(25deg 42% 64%), hsl(25deg 42% 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;
}

.messagebox-speaker {
	position: absolute;
	top: 0;
	left: calc(1.5em / 2);
	transform: translateY(-50%);
	padding: 0.25em 1.5em;
	border-radius: var(--border-radius);
	font-family: var(--font-family-primary);
	font-weight: bold;
	font-size: 1.25em;
	background: linear-gradient(0deg, hsl(25deg 42% 56%), hsl(25deg 42% 64%));
	color: #67413B;
	box-shadow: initial;
}

.messagebox-speaker::before {
	display: none;
}

.messagebox-text {
	pointer-events: none;
	font-family: var(--font-family-secondary);
	font-size: 1.25em;
	font-weight: 500;
	letter-spacing: var(--font-spacing-secondary);
}

.messagebox-continue {
	text-align: center;
}

.messagebox-continue::after {
	content: '';
	display: inline-block;
	margin: 2em 0 -1em;
	/* padding: 0.5em 1em; */
	--r:0.2em; /* border radius */
	width: 2.5ch;
	aspect-ratio: 1/cos(30deg);
	--_g:calc(tan(60deg)*var(--r)) top var(--r),#000 98%,#0000 101%;
	-webkit-mask:
	  conic-gradient(from 150deg at 50% calc(3*var(--r)/2 - 100%),#000 60deg,#0000 0)
	   0 0/100% calc(100% - 3*var(--r)/2) no-repeat,
	  radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)),#000 98%,#0000 101%),
	  radial-gradient(var(--r) at left  var(--_g)),
	  radial-gradient(var(--r) at right var(--_g));
	clip-path: polygon(50% 100%,100% 0,0 0);
	background: #EFFBC0;

	/* floating up and down motion + fade in-and-out */
	animation: float 1s infinite ease-in-out alternate, fade 1s infinite ease-in-out alternate;
}

.messagebox-text span.strong {
	font-weight: bold;
	color: var(--color-green-light);
}
.messagebox-text span.em {
	font-style: italic;
	/* color: var(--color-blue); */
}

@keyframes float {
	0% {
		transform: translateY(-0.25em);
	}
	100% {
		transform: translateY(0.25em);
	}
}

@keyframes fade {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0.5;
	}
}

/* ===== S C R O L L B A R S ===== */

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: transparent; /* Transparent background for the track */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5); /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 3px solid transparent; /* Space around the thumb */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* Thumb color and track color */
}

/* For Internet Explorer and Edge */
* {
    -ms-overflow-style: -ms-autohiding-scrollbar; /* Auto-hiding scrollbar */
}

/* ===== O N Y X _ V I E W P O R T ===== */

#main-view[onyx-viewport] {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: 0;
	/* pointer-events: none; */
}

/* ===== N E T W O R K _ L O A D I N G _ B A R ===== */
/* Loading Bar CSS Animation */
/* https://csslayout.io/indeterminate-progress-bar/ */
/* ************************************************ */
.network-loading-bar {
	position: absolute;
	top: 0;

    /* Color */
    /* background-color: #d1d5db; */

    /* Size */
    height: 0.5rem;

    position: absolute;
    overflow: hidden;
    left: 0;

    width: 100%;
    z-index: 1000;

	/* Fade edges */
	/* background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0)); */

	transition: opacity 0.25s ease-in-out;
	transition-delay: 1s;
}

.network-loading-bar-fill {
    /* Color + fade edges */
	/* background: linear-gradient(90deg, rgba(0,0,0,0) 5%, var(--color-green-light), var(--color-green-light), rgba(0,0,0,0) 95%); */
	background: var(--color-green-light);

    /* Rounded border */
    /* border-radius: 9999px; */

    /* Absolute position */
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    width: 50%;

    /* Move the bar infinitely */
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-name: indeterminate-progress-bar;
}

@keyframes indeterminate-progress-bar {
    from {
        left: -50%;
    }

    to {
        left: 100%;
    }
}

/* ===== R E W A R D S _ D I A L O G ===== */

.dialog-rewards {
	position: absolute;
	/* left: 0;
	right: 0;
	top: 0;
	bottom: 0; */
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	/* margin: auto; */
	/* width: 100vw; */
	padding: 0em;
	display: flex;
	flex-direction: column;
	background: var(--color-background-darkest);
	background: url('../res/img/app/BG_02.png') center;
	background-size: cover;
	/* box-shadow: 0vmin 0vmin 3vmin rgba(0, 0, 0, 0.5); */
	color: var(--color-font-light);
	z-index: 100;
}

.dialog-rewards.transparent {
	background: linear-gradient(0deg, black, transparent, black);
}

.dialog-rewards::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.25);
	z-index: -1;
}

.dialog-rewards h2 {
	margin: 3% 0 2%;
	text-align: center;
	font-family: "Finger Paint";
	font-size: 3.6em;
}

.dialog-rewards-caption {
	padding: 1.35em 1em;
	width: calc(74% - 2em);
	margin: 1.5em auto;
	background: var(--color-nav-background);
	border-radius: 0.25em;
}

.dialog-rewards-list {
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
	flex: 1;
	display: flex;
	flex-direction: column;
	/* align-items: end; */
	width: 100%;
	height: 47.3em;
	justify-content: center;
}

.dialog-rewards .nav-bar {
	pointer-events: all;
	/* flex: 1; */
	/* TODO: does this work on iOS? */
	height: 3.25em;
	z-index: 2;
}

.dialog-rewards .list-container {
	pointer-events: all;
	/* max-height: 40vh; */
	flex: 1;
}	

.dialog-rewards .list-container.rewards, .list-container.rewards {
	width: 80%;
	margin: 0 auto;
	/* height: 23vmin; */
	background: none;
	overflow: hidden;
}

.quest-details-list-items .list-container.rewards {
	width: 100%;
}

.dialog-rewards .action-button {
	position: absolute;
	bottom: 3vmin;
	left: 50%;
    transform: translateX(-50%);
}


/* ===== N A V ===== */

.display-mode-standalone-ios .nav-bar:not(.sub), .display-mode-standalone-ios .nav-bar-minimal {
	padding-bottom: var(--padding-bottom-ios);
}

.nav-bar {
	width: 100%;
	height: 3.6em;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	/* border-top: 1px solid black;
	border-bottom: 1px solid black; */
	font-size: calc(var(--global-scale) * 3.25);
	font-weight: var(--font-weight-primary-heavy);
	background-color: rgba(0,0,0,0.6);
	color: var(--color-nav-font);
	/* text-transform: uppercase; */
	z-index: 1;
	pointer-events: all;
	overflow: visible;
}

.nav-bar>div {
	display: flex;
	flex: 1 0;
	height: 100%;
	/* vertical-align: middle; */
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	position: relative;
}

.nav-bar>div.selected {
	border-radius: 0 0 0.25em 0.25em;
	font-weight: var(--font-weight-primary-heavy);
	background-color: var(--color-nav-background-selected);
	color: var(--color-nav-font-selected);
	/* overflow: hidden; */
	box-shadow: var(--drop-shadow-75);
	/* box-shadow: var(--drop-shadow-75-inset); */
	/* filter: drop-shadow(2px 4px 6px black); */
	height: 100%;
}

.nav-bar>div:not(.selected) {
/* 	box-shadow: var(--drop-shadow-75-upper); */
}

.nav-bar>div.selected.explore {
	border-radius: 0.25em 0.25em 0 0;
}

.nav-bar-label {
	position: relative;
}

.nav-bar-label .icon-status {
	position: absolute;
	right: -0.5em;
	top: 0.25em;
	transform: translate(50%, -50%);
	font-size: 0.8em;
	font-family: var(--font-family-secondary);
	font-weight: bold;
	letter-spacing: 0em;
}

/* .nav-bar>div.selected:before,
.nav-bar>div.selected:after
{
  content:'';
  position:absolute;
  top:0;
  height:30px;
  width:60px;
  box-shadow: 0 0 0 500px orange;
  border-radius:0 0 0.5em 0;

}
.nav-bar>div.selected:after {
  right:0;
  border-radius: 0 0 0 0.5em;
} */

/* ===== S U B   N A V ===== */

.nav-bar.sub {
	background-color: var(--color-nav-sub-background);
	color: var(--color-nav-sub-font);
}

.nav-bar.sub>div.selected {
	z-index: 2;

	border-radius: 0.25em 0.25em 0 0;

	background-color: var(--color-nav-sub-background-selected);
	color: var(--color-nav-sub-font-selected);
}

/* .nav-bar.sub>div.selected::after {
	width: 100%;
	background: var(--color-nav-sub-background-selected);
	content: '';
} */

/* ===== M I N I M A L   N A V ===== */

.nav-bar-minimal {
	height: 2.75em;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	background-color: var(--color-nav-minimal-background);
	color: var(--color-nav-minimal-font);
	font-weight: bold;
	font-size: 1.5em;
	z-index: 1;
	pointer-events: all;
	overflow: visible;
	cursor: pointer;
	padding: 0 0 0.75em 0;
	/* border-top: 0.1em solid var(--color-nav-font); */
}

.map-container {
	width: 100vw;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	z-index: -1;
}

#map {
	/* animation: fadein 0.5s; */
}

.mapboxgl-control-container {
	display: none;
}

.icon-status {
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
}

.icon-unread {
	background: var(--color-unread);
}

.icon-error {
	background: var(--color-error);
}

/* ===== S C E N E   L A B E L ===== */

.scene-background-label {
	display: flex;
	flex: 1 1;
	align-items: center;
	justify-content: center;
	font-size: 3em;
	color: var(--color-font-light);
	/* color: #E6F1B9; */
	font-weight: bold;
	text-shadow: 0em 0em 0.05em rgba(0, 0, 0, 0.85);
}

/* ===== L I S T ===== */

/* .list {
	display: grid;
	grid-template-columns: repeat(5, 20%);
	grid-template-rows: repeat(5, 20%);
	place-items: start;
	height: 100%;

	background: blue;
}

.list .list-item {
	width: 100%;
}

.list .list-item::before {
	width: 1px;
	height: 0;

	content: "";
	display: inline-block;
	padding-bottom: 100%;
} */

.list {
	flex: 1;
	/* display: flex; */
	flex-direction: column;
	/* flex-wrap: wrap; */
	/* background: blue; */
	color: var(--color-font-dark);
	font-family: var(--font-family-primary);
	font-weight: var(--font-weight-primary-heavy);
	font-size: calc(var(--global-scale) * 2.4);
	width: 100%;
	/* justify-content: center; */
	/* align-items: start; */
}

.list.delete {
	background-color: var(--color-red);
}

.list .list-toolbar {
	display: flex;
	flex-direction: column;
	width: calc(100% - 2em);
	height: 5.2em;
	font-size: 0.7em;
	font-family: var(--font-family-secondary);
	font-weight: 600;
	margin-bottom: 1em;
	padding: 0.5em 1em;
	background: transparent;
}

.list .list-toolbar hr {
	height: 0.3em;
	padding: 0;
	/* height: 100px; */
	margin: 0;
	background: var(--hr-linear-neutral-light);
}

.list .list-toolbar-actions {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	height: 5em;
}

.list .list-toolbar-search {
	/* width: 100%; */
	flex: 1;
	height: 100%;
	padding: 0 1.5em;
	border: none;
	font-size: calc(var(--global-scale) * 2.5);
	background: transparent;
	letter-spacing: var(--font-spacing-secondary);
	color: var(--color-font-dark);
	font-weight: bold;
}

.list .list-toolbar-search::placeholder {
	color: rgba(0, 0, 0, 0.2);
}

.list .list-toolbar-sort {
	height: 100%;
	padding: 0.4em 1.5em;
	border: none;
	font-size: calc(var(--global-scale) * 2.5);
	font-weight: bold;
	/* border-left: var(--color-border-list-toolbar); */
	font-family: var(--font-family-secondary);
	background: transparent;
	letter-spacing: var(--font-spacing-secondary);
	color: var(--color-font-dark);
	cursor: pointer;
	appearance: none;
}

.list .list-toolbar-action {
	height: 100%;
	padding: 0 1.5em;
	border: none;
	/* border-left: var(--color-border-list-toolbar);
	border-right: var(--color-border-list-toolbar); */
	border-radius: 0;
	background: transparent;
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
	color: var(--color-font-dark);
	cursor: pointer;
	font-size: 1.4em;
}

.list .list-toolbar-action::before {
	display: none;
}

.list .list-toolbar-action i {
	font-size: 1.4em;
}

.list .list-toolbar-sort:focus,
.list .list-toolbar-search:focus,
.list .list-toolbar-action:focus {
	outline: none;
}

.list .list-toolbar-action.delete {
	background-color: var(--color-red);
}

.list .list-item-container {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(21%, 1fr));
	justify-items: center;
	gap: 0.5em;
	padding: 1em 1em;
}

.list .list-item {
	position: relative;
	width: 94%;
	aspect-ratio: 1;
	margin: 1%;
	/* padding-bottom: 21%; */
	border-radius: 0.5em;
	border: 0.2em solid var(--color-neutral-60);
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
	background: rgb(255,255,255);
	background: url(../res/img/ui/list-item-mask.png) center, var(--color-neutral-100);
	background-size: cover;
	/* background: red; */
	filter: drop-shadow(var(--drop-shadow-50));
	cursor: pointer;
	transform: translateZ(0);
	/* Optimize performance */
}

.list .list-item span {
	text-align: center;
	padding: 1em;
}

.list .list-item.vacant {
	background: var(--color-neutral-25);
	opacity: 0.2;
}

.list .list-item.selected {
	filter: drop-shadow(0 0 0.5vmin var(--color-selected-light));
	border-color: var(--color-selected-light);
}

.list .list-item.unread {
	border-color: var(--color-unread);
	filter: drop-shadow(0.2vmin 0.25em 0.75vmin var(--color-unread));
}

.list .list-item.mask img {
	filter: grayscale(100%) brightness(0);
	opacity: 0.85;
}

.list .list-item.completed {
	border-color: var(--color-completed);
	filter: drop-shadow(0.2vmin 0.25em 0.75vmin var(--color-completed));
}

.list .list-item-unread {
	position: absolute;
	right: 0;
	transform: translate(50%, -50%);
}

.list .list-item-background {
	position: absolute;
	left: 5%;
	top: 5%;
	width: 90%;
	height: 90%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	filter: drop-shadow(var(--drop-shadow-50));
	transition: filter 0.012s;

	/* Prevent flicker */
	transform: translate3d(0, 0, 0);
}

.list .list-item-background-progress, .list-item-background-progress {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	/* bottom: 20%; */
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.2);
}

.list .list-item.selected .list-item-background {
	/* background-color: var(--color-neutral-80); */
	filter: drop-shadow(0 0 0.5vmin var(--color-selected-light));
}

.list .list-item-caption {
	position: absolute;
	bottom: 0;
	padding: 2% 0;
	width: 100%;
	text-align: center;
	/* background: var(--color-green-alt); */
	/* color: var(--color-font-light); */
	border-radius: 0 0 0.35em 0.35em;
	font-weight: var(--font-weight-secondary-heavy);
	/* filter: drop-shadow(0 0 0.5vmin var(--color-neutral-0)); */
}

.list .list-item .list-item-caption {
	background: var(--color-neutral-30);
	color: var(--color-font-light);
	background: transparent;
	color: transparent;
}

.list .list-item.grey .list-item-caption {
	/* background: var(--color-grey); */
}

.list .list-item.grey .list-item-attributes, .list .list-item.grey .list-item-modifiers {
	background: #6d7765;
	/* background: var(--color-grey); */
	color: var(--color-font-light);
}

.list .list-item.red .list-item-caption {
	/* background: var(--color-red); */
}

.list .list-item.red .list-item-attributes, .list .list-item.red .list-item-modifiers {
	/* background: var(--color-red); */
	color: var(--color-font-light);
}

.list .list-item.orange .list-item-caption {
	/* background: var(--color-orange); */
}

.list .list-item.orange .list-item-attributes, .list .list-item.orange .list-item-modifiers {
	background: var(--color-orange);
	color: var(--color-font-light);
}

.list .list-item.yellow .list-item-caption {
	/* background: var(--color-yellow); */
	/* box-shadow: 0vw 0vw 2vw yellow; */
}

.list .list-item.yellow .list-item-attributes, .list .list-item.yellow .list-item-modifiers {
	background: var(--color-yellow);
	color: var(--color-font-light);
}

.list .list-item.green .list-item-caption {
	/* background: var(--color-green); */
}

.list .list-item.green .list-item-attributes, .list .list-item.green .list-item-modifiers {
	background: var(--color-green-alt);
	color: var(--color-font-light);
}

.list .list-item.blue .list-item-caption {
	/* background: var(--color-blue); */
}

.list .list-item.blue .list-item-attributes, .list .list-item.blue .list-item-modifiers {
	background: var(--color-blue);
	color: var(--color-font-light);
}

.list .list-item.purple .list-item-caption {
	/* background: var(--color-purple); */
}

.list .list-item.purple .list-item-attributes, .list .list-item.purple .list-item-modifiers {
	background: var(--color-purple);
	color: var(--color-font-light);
}

.list .list-item.selected .list-item-caption, .list .list-item.selected .list-item-modifiers {
	/* background: var(--color-selected-light); */
	/* color: var(--color-font-light); */
}

.list .list-item-count {
	position: absolute;
	right: 0;
	bottom: 0.25em;
	padding: 2% 8%;
	text-align: center;
	color: var(--color-font-light);
	font-weight: bold;
	font-family: var(--font-family-primary);
	/* background: var(--color-green-alt); */
	/* border-radius: 0 0.25em; */
	/* filter: drop-shadow(0 0 0.5vmin var(--color-neutral-0)); */
	font-size: 1.2em;
	letter-spacing: -0.5px;
}

.list-item-location {
	font-size: calc(var(--global-scale) * 1.75);
	/* position: absolute; */
	bottom: 1em;
	font-family: var(--font-family-secondary);
	font-weight: 500;
}

.view-compact .list-item-location {
	display: none;
}

.list .list-item.selected .list-item-count {
	/* background: var(--color-selected-light); */
	/* color: var(--color-font-light); */
	font-weight: bold;
}

.list .list-item-count .x {
	padding: 0 0.1em;
	/* font-weight: var(--font-weight-primary-light); */
	font-size: 0.95em;
	font-weight: 500;
}

.list .list-item-details {
	display: none;
}

.list-item-attributes {
	position: absolute;
	left: 0;
	top: 0;
	padding: 2% 6%;
	text-align: center;
	background: var(--color-neutral-25);
	border-radius: 0.35em 0;
	color: var(--color-font-light);
	font-family: var(--font-family-secondary);
	/* font-weight: var(--font-weight-secondary-heavy); */
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25em;
}

.list-item-modifiers {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.25em;
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 2% 10%;
	text-align: center;
	background: var(--color-neutral-25);
	/* border-radius: 0 0em 0 0.25em; */
	border-radius: 0.25em 0 0.25em 0;
	font-family: var(--font-family-secondary);
	font-weight: var(--font-weight-secondary-heavy);
}

.attribute-separator {
	display: inline-block;
	width: 0.15em;
	height: 1em;
	margin: 0 0.25em;
	background: rgba(255, 255, 255, 0.2);
}

.attribute-icon-ATK {
	background: url(../res/img/ui/attribute-icon-ATK.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-ATK.dark {
	filter: brightness(0.5);
}

.attribute-icon-DEF {
	background: url(../res/img/ui/attribute-icon-DEF.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-DEF.dark {
	filter: brightness(0.5);
}

.attribute-icon-SPD {
	background: url(../res/img/ui/attribute-icon-SPD.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-SPD.dark {
	filter: brightness(0.5);
}

.attribute-icon-hp, .attribute-icon-HP {
	background: url(../res/img/ui/ui_heart.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-hp.dark, .attribute-icon-HP.dark {
	filter: brightness(0.5);
}

.attribute-icon-mp, .attribute-icon-MP {
	background: url(../res/img/ui/ui_potion.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-mp.dark, .attribute-icon-MP.dark {
	filter: brightness(0.5);
}

.attribute-icon-INVMAT {
	background: url(../res/img/ui/explore_inventory.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}

.attribute-icon-INVITM {
	background: url(../res/img/ui/explore_inventory.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(2);
	height: 100%;
	padding: 0.5em;
}


/* Expanded */

.list.view-expanded .list-item-container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: start;
}

.list.view-expanded .list-item {
	width: 92%;
	aspect-ratio: 16/4;
	margin: 0.1em auto;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.list.view-expanded .list-item-background {
	width: 100%;
	left: 2%;
}

.list.view-expanded .list-item-count {
	position: absolute;
	right: 0em;
	top: initial;
	bottom: 0.5em;
	width: 2em;
	/* padding: 2% 8%; */
	text-align: center;
	/* background: var(--color-green-alt); */
	/* border-radius: 0 0.25em; */
	/* filter: drop-shadow(0 0 0.5vmin var(--color-neutral-0)); */
	/* font-size: 1em; */
	font-weight: bold;
	color: var(--color-background-black);
}

.list.view-expanded .list-item .list-item-caption {
	/* top: 4%; */
	/* left: 25%; */
	/* bottom: 57%; */
	/* width: 75%; */
	position: relative;
	background: none;
	text-align: left;
	color: var(--color-font-dark);
	font-family: var(--font-family-primary);
	letter-spacing: var(--font-spacing-primary);
	font-size: calc(var(--global-scale) * 4);
}

.list.view-expanded .list-item.selected .list-item-caption {
	background: none;
}

.list.view-expanded .list-item-details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	top: 42%;
	bottom: 10%;
	right: 5%;
	font-weight: var(--font-weight-primary-light);
	text-overflow: ellipsis;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	width: 96%;
}

.list.view-expanded .list-item-details .error {
	color: var(--color-red);
	font-weight: bold;
}

.list-item-details-caption {
	text-overflow: ellipsis;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	display: -webkit-box;
}

.list.view-expanded .list-item-attributes {
	display: flex;
	top: 0;
	bottom: initial;
	left: initial;
	right: 0%;
	padding: 2% 5%;
	text-align: left;
	background: none;
	background: var(--color-neutral-25);
	border-radius: 0 0.25em;
	font-family: var(--font-family-secondary);
}

.list.view-expanded .list-item-modifiers {
	display: flex;
	top: initial;
	bottom: 0;
	left: initial;
	right: 0%;
	padding: 2% 5%;
	text-align: left;
	background: none;
	background: var(--color-neutral-25);
	border-radius: 0.25em 0;
	font-family: var(--font-family-secondary);
}

/* ===== C R A F T I N G ===== */

.crafting-queue-container {
	display: flex;

	position: absolute;
	top: 2vmin;
	left: 2vmin;
	right: 2vmin;

	justify-content: center;

	z-index: 100;

	pointer-events: none;
}

.crafting-queue-item {
	width: 8vmin;
	height: 8vmin;
	margin: 0.5vmin;

	border: 0.25em solid var(--color-neutral-50);
	border-radius: 0.25em;

	background-color: var(--color-neutral-75);
	background-size: contain;
	background-position: center 0;
	background-repeat: no-repeat;

	text-align: center;

	pointer-events: all;
}

.crafting-slots-container {
	display: flex;
	justify-content: center;
}

.crafting-slots-item {
	width: 5em;
	height: 5em;
	margin: 0.5vmin;
	box-sizing: border-box;
	border-radius: 0.5em;
	background-color: var(--color-neutral-75);
	text-align: center;
	cursor: pointer;
	pointer-events: all;
}

.crafting-slots-item.selected {
	/* border: 0.25em solid var(--color-selected-light); */

	background-color: var(--color-selected-light);
	filter: drop-shadow(0 0 0.25vmin var(--color-selected-light));
}

.crafting-slots-item.action {
	background-color: var(--color-green-highlight);
	position: relative;
	overflow: hidden;
}

.crafting-slots-item.action.empty {
	background-color: transparent;
	border: 0.1em solid var(--color-green);
}

.crafting-slots-item.action.disabled {
	background-color: var(--color-green);
	filter: grayscale(75%);
}

.crafting-slots-item-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center 0;
	background-repeat: no-repeat;
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
	filter: drop-shadow(var(--drop-shadow-50));
}

.crafting-slots-item.action .crafting-slots-item-photo {
	display: flex;
	justify-content: center;
	align-items: center;

	/* filter: none; */
}

.item-details {
	font-family: var(--font-family-secondary);
	letter-spacing: var(--font-spacing-secondary);
}

.avatar-image {
	height: 100%;
	width: 100%;
	background-size: contain;
	background-position: center 0;
	background-repeat: no-repeat;
	/* filter: drop-shadow(var(--drop-shadow-50)); */
	position: absolute;
}

.meter-container {
	position: relative;
	width: 100%;
	height: 100%;
	background: var(--color-background-darkest);
	border-radius: 0.25em;
	overflow: hidden;
	font-family: var(--font-family-secondary);
	/* display: flex; */
	/* align-items: center; */
	/* flex-direction: column; */
}

.meter-level {
	position: absolute;
	top: -65%;
	left: -8%;
	width: 16%;
	height: 120%;
	background: white;
	border-radius: 50%;
	color: var(--color-font-dark);
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: var(--font-family-secondary);
	font-weight: bold;
	font-size: 1.7vh;
}

.meter-container.xp .meter-bar {
	background: #00a968;
	/* transition: width 1s ease-in-out; */
}

.meter-container.hp .meter-bar {
	background: var(--color-red-dark);
	transition: width 1s ease-in-out;
}

.meter-container.mp .meter-bar {
	background: var(--color-blue);
	transition: width 1s ease-in-out;
}

.meter-container.time .meter-bar {
	display: none;
	/* background: var(--color-blue); */
}

.meter-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 0%;
	height: 100%;
	background: var(--color-background-light);
}

.meter-bar.fill {
	width: 100%;
	transition: width 1s ease-in;
}

.meter-count {
	position: absolute;
	/* margin-top: -5vmin; */
	width: 100%;
	height: 100%;
	text-align: center;
	color: var(--color-font-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.animal-stats {
	display: flex;
	width: 100%;
	/* margin: auto 0; */
	/* justify-content: space-evenly; */
}

.animal-stats table {
	width: 20%;
}

.equipment-content-stats table {
	width: 95%;
}

.animal-stats tr {
	margin: 0% 0;
	height: 1.4em;
}

.animal-stats td {
	vertical-align: text-bottom;
}

.list.view-expanded .list-item-photo-container {
	width: initial;
	aspect-ratio: 1;
	flex: 1;
	position: relative;
}

.list-item-photo {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.list.view-expanded .list-item-photo {
	width: initial;
	aspect-ratio: 1;
	flex: 1;
	position: relative;
}

.list-item-photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;

	/* drop shadow */
	filter: drop-shadow(0 0 0.2em rgba(150, 120, 160, 1));
	/* filter: invert(1); */
	pointer-events: none;
}

.quests .list-item-photo img, .mail .list-item-photo img {
	filter: brightness(0.75);
	width: 70%;
}

.list.view-expanded .list-item-content {
	flex: 3;
	position: relative;
	display: flex;
	flex-direction: column;
}

.list.view-expanded .list-item-content:not(.animal) {
	height: 90%;
}

.list-item-cost-mp {
	position: absolute;
	padding: 0.25em;
	right: 0;
	bottom: 0em;
	font-weight: bold;
	background: var(--color-blue);
	border-radius: 0.25em 0 0.25em;
	color: var(--color-font-light);
}

.list-item-power {
    position: absolute;
    padding: 0.25em;
    left: 0;
    top: 0;
    /* bottom: 3.6vmin; */
    font-weight: bold;
    /* background: var(--color-neutral-75); */
    border-radius: 0 0.25em 0 0;
}

.list-item-value {
    position: absolute;
    padding: 0.25em 0.4em;
    left: 0;
    bottom: 0;
    /* bottom: 3.6vmin; */
    font-weight: bold;
    background: var(--color-brown-dark);
    border-radius: 0  0.25em;
    color: var(--color-font-light);
}

.list-item .list-item-value .gold-icon, .quest-details-item-label .gold-icon {
	background: url(../res/img/ui/gold_icon.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
	width: 0em;
	height: 0em;
	padding: 0.4em;
	/* margin-top: 0.1em; */
	display: inline-block;
	margin-right: 0.25em;
}

.quest-details-item-label .gold-icon {
	padding: 0.5em;
}

.dialog-confirm-encounter {
    background: linear-gradient(0deg, black, transparent, black);
    /* margin: 10% 7%; */
    padding: 6%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadein 2s;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.list .list-item-stats {
    /* position: absolute; */
    left: 24.5%;
    top: 10%;
    right: 2%;
    flex: 3;
}

.dialog-rewards-list .container-table {
    padding: 3% 7%;
    width: 89%;
}

.dialog-rewards .container-animals {
    padding: 4% 0%;
    width: 75%;
    margin: 0 auto;
}

.dialog-rewards-list .container-table td:nth-child(1) {
    padding: 1%;
    width: 25%;
}

.dialog-rewards-list-contents {
    display: flex;
    flex-direction: column;
    /* height: 96%; */
    /* align-items: end; */
    /* justify-content: end; */
    text-align: center;

	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;

	&: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;
	}
}

.dialog-rewards-list.page-2 {
    flex-direction: row;
    align-items: end;
}

.map-view-header-world {
    margin: 5% auto 1%;
    width: fit-content;
    text-align: center;
    /* text-decoration: underline; */
    font-size: 2.5em;
    font-weight: bold;
    border-bottom: 0.1em solid var(--color-font-light);
	position: relative;
	filter: drop-shadow(0 0 1.5em rgba(0, 0, 0, 1));
}

.map-view-subheader-world {
    padding: 1% 4%;
    text-align: center;
    /* text-decoration: underline; */
    font-size: 0.9em;
    line-height: 1.5em;
    font-family: var(--font-family-secondary);
    width: fit-content;
    width: -moz-fit-content;
    margin: 0 auto;
    cursor: pointer;
    /* background: rgba(0, 0, 0, 0.10); */
    border-radius: 0.25em;
	filter: drop-shadow(0 0 1em rgba(0, 0, 0, 1));
}

.map-view-subheader-world-title {
	font-size: 1.25em;
	font-weight: bold;
	text-align: center;
	margin: 0.5em 0;
	/* color: var(--color-font-accent-primary); */
}

.map-view-header-world-timer {
	position: absolute;
	font-size: 0.5em;
	font-weight: bold;
	text-align: center;
	left: calc(100% + 1em);
	top: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25em;
}

.map-view-header-world-timer-icon {
	padding: 0.5em;
	background: url(../res/img/ui/explore_lantern.svg) center;
	background-size: contain;
	background-repeat: no-repeat;
}

.view-compact .animal-stats {
    display: none;
}

.animal-stats-name {
    font-size: 1.5em;
    font-family: var(--font-family-primary);
    padding-bottom: 3%;
    font-weight: bold;
    line-height: 1em;
}

.dialog-request-location {
    position: absolute;
    width: 70%;
    height: fit-content;
    left: calc(15% - 2em);
    top: 30%;
    background: var(--color-background-dark);
    color: white;
    border-radius: 1em;
    margin: auto;
    text-align: center;
    padding: 2em;
    overflow: hidden;
}

.toast div {
    font-family: var(--font-family-secondary);
    margin-top: 0.7em;
}

.toasts-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4vh;
    left: 0;
    right: 0;
    width: 75%;
    margin: auto;
}

.crafting-slots-item-photo.insufficent {
    filter: grayscale(1);
    opacity: 0.5;
}

.dialog-request-location h4 {
    font-size: 1.5em;
    line-height: 1em;
    margin: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0em;
    height: 2.5em;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    background: var(--color-background-darkest);
    color: var(--color-font-light);
}

.dialog-request-location p {
    padding: 3em 1em;
    font-size: 1.2em;
}
.dialog-request-location .location-error {
	color: var(--color-red);
}

.dialog-request-location .button-location {
    text-transform: none;
    /* margin-top: 1.5em; */
    /* background: var(--color-background-darkest); */
    /* color: var(--color-font-light); */
    /* border-color: var(--color-background-black); */
}

.dialog-rewards-inventory {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--color-background-darkest);
}

.meter-container-row {
    /* background: var(--color-background-light); */
    /* color: var(--color-font-dark); */
    border-radius: 7em;
    font-weight: 600;
    overflow: hidden;
    text-align: center;
}

.map-view-nearby {
    pointer-events: all;
    overflow: auto;
    height: 50%;
    position: absolute;
    left: 5%;
    width: calc(90% - 2em);
    background: var(--color-background-light);
    color: var(--color-font-dark);
    border-radius: 0.5em;
    overflow: auto;
    filter: drop-shadow(0 0 0.5vmin var(--color-neutral-0));
    padding: 1em;
}

.map-view-nearby-header {
	display: flex;
	justify-content: space-between;
	padding: 0 1em 1em;
}

.map-view-nearby-list {
	display: grid;
	/* 3x3 grid */
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	/* 1em gap */
	gap: 1em;
	width: 100%;
	height: 95%;
}

.map-view-nearby-list-encounter {
	/* width: 100%; */
	padding: 1em;
	background: cover no-repeat;
}

.map-view-nearby-list-encounter-image {
	width: 100%;
	aspect-ratio: 1;
	/* height: 100%; */
	background-size: cover;
	background-position: center 0;
	background-repeat: no-repeat;
	filter: drop-shadow(0 0 0.15vmin var(--color-neutral-0));
}

.map-view-nearby-list-encounter-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	margin-top: 1em;
}

.equipment-content-avatar {
    height: 5.8em;
    width: 5.8em;
    position: relative;
}

.loading-encounter {
	opacity: 0;
	animation: fadein 0.5s;
	animation-delay: 1s;
}

.map-view-header-vuplex {
    font-weight: bold;
    font-size: 2em;
    text-align: center;
    margin-top: 3rem;
}

.map-view-vuplex-button {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 15%;
    top: 37%;
    border: 1px solid var(--color-background-light);
    border-radius: 1em;
    background-color: var(--color-background-dark);
    background-image: radial-gradient(circle, var(--color-background-light) 0.1em, var(--color-background-dark) 0.1em);
    background-size: 2.5rem 2.5rem;
    background-position: center center;
}