html,
body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	overflow-x: hidden;
	-webkit-text-size-adjust: none;
	width: 100%;
	height: 100%;
	position: fixed;
	cursor: url('../img/cursort.png') 0 0, auto !important;
}

input[type="checkbox"] {
	cursor: pointer;
}
#canvas {
	cursor: url('../img/cursort.png') 0 0, auto !important;
}
.gamePanel {
    transform: scale(0.8) translateY(90px); /* aleja y baja */
    transform-origin: top center;
    transition: transform 0.3s ease;
}


#overlays {
	opacity: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(to right, 
		rgba(183, 148, 246, 0.50) 0%,      
		rgba(159, 122, 234, 0.65) 25%,     
		rgba(139, 92, 246, 0.75) 50%,      
		rgba(124, 58, 237, 0.80) 75%,     
		rgba(124, 58, 237, 0.85) 100%);    
	z-index: 200;
}
#skinCenter {
	width: 90px;
	height: 90px;
	background-color: #ffffff;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 3px solid #333333;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

#skinCenter:hover {
	border: 3px solid #666666;
	transform: scale(1.05);
}

#skinName {
	padding-top: 35%;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}

#backgroundSelect {
	background-color: rgba(255, 255, 255, 0.8);
	height: 40px;
	border-radius: 10px;
	transform: none;
	padding: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	border: 2px solid #d0d0d0;
}

.bgSet {
	width: 35px;
	height: 28px;
	background-color: #ffffff;
	margin: 0;
	transform: none;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	border: 2px solid #999999;
}

.bgSet:hover {
	transform: scale(1.1);
	border-color: #333333;
}
.bgSet:hover {
	opacity: 80%;
}

.grid {
	display: flex;
	gap: 5px;
	/* Adds space between divs */
	flex-wrap: wrap;
	/* Allows them to wrap onto new lines if needed */
}

hr {
	border: 2px solid #0a0a0a;
	background-color: #0a0a0a;
	/* Creates a 2px solid black line */
	height: 1px;
	border-radius: 5px;
	/* Optional: To control the height */
}

#touchpad,
#touchCircle,
#splitBtn,
#ejectBtn {
	position: fixed;
}

#touchpad,
#splitBtn,
#ejectBtn {
	z-index: 2;
}

#touchpad {
	background: #000;
	opacity: 0.3;
	width: 20vw;
	height: 20vh;
	left: 0;
	bottom: 0;
}

#touchCircle {
	width: 4vw;
	height: 4vw;
	border-radius: 2vw;
	background: #f00;
	opacity: 0.3;
	z-index: 3;
}

#splitBtn,
#ejectBtn {
	width: 8vw;
	height: 8vw;
	border-radius: 4vw;
	background: #777;
	opacity: 0.5;
}

#splitBtn {
	right: 18vw;
	bottom: 0;
}

#ejectBtn {
	bottom: 18vw;
	right: 0;
}

#stats {
	position: absolute;
	/* or 'fixed' depending on your intent */
	left: 17px;
	top: 10px;
	border-radius: 8px;
}

.server-stats-container {
	position: absolute;
	left: 0;
	right: 0;
	top: 25px;
	border-radius: 8px;
	font-size: 32px;
	color: #f0e119;
	font-family: "Fredoka", serif;
	font-optical-sizing: auto;
	font-weight: bold;
	font-style: normal;
	text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black, -2px 2px 5px black;
}
.server-stats-container .server-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.stat {
	color: #ee51c7;
	font-size: 30px;
	font-family: "Fredoka", serif;
	font-optical-sizing: auto;
	font-weight: bold;
	font-style: normal;
	text-shadow: 1px 1px 2px black;
}

#score-stats {
	color: #5ce9e9;
}

#div_lb > .header {
	color: #e91b1b;
	font-size: 23.5px;
	font-weight: bold;
	overflow: hidden;
	margin-top: 1px;
	font-family: "Fredoka", serif;
	font-optical-sizing: auto;
	font-weight: bold;
	font-style: normal;
	text-align: center;
}

#lb_detail > div {
	float: left;
	width: 100%;
}

#div_lb {
	width: 205px;
	font-weight: bold;
	border-radius: 10px;
	color: #fff;
	right: 10px;
	top: 10px;
	text-align: center;
	padding: 5px;
	overflow: hidden;
	user-select: none;
	background: linear-gradient(to right, #2020209d, #42424296);
	cursor: default;
	position: absolute;
	padding-bottom: 16px;
	padding-top: 10px;
	pointer-events: none;
}

#div_lb div div {
	font-size: 19px;
	font-weight: bold;
	width: 100%;
}

#lb_detail {
	margin-top: 5px;
	font-weight: bold;
	padding-bottom: 5px !important;
	padding-left: 5px;
	font-family: "Fredoka", serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	text-align: left;
}

/* General scrollbar styles */
::-webkit-scrollbar {
	width: 8px;
	/* Width of the scrollbar */
	height: 8px;
	/* Height of the scrollbar (for horizontal scrollbar) */
}

::-webkit-scrollbar-track {
	background: rgb(0 0 0 / 50%);
	/* Track color */
	border-radius: 7px;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.7);
	/* Thumb color */
	border-radius: 7px;
	border: 2px solid rgba(0, 0, 0, 0.5);
	/* Border around the thumb */
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 1);
	/* Thumb color when hovered */
}
#chatbox {
	color: rgba(255, 255, 255, 0.9);
	background: transparent;
	padding: 10px;
	min-width: 200px;
	min-height: 200px;
	margin: 0 0 5px 0;
	position: relative;
	left: 0px !important;
	overflow: hidden;
	cursor: default;
}

