@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=MedievalSharp&family=Rubik+Glitch&family=Roboto:wght@300;400;700&family=Roboto+Condensed:wght@300;400;700&display=swap');

body, html, p, span, div, td, th, input, button, select, textarea {
	font-family: 'MedievalSharp', serif;
	font-weight: 400;
}

#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 !important;
	width: 100vw !important;
	height: 100vh !important;
	margin: 0 !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 60000 !important;
	vertical-align: middle;
	background: rgba(26, 15, 13, 0.97) !important;
	pointer-events: auto !important;
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
}

.levels_container {
	position: relative;
	width: 80%;
	max-width: 900px;
	margin: 0 auto;
	top: 50%;
	transform: translateY(-50%);
	height: fit-content;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

#gamestage {
	z-index: 3;
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
	pointer-events: none;
}

#heroquesttimer {
	display: none !important;
	font-size: 30px;
	color: #888;
	top: 20px;
	width: fit-content;
	margin: auto;
	font-family: 'Pirata One', serif;
}

#stop_timer {
	pointer-events: auto;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.activeLevel {
	border: 3px solid #ffeb3b !important;
	box-shadow: 0 0 15px rgba(255, 235, 59, 0.6), inset 0 0 10px rgba(255, 235, 59, 0.2) !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: 20px 15px;
	min-height: 125px;
	pointer-events: auto;
	cursor: pointer;
	position: relative;
	border-radius: 8px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
	transition: all 0.2s ease;
	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 {
	font-family: 'MedievalSharp', serif;
	font-size: 0.8rem;
	color: #5d4037;
	margin-top: 8px;
	font-weight: bold;
	opacity: 0.8;
}

.level:hover {
	background: #eadcb9;
	background-image: radial-gradient(#f4ebd2 30%, #d8be91 100%);
	transform: translateY(-3px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

.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;
}

#titleWrapper {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(215, 192, 158);
	z-index: 100000 !important;
	pointer-events: none;
	display: block;
	opacity: 1;
}

#title {
	width: 700px;
	height: auto;
	border: 0px solid red;
	padding-left: 15px;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001 !important;
	pointer-events: none;
	display: block;
	opacity: 1;
	filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.8));
}

#click_instruct {
	color: rgba(255, 255, 255, 1.00);
	font-size: 40px;
}

.btn {
	display: inline;
	border: 1px solid transparent !important;
	font-family: 'Pirata One', serif;
	line-height: 1.5em;
	font-size: 20px;
	padding-bottom: 1px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-big {
	font-size: 3em;
	padding-right: 13px;
}

button {
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover:not(:disabled),
button:hover:not(:disabled) {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.25);
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
	border-color: #fff !important;
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
	transform: translateY(0) scale(1);
	box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
	border: 1px solid transparent !important;
}

button:focus {
	border: 1px solid transparent !important;
}

.blocker {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	z-index: 59000 !important;
	display: none;
}

#blocker:has(#multiplayerScreen:not([style*="display: none"]):not([style*="display:none"])) {
	z-index: 89000 !important;
}


#instructions {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-family: 'Pirata One', serif;
	padding: 20px;
	box-sizing: border-box;
}

.start-buttons-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 1200px;
}

#playButton.btn-big {
	font-size: 144px;
	/* 3x scale */
	line-height: 1.1em;
	padding: 20px 80px;
	border-radius: 30px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	background: #fff;
	color: #000;
	border: none !important;
	transition: all 0.3s ease;
}

#playButton.btn-big:hover {
	background: #0CAAE9;
	color: #fff;
	box-shadow: 0 15px 50px rgba(12, 170, 233, 0.6);
	transform: translateY(-8px) scale(1.05);
}

.sub-buttons-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	width: 100%;
}

.sub-buttons-row .btn {
	font-size: 42px;
	/* 3x scale */
	padding: 12px 36px 10px 36px;
	border-radius: 18px;
	border: none !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	background: rgba(255, 255, 255, 0.9);
	color: #111;
}

.sub-buttons-row .btn:hover {
	background: #fff;
	color: #0CAAE9;
	box-shadow: 0 10px 30px rgba(12, 170, 233, 0.4);
	transform: translateY(-4px) scale(1.03);
}

.fullscreen-tip {
	margin-top: 40px;
	font-size: 18px;
	color: #ff9f43;
	letter-spacing: 0.0em;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
}

#loginStuff {
	opacity: .6 !important;
	margin-top: 15px;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
}

html {
	font-size: 14px;
}

body {
	background: rgb(125, 125, 125);
	user-select: none;
}

#bg {
	position: absolute;
	width: 100%;
	align-items: center;
	justify-content: center;
	z-index: -100;
	left: 0;
	right: 0;
	top: -10%;
	bottom: -10%;
	margin: 0 auto;
	opacity: 0;
}

/*
#bg::before {
	background-image: url("../bg.svg");
	background-size: cover;
	content: "";
	opacity: 1;
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
}
*/

/*
#loadgames {
  user-select: none;
}
*/

.container-fluid {
	pointer-events: none;
}

button {
	pointer-events: auto;
	padding: 7px 10px 7px 10px;
	border-radius: 10px;
	border: 2px solid #333;
}

button:focus {
	outline: none !important;
	box-shadow: none !important;
	/*	border-color:transparent !important;*/
	border: 2px solid #ddd;
}

canvas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto 0;
	height: 100%;
	width: 100%;
	z-index: -1;
	opacity: 0;
}

#title img {
	pointer-events: none;
	width: 100%;
}

#title canvas {
	pointer-events: none;
	width: 100% !important;
	height: auto !important;
	display: block !important;
	position: relative !important;
	z-index: 10001 !important;
	opacity: 1 !important;
}

#mapCanvas {
	position: relative !important;
	z-index: 11 !important;
	opacity: 1 !important;
	margin: 0 !important;
}


