/* ==========================================================================
   PART 1: SHARED PEDAGOGICAL LAYOUT & COMPONENTS
   Used across games for Step 1 (Briefing), Step 2 (Lab Bench), Step 3 (Warm-Up)
   ========================================================================== */

/* Game Return Bar & Title Header */
.game-return-bar {
	margin: 1.5rem 0 0.75rem;
}

.game-return-link {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--accent-cyan);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.game-return-link:hover {
	color: #fff;
	transform: translateX(-2px);
}

.game-page-header {
	margin: 1.5rem 0 1rem;
}

.game-page-title {
	font-size: clamp(1.6rem, 3.5vw, 2.3rem);
	font-weight: 900;
	margin: 0.5rem 0 0;
	color: var(--text-main);
	line-height: 1.25;
}

.game-page-desc {
	color: var(--text-muted);
	font-size: clamp(0.92rem, 2vw, 1.05rem);
	line-height: 1.6;
	margin: 0.5rem 0 0;
	max-width: 780px;
}

/* Step 1: Codex / Concept Briefing Card */
.codex-card {
	margin: 1.5rem 0 2rem;
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-left: 5px solid var(--accent-cyan);
	border-radius: var(--radius-md);
	padding: 1.5rem;
}

.codex-header-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.codex-title {
	font-size: 1.35rem;
	font-weight: 800;
	margin: 0;
	color: var(--text-main);
}

.codex-desc {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-muted);
}

.concept-grid-2,
.concept-grid-3,
.concept-grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.25rem 0;
}

.concept-info-tile {
	background: var(--bg-surface-elevated);
	padding: 1rem 1.15rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

.concept-info-title {
	font-weight: 800;
	font-size: 1.05rem;
	margin-bottom: 0.25rem;
}

.concept-info-desc {
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.55;
	margin: 0;
}

/* Step 2: Lab Bench Manipulative Wrapper */
.lab-bench-wrapper {
	padding: 1.5rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin: 1.5rem 0;
}

.lab-bench-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
}

.lab-bench-header > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.lab-bench-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Step 3: Practice Box / Sparring Ring */
.practice-box {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin: 1.5rem 0;
}

/* Practice Header: Vertical stack on all devices (badge on line 1, title strictly on line 2) */
.practice-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.practice-title {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0;
	color: var(--text-main);
}

.practice-question {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}

.practice-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

.practice-choice-btn {
	background: var(--bg-surface);
	border: 2px solid var(--border-color);
	color: #fff;
	padding: 0.8rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1.4rem;
	transition: all 0.2s ease;
	width: 100%;
}

.practice-choice-btn:hover {
	border-color: var(--primary);
	background: var(--bg-surface-hover);
}

.practice-choice-btn.correct {
	background: #065f46 !important;
	border-color: #34d399 !important;
	color: #fff !important;
}

.practice-choice-btn.wrong {
	background: #7f1d1d !important;
	border-color: #f87171 !important;
	color: #fff !important;
}

.practice-feedback {
	display: none;
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Formula & Observation callout cards */
.formula-card {
	background: var(--bg-surface);
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 0.75rem;
	border: 1px solid var(--border-color);
}

.formula-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 0.25rem;
}

.formula-math {
	font-size: 1.15rem;
	color: #fff;
}

/* Additional Shared Pedagogical & Arena Classes (Zero Inline CSS) */
.codex-cyan {
	margin: 1.5rem 0 2rem;
	border-left: 5px solid var(--accent-cyan);
}
.codex-gold {
	margin: 1.5rem 0 2rem;
	border-left: 5px solid var(--accent-gold);
}
.codex-header-clean {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	border: none;
	padding-bottom: 0;
	margin-bottom: 1rem;
}
.codex-badge-cyan {
	background: var(--accent-cyan);
	color: #000;
}
.codex-badge-gold {
	background: var(--accent-gold);
	color: #1a202c;
}
.text-cyan {
	color: var(--accent-cyan);
}
.text-gold {
	color: var(--accent-gold);
}
.text-success {
	color: var(--success);
}
.text-dim {
	color: var(--text-dim);
}
.lab-bench-title {
	font-size: 1.4rem;
	font-weight: 800;
	margin-top: 0.25rem;
}
.lab-bench-desc {
	color: var(--text-muted);
	font-size: 0.88rem;
	margin: 0;
}
.lab-slider {
	width: 140px;
}
.canvas-responsive {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}
.arena-wrapper {
	margin-top: 2rem;
}
.gauge-w-140 {
	width: 140px;
}
.gauge-w-120 {
	width: 120px;
}
.hud-hp-text {
	font-size: 0.72rem;
	color: var(--text-dim);
	font-family: var(--font-mono);
}
.hud-stat-cyan {
	color: var(--accent-cyan) !important;
}
.hud-stat-gold {
	color: var(--accent-gold) !important;
}
.hud-stat-success {
	color: var(--success) !important;
}
.question-box-md {
	max-width: 580px;
	width: 100%;
}
.question-box-lg {
	max-width: 620px;
	margin: 0 auto 1rem;
	width: 100%;
}
.arena-status-msg {
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 24px;
	text-align: center;
}
.pedagogical-list {
	margin-left: 1.5rem;
	color: var(--text-muted);
	line-height: 1.8;
}
.hud-flex-gap-1 {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.order-target-row {
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin-top: 1rem;
	border-top: 1px solid var(--border-color);
	padding-top: 0.75rem;
}
.order-btn-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 1rem;
}
.font-mono-lg {
	font-size: 2rem;
	font-weight: 900;
	color: var(--accent-cyan);
	font-family: var(--font-mono);
}
.font-mono-md {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--text-main);
	font-family: var(--font-mono);
}
.order-label-dim {
	font-size: 0.72rem;
	text-transform: uppercase;
	color: var(--text-dim);
}

