.bgg-hof-widget,
.bgg-hof-widget * {
	box-sizing: border-box;
}

.bgg-hof-widget {
	--bgg-hof-surface: #09111d;
	--bgg-hof-surface-2: #0c1625;
	--bgg-hof-surface-3: #111d2e;
	--bgg-hof-border: rgba(126, 147, 198, 0.16);
	--bgg-hof-text: #f4f7ff;
	--bgg-hof-muted: #8b9abd;
	--bgg-hof-gold: #ffbf40;
	--bgg-hof-orange: #ff6a44;
	--bgg-hof-blue: #4fa0ff;
	position: relative;
	width: 100%;
	margin: 0;
	color: var(--bgg-hof-text);
	font-family: inherit;
	container-type: inline-size;
}

.bgg-hof-shell {
	position: relative;
	padding: 18px 14px 0;
	border: 1px solid var(--bgg-hof-border);
	border-radius: 26px;
	background:
		radial-gradient(circle at top center, rgba(255, 190, 75, 0.08), transparent 20%),
		radial-gradient(circle at 0 0, rgba(53, 104, 255, 0.16), transparent 26%),
		linear-gradient(180deg, #0a1120 0%, #08101b 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 18px 42px rgba(0, 0, 0, 0.24);
	overflow: hidden;
}

.bgg-hof-shell::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255, 255, 255, 0.035);
	border-radius: 20px;
	pointer-events: none;
}

.bgg-hof-header {
	position: relative;
	z-index: 1;
	padding: 0 0 18px;
	text-align: center;
}

.bgg-hof-crown-wrap {
	margin-bottom: 10px;
}

