/* ==========================================================================
   HeroQuest 3000 - Level Selection Screen & Quest Objective Styles
   ========================================================================== */

#currentLevel {
	font-family: 'Pirata One', serif;
	font-size: 30px;
	display: none;
	margin-top: 25px;
	margin-left: 20px;
	color: rgba(255, 255, 255, 1.00);
}

#levelsScreen {
	display: none;
	position: fixed;
	width: 100vw;
	height: 100vh;
	margin: 0;
	top: 0;
	left: 0;
	z-index: 60000;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	pointer-events: auto;
	cursor: var(--gauntlet-cursor, url('/webp/gauntlet_pointer.webp') 0 0, default);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 20px;
	justify-content: center;
	align-items: center;
}

.levels_wrapper {
	position: relative;
	width: 90%;
	max-width: 1200px;
	margin: auto !important;
	display: flex;
	gap: 30px;
	align-items: flex-start;
	justify-content: center;
}

.levels_container {
	flex: 2.2;
	height: fit-content;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.levels_objectives_sidebar {
	flex: 1;
	min-width: 320px;
	height: fit-content;
	align-self: flex-start;
	background: #1c1412;
	background-image: radial-gradient(#2a1f1c 20%, #110d0c 100%);
	border: 6px double #8c6c53;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
	color: #e0d2c5;
	font-family: 'MedievalSharp', serif;
	max-height: 80vh;
	overflow-y: auto;
}

@keyframes activePulse {
	0% {
		box-shadow: 0 0 10px rgba(255, 179, 0, 0.4), inset 0 0 8px rgba(255, 179, 0, 0.2);
	}
	50% {
		box-shadow: 0 0 25px rgba(255, 179, 0, 0.95), inset 0 0 15px rgba(255, 179, 0, 0.4);
		border-color: #ffb300;
	}
	100% {
		box-shadow: 0 0 10px rgba(255, 179, 0, 0.4), inset 0 0 8px rgba(255, 179, 0, 0.2);
	}
}

.activeLevel {
	border: 3px solid #ffb300 !important;
	animation: activePulse 2s infinite ease-in-out;
	transform: scale(1.03);
	z-index: 10;
}

.active-quest-badge {
	position: absolute;
	top: -12px;
	right: -10px;
	background: linear-gradient(135deg, #d84315 0%, #b71c1c 100%);
	color: #fff;
	font-family: 'Pirata One', serif;
	font-size: 0.95rem;
	padding: 4px 10px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	border: 1px solid #ffb300;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 12;
	pointer-events: none;
	animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
	}
}

.unvisitedLevel {
	background: #555555 !important;
	background-image: radial-gradient(#777777 30%, #444444 100%) !important;
	border: 3px double #333333 !important;
	color: #999999 !important;
	opacity: 0.65;
}

.unvisitedLevel .quest-number {
	color: #888888 !important;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6) !important;
}

.unvisitedLevel .quest-title {
	color: #777777 !important;
}

.level {
	background: #dfcfb0;
	background-image: radial-gradient(#eadcb9 30%, #c8ad7f 100%);
	border: 3px double #5d4037;
	text-align: center;
	color: #3e2723;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 10px 15px;
	min-height: 125px;
	pointer-events: auto;
	cursor: default;
	position: relative;
	border-radius: 8px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}

.level .quest-number {
	font-family: 'Pirata One', serif;
	font-size: 1.5rem;
	color: #8c281f;
	margin-bottom: 5px;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
}

.level .quest-title {
	font-family: 'MedievalSharp', serif;
	font-size: 2rem;
	font-weight: bold;
	color: #3e2723;
	line-height: 1.2em;
}

.level .levelBestTime {
	display: none !important;
	font-family: 'MedievalSharp', serif;
	font-size: 0.8rem;
	color: #5d4037;
	margin-top: 8px;
	font-weight: bold;
	opacity: 0.8;
}

.levelComplete {
	font-size: 20px;
	line-height: 1.5em;
	margin: auto 0;
	padding: 0;
	display: block;
	position: relative;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
	text-align: center;
	width: 100%;
	height: fit-content;
}

/* Level selection indicator dot container */
.level-selection-indicators {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 6px;
	pointer-events: none;
	z-index: 10;
}

/* Nameless level selection indicator mark */
.level-selection-indicator-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	display: inline-block;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