.sender {
	font-weight: bold;
	font-size: 16px;
	color: white;
	font-family: "Fredoka", serif;
	padding-left: 5px;
	padding-right: 3px;
	display: inline;
	vertical-align: baseline;
	white-space: nowrap; 
}
.msg {
	font-weight: normal;
	font-size: 16px;
	font-family: "Fredoka", serif;
	display: inline;
	vertical-align: baseline;
}

#chatPopup_ {
	padding: 5px;
	width: 680px;
	height: 388px;
	border-radius: 7px;
	background-color: transparent;
	margin-bottom: 5px;
	overflow: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	visibility: visible;
	opacity: 1;
	pointer-events: none;
}

#chatRoom {
	max-height: 100%;
	overflow: hidden;
	padding: 0 10px 0 0;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	--chat-text-color: #ffffff;
	--chat-shadow-color: rgba(0, 0, 0, 0.8);
	pointer-events: none;
}


#chatRoom div {
	color: var(--chat-text-color);
	font-size: 16px;
	text-shadow: 1px 1px 2px var(--chat-shadow-color);
	transition: opacity 0.3s ease;
	margin-bottom: 4px;
	flex-shrink: 0;
	line-height: 20px;
	max-width: 660px;
	overflow: hidden;
	white-space: nowrap; 
	text-overflow: ellipsis; 
	pointer-events: none;
}

#input_box {
	width: 100%;
	border: 0;
}


::placeholder {
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.3s ease;
}
#chatboxArea2 {
	left: 5px;
	bottom: -14px;
	position: absolute;
	pointer-events: none
	
}

#chatboxArea2 img {
	margin-left: 2px;
}

#input_box2 {
	width: 340px;  
	padding: 6px 10px;  
	height: auto;  
	outline: none;
	border: none;
	background-color: rgba(0, 0, 0, 0.2);  
	border-radius: 6px;  
	font-family: "Fredoka", serif;
	font-size: 13px;  
	color: #ffffff;
	backdrop-filter: blur(5px);
	transition: background 0.3s ease;
	animation: 0.4s fadeIn;
	margin-right: 0;
	pointer-events: auto;
}

#input_box2:focus {
	background-color: rgba(0, 0, 0, 0.4);  
}



@keyframes glow {
	0%,
	100% {
		text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
	}
	50% {
		text-shadow: 0 0 2px #00f0ff, 0 0 4px #00f0ff;
	}
}

@keyframes glow {
	0%,
	100% {
		text-shadow: 0 0 6px #00f0ff, 0 0 10px #00f0ff;
	}
	50% {
		text-shadow: 0 0 3px #00f0ff, 0 0 6px #00f0ff;
	}
}



.toggle-card input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #9c27b0;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    padding: 0;
}

.toggle-card input[type="checkbox"]:checked {
    background-color: #9c27b0;
}

.toggle-card input[type="checkbox"]:checked::after {
    content: "✔";
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
}
.label-text {
	font-weight: bold;
	user-select: none;
	line-height: 1;
	white-space: nowrap;
	color: #000000;
}

.server-toggles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.label-text-white-glow {
	color: #fff;
	font-weight: bold;
	text-shadow: 0 0 4px #00f0ff, 0 0 6px #00f0ff;
	font-family: "Fredoka", sans-serif;
}

.toggle-server {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-server:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 15px rgba(0, 255, 255, 0.2);
}

.chat-control-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 5px;
}


#toggleChat {
	padding: 6px 12px;
	font-size: 13px;
	background-color: rgba(0, 0, 0, 0.2);
	border: none;
	color: white;
	border-radius: 6px;
	cursor: pointer;
	transition: none;
	box-shadow: none;
}

#toggleChat:hover {
	background-color: rgba(0, 0, 0, 0.4);
	color: white;
}

#servers {
	margin-bottom: 100px;
}

#selected-clan {
	width: 100%;
	padding: 10px 12px;
	background: #ffffffe0;
	color: rgb(0, 0, 0);
	font-weight: bold;
	border: none;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	font-size: 14px;
	font-family: "Fredoka", serif;
}

#clan-list {
	position: absolute;
	top: 100%;
	width: 100%;
	max-height: 150px;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	margin-top: 5px;
	display: none;
	z-index: 1000;
}

#clan-list li {
	padding: 8px 10px;
	list-style: none;
	color: #000000;
	cursor: pointer;
	font-weight: bold;
}

#clan-list li:hover {
	background: rgba(0, 255, 255, 0.2);
}
.clan-container {
	position: relative;
}

.clan-dropdown {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}


.clan-container.open .clan-dropdown {
	z-index: 3;
}
* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	overflow: hidden;
	display: grid;
	color: rgb(0, 0, 0);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	background-attachment: fixed;
}
* {
	user-select: none; /* bloquea selección en toda la página */
}

#input_box2 {
	user-select: text; /* chat input */
}
#div_lb {
	width: 245px;
	max-height: 600px;
	overflow-y: auto;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 12px;
	border-radius: 8px; /* Bordes redondeados si quieres */
	margin-top: 120px;
}

#div_lb .header {
	font-size: 23px;
	text-align: center;
	margin-bottom: 5px;

	color: #faf7f7;

	/* Control de texto largo */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 230px;
	margin-left: auto;
	margin-right: auto;
	display: block;

	text-shadow: none;
	animation: none;
	filter: none;
}
#lb_detail .leaderboard-item {
	display: flex;
	align-items: center;
	margin-bottom: 0.6rem;
	gap: 0.75rem;
}

