/* ==========================================================================
   HeroQuest 3000 - End of Round / Game Over Screen & Post-Match Statistics
   ========================================================================== */

.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;
	overflow-y: auto;
}

.endRound_container {
	position: relative;
	background: transparent;
	width: 100%;
	max-width: 1380px;
	height: fit-content;
	padding: 30px 20px 40px 20px;
	margin: auto 0;
	text-align: center;
	color: #dfcfb0;
	font-weight: bold;
	font-size: 2em;
	line-height: 1em;
	border: none;
	border-radius: 4px;
	box-sizing: border-box;
}

.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 {
	width: 100% !important;
	max-width: 1300px !important;
	padding: 0 !important;
	margin: 0 auto !important;
}

.end_boot_container .single-player-stats-row,
.end_boot_container .multiplayer-stats-row {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	flex-wrap: wrap;
	width: 100%;
	margin: 0 auto;
}

.end_boot_container .col-sm {
	padding: 0;
	border-radius: 6px;
	margin: 0;
}

.end_boot_container .player2,
.end_boot_container .multiplayer-player2,
.end_boot_container .singleplayer-objectives-col,
.end_boot_container .multiplayer-objectives-col {
	flex: 1 1 450px;
	max-width: 600px;
	min-width: 340px;
	width: 100%;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

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

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

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

/* ==========================================================================
   End Game Quest Reward Payout Animations & Banner
   ========================================================================== */

.reward-banner-card {
	background: linear-gradient(135deg, rgba(74, 30, 20, 0.95), rgba(46, 18, 12, 0.98));
	border: 2px solid #e5a93b;
	border-radius: 8px;
	padding: 10px 16px;
	margin-bottom: 14px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(229, 169, 59, 0.2);
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
	font-family: 'MedievalSharp', serif;
	animation: bannerDropIn 0.5s ease-out forwards;
}

@keyframes bannerDropIn {
	0% {
		opacity: 0;
		transform: translateY(-10px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.reward-banner-title {
	font-family: 'Pirata One', serif;
	font-size: 1.4rem;
	color: #ffd700;
	letter-spacing: 1px;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
	margin: 0;
}

.reward-banner-desc {
	font-size: 0.92rem;
	color: #e0d0b0;
	margin: 0;
	line-height: 1.25em;
}

.reward-banner-payout {
	font-size: 1rem;
	color: #a5d6a7;
	font-weight: bold;
	margin-top: 2px;
}

/* Row Payout Highlight */
.leaderboard-row.reward-highlight {
	animation: goldRowPulse 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
	border-radius: 6px;
}

@keyframes goldRowPulse {
	0% {
		background-color: rgba(255, 215, 0, 0);
		box-shadow: 0 0 0 rgba(255, 215, 0, 0);
	}
	35% {
		background-color: rgba(255, 215, 0, 0.35);
		box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), inset 0 0 12px rgba(255, 215, 0, 0.4);
	}
	100% {
		background-color: rgba(255, 215, 0, 0.12);
		box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
	}
}

/* Floating Gold Badge */
.gold-cell-container {
	position: relative;
	display: inline-block;
}

.floating-gold-gain {
	position: absolute;
	left: 50%;
	top: -6px;
	transform: translate(-50%, 0);
	font-family: 'Pirata One', serif;
	font-size: 1.35rem;
	font-weight: bold;
	color: #ffeb3b;
	text-shadow: 0 0 10px rgba(255, 235, 59, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.9);
	pointer-events: none;
	z-index: 100;
	white-space: nowrap;
	animation: floatUpFade 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes floatUpFade {
	0% {
		opacity: 0;
		transform: translate(-50%, 8px) scale(0.6);
	}
	25% {
		opacity: 1;
		transform: translate(-50%, -6px) scale(1.3);
	}
	65% {
		opacity: 1;
		transform: translate(-50%, -24px) scale(1.05);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -42px) scale(0.85);
	}
}

.gold-value-animate {
	transition: color 0.3s ease;
}

.gold-value-animate.bump {
	color: #fff9c4 !important;
	text-shadow: 0 0 12px #ffeb3b;
}