.bgg-hof-crown {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	border: 1px solid rgba(255, 191, 64, 0.28);
	background: linear-gradient(180deg, rgba(255, 191, 64, 0.14), rgba(255, 191, 64, 0.04));
	color: var(--bgg-hof-gold);
	font-size: 22px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bgg-hof-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(26px, 7.2cqi, 34px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.bgg-hof-subtitle {
	display: inline-block;
	max-width: 260px;
	margin: 10px auto 0;
	color: var(--bgg-hof-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-wrap: balance;
}

.bgg-hof-list {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 12px;
}

.bgg-hof-item {
	--bgg-hof-accent: #95a1bc;
	--bgg-hof-accent-rgb: 149, 161, 188;
}

.bgg-hof-item--rank-1 {
	--bgg-hof-accent: var(--bgg-hof-gold);
	--bgg-hof-accent-rgb: 255, 191, 64;
}

.bgg-hof-item--rank-2 {
	--bgg-hof-accent: var(--bgg-hof-orange);
	--bgg-hof-accent-rgb: 255, 106, 68;
}

.bgg-hof-item--rank-3 {
	--bgg-hof-accent: var(--bgg-hof-blue);
	--bgg-hof-accent-rgb: 79, 160, 255;
}

.bgg-hof-item-inner {
	position: relative;
	display: grid !important;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	align-items: center !important;
	padding: 12px;
	border: 1px solid rgba(var(--bgg-hof-accent-rgb), 0.18);
	border-radius: 22px;
	background:
		linear-gradient(90deg, rgba(var(--bgg-hof-accent-rgb), 0.06) 0%, rgba(var(--bgg-hof-accent-rgb), 0.015) 28%, rgba(10, 17, 31, 0.96) 100%),
		linear-gradient(180deg, #0b1321 0%, #09111b 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	overflow: hidden;
}

.bgg-hof-item--default .bgg-hof-item-inner {
	border-color: rgba(118, 136, 176, 0.14);
	background:
		linear-gradient(180deg, #0b1321 0%, #08101a 100%);
}

.bgg-hof-rank-col {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.bgg-hof-rank-badge {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 50px;
	clip-path: polygon(50% 0%, 92% 18%, 92% 74%, 50% 100%, 8% 74%, 8% 18%);
	border: 1px solid rgba(var(--bgg-hof-accent-rgb), 0.54);
	background:
		linear-gradient(180deg, rgba(var(--bgg-hof-accent-rgb), 0.34), rgba(var(--bgg-hof-accent-rgb), 0.08)),
		#111a29;
	box-shadow:
		0 0 0 4px rgba(var(--bgg-hof-accent-rgb), 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bgg-hof-rank-number {
	position: relative;
	z-index: 1;
	color: #ffffff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
}

.bgg-hof-item--default .bgg-hof-rank-badge {
	width: 40px;
	height: 40px;
	clip-path: none;
	border-radius: 50%;
	border-color: rgba(118, 136, 176, 0.2);
	background: rgba(126, 142, 173, 0.11);
	box-shadow: none;
}

.bgg-hof-item--default .bgg-hof-rank-number {
	color: #9ba8c5;
	font-size: 18px;
}

.bgg-hof-member-col {
	min-width: 0;
	display: grid;
	gap: 10px;
}

.bgg-hof-member-link {
	display: flex !important;
	align-items: center !important;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.bgg-hof-member-link:hover,
.bgg-hof-member-link:focus {
	color: inherit;
	text-decoration: none;
}

.bgg-hof-avatar {
	position: relative;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	padding: 2px;
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(var(--bgg-hof-accent-rgb), 0.95), rgba(var(--bgg-hof-accent-rgb), 0.34));
	box-shadow:
		0 0 0 4px rgba(var(--bgg-hof-accent-rgb), 0.05),
		0 10px 20px rgba(var(--bgg-hof-accent-rgb), 0.1);
	overflow: hidden;
}

.bgg-hof-avatar img,
.bgg-hof-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(180deg, #19243a 0%, #0f1726 100%);
	color: #ffffff;
	font-size: 22px;
	font-weight: 900;
	object-fit: cover;
}

.bgg-hof-item--default .bgg-hof-avatar {
	flex-basis: 52px;
	width: 52px;
	height: 52px;
}

.bgg-hof-item--default .bgg-hof-avatar img,
.bgg-hof-item--default .bgg-hof-avatar-fallback {
	font-size: 19px;
}

.bgg-hof-member-meta {
	min-width: 0;
}

.bgg-hof-member-name {
	margin: 0;
	color: #ffffff;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.03em;
	word-break: break-word;
}

.bgg-hof-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(var(--bgg-hof-accent-rgb), 0.42);
	background: rgba(var(--bgg-hof-accent-rgb), 0.08);
	color: var(--bgg-hof-accent);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bgg-hof-badge-pill i {
	font-size: 11px;
}

.bgg-hof-points-col {
	grid-column: 1 / -1;
}

.bgg-hof-points-box {
	padding: 12px 14px;
	border: 1px solid rgba(var(--bgg-hof-accent-rgb), 0.28);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(15, 22, 36, 0.88) 0%, rgba(10, 16, 28, 0.98) 100%);
	text-align: center;
}

.bgg-hof-points-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--bgg-hof-accent);
}

.bgg-hof-points-top i {
	font-size: 18px;
}

.bgg-hof-points-top strong {
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
}

.bgg-hof-points-label {
	display: block;
	margin-top: 5px;
	color: #aab5d0;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bgg-hof-footer {
	position: relative;
	z-index: 1;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center !important;
	gap: 10px 16px;
	margin-top: 16px;
	padding: 14px 0 18px;
	border-top: 1px solid rgba(124, 151, 204, 0.12);
	text-align: center;
}

.bgg-hof-footer-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8d9ab7;
	font-size: 12px;
	font-weight: 600;
}

.bgg-hof-footer-item i {
	color: #7886a8;
	font-size: 13px;
}

@container (min-width: 480px) {
	.bgg-hof-shell {
		padding: 20px 16px 0;
	}

	.bgg-hof-title {
		font-size: 30px;
	}

	.bgg-hof-item-inner {
		grid-template-columns: 58px minmax(0, 1fr) 112px;
		padding: 13px;
	}

	.bgg-hof-rank-badge {
		width: 48px;
		height: 54px;
	}

	.bgg-hof-rank-number {
		font-size: 24px;
	}

	.bgg-hof-member-col {
		gap: 0;
	}

	.bgg-hof-avatar {
		flex-basis: 62px;
		width: 62px;
		height: 62px;
	}

	.bgg-hof-member-name {
		font-size: 20px;
	}

	.bgg-hof-points-col {
		grid-column: auto;
	}

	.bgg-hof-points-box {
		padding: 14px 12px;
		min-height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
}

@container (min-width: 680px) {
	.bgg-hof-shell {
		padding: 24px 18px 0;
		border-radius: 28px;
	}

	.bgg-hof-crown {
		width: 60px;
		height: 60px;
		font-size: 24px;
	}

	.bgg-hof-title {
		font-size: 34px;
	}

	.bgg-hof-subtitle {
		max-width: 360px;
		font-size: 15px;
	}

	.bgg-hof-list {
		gap: 14px;
	}

	.bgg-hof-item-inner {
		grid-template-columns: 72px minmax(0, 1fr) 142px;
		gap: 14px;
		padding: 14px 16px;
	}

	.bgg-hof-rank-badge {
		width: 56px;
		height: 64px;
	}

	.bgg-hof-rank-number {
		font-size: 28px;
	}

	.bgg-hof-item--default .bgg-hof-rank-badge {
		width: 44px;
		height: 44px;
	}

	.bgg-hof-item--default .bgg-hof-rank-number {
		font-size: 19px;
	}

	.bgg-hof-avatar {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.bgg-hof-avatar img,
	.bgg-hof-avatar-fallback {
		font-size: 26px;
	}

	.bgg-hof-item--default .bgg-hof-avatar {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
	}

	.bgg-hof-member-name {
		font-size: 22px;
	}

	.bgg-hof-badge-pill {
		font-size: 12px;
		padding: 6px 12px;
	}

	.bgg-hof-points-top strong {
		font-size: 28px;
	}

	.bgg-hof-points-label {
		font-size: 11px;
	}
}
