html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: "Georgia", serif;
	background: radial-gradient(circle at top, #0a0a0f, #050507);
	color: #eae6ff;
	overflow-x: hidden;

	min-height: 100vh;

	display: flex;
	flex-direction: column;
}

/* AURA */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 30% 20%, rgba(123, 63, 228, 0.15), transparent 40%),
		radial-gradient(circle at 70% 60%, rgba(92, 255, 157, 0.10), transparent 45%),
		radial-gradient(circle at 50% 90%, rgba(62, 199, 255, 0.08), transparent 50%);
	pointer-events: none;
	z-index: 0;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: url("https://www.transparenttextures.com/patterns/stardust.png");
	opacity: 0.15;
	pointer-events: none;
	animation: mistMove 60s linear infinite;
	z-index: 0;
}

@keyframes mistMove {
	from { transform: translateY(0); }
	to { transform: translateY(-200px); }
}

footer {
	text-align: center;
	padding: 25px 25px;
	font-size: 0.9em;
	color: #666a9a;
	text-shadow: 0 0 6px rgba(92, 255, 157, 0.1);
	
	align-items: center;
	justify-content: center;
}


footer::before {
	content: "";
	display: block;
	width: 180px;
	height: 1px;
	margin: 0 auto 10px;
	background: linear-gradient(90deg, transparent, #7b3fe4, #3ec7ff, #5cff9d, transparent);
	opacity: 0.5;
}

.container {
	text-align: center;
	padding: 25px 20px;

	flex: 1;

	display: flex;
	align-items: center;
	justify-content: center;
}

header {
	text-align: center;
	padding: 20px 20px 20px;
}

/* TITRE */
h1 {
	font-size: 3.5em;
	margin: 0;
	display: inline-block;
	width: fit-content;

	background: linear-gradient(
		90deg,
		#7b3fe4 0%,
		#3ec7ff 25%,
		#5cff9d 50%,
		#3ec7ff 75%,
		#7b3fe4 100%
	);

	background-size: 200% 100%;
	background-position: 0% 50%;

	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;

	text-shadow:
		0 0 20px rgba(123, 63, 228, 0.6),
		0 0 25px rgba(92, 255, 157, 0.5);

	animation: gradientFlow 8s linear infinite;
}

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

h2 {
	color: #9fa6ff;
	font-weight: normal;
	margin-top: 10px;
	text-shadow: 0 0 10px rgba(92, 255, 157, 0.15);
}

.logo {
	width: 140px;
	margin: 20px auto;
	display: block;
	filter: drop-shadow(0 0 15px rgba(92, 255, 157, 0.6));
}

/* CARD */
.card {
	display: inline-block;
	padding: 35px;
	border-radius: 15px;
	background: rgba(20, 20, 40, 0.6);
	border: 1px solid rgba(123, 63, 228, 0.4);
	box-shadow:
		0 0 20px rgba(123, 63, 228, 0.3),
		0 0 40px rgba(62, 199, 255, 0.2);
	backdrop-filter: blur(6px);
	max-width: 550px;

	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 0 25px rgba(123, 63, 228, 0.4),
		0 0 60px rgba(62, 199, 255, 0.25);
}

.construction {
	font-size: 1.6em;
	margin-bottom: 15px;
	color: #5cff9d;
	text-shadow:
		0 0 10px rgba(92, 255, 157, 0.6),
		0 0 20px rgba(92, 255, 157, 0.2);
}

.description {
	color: #cfd3ff;
	line-height: 1.6;
	text-shadow: 0 0 8px rgba(92, 255, 157, 0.12);
}

.dice {
	font-size: 2.5em;
	margin-top: 20px;
	animation: float 6s ease-in-out infinite;
	text-shadow:
		0 0 15px rgba(62, 199, 255, 0.8),
		0 0 20px rgba(92, 255, 157, 0.25);
}

@keyframes float {
	0%,100%  { transform: translateY(0); }
	50% { transform: translateY(12px); }
}

/* CURSOR */
.cursor-glow {
	position: fixed;
	width: 240px;
	height: 240px;
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(92,255,157,0.20),
		rgba(123,63,228,0.10),
		transparent 60%
	);
	filter: blur(30px);
	transform: translate(-50%, -50%);
	z-index: 9999;
}

@media (max-width: 768px) {
	.cursor-glow {
		display: none;
	}
}

/* TRIGGER modal*/
.legend-trigger {
	cursor: pointer;
}

/* MODAL */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;

	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.modal.active {
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	background: rgba(20, 20, 40, 0.85);
	border: 1px solid rgba(123, 63, 228, 0.5);
	box-shadow: 0 0 30px rgba(123, 63, 228, 0.4);
	border-radius: 15px;
	padding: 25px;
	max-width: 600px;
	color: #eae6ff;
	position: relative;
}

.modal-content h3 {
	margin-top: 0;
	color: #5cff9d;
	text-shadow: 0 0 10px rgba(92,255,157,0.4);
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	cursor: pointer;
	font-size: 1.2em;
	color: #9fa6ff;
}