#lb_detail .leaderboard-skin {
	border-radius: 10rem;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
#lb_detail p {
	font-size: 18px;
	margin-bottom: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
}
#winner-box {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 245px;
	padding: 15px;
	border-radius: 10px;
	background: linear-gradient(to right, #1e1e1e, #383838);
	color: #ffffff;
	font-size: 20px;
	font-weight: bold;
	font-family: "Fredoka", serif;
	font-optical-sizing: auto;
	font-style: normal;
	display: flex;
	align-items: center;
	text-align: left;
	overflow: hidden;
	user-select: none;
	z-index: 100;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	pointer-events: none;
}

#winner-box #crown-icon {
	width: 85px;
	height: 85px;
	transform: translateY(-22px);
}

#winner-box #leaderboardTitle {
	display: block;
	margin-top: -29px;
	white-space: nowrap; /* Evita salto de línea */
	overflow: hidden; /* Oculta lo que sobresalga */
	text-overflow: ellipsis; /* Añade "..." si es muy largo */
	max-width: 100%;
}
.key {
	display: inline-block;
	padding: 6px 12px;
	margin: 2px;
	font-weight: bold;
	border: 2px solid #ccc;
	border-radius: 6px;
	background: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	font-family: Arial, sans-serif;
}

#input_box2,
#chatRoom,
#chatPopup_ {
	font-family: "Fredoka", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", "Android Emoji",
		sans-serif;
}

emoji-picker#emojiPanel {
	position: absolute;
	bottom: 63px;
	left: 445px;
	width: 330px;
	height: 254px;
	z-index: 1000;
	border-radius: 8px;
	pointer-events: auto; 

	--background: rgba(0, 0, 0, 0.5);
	--border-color: rgba(0, 0, 0, 0.5);
	--border-radius: 8px;
	--input-font-color: #fff;
	--category-font-color: #fff;
	--num-columns: 8;
	--emoji-size: 1.5rem;
}

.hidden {
	display: none;
}

/* Botón de emojis */
#emojiBtn {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: white;
	font-size: 13.5px;
	border-radius: 6px;
	cursor: pointer;
	padding: 14px 14px;
	transition: background 0.2s;
	margin-left: 0px;
	position: relative;
	overflow: hidden;
	top: 0px;
}

#emojiBtn:hover {
	background: rgba(0, 0, 0, 0.4);
}

#emojiBtn span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
	opacity: 1;
	pointer-events: none;
}

#emojiBtn span.fade-out {
	opacity: 0;
	transform: translate(-50%, -80%);
}

#chat-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}
#chat-controls * {
	pointer-events: auto;  
}
#chat-buttons * {
	pointer-events: auto; 
}
#chat-buttons {
	display: flex;
	gap: 6px;
}

#return-home {
	background: #ff4444;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
}

#return-home:hover {
	background: #cc0000;
}

#emoji-container {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
	z-index: 10000;
}

.emoji-float {
	position: absolute;
	font-size: 18px;
	will-change: transform, opacity;
}

@keyframes floatUp {
	0% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	100% {
		transform: translateY(-400px) scale(1.5);
		opacity: 0;
	}
}

/* Panel principal del juego */
.gamePanel {
	display: flex;
	height: 100%;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
}

.gamePanel-Left,
.gamePanel-Center,
.gamePanel-Right {
	margin: 0 5px;
}

.gamePanel-Left {
    width: 381px; 
}

.gamePanel-Right {
    width: 352px; 
}

.gamePanel-Center {
	width: 350px;
}

/* Títulos de los paneles */
.gamePanel .titlePanel {
	font-size: 28px;
	font-family: "Fredoka", sans-serif;
	text-align: center;
	height: 45px;
	border-radius: 5px;
	color: #000000;
	font-weight: bold;
	border: none !important;
	background: transparent !important;
}

.gamePanel .titlePanel .header {
	font-size: 28px;
	font-weight: bold;
	color: #195f64;
	font-family: "Fredoka", sans-serif;
	text-align: center;
	margin-bottom: 10px;
	animation: glow 2s ease-in-out infinite;
	text-shadow: 0 0 6px #00f0ff, 0 0 10px #00f0ff;
}

.gamePanel-Left .scorePanel {
	background: linear-gradient(to bottom, 
		rgba(255, 255, 255, 0.95) 0%, 
		rgba(255, 255, 255, 0.95) 50%, 
		rgba(190, 170, 220, 0.60) 70%,     
		rgba(150, 110, 190, 0.35) 85%,
		rgba(120, 80, 160, 0.15) 95%,
		rgba(100, 60, 140, 0.05) 100%);    
	margin-bottom: 1rem;
	border-radius: 45px;
	padding: 20px;
	padding-bottom: 60px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border-top: 3px solid rgba(255, 255, 255, 0.6);     
	border-left: 3px solid rgba(255, 255, 255, 0.6);
	border-right: 3px solid rgba(255, 255, 255, 0.6);
	border-bottom: none;                                
	position: relative;
}
.gamePanel-Left .scorePanel .titlePanel {
    position: relative;
    margin-bottom: 25px; 
}
.gamePanel-Left .scorePanel .imagePanel {
	display: none;
}
.gamePanel-Left .scorePanel .imagePanel img {
  width: auto;
  height: 160px;
}
.scorePanel .imagePanel img {
	margin-top: -30px;  
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 85%;           
}
.gamePanel-Left .scorePanel .scoreboard-container {
	min-height: 350px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	margin: 2.5rem 0;
}

