diff --git a/apps/web/src/app/arcade/page.tsx b/apps/web/src/app/arcade/page.tsx
index 6e99a34f..486b2747 100644
--- a/apps/web/src/app/arcade/page.tsx
+++ b/apps/web/src/app/arcade/page.tsx
@@ -283,10 +283,6 @@ export default function RoomPage() {
{/* Registry games */}
{getAllGames().map((gameDef) => {
- if (gameDef.manifest.name === 'card-sorting') {
- console.log('[Arcade Page] Card Sorting gameDef.manifest:', gameDef.manifest)
- console.log('[Arcade Page] gradient value:', gameDef.manifest.gradient)
- }
const isAvailable = gameDef.manifest.available
const isDisabled = !isHost || !isAvailable
return (
@@ -294,8 +290,10 @@ export default function RoomPage() {
key={gameDef.manifest.name}
onClick={() => handleGameSelect(gameDef.manifest.name)}
disabled={isDisabled}
- className={css({
+ style={{
background: gameDef.manifest.gradient,
+ }}
+ className={css({
border: '2px solid',
borderColor: gameDef.manifest.borderColor,
borderRadius: '2xl',
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 75f7680f..027e3112 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -222,6 +222,7 @@ export default function HomePage() {
tutorial={friendsOf5Tutorial}
isDebugMode={false}
showDebugPanel={false}
+ hideNavigation={true}
/>
diff --git a/apps/web/src/arcade-games/card-sorting/index.ts b/apps/web/src/arcade-games/card-sorting/index.ts
index c274e70d..58d02b2a 100644
--- a/apps/web/src/arcade-games/card-sorting/index.ts
+++ b/apps/web/src/arcade-games/card-sorting/index.ts
@@ -12,9 +12,6 @@ import { CardSortingProvider } from './Provider'
import type { CardSortingConfig, CardSortingMove, CardSortingState } from './types'
import { cardSortingValidator } from './Validator'
-const theme = getGameTheme('teal')
-console.log('[Card Sorting] Theme object:', theme)
-
const manifest: GameManifest = {
name: 'card-sorting',
displayName: 'Card Sorting Challenge',
@@ -27,14 +24,10 @@ const manifest: GameManifest = {
maxPlayers: 1, // Single player only
difficulty: 'Intermediate',
chips: ['🧠 Pattern Recognition', '🎯 Solo Challenge', '📊 Smart Scoring'],
- color: theme.color,
- gradient: theme.gradient,
- borderColor: theme.borderColor,
+ ...getGameTheme('teal'),
available: true,
}
-console.log('[Card Sorting] Final manifest:', manifest)
-
const defaultConfig: CardSortingConfig = {
cardCount: 8,
showNumbers: true,
diff --git a/apps/web/src/components/tutorial/TutorialPlayer.tsx b/apps/web/src/components/tutorial/TutorialPlayer.tsx
index 6d597f37..e95c6bec 100644
--- a/apps/web/src/components/tutorial/TutorialPlayer.tsx
+++ b/apps/web/src/components/tutorial/TutorialPlayer.tsx
@@ -215,6 +215,7 @@ interface TutorialPlayerProps {
initialStepIndex?: number
isDebugMode?: boolean
showDebugPanel?: boolean
+ hideNavigation?: boolean
onStepChange?: (stepIndex: number, step: TutorialStep) => void
onStepComplete?: (stepIndex: number, step: TutorialStep, success: boolean) => void
onTutorialComplete?: (score: number, timeSpent: number) => void
@@ -227,6 +228,7 @@ function TutorialPlayerContent({
initialStepIndex = 0,
isDebugMode = false,
showDebugPanel = false,
+ hideNavigation = false,
onStepChange,
onStepComplete,
onTutorialComplete,
@@ -1061,183 +1063,187 @@ function TutorialPlayerContent({
display: 'flex',
flexDirection: 'column',
height: '100%',
- minHeight: '600px',
+ minHeight: hideNavigation ? 'auto' : '600px',
})} ${className || ''}`}
>
{/* Header */}
-
+ {!hideNavigation && (
-
-
{tutorial.title}
-
- Step {currentStepIndex + 1} of {tutorial.steps.length}: {currentStep.title}
-
-
-
-
- {isDebugMode && (
- <>
-
-
-
- {/* Multi-step navigation controls */}
- {currentStep.multiStepInstructions &&
- currentStep.multiStepInstructions.length > 1 && (
- <>
-
- Multi-Step: {currentMultiStep + 1} /{' '}
- {currentStep.multiStepInstructions.length}
-
-
-
-
- >
- )}
-
- >
- )}
-
-
-
- {/* Progress bar */}
-
+ >
+
+
{tutorial.title}
+
+ Step {currentStepIndex + 1} of {tutorial.steps.length}: {currentStep.title}
+
+
+
+
+ {isDebugMode && (
+ <>
+
+
+
+ {/* Multi-step navigation controls */}
+ {currentStep.multiStepInstructions &&
+ currentStep.multiStepInstructions.length > 1 && (
+ <>
+
+ Multi-Step: {currentMultiStep + 1} /{' '}
+ {currentStep.multiStepInstructions.length}
+
+
+
+
+ >
+ )}
+
+ >
+ )}
+
+
+
+ {/* Progress bar */}
+
-
+ )}
{/* Step list sidebar */}
@@ -1596,57 +1602,60 @@ function TutorialPlayerContent({
{/* Navigation controls */}
-
-
-
+ {!hideNavigation && (
+
+
+
-
- Step {currentStepIndex + 1} of {navigationState.totalSteps}
+
+ Step {currentStepIndex + 1} of {navigationState.totalSteps}
+
+
+
-
-
-
+ )}
{/* Debug panel */}