/* Exam Brain Gym — Fast Calculation Challenge
   All rules scoped under .ebg-fc-wrapper. No global tag styling. */

.ebg-fc-wrapper {
	--ebg-bg: #080B12;
	--ebg-panel: #111827;
	--ebg-panel-2: #151C2B;
	--ebg-text: #F9FAFB;
	--ebg-text-2: #E4E9F2; /* secondary text kept near-white for readability inside any WP theme */
	--ebg-accent: #8B5CF6;
	--ebg-accent-hover: #7C3AED;
	--ebg-accent-2: #38BDF8;
	--ebg-success: #34D399;
	--ebg-warning: #F59E0B;
	--ebg-error: #EF4444;
	--ebg-border: rgba(255,255,255,0.08);

	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ebg-text);
	-webkit-font-smoothing: antialiased;
}

.ebg-fc-wrapper *,
.ebg-fc-wrapper *::before,
.ebg-fc-wrapper *::after {
	box-sizing: border-box;
}

/* Safety net: WordPress themes commonly set their own colour on bare
   h1-h6/p/b/strong (meant for light-background article text). Reset those
   to inherit our own dark-theme colour before any more specific rule below
   (which always wins on specificity) applies its intended colour. In
   practice the game only ever builds headings via .ebg-fc-heading /
   .ebg-fc-para divs, but this guards any tag left in a fallback state. */
.ebg-fc-wrapper h1, .ebg-fc-wrapper h2, .ebg-fc-wrapper h3,
.ebg-fc-wrapper h4, .ebg-fc-wrapper h5, .ebg-fc-wrapper h6,
.ebg-fc-wrapper p, .ebg-fc-wrapper b, .ebg-fc-wrapper strong {
	color: inherit;
	margin: 0;
	font-family: inherit;
}

.ebg-fc-wrapper .ebg-fc-heading,
.ebg-fc-wrapper .ebg-fc-para {
	color: var(--ebg-text);
}

.ebg-fc-wrapper .ebg-fc-noscript {
	padding: 16px;
	background: var(--ebg-panel);
	border-radius: 12px;
	color: var(--ebg-text-2);
}

.ebg-fc-root {
	width: 100%;
	max-width: 1050px;
	margin: 0 auto;
	background: radial-gradient(1200px 400px at 50% -10%, rgba(139,92,246,0.12), transparent 60%), var(--ebg-bg);
	border-radius: 20px;
	border: 1px solid var(--ebg-border);
	padding: 20px;
	position: relative;
	overflow: hidden;
	min-height: 360px;
}

.ebg-fc-root:focus { outline: none; }

/* ---------- Generic building blocks ---------- */

.ebg-fc-card {
	background: linear-gradient(180deg, var(--ebg-panel), var(--ebg-panel-2));
	border: 1px solid var(--ebg-border);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.ebg-fc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ebg-accent-2);
	background: rgba(56,189,248,0.1);
	border: 1px solid rgba(56,189,248,0.25);
	padding: 6px 12px;
	border-radius: 999px;
}

.ebg-fc-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	background: linear-gradient(180deg, var(--ebg-accent), var(--ebg-accent-hover));
	padding: 14px 28px;
	border-radius: 14px;
	box-shadow: 0 8px 24px -8px rgba(139,92,246,0.6);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	min-height: 48px;
}
.ebg-fc-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(139,92,246,0.75); }
.ebg-fc-btn:active { transform: translateY(0); }
.ebg-fc-btn:focus-visible { outline: 2px solid var(--ebg-accent-2); outline-offset: 3px; }

.ebg-fc-btn.ebg-fc-btn-secondary {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	box-shadow: none;
	color: var(--ebg-text);
}
.ebg-fc-btn.ebg-fc-btn-secondary:hover { border-color: rgba(255,255,255,0.18); }

.ebg-fc-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ebg-fc-muted { color: var(--ebg-text-2); }

/* ---------- Start screen ---------- */

.ebg-fc-start {
	text-align: center;
	padding: 20px 10px 8px;
}