.gamePanel-Left .scorePanel .scoreboard-container ul strong {
  display: block;
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.gamePanel-Left .scorePanel .scoreboard-container .score-flag{
	font-size: 15px;
	margin-right: 1.1rem;
	margin-left: 6px;
}
/* score filters */
.gamePanel-Left .scorePanel .scoreboard-filters {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.gamePanel-Left .scorePanel .scoreboard-filters button {
	background-color: #f0f0f0;
	border: 2px solid #d0d0d0;
	outline: none;
	border-radius: 15px;
	width: 8500px; 
	height: 38px; 
	font-size: 17px; 
	font-weight: bold;
	color: #333333;
	font-family: "Fredoka", serif;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}
.gamePanel-Left .scorePanel .scoreboard-filters button:hover {
	background-color: #ffffff;
	transition: all 0.35s ease-in-out;
}
.gamePanel-Left .scorePanel .scoreboard-filters button.active {
	background-color: #ffeb3b;
	color: #000000;
	font-weight: bold;
	border-color: #fdd835;
}
.gamePanel-Left .scorePanel .scoreboard-container .score {
	color: #d1d1d1;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	font-size: 16px;
	margin-top: 10px;
}
.gamePanel-Left .scorePanel .scoreboard-container ul {
	padding: 0;
	margin: 0;
}
.gamePanel-Left .scorePanel .scoreboard-container ul li {
	list-style: none;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	gap: 1px;
	transition: background-color 0.2s ease-in-out;
	white-space: nowrap;
}
.gamePanel-Left .scorePanel .scoreboard-container ul li:nth-child(odd) {
	background-color: rgba(160, 156, 156, 0.1);
}

.gamePanel-Left .scorePanel .scoreboard-container ul li:hover {
	background-color: rgba(160, 156, 156, 0.1);
}
.gamePanel-Left .scorePanel .scoreboard-container ul li span:first-child {
	background-color: rgba(224, 203, 13, 0.637); /* dorado suave */
	border: 2px solid gold;
	border-radius: 8px;
	padding: 2px 8px;
	margin-left: -12px;
	margin-right: 8px;
	color: rgb(0, 0, 0);
	font-weight: bold;
	display: inline-block;
	min-width: 28px;
	text-align: center;
}
.gamePanel-Left .scorePanel .scoreboard-container ul li p {
	margin: 0;
	font-size: 17px; 
	text-overflow: ellipsis;
	overflow: hidden;
	flex: 1; 
	padding-right: 18px; 
}

.gamePanel-Left .scorePanel .scoreboard-container ul li strong {
	font-weight: bold;
	margin-left: auto;
	font-size: 18px;
	color: #2a66e9;
	display: flex;
	align-items: center;
	font-family: Arial, sans-serif;
	line-height: 1;
	margin-right: -8px;
}
.gamePanel-Left .scorePanel .scoreboard-filters button:nth-child(1) {
	background-color: #ffbb00; 
	color: #fffdfd;
	box-shadow: 0 0 10px #ffbb00;
}

.gamePanel-Left .scorePanel .scoreboard-filters button:nth-child(2) {
	background-color: #00bcd4; 
	color: #fffbfb;
	box-shadow: 0 0 10px #00bcd4;
}

.gamePanel-Left .scorePanel .scoreboard-filters button:nth-child(3) {
	background-color: #ff4081; 
	color: #f0f0f0;
	box-shadow: 0 0 10px #ff4081;
}
.gamePanel-Left .scorePanel .scoreboard-filters {
	margin-top: -1px; 
}



.gamePanel-Left .scorePanel .scoreboard-container ul li.top1-glow p,
.gamePanel-Left .scorePanel .scoreboard-container ul li.top2-glow p,
.gamePanel-Left .scorePanel .scoreboard-container ul li.top3-glow p {
    position: relative;
    z-index: 1;

}


.gamePanel-Left .scorePanel .scoreboard-container ul li.top1-glow p {
    color: #bdba08;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    filter: brightness(0.8);
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top1-glow p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-image: url('../img/sparkle_yellow.gif');
    background-size: 50%;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
    border-radius: 3px;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top2-glow p {
    color: #00bcd4;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    filter: brightness(0.8);
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top2-glow p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/sparkle_blue.gif');
    background-size: 40%;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
    border-radius: 3px;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top3-glow p {
    color: #ff4081;
    font-weight: 700;
    text-shadow: 0 0 2px #000000;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top3-glow p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/sparkle_red.gif');
    background-size: 40%;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
    border-radius: 3px;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li:not(.top1-glow):not(.top2-glow):not(.top3-glow) p {
    text-shadow: 0 0 0px #000000; 
}
.top1-glow p,
.top2-glow p {
    filter: brightness(0.8); 
}

.gamePanel-Center .imagePanel {
	background-color: transparent;
	margin-bottom: 1rem;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	backdrop-filter: none;
	text-align: center;
	position: relative;
	top: -60px; 
}


.logo-container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: -10px; 
	position: relative;
	left: -20px; 
}

.logo-monster {
	width: 83px; 
	height: auto;
	position: relative;
	top: -10px; 
	left: 19px; 
}

.logo-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: -10px; 
}

.logo-agario {
	width: 255px; 
	height: auto;
	position: relative;
	top: 0px; 
	left: 0px; 
}

.logo-team {
	width: 180px; 
	height: auto;
	position: relative;
	top: 0px; 
	left: 0px; 
}

.gamePanel-Center .playPanel .gameMenu {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}
.gamePanel-Center .playPanel .gameMenu .menu-left,
.gamePanel-Center .playPanel .gameMenu .menu-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.gamePanel-Center .playPanel .gameMenu .menu-left button {
	font-size: 25px;
	background-color: #00000000;
	outline: none;
	border: none;
	color: rgb(212, 45, 45);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 999;
	left: -5px;
	top: -5px;
	position: absolute;
}

.gamePanel-Center .playPanel .gameMenu .menu-right .custom-select {
	position: relative;
	width: 222px;
	z-index: 100;
	margin-bottom: 1rem;
}

.servers-container-custom {
	position: relative;
	width: 100%;
	margin-bottom: 1rem;
}

.server-selector {
	width: 100%;
	height: 50px;
	background-color: #FFFFFF;
	border: none;
	outline: none;
	border-radius: 25px;
	padding: 0 40px 0 20px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	font-family: "Fredoka", serif;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.dropdown-arrow {
	position: absolute;
	right: -20px; 
	font-size: 14px; 
	transition: transform 0.3s ease;
	z-index: 3;
	color: inherit; 
}
.server-selector.open .dropdown-arrow {
	transform: rotate(180deg);
}

.server-selector:hover {
	background-color: #f0f0f0;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.server-selector:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.server-selector.bg-global-eu::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/600.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 25px;
	z-index: 0;
}

.server-selector.bg-global-eu {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.server-selector.bg-global-eu::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 25px;
	z-index: 1;
}

.server-selector.bg-global-eu span {
	position: relative;
	z-index: 2;
}

.server-selector.bg-virus-eu::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/500.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 25px;
	z-index: 0;
}

.server-selector.bg-virus-eu {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.server-selector.bg-virus-eu::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 25px;
	z-index: 1;
}

.server-selector.bg-virus-eu span {
	position: relative;
	z-index: 2;
}

.server-selector.bg-virus-usa::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/400.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 25px;
	z-index: 0;
}

.server-selector.bg-virus-usa {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.server-selector.bg-virus-usa::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 25px;
	z-index: 1;
}

.server-selector.bg-virus-usa span {
	position: relative;
	z-index: 2;
}

.server-selector.bg-crazy::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/100.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 25px;
	z-index: 0;
}

.server-selector.bg-crazy {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.server-selector.bg-crazy::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 25px;
	z-index: 1;
}

.server-selector.bg-crazy span {
	position: relative;
	z-index: 2;
}

.server-selector.bg-easy::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/300.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 25px;
	z-index: 0;
}