/*

#results a {
	pointer-events: auto;
}

#openRooms a {
	pointer-events: auto;
}

#openRooms {
	margin-top: 20px;
}
*/

#loginBoot {
	z-index: 100002 !important;
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}



.blocker_end, #endRoundScreen {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(26, 15, 13, 0.97);
	display: none;
	z-index: 100000 !important;
}

.endRoundScreen_class {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	padding: 20px;

	background: rgba(0, 0, 0, 0.0);
	pointer-events: auto;
}

.endRound_container {
	position: relative;
	background: transparent;
	width: 100%;
	height: fit-content;
	padding: 54px 60px 70px 60px;
	padding-top: 54px;
	margin: auto 0;
	text-align: center;

	color: #dfcfb0;
	font-weight: bold;
	font-size: 2em;
	line-height: 1em;
	border: none;
	border-radius: 4px;
}

.endRound_container>p {
	font-family: 'Pirata One', serif;
	line-height: 1.2em;
	font-size: 2.2em;
	color: #ffeb3b;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 235, 59, 0.3);
	margin-bottom: 10px;
}

.end_boot_container .col-sm {
	/*	border: 10px solid #111;*/
	padding: 1em;
	border-radius: 6px;
	max-width: 600px;
	margin: 0 auto;
}

.end_boot_container p {
	display: block;
	font-size: 2em;
}

.end_boot_container .time {
	display: block;
	font-family: 'Pirata One', serif;
	font-size: 70px;
	font-weight: normal;
}


.end_boot_container .timetitle {
	display: block;
	font-family: 'Pirata One', serif;
	font-size: 14px !important;
	font-weight: normal;
}


@media (max-width: 1034px) {
	.end_boot_container .col-sm {
		font-size: 40px;
	}
}




#profileScreen {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;





	overflow-y: auto;
	box-sizing: border-box;
	padding: 20px;
}

.profile_container {
	position: relative;
	width: 80%;
	margin: 0 auto;
	text-align: center;
	height: fit-content;
	color: white;
	font-weight: bold;
	font-size: 2em;
	line-height: 1em;
	box-sizing: border-box;
}

/* Profile Grid & 3-Column Layout */
.profile-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 0 auto;
	text-align: left;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: normal;
	font-size: 16px;
}

@media (max-width: 992px) {
	.profile-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.profile-col {
	background: linear-gradient(135deg, rgba(25, 25, 30, 0.92), rgba(12, 12, 18, 0.75));
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.profile-col:hover {
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.15);
	background: linear-gradient(135deg, rgba(35, 35, 42, 0.95), rgba(18, 18, 26, 0.8));
}

.profile-col-title {
	font-family: 'Pirata One', serif;
	font-size: 28px;
	color: #a7a7a7;
	margin-top: 0;
	margin-bottom: 12px;
	border-bottom: 2px solid rgba(100, 100, 100, 0.2);
	padding-bottom: 6px;
	letter-spacing: 0.05em;
}

/* Column 1 details content */
.profile-details-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.status-row {
	font-size: 16px;
	color: #eee;
	margin: 0;
}

.status-good {
	color: #41DD56;
	text-shadow: 0 0 10px rgba(65, 221, 86, 0.3);
}

.nickname-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.label-text {
	font-size: 14px;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 3px 0;
}

.nickname-input-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

#nicknameInput {
	flex-grow: 1;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	padding: 8px 12px;
	font-size: 16px;
	outline: none;
	cursor: text;
	transition: all 0.3s ease;
}

#nicknameInput:focus {
	border-color: #0CAAE9 !important;
	box-shadow: 0 0 10px rgba(12, 170, 233, 0.4);
}

#saveNicknameButton {
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	border: none;
	font-family: 'Pirata One', serif;
	letter-spacing: 0.05em;
}

#saveNicknameButton:hover {
	background: #fff;
	color: #0CAAE9;
}

#nicknameFeedback {
	font-size: 13px;
	font-weight: 500;
	min-height: 18px;
}

.active-color-section {
	margin-top: 5px;
}

.profileColors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 5px;
}

.profileColor {
	width: 23px;
	height: 23px;
	border-radius: 5px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
}

.profileColor:hover {
	border-color: #fff;
	transform: scale(1.1);
}

.profileColor_active {
	border-color: #ddd;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Column 2: Controls styling */
.instructions-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.instruction-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.instruction-item .key {
	display: inline-block;
	vertical-align: middle;
	line-height: 1.2;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	color: #ff9f43;
	background: rgba(255, 159, 67, 0.12);
	padding: 3px 8px 2px 8px;
	border-radius: 5px;
	font-size: 12px;
	border: 1px solid rgba(255, 159, 67, 0.25);
	letter-spacing: 0.05em;
}

.instruction-item .action {
	color: #eee;
	font-size: 13px;
	font-weight: 400;
}

/* Column 3: Settings/Features styling */
.settings-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.setting-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	font-size: 14px;
	color: #eee;
}

.setting-item button {
	font-family: 'Pirata One', serif;
	font-size: 14px;
	padding: 8px 12px 6px 12px;
	border-radius: 6px;
}

.slider-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-grow: 1;
	justify-content: flex-end;
	max-width: 60%;
}

.slider-group input[type="range"] {
	flex-grow: 1;
	cursor: pointer;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.slider-group span {
	font-size: 13px;
	background: rgba(45, 31, 16, 0.7);
	color: #ffe0b2;
	border: 1px solid rgba(255, 224, 178, 0.4);
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: bold;
	min-width: 40px;
	text-align: center;
	text-shadow: 1px 1px 2px #000;
}

.setting-item input[type="checkbox"] {
	width: 22px;
	height: 22px;
	cursor: pointer;
	accent-color: #0CAAE9;
}


#multiplayerScreen {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	margin: auto 0;
	top: 0;
	left: 0;
	z-index: 7;
	vertical-align: middle;
	background: rgba(0, 0, 0, 0.5);
	/* Dimmed backdrop to see the 3D scene/atmosphere slightly */
	pointer-events: auto;
}

