/* Style pour le bouton de fermeture du death panel */
.death-panel-close {
	background: linear-gradient(90deg, rgba(95,44,130,0.18) 0%, rgba(49,160,157,0.18) 100%);
	border: 2px solid rgba(255,255,255,0.18);
	color: #fff;
	font-size: 2rem;
	font-weight: bold;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(49,160,157,0.10);
	transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
	outline: none;
	position: relative;
	z-index: 10;
}

.death-panel-close:hover, .death-panel-close:focus {
	background: linear-gradient(90deg, rgba(95,44,130,0.32) 0%, rgba(49,160,157,0.32) 100%);
	box-shadow: 0 4px 16px rgba(49,160,157,0.18);
	transform: scale(1.08);
	color: #ffe066;
	border-color: #ffe06699;
}

.death-panel-attachments {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: center;
	max-height: 400px;
	overflow-y: auto;
	padding: 8px 0;
}
.death-panel-attachments {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: center;
}
.death-attachment-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 18px;
	padding: 22px 0 18px 0;
	margin: 0 0 22px 0;
	transition: box-shadow 0.18s;
}

.death-panel-img.has-image {
	max-width: auto;
	max-height: auto;
	border-radius: 12px;
	margin: 0 auto;
	display: block;
	box-shadow: 0 2px 8px 0 rgba(0,0,0,0.13);
}
.death-panel-attachments iframe,
.death-panel-attachments video {
	border-radius: 12px;
	background: #181a20;
	box-shadow: 0 2px 8px 0 rgba(0,0,0,0.13);
}

@keyframes lbPlayerGlow
{
	0%
	{
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 255, 255, 0.5);
	}

	100%
	{
		text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 255, 255, 0.7);
	}
}

@keyframes podiumTextEffect
{
	0%
	{
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 6px rgba(255, 255, 255, 0.6);
	}

	100%
	{
		text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.8);
	}
}

@keyframes defaultTextGlow
{
	0%
	{
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(49, 160, 157, 0.6);
	}

	100%
	{
		text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 20px rgba(49, 160, 157, 0.8);
	}
}

@keyframes mode-ffa-anim
{
	0%
	{
	background-position:0% 50%}

	50%
	{
	background-position:100% 50%}

	100%
	{
	background-position:0% 50%}
}

@keyframes mode-2tdm-anim
{
	0%
	{
	background-position:0% 50%}

	50%
	{
	background-position:100% 50%}

	100%
	{
	background-position:0% 50%}
}

@keyframes mode-4tdm-anim
{
	0%
	{
	background-position:0% 50%}

	50%
	{
	background-position:100% 50%}

	100%
	{
	background-position:0% 50%}
}

@keyframes mode-maze-anim
{
	0%
	{
	background-position:0% 50%}

	50%
	{
	background-position:100% 50%}

	100%
	{
	background-position:0% 50%}
}

@keyframes leaderboard-glow
{
	0%
	{
		opacity: 0.18;
		filter: blur(8px);
	}

	50%
	{
		opacity: 0.45;
		filter: blur(18px);
	}

	100%
	{
		opacity: 0.18;
		filter: blur(8px);
	}
}

@keyframes border-gradient-move
{
	0%
	{
		background-position: 0% 50%;
	}

	50%
	{
		background-position: 100% 50%;
	}

	100%
	{
		background-position: 0% 50%;
	}
}

@keyframes float
{
	from
	{
		transform: translateY(0);
	}

	to
	{
		transform: translateY(-40px);
	}
}

@media (max-width: 600px)
{
	.leaderboard-section
	{
		padding: 16px 4px;
		max-width: 98vw;
	}

	.leaderboard-title
	{
		font-size: 2rem;
	}

	.leaderboard-item
	{
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 16px 8px;
	}

	.lb-score, .lb-mode
	{
		margin: 0 4px;
	}
}

