

:root {
	--bg-color: #040406;
	--card-bg: rgba(14, 14, 22, 0.45);
	--card-border: rgba(255, 255, 255, 0.08);
	--card-blur: 24px;
	--discord-card-bg: rgba(18, 18, 28, 0.55);
	--discord-card-border: rgba(255, 255, 255, 0.07);
	--text-main: #ffffff;
	--text-sub: rgba(255, 255, 255, 0.65);
	--text-muted: rgba(255, 255, 255, 0.4);
	--accent-glow: rgba(255, 255, 255, 0.8);
	--pink-badge-bg: rgba(235, 75, 145, 0.18);
	--pink-badge-border: rgba(235, 75, 145, 0.45);
	--pink-badge-text: #ff7ebb;
	--purple-badge-bg: rgba(145, 70, 255, 0.2);
	--purple-badge-border: rgba(145, 70, 255, 0.45);
	--purple-badge-text: #a970ff;

	
	--status-online: #23a55a;
	--status-idle: #f0b232;
	--status-dnd: #f23f43;
	--status-offline: #80848e;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
}

body {
	font-family:
		'Outfit',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	background-color: var(--bg-color);
	color: var(--text-main);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-x: hidden;
	position: relative;
}


#spaceCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1;
	pointer-events: none;
}


.bg-vignette {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background:
		radial-gradient(
			ellipse 130% 75% at 50% -10%,
			rgba(210, 210, 225, 0.48) 0%,
			rgba(110, 110, 125, 0.18) 45%,
			rgba(0, 0, 0, 0) 75%
		),
		linear-gradient(
			to bottom,
			rgba(150, 150, 170, 0.14) 0%,
			transparent 60%,
			rgba(0, 0, 0, 0.85) 100%
		);
	z-index: 2;
	pointer-events: none;
}


.wrapper {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 600px;
	padding: 2rem 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bio-card {
	width: 100%;
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
	animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}


.avatar-section {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.avatar-ring-container {
	position: relative;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.avatar-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 2;
	border: none;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
	transition: transform 0.4s ease;
}

.avatar-img:hover {
	transform: scale(1.04);
}

.avatar-decoration-img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 142px;
	height: 142px;
	pointer-events: none;
	z-index: 4;
}


.header-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.name-tooltip-wrapper {
	position: relative;
	display: inline-block;
}

.profile-name {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: #ffffff;
	text-shadow:
		0 0 20px rgba(255, 255, 255, 0.7),
		0 0 40px rgba(255, 255, 255, 0.3);
}

.uid-tooltip {
	position: absolute;
	bottom: 115%;
	left: 50%;
	transform: translateX(-50%) translateY(8px) scale(0.9);
	background: rgba(18, 18, 26, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.35rem 0.95rem;
	border-radius: 25px;
	box-shadow:
		0 10px 25px rgba(0, 0, 0, 0.65),
		0 0 15px rgba(255, 255, 255, 0.1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
	z-index: 30;
}

.name-tooltip-wrapper:hover .uid-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
}

.profile-sub {
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--text-sub);
	letter-spacing: 0.2px;
}


.discord-lanyard-card {
	width: 100%;
	max-width: 360px;
	background: var(--discord-card-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--discord-card-border);
	border-radius: 20px;
	padding: 1.1rem 1.3rem;
	display: flex;
	align-items: center;
	gap: 1.1rem;
	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.5),
		inset 0 1px 1px rgba(255, 255, 255, 0.1);
	transition:
		transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.discord-lanyard-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow:
		0 14px 40px rgba(0, 0, 0, 0.6),
		0 0 20px rgba(255, 255, 255, 0.08);
}

.card-avatar-wrapper {
	position: relative;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
}

#cardAvatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: none;
}

.status-dot {
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid #14141e;
	transition: background-color 0.3s ease;
}

.status-dot.online {
	background-color: var(--status-online);
	box-shadow: 0 0 8px var(--status-online);
}
.status-dot.idle {
	background-color: var(--status-idle);
	box-shadow: 0 0 8px var(--status-idle);
}
.status-dot.dnd {
	background-color: var(--status-dnd);
	box-shadow: 0 0 8px var(--status-dnd);
}
.status-dot.offline {
	background-color: var(--status-offline);
}

.card-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	overflow: visible;
	text-align: left;
	width: 100%;
}

.card-user-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	position: relative;
	overflow: visible;
}

.card-username {
	font-size: 1.05rem;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: -0.2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.card-badges {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	position: relative;
	overflow: visible;
}

.clan-badge-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	vertical-align: middle;
	border-radius: 3px;
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.18rem 0.6rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.2;
	gap: 0.35rem;
}