.multiplayer_container {
	position: relative;
	width: 90%;
	max-width: 800px;
	padding: 40px;
	margin: 0 auto;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: fit-content;
	max-height: 90vh;
	overflow-y: auto;
	color: #e0d2c5;
	font-family: 'MedievalSharp', serif;
	font-size: 1.1rem;
	line-height: 1.5em;
	background: #231b18;
	border: 8px solid #8c6c53;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(140, 108, 83, 0.15);
	box-sizing: border-box;
}

#lobbyTitle {
	font-family: 'Pirata One', serif;
	font-size: 2.6em;
	letter-spacing: 0.05em;
	margin-top: 0;
	margin-bottom: 25px;
	color: #d84315;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	text-align: center;
	border-bottom: 2px dashed #8c6c53;
	padding-bottom: 12px;
}

.multiplayer_container h3,
.multiplayer_container h5 {
	font-family: 'Pirata One', serif;
	font-size: 2.0em;
	color: #d84315;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	margin-top: 25px;
	margin-bottom: 15px;
}

/* Lobby Layout and Structure Classes - Cleared duplicate definitions to use lobby.css */

.multiplayer_container table {
	width: auto;
	margin: auto;
}

.multiplayer_container table td {
	padding: 20px;
}


#creditsScreen {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	margin: auto 0;
	top: 0;
	left: 0;
	z-index: 4;
	vertical-align: middle;
	background: rgba(0, 0, 0, .96);
	pointer-events: auto;
}

.credits_container .title {
	background: transparent;
	font-size: 22px;
	letter-spacing: .1em;
	text-align: center;

	color: white;
	display: block;
	font-family: 'Pirata One', serif;
	line-height: 1.5em;
	padding: 10px;
	padding-bottom: 7px;
	pointer-events: none;
	margin: 4px;
	cursor: none;
	position: relative;
}

.credit {
	background: transparent;
	font-size: 12px;
	letter-spacing: .7em;
	text-align: center;

	color: white;
	display: block;
	font-family: 'Pirata One', serif;
	line-height: 1.5em;
	padding: 7px;
	padding-bottom: 0px;
	pointer-events: none;
	margin: 0px;
	cursor: none;
	position: relative;
}

.credit_letter_spacing {
	letter-spacing: .4em;
}

.credits_container {
	position: relative;
	width: 100%;
	margin: auto 0;
	text-align: center;
	left: 0;
	right: 0;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	height: fit-content;
}

.credit:last-child {
	padding-bottom: 10px;
}

.credit:first-child {
	padding-top: 20px;
}

/* Matchmaking styling extensions */
.challenge-item {
	width: 100%;
	max-width: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 12px !important;
	padding: 15px !important;
	margin-bottom: 12px !important;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	gap: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: normal;
	box-sizing: border-box;
}

.challenge-item-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	flex: 1;
}

.challenge-item-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	color: #fff;
	font-size: 24px;
	/* 2x scale of normal text */
	line-height: 1.2em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.challenge-item-tag {
	font-size: 13px;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 400;
	background: rgba(12, 170, 233, 0.15);
	border: 1px solid rgba(12, 170, 233, 0.4);
	color: #0CAAE9;
	padding: 2px 10px;
	border-radius: 12px;
	width: fit-content;
}

.challenge-item-players {
	font-size: 13px;
	font-family: 'Roboto Condensed', sans-serif;
	color: #aaa;
}

.filter_container {
	margin-bottom: 25px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.filter_container label {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #888;
	margin: 0;
}

#filterTagInput {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 15px;
	font-weight: 400;
	background: rgba(0, 0, 0, 0.5) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
	padding: 8px 16px !important;
	border-radius: 20px !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
	width: 200px !important;
	text-align: center;
	cursor: text !important;
	transition: all 0.3s ease !important;
}

#filterTagInput:focus {
	border-color: #0CAAE9 !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(12, 170, 233, 0.4) !important;
}

#myChallengeUsersList {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	margin: 15px 0;
	list-style: none;
}

#myChallengeUsersList li {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 14px;
	font-weight: normal;
	background: rgba(255, 255, 255, 0.1);
	padding: 4px 8px;
	border-radius: 4px;
	margin-bottom: 4px;
	width: fit-content;
}

/* Style for actual accepted user badges */
#myChallengeUsersList li.accepted-user-badge {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(65, 221, 86, 0.25), rgba(65, 221, 86, 0.05)) !important;
	border: 1px solid rgba(65, 221, 86, 0.6) !important;
	box-shadow: 0 0 12px rgba(65, 221, 86, 0.2);
	color: #fff !important;
	padding: 8px 16px !important;
	border-radius: 30px !important;
	margin: 6px !important;
	animation: pulse-green 2s infinite ease-in-out;
}

.badge-ready-check {
	color: #41DD56;
	font-weight: 900;
	margin-left: 6px;
	font-size: 12px;
	letter-spacing: 0.05em;
}

@keyframes pulse-green {
	0% {
		box-shadow: 0 0 8px rgba(65, 221, 86, 0.2);
		border-color: rgba(65, 221, 86, 0.4);
	}

	50% {
		box-shadow: 0 0 18px rgba(65, 221, 86, 0.6);
		border-color: rgba(65, 221, 86, 0.8);
	}

	100% {
		box-shadow: 0 0 8px rgba(65, 221, 86, 0.2);
		border-color: rgba(65, 221, 86, 0.4);
	}
}