/* ==========================================================================
   PART 2: GAME-SPECIFIC STYLES (ADVANCED REALM)
   ========================================================================== */

/* --- Alchemist Scale (alchemist-scale.html) --- */
.scale-toy-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin: 1.5rem 0;
}
.scale-canvas-box {
	width: 100%;
	max-width: 600px;
	background: #050711;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
	padding: 0.5rem;
}
.scale-controls-panel {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	width: 100%;
	max-width: 600px;
}
.scale-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 0.75rem;
}
.scale-op-btn {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}
.scale-op-btn:hover {
	border-color: var(--accent-gold);
	background: rgba(236, 201, 75, 0.1);
	color: var(--accent-gold);
}
.scale-history-box {
	background: #080c1a;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	max-height: 110px;
	overflow-y: auto;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-top: 0.75rem;
}
.scale-history-box ul {
	margin: 0;
	padding-left: 1.2rem;
}
.scale-history-box li {
	margin-bottom: 0.25rem;
}
.algebra-choice-btn {
	background: var(--bg-surface);
	border: 2px solid var(--border-color);
	color: #fff;
	padding: 0.85rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	transition: all 0.2s ease;
	text-align: left;
}
.algebra-choice-btn:hover {
	border-color: var(--primary);
	background: var(--bg-surface-elevated);
}
.algebra-choice-btn.correct {
	background: #065f46;
	border-color: #34d399;
}
.algebra-choice-btn.wrong {
	background: #7f1d1d;
	border-color: #f87171;
}