.server-selector.bg-easy {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.server-selector.bg-easy::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 25px;
	z-index: 1;
}

.server-selector.bg-easy span {
	position: relative;
	z-index: 2;
}

.server-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	max-height: 0; 
	overflow: hidden;
	background: #FFFFFF;
	border-radius: 15px; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	margin-top: 5px;
	z-index: 1000;
	list-style: none;
	padding: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease; 
	opacity: 0;
}

.server-dropdown.show {
	max-height: 300px; 
	opacity: 1;
}

.server-dropdown li {
	padding: 12px 20px;
	font-size: 15px;
	font-weight: bold;
	font-family: "Fredoka", serif;
	color: #000000;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.server-dropdown li:last-child {
	border-bottom: none;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
}

.server-dropdown li:first-child {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.server-dropdown li:first-child {
	background-image: url('../img/600.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.server-dropdown li:first-child::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.server-dropdown li:first-child:hover::before {
	background: rgba(0, 0, 0, 0.1);
}

.server-dropdown li.virus-eu {
	background-image: url('../img/500.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.server-dropdown li.virus-eu::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.server-dropdown li.virus-eu:hover::before {
	background: rgba(0, 0, 0, 0.1);
}

.server-dropdown li.virus-usa {
	background-image: url('../img/400.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.server-dropdown li.virus-usa::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.server-dropdown li.virus-usa:hover::before {
	background: rgba(0, 0, 0, 0.1);
}

.server-dropdown li.crazy {
	background-image: url('../img/100.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.server-dropdown li.crazy::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.server-dropdown li.crazy:hover::before {
	background: rgba(0, 0, 0, 0.1);
}

.server-dropdown li.easy {
	background-image: url('../img/300.gif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.server-dropdown li.easy::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.server-dropdown li.easy:hover::before {
	background: rgba(0, 0, 0, 0.1);
}
.gamePanel-Center .playPanel .gameMenu .menu-right .btn-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140%;
    margin-top: 5px;
	margin-left: -35%;
}
.gamePanel-Center .playPanel .gameMenu .menu-right .btn-container button {
	background-color: #76ff03;
	color: #000000;
	border: none;
	width: 100%;
	height: 56px; 
	border-radius: 80px;
	margin-top: 0;
	transition: all 0.2s;
	font-weight: bold;
	font-size: 20px;
	font-family: "Fredoka", serif;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.gamePanel-Center .playPanel .gameMenu .menu-right .btn-container button:hover {
	background-color: #64dd17;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#play-btn {
	background-color: #76ff03 !important;
}



.gamePanel-Center .playPanel .gameMenu .menu-right .btn-container button:hover {
	background-color: #b4b22c;
}
.gamePanel-Center .playPanel .gameMenu .menu-right .nick-input {
	width: 100%;
	background-color: #FFFFFF; 
	border: none;
	outline: none;
	border-radius: 8px;
	height: 50px;
	padding: 0 12px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: #000000; 
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	font-family: "Fredoka", serif;
	border-radius: 80px;
}

.gamePanel-Center .playPanel .gameMenu .menu-right .nick-input::placeholder {
	color: #888;
	transition: color 0.3s ease;
}

.gamePanel-Center .playPanel .gameMenu .menu-right .nick-input:focus::placeholder {
	color: transparent;
}

.gamePanel-Center .playPanel {
    background: transparent; 
    border-radius: 0;
    padding: 25px;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
    position: relative;
    top: -90px;
}
.gamePanel-Center .instructionsPanel {
	display: none;
}

.gamePanel-Right .serverpanel {
	background: linear-gradient(to bottom, 
		rgba(255, 255, 255, 1) 0%, 
		rgba(255, 255, 255, 1) 60%, 
		rgba(255, 255, 255, 0.8) 85%, 
		rgba(255, 255, 255, 0.4) 100%);
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border: 3px solid rgba(255, 255, 255, 0.6);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 0;
	display: none;
}

.gamePanel-Right .settingPanel {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(190, 170, 220, 0.60) 70%,     
        rgba(150, 110, 190, 0.35) 85%,
        rgba(120, 80, 160, 0.15) 95%,
        rgba(100, 60, 140, 0.05) 100%);
    border-radius: 45px;
    padding: 20px;
    padding-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-top: 3px solid rgba(255, 255, 255, 0.6);      
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    border-right: 3px solid rgba(255, 255, 255, 0.6);
    border-bottom: none;                                
    margin-bottom: 0;
    position: relative;
    top: 0;
	height: 370px;
}
.gamePanel-Right .settingPanel .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    background: #E791D5; 
    border: 3px solid #D946C6; 
    border: none;
	border-radius: 20px;
    padding: 10px 0;
    overflow: hidden;
}
.settingPanel {
    position: relative;
    top: -10px; 
}

/* Panel de servidores */
.serverpanel button.toggle-server {
	--bg-angle: 135deg;
	--bg-start: #1e90ff;
	--bg-end: #004080;
	--shadow-color: rgba(30, 144, 255, 0.5);
	--active-shadow-color: #1e90ff;
	--background: linear-gradient(var(--bg-angle), var(--bg-start), var(--bg-end));
	--background-size: auto;
	--animation: none;

	width: 80%;
	height: 34px;
	border-radius: 10px;
	font-family: "Fredoka", sans-serif !important;
	font-size: 13px !important;
	font-weight: bold !important;
	text-shadow: none !important;
	transition: all 0.2s ease;

	border: none !important;
	color: #ffffff !important;
	background: var(--background);
	background-size: var(--background-size) !important;
	animation: var(--animation) !important;
	box-shadow: 0 0 6px var(--shadow-color) !important;
}

.serverpanel button.toggle-server.active {
	box-shadow: 0 0 14px var(--active-shadow-color) !important;
}

.serverpanel button.toggle-server {
	--bg-start: #1e90ff;
	--bg-end: #004080;
	--shadow-color: rgba(30, 144, 255, 0.5);
	--active-shadow-color: #1e90ff;
}

.serverpanel button.server-ffa {
	--bg-start: #00e68a;
	--bg-end: #00804d;
	--shadow-color: rgba(0, 230, 138, 0.5);
	--active-shadow-color: #00e68a;
}

.serverpanel button.server-virus-1 {
	--bg-start: #9900cc;
	--bg-end: #660099;
	--shadow-color: rgba(153, 0, 204, 0.5);
	--active-shadow-color: #9900cc;
}

.serverpanel button.server-virus-2 {
	--bg-start: #ff6600;
	--bg-end: #cc3300;
	--shadow-color: rgba(255, 102, 0, 0.5);
	--active-shadow-color: #ff6600;
}

.serverpanel button.server-crazy {
	--bg-start: #e6004c;
	--bg-end: #990033;
	--shadow-color: rgba(230, 0, 76, 0.5);
	--active-shadow-color: #e6004c;
}

.serverpanel button.server-team {
	--bg-start: #e69600;
	--bg-end: #e69600;
	--shadow-color: rgba(230, 0, 76, 0.5);
	--active-shadow-color: #e69600;
}

.serverpanel button.server-easy-1 {
	--bg-start: #ffcc00;
	--bg-end: #cc9900;
	--shadow-color: rgba(255, 204, 0, 0.5);
	--active-shadow-color: #ffcc00;
}

.serverpanel button.server-easy-2 {
	--bg-start: #00bfff;
	--bg-end: #0059b3;
	--shadow-color: rgba(0, 191, 255, 0.5);
	--active-shadow-color: #00bfff;
}

@keyframes serverRainbow {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

/* --- Imágenes del menú sin brillo ni efectos --- */
.titlePanel img {
    display: block;
    margin: 0 auto;
}

/* === BEST PLAYER === */
.bestplayer-img {
    width: 280px;       /* tamaño */
    position: relative;
    top: 0;             /* posición vertical */
    left: 0;            /* posición horizontal */
}

/* === SERVER LIST === */
.serverlist-img {
    width: 200px;
    position: relative;
    top: -5px;
    left: -10px;
}

/* === SETTINGS === */
.settings-img {
    width: 200px;
    position: relative;
    top: -5px;
    left: 5px;
}


.special-name-wrapper {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
}

.special-chat-name {
  font-weight: normal;  
  display: inline;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1em;
  color: inherit;  
  text-shadow: none;  
}

.special-emoji {
  display: inline;
  margin-left: 3px;
}


@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#emoji-btn {
  padding: 6px 12px;
  font-size: 13px;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  color: rgb(0, 0, 0);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: "Fredoka", sans-serif;
  font-weight: bold;
  backdrop-filter: blur(5px);
  pointer-events: auto;
  margin-top: 20px; 
}

#emoji-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
#emoji-panel {
  position: absolute;

  transform: translate(0px, 35px);

  width: 260px;
  height: 300px;
  background: rgba(0,0,0,0);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
  display: none;

  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow-y: auto;
  z-index: 9999;
}

#emoji-panel img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s;
}

#emoji-panel img:hover {
  transform: scale(1.2);
}
.death-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.death-screen.show {
    opacity: 1;
}

.death-screen.hidden {
    display: none !important;
}

.death-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    padding: 10px 10px 180px 10px; 
    max-width: 250px; 
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
    transform: none !important;
    margin: 0 auto !important;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.death-header {
    text-align: center;
    margin-bottom: 5px; 
    border-bottom: 1px solid rgba(200, 200, 200, 0.3); 
    padding-bottom: 3px; 
}

.death-header h1 {
    margin: 0;
    font-size: 14px; 
    font-weight: 700;
    color: #333333;
    text-shadow: none;
    letter-spacing: 0.8px;
}

.death-stats {
    margin-bottom: 10px; 
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px; 
    margin-bottom: 3px; 
}

.stat-item {
    background: rgba(240, 240, 240, 0.5);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 5px; 
    padding: 4px; 
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(230, 230, 230, 0.7);
    transform: translateY(-1px); 
}

.stat-icon {
    font-size: 15px; 
    margin-bottom: 1px; 
}

.stat-label {
    font-size: 7px; 
    color: #888888;
    margin-bottom: 1px; 
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 12px; 
    font-weight: 700;
    color: #333333;
    text-shadow: none;
}

.death-social {
    background: rgba(240, 240, 240, 0.3);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 6px; 
    padding: 5px; 
    margin-bottom: 5px; 
}

.death-social h3 {
    margin: 0 0 3px 0; 
    font-size: 9px; 
    color: #00d9ff;
    text-align: center;
    letter-spacing: 0.3px;
}

.social-buttons {
    display: flex;
    gap: 4px; 
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 3px; 
    padding: 6px 28px; 
    border-radius: 5px; 
    text-decoration: none;
    font-size: 8px; 
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 12px; 
    height: 12px;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.instagram:hover {
    transform: scale(1.05);
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.facebook:hover {
    transform: scale(1.05);
}

.continue-btn {
    width: 100%;
    padding: 6px; 
    background: linear-gradient(135deg, #ff4081 0%, #ff1744 100%);
    border: none;
    border-radius: 5px; 
    font-size: 11px; 
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px; 
    box-shadow: 0 2px 8px rgba(255, 64, 129, 0.4);
    margin-top: 0;
}

.continue-btn:hover {
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.6);
}

.continue-btn:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 600px) {
    .death-container {
        padding: 8px 8px 16px 8px;
        max-width: 95%;
    }
    
    .death-header h1 {
        font-size: 12px;
    }
    
    .stat-row {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
.server-select {
    position: relative;
    width: 100%;
    z-index: 100;
    margin: 8px 0;
}

#selected-server {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #1e90ff, #004080);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 13px;
    font-family: "Fredoka", serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

#selected-server:hover {
    background: linear-gradient(135deg, #1c7ed6, #003366);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

#server-icon {
    font-size: 16px;
}

#server-text {
    flex: 1;
    text-align: left;
}

#server-dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

#selected-server.open #server-dropdown-icon {
    transform: rotate(180deg);
}

#server-list {
    position: absolute;
    top: 100%;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-top: 5px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#server-list.show {
    display: block;
}

#server-list li {
    padding: 12px 15px;
    list-style: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: "Fredoka", serif;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#server-list li:last-child {
    border-bottom: none;
}