@media (max-width: 900px)
{
	.leaderboard-section
	{
		padding: 10px 2px;
		max-width: 99vw;
	}

	.lb-player, .lb-score, .lb-mode, .tank-name
	{
		font-size: 1.1rem !important;
	}

	.tank-img
	{
		width: 32px !important;
		height: 32px !important;
	}

	.leaderboard-item > .lb-score
	{
		flex: 0 0 90px;
		min-width: 70px;
		padding-left: 6px;
	}
}

.lb-rank
{
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 56px;
	font-size: 2.1rem;
	font-weight: bold;
	border-radius: 50%;
	background: linear-gradient(120deg, rgba(95,44,130,0.10) 0%, rgba(49,160,157,0.13) 100%);
	color: #5f2c82;
	box-shadow: 0 2px 8px 0 rgba(49,160,157,0.10);
	border: 2.5px solid rgba(95,44,130,0.10);
	position: relative;
	z-index: 2;
	transition: background 0.3s, border 0.3s;
}

.podium-1 .lb-rank
{
	background: linear-gradient(120deg, #fffbe6 0%, #ffe066 100%);
	color: #bfa100;
	border: 2.5px solid #ffe066;
	box-shadow: 0 0 16px 0 #ffe06699;
}

.podium-2 .lb-rank
{
	background: linear-gradient(120deg, #f8fafd 0%, #bfc9d1 100%);
	color: #7a8a99;
	border: 2.5px solid #bfc9d1;
	box-shadow: 0 0 16px 0 #bfc9d199;
}

.podium-3 .lb-rank
{
	background: linear-gradient(120deg, #fbeee0 0%, #c97a4b 100%);
	color: #a05a1c;
	border: 2.5px solid #c97a4b;
	box-shadow: 0 0 16px 0 #c97a4b99;
}

.leaderboard-item.podium-1
{
	background: linear-gradient(120deg, rgba(132, 110, 0, 0.12) 0%, rgba(255, 224, 102, 0.10) 100%);
	border: 2.5px solid #ffe066;
	position: relative;
	z-index: 5;
	filter: drop-shadow(0 0 6px #ffe066cc);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	overflow: hidden;
}

.leaderboard-item.podium-1::before
{
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 32px;
	background: linear-gradient(120deg, rgba(132, 110, 0, 0.12) 0%, rgba(255, 224, 102, 0.10) 100%);
	opacity: 0.18;
	filter: blur(18px);
	pointer-events: none;
	z-index: 1;
}

.leaderboard-item.podium-2
{
	background: linear-gradient(120deg, rgba(248, 250, 253, 0.12) 0%, rgba(191, 201, 209, 0.10) 100%);
	border: 2.5px solid #bfc9d1;
	position: relative;
	z-index: 4;
	filter: drop-shadow(0 0 6px #bfc9d1cc);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	overflow: hidden;
}

.leaderboard-item.podium-2::before
{
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 32px;
	background: linear-gradient(120deg, rgba(248, 250, 253, 0.12) 0%, rgba(191, 201, 209, 0.10) 100%);
	opacity: 0.18;
	filter: blur(18px);
	pointer-events: none;
	z-index: 1;
}

.leaderboard-item.podium-3
{
	background: linear-gradient(120deg, rgba(255, 132, 0, 0.12) 0%, rgba(201, 122, 75, 0.10) 100%);
	border: 2.5px solid #c97a4b;
	position: relative;
	z-index: 3;
	filter: drop-shadow(0 0 6px #c97a4bcc);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	overflow: hidden;
}

.leaderboard-item.podium-3::before
{
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 32px;
	background: linear-gradient(120deg, rgba(251, 238, 224, 0.12) 0%, rgba(201, 122, 75, 0.10) 100%);
	opacity: 0.18;
	filter: blur(18px);
	pointer-events: none;
	z-index: 1;
}

.podium-1 .username, .podium-2 .username, .podium-3 .username
{
	color: black;
	font-weight: bold;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 6px rgba(255, 255, 255, 0.6);
	letter-spacing: 1px;
	text-transform: uppercase;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.1));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: podiumTextEffect 2s infinite alternate;
}

.leaderboard-item:not(.podium-1):not(.podium-2):not(.podium-3) .username
{
	color: white;
	font-style: italic;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(49, 160, 157, 0.6);
	letter-spacing: 1.2px;
	text-transform: capitalize;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(49, 160, 157, 0.3));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: defaultTextGlow 1.8s infinite alternate;
}

.lb-mode
{
	position: relative;
	z-index: 2;
}

.lb-mode.mode-ffa::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #00eaff 0%, #31a09d 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-mode.mode-2tdm::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #00ff7b 0%, #31a09d 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-mode.mode-4tdm::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #ff3b3b 0%, #540000 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-mode.mode-maze::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #ffe14c 0%, #705e02 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-player.mode-ffa::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #00eaff 0%, #31a09d 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-player.mode-2tdm::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #00ff7b 0%, #31a09d 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-player.mode-4tdm::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #ff3b3b 0%, #540000 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-player.mode-maze::after
{
	content: '';
	position: absolute;
	right: 0%;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 60px;
	background: linear-gradient(270deg, #ffe14c 0%, #705e02 100%);
	opacity: 0.35;
	filter: blur(18px);
	z-index: 1;
	pointer-events: none;
}

.lb-score
{
	color: #ffffff;
	font-weight: 700;
	font-size: 30px;
	position: relative;
	z-index: 2;
	text-shadow: 0 0 6px rgba(255,255,255,0.12);
	text-shadow:-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,2px 2px 0 #000,-1px 0 0 #000,1px 0 0 #000,0 -1px 0 #000,0 1px 0 #000,0 0 6px rgba(255,255,255,0.12);
	cursor: pointer;
	user-select: none;
	transition: text-shadow 0.2s ease;
}

.lb-score:focus-visible
{
	outline: 2px solid rgba(255,255,255,0.9);
	outline-offset: 6px;
}

.lb-score-preview
{
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.lb-score-preview::after
{
	content: '';
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,0.7);
	opacity: 0.5;
	transition: opacity 0.2s ease;
	display: none;
}

.lb-mode.mode-ffa
{
	background: linear-gradient(270deg, #00eaff, #31a09d, #00eaff);
	background-size: 400% 400%;
	animation: mode-ffa-anim 3s ease infinite;
	border: 2.5px solid #00eaff;
	box-shadow: 0 0 16px 0 #00eaff44;
}

.lb-mode.mode-2tdm
{
	background: linear-gradient(270deg, #00ff7b, #31a09d, #00ff7b);
	background-size: 400% 400%;
	animation: mode-2tdm-anim 3s ease infinite;
	border: 2.5px solid #00ff7b;
	box-shadow: 0 0 16px 0 #00ff7b44;
}

.lb-mode.mode-4tdm
{
	background: linear-gradient(270deg, #ff3b3b, #540000, #ff3b3b);
	background-size: 400% 400%;
	animation: mode-4tdm-anim 3s ease infinite;
	border: 2.5px solid #ff3b3b;
	box-shadow: 0 0 16px 0 #ff3b3b44;
}

.lb-mode.mode-maze
{
	background: linear-gradient(270deg, #ffe14c, #938e00, #705e02);
	background-size: 400% 400%;
	animation: mode-maze-anim 3s ease infinite;
	border: 2.5px solid #ffe14c;
	box-shadow: 0 0 16px 0 #ffe14c44;
}

.leaderboard-section
{
	margin: 48px auto 0 auto;
	max-width: 950px;
	background: transparent;
	padding: 32px 24px 24px 24px;
	position: relative;
	z-index: 3;
	overflow: hidden;
}

.leaderboard-section::before
{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 18px;
	opacity: 0.18;
	pointer-events: none;
	z-index: 4;
}

.leaderboard-controls
{
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 24px auto 8px auto;
	max-width: 950px;
	padding: 8px 12px;
}

.controls-wrapper
{
	max-width: 950px;
	margin: 18px auto 6px auto;
	padding: 12px 16px;
	border-radius: 16px;
	position: relative;
	z-index: 3;
	background: linear-gradient(90deg, rgba(95,44,130,0.20) 20%, rgba(49,160,157,0.16) 100%);
	border: 1px solid rgba(255,255,255,0.06);
	box-shadow: 0 10px 30px rgba(17,24,39,0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

@media (max-width: 600px)
{
	.controls-wrapper
	{
		padding: 8px 10px;
		border-radius: 12px;
	}
}

.mode-buttons
{
	display: flex;
	gap: 8px;
}

.mode-btn
{
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
	color: #e6eef6;
	border: 1px solid rgba(255,255,255,0.08);
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s, color 0.12s;
	backdrop-filter: blur(6px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mode-btn:hover
{
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(17,24,39,0.45);
}

.mode-btn.active
{
	background-image: linear-gradient(90deg, rgba(105, 48, 154, 0.3) 30%, rgba(47, 177, 163, 0.3) 100%), linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
	background-blend-mode: overlay, normal;
	color: #fff;
	box-shadow: 0 8px 20px rgba(47,161,157,0.14), inset 0 -6px 18px rgba(0,0,0,0.12);
	border: 1px solid rgba(255,255,255,0.10);
	transform: translateY(-1px) scale(1.01);
	position: relative;
	z-index: 2;
}

.mode-btn.active::after
{
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	top: 10%;
	height: 36%;
	border-radius: 999px;
	background: rgba(255,255,255,0.12);
	filter: blur(6px);
	opacity: 0.7;
	pointer-events: none;
	z-index: 1;
}

.mode-btn .dot
{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
}

.search-container
{
	flex: 1 1 280px;
	display: flex;
	justify-content: flex-end;
}

.search-container input[type="search"]
{
	width: 100%;
	max-width: 420px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(0,0,0,0.25);
	color: #fff;
	outline: none;
	box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.02);
	transition: box-shadow 0.12s, transform 0.08s;
}

.search-container input[type="search"]::placeholder
{
	color: rgba(255,255,255,0.7);
}

.search-container input[type="search"]:focus
{
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 10px rgba(49,160,157,0.06);
}

.leaderboard-title
{
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 24px;
	text-align: center;
	text-shadow: 0 2px 12px rgba(49,160,157,0.12);
}

.leaderboard-list
{
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.leaderboard-item
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(90deg, rgba(95,44,130,0.12) 18%, rgba(49,160,157,0.10) 100%);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(17,24,39,0.12);
	padding: 14px 20px;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid rgba(255,255,255,0.06);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.leaderboard-item > .lb-rank-container
{
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
}

.lb-rank
{
	width: 100%;
	height: auto;
}

.leaderboard-item > .lb-player
{
	flex: 1 1 auto;
	min-width: 100px;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	max-width: none;
	word-break: break-word;
}

.leaderboard-item > .lb-score
{
	flex: 0 0 140px;
	min-width: 100px;
	padding-left: 12px;
	text-align: right;
	margin: 0 12px;
}

.leaderboard-item > .lb-mode
{
	flex: 0 0 90px;
	min-width: 70px;
	text-align: center;
	margin-right: 12px;
}

.leaderboard-item > .lb-tank
{
	flex: 0 0 70px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.leaderboard-item .tank-img
{
	width: 48px;
	height: 48px;
}

.leaderboard-item:hover
{
	transform: scale(1.025);
	box-shadow: 0 6px 24px 0 rgba(49,160,157,0.18);
}

.lb-rank
{
	font-size: 1.5rem;
	font-weight: bold;
	color: rgba(0, 0, 0, 0.5);
	width: 2.5em;
	text-align: center;
	text-shadow: 0 1px 6px rgba(49,160,157,0.10);
}

.lb-player
{
	color: #ffffff;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: capitalize;
	position: relative;
	z-index: 2;
	display: inline-block;
	text-shadow:-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,2px 2px 0 #000,-1px 0 0 #000,1px 0 0 #000,0 -1px 0 #000,0 1px 0 #000,0 0 6px rgba(255,255,255,0.12);
}

.lb-mode
{
	font-size: 1.3rem;
	font-weight: 400;
	color: #fff;
	background: linear-gradient(90deg, #5f2c82 30%, #31a09d 100%);
	border-radius: 12px;
	padding: 2px 14px;
	margin: 0 10px;
	letter-spacing: 1px;
	box-shadow: 0 1px 4px 0 rgba(49,160,157,0.10);
}

.lb-tank
{
	display: flex;
	align-items: center;
	gap: 6px;
}

.tank-img
{
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid #31a09d33;
	box-shadow: 0 1px 6px 0 rgba(49,160,157,0.10);
}

.tank-name
{
	font-size: 1.3rem;
	color: #5f2c82;
	font-weight: 500;
	margin-left: 2px;
}

*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', sans-serif;
}

html,
body
{
	background: #f5f7fb;
}

html,
body
{
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar
{
	display: none;
}

.banner
{
	position: relative;
	height: 60vh;
	width: 100%;
	background: transparent;
	color: white;
	overflow: hidden;
}

.content
{
	position: relative;
	z-index: 2;
	height: 60%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.content-header
{
	font-size: 7rem;
	font-weight: bold;
	line-height: 1.1;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: transform 0.5s ease;
}

.content-header:hover
{
	transform: scale(1.05);
}

.website-logo
{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 140px;
	background: linear-gradient(90deg, rgba(95,44,130, 0.3) 30%, rgba(49,160,157, 0.6) 100%);
	border-radius: 50%;
	box-shadow: 0 4px 24px rgba(95,44,130,0.15);
	border: 3px solid #fff;
	margin-left: 0.5rem;
}

.website-logo img
{
	width: 110px;
	height: auto;
	object-fit: contain;
}

.content-description
{
	font-size: 3rem;
	opacity: 0.9;
	transition: transform 0.5s ease;
}

.content-description:hover
{
	transform: translateY(-5px);
}

.discord-button
{
	position: absolute;
	top: 24px;
	right: 32px;
	margin: 0;
	padding: 14px 36px 14px 20px;
	border: 3px solid transparent;
	border-radius: 30px;
	background: rgba(0,0,0,0.2);
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	z-index: 10;
}

.settings-button
{
	position: absolute;
	top: 24px;
	right: 130px;
	margin: 0;
	padding: 10px 14px;
	border: 3px solid transparent;
	border-radius: 30px;
	background: rgba(0,0,0,0.18);
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	z-index: 10;
}

.settings-button .settings-svg svg
{
	display:block;
}

.settings-button:hover
{
	transform: scale(1.05);
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.settings-backdrop
{
	position: fixed;
	inset: 0;
	background: rgba(4,8,15,0.5);
	backdrop-filter: blur(6px) brightness(0.6);
	z-index: 40;
	display: none;
}

.settings-backdrop.show
{
	display: block;
}

.settings-modal
{
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 50;
	pointer-events: none;
}

.settings-modal.open
{
	display: flex;
	pointer-events: auto;
}

.settings-panel
{
	width: 520px;
	background: linear-gradient(90deg, rgba(95, 44, 130, 0.3) 0%, rgba(73, 160, 157, 0.3) 100%);
	border-radius: 16px;
	padding: 20px 20px 16px 20px;
	box-shadow: 0 30px 80px rgba(0,0,0,0.6);
	color: white;
	pointer-events: auto;
	border: 3px solid rgba(255, 255, 255, 0.5);
	position: relative;
}

.settings-header
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	padding-bottom: 12px;
	position: relative;
}

.settings-header h3
{
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: 1.5px;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.settings-header::after
{
	content: '';
	display: block;
	width: 90%;
	height: 1px;
	margin-top: 10px;
	background: rgba(255,255,255,0.5);
	border-radius: 1px;
	opacity: 0.5;
}

.settings-close
{
	background:transparent;
	border:0;
	color:rgba(255,255,255,0.8);
	font-size:1.2rem;
	cursor:pointer;
}

.settings-body
{
	margin-top:14px;
	display:flex;
	flex-direction:column;
	gap:14px;
}

.settings-grid
{
	display:grid;
	grid-template-columns: 160px 1fr;
	gap:12px 18px;
	align-items:center;
}

.settings-row
{
	display: contents;
}

.settings-row label
{
	align-self:center;
	font-size:0.98rem;
	color: rgba(255,255,255,0.9);
	font-weight: bold;
}

.control-wrap
{
	display:flex;
	align-items:center;
	gap:12px;
}

.control-wrap input[type=range]
{
	flex:1;
	height: 28px;
}

.control-wrap span
{
	min-width:42px;
	text-align:right;
	color:rgba(255,255,255,0.9);
}

.control-wrap input[type=range]
{
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 12px;
	background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
	border-radius: 999px;
	padding: 0;
	outline: none;
}

.control-wrap input[type=range]::-webkit-slider-runnable-track
{
	height: 12px;
	background: rgba(255,255,255,0.06);
	border-radius: 999px;
}

.control-wrap input[type=range]::-webkit-slider-thumb
{
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	margin-top: -6px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #ffffff, #f2f2f2);
	border: 4px solid rgba(127,77,160,0.95);
	box-shadow: 0 6px 16px rgba(0,0,0,0.45);
	cursor: pointer;
}

.control-wrap input[type=range]::-moz-range-track
{
	height:12px;
	background: rgba(255,255,255,0.06);
	border-radius:999px;
}

.control-wrap input[type=range]::-moz-range-thumb
{
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background:linear-gradient(90deg, rgba(95, 44, 130, 0.5) 0%, rgba(49, 160, 157, 0.5) 100%);
	border: 2px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 6px 16px rgba(255, 255, 255, 0.45);
}

.control-wrap input[type=checkbox]
{
	-webkit-appearance: none;
	appearance: none;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255,255,255,0.12);
	position: relative;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
	border: 1px solid rgba(255,255,255,0.06);
}

.control-wrap input[type=checkbox]::after
{
	content: '';
	position: absolute;
	top: 50%;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 3px 10px rgba(0,0,0,0.35);
	transition: transform 0.18s ease, background 0.18s ease;
	transform: translateY(-50%);
}

.control-wrap input[type=checkbox]:checked
{
	background: linear-gradient(90deg, rgba(95, 44, 130, 0.5) 0%, rgba(49, 160, 157, 0.5) 100%);
	border-color: rgba(255,255,255,0.8);
}

.control-wrap input[type=checkbox]:checked::after
{
	transform: translateX(20px) translateY(-50%);
	background: #ffffff;
}

input[type=range]
{
	-webkit-appearance: none;
	appearance:none;
	height:6px;
	background: rgba(255,255,255,0.06);
	border-radius:999px;
}

input[type=range]::-webkit-slider-thumb
{
	-webkit-appearance:none;
	width:16px;
	height:16px;
	border-radius:50%;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	border: 3px solid rgba(95,44,130,0.9);
}

input[type=range]::-moz-range-thumb
{
	width:16px;
	height:16px;
	border-radius:50%;
	background: #fff;
	border: 3px solid rgba(95,44,130,0.9);
}

.settings-footer
{
	display:flex;
	align-items:center;
	gap:12px;
	margin-top:12px;
}

.btn
{
	padding:10px 14px;
	border-radius:10px;
	cursor:pointer;
	border:0;
	font-weight:600;
}

.btn-ghost
{
	background: transparent;
	color: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,255,255,0.04);
}

.btn-primary
{
	background: linear-gradient(90deg, rgba(95, 44, 130, 0.5) 0%, rgba(73, 160, 157, 0.5) 100%);
	color: white;
	box-shadow: 0 12px 30px rgba(73,160,157,0.12), inset 0 -6px 12px rgba(0,0,0,0.12);
	padding: 10px 18px;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	font-weight: 700;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
}

.btn-primary:hover
{
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(73,160,157,0.14), inset 0 -6px 12px rgba(0,0,0,0.12);
}

.btn-primary:active
{
	transform: translateY(0);
	opacity: 0.95;
}

.btn .btn-icon
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	flex-shrink: 0;
}

.settings-grid label[for="dashboard-login"]
{
	display: inline-block;
}

.control-wrap.control-right
{
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.settings-panel::before
{
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 22px;
	background: linear-gradient(90deg, rgba(95, 44, 130, 0.3) 0%, rgba(73, 160, 157, 0.6) 100%);
	z-index: -1;
	filter: blur(18px);
	opacity: 0.95;
}

.discord-button::before
{
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 30px;
	z-index: -1;
	padding: 0;
	background: linear-gradient(270deg, #5f2c82, #31a09d, #5f2c82);
	background-size: 400% 400%;
	animation: border-gradient-move 3s ease infinite;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	border: 3px solid transparent;
	pointer-events: none;
}

.settings-button::before
{
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 30px;
	z-index: -1;
	padding: 0;
	background: linear-gradient(270deg, #5f2c82, #31a09d, #5f2c82);
	background-size: 400% 400%;
	animation: border-gradient-move 3s ease infinite;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	border: 3px solid transparent;
	pointer-events: none;
}

.header-actions
{
	position: absolute;
	top: 24px;
	right: 32px;
	display: flex;
	gap: 12px;
	align-items: center;
	z-index: 10;
}

.header-actions .discord-button
{
	position: relative;
	top: auto;
	right: auto;
	margin: 0;
	min-width: 160px;
	height: 56px;
	padding: 14px 36px 14px 20px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-actions .discord-button .discord-svg-gradient svg
{
	width: 32px;
	height: 32px;
}

.header-actions .settings-button
{
	position: relative;
	top: auto;
	right: auto;
	margin: 0;
	width: 56px;
	height: 56px;
	padding: 8px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-actions .settings-button .settings-svg svg
{
	width: 20px;
	height: 20px;
}

.discord-svg-gradient
{
	display: flex;
	align-items: center;
	height: 32px;
	width: 32px;
}

.discord-svg-gradient svg
{
	width: 32px;
	height: 32px;
	display: block;
}

.discord-button:hover
{
	transform: scale(1.05);
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.wave
{
	position: absolute;
	bottom: 0;
	width: 100%;
}

body.death-overlay-open
{
	overflow: hidden;
}
/* Clean, responsive death overlay */
:root {
	--overlay-bg: rgba(8,10,12,0.82);
	--panel-bg: rgba(20,22,28,0.95);
	--muted: rgba(255,255,255,0.72);
}

.death-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 48px);
	background: var(--overlay-bg);
	backdrop-filter: blur(8px) saturate(110%);
	z-index: 140;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.death-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.death-panel {
	width: min(92vw, 980px);
	max-height: 86vh;
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18)), var(--panel-bg);
	border: 1px solid rgba(255,255,255,0.04);
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: translateY(8px) scale(0.995);
	opacity: 0;
	transition: transform 240ms ease, opacity 240ms ease;
}

.death-panel.visible {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.death-panel-header {
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255,255,255,0.02);
}

.death-panel-title {
	color: var(--muted);
	font-weight: 600;
}

.death-panel-attachments {
	padding: 14px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	align-items: start;
	overflow: auto;
}


.death-attachment-wrapper.unified-attachment {
	background: none;
	padding: 8px 0;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.unified-media {
	width: 100%;
	max-width: 640px;
	height: 360px;
	object-fit: contain;
	border-radius: 8px;
	display: block;
	background: #181a1f;
	margin: 0 auto;
}

.death-panel-attachments {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.death-panel-empty {
	padding: 28px;
	color: var(--muted);
	text-align: center;
	font-size: 1rem;
	opacity: 0;
	transition: opacity 160ms ease;
}

.death-panel-empty.visible { opacity: 1; }

@media (max-width: 520px) {
	.death-panel { width: calc(100% - 24px); border-radius: 12px; }
	.death-attachment-wrapper img, .death-attachment-wrapper video { max-height: 180px; }
}