.ebg-fc-title {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	margin: 10px 0 6px;
	letter-spacing: -0.02em;
	background: linear-gradient(180deg, #fff, #cbd5e1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ebg-fc-subtitle { font-size: 15px; color: var(--ebg-text-2); max-width: 520px; margin: 0 auto 10px; }

.ebg-fc-pillrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 640px;
	margin: 0 auto 18px;
}

.ebg-fc-pill {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	border-radius: 14px;
	padding: 10px 8px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.ebg-fc-pill:hover { transform: translateY(-3px) rotateX(2deg); border-color: rgba(139,92,246,0.4); }
.ebg-fc-pill-label { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--ebg-accent-2); margin-bottom: 4px; }
.ebg-fc-pill-desc { font-size: 13px; color: var(--ebg-text-2); }

.ebg-fc-footnote { font-size: 12px; color: var(--ebg-text-2); margin-top: 10px; }
.ebg-fc-best { font-size: 13px; color: var(--ebg-text-2); margin-top: 4px; }
.ebg-fc-best b { color: var(--ebg-text); }

/* ---------- Countdown ---------- */

.ebg-fc-countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
}
.ebg-fc-countdown-num {
	font-size: 96px;
	font-weight: 800;
	color: var(--ebg-text);
	text-shadow: 0 0 40px rgba(139,92,246,0.6);
	animation: ebgFcPop 0.55s cubic-bezier(.2,.8,.2,1);
}
@keyframes ebgFcPop {
	0% { transform: scale(0.5); opacity: 0; }
	60% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

/* ---------- HUD ---------- */

.ebg-fc-hud {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--ebg-border);
}
.ebg-fc-hud-item { font-size: 13px; color: var(--ebg-text-2); }
.ebg-fc-hud-item b { display: block; font-size: 16px; color: var(--ebg-text); font-weight: 700; }
.ebg-fc-hud-lives { font-size: 18px; letter-spacing: 3px; }

/* ---------- Game layout ---------- */

.ebg-fc-game-layout {
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 14px;
	align-items: start;
}

.ebg-fc-side {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	border-radius: 16px;
	padding: 12px 14px;
}
.ebg-fc-side h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ebg-text-2); margin: 0 0 12px; }
.ebg-fc-side-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--ebg-border); }
.ebg-fc-side-row:last-child { border-bottom: none; }

.ebg-fc-stage {
	text-align: center;
	padding: 2px 6px 6px;
}

.ebg-fc-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ebg-text-2); margin-bottom: 4px; }