/* --- Euclid Quest (euclid-quest.html) --- */
.euclid-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
	width: 100%;
}
.euclid-canvas-card {
	width: 100%;
	max-width: 600px;
	background: #050811;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.65);
	position: relative;
}
.euclid-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(13, 17, 23, 0.95);
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--border-color);
	flex-wrap: wrap;
	gap: 0.5rem;
}
.euclid-tool-btn-group {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}
.euclid-tool-btn {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	color: #94a3b8;
	padding: 0.4rem 0.75rem;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: all 0.2s ease;
	user-select: none;
}
.euclid-tool-btn:hover {
	color: #fff;
	border-color: var(--primary);
}
.euclid-tool-btn.active {
	background: rgba(56, 189, 248, 0.18);
	color: var(--accent-cyan);
	border-color: var(--accent-cyan);
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.euclid-choice-btn {
	background: var(--bg-surface);
	border: 2px solid var(--border-color);
	color: #fff;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	transition: all 0.2s ease;
	text-align: left;
	line-height: 1.4;
	width: 100%;
}
.euclid-choice-btn:hover {
	border-color: var(--primary);
	background: var(--bg-surface-hover);
}
.euclid-choice-btn.correct {
	background: #065f46;
	border-color: #34d399;
}
.euclid-choice-btn.wrong {
	background: #7f1d1d;
	border-color: #f87171;
}
/* Proof Mode Chamber */
.proof-chamber {
	background: var(--bg-surface-elevated);
	border: 2px solid var(--accent-gold);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-top: 1rem;
	box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
	width: 100%;
	max-width: 600px;
	animation: fadeIn 0.4s ease-in-out;
	box-sizing: border-box;
}
.proof-chamber-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid rgba(245, 158, 11, 0.3);
	padding-bottom: 0.5rem;
	gap: 0.35rem;
}
.proof-badge {
	background: rgba(245, 158, 11, 0.15);
	color: var(--accent-gold);
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.2rem 0.6rem;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.proof-step-list {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.proof-step-item {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-left: 3px solid var(--accent-cyan);
	border-radius: var(--radius-sm);
	padding: 0.6rem 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: grab;
	transition: all 0.2s ease;
	user-select: none;
}
.proof-step-item:active {
	cursor: grabbing;
}
.proof-step-item.dragging {
	opacity: 0.4;
	border-color: var(--accent-gold);
}
.proof-drag-handle {
	color: #64748b;
	font-size: 1.1rem;
	cursor: grab;
	padding: 0.2rem;
}
.proof-step-text {
	flex: 1;
	font-size: 0.88rem;
	color: #e2e8f0;
	line-height: 1.4;
}
.proof-step-controls {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.btn-step-move {
	background: var(--bg-surface-elevated);
	border: 1px solid #334155;
	color: #94a3b8;
	border-radius: 3px;
	padding: 0.2rem 0.45rem;
	font-size: 0.7rem;
	cursor: pointer;
	line-height: 1;
}
.btn-step-move:hover {
	background: #1e293b;
	color: #fff;
}
@media (max-width: 640px) {
	.euclid-toolbar {
		justify-content: center;
	}
	.euclid-tool-btn-group {
		width: 100%;
		justify-content: center;
	}
	.proof-step-text {
		font-size: 0.82rem;
	}
	.overlay-title {
		font-size: 1.8rem;
	}
}

/* --- Probability Vault (probability-vault.html) --- */
.gacha-toy-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin: 1.5rem 0;
}
.gacha-canvas-box {
	width: 100%;
	max-width: 620px;
	background: #050711;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
	padding: 0.5rem;
}
.gacha-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.75rem;
	width: 100%;
	max-width: 620px;
}
.gacha-stat-card {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	text-align: center;
}
.gacha-controls-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 0.5rem;
}
.prob-choice-btn {
	background: var(--bg-surface);
	border: 2px solid var(--border-color);
	color: #fff;
	padding: 0.85rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8rem;
	transition: all 0.2s ease;
	text-align: left;
}
.prob-choice-btn:hover {
	border-color: var(--accent-cyan);
	background: var(--bg-surface-elevated);
}
.prob-choice-btn.correct {
	background: #065f46;
	border-color: #34d399;
}
.prob-choice-btn.wrong {
	background: #7f1d1d;
	border-color: #f87171;
}

/* --- Slope Runner (slope-runner.html) --- */
.slope-toy-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin: 1.5rem 0;
}
.slope-canvas-box {
	width: 100%;
	max-width: 580px;
	background: #050811;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
	padding: 0.5rem;
}
.slope-readout-card {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 1.25rem 2rem;
	text-align: center;
	width: 100%;
	max-width: 580px;
}
.calc-choice-btn {
	background: var(--bg-surface);
	border: 2px solid var(--border-color);
	color: #fff;
	padding: 0.8rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-weight: 700;
	font-size: 1.1rem;
	transition: all 0.2s ease;
}
.calc-choice-btn:hover {
	border-color: var(--primary);
}
.calc-choice-btn.correct {
	background: #065f46;
	border-color: #34d399;
}
.calc-choice-btn.wrong {
	background: #7f1d1d;
	border-color: #f87171;
}

/* --- Advanced Maths Game Specific Arena Enhancements --- */
.scale-reset-btn {
	border-color: var(--danger);
	color: var(--danger);
}
.scale-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.75rem;
}
.scale-action-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--accent-cyan);
}
.scale-log-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--text-dim);
	display: block;
	margin-bottom: 0.3rem;
}
.crucible-prompt-gold {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--accent-gold);
	margin-bottom: 0.4rem;
}

.euclid-tool-card {
	background: var(--bg-surface-elevated);
	padding: 1.1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}
.euclid-tool-icon {
	font-size: 1.8rem;
	margin-bottom: 0.35rem;
}
.euclid-tool-desc {
	font-size: 0.88rem;
	margin-top: 0.25rem;
	color: #cbd5e1;
}
.euclid-viewport {
	min-height: auto;
	padding: 1.25rem 1rem;
}
.euclid-arcade-btn {
	padding: 0.25rem 0.55rem;
	font-size: 0.8rem;
}
.euclid-options-col {
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
}
.euclid-feedback-box {
	display: none;
	margin: 1rem auto 0;
	max-width: 620px;
	text-align: center;
}
.euclid-verify-btn {
	margin: 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.proof-chamber.euclid-proof-hidden {
	display: none;
	width: 100%;
	max-width: 600px;
	margin-top: 1rem;
}
.formula-math-left {
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.8;
}
.formula-math-center-padded {
	text-align: center;
	font-size: 1.05rem;
	padding: 0.8rem 1rem;
}

.gacha-reset-btn {
	border-color: var(--danger);
	color: var(--danger);
}
.gacha-summary-bar {
	background: var(--bg-surface-elevated);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 0.85rem 1.25rem;
	width: 100%;
	max-width: 620px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.gacha-recent-val {
	font-size: 1.05rem;
	font-weight: 800;
	color: #94a3b8;
}
.vault-prompt-gold {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--accent-gold);
	margin-bottom: 0.4rem;
}

.slope-label-gold {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--accent-gold);
	margin-bottom: 0.4rem;
}
.slope-status-wrap {
	margin-top: 1rem;
	border-top: 1px solid var(--border-color);
	padding-top: 0.75rem;
}