/* Scaled action buttons */
.accept-challenge-btn,
.leave-challenge-btn,
.rejoin-challenge-btn,
#CreateChallengeButton {
	font-size: 28px !important;
	padding: 10px 24px !important;
	border-radius: 12px !important;
	font-family: 'Pirata One', serif !important;
	font-weight: normal !important;
	letter-spacing: normal !important;
	line-height: 1.5em !important;
}

#LaunchGameButton,
#CancelChallengeButton {
	font-size: 22px !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-family: 'Pirata One', serif !important;
	font-weight: normal !important;
	letter-spacing: 0.5px !important;
	line-height: 1.4em !important;
	height: 48px !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.delete-campaign-btn,
.resume-campaign-btn,
.lobby-campaign-actions button,
#myChallengeSection button {
	font-family: 'Pirata One', serif !important;
	font-weight: normal !important;
}

#LaunchGameButton {
	background-color: #ffc107 !important;
	border-color: #d39e00 !important;
	color: #1c1512 !important;
	font-weight: normal !important;
}

#LaunchGameButton:hover:not(:disabled) {
	background-color: #ffca2c !important;
	border-color: #ffc720 !important;
	color: #000000 !important;
}

#CancelChallengeButton {
	background-color: #8c281f !important;
	border-color: #5a1913 !important;
	color: #ffffff !important;
	font-weight: normal !important;
}

#CancelChallengeButton:hover {
	background-color: #b71c1c !important;
	border-color: #8c281f !important;
}

/* HUD Notification Popup */
.hud-notification-container {
	position: fixed;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
	z-index: 10000;
}

.hud-notification {
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 12px 18px;
	color: #fff;
	font-family: Arial, sans-serif;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	min-width: 260px;
	opacity: 0;
	transform: translateX(-40px);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hud-notification.show {
	opacity: 1;
	transform: translateX(0);
}

/* End Round Button Styling */
#endRoundBtn {
	background: #198754;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 20px;
	padding: 6px 18px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
	transition: all 0.2s ease-in-out;
}

#endRoundBtn:hover {
	background: #157347;
	box-shadow: 0 6px 20px rgba(25, 135, 84, 0.6);
	transform: scale(1.05);
}

#endRoundBtn:active {
	transform: scale(0.98);
}

#myChallengeSection {
	display: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	padding: 20px !important;
	margin-bottom: 25px !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
	backdrop-filter: blur(4px);
}

#createChallengeSection {
	margin-bottom: 25px;
}

.lobby-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 30px;
	margin-top: 20px;
	width: 100%;
}

.lobby-column-left {
	flex: 1;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lobby-column-right {
	flex: 1.2;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lobby-column-left h5,
.lobby-column-right h5 {
	margin-top: 0 !important;
}

#myChallengeSection,
#challengeRequestsList {
	width: 100%;
	box-sizing: border-box;
}

#CancelChallengeButton,
#LaunchGameButton {
	flex: 1 !important;
	margin: 0 !important;
}

/* Multiplayer screen button overrides */
#multiplayerScreen button,
#multiplayerScreen .btn,
#endRoundBtn {
	border: none !important;
	padding-bottom: 5px !important;
}

/* Multiplayer End Game Stats Table Custom Styling */
.multiplayer-stats-table-wrapper table {
	border-collapse: separate !important;
	border-spacing: 0 10px !important;
	border: none !important;
}

.multiplayer-stats-table-wrapper table th,
.multiplayer-stats-table-wrapper table td {
	border: none !important;
}

.multiplayer-stats-table-wrapper table tbody tr {
	transition: transform 0.2s ease-in-out;
}

.multiplayer-stats-table-wrapper table tbody tr:hover {
	transform: scale(1.02);
}

/* Level Loading Overlay */
#levelLoadingOverlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(18, 12, 6, 1.0) !important;
	backdrop-filter: blur(5px) !important;
	z-index: 68000 !important;
	justify-content: center;
	align-items: center;
	pointer-events: auto;
	transition: opacity 0.35s ease !important;
}

#levelLoadingOverlay .loader_container {
	background: #f5eccd !important;
	border: 8px solid #2d1f10 !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(45, 31, 16, 0.15) !important;
	padding: 40px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 20px !important;
	min-width: 320px !important;
}

#levelLoadingOverlay .spinner {
	border: 4px solid rgba(62, 39, 35, 0.1) !important;
	border-top: 4px solid #8c281f !important;
	border-radius: 50% !important;
	width: 60px !important;
	height: 60px !important;
	animation: spin 1s linear infinite !important;
	box-shadow: 0 0 15px rgba(140, 40, 31, 0.3) !important;
}

#levelLoadingOverlay #levelLoadingText {
	color: #8c281f !important;
	font-size: 32px !important;
	font-family: 'Pirata One', serif !important;
	letter-spacing: 4px !important;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.1) !important;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* 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);
}

/* In-Game Status Screen Styles */
#inGameStatusScreen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-family: 'Pirata One', serif;
	padding: 20px;
	box-sizing: border-box;
	z-index: 10;
}

.status_screen_container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
	width: 100%;
	max-width: 800px;
	padding: 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(25, 25, 30, 0.95), rgba(12, 12, 18, 0.8));
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.status-title {
	font-family: 'Pirata One', serif;
	font-size: 56px;
	color: #fff;
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
	margin: 0;
	letter-spacing: 2px;
}

.status-info {
	display: flex;
	gap: 30px;
	margin-bottom: 10px;
}

.status-level-label,
.status-time-label {
	font-size: 28px;
	color: #aaa;
	font-family: 'Pirata One', serif;
}

.status-level-label span {
	color: #0CAAE9;
	margin-left: 5px;
}

.status-time-label span {
	color: #E31014;
	margin-left: 5px;
}

.status-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

#resumeGameBtn.btn-status-big {
	font-size: 64px;
	padding: 10px 60px 4px 60px;
	border-radius: 20px;
	background: #fff;
	color: #000;
	border: none !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease;
	width: 100%;
	max-width: 350px;
}

