.bgg-steam-curator {
	--bgg-steam-bg: #101820;
	--bgg-steam-surface: rgba(18, 29, 40, 0.94);
	--bgg-steam-surface-strong: rgba(9, 15, 22, 0.96);
	--bgg-steam-border: rgba(102, 192, 244, 0.22);
	--bgg-steam-text: #f3f7fb;
	--bgg-steam-muted: #a9bac8;
	--bgg-steam-blue: #66c0f4;
	--bgg-steam-green: #6cc04a;
	--bgg-steam-green-hover: #7ddb58;
	--bgg-steam-focus: #a3e635;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	width: min(100%, 1100px);
	margin: 22px auto;
	padding: 16px 18px;
	overflow: hidden;
	background:
		radial-gradient(circle at 10% 0%, rgba(102, 192, 244, 0.16), transparent 34%),
		linear-gradient(135deg, var(--bgg-steam-surface), var(--bgg-steam-surface-strong));
	border: 1px solid var(--bgg-steam-border);
	border-radius: 22px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
	color: var(--bgg-steam-text);
	font-family: inherit;
	isolation: isolate;
}

.bgg-steam-curator,
.bgg-steam-curator * {
	box-sizing: border-box;
}

.bgg-steam-curator::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 34px 34px;
	content: "";
	opacity: 0.2;
	pointer-events: none;
}

.bgg-steam-curator--sticky {
	position: sticky;
	top: 96px;
	z-index: 8;
}

.bgg-steam-curator__brand {
	display: grid;
	gap: 4px;
	align-items: center;
	justify-content: center;
	justify-items: center;
	width: 78px;
	min-width: 78px;
	text-align: center;
}

.bgg-steam-curator__brand-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.bgg-steam-curator__logo,
.bgg-steam-curator__logo-fallback {
	display: inline-flex;
	width: 62px;
	height: 62px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(135deg, #1b46ff, #9b35ff 54%, #10d2ff);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(102, 192, 244, 0.16);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.04em;
	object-fit: contain;
}

.bgg-steam-curator__steam {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	margin-left: -20px;
	background: linear-gradient(135deg, #1b2838, #66c0f4);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.bgg-steam-curator__steam svg,
.bgg-steam-curator__steam img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.bgg-steam-curator__followers {
	display: inline-flex;
	gap: 3px;
	align-items: center;
	justify-content: center;
	max-width: 76px;
	margin: 0;
	overflow: hidden;
	color: var(--bgg-steam-muted);
	font-size: 8px;
	font-weight: 850;
	letter-spacing: 0.03em;
	line-height: 1.05;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.bgg-steam-curator__followers strong {
	color: var(--bgg-steam-text);
	font-size: 9px;
	font-weight: 950;
	letter-spacing: 0;
}

.bgg-steam-curator__content {
	min-width: 0;
}

.bgg-steam-curator__eyebrow {
	margin: 0 0 5px;
	color: var(--bgg-steam-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bgg-steam-curator__title {
	margin: 0;
	color: var(--bgg-steam-text);
	font-size: clamp(18px, 1.75vw, 24px);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.bgg-steam-curator__description {
	max-width: 620px;
	margin: 7px 0 0;
	color: var(--bgg-steam-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.bgg-steam-curator__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 13px 0 0;
}

.bgg-steam-curator__stat {
	display: inline-flex;
	gap: 7px;
	align-items: baseline;
	min-height: 32px;
	padding: 7px 10px;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}

.bgg-steam-curator__stat dt,
.bgg-steam-curator__stat dd {
	margin: 0;
}

.bgg-steam-curator__stat dt {
	color: var(--bgg-steam-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.bgg-steam-curator__stat dd {
	color: var(--bgg-steam-text);
	font-size: 13px;
	font-weight: 900;
}

.bgg-steam-curator__actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
	align-items: stretch;
	justify-content: center;
	min-width: 172px;
}

.bgg-steam-curator__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none !important;
}

.bgg-steam-curator__button {
	padding: 0 18px;
	background: linear-gradient(135deg, var(--bgg-steam-green), #49a636);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	color: #06110a !important;
	font-size: 14px;
	font-weight: 950;
	box-shadow: 0 12px 26px rgba(108, 192, 74, 0.22);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bgg-steam-curator__button:hover {
	background: linear-gradient(135deg, var(--bgg-steam-green-hover), #58bd3c);
	box-shadow: 0 14px 30px rgba(108, 192, 74, 0.3);
	transform: translateY(-1px);
}

.bgg-steam-curator a:focus-visible,
.bgg-steam-curator button:focus-visible {
	outline: 3px solid var(--bgg-steam-focus);
	outline-offset: 3px;
}

.bgg-steam-curator--compact {
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	max-width: 420px;
	padding: 16px;
}

.bgg-steam-curator--compact .bgg-steam-curator__logo,
.bgg-steam-curator--compact .bgg-steam-curator__logo-fallback {
	width: 54px;
	height: 54px;
	border-radius: 16px;
}

.bgg-steam-curator--compact .bgg-steam-curator__title {
	font-size: 18px;
}

.bgg-steam-curator--compact .bgg-steam-curator__description {
	font-size: 13px;
}

.bgg-steam-curator--compact .bgg-steam-curator__actions {
	grid-column: 1 / -1;
	min-width: 0;
}

.bgg-steam-curator--floating {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: calc(22px + env(safe-area-inset-bottom));
	z-index: 9998;
	grid-template-columns: auto minmax(0, 1fr);
	width: min(390px, calc(100vw - 32px));
	margin: 0;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(18px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.admin-bar .bgg-steam-curator--floating {
	bottom: calc(54px + env(safe-area-inset-bottom));
}

.bgg-steam-curator--floating.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.bgg-steam-curator--floating .bgg-steam-curator__description {
	font-size: 13px;
}

.bgg-steam-curator--floating .bgg-steam-curator__actions {
	grid-column: 1 / -1;
	min-width: 0;
}

.bgg-steam-curator__close {
	position: absolute;
	top: 9px;
	right: 9px;
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	color: var(--bgg-steam-text);
	cursor: pointer;
	font: inherit;
	font-size: 20px;
	line-height: 1;
}

@media (max-width: 820px) {
	.bgg-steam-curator {
		grid-template-columns: auto minmax(0, 1fr);
		max-width: calc(100% - 28px);
	}

	.bgg-steam-curator__actions {
		grid-column: 1 / -1;
		min-width: 0;
	}
}

@media (max-width: 600px) {
	.bgg-steam-curator {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px;
		border-radius: 18px;
	}

	.bgg-steam-curator__brand {
		justify-content: center;
	}

	.bgg-steam-curator__description {
		max-width: none;
		font-size: 13px;
	}

	.bgg-steam-curator__button {
		width: 100%;
	}

	.bgg-steam-curator--floating {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bgg-steam-curator,
	.bgg-steam-curator *,
	.bgg-steam-curator::before {
		transition: none !important;
	}
}