.ebg-fc-expression {
	font-weight: 800;
	font-size: 52px;
	letter-spacing: -0.01em;
	margin: 2px 0 10px;
	transform: perspective(600px) rotateX(0deg);
	transition: transform 0.25s ease;
	text-shadow: 0 4px 24px rgba(139,92,246,0.25);
}
.ebg-fc-expression.ebg-fc-shift { animation: ebgFcSlideIn 0.28s ease; }
@keyframes ebgFcSlideIn {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ebg-fc-answer-display {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	min-height: 52px;
	padding: 0 18px;
	font-size: 28px;
	font-weight: 700;
	background: var(--ebg-panel);
	border: 2px solid var(--ebg-border);
	border-radius: 14px;
	margin-bottom: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ebg-fc-answer-display.ebg-fc-focused { border-color: var(--ebg-accent); box-shadow: 0 0 0 4px rgba(139,92,246,0.18); }
.ebg-fc-answer-display .ebg-fc-caret { display: inline-block; width: 2px; height: 30px; background: var(--ebg-accent-2); margin-left: 3px; animation: ebgFcBlink 1s step-end infinite; }
@keyframes ebgFcBlink { 50% { opacity: 0; } }

.ebg-fc-timer-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 10px; }
.ebg-fc-timer-num { font-size: 14px; font-weight: 700; color: var(--ebg-text-2); }
.ebg-fc-timer-num.ebg-fc-warn { color: var(--ebg-warning); }
.ebg-fc-timer-svg circle { transition: stroke-dashoffset 0.12s linear, stroke 0.2s ease; }

/* ---------- Keypad ---------- */

.ebg-fc-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	max-width: 300px;
	margin: 0 auto;
}
.ebg-fc-key {
	appearance: none;
	border: 1px solid var(--ebg-border);
	background: var(--ebg-panel-2);
	color: var(--ebg-text);
	font-size: 18px;
	font-weight: 700;
	border-radius: 12px;
	min-height: 46px;
	cursor: pointer;
	transition: transform 0.1s ease, background 0.15s ease;
}
.ebg-fc-key:hover { background: #1c2536; }
.ebg-fc-key:active { transform: scale(0.94); }
.ebg-fc-key:focus-visible { outline: 2px solid var(--ebg-accent-2); outline-offset: 2px; }
.ebg-fc-key-submit { background: linear-gradient(180deg, var(--ebg-success), #16a34a); border: none; color: #05130c; }
.ebg-fc-key-back { background: var(--ebg-panel); }

/* ---------- Feedback ---------- */

.ebg-fc-feedback {
	text-align: center;
	padding: 40px 10px;
	min-height: 380px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.ebg-fc-feedback-icon { font-size: 44px; }
.ebg-fc-feedback-title { font-size: 26px; font-weight: 800; }
.ebg-fc-feedback-title.ebg-fc-good { color: var(--ebg-success); }
.ebg-fc-feedback-title.ebg-fc-bad { color: var(--ebg-error); }
.ebg-fc-feedback-title.ebg-fc-neutral { color: var(--ebg-warning); }
.ebg-fc-feedback-line { font-size: 15px; color: var(--ebg-text-2); }
.ebg-fc-feedback-bonus { font-size: 14px; color: var(--ebg-accent-2); font-weight: 700; }

.ebg-fc-pulse { animation: ebgFcPulse 0.4s ease; }
@keyframes ebgFcPulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ebg-fc-shake { animation: ebgFcShake 0.4s ease; }
@keyframes ebgFcShake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 50%, 70% { transform: translateX(-4px); }
	40%, 60% { transform: translateX(4px); }
}

.ebg-fc-toast {
	background: rgba(245,158,11,0.12);
	border: 1px solid rgba(245,158,11,0.35);
	color: #fbbf24;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 13px;
	max-width: 420px;
	margin: 14px auto 0;
}

/* ---------- Result screen ---------- */

.ebg-fc-result { text-align: center; padding: 10px 6px; }
.ebg-fc-result-score { font-size: 56px; font-weight: 800; margin-top: 6px; text-shadow: 0 0 30px rgba(139,92,246,0.5); }
.ebg-fc-result-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ebg-text-2); }
.ebg-fc-newbest { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ebg-warning); }

.ebg-fc-rating-card {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	border-radius: 14px;
	padding: 14px 18px;
	max-width: 360px;
	margin: 16px auto 0;
	text-align: left;
}
.ebg-fc-rating-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 0; }
.ebg-fc-stars { font-size: 16px; letter-spacing: 2px; }
.ebg-fc-encourage { font-size: 13px; color: var(--ebg-accent-2); margin-top: 8px; text-align: center; }

.ebg-fc-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 26px 0;
}
.ebg-fc-stat { background: var(--ebg-panel-2); border: 1px solid var(--ebg-border); border-radius: 14px; padding: 14px; }
.ebg-fc-stat b { display: block; font-size: 20px; }
.ebg-fc-stat span { font-size: 12px; color: var(--ebg-text-2); }

.ebg-fc-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Progress dashboard ---------- */

.ebg-fc-dash-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin: 18px 0 24px;
}
.ebg-fc-dash-stat { background: var(--ebg-panel-2); border: 1px solid var(--ebg-border); border-radius: 14px; padding: 14px; text-align: center; }
.ebg-fc-dash-stat b { display: block; font-size: 22px; }
.ebg-fc-dash-stat span { font-size: 11px; color: var(--ebg-text-2); }

.ebg-fc-week { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin: 14px 0 6px; }
.ebg-fc-week-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.ebg-fc-week-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--ebg-accent-2), var(--ebg-accent)); min-height: 4px; transition: height 0.4s ease; }
.ebg-fc-week-day { font-size: 11px; color: var(--ebg-text-2); }

.ebg-fc-recent-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--ebg-border); }
.ebg-fc-recent-row:last-child { border-bottom: none; }