#resumeGameBtn.btn-status-big:hover {
	background: #0CAAE9;
	color: #fff;
	box-shadow: 0 12px 40px rgba(12, 170, 233, 0.6);
	transform: translateY(-5px) scale(1.03);
}

.status-sub-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	width: 100%;
}

.btn-status {
	font-size: 28px;
	padding: 8px 24px 6px 24px;
	border-radius: 12px;
	border: none !important;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	flex: 1;
	max-width: 220px;
}

.btn-status:hover {
	background: #fff;
	color: #0CAAE9;
	box-shadow: 0 8px 25px rgba(12, 170, 233, 0.4);
	transform: translateY(-3px) scale(1.02);
}

#forfeitGameBtn.btn-status,
#confirmForfeitBtn.btn-status {
	background: rgba(227, 16, 20, 0.9);
	color: #fff;
}

#forfeitGameBtn.btn-status:hover,
#confirmForfeitBtn.btn-status:hover:not(:disabled) {
	background: #E31014;
	color: #fff;
	box-shadow: 0 8px 25px rgba(227, 16, 20, 0.4);
}

#confirmForfeitBtn:disabled {
	background: rgba(120, 120, 120, 0.4) !important;
	color: rgba(255, 255, 255, 0.4) !important;
	cursor: not-allowed;
	box-shadow: none !important;
	transform: none !important;
}

.status-standings {
	width: 100%;
	margin-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
}

.standings-title {
	font-family: 'Pirata One', serif;
	font-size: 32px;
	color: #fff;
	margin: 0;
	text-align: left;
	letter-spacing: 1px;
}

.settings-dropdown {
	background-color: rgba(0, 0, 0, 0.5) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	color: #fff !important;
	padding: 4px 10px !important;
	font-size: 14px !important;
	outline: none !important;
	font-family: 'Roboto Condensed', sans-serif !important;
	width: auto !important;
	max-width: 60% !important;
	cursor: pointer;
	transition: none !important;
	/* Prevents focus/defocus rendering flickers */
}

.settings-dropdown:hover {
	border-color: rgba(255, 255, 255, 0.15) !important;
	background-color: rgba(0, 0, 0, 0.5) !important;
	box-shadow: none !important;
	transform: none !important;
}

.settings-dropdown:focus {
	border-color: #0CAAE9 !important;
	box-shadow: 0 0 10px rgba(12, 170, 233, 0.4) !important;
}

.settings-dropdown option {
	background-color: #111 !important;
	color: #fff !important;
}

/* Custom gauntlet pointer for unlocked controls */
body, html, canvas, .btn, .level, .settings-dropdown, .status-sub-buttons button, select, input, a {
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
}

/* ==========================================================================
   Centered Medieval Parchment Theme for Pause & Options Screens
   ========================================================================== */

#profileScreen {
	display: none;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(18, 12, 6, 0.75) !important;
	z-index: 31000 !important;
	justify-content: center !important;
	align-items: center !important;
	box-sizing: border-box !important;
	padding: 20px !important;
	pointer-events: auto !important;
}

.profile_container {
	position: relative !important;
	width: fit-content !important;
	max-width: 95vw !important;
	margin: 0 auto !important;
	background: #231b18 !important;
	border: 8px solid #8c6c53 !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(140, 108, 83, 0.15) !important;
	color: #e0d2c5 !important;
	font-family: 'MedievalSharp', serif !important;
	display: flex !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
	padding: 24px !important;
	pointer-events: auto !important;
}

.profile_container h2 {
	font-family: 'Pirata One', serif !important;
	color: #ffb300 !important;
	font-size: 3em !important;
	margin: 0 0 15px 0 !important;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
	border-bottom: 3px double #8c6c53 !important;
	padding-bottom: 8px !important;
}

/* Two Columns layout inside Profile Container */
.profile_cols {
	display: flex !important;
	gap: 20px !important;
	box-sizing: border-box !important;
	padding-bottom: 10px !important;
}

.profile-col {
	flex: 1 !important;
	background: rgba(140, 108, 83, 0.08) !important;
	border: 2px solid #8c6c53 !important;
	border-radius: 8px !important;
	padding: 16px !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
}

.profile-col-title {
	font-family: 'Pirata One', serif !important;
	font-size: 26px !important;
	color: #ffb300 !important;
	margin: 0 0 8px 0 !important;
	border-bottom: 2px solid rgba(255, 179, 0, 0.2) !important;
	padding-bottom: 4px !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
}

.label-text, .status-row {
	color: #e0d2c5 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 15px !important;
}

.instruction-item {
	background: rgba(140, 108, 83, 0.08) !important;
	border: 1px solid rgba(140, 108, 83, 0.2) !important;
	border-radius: 6px !important;
}

.instruction-item .key {
	color: #ffb300 !important;
	background: rgba(255, 179, 0, 0.08) !important;
	border: 1px solid rgba(255, 179, 0, 0.25) !important;
	font-family: 'MedievalSharp', serif !important;
}

.instruction-item .action {
	color: #e0d2c5 !important;
	font-family: 'MedievalSharp', serif !important;
}

.setting-item {
	color: #e0d2c5 !important;
	font-family: 'MedievalSharp', serif !important;
	border-bottom: 1px dashed rgba(140, 108, 83, 0.2) !important;
	padding: 6px 0 !important;
}

.setting-item button {
	background: #5d4037 !important;
	color: #fff !important;
	border: 2px solid #8c6c53 !important;
	font-family: 'MedievalSharp', serif !important;
	transition: all 0.2s ease !important;
	border-radius: 6px !important;
	padding: 6px 12px !important;
}

.setting-item button:hover {
	background: #8c281f !important;
}

