+ {/* Header with Back Button */}
+
+
+
Simon Says
+
+ {difficulty === 'strict' ? 'Strict Mode' : 'Normal Mode'} • {buttonCount} Buttons
+
+
+
+ {/* Game Stats */}
+
+
+ Round:
+ {gameState.currentRound}
+
+
+ Score:
+ {gameState.score}
+
+ {bestScore !== null && (
+
+ Best:
+ {bestScore}
+
+ )}
+
+
+ {/* Sound Control */}
+
+
+
+
+ {/* Status Message */}
+
+
+ {/* Game Board */}
+
+ {buttons.map((button) => (
+
+ ))}
+
+
+ {/* Control Buttons */}
+
+
+
+
+ {/* Keyboard Controls Info */}
+
+
Controls
+
+ {buttonCount === 4
+ ? 'Arrow Keys, WASD, or 1-4'
+ : `Number Keys 1-${buttonCount}`
+ }
+
+
+
+ );
+};
+
+// Create a dynamic component to prevent SSR issues
+const DynamicSimonSaysGame = dynamic(() => Promise.resolve(SimonSaysGame), {
+ ssr: false,
+ loading: () => (
+