.ebg-fc-achv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.ebg-fc-achv { background: var(--ebg-panel-2); border: 1px solid var(--ebg-border); border-radius: 12px; padding: 10px; text-align: center; font-size: 11px; color: var(--ebg-text-2); }
.ebg-fc-achv.ebg-fc-unlocked { color: var(--ebg-text); border-color: rgba(139,92,246,0.4); box-shadow: 0 0 0 1px rgba(139,92,246,0.15) inset; }
.ebg-fc-achv-icon { font-size: 20px; display: block; margin-bottom: 4px; }

/* ---------- Top controls ---------- */

.ebg-fc-topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ebg-fc-icon-btn {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	color: var(--ebg-text-2);
	border-radius: 10px;
	min-width: 40px;
	min-height: 40px;
	cursor: pointer;
	font-size: 16px;
}
.ebg-fc-icon-btn[aria-pressed="true"] { color: var(--ebg-accent-2); border-color: rgba(56,189,248,0.4); }

.ebg-fc-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Ambient background (premium feel) ---------- */

.ebg-fc-root::before {
	content: "";
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(420px 300px at 15% 10%, rgba(139,92,246,0.16), transparent 60%),
		radial-gradient(380px 280px at 85% 20%, rgba(56,189,248,0.13), transparent 60%);
	animation: ebgFcDrift 16s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 0;
}
.ebg-fc-root > * { position: relative; z-index: 1; }
@keyframes ebgFcDrift {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(3%, -3%) scale(1.05); }
}

/* ---------- Entrance animation ---------- */

.ebg-fc-anim {
	animation: ebgFcFadeUp 0.55s cubic-bezier(.2,.8,.2,1) both;
	animation-delay: var(--d, 0s);
}
@keyframes ebgFcFadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Generic heading/paragraph helpers (div-based, theme-proof) ---------- */

.ebg-fc-heading { font-weight: 800; }
.ebg-fc-para { font-size: 15px; }
.ebg-fc-section-title { font-size: 22px; margin-bottom: 6px; }
.ebg-fc-subhead { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ebg-text-2); margin: 20px 0 6px; }
.ebg-fc-streak-line { color: var(--ebg-warning); font-weight: 700; margin-bottom: 14px; }

/* ---------- Brand row ---------- */

.ebg-fc-brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ebg-fc-brand-icon {
	width: 40px; height: 40px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px;
	background: linear-gradient(135deg, var(--ebg-accent), var(--ebg-accent-2));
	box-shadow: 0 8px 20px -8px rgba(139,92,246,0.7);
}
.ebg-fc-brand-name { font-weight: 800; font-size: 15px; color: var(--ebg-text); }
.ebg-fc-brand-tag { font-size: 12px; color: var(--ebg-text-2); }

/* ---------- Start screen refinements ---------- */

.ebg-fc-subtitle2 { font-size: 13px; color: var(--ebg-text-2); max-width: 520px; margin: 0 auto 14px; }
.ebg-fc-pill-icon { font-size: 17px; margin-bottom: 2px; }
.ebg-fc-btn-glow { position: relative; }
.ebg-fc-linkrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ebg-fc-linkrow .ebg-fc-btn { padding: 10px 16px; font-size: 13px; min-height: 40px; }

.ebg-fc-tilt { transition: transform 0.15s ease; will-change: transform; }

/* ---------- Game Modes screen ---------- */

.ebg-fc-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.ebg-fc-modecard {
	background: linear-gradient(180deg, var(--ebg-panel), var(--ebg-panel-2));
	border: 1px solid var(--ebg-border);
	border-radius: 16px;
	padding: 18px;
	text-align: left;
	transition: border-color 0.2s ease;
}
.ebg-fc-modecard:not(.ebg-fc-locked):hover { border-color: rgba(139,92,246,0.45); }
.ebg-fc-modecard.ebg-fc-locked { opacity: 0.55; }
.ebg-fc-mode-icon { font-size: 26px; margin-bottom: 8px; }
.ebg-fc-mode-name { font-size: 16px; margin-bottom: 2px; }
.ebg-fc-mode-range { font-size: 12px; color: var(--ebg-accent-2); font-weight: 700; margin-bottom: 8px; }
.ebg-fc-mode-desc { font-size: 13px; color: var(--ebg-text-2); margin-bottom: 10px; line-height: 1.4; }
.ebg-fc-mode-unlock { font-size: 12px; color: var(--ebg-warning); margin-bottom: 14px; line-height: 1.4; }
.ebg-fc-modecard:not(.ebg-fc-locked) .ebg-fc-mode-unlock { color: var(--ebg-success); }
.ebg-fc-modecard .ebg-fc-btn { width: 100%; }