#server-list li:hover {
    background: rgba(30, 144, 255, 0.2);
    padding-left: 20px;
}

#server-list li.active {
    background: rgba(30, 144, 255, 0.3);
    border-left: 3px solid #1e90ff;
}


.gamePanel-Right .settingPanel .toggle-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1px 18px; 
    font-family: "Fredoka", sans-serif;
    color: #000000;
    text-shadow: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 12px;
    min-height: 5px; 
    box-shadow: none;
    transform: none;
    outline: none;
}

.gamePanel-Right .settingPanel .toggle-card:hover {
    background: rgba(155, 89, 182, 0.15);
    transform: none;
    box-shadow: none;
}

.gamePanel-Right .settingPanel .toggle-card {
    border: none;
}

.gamePanel-Right .settingPanel .toggle-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9b59b6;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    padding: 0;
}

.gamePanel-Right .settingPanel .toggle-card input[type="checkbox"]:focus,
.gamePanel-Right .settingPanel .toggle-card input[type="checkbox"]:active {
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
    border: 2px solid #9b59b6;
}

.gamePanel-Right .settingPanel .toggle-card input[type="checkbox"]:checked {
    background-color: #9b59b6;
}
.gamePanel-Right .settingPanel .toggle-card input[type="checkbox"]:checked::after {
    content: "✔";
    color: #ffffff;
    font-size: 13px;
    position: absolute;
    top: 1px;
    left: 3px;
}

