.b4fp,
.b4fp-rail {
	--b4fp-accent: #ff5500;
	--b4fp-gold: #f9b71e;
	--b4fp-bg: #1a2e0d;
	--b4fp-text: #ffffff;
	--b4fp-muted: #c3d6b4;
}

.b4fp {
	box-sizing: border-box;
	max-width: 360px;
	margin: 0;
	padding: 20px;
	background: var(--b4fp-bg);
	color: var(--b4fp-text);
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-top: 4px solid #14141b;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}

.b4fp *,
.b4fp *::before,
.b4fp *::after {
	box-sizing: border-box;
}

.b4fp .b4fp__eyebrow {
	margin: 0 0 10px;
	color: var(--b4fp-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.b4fp .b4fp__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.b4fp img.b4fp__avatar {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--b4fp-accent);
	border-radius: 50%;
	box-shadow: none;
	object-fit: cover;
	background: none;
}

.b4fp .b4fp__who {
	min-width: 0;
}

.b4fp .b4fp__name {
	color: var(--b4fp-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.b4fp .b4fp__cc {
	margin-left: 6px;
	color: var(--b4fp-muted);
	font-size: 12px;
	font-weight: 600;
}

.b4fp .b4fp__level {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	color: var(--b4fp-muted);
	font-size: 12px;
}

.b4fp img.b4fp__level-img {
	display: block;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	object-fit: contain;
	background: none;
}

.b4fp .b4fp__event {
	margin-top: 6px;
}

.b4fp .b4fp__event-name {
	overflow: hidden;
	color: var(--b4fp-text);
	font-size: 12px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b4fp .b4fp__event-line {
	margin-top: 1px;
	color: var(--b4fp-muted);
	font-size: 11px;
}

.b4fp .b4fp__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
	gap: 10px;
	margin: 16px 0 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.b4fp .b4fp__stat {
	text-align: center;
}

.b4fp .b4fp__stat-value {
	display: block;
	color: var(--b4fp-text);
	font-size: 17px;
	font-weight: 800;
}

.b4fp .b4fp__stat-label {
	display: block;
	margin-top: 2px;
	color: var(--b4fp-muted);
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.b4fp .b4fp__bio {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-left: 2px solid var(--b4fp-gold);
	border-radius: 0 8px 8px 0;
	background: rgba(0, 0, 0, 0.2);
}

.b4fp .b4fp__bio-label {
	margin-bottom: 4px;
	color: var(--b4fp-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.b4fp p.b4fp__bio-text {
	margin: 0;
	padding: 0;
	color: var(--b4fp-text);
	font-size: 13px;
	line-height: 1.6;
}

.b4fp .b4fp__links {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.b4fp .b4fp__links--one {
	justify-content: center;
}

.b4fp a.b4fp__link {
	flex: 1;
	padding: 9px 10px;
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-radius: 6px;
	box-shadow: none;
	color: var(--b4fp-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.15s ease;
}

.b4fp .b4fp__links--one a.b4fp__link {
	flex: none;
	min-width: 140px;
}

.b4fp a.b4fp__link:hover,
.b4fp a.b4fp__link:focus {
	opacity: 0.85;
	text-decoration: none;
}

.b4fp a.b4fp__link--faceit,
.b4fp a.b4fp__link--faceit:visited,
.b4fp a.b4fp__link--faceit:hover,
.b4fp a.b4fp__link--faceit:focus {
	border-color: var(--b4fp-accent);
	background: var(--b4fp-accent);
	color: #14141b;
}

.b4fp a.b4fp__link--hltv,
.b4fp a.b4fp__link--hltv:visited,
.b4fp a.b4fp__link--hltv:hover,
.b4fp a.b4fp__link--hltv:focus {
	border-color: var(--b4fp-gold);
	background: transparent;
	color: var(--b4fp-gold);
}

/* Shown to admins only, when the card can't be displayed. */
.b4fp-notice {
	box-sizing: border-box;
	max-width: 480px;
	padding: 12px 14px;
	border: 1px solid #e6c200;
	border-radius: 8px;
	background: #fff8e5;
	color: #5c4a00;
	font-size: 13px;
	line-height: 1.4;
}

/* Floating card. Vertically centered in the viewport rather than pinned a
   fixed distance from the top, so it clears any header/hero banner height
   automatically instead of needing to know how tall the theme's header is. */
.b4fp-rail {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
	display: none;
	align-items: center;
}

.b4fp-rail--right {
	right: 0;
}

.b4fp-rail--left {
	left: 0;
	flex-direction: row-reverse;
}

.b4fp-rail .b4fp-rail__tab {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 90px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-right: none;
	border-radius: 8px 0 0 8px;
	background: var(--b4fp-bg);
	box-shadow: none;
	color: var(--b4fp-text);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.b4fp-rail--left .b4fp-rail__tab {
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-left: none;
	border-radius: 0 8px 8px 0;
}

.b4fp-rail .b4fp-rail__tab:hover,
.b4fp-rail .b4fp-rail__tab:focus {
	background: #244012;
	color: var(--b4fp-text);
}

/* tab arrow */
.b4fp-rail__arrow {
	display: block;
}

.b4fp-rail--left .b4fp-rail__arrow,
.b4fp-rail--right.is-collapsed .b4fp-rail__arrow {
	transform: rotate(180deg);
}

.b4fp-rail--left.is-collapsed .b4fp-rail__arrow {
	transform: none;
}

.b4fp-rail__panel {
	width: 320px;
	overflow: hidden;
	transition: width 0.25s ease, opacity 0.2s ease;
}

.b4fp-rail__panel .b4fp {
	width: 320px;
	max-width: none;
	border-radius: 14px 0 0 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.b4fp-rail--left .b4fp-rail__panel .b4fp {
	border-radius: 0 14px 14px 0;
}

.b4fp-rail.is-collapsed .b4fp-rail__panel {
	width: 0;
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 1500px) {
	.b4fp-rail {
		display: flex;
	}
}