#nicknameInput {
	background: #2e2420 !important;
	border: 2px solid #8c6c53 !important;
	color: #e0d2c5 !important;
	border-radius: 6px !important;
	font-family: 'MedievalSharp', serif !important;
}

#nicknameInput:focus {
	border-color: #8c281f !important;
	box-shadow: 0 0 8px rgba(140, 40, 31, 0.3) !important;
}

#saveNicknameButton {
	background: #5d4037 !important;
	color: #fff !important;
	border: 2px solid #2d1f10 !important;
	font-family: 'MedievalSharp', serif !important;
	border-radius: 6px !important;
}

#saveNicknameButton:hover {
	background: #8c281f !important;
	color: #fff !important;
}

.slider-group span {
	background: rgba(45, 31, 16, 0.8) !important;
	color: #ffe0b2 !important;
	border: 1px solid rgba(255, 224, 178, 0.4) !important;
	font-family: 'MedievalSharp', serif !important;
	text-shadow: 1px 1px 2px #000 !important;
}

.slider-group input[type="range"] {
	background: rgba(62, 39, 35, 0.2) !important;
}

/* Close/X button on Options Screen */
#profileCloseBtn {
	position: absolute !important;
	top: 15px !important;
	right: 15px !important;
	background: #8c281f !important;
	color: white !important;
	border: 2px solid #2d1f10 !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	font-size: 20px !important;
	line-height: 30px !important;
	text-align: center !important;
	cursor: pointer;
	font-family: 'MedievalSharp', serif !important;
	transition: all 0.2s ease !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 100 !important;
}

#profileCloseBtn:hover {
	background: #b71c1c !important;
	transform: scale(1.1) !important;
}

/* Pause / In Game Status Screen */
#inGameStatusScreen {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(18, 12, 6, 0.75) !important;
	z-index: 30000 !important;
	display: none;
	justify-content: center !important;
	align-items: center !important;
	pointer-events: auto !important;
	box-sizing: border-box !important;
	padding: 20px !important;
}

.status_screen_container {
	background: #f5eccd !important;
	border: 8px solid #2d1f10 !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(45, 31, 16, 0.15) !important;
	color: #3e2723 !important;
	font-family: 'MedievalSharp', serif !important;
	width: 90% !important;
	max-width: 500px !important;
	padding: 30px !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 20px !important;
	pointer-events: auto !important;
}

.status-title {
	font-family: 'Pirata One', serif !important;
	color: #8c281f !important;
	font-size: 3.5em !important;
	margin: 0 !important;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.status-level-label, .status-time-label {
	font-size: 20px !important;
	color: #3e2723 !important;
	font-family: 'MedievalSharp', serif !important;
	margin: 0 !important;
}

.status-level-label span {
	color: #2c5270 !important;
	font-weight: bold !important;
}

.status-time-label span {
	color: #8c281f !important;
	font-weight: bold !important;
}

.status-sub-buttons {
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	margin-top: 10px !important;
}

#resumeGameBtn.btn-status-big {
	background: #2e6b3b !important;
	color: #fff !important;
	border: 3px solid #2d1f10 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 22px !important;
	border-radius: 8px !important;
	padding: 12px 24px !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

#resumeGameBtn.btn-status-big:hover {
	background: #3e8e4f !important;
	transform: translateY(-2px) !important;
}

.btn-status {
	background: #5d4037 !important;
	color: #fff !important;
	border: 2px solid #2d1f10 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 18px !important;
	border-radius: 6px !important;
	padding: 8px 16px !important;
	transition: all 0.2s ease !important;
}

.btn-status:hover {
	background: #8c281f !important;
}

#forfeitGameBtn.btn-status {
	background: #8c281f !important;
}

#forfeitGameBtn.btn-status:hover {
	background: #b71c1c !important;
}

.settings-dropdown {
	background-color: #fff9e6 !important;
	color: #3e2723 !important;
	border: 2px solid #8d6e63 !important;
	border-radius: 6px !important;
	font-family: 'MedievalSharp', serif !important;
}

.settings-dropdown option {
	background-color: #f5eccd !important;
	color: #3e2723 !important;
}

/* Quest Campaign Lobby Styling - Cleared legacy duplicate definitions to use lobby.css */

#hudLookButton {
	position: fixed !important;
	left: 20px !important;
	right: auto !important;
	bottom: 20px !important;
	z-index: 10000 !important;
	background: #2e6b3b !important;
	color: #fff !important;
	border: 2px solid #2d1f10 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 18px !important;
	border-radius: 6px !important;
	padding: 10px 20px !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
	cursor: pointer;
	pointer-events: auto !important;
}

#hudLookButton:hover {
	background: #3e8e4f !important;
	transform: scale(1.05) !important;
}

/* Enforce custom gauntlet cursor globally, including lower HUD region, buttons, color pickers, and modals */
*, *::before, *::after, a, button, input, select, textarea, .btn, [role="button"], #hudHtmlControlsRow, #hudHtmlControlsRow *, .hud-btn, .hud-action-btn, #levelsScreen, .levels_container, .level, #profileScreen, .hq-modal-overlay, .hq-modal-container, .myButton, .rustic-btn, input[type="color"], #groundColorPicker {
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
}