.gamePanel-Right .settingPanel .label-text,
.gamePanel-Right .settingPanel .label-text-white-glow {
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: none;
    font-family: "Fredoka", sans-serif;
}

.gamePanel-Right .settingPanel #spectate-btn {
    width: 50%; 
    height: 45px;
    background: linear-gradient(135deg, #e2ce19, #ecc30b);
    color: #000000;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    font-family: "Fredoka", serif;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin: 15px auto 0 auto; 
    text-transform: uppercase;
    display: block;
}

.gamePanel-Right .settingPanel #spectate-btn:hover {
    background: linear-gradient(135deg, #fdd835, #f9a825);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.gamePanel-Right #halloffame-btn {
    width: 85%;
    height: 45px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #ece0f5 75%, #d6c0ea 100%);
    color: #5c3a75;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.02em;
    font-weight: bold;
    font-family: "Fredoka", serif;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin: 16px auto 0 auto;
    text-transform: uppercase;
    display: block;
}

.gamePanel-Right #halloffame-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #ddc9ee 75%, #c2a3dd 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.toggle-server {
	background: rgba(30, 30, 30, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	text-shadow: none;
	box-shadow: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-server:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 15px rgba(0, 255, 255, 0.2);
}

.server-toggles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

#gifBtn {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: white;
	font-size: 13px;
	font-weight: bold;
	font-family: "Fredoka", sans-serif;
	border-radius: 6px;
	cursor: pointer;
	padding: 3px 6px;
	transition: background 0.2s;
	margin-left: 0px;
	pointer-events: auto;
}