/* ==========================================================================
   PART 3: MOBILE RESPONSIVE LAYOUT (MAX-WIDTH: 768px)
   All labels, badges, titles, and headings are centered using flex columns.
   ========================================================================== */
@media (max-width: 768px) {
	/* Page Header & Return Link */
	.game-page-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.game-page-title,
	.game-page-desc {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.game-return-link {
		margin: 0 auto;
	}

	/* Step 1: Codex / Concept Briefing */
	.codex-header,
	.codex-header-row,
	.codex-header-clean {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.45rem;
	}
	.codex-badge,
	.codex-header .realm-badge,
	.codex-header [class*='badge-'] {
		margin: 0 auto;
	}
	.codex-title,
	.codex-desc {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.concept-info-tile {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.concept-info-title,
	.concept-info-desc,
	.concept-info-tile strong,
	.concept-info-tile p {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	/* Step 2: The Lab Bench Header & Controls */
	.lab-bench-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1rem;
	}
	.lab-bench-header > div {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.lab-bench-header .realm-badge,
	.lab-bench-header [class*='badge-'] {
		margin: 0 auto 0.45rem auto;
	}
	.lab-bench-title {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}
	.lab-bench-desc {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}
	.lab-bench-controls,
	.lab-bench-header .flex-row-gap-75,
	.lab-bench-header .flex-row-wrap-gap-10,
	.lab-bench-header .flex-row-wrap-gap-125,
	.lab-bench-header .lab-bench-ctrl-group,
	.lab-bench-header .gacha-controls-bar {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 0.5rem;
		width: 100%;
	}
	.lab-bench-controls label,
	.lab-bench-header label,
	.control-label-dim-md,
	.control-label-cyan,
	.control-label-gold {
		text-align: center;
		margin: 0 auto;
	}
	.toy-cuts-readout,
	#toyCutsValue,
	.control-val-mono {
		text-align: center;
		margin: 0 auto;
	}

	/* Step 2: Readouts & Visualizer Toys */
	.toy-readout,
	.shape-readout-card,
	.gear-readout-card,
	.seq-readout-card,
	.chart-readout-card,
	.potion-readout-card,
	.alchemist-readout,
	.vault-readout,
	.slope-readout-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
		margin: 1rem auto 0;
		box-sizing: border-box;
	}
	.toy-readout > div,
	.shape-readout-card > div,
	.gear-readout-card > div,
	.seq-readout-card > div,
	.chart-readout-card > div,
	.potion-readout-card > div,
	.alchemist-readout > div,
	.vault-readout > div,
	.slope-readout-card > div {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.stat-label-dim-b,
	.stat-label-dim-sm,
	.stat-label-cyan-b,
	.stat-label-gold-b,
	[class*='stat-label-'],
	[class*='metric-val-'],
	.simplified-val-text,
	.angles-val-readout,
	.pizza-info-box,
	.shape-info-box,
	.stat-divider-top {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.pizza-toy-layout,
	.potion-lab-layout,
	.shape-toy-layout,
	.gear-toy-layout,
	.seq-toy-layout,
	.chart-toy-layout,
	.scale-toy-layout,
	.vault-toy-layout,
	.slope-toy-layout {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.pizza-board {
		margin: 0 auto;
	}

	/* Step 3: Quick Warm-Up / Practice Box */
	.practice-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.practice-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.45rem;
		width: 100%;
	}
	.practice-header .realm-badge,
	.practice-header [class*='badge-'] {
		margin: 0 auto;
	}
	.practice-title {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}
	.practice-question,
	.practice-prompt,
	.practice-intro-text {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}
	.practice-options-grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 480px;
		margin: 1rem auto 0;
		gap: 0.75rem;
	}
	.practice-options-grid button,
	.practice-choice-btn,
	.shape-choice-btn,
	.decimal-choice-btn,
	.seq-choice-btn,
	.fortress-choice-btn,
	.chart-choice-btn,
	.algebra-choice-btn,
	.euclid-choice-btn,
	.prob-choice-btn,
	.calc-choice-btn {
		text-align: center;
		width: 100%;
	}
	.practice-feedback {
		text-align: center;
		width: 100%;
	}
}