/* ---------- How Scoring Works screen ---------- */

.ebg-fc-howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.ebg-fc-howto-card {
	background: var(--ebg-panel-2);
	border: 1px solid var(--ebg-border);
	border-radius: 14px;
	padding: 16px;
}
.ebg-fc-howto-card .ebg-fc-heading { font-size: 14px; color: var(--ebg-accent-2); margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.ebg-fc-game-layout { grid-template-columns: 1fr; }
	.ebg-fc-side { order: 2; }
	.ebg-fc-dash-grid { grid-template-columns: repeat(3, 1fr); }
	.ebg-fc-achv-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
	.ebg-fc-root { padding: 14px; border-radius: 16px; min-height: 0; }
	.ebg-fc-title { font-size: 21px; }
	.ebg-fc-subtitle { font-size: 13px; margin-bottom: 6px; }
	.ebg-fc-subtitle2 { font-size: 12px; margin-bottom: 10px; }
	.ebg-fc-badge { font-size: 11px; padding: 4px 10px; }
	.ebg-fc-pillrow { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
	.ebg-fc-pill { padding: 8px 4px; }
	.ebg-fc-pill-icon { font-size: 15px; margin-bottom: 1px; }
	.ebg-fc-pill-label { font-size: 10px; }
	.ebg-fc-pill-desc { font-size: 9px; line-height: 1.25; }
	.ebg-fc-btn { padding: 11px 20px; font-size: 14px; min-height: 42px; }
	.ebg-fc-footnote { font-size: 10px; margin-top: 8px; }
	.ebg-fc-best { font-size: 12px; }
	.ebg-fc-linkrow .ebg-fc-btn { padding: 8px 12px; font-size: 11px; min-height: 34px; }
	.ebg-fc-expression { font-size: 34px; margin: 2px 0 8px; }
	.ebg-fc-answer-display { font-size: 24px; min-width: 150px; min-height: 46px; margin-bottom: 8px; }
	.ebg-fc-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.ebg-fc-dash-grid { grid-template-columns: repeat(2, 1fr); }
	.ebg-fc-achv-grid { grid-template-columns: repeat(2, 1fr); }
	.ebg-fc-hud { font-size: 11px; gap: 6px 10px; padding-bottom: 6px; margin-bottom: 6px; }
	.ebg-fc-hud-item b { font-size: 13px; }
	.ebg-fc-keypad { max-width: 260px; gap: 6px; }
	.ebg-fc-key { min-height: 42px; font-size: 16px; }
	.ebg-fc-timer-wrap svg { width: 52px; height: 52px; }
	.ebg-fc-mode-grid { grid-template-columns: 1fr; }
	.ebg-fc-howto-grid { grid-template-columns: 1fr; }
	.ebg-fc-brand-icon { width: 30px; height: 30px; font-size: 14px; }
	.ebg-fc-brand-name { font-size: 13px; }
	.ebg-fc-brand-tag { font-size: 10px; }
	.ebg-fc-brandrow { margin-bottom: 2px; }
	.ebg-fc-linkrow .ebg-fc-btn { flex: 1 1 auto; }
}

@media (max-width: 340px) {
	.ebg-fc-pill-desc { display: none; }
	.ebg-fc-title { font-size: 19px; }
}

@media (max-width: 360px) {
	.ebg-fc-expression { font-size: 30px; }
	.ebg-fc-answer-display { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ebg-fc-wrapper *,
	.ebg-fc-wrapper *::before,
	.ebg-fc-wrapper *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
