/* ==========================================================================
   HeroQuest 3000 - Pause Screen, Options & Profile Configuration
   ========================================================================== */

/* Options / Profile Modal Screen */
#profileScreen {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 700000;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	padding: 10px;
	pointer-events: auto;
	overflow-y: auto;
}

.loginresultUser, .loginresult {
	cursor: pointer !important;
}

.profile_container {
	position: relative !important;
	width: fit-content !important;
	max-width: 98vw !important;
	max-height: 98vh !important;
	overflow-y: auto !important;
	margin: 0 auto !important;
	background: #231b18 !important;
	border: 6px solid #8c6c53 !important;
	border-radius: 10px !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: 10px 14px !important;
	pointer-events: auto !important;
}

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

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

.profile-grid {
	display: grid !important;
	grid-template-columns: repeat(3, max-content) !important;
	justify-content: center !important;
	gap: 14px !important;
	width: fit-content !important;
	margin: 0 auto !important;
	text-align: left;
	font-family: 'MedievalSharp', serif;
	font-weight: normal;
	font-size: 16px;
}

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

.profile-col {
	flex: 0 1 auto !important;
	width: fit-content !important;
	max-width: 100% !important;
	background: rgba(140, 108, 83, 0.08) !important;
	border: 2px solid #8c6c53 !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.3s ease;
}

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

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

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

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

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

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

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

#nicknameInput {
	flex-grow: 1;
	background: #2e2420 !important;
	border: 2px solid #8c6c53 !important;
	color: #e0d2c5 !important;
	border-radius: 6px !important;
	font-family: 'MedievalSharp', serif !important;
	padding: 8px 12px;
	font-size: 16px;
	outline: none;
	cursor: text;
	transition: all 0.3s ease;
}

#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;
	font-size: 14px;
	padding: 8px 16px;
	letter-spacing: 0.05em;
	cursor: pointer;
}

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

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

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

.profileColors {
	display: grid;
	grid-template-columns: repeat(10, 23px);
	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 !important;
	flex-direction: column !important;
	gap: 2px !important;
}

.instruction-item {
	background: rgba(140, 108, 83, 0.08) !important;
	border: 1px solid rgba(140, 108, 83, 0.2) !important;
	border-radius: 4px !important;
	padding: 2px 6px !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.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;
	font-size: 11px !important;
	padding: 1px 5px !important;
	display: inline-block;
	vertical-align: middle;
	line-height: 1.2;
	border-radius: 5px;
	letter-spacing: 0.05em;
}

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

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

.setting-item {
	color: #e0d2c5 !important;
	font-family: 'MedievalSharp', serif !important;
	font-size: 13px !important;
	border-bottom: 1px dashed rgba(140, 108, 83, 0.15) !important;
	padding: 2px 0 !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.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;
	font-size: 14px;
	cursor: pointer;
}

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

.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(62, 39, 35, 0.2) !important;
	outline: none;
}

.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;
	font-size: 13px;
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: bold;
	min-width: 40px;
	text-align: center;
}

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

/* 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: 60000 !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;
	margin: auto !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;
	cursor: pointer;
}

#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;
	cursor: pointer;
}

.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:hover,
.settings-dropdown:focus {
	background-color: #3e2723 !important;
	color: #fff9e6 !important;
	border-color: #8d6e63 !important;
}

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

.settings-dropdown option:hover,
.settings-dropdown option:focus,
.settings-dropdown option:active,
.settings-dropdown option:checked {
	background-color: #3e2723 !important;
	color: #fff9e6 !important;
}

.setting-item .hq-custom-select-wrapper {
	width: auto !important;
	min-width: 175px !important;
	max-width: 220px !important;
}