.pink-badge {
	background: rgba(45, 45, 60, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.legacy-badge-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	overflow: visible;
}

.legacy-badge {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	border-radius: 50%;
	background: #1abc9c;
	color: #0b1512;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 0 10px rgba(26, 188, 156, 0.4);
	border: none;
	padding: 0;
}

.legacy-badge:hover {
	background: #2ecc71;
	color: #041009;
	transform: scale(1.1);
	box-shadow: 0 0 14px rgba(46, 204, 113, 0.7);
}

.legacy-tooltip-popup {
	position: absolute;
	left: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) translateX(-8px) scale(0.92);
	width: 205px;
	background: rgba(18, 18, 28, 0.88);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 16px;
	padding: 1.1rem 1rem 0.95rem 1rem;
	box-shadow:
		0 16px 45px rgba(0, 0, 0, 0.85),
		0 0 25px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 100;
	border: 1px solid rgba(255, 255, 255, 0.12);
}


.legacy-tooltip-popup::after {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 7px 6px 0;
	border-style: solid;
	border-color: transparent rgba(18, 18, 28, 0.88) transparent transparent;
}

.legacy-badge-wrapper:hover .legacy-tooltip-popup {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0) scale(1);
}

.legacy-popup-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1abc9c;
	color: #0b1512;
	font-size: 1.6rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.6rem;
	box-shadow: 0 0 16px rgba(26, 188, 156, 0.5);
}

.legacy-popup-title {
	font-size: 0.9rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.5px;
	line-height: 1.15;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.legacy-popup-tag {
	font-size: 0.85rem;
	font-weight: 500;
	color: #b5bac1;
	letter-spacing: 0.2px;
}

.card-status-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: var(--text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.status-emoji {
	font-size: 0.95rem;
}

.status-text {
	font-weight: 400;
	overflow: hidden;
	text-overflow: ellipsis;
}


.spotify-activity {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.2rem;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
}

.spotify-bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 12px;
}

.spotify-bars span {
	width: 3px;
	background-color: #1db954;
	border-radius: 2px;
	animation: soundBar 1.2s infinite ease-in-out alternate;
}

.spotify-bars span:nth-child(1) {
	height: 40%;
	animation-delay: 0.1s;
}
.spotify-bars span:nth-child(2) {
	height: 100%;
	animation-delay: 0.3s;
}
.spotify-bars span:nth-child(3) {
	height: 60%;
	animation-delay: 0.5s;
}

@keyframes soundBar {
	0% {
		height: 20%;
	}
	100% {
		height: 100%;
	}
}

.spotify-info {
	display: flex;
	flex-direction: column;
	font-size: 0.78rem;
	line-height: 1.2;
	overflow: hidden;
}

.spotify-track {
	color: #1db954;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spotify-artist {
	color: var(--text-muted);
	font-weight: 400;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


.social-links {
	position: fixed;
	left: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	z-index: 25;
}

.social-btn {
	width: auto;
	min-width: 48px;
	max-width: 48px;
	height: 48px;
	padding: 0 13px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.95);
	color: #08080c;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-decoration: none;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
	transition:
		max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		background 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.social-btn:hover {
	max-width: 180px;
	padding: 0 1.15rem;
	transform: translateX(4px) scale(1.08);
	background: #ffffff;
	box-shadow:
		0 8px 25px rgba(255, 255, 255, 0.4),
		0 0 15px rgba(255, 255, 255, 0.6);
}

.social-btn:active {
	transform: translateX(1px) scale(0.98);
}

.social-btn svg {
	flex-shrink: 0;
}

.social-btn .btn-text {
	max-width: 0;
	opacity: 0;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: -0.2px;
	white-space: nowrap;
	overflow: hidden;
	margin-left: 0;
	transition:
		max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.25s ease,
		margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover .btn-text {
	max-width: 120px;
	opacity: 1;
	margin-left: 0.5rem;
}


.view-counter {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(18, 18, 26, 0.65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.55rem;
	border-radius: 30px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	height: 38px;
	width: 38px;
}

.view-counter:hover {
	width: auto;
	padding: 0.55rem 0.95rem;
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow:
		0 8px 25px rgba(0, 0, 0, 0.65),
		0 0 15px rgba(255, 255, 255, 0.08);
}

.view-counter svg {
	color: rgba(255, 255, 255, 0.85);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.view-counter:hover svg {
	transform: scale(1.1);
}

.view-count-number {
	max-width: 0;
	opacity: 0;
	white-space: nowrap;
	font-size: 0.88rem;
	font-weight: 600;
	color: #ffffff;
	margin-left: 0;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.view-counter:hover .view-count-number {
	max-width: 120px;
	opacity: 1;
	margin-left: 0.45rem;
}


@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


@media (max-width: 600px) {
	.wrapper {
		padding: 1.5rem 1rem;
	}

	.profile-name {
		font-size: 1.95rem;
	}

	.profile-sub {
		font-size: 0.88rem;
	}

	.discord-lanyard-card {
		padding: 1rem;
	}

	.social-links {
		left: 1rem;
		top: 2.2rem;
		transform: none;
		gap: 0.65rem;
	}

	.social-btn {
		width: auto;
		min-width: 44px;
		max-width: 44px;
		height: 44px;
		padding: 0 11px;
	}

	.social-btn:hover {
		max-width: 160px;
		padding: 0 0.95rem;
	}

	.view-counter {
		bottom: 1rem;
		left: 1rem;
	}
}
