/* Highscore Section */
#highscore {
	display: none;
	background: var(--base-color-dark);
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	position: relative;
	padding: 2rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#highscore.show {
	display: flex;
}

/* Highscore Grid - Versetzte 4-5-4 Anordnung */
#highscore-grid {
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
	flex: 1;
	width: 100%;
}

.highscore-row {
	display: flex;
	justify-content: center;
	gap: 2rem;
	height: 27%;
}

/* Footer mit Button */
.highscore-footer {
	text-align: center;
	width: 100%;
	margin-bottom: 3%;
}

/* Leuchteffekt für den aktuellen Charakter - separates Element */
.highscore-glow-bg {
	position: absolute;
	left: -10px;
	right: -10px;
	bottom: 15%;
	aspect-ratio: 1;
	background: radial-gradient(circle,
			rgb(245 223 255 / 45%) 0%,
			rgb(209 136 255 / 60%) 35%,
			rgb(170 29 255 / 20%) 70%,
			rgba(161, 59, 224, 0) 100%);
	border-radius: 50%;
	pointer-events: none;
	animation: glowPulse 2s ease-in-out infinite;
}

/* Stelle sicher dass highscore-entry position: relative hat für absolute positioning */
.highscore-entry {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 1rem;
	width: 12%;
	flex-shrink: 0;
	position: relative;
}

/* Avatar als IMG Element */
.highscore-avatar {
	position: absolute;
	height: 132%;
}

.highscore-entry:hover .highscore-score {
	transform: translateY(-2px);
}

/* Score-Kreis Styling */
.highscore-score {
	background: var(--co2-bar-positive);
	color: #fff;
	border: solid 5px #fff;
	border-radius: 100%;
	width: 60px;
	height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 1.6em;
	font-weight: bold;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	position: relative;
	z-index: 2;
}

/* Leere Slots */
.highscore-entry.empty {
	background: rgba(255, 255, 255, 0.05);
	border: 2px dashed rgba(255, 255, 255, 0.2);
	opacity: 0.5;
}

.highscore-score-placeholder {
	background: rgba(255, 255, 255, 0.1);
	border: 2px dashed rgba(255, 255, 255, 0.2);
	border-radius: 100%;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.3);
	font-size: 1.8em;
}

/* Animation für neue Einträge */
@keyframes scoreEntryAnimation {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.9);
	}

	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.highscore-entry.new {
	animation: scoreEntryAnimation 0.6s ease-out;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
	0% {
		opacity: 0.4;
		transform: scale(0.95);
	}

	50% {
		opacity: 1;
		transform: scale(1.15);
	}

	100% {
		opacity: 0.4;
		transform: scale(0.95);
	}
}