#gifBtn:hover {
	background: rgba(0, 0, 0, 0.4);
}

#gifPanel {
    position: fixed;
    bottom: 75px;
    left: 400px;
    width: 195px;
    max-height: 210px;
    background: rgba(0, 0, 0, 0.445);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 8px;
    overflow-y: auto;
    z-index: 99999;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

#gifPanel.hidden {
    display: none;
    pointer-events: none;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 55px);
    gap: 6px;
    justify-content: center;
    padding: 4px;
}

.gif-item {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.11);
    padding: 3px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.gif-item:hover {
    transform: scale(1.1);
    border-color: #f7f6f1ad;
    box-shadow: 0 0 10px rgba(168, 168, 165, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.chat-gif {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 3px;
    display: inline-block;
    image-rendering: auto;
    border-radius: 4px;
}

.msg .chat-gif {
    vertical-align: text-bottom;
}

#gifPanel::-webkit-scrollbar {
    width: 4px;
}

#gifPanel::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

#gifPanel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#gifPanel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.special-chat-name {
  font-weight: normal;
  display: inline;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1em;
  color: inherit;
  position: relative;
  z-index: 1;
}
.special-chat-name::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background-image: url('../img/sparkle_pink.gif');
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.social-buttons-container {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 15px auto 0 auto;
	width: 100%;
}

.social-btn-mini {
	width: auto;
	min-width: 10px;
	height: 37px;
	padding: 8px 16px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	flex-shrink: 0;
	font-family: "Fredoka", sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
}

.social-btn-mini span {
	white-space: nowrap;
}

.social-btn-mini:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-btn-mini svg {
	width: 18px;
	height: 18px;
}

/* Instagram */
.instagram-btn {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #FFFFFF;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #a0167a 100%);
    color: #FFFFFF;
}

/* Discord */
.discord-btn {
	background: linear-gradient(135deg, #5865F2, #4752C4);
	color: #FFFFFF;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752C4, #3C45A5);
    color: #FFFFFF;
}

/* Facebook */
.facebook-btn {
	background: linear-gradient(135deg, #1877f2, #0e5fc7);
	color: #FFFFFF;
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #0e5fc7, #0a4da3);
    color: #FFFFFF;
}
.contact-email {
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: #000000;
	margin: 30px 0 0 0;
	font-family: "Fredoka", sans-serif;
	padding: 0 10px;
	word-break: break-word;
}

.gamePanel-Left .scorePanel .scoreboard-container:has(li:hover) {
    overflow: visible;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li {
    transition: transform     0.15s ease,
                box-shadow    0.2s ease,
                background-color 0.2s ease;
    border-radius: 8px;
    position: relative;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li:hover {
    transform: scale(1.05);
    background-color: rgba(100, 60, 200, 0.20);
    box-shadow: 0 4px 16px rgba(120, 70, 255, 0.40),
                0 0 0 2px rgba(140, 90, 255, 0.80);
    z-index: 10;
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top1-glow:hover {
    background-color: rgba(255, 200, 0, 0.22);
    box-shadow: 0 4px 16px rgba(255, 200, 0, 0.45),
                0 0 0 2px rgba(255, 215, 0, 0.90);
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top2-glow:hover {
    background-color: rgba(0, 188, 212, 0.20);
    box-shadow: 0 4px 16px rgba(0, 210, 235, 0.40),
                0 0 0 2px rgba(0, 210, 235, 0.85);
}

.gamePanel-Left .scorePanel .scoreboard-container ul li.top3-glow:hover {
    background-color: rgba(211, 22, 85, 0.2);
    box-shadow: 0 4px 16px rgba(255, 80, 140, 0.40),
                0 0 0 2px rgba(255, 80, 140, 0.85);
}
.lang-selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    margin-left: -64px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 5px;
    border: 2px solid #d0d0d0;
    width: fit-content;
}

.lang-flag {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.15s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lang-flag .fi {
    width: 35px;
    height: 25px;
    border-radius: 4px;
    display: block;
}

.lang-flag:hover {
    transform: scale(1.15);
}

.lang-flag.lang-active {
    transform: scale(1.1);
}
@keyframes rainbowGlow {
	0% { color: #ff0040; }
	16% { color: #ff8c00; }
	33% { color: #ffee00; }
	50% { color: #00ff66; }
	66% { color: #00ccff; }
	83% { color: #b967ff; }
	100% { color: #ff0040; }
}

.leaderboard-me-rainbow {
	animation: rainbowGlow 3s linear infinite;
	font-weight: bold;
}