*:disabled, *:disabled *, [disabled], [disabled] * {
	cursor: not-allowed !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, [contenteditable="true"] {
	cursor: text !important;
}

/* Lower HUD Controls Row */
.hud-controls-row {
	position: fixed !important;
	left: 20px !important;
	bottom: 20px !important;
	z-index: 10000 !important;
	display: flex;
	gap: 12px !important;
	align-items: center !important;
	pointer-events: auto !important;
}

.hud-btn {
	color: #fff !important;
	border: 2px solid #2d1f10 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 16px !important;
	border-radius: 6px !important;
	padding: 10px 18px !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
	user-select: none !important;
}

.hud-btn:disabled {
	background: #777777 !important;
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

.hud-btn:hover:not(:disabled) {
	transform: scale(1.05) !important;
}

.hud-btn-look {
	background: #2e6b3b !important;
}
.hud-btn-look:hover:not(:disabled) {
	background: #3e8e4f !important;
}

.hud-btn-quest-start {
	background: #8c281f !important;
}
.hud-btn-quest-start:hover:not(:disabled) {
	background: #b71c1c !important;
}

.hud-btn-quests, .hud-btn-options, .hud-btn-armory, .hud-btn-monsters {
	background: #5d4037 !important;
}
.hud-btn-quests:hover:not(:disabled), .hud-btn-options:hover:not(:disabled), .hud-btn-armory:hover:not(:disabled), .hud-btn-monsters:hover:not(:disabled) {
	background: #795548 !important;
}

/* Ensure cursor is hidden when pointer locked */
/* Card tabs bar */
.card-tabs-container {
	display: flex;
	flex-direction: row;
	width: 100%;
	border-bottom: 2px solid #5d4037;
	margin-bottom: 10px;
	background: rgba(93, 64, 55, 0.08);
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}
.card-tab {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 6px 4px;
	font-family: 'Pirata One', serif;
	font-size: 19px;
	color: #5d4037;
	cursor: pointer;
	text-align: center;
	text-transform: uppercase;
	transition: all 0.2s ease;
	outline: none;
	position: relative;
}
.card-tab:hover {
	background: rgba(93, 64, 55, 0.15);
	color: #8c281f;
}
.card-tab.selected {
	background: #fcf8f0;
	color: #8c281f;
	border-bottom: 3px solid #8c281f;
	font-weight: bold;
}
.card-tab.turn-active {
	box-shadow: inset 0 -3px 0 0 #ffd700;
}

/* Zargon sub-tabs */
.zargon-sub-tabs-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	border-bottom: 1px solid rgba(93, 64, 55, 0.3);
	margin-bottom: 12px;
	gap: 6px;
	padding: 4px 8px;
	background: rgba(140, 40, 31, 0.05);
}
.zargon-sub-tab {
	background: rgba(93, 64, 55, 0.1);
	border: 1px solid #5d4037;
	border-radius: 4px;
	padding: 4px 10px;
	font-family: 'MedievalSharp', serif;
	font-size: 13px;
	color: #5d4037;
	cursor: pointer;
	transition: all 0.2s ease;
}
.zargon-sub-tab:hover {
	background: rgba(140, 40, 31, 0.15);
	color: #8c281f;
}
.zargon-sub-tab.selected {
	background: #8c281f;
	color: #fff;
	border-color: #8c281f;
	font-weight: bold;
}
.zargon-sub-tab.turn-active {
	box-shadow: 0 0 6px #ffd700;
	border-color: #ffd700;
}

/* HTML Character Card HUD */
#characterCardHUD {
	position: absolute;
	bottom: 100px;
	left: 20px;
	z-index: 1000;
	width: 660px;
	background: #fcf8f0;
	background-image: radial-gradient(#fbf7ed 30%, #f4ebd2 100%);
	border: 4px double #5d4037;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	font-family: 'MedievalSharp', serif;
	color: #3e2723;
	padding: 12px;
	display: none;
	flex-direction: row;
	gap: 12px;
	max-height: 85vh;
	overflow-y: auto;
	border-color: #5d4037;
}

#characterCardHUD::-webkit-scrollbar {
	width: 6px;
}
#characterCardHUD::-webkit-scrollbar-track {
	background: rgba(93, 64, 55, 0.05);
}
#characterCardHUD::-webkit-scrollbar-thumb {
	background: #8c281f;
	border-radius: 3px;
}

.card-header {
	text-align: center;
	border-bottom: 2px solid rgba(93, 64, 55, 0.2);
	padding-bottom: 6px;
}

.card-title {
	font-family: 'Pirata One', serif;
	font-size: 26px;
	color: #8c281f;
	margin: 0;
	line-height: 1.1;
	letter-spacing: 0.5px;
}

.card-subtitle {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #795548;
	font-weight: bold;
	margin-top: 2px;
}

.card-portrait-container {
	width: 100%;
	height: auto;
	min-height: 160px;
	max-height: 280px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(93, 64, 55, 0.05);
	overflow: hidden;
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
	border-radius: 6px;
	padding: 4px;
}

.card-portrait {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 270px;
	object-fit: contain;
}

.card-portrait-fallback {
	font-size: 14px;
	font-style: italic;
	color: #8d6e63;
	padding: 10px;
	text-align: center;
}

.card-turn-state {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
}

.card-badge {
	width: 100%;
	font-size: 11px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	padding: 6px 10px;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	text-transform: uppercase;
}

.moves-tally-value {
	font-size: 24px;
	font-weight: bold;
	margin-top: 4px;
	letter-spacing: 1px;
	display: block;
	color: #fff;
}

.card-badge.bg-green {
	background: #2e6b3b;
	border: 1px solid #1b4d22;
}

.card-badge.bg-red {
	background: #c62828;
	border: 1px solid #8e0000;
}

.card-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.stat-box {
	background: #e8e1c5;
	border: 1px solid #5d4037;
	border-radius: 6px;
	padding: 6px 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
	font-size: 16px;
}

.stat-label {
	font-size: 10px;
	font-weight: bold;
	color: #5d4037;
	flex-grow: 1;
}

.stat-value {
	font-size: 13px;
	font-weight: bold;
	color: #3e2723;
}

.card-inventory {
	display: flex;
	flex-direction: row;
	gap: 10px;
	border-top: 1px dashed rgba(93, 64, 55, 0.3);
	padding-top: 6px;
}

.card-inventory-left {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.card-inventory-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	border-left: 1px dashed rgba(93, 64, 55, 0.2);
	padding-left: 10px;
	min-width: 32px;
}

