html {
	background-color: #000000;
	scrollbar-color: #7c3aed #000000;
	scroll-behavior: smooth;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	--bg: transparent;
	--text: #f3e8ff;
	--link: #b794f6;
	--link-hover: #d8b4fe;
	--glow: #a855f7;
	--nav-bg: rgba(0, 0, 0, 0.65);
	--border: rgba(168, 85, 247, 0.35);
	--active-bg: #7c3aed;
	--active-text: #ffffff;
	--card-bg: rgba(255, 255, 255, 0.04);
	--card-border: rgba(255, 255, 255, 0.1);
	--card-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	--font: system-ui, -apple-system, 'Segoe UI', sans-serif;
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	background: var(--bg);
	background-size: 300% 300%;
	background-attachment: fixed;
	font-family: var(--font);
}

body.theme-roblox {
	--bg: linear-gradient(135deg, #1d4ed8, #7c3aed, #c4b5fd, #ffffff, #7c3aed, #1d4ed8);
	--text: #ffffff;
	--link: #ffffff;
	--link-hover: #dbeafe;
	--glow: #93c5fd;
	--nav-bg: rgba(20, 12, 60, 0.65);
	--border: rgba(255, 255, 255, 0.3);
	--active-bg: #ffffff;
	--active-text: #1d4ed8;
	--card-bg: rgba(20, 12, 60, 0.6);
	--card-border: rgba(255, 255, 255, 0.35);
	--card-shadow: 0 8px 40px rgba(29, 78, 216, 0.5);
	--font: 'Luckiest Guy', cursive;
	font-synthesis: none;
	animation: drift 16s ease-in-out infinite alternate;
}

body.theme-discord {
	--bg: linear-gradient(160deg, #000000, #0b1437, #14235c, #000000);
	--text: #ffffff;
	--link: #9db4ff;
	--link-hover: #ffffff;
	--glow: #3b5bdb;
	--nav-bg: rgba(0, 0, 0, 0.65);
	--border: rgba(255, 255, 255, 0.2);
	--active-bg: #ffffff;
	--active-text: #0b1437;
	--card-bg: rgba(255, 255, 255, 0.05);
	--card-border: rgba(255, 255, 255, 0.2);
	--card-shadow: 0 8px 40px rgba(20, 35, 92, 0.8);
	--font: 'Cinzel', serif;
	animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

::selection {
	background: var(--active-bg);
	color: var(--active-text);
}

a, a:visited {
	color: var(--link);
}

a:hover {
	color: var(--link-hover);
	text-shadow: 0 0 8px var(--glow);
}

a:focus-visible {
	outline: 2px solid var(--link-hover);
	outline-offset: 3px;
}

#stars {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: -1;
}

nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	padding: 0.8rem 1rem;
	background: var(--nav-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

.tabs {
	display: flex;
	gap: 0.3rem;
	max-width: 100%;
	padding: 0.3rem;
	overflow-x: auto;
	scrollbar-width: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.tabs::-webkit-scrollbar {
	display: none;
}

a.tab, a.tab:visited {
	flex: 0 0 auto;
	padding: 0.55rem 1.3rem;
	border-radius: 999px;
	background: transparent;
	color: #e8e8f2;
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

a.tab:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	text-shadow: none;
}

a.tab.active, a.tab.active:visited, a.tab.active:hover {
	background: var(--active-bg);
	color: var(--active-text);
	box-shadow: 0 0 16px var(--glow);
}

a.tab:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

main {
	display: flex;
	justify-content: center;
	padding: 2.5rem 1rem 4rem;
}

.card {
	width: min(720px, 100%);
	padding: 2.5rem 2rem;
	text-align: center;
	border-radius: 20px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

h1 {
	display: inline-block;
	margin: 0 0 1.25rem;
	padding: 0.5rem 1.75rem;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: clamp(1.8rem, 5vw, 2.6rem);
	letter-spacing: 0.04em;
	border: 2px solid var(--active-bg);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	text-shadow: 0 0 18px var(--glow);
	box-shadow: 0 0 14px var(--glow);
}

p {
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

a.button, a.button:visited, a.button:hover {
	display: inline-block;
	padding: 0.75rem 1.6rem;
	border-radius: 999px;
	background: var(--active-bg);
	color: var(--active-text);
	font-weight: bold;
	text-decoration: none;
	text-shadow: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 18px var(--glow);
}

@media (max-width: 520px) {
	.card {
		padding: 2rem 1.25rem;
	}

	a.tab, a.tab:visited {
		padding: 0.5rem 1rem;
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.theme-roblox,
	body.theme-discord {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}

	a.tab, a.button {
		transition: none;
	}
}