.gfb-gamefinder-root {
	--gfb-bg: #101116;
	--gfb-bg-alt: #1c1e24;
	--gfb-text: #f1f5f9;
	--gfb-text-dim: #a3a9b7;
	--gfb-accent: #1868fb;
	--gfb-accent-dark: #135de0;
	--gfb-accent-text: #ffffff;
	--gfb-border: rgba(197, 168, 128, 0.35);
	height: 0;
}

/* Same tab construction as the Bonus Calculator's .sbc-fab (flex column +
   a vertical-rl label rotated 180deg) so both tabs read text in the same
   direction and stack cleanly along the same right edge. */
.gfb-fab {
	position: fixed;
	z-index: 99998;
	top: 50%;
	right: 0;
	/* Offset below the Bonus Calculator's floating tab (which sits
	   centered at top:50%) with enough clearance that the two never
	   overlap if both blocks are on the same page. */
	transform: translateY(calc(-50% + 140px));
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: var(--gfb-accent);
	color: var(--gfb-accent-text);
	border: none;
	border-radius: 10px 0 0 10px;
	padding: 14px 8px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	box-shadow: -2px 2px 10px rgba(0,0,0,0.25);
	transition: background 0.15s ease, padding 0.15s ease;
}

.gfb-fab:hover {
	background: var(--gfb-accent-dark);
}

.gfb-fab-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.gfb-fab {
		top: auto;
		/* Stacked above the Bonus Calculator's mobile tab (bottom:16px). */
		bottom: 84px;
		right: 16px;
		transform: none;
		flex-direction: row;
		border-radius: 999px;
		padding: 12px 16px;
	}

	.gfb-fab-label {
		writing-mode: horizontal-tb;
		transform: none;
	}
}

.gfb-overlay {
	position: fixed;
	inset: 0;
	background: rgba(6, 7, 10, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	z-index: 99999;
}
.gfb-overlay.is-open { opacity: 1; visibility: visible; }

.gfb-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -46%);
	width: 460px;
	max-width: 92vw;
	max-height: 86vh;
	overflow-y: auto;
	background: var(--gfb-bg);
	color: var(--gfb-text);
	border: 1px solid var(--gfb-border);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}
.gfb-modal.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%);
}

.gfb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--gfb-border);
	position: sticky;
	top: 0;
	background: var(--gfb-bg);
}
.gfb-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--gfb-text); }
.gfb-close {
	background: none;
	border: none;
	color: var(--gfb-text-dim);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}
.gfb-close:hover { color: var(--gfb-text); }

.gfb-modal-body { padding: 20px; }

.gfb-progress { font-size: 12px; color: var(--gfb-text-dim); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.gfb-question { border: none; margin: 0; padding: 0; }
.gfb-question-text { font-size: 16px; font-weight: 600; margin: 0 0 14px; padding: 0; color: var(--gfb-text); }

.gfb-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	background: var(--gfb-bg-alt);
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.gfb-option:hover { border-color: var(--gfb-border); }
.gfb-option input { accent-color: var(--gfb-accent); width: 16px; height: 16px; flex-shrink: 0; }
.gfb-option span { font-size: 14px; color: var(--gfb-text); }

.gfb-results-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; }

.gfb-result-card {
	background: var(--gfb-bg-alt);
	border: 1px solid var(--gfb-border);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.gfb-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gfb-result-name { font-size: 16px; font-weight: 700; color: var(--gfb-accent); }
.gfb-result-provider { font-size: 11px; color: var(--gfb-text-dim); }
.gfb-result-desc { font-size: 13px; color: var(--gfb-text-dim); margin: 0 0 10px; line-height: 1.45; }
.gfb-result-meta { display: flex; gap: 14px; font-size: 12px; color: var(--gfb-text-dim); margin-bottom: 12px; }

.gfb-result-actions { display: flex; gap: 10px; }
.gfb-btn {
	display: inline-block;
	text-align: center;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
}
.gfb-btn-demo { background: transparent; border: 1px solid var(--gfb-border); color: var(--gfb-text); }
.gfb-btn-play { background: var(--gfb-accent); color: var(--gfb-accent-text); }
.gfb-btn-restart {
	width: 100%;
	background: transparent;
	border: 1px solid var(--gfb-border);
	color: var(--gfb-text-dim);
	margin-top: 6px;
	padding: 10px;
}