.card-inventory-right.two-columns {
	min-width: 56px;
}

.spells-thumbnail-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.spells-thumbnail-list.two-columns {
	flex-direction: row;
	flex-wrap: wrap;
	max-width: 56px;
	justify-content: center;
}

.spell-thumb-img {
	width: 26px;
	height: auto;
	cursor: pointer;
	border-radius: 3px;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.spell-thumb-img:hover {
	transform: scale(1.1);
	box-shadow: 0 0 5px rgba(230, 81, 0, 0.6);
}

.inventory-section {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.inventory-header {
	font-size: 10px;
	font-weight: bold;
	color: #8c281f;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.inventory-list {
	background: rgba(93, 64, 55, 0.04);
	border: 1px solid rgba(93, 64, 55, 0.15);
	border-radius: 4px;
	padding: 6px 8px;
	font-size: 11px;
	line-height: 1.3;
	color: #4e342e;
	min-height: 18px;
}

/* HTML Card HUD Action Buttons */
.hud-action-btn {
	border: 1px solid #5d4037;
	border-radius: 6px;
	color: #fff;
	font-family: 'MedievalSharp', serif;
	font-size: 14px;
	font-weight: bold;
	padding: 8px 6px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}
.hud-action-btn:hover:not(:disabled) {
	transform: scale(1.04);
	filter: brightness(1.15);
	box-shadow: 0 4px 12px rgba(0,0,0,0.35);
	border-color: #f5eccd;
}
.hud-action-btn:active:not(:disabled) {
	transform: scale(0.96);
	filter: brightness(0.9);
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hud-action-btn:disabled {
	background: #777777 !important;
	cursor: url('/gauntlet_pointer.png') 0 0, default !important;
	opacity: 0.6;
	box-shadow: none;
}

@keyframes btn-breathing-pulse {
	0% {
		box-shadow: 0 0 4px rgba(255, 235, 59, 0.6), 0 0 10px rgba(255, 193, 7, 0.4);
		transform: scale(1);
		filter: brightness(1.0);
	}
	50% {
		box-shadow: 0 0 16px rgba(255, 235, 59, 0.95), 0 0 26px rgba(255, 193, 7, 0.85);
		transform: scale(1.05);
		filter: brightness(1.25);
		border-color: #fff59d !important;
	}
	100% {
		box-shadow: 0 0 4px rgba(255, 235, 59, 0.6), 0 0 10px rgba(255, 193, 7, 0.4);
		transform: scale(1);
		filter: brightness(1.0);
	}
}

.btn-breathing:not(:disabled) {
	animation: btn-breathing-pulse 1.6s infinite ease-in-out !important;
}

/* 2-Column Character Card HUD Column Styles */
.hud-card-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.card-col-info {
	flex: 1.1;
	min-width: 180px;
}

.card-col-stats {
	flex: 2;
	min-width: 380px;
	border-left: 1px dashed rgba(93, 64, 55, 0.3);
	padding-left: 12px;
}

.card-actions-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 12px;
	border-top: 2px solid rgba(93, 64, 55, 0.2);
	padding-top: 10px;
}

/* Action Button Color-Coding (restoring original colors) */
.hud-action-btn.color-search {
	background-color: #5a483a;
}
.hud-action-btn.color-search:hover:not(:disabled) {
	background-color: #7d6552;
}

.hud-action-btn.color-door {
	background-color: #8c6d31;
}
.hud-action-btn.color-door:hover:not(:disabled) {
	background-color: #bfa04a;
}

.hud-action-btn.color-give {
	background-color: #2c5270;
}
.hud-action-btn.color-give:hover:not(:disabled) {
	background-color: #41739c;
}

.hud-action-btn.color-pass {
	background-color: #8c281f;
}
.hud-action-btn.color-pass:hover:not(:disabled) {
	background-color: #b71c1c;
}

.hud-action-btn.color-roll {
	background-color: #2e6b3b;
}
.hud-action-btn.color-roll:hover:not(:disabled) {
	background-color: #419653;
}

.hud-action-btn.color-attack {
	background-color: #8c281f;
}
.hud-action-btn.color-attack:hover:not(:disabled) {
	background-color: #b71c1c;
}

.hud-action-btn.color-spell {
	background-color: #2c5270;
}
.hud-action-btn.color-spell:hover:not(:disabled) {
	background-color: #41739c;
}

/* Path Confirmation Popup */
.path-confirmation-popup {
	position: fixed !important;
	bottom: 25px !important;
	right: 25px !important;
	transform: none !important;
	z-index: 999999 !important;
	background: rgba(30, 20, 10, 0.95);
	border: 3px double #d4af37;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
	padding: 12px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-family: 'MedievalSharp', serif;
	color: #fff;
	pointer-events: auto;
}

.path-popup-header {
	font-family: 'Pirata One', serif;
	font-size: 22px;
	color: #ffd700;
	letter-spacing: 1px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.path-popup-actions {
	display: flex;
	gap: 12px;
}

.path-btn {
	border: 2px solid #5d4037;
	border-radius: 6px;
	color: #fff;
	font-family: 'MedievalSharp', serif;
	font-size: 26px;
	font-weight: bold;
	padding: 13px 21px 9px 21px;
	cursor: pointer;
	text-transform: uppercase;
	transition: all 0.15s ease-in-out;
}

.path-btn-confirm {
	background-color: #2e6b3b;
	border-color: #81c784;
}
.path-btn-confirm:hover {
	background-color: #388e3c;
	transform: scale(1.05);
}

.path-btn-clear {
	background-color: #8c281f;
	border-color: #e57373;
}
.path-btn-clear:hover {
	background-color: #b71c1c;
	transform: scale(1.05);
}

#controlSelectionScreen {
	z-index: 80000 !important;
}

#nextQuestParchmentScreen {
	z-index: 70000 !